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

/* ===== 自定义属性 ===== */
:root {
  --c-green: #87ff71;
  --c-yellow: #ffce5c;
  --c-dark: #192617;
  --c-dark-80: rgba(25,38,23,0.8);
  --c-dark-40: rgba(25,38,23,0.4);
  --c-light: #f5fef3;
  --c-white: #ffffff;
  --c-card-bg: #1e2e1b;
  --c-muted: #3a5236;
  --font-title: 'Cinzel', 'Palatino Linotype', serif;
  --font-body: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --nav-w: 220px;
  --radius-pill: 999px;
  --radius-card: 18px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-dark);
  color: var(--c-light);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-yellow); }
a:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }

/* ===== 侧边导航（左侧固定竖排） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-dark);
  border-right: 2px solid var(--c-green);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 100;
  overflow-y: auto;
  padding-bottom: 2rem;
}

/* 品牌图标 */
.brand-mark {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px dashed var(--c-green);
  display: flex;
  justify-content: center;
}
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--c-green);
  color: var(--c-dark);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
  transition: transform var(--transition), background var(--transition);
}
.brand-icon:hover {
  background: var(--c-yellow);
  transform: rotate(-5deg) scale(1.08);
}

/* 导航菜单：nav > p > a（药丸胶囊按钮组） */
.main-nav {
  padding: 1.2rem 0.75rem;
  flex: 1;
}
.main-nav > p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.main-nav > p > a {
  display: block;
  padding: 0.65rem 1rem;
  background: var(--c-card-bg);
  color: var(--c-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  min-height: 42px;
  line-height: 1.3;
  text-align: left;
}
.main-nav > p > a:hover {
  background: var(--c-green);
  color: var(--c-dark);
  border-color: var(--c-green);
  transform: translateX(4px);
}
.main-nav > p > a[aria-current="page"] {
  background: var(--c-green);
  color: var(--c-dark);
  border-color: var(--c-green);
  font-weight: 700;
}

/* ===== 主内容区 ===== */
.page-main {
  margin-left: var(--nav-w);
  flex: 1;
  min-width: 0;
}

/* ===== Hero：紧凑 45vh ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--c-dark);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: 3rem 2.5rem 2rem;
  border-bottom: 3px solid var(--c-green);
  overflow: hidden;
  text-align: center;
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-text h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero-desc {
  font-size: 1rem;
  color: var(--c-light);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}
.hero-aside {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  flex-wrap: wrap;
}

/* ===== Memphis 装饰元素 ===== */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border: none;
  background: none;
}
.deco-tri {
  position: absolute;
  width: 0;
  height: 0;
}
.deco-tri--a {
  top: 10%;
  left: 5%;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--c-yellow);
  opacity: 0.45;
  transform: rotate(15deg);
}
.deco-tri--b {
  top: 20%;
  right: 8%;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid var(--c-green);
  opacity: 0.35;
  transform: rotate(-20deg);
}
.deco-tri--c {
  bottom: 0;
  right: 0;
  border-left: 60px solid transparent;
  border-right: 0 solid transparent;
  border-bottom: 60px solid var(--c-yellow);
  opacity: 0.3;
}
.deco-tri--d {
  top: 15%;
  left: 10%;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 44px solid var(--c-green);
  opacity: 0.4;
  transform: rotate(30deg);
}
.deco-wave {
  position: absolute;
  bottom: 1rem;
  left: 2rem;
  width: 120px;
  height: 24px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 8px,
      var(--c-green) 8px, var(--c-green) 10px,
      transparent 10px, transparent 18px
    );
  opacity: 0.3;
  border-radius: 4px;
}
.deco-wave--alt {
  bottom: auto;
  top: 2rem;
  right: 3rem;
  left: auto;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0, transparent 6px,
      var(--c-yellow) 6px, var(--c-yellow) 8px,
      transparent 8px, transparent 14px
    );
  opacity: 0.4;
}
.deco-circle {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border: 5px dashed var(--c-yellow);
  border-radius: 50%;
  opacity: 0.25;
}
.deco-circle--lg {
  width: 140px;
  height: 140px;
  top: 30%;
  right: 8%;
  border-color: var(--c-green);
  opacity: 0.18;
}
.deco-zigzag {
  position: absolute;
  bottom: 1.5rem;
  right: 3rem;
  width: 80px;
  height: 20px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--c-yellow) 0, var(--c-yellow) 4px,
      transparent 4px, transparent 10px
    );
  opacity: 0.35;
}
.deco-dot-row {
  position: absolute;
  top: 2rem;
  right: 4rem;
  width: 80px;
  height: 16px;
  background:
    radial-gradient(circle, var(--c-green) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.4;
}
.hero-shapes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1;
}
.shape-dot-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(135,255,113,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===== 徽章胶囊 ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  background: var(--c-green);
  color: var(--c-dark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-pill--alt {
  background: var(--c-yellow);
}

/* ===== 内容区布局（aside 在左） ===== */
.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.content-aside {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem;
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-muted);
  align-self: start;
  position: sticky;
  top: 1rem;
}
.content-aside h2 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-green);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.content-aside .subtitle {
  font-size: 0.75rem;
  color: var(--c-light);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}
.aside-link {
  display: block;
  padding: 0.45rem 0.6rem;
  color: var(--c-light);
  font-size: 0.82rem;
  border-left: 2px solid transparent;
  border-radius: 4px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  min-height: 40px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.aside-link:hover {
  border-left-color: var(--c-green);
  color: var(--c-green);
  background: rgba(135,255,113,0.06);
}
.aside-link--back {
  border-top: 1px dashed var(--c-muted);
  margin-top: 0.5rem;
  padding-top: 0.7rem;
}
.aside-empty {
  font-size: 0.8rem;
  color: var(--c-muted);
  font-style: italic;
}

/* ===== Prose 正文 ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-light);
}
.prose h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-green);
  margin: 2rem 0 0.4rem;
  letter-spacing: 0.03em;
}
.prose h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-yellow);
  margin: 1.5rem 0 0.4rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose a {
  color: var(--c-green);
  border-bottom: 1px solid rgba(135,255,113,0.35);
}
.prose a:hover {
  color: var(--c-yellow);
  border-bottom-color: var(--c-yellow);
}
.prose blockquote {
  border-left: 3px solid var(--c-green);
  padding: 0.75rem 1rem;
  background: rgba(135,255,113,0.06);
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-style: italic;
  color: var(--c-light);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.prose th {
  background: var(--c-green);
  color: var(--c-dark);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 700;
}
.prose td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--c-muted);
}
.prose tr:nth-child(even) td { background: rgba(135,255,113,0.04); }

/* ===== h2 + p.subtitle ===== */
h2 + .subtitle, h2 + p.subtitle, h2 + p.subhead, h2 + p.desc, h2 + p.lead {
  color: var(--c-light);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  margin-top: 0.2rem;
}

/* ===== 主题卡片 ===== */
.topics-section {
  padding: 2rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  width: 100%;
}
.topics-section > h2 {
  grid-column: 1 / -1;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--c-yellow);
  letter-spacing: 0.04em;
}
.topics-section > .subtitle {
  grid-column: 1 / -1;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.topic-pill {
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.2rem;
  border: 1.5px solid var(--c-muted);
  border-bottom: 4px solid var(--c-yellow);
  transition: transform var(--transition), border-color var(--transition);
}
.topic-pill:hover {
  transform: translateY(-4px);
  border-color: var(--c-green);
  border-bottom-color: var(--c-green);
}
.topic-pill h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.topic-pill h3 a { color: var(--c-green); }
.topic-pill p { font-size: 0.85rem; opacity: 0.75; line-height: 1.55; }

/* ===== 精选/子页卡片 ===== */
.featured-section {
  padding: 2rem 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.featured-section > h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--c-yellow);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.feat-card {
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-muted);
  border-bottom: 4px solid var(--c-green);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(135,255,113,0.15);
}
/* 精选卡片网格容器 */
.featured-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.featured-section > h2,
.featured-section > .subtitle {
  grid-column: 1 / -1;
}
.card-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--c-green), var(--c-yellow));
}
.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.card-date {
  font-size: 0.75rem;
  color: var(--c-yellow);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.feat-card h3 {
  font-family: var(--font-title);
  font-size: 0.98rem;
  line-height: 1.4;
}
.feat-card h3 a { color: var(--c-light); }
.feat-card h3 a:hover { color: var(--c-green); }
.feat-card .subtitle {
  font-size: 0.82rem;
  opacity: 0.7;
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background: transparent;
  border: 1.5px solid var(--c-green);
  color: var(--c-green);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
  align-self: flex-start;
  transition: background var(--transition), color var(--transition);
  min-height: 36px;
}
.card-link:hover {
  background: var(--c-green);
  color: var(--c-dark);
}

/* ===== 专题 Hero ===== */
.topic-hero {
  position: relative;
  min-height: 38vh;
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 3px solid var(--c-yellow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.topic-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.topic-badge-aside {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}
.topic-hero-text h1 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--c-yellow);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.topic-hero-text .subtitle {
  opacity: 0.8;
  font-size: 1rem;
  max-width: 600px;
}

/* ===== 子页卡片列表（section > article×n） ===== */
.children-section {
  padding: 2rem 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.children-section > h2 {
  grid-column: 1 / -1;
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--c-green);
  letter-spacing: 0.04em;
}
.children-section > .subtitle {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  opacity: 0.65;
  margin-bottom: 0.5rem;
}
.child-card {
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-muted);
  border-bottom: 4px solid var(--c-green);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.child-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(135,255,113,0.12);
}
.card-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-green));
}
.card-inner {
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.child-date {
  font-size: 0.75rem;
  color: var(--c-yellow);
  font-weight: 600;
}
.child-card h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
}
.child-card h3 a { color: var(--c-light); }
.child-card h3 a:hover { color: var(--c-green); }
.child-card .subtitle {
  font-size: 0.82rem;
  opacity: 0.7;
}
.read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--c-green);
  color: var(--c-green);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 0.4rem;
  min-height: 34px;
  transition: background var(--transition), color var(--transition);
}
.read-more:hover {
  background: var(--c-green);
  color: var(--c-dark);
}

/* ===== 文章布局 ===== */
.page-main--article .article-header-section {
  position: relative;
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 2px solid var(--c-muted);
  overflow: hidden;
}
.article-meta-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.breadcrumb-link {
  font-size: 0.8rem;
  color: var(--c-yellow);
  border-bottom: 1px solid rgba(255,206,92,0.3);
  padding: 0.35rem 0;
}
.article-date {
  font-size: 0.78rem;
  color: var(--c-light);
  opacity: 0.6;
  letter-spacing: 0.03em;
}
.article-mod {
  font-size: 0.76rem;
  opacity: 0.5;
}
.article-header-section h1 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.article-lead {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.article-hero-fig {
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 0;
}
.article-hero-img {
  max-width: 200px;
  border-radius: 12px;
  opacity: 0.7;
}
.article-hero-placeholder {
  display: block;
  width: 100px;
  height: 100px;
  background: rgba(135,255,113,0.08);
  border-radius: 50%;
  border: 3px dashed var(--c-green);
}
.content-section--article {
  padding-top: 2rem;
}

/* ===== 扁平页面（about/privacy）Hero ===== */
.flat-hero {
  position: relative;
  min-height: 30vh;
  padding: 3rem 2.5rem 2rem;
  border-bottom: 2px dashed var(--c-muted);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.flat-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flat-badge-aside {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.flat-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--c-green);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.flat-hero .subtitle {
  font-size: 0.95rem;
  opacity: 0.75;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0f1a0e;
  border-top: 3px solid var(--c-green);
  margin-left: var(--nav-w);
}
.footer-cta {
  background: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-cta-text {
  color: var(--c-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  background: var(--c-dark);
  color: var(--c-green);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--c-dark);
  min-height: 44px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.cta-btn:hover {
  background: var(--c-yellow);
  color: var(--c-dark);
  border-color: var(--c-yellow);
}
.footer-cols {
  display: flex;
  gap: 0;
  padding: 2rem 2.5rem 1.5rem;
  flex-wrap: wrap;
}
.footer-cols dl {
  flex: 1;
  min-width: 150px;
  padding: 0 1rem;
  border-right: 1px solid var(--c-muted);
}
.footer-cols dl:first-child { padding-left: 0; }
.footer-cols dl:last-child { border-right: none; }
.footer-cols dt {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-cols dd {
  margin: 0 0 0.4rem;
}
.footer-cols dd a {
  font-size: 0.82rem;
  color: var(--c-light);
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}
.footer-cols dd a:hover {
  color: var(--c-yellow);
  opacity: 1;
}
.footer-bar {
  padding: 1rem 2.5rem;
  border-top: 1px solid var(--c-muted);
  text-align: center;
}
.footer-bar p {
  font-size: 0.78rem;
  color: var(--c-light);
  opacity: 0.45;
}

/* ===== 滚动揭示动效 ===== */
.feat-card,
.child-card,
.topic-pill {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== 响应式：平板 ===== */
@media (max-width: 900px) {
  :root { --nav-w: 180px; }
  .content-section {
    grid-template-columns: 160px 1fr;
    padding: 1.5rem;
  }
  .topics-section,
  .featured-section,
  .children-section { padding: 1.5rem; }
}

/* ===== 响应式：移动端 ===== */
@media (max-width: 680px) {
  :root { --nav-w: 0px; }
  body { flex-direction: column; }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 2px solid var(--c-green);
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .brand-mark {
    padding: 0.6rem 0.75rem;
    border-bottom: none;
    border-right: 1px dashed var(--c-green);
    flex-shrink: 0;
  }
  .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .main-nav {
    padding: 0.5rem 0.5rem;
    flex: 1;
    overflow-x: auto;
  }
  .main-nav > p {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  .main-nav > p > a {
    white-space: nowrap;
    font-size: 0.76rem;
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
    min-height: 40px;
  }
  .page-main { margin-left: 0; }
  .site-footer { margin-left: 0; }

  .hero-section { min-height: 45vh; padding: 2rem 1.2rem 1.5rem; }
  .hero-aside { position: static; margin-bottom: 1rem; justify-content: center; }
  .hero-text h1 { font-size: 1.4rem; }

  .content-section {
    grid-template-columns: 1fr;
    padding: 1.2rem;
    gap: 1.2rem;
  }
  .content-aside {
    position: static;
    order: -1;
  }

  .topics-section {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
  .featured-section {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
  .children-section {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .topic-hero,
  .flat-hero,
  .article-header-section { padding: 1.5rem 1.2rem; }
  .article-hero-fig { display: none; }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }
  .footer-cols {
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
  }
  .footer-cols dl {
    border-right: none;
    border-bottom: 1px solid var(--c-muted);
    padding: 0 0 1rem;
  }
  .footer-cols dl:last-child { border-bottom: none; }
  .footer-bar { padding: 0.8rem 1.2rem; }
}
