/* ============================================
   Life in the UK Test 中文备考 — 站点样式
   ============================================ */

:root {
  --ink: #1a1a2e;
  --ink-mid: #2d2d4a;
  --ink-soft: #5c5c7a;
  --ink-faint: #9898b0;
  --cream: #faf8f4;
  --cream-dark: #f2ede4;
  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --gold-faint: #f7f0e2;
  --red: #b5253a;
  --blue: #1a4a7a;
  --green-tag: #2a6b4a;
  --border: rgba(26,26,46,0.1);
  --border-gold: rgba(201,168,76,0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26,26,46,0.1);
  --shadow-strong: 0 12px 40px rgba(26,26,46,0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; background: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600;
}
.logo-text { font-size: 15px; font-weight: 500; line-height: 1.3; }
.logo-sub { font-size: 11px; color: var(--ink-soft); font-weight: 300; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 500; }
.nav-cta {
  background: var(--ink) !important; color: var(--gold) !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 500 !important; font-size: 13px !important;
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink); color: var(--cream);
  padding: 14px 32px; border-radius: 10px; text-decoration: none;
  font-size: 15px; font-weight: 500; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--ink-mid); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--ink); padding: 14px 32px; border-radius: 10px;
  text-decoration: none; font-size: 15px; font-weight: 400; border: 1px solid var(--border);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: white; border-color: var(--ink-soft); }
.btn-gold {
  background: var(--gold); color: var(--ink); padding: 14px 32px; border-radius: 10px;
  text-decoration: none; font-size: 15px; font-weight: 500; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── SECTIONS COMMON ── */
section { padding: 80px 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-narrow { max-width: 820px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Noto Serif SC', serif; font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 1rem;
}
.section-desc { font-size: 1rem; color: var(--ink-soft); max-width: 600px; line-height: 1.8; font-weight: 300; }

/* ── HERO (home) ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 2rem 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(26,74,122,0.05) 0%, transparent 60%);
}
.hero-decor { position: absolute; top: 80px; right: -80px; width: 440px; height: 440px; border: 1px solid var(--border-gold); border-radius: 50%; opacity: 0.4; pointer-events: none; }
.hero-decor2 { position: absolute; bottom: 40px; left: -100px; width: 300px; height: 300px; border: 1px solid var(--border); border-radius: 50%; opacity: 0.4; pointer-events: none; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-faint); border: 1px solid var(--border-gold);
  color: #8a6820; font-size: 12px; font-weight: 500;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 2rem; letter-spacing: 0.3px;
}
.badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero h1 {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.25;
  color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.5px;
}
.hero h1 span { color: var(--gold); }
.hero-en { font-family: 'Playfair Display', serif; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--ink-soft); margin-bottom: 1.5rem; letter-spacing: 1px; }
.hero p.desc { font-size: 1.05rem; color: var(--ink-soft); max-width: 540px; margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat-label { font-size: 12px; color: var(--ink-faint); margin-top: 4px; letter-spacing: 0.5px; }

/* ── CHAPTER HERO (chapter pages) ── */
.ch-hero {
  position: relative; padding: 140px 2rem 60px;
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
  overflow: hidden;
}
.ch-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.ch-hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--gold); font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.ch-hero-meta span { padding: 4px 12px; background: var(--gold-faint); border-radius: 100px; border: 1px solid var(--border-gold); }
.ch-hero h1 {
  font-family: 'Noto Serif SC', serif; font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 0.75rem;
}
.ch-hero h1 span { color: var(--gold); }
.ch-hero .ch-en {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  color: var(--ink-soft); letter-spacing: 0.5px; margin-bottom: 1.5rem;
}
.ch-hero p.lead { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.8; font-weight: 300; }
.ch-hero-img {
  height: 360px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-strong); position: relative;
}
.ch-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-hero-img-caption {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 0.3px;
  background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 4px;
}

/* ── TOC (chapter sidebar) ── */
.ch-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr; gap: 3rem;
  padding: 60px 2rem 80px;
}
.ch-toc {
  position: sticky; top: 90px; align-self: start;
  font-size: 13px;
}
.ch-toc h4 {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.ch-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--border); padding-left: 1rem; }
.ch-toc a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; line-height: 1.5; }
.ch-toc a:hover { color: var(--ink); }
.ch-toc li.active a { color: var(--gold); font-weight: 500; }
.ch-content { min-width: 0; }

/* ── CONTENT BLOCKS ── */
.ch-section { margin-bottom: 3.5rem; scroll-margin-top: 90px; }
.ch-section > h2 {
  font-family: 'Noto Serif SC', serif; font-size: 1.55rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.5rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.ch-section > .h2-en {
  font-family: 'Playfair Display', serif; font-size: 0.95rem;
  color: var(--ink-faint); font-style: italic; margin-bottom: 1.5rem;
}
.ch-section > h3 {
  font-size: 1.1rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem;
  color: var(--ink);
}
.ch-section p { color: var(--ink-mid); margin-bottom: 1rem; line-height: 1.85; font-weight: 300; }
.ch-section ul:not(.bare), .ch-section ol { margin: 0 0 1.25rem 1.5rem; color: var(--ink-mid); font-weight: 300; }
.ch-section li { margin-bottom: 0.4rem; line-height: 1.75; }
.ch-section strong { color: var(--ink); font-weight: 500; }
.ch-section em { color: var(--ink-soft); font-style: normal; background: var(--gold-faint); padding: 1px 6px; border-radius: 4px; font-size: 0.95em; }

/* Star marker for high-frequency exam points */
.star { color: var(--gold); font-weight: 600; }

/* Bilingual term wrapper */
.term-en { color: var(--ink-faint); font-style: italic; font-size: 0.9em; }

/* ── CALLOUTS ── */
.callout {
  background: var(--gold-faint); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout-tip { background: rgba(42,107,74,0.08); border-color: var(--green-tag); }
.callout-warn { background: rgba(181,37,58,0.06); border-color: var(--red); }
.callout strong { color: var(--ink); }
.callout-label {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 0.4rem; color: #8a6820;
}
.callout-tip .callout-label { color: var(--green-tag); }
.callout-warn .callout-label { color: var(--red); }

/* ── TABLES ── */
.ch-section table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem; background: white;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,26,46,0.04);
  border: 1px solid var(--border);
}
.ch-section th {
  background: var(--ink); color: var(--gold);
  text-align: left; padding: 12px 16px; font-weight: 500; font-size: 0.9rem;
}
.ch-section td {
  padding: 12px 16px; border-top: 1px solid var(--border); color: var(--ink-mid);
}
.ch-section tr:hover td { background: var(--cream); }

/* ── PRACTICE QUESTIONS (toggle) ── */
.q-block {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  border-left: 3px solid var(--blue);
}
.q-q { font-weight: 500; color: var(--ink); margin-bottom: 0.5rem; }
.q-options { list-style: none; margin: 0 0 1rem !important; padding: 0; }
.q-options li {
  padding: 6px 10px; border-radius: 6px; margin-bottom: 4px;
  color: var(--ink-soft); font-size: 0.95rem; cursor: default;
}
.q-a-toggle {
  background: none; border: 1px dashed var(--ink-faint); color: var(--ink-soft);
  padding: 6px 14px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.q-a-toggle:hover { border-color: var(--gold); color: var(--gold); }
.q-a-body {
  display: none; margin-top: 0.75rem; padding: 0.75rem 1rem;
  background: var(--gold-faint); border-radius: 6px;
  color: var(--ink); font-size: 0.95rem;
}
.q-a-body.open { display: block; }
.q-a-correct { color: var(--green-tag); font-weight: 500; }

/* ── PREV/NEXT NAV ── */
.ch-pager {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.ch-pager a {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: all 0.2s;
}
.ch-pager a:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.ch-pager .label { font-size: 11px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.ch-pager .title { font-size: 1rem; font-weight: 500; margin-top: 4px; }
.ch-pager .ch-next { text-align: right; }
.ch-pager a.disabled { opacity: 0.4; pointer-events: none; }

/* ── CHAPTER ASK BOT CTA ── */
.ask-bot-cta {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  color: white; padding: 2.5rem 2rem; border-radius: var(--radius-lg);
  text-align: center; margin: 3rem 0;
}
.ask-bot-cta h3 { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.ask-bot-cta p { color: rgba(255,255,255,0.65); font-weight: 300; margin-bottom: 1.5rem; }

/* ── HERO LANDMARK STRIP (home) ── */
.landmark-strip { position: relative; height: 340px; overflow: hidden; }
.landmark-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.landmark-strip::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; z-index: 1; background: linear-gradient(to bottom, var(--cream), transparent); }
.landmark-strip::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; z-index: 1; background: linear-gradient(to top, white, transparent); }
.landmark-caption { position: absolute; bottom: 12px; right: 16px; z-index: 2; font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.3px; }

/* ── CHAPTERS GRID (home) ── */
.chapters-bg { background: white; }
.chapters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.chapter-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: all 0.25s; position: relative; display: flex; flex-direction: column; }
.chapter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chapter-img { width: 100%; height: 160px; object-fit: cover; object-position: center; display: block; transition: transform 0.4s; }
.chapter-card:hover .chapter-img { transform: scale(1.04); }
.chapter-img-wrap { overflow: hidden; position: relative; }
.chapter-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(26,26,46,0.5) 100%); }
.chapter-num-float { position: absolute; top: 12px; left: 14px; font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.chapter-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.chapter-body h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.chapter-body p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; font-weight: 300; flex: 1; }
.chapter-tag { display: inline-block; margin-top: 1rem; align-self: flex-start; background: var(--gold-faint); color: #8a6820; font-size: 11px; font-weight: 500; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 6px; }
.chapter-top-bar { height: 3px; background: var(--gold); opacity: 0; transition: opacity 0.25s; }
.chapter-card:hover .chapter-top-bar { opacity: 1; }

/* ── HOW IT WORKS (home) ── */
.how-section { background: var(--cream-dark); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; padding: 2rem 1.5rem; }
.step-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 600; color: var(--gold-light); line-height: 1; margin-bottom: 1rem; }
.step h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

/* ── TOPICS QUICK NAV (home) ── */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; margin-top: 3rem; }
.topic-pill { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1rem; text-align: center; text-decoration: none; color: var(--ink); transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.topic-pill:hover { border-color: var(--gold); background: var(--gold-faint); transform: translateY(-2px); }
.topic-icon { font-size: 1.6rem; }
.topic-pill span { font-size: 13px; font-weight: 500; }

/* ── AI section (home) ── */
.ai-section { background: var(--ink); color: white; }
.ai-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ai-label { color: var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.75rem; font-weight: 500; }
.ai-title { font-family: 'Noto Serif SC', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; color: white; }
.ai-title span { color: var(--gold); }
.ai-desc { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.8; font-weight: 300; margin-bottom: 2rem; }
.ai-features { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.ai-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.8); }
.ai-check { width: 20px; height: 20px; flex-shrink: 0; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.ai-check svg { width: 10px; height: 10px; }
.ai-preview { background: linear-gradient(160deg, rgba(201,168,76,0.08), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ai-preview-header { display: flex; align-items: center; gap: 12px; }
.ai-preview-avatar { width: 44px; height: 44px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.ai-preview-title { font-size: 15px; font-weight: 500; color: white; }
.ai-preview-status { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.online-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }
.ai-bubble { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px 14px 14px 4px; padding: 14px 18px; color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.65; max-width: 92%; }
.ai-bubble.user { background: var(--gold-faint); color: var(--ink); align-self: flex-end; border-radius: 14px 14px 4px 14px; border-color: transparent; }
.ai-bubble-wrap { display: flex; flex-direction: column; gap: 10px; margin: 0.5rem 0 1rem; }
.ai-preview-cta { width: 100%; justify-content: center; padding: 16px 24px; font-size: 15px; }

/* ── CTA band ── */
.cta-band { background: var(--cream-dark); border-top: 1px solid var(--border); padding: 70px 2rem; text-align: center; }
.cta-band h2 { font-family: 'Noto Serif SC', serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.cta-band p { color: var(--ink-soft); font-weight: 300; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 60px 2rem 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 1rem; font-weight: 300; }
footer.site-footer h4 { font-size: 13px; font-weight: 500; color: white; margin-bottom: 1rem; letter-spacing: 0.5px; }
footer.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer.site-footer ul a { text-decoration: none; color: rgba(255,255,255,0.45); font-size: 13px; transition: color 0.2s; font-weight: 300; }
footer.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── FACTS LAYOUT (home) ── */
.facts-section { background: white; }
.facts-layout { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.fact-sidebar { position: sticky; top: 90px; background: var(--gold-faint); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); overflow: hidden; }
.fact-sidebar-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.fact-sidebar-body { padding: 1.5rem; }
.fact-sidebar h3 { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; margin-bottom: 0.75rem; }
.fact-sidebar p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }
.fact-sidebar a { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; font-size: 13px; color: #8a6820; text-decoration: none; font-weight: 500; }
.fact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.fact-item { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); border-left: 3px solid var(--gold); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.fact-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; display: block; }
.fact-text h4 { font-size: 14px; font-weight: 500; margin-bottom: 0.4rem; }
.fact-text p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; font-weight: 300; }
.fact-source { font-size: 11px; color: var(--ink-faint); margin-top: 6px; }

/* ── PLACEHOLDER PAGE ── */
.placeholder-hero {
  min-height: 80vh; padding: 140px 2rem 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.placeholder-hero .icon { font-size: 4rem; opacity: 0.5; margin-bottom: 1.5rem; }
.placeholder-hero h1 { font-family: 'Noto Serif SC', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.placeholder-hero .ch-en { font-family: 'Playfair Display', serif; color: var(--ink-soft); margin-bottom: 1.5rem; }
.placeholder-hero p { max-width: 540px; color: var(--ink-soft); font-weight: 300; margin-bottom: 2rem; line-height: 1.8; }
.placeholder-hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .ch-layout { grid-template-columns: 1fr; }
  .ch-toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .ch-toc ul { flex-direction: row; flex-wrap: wrap; gap: 16px; border-left: none; padding-left: 0; }
}
@media (max-width: 900px) {
  .ai-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .facts-layout { grid-template-columns: 1fr; }
  .fact-sidebar { position: static; }
  .ch-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ch-hero-img { height: 240px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 1rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem; }
  .hero-stats { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-decor, .hero-decor2 { display: none; }
  section { padding: 60px 1.5rem; }
  .landmark-strip { height: 220px; }
  .ch-pager { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 100px 1.5rem 60px; }
  .hero-stats { flex-direction: column; gap: 1.5rem; border-top: none; }
  .fact-item { flex-direction: column; }
  .fact-thumb { width: 100%; height: 140px; }
  .ch-hero { padding: 120px 1.5rem 50px; }
  .ch-section table { font-size: 0.85rem; }
  .ch-section th, .ch-section td { padding: 8px 10px; }
}
