/* 历史上的今天 · 卷轴墨色 × 暖金 · 日间/晚间 */
:root,
html[data-theme="day"] {
  --ink: #1c1814;
  --ink-soft: #3d342c;
  --mute: #7a6e62;
  --paper: #f3ebe0;
  --paper2: #fff9f0;
  --east: #8b3a2a;
  --east-soft: rgba(139, 58, 42, 0.12);
  --west: #2a4a6b;
  --west-soft: rgba(42, 74, 107, 0.12);
  --gold: #c4a35a;
  --gold-dim: rgba(196, 163, 90, 0.25);
  --line: rgba(60, 45, 30, 0.12);
  --shadow: 0 20px 50px rgba(40, 30, 20, 0.12);
  --card-bg: rgba(255, 249, 240, 0.82);
  --card-solid: rgba(255, 255, 255, 0.55);
  --btn-bg: rgba(255, 255, 255, 0.5);
  --pill-bg: rgba(255, 255, 255, 0.55);
  --glossary-row: rgba(255, 249, 240, 0.75);
  --theme-meta: #e8dcc8;
  --radius: 20px;
  /* 中文：最早那套系统字体（更顺眼） */
  --font: "PingFang SC", "Hiragino Sans GB", "Songti SC", "Noto Serif SC",
    Georgia, serif;
  --sans: "SF Pro Text", -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  /* 中文默认阶梯：略收一档，更舒服 */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.28rem;
  --fs-2xl: 1.45rem;
  --fs-brand: 1.22rem;
  --lh-body: 1.82;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --bg-grad:
    radial-gradient(1000px 600px at 15% 0%, rgba(196, 163, 90, 0.22), transparent 55%),
    radial-gradient(800px 500px at 90% 20%, rgba(42, 74, 107, 0.12), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(139, 58, 42, 0.1), transparent 45%),
    linear-gradient(165deg, #e8dcc8 0%, var(--paper) 40%, #e2ebe6 100%);
}

html[data-theme="night"] {
  --ink: #efe8dc;
  --ink-soft: #cfc4b4;
  --mute: #9a8f82;
  --paper: #14110e;
  --paper2: #1c1814;
  --east: #e0a090;
  --east-soft: rgba(224, 160, 144, 0.14);
  --west: #9bb8d4;
  --west-soft: rgba(155, 184, 212, 0.14);
  --gold: #d4b76a;
  --gold-dim: rgba(212, 183, 106, 0.22);
  --line: rgba(220, 200, 170, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --card-bg: rgba(28, 24, 20, 0.88);
  --card-solid: rgba(32, 28, 24, 0.75);
  --btn-bg: rgba(40, 34, 28, 0.85);
  --pill-bg: rgba(40, 34, 28, 0.9);
  --glossary-row: rgba(36, 30, 26, 0.9);
  --theme-meta: #1a1510;
  --bg-grad:
    radial-gradient(1000px 600px at 15% 0%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(800px 500px at 90% 20%, rgba(60, 90, 120, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(100, 50, 40, 0.12), transparent 45%),
    linear-gradient(165deg, #1a1510 0%, #14110e 45%, #121820 100%);
}

/* 英文：Plus Jakarta Sans — 温暖、现代、简洁（去掉冷硬书卷衬线） */
html[lang="en"] {
  --font: "Plus Jakarta Sans", "SF Pro Text", -apple-system, "Segoe UI",
    "Helvetica Neue", sans-serif;
  --sans: "Plus Jakarta Sans", "SF Pro Text", -apple-system, "Segoe UI",
    "Helvetica Neue", sans-serif;
  --fs-xs: 0.92rem;
  --fs-sm: 1.05rem;
  --fs-md: 1.18rem;
  --fs-lg: 1.28rem;
  --fs-xl: 1.48rem;
  --fs-2xl: 1.68rem;
  --fs-brand: 1.42rem;
  --lh-body: 1.72;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
/* 桌面英文略收；手机英文在下方媒体查询里单独设，这里不反复动 */
html[lang="en"],
html[lang="en"] body {
  font-size: 15.5px;
}
@media (min-width: 901px) {
  html[lang="en"] {
    --fs-xs: 0.85rem;
    --fs-sm: 0.95rem;
    --fs-md: 1.05rem;
    --fs-lg: 1.12rem;
    --fs-xl: 1.28rem;
    --fs-2xl: 1.4rem;
    --fs-brand: 1.28rem;
    --lh-body: 1.65;
  }
}
body { overflow-x: hidden; }

/* 正文 / 标题：用 --font（中文可宋感，英文为温暖无衬线） */
.prose,
.card h2,
.reflect-card h3,
.reflect-card p,
.empty-state h2,
.empty-state p,
.brand-name,
.glossary-term,
.glossary-def,
.glossary-title,
#compare-text,
#insight-text {
  font-family: var(--font);
}
.prose,
.reflect-card p,
.glossary-def,
#compare-text,
#insight-text {
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--lh-body);
}
.card h2 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
/* 英文：略紧字距、中等字重，减少「博物馆/公文」感 */
html[lang="en"] .prose,
html[lang="en"] .reflect-card p,
html[lang="en"] .glossary-def,
html[lang="en"] #compare-text,
html[lang="en"] #insight-text {
  font-weight: 400;
  letter-spacing: 0.005em;
}
html[lang="en"] .card h2,
html[lang="en"] .brand-name,
html[lang="en"] .reflect-card h3,
html[lang="en"] .glossary-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* —— 背景：旧纸 + 晨雾 + 微尘 —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--bg-grad);
  transition: background 0.35s ease;
}
.bg-fog {
  position: absolute;
  inset: -20%;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.7;
  animation: fog-drift 40s linear infinite;
}
@keyframes fog-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-3%, -2%); }
}
.bg-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% { transform: translateY(100vh) scale(0.6); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.25; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: calc(20px + var(--safe-t)) 18px calc(40px + var(--safe-b));
}

/* —— 顶栏 —— */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.brand > div { min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--gold), #a67c3a);
  box-shadow: 0 8px 24px var(--gold-dim);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 12px 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px 6px 2px 2px;
  border-bottom: none;
}
.brand-name {
  font-family: var(--font);
  font-size: var(--fs-brand);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.brand-sub {
  font-size: var(--fs-xs);
  color: var(--mute);
  margin-top: 2px;
  letter-spacing: 0.04em;
  font-family: var(--sans);
  line-height: 1.35;
  word-break: break-word;
}
.top-right {
  text-align: right;
  flex: 0 0 auto;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.top-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.icon-btn.lang-btn {
  width: auto;
  min-width: 40px;
  padding: 0 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--sans);
  white-space: nowrap;
}
.icon-btn:active { transform: scale(0.96); }
html[data-theme="day"] .icon-night { display: none; }
html[data-theme="night"] .icon-day { display: none; }
.date-pill {
  display: inline-block;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 650;
  font-size: var(--fs-sm);
  font-family: var(--sans);
  backdrop-filter: blur(8px);
  margin-bottom: 0;
  color: var(--ink);
  max-width: 100%;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}
.date-nav {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.nav-btn {
  border: 1px solid var(--line);
  background: var(--btn-bg);
  border-radius: 10px;
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  cursor: pointer;
  font-size: var(--fs-md);
  font-family: var(--sans);
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-btn:active { transform: scale(0.96); }
.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/*
 * 手机端比例约定（中英独立）
 *
 * 正文是主角。日期条 / 导航是辅控件，应「略小于正文」，
 * 不能抢戏（过大），也不能缩成难按的小按钮（过小）。
 *
 * 中文正文 ~1.14rem → 日期条 ~0.92rem，按钮高 ~36px
 * 英文正文 ~0.98rem → 日期条 ~0.86rem，按钮高 ~34px
 * （约 85–90% 正文，而不是 70%）
 */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  /* —— 布局（中英共用，只动结构） —— */
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .brand {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .brand-name {
    white-space: normal;
  }
  .top-right {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "tools nav"
      "pill pill";
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    text-align: left;
  }
  .top-tools {
    grid-area: tools;
    margin: 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .date-nav {
    grid-area: nav;
    justify-content: flex-end;
    margin-left: 0;
    gap: 6px;
  }
  .date-pill {
    grid-area: pill;
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    font-weight: 600;
  }
  .lede {
    max-width: none;
  }
  .card-body {
    padding: 16px 14px 18px;
  }
  .card h2 {
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
  .prose,
  .reflect-card p,
  #compare-text,
  #insight-text {
    overflow-wrap: break-word;
  }
  .sec {
    letter-spacing: 0.08em;
  }
  .glossary-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* ========== 中文手机 ========== */
  html:not([lang="en"]),
  html:not([lang="en"]) body {
    font-size: 16.5px;
  }
  html:not([lang="en"]) .brand-name {
    font-size: 1.3rem;
  }
  html:not([lang="en"]) .brand-sub {
    font-size: 0.86rem;
  }
  html:not([lang="en"]) .side-tag,
  html:not([lang="en"]) .chip,
  html:not([lang="en"]) .sec {
    font-size: 0.86rem;
  }
  html:not([lang="en"]) .place,
  html:not([lang="en"]) .lede {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  /* 顶栏控件：舒适可点，略小于正文 1.14rem */
  html:not([lang="en"]) .date-pill {
    font-size: 0.92rem;
    padding: 8px 14px;
    line-height: 1.35;
  }
  html:not([lang="en"]) .nav-btn {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  html:not([lang="en"]) #btn-today {
    min-width: 4.2em;
  }
  html:not([lang="en"]) .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.05rem;
  }
  html:not([lang="en"]) .icon-btn.lang-btn {
    min-width: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
  html:not([lang="en"]) .year,
  html:not([lang="en"]) .glossary-term {
    font-size: 1.08rem;
  }
  html:not([lang="en"]) .card h2 {
    font-size: 1.42rem;
  }
  html:not([lang="en"]) .prose,
  html:not([lang="en"]) .reflect-card p,
  html:not([lang="en"]) #compare-text,
  html:not([lang="en"]) #insight-text {
    font-size: 1.14rem;
    line-height: 1.82;
  }
  html:not([lang="en"]) .reflect-card h3,
  html:not([lang="en"]) .glossary-title {
    font-size: 1.22rem;
  }
  html:not([lang="en"]) .glossary-def,
  html:not([lang="en"]) .foot {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  /* ========== 英文手机 ==========
   * 正文单独加大（不因调顶栏而缩）；
   * 日期条 / 按钮单独略小，与正文解耦。
   */
  html[lang="en"],
  html[lang="en"] body {
    font-size: 16.5px;
  }
  html[lang="en"] .brand-name {
    font-size: 1.28rem;
    letter-spacing: 0;
    line-height: 1.2;
  }
  html[lang="en"] .brand-sub {
    font-size: 0.86rem;
  }
  html[lang="en"] .side-tag,
  html[lang="en"] .chip,
  html[lang="en"] .sec {
    font-size: 0.82rem;
  }
  html[lang="en"] .place,
  html[lang="en"] .lede {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  /* 顶栏控件：固定尺寸，不跟正文变量走 */
  html[lang="en"] .date-pill {
    font-size: 0.88rem;
    padding: 7px 12px;
    line-height: 1.3;
  }
  html[lang="en"] .nav-btn {
    min-width: 42px;
    height: 34px;
    padding: 0 11px;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  html[lang="en"] #btn-today {
    min-width: 4em;
  }
  html[lang="en"] .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1rem;
  }
  html[lang="en"] .icon-btn.lang-btn {
    min-width: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
  }
  html[lang="en"] .year {
    font-size: 1.05rem;
  }
  /* 正文内容（标题 / 事实 / 比较 / 领悟） */
  html[lang="en"] .card h2 {
    font-size: 1.35rem;
    letter-spacing: 0;
    line-height: 1.28;
  }
  html[lang="en"] .prose,
  html[lang="en"] .reflect-card p,
  html[lang="en"] #compare-text,
  html[lang="en"] #insight-text {
    font-size: 1.12rem;
    line-height: 1.58;
  }
  html[lang="en"] .reflect-card h3,
  html[lang="en"] .glossary-title {
    font-size: 1.18rem;
    line-height: 1.3;
  }
  html[lang="en"] .glossary-term {
    font-size: 1.05rem;
  }
  html[lang="en"] .glossary-def,
  html[lang="en"] .foot {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

.lede {
  color: var(--mute);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  max-width: 42rem;
  margin: 0 0 28px;
  font-family: var(--sans);
}

.empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin: 0 0 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.empty-state h2 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: var(--fs-xl);
  font-weight: 650;
  color: var(--ink);
}
.empty-state p {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--mute);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

/* —— 双栏对照 —— */
.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .duel {
    grid-template-columns: 1fr;
  }
  .vs { flex-direction: row !important; padding: 8px 0; }
  .vs-line { width: 40px !important; height: 1px !important; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  animation: card-in 0.7s ease both;
}
.card-east { animation-delay: 0.05s; }
.card-west { animation-delay: 0.15s; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.card-visual {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.card-east .card-visual {
  background: linear-gradient(160deg, #5c2a22 0%, #a85a3a 45%, #e8c48a 100%);
}
.card-west .card-visual {
  background: linear-gradient(160deg, #1a3048 0%, #3d6a8c 50%, #c5d8e8 100%);
}
.visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(255,255,255,0.25), transparent 55%);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.visual-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* SVG 场景动画 */
.visual-stage svg {
  width: min(200px, 70%);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}
.anim-float { animation: v-float 5s ease-in-out infinite; }
.anim-sway { animation: v-sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.anim-spin-slow { animation: v-spin 20s linear infinite; transform-origin: 50% 50%; }
.anim-pulse { animation: v-pulse 3s ease-in-out infinite; }
@keyframes v-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes v-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes v-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes v-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.card-body { padding: 18px 18px 22px; flex: 1; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.side-tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--sans);
}
.side-tag.east { background: var(--east-soft); color: var(--east); }
.side-tag.west { background: var(--west-soft); color: var(--west); }
.year {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
  font-size: var(--fs-md);
  font-family: var(--sans);
}
.card h2 {
  font-family: var(--font);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.place {
  margin: 0 0 10px;
  font-size: var(--fs-sm);
  color: var(--mute);
  font-family: var(--sans);
}
.chip {
  display: inline-block;
  font-size: var(--fs-xs);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-family: var(--sans);
}
.sec {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 8px;
  font-weight: 700;
  font-family: var(--sans);
}
.prose {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mute);
}
.vs-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.vs-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  font-family: var(--sans);
}

/* —— 比较 / 领悟 —— */
.reflect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .reflect { grid-template-columns: 1fr; }
}
.reflect-card {
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--card-solid);
  backdrop-filter: blur(10px);
  animation: card-in 0.8s ease 0.25s both;
}
.insight-card {
  background: linear-gradient(145deg, var(--gold-dim), var(--card-bg));
  border-color: var(--gold-dim);
  animation-delay: 0.35s;
}
.reflect-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.reflect-card h3 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: var(--fs-xl);
}
.reflect-card p {
  margin: 0;
  line-height: var(--lh-body);
  color: var(--ink-soft);
  font-size: var(--fs-lg);
}

/* 名词解释 */
.glossary {
  margin: 0 0 28px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-solid);
  backdrop-filter: blur(8px);
  animation: card-in 0.75s ease 0.4s both;
}
.glossary-title {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: var(--fs-xl);
  color: var(--ink);
}
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.glossary-item {
  display: grid;
  grid-template-columns: minmax(5rem, 7.5rem) 1fr;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glossary-row);
  border: 1px solid var(--line);
}
@media (max-width: 520px) {
  .glossary-item { grid-template-columns: 1fr; gap: 4px; }
}
.glossary-term {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: var(--fs-md);
}
.glossary-def {
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.foot {
  text-align: center;
  color: var(--mute);
  font-size: var(--fs-sm);
  line-height: 1.7;
  font-family: var(--sans);
}
.foot .disc { opacity: 0.85; margin-top: 6px; }
#sources { margin: 0; }

/* 返回顶部 */
.back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--pill-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.back-top[hidden] {
  display: none !important;
}
.back-top:active {
  transform: scale(0.94);
}
.back-top-icon {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
