@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;700&display=swap');

/* ============================
   CSS 变量 & 全局重置
   ============================ */
:root {
  --mint: #b4fde1;
  --baby-blue: #add8e6;
  --ink: #172620;
  --mint-dark: #7ee8c0;
  --blue-dark: #7ab8cc;
  --ink-light: #2e4a40;
  --ink-muted: #4a6b5e;
  --white: #ffffff;
  --off-white: #f4fef9;
  --card-bg-1: #b4fde1;
  --card-bg-2: #add8e6;
  --card-bg-3: #d4f5e9;
  --card-bg-4: #c8e8f5;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --border-w: 3px;
  --border-color: var(--ink);

  --shadow-outer: 4px 4px 0px var(--ink);
  --shadow-inner: inset -2px -2px 6px rgba(23,38,32,0.12);
  --shadow-clay: 4px 4px 0px var(--ink), inset -2px -2px 6px rgba(23,38,32,0.1);
  --shadow-hover: 6px 6px 0px var(--ink), inset -2px -2px 8px rgba(23,38,32,0.15);

  --font-main: 'Noto Naskh Arabic', 'Noto Sans Arabic', 'PingFang SC', 'Microsoft YaHei', serif;
  --font-sans: 'Noto Sans Arabic', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --bottom-bar-h: 60px;
  --max-w: 1100px;
  --prose-max: 780px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  line-height: 1.65;
}

body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--ink);
  overflow-x: hidden;
  padding-bottom: var(--bottom-bar-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol, dl {
  list-style: none;
}

/* ============================
   底部固定导航条
   ============================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  background: var(--ink);
  border-top: var(--border-w) solid var(--mint-dark);
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(23,38,32,0.3);
}

.bottom-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.bottom-bar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--mint);
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--mint-dark);
  box-shadow: var(--shadow-outer);
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.34, 1.56);
}

.bottom-bar-brand:hover {
  transform: scale(1.08);
  text-decoration: none;
}

.bottom-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.bottom-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.bottom-bar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.bottom-bar-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
  transition: background 200ms ease, color 200ms ease;
  min-width: 44px;
}

.bottom-bar-nav a:hover {
  background: var(--ink-light);
  color: var(--white);
  text-decoration: none;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--baby-blue);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-outer);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
}

.hamburger-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
}

.ham-line {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ============================
   全屏遮罩菜单
   ============================ */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--mint);
  border: var(--border-w) solid var(--mint-dark);
  border-radius: 50%;
  box-shadow: var(--shadow-outer);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms cubic-bezier(0.34, 1.56);
}

.nav-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

.overlay-nav {
  text-align: center;
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.overlay-nav dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.overlay-nav-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.overlay-nav dd a {
  display: block;
  padding: 12px 32px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--off-white);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms cubic-bezier(0.34, 1.56);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-nav dd a:hover,
.overlay-nav dd a[aria-current="page"] {
  background: var(--mint);
  border-color: var(--mint-dark);
  color: var(--ink);
  transform: scale(1.03);
  text-decoration: none;
}

/* ============================
   通用工具
   ============================ */
.page-wrapper {
  min-height: 100vh;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 60px;
  height: 3px;
  background: var(--mint);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--ink);
  color: var(--mint);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-outer);
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--baby-blue);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-outer);
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
  min-height: 44px;
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.bc-sep {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ============================
   Prose（正文）
   ============================ */
.prose-wrap {
  max-width: var(--prose-max);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.prose-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  color: var(--ink);
}

.prose-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.6em 0 0.6em;
}

.prose-wrap p {
  margin-bottom: 1.2em;
}

.prose-wrap ul, .prose-wrap ol {
  list-style: disc;
  padding-left: 1.6em;
  margin-bottom: 1.2em;
}

.prose-wrap ol {
  list-style: decimal;
}

.prose-wrap li {
  margin-bottom: 0.4em;
}

.prose-wrap a {
  color: var(--ink);
  border-bottom: 2px solid var(--mint-dark);
  transition: border-color 200ms ease;
}

.prose-wrap a:hover {
  border-color: var(--ink);
  text-decoration: none;
}

.prose-wrap strong {
  font-weight: 700;
}

.prose-wrap blockquote {
  border-left: 4px solid var(--mint-dark);
  padding: 12px 20px;
  background: var(--card-bg-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4em 0;
  font-style: italic;
}

.prose-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
}

.prose-wrap th, .prose-wrap td {
  padding: 10px 14px;
  border: 2px solid var(--ink);
  text-align: left;
}

.prose-wrap th {
  background: var(--mint);
  font-weight: 700;
}

.prose-wrap tr:nth-child(even) td {
  background: var(--card-bg-3);
}

.prose-legal {
  max-width: var(--prose-max);
}

/* ============================
   首页 Hero
   ============================ */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint) 0%, var(--baby-blue) 100%);
  padding: 60px 20px 80px;
}

.hero-skew-bg {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--off-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
  text-align: center;
}

.hero-icon-wrap {
  flex-shrink: 0;
}

.brand-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-clay);
}

.brand-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-clay);
  color: var(--ink);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 480px;
  line-height: 1.6;
}

/* ============================
   首页主文章
   ============================ */
.main-article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.content-section {
  margin-bottom: 56px;
}

/* ============================
   分类卡片网格（首页）
   ============================ */
.cats-section {
  margin-bottom: 56px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--card-bg-1);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
  overflow: hidden;
}

.cat-card:nth-child(even) {
  background: var(--card-bg-2);
}

.cat-card:nth-child(3n) {
  background: var(--card-bg-3);
}

.cat-card:nth-child(4n) {
  background: var(--card-bg-4);
}

.cat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.cat-card-inner {
  padding: 24px;
}

.cat-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cat-card-title a {
  color: var(--ink);
  transition: opacity 200ms ease;
}

.cat-card-title a:hover {
  opacity: 0.75;
  text-decoration: none;
}

.cat-card-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cat-count {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--mint);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================
   精选条目列表（首页）
   ============================ */
.featured-section {
  margin-bottom: 40px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.entry-item {
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
}

.entry-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.entry-link {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 20px;
}

.entry-link:hover {
  text-decoration: none;
}

.entry-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
  min-width: 160px;
}

.entry-date {
  font-size: 0.8rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.entry-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  width: 100%;
  line-height: 1.5;
}

.see-all-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================
   栏目页
   ============================ */
.cat-header {
  position: relative;
  background: linear-gradient(120deg, var(--baby-blue) 0%, var(--mint) 100%);
  padding: 56px 20px 48px;
  overflow: hidden;
}

.cat-header-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(23,38,32,0.03) 20px,
    rgba(23,38,32,0.03) 40px
  );
}

.cat-header-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cat-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.25;
}

.cat-sub {
  font-size: 0.97rem;
  color: var(--ink-light);
  max-width: 560px;
  line-height: 1.6;
}

.cat-date {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.cat-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.cat-main-article {
  min-width: 0;
}

/* ============================
   子页列表（栏目页）
   ============================ */
.child-list-section {
  margin-top: 48px;
}

.child-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.child-item {
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
}

.child-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.child-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px 10px;
}

.child-item-link:hover {
  text-decoration: none;
}

.child-item-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.child-date {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.child-item-desc {
  padding: 4px 20px 16px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.child-item-empty {
  padding: 20px;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================
   侧边栏
   ============================ */
.cat-sidebar,
.entry-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-card {
  background: var(--card-bg-1);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  padding: 20px;
}

.sidebar-card:nth-child(even) {
  background: var(--card-bg-2);
}

.sidebar-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-list dt a,
.sidebar-nav-list dd a,
.sibling-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 200ms ease, transform 200ms cubic-bezier(0.34, 1.56);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sidebar-nav-list dt a:hover,
.sidebar-nav-list dd a:hover,
.sibling-link:hover {
  background: rgba(23,38,32,0.08);
  transform: translateX(4px);
  text-decoration: none;
}

.sidebar-tip {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.btn-sidebar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--mint);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-outer);
  transition: transform 200ms cubic-bezier(0.34, 1.56);
  min-height: 44px;
}

.btn-sidebar:hover {
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}

/* ============================
   条目页
   ============================ */
.entry-header {
  position: relative;
  background: linear-gradient(150deg, var(--mint) 0%, var(--baby-blue) 60%, var(--mint-dark) 100%);
  padding: 56px 20px 48px;
  overflow: hidden;
}

.entry-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.entry-header-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.entry-hero-img-wrap {
  margin-bottom: 20px;
}

.entry-hero-img {
  max-width: 320px;
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-clay);
}

.entry-h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.entry-pub-date,
.entry-mod-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.entry-cat-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--mint);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 200ms ease;
}

.entry-cat-tag:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.entry-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.entry-main-article {
  min-width: 0;
}

.sibling-entry-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  color: var(--ink);
  transition: background 200ms ease, transform 200ms ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sibling-entry-link:hover {
  background: rgba(23,38,32,0.08);
  transform: translateX(4px);
  text-decoration: none;
}

/* ============================
   About 页
   ============================ */
.about-header {
  position: relative;
  background: var(--ink);
  padding: 72px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.about-header-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(180,253,225,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(173,216,230,0.12) 0%, transparent 50%);
}

.about-header-content {
  position: relative;
  max-width: var(--prose-max);
  margin: 0 auto;
}

.about-logo-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--mint-dark);
  box-shadow: var(--shadow-clay);
}

.about-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  font-size: 2rem;
  font-weight: 700;
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--mint-dark);
  box-shadow: var(--shadow-clay);
}

.about-h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 14px;
  line-height: 1.25;
}

.about-tagline {
  font-size: 1rem;
  color: rgba(180,253,225,0.75);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-date {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(180,253,225,0.55);
}

.about-article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.about-links-section {
  margin-top: 48px;
}

.about-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.about-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: var(--card-bg-1);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  padding: 20px;
  text-align: center;
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
}

.about-link-card:nth-child(even) {
  background: var(--card-bg-2);
}

.about-link-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.about-link-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* ============================
   Privacy 页
   ============================ */
.privacy-header {
  background: linear-gradient(135deg, var(--card-bg-3) 0%, var(--card-bg-4) 100%);
  padding: 56px 20px 40px;
  border-bottom: var(--border-w) solid var(--ink);
}

.privacy-header-content {
  max-width: var(--prose-max);
  margin: 0 auto;
}

.privacy-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.privacy-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.privacy-article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.privacy-nav-section {
  margin-top: 48px;
}

.privacy-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.privacy-nav-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--card-bg-1);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-clay);
  min-height: 48px;
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
}

.privacy-nav-card:nth-child(even) {
  background: var(--card-bg-2);
}

.privacy-nav-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

/* ============================
   页脚
   ============================ */
.site-footer {
  background: var(--ink);
  color: var(--off-white);
  margin-top: 60px;
}

.footer-cta-block {
  background: linear-gradient(120deg, var(--mint) 0%, var(--baby-blue) 100%);
  padding: 48px 24px;
  text-align: center;
  border-bottom: var(--border-w) solid var(--ink-light);
}

.footer-cta-title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-cta-desc {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--mint);
  border: var(--border-w) solid var(--ink-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-outer);
  transition: transform 200ms cubic-bezier(0.34, 1.56), box-shadow 200ms ease;
  min-height: 48px;
}

.btn-footer-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 24px;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink-light);
}

.footer-col dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col dt a,
.footer-col dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 0.88rem;
  color: rgba(244,254,249,0.75);
  transition: color 200ms ease, transform 200ms ease;
}

.footer-col dt a {
  font-weight: 600;
  color: var(--off-white);
}

.footer-col dt a:hover,
.footer-col dd a:hover {
  color: var(--mint);
  transform: translateX(4px);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--ink-light);
  padding: 20px 24px;
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(244,254,249,0.45);
  line-height: 1.6;
}

/* ============================
   Scroll Reveal 动效
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cat-card,
  .child-item,
  .entry-item,
  .about-link-card,
  .privacy-nav-card,
  .btn-primary,
  .btn-secondary,
  .btn-footer-cta,
  .btn-sidebar,
  .bottom-bar-brand,
  .hamburger-btn,
  .nav-close-btn {
    transition: none;
  }
}

/* ============================
   移动端断点
   ============================ */
@media (max-width: 768px) {
  .cat-layout,
  .entry-layout {
    grid-template-columns: 1fr;
  }

  .cat-sidebar,
  .entry-sidebar {
    position: static;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px;
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .hero-section {
    padding: 48px 16px 70px;
  }

  .hero-content {
    gap: 20px;
  }

  .about-link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .see-all-wrap {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 16px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .hero-h1 {
    font-size: 1.5rem;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .about-link-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-block {
    padding: 36px 16px;
  }

  .overlay-nav dd a {
    font-size: 0.97rem;
    padding: 10px 20px;
  }

  .entry-link {
    flex-direction: column;
    gap: 6px;
  }

  .privacy-nav-grid {
    flex-direction: column;
  }

  .privacy-nav-card {
    width: 100%;
  }
}
