/* ============================================================
   RaiseMeTop — Design System

   Learner-first, indigo. Light surfaces, one sans stack, generous
   whitespace, a single headline hero and three large low-saturation
   entry tiles. No web fonts and no CDN: everything resolves to system
   families so the site stays self-contained.
   Legacy palette names (--gold / --navy / --ivory / --cream) are kept
   as aliases onto the indigo system so existing components stay
   consistent. No component uses a single thick side border.
   ============================================================ */

:root {
  /* Brand — indigo, aligned with the simplified learner UI */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-soft: #eef2ff;
  --primary-ring: rgba(99, 102, 241, .18);
  --cta: #4f46e5;
  --cta-hover: #4338ca;

  /* Surfaces */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-muted: #fafbfd;
  --border: #e8eaf2;
  --border-strong: #d9dce8;
  --line: #e8eaf2;
  --line-soft: #f1f3f9;

  /* Text */
  --ink: #1f2437;
  --ink-2: #4a5168;
  --muted: #7b8299;
  --muted-2: #a3a9bd;

  /* Legacy aliases — the rest of this stylesheet still references the
     old house-palette names; they now resolve to the indigo system so
     no component is left gold. */
  --navy: #23265e;
  --navy-2: #2d316e;
  --navy-3: #373b7d;
  --gold: #6366f1;
  --gold-2: #818cf8;
  --gold-deep: #4f46e5;
  --gold-050: #eef2ff;
  --ivory: #ffffff;
  --cream: #f6f7fb;
  --cream-2: #eef2ff;

  /* Low-saturation entry tiles — same lightness, only hue changes */
  --tile1: #CDD3FE; --tile1-txt: #23265E; --tile1-ico: #4F46E5; --tile1-hover: #B9C2FD;
  --tile2: #C6EEDC; --tile2-txt: #0E4A38; --tile2-ico: #059669; --tile2-hover: #AEE3CC;
  --tile3: #FAE6BC; --tile3-txt: #6B4A12; --tile3-ico: #D97706; --tile3-hover: #F5D89E;

  /* Elevation */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 55, .04);
  --shadow: 0 4px 16px rgba(31, 36, 55, .06);
  --shadow-lg: 0 12px 32px rgba(31, 36, 55, .10);
  --shadow-gold: 0 8px 24px rgba(79, 70, 229, .16);

  /* Layout */
  --maxw: 1080px;
  --gutter: 24px;

  /* Type — one sans stack, larger scale */
  --font-display: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0; line-height: 1.22; font-weight: 700;
  font-family: var(--font-display); letter-spacing: -.005em; text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 96px 0; }
.section--soft { background: var(--cream); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--tight { padding: 60px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Eyebrow: a small uppercase label with a short hairline. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .85; }

.h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); letter-spacing: -.015em; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
.h3 { font-size: 1.17rem; font-weight: 700; letter-spacing: 0; }

.lead { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--ink-2); margin-top: 20px; }
.muted { color: var(--muted); }

/* ---------- Ornaments ---------- */
/* Hairline rule with a lozenge at its centre (legacy section heads). */
.gold-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.gold-rule::before, .gold-rule::after {
  content: ""; height: 1px; width: 96px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-rule i { display: block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* Heraldic crest — legacy decorative mark. */
.crest { width: 58px; height: 58px; margin-bottom: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-text {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .01em; color: var(--ink);
}
.brand-text span { color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: .94rem; font-weight: 550; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--gold-050); color: var(--gold-deep); }
.nav a.is-active { color: var(--gold-deep); background: var(--gold-050); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch { display: flex; align-items: center; gap: 2px; border-left: 1px solid var(--line); padding-left: 12px; margin-left: 4px; }
.lang-switch a { font-size: .85rem; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.lang-switch a:hover { background: var(--gold-050); color: var(--ink); }
.lang-switch a.is-active { color: var(--gold-deep); font-weight: 700; background: var(--gold-050); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .95rem; font-weight: 650; line-height: 1;
  padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
/* One clear primary action: solid indigo gradient, white type. */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 1px 2px rgba(31, 36, 55, .14), var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 2px 4px rgba(31, 36, 55, .16), 0 14px 34px rgba(79, 70, 229, .28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-050); border-color: var(--gold); transform: translateY(-1px); }
.btn-sm { padding: 10px 17px; font-size: .88rem; }

/* ---------- Hero ----------
   Learner-first first screen: one headline, one supporting line, one
   primary action. Left-aligned, large type, generous whitespace.
   No carousel and no decorative illustration panel. */
.hero {
  position: relative; padding: 112px 0 104px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--primary-soft) 100%);
  color: var(--ink); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-ring), transparent);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(760px 420px at 84% -12%, rgba(99, 102, 241, .10), transparent 62%),
    radial-gradient(560px 360px at 2% 4%, rgba(129, 140, 248, .08), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; }
.hero .h1 { color: var(--ink); font-size: clamp(2.4rem, 5.2vw, 4.05rem); line-height: 1.14; max-width: 900px; }
.hero .lead { color: var(--ink-2); font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.75; margin-top: 24px; max-width: 720px; }
.hero .eyebrow { color: var(--gold-deep); font-size: 13px; }
.hero .eyebrow::before { background: var(--gold-deep); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .btn-primary, .hero .btn-ghost { font-size: 1.05rem; padding: 16px 30px; }
.hero .btn-ghost { color: var(--ink); border-color: var(--border-strong); }
.hero .btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hover); }
.hero .gold-rule { justify-content: flex-start; max-width: 460px; }

/* ---------- Learner entry tiles ----------
   Three large, low-saturation colour blocks: light ground + dark type,
   28px titles, 18px body, 40px icons and a generous hit area. Even
   borders only — no single-side emphasis anywhere. */
.entry-section { padding: 88px 0 96px; background: var(--surface); }
.entry-head { max-width: 720px; margin-bottom: 40px; }
.entry-head .h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.entry-head p { color: var(--ink-2); font-size: 1.08rem; margin-top: 14px; }

.entry-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.entry-tile {
  position: relative; display: flex; flex-direction: column;
  min-height: 288px; padding: 32px 30px 30px;
  border-radius: var(--radius-lg); border: 1px solid rgba(31, 36, 55, .06);
  background: var(--tile1); color: var(--tile1-txt);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.entry-tile-2 { background: var(--tile2); color: var(--tile2-txt); }
.entry-tile-3 { background: var(--tile3); color: var(--tile3-txt); }
.entry-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.entry-tile-1:hover { background: var(--tile1-hover); }
.entry-tile-2:hover { background: var(--tile2-hover); }
.entry-tile-3:hover { background: var(--tile3-hover); }
.entry-tile:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.entry-tile-ico {
  width: 62px; height: 62px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .62); color: var(--tile1-ico);
  margin-bottom: 26px;
}
.entry-tile-2 .entry-tile-ico { color: var(--tile2-ico); }
.entry-tile-3 .entry-tile-ico { color: var(--tile3-ico); }
.entry-tile-ico svg { width: 40px; height: 40px; stroke-width: 1.6; }

.entry-tile h3 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; }
.entry-tile p { font-size: 1.06rem; line-height: 1.7; margin-top: 14px; opacity: .82; }
.entry-tile-go {
  position: absolute; right: 28px; bottom: 26px;
  font-size: 1.9rem; line-height: 1; opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
}
.entry-tile:hover .entry-tile-go { transform: translateX(5px); opacity: .9; }

/* ---------- Legacy hero visual / carousel ----------
   Retained after the first-screen rework (no renderer currently emits
   these classes); recoloured to indigo so no old brand colour remains. */
.hero-img { position: relative; }
.hero-img-panel {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #FFFFFF 0%, #FAFBFF 55%, #EEF2FF 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; display: grid; place-items: center;
}
.hero-img-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 78% -12%, rgba(99, 102, 241, .14), transparent 60%);
}
.hero-img-ph-glyph { position: absolute; width: 122px; height: 122px; color: rgba(99, 102, 241, .16); }
.hero-img-badge {
  position: relative; z-index: 1;
  width: 80px; height: 80px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 58%, var(--gold-deep));
  color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .28);
}
.hero-img-badge svg { width: 38px; height: 38px; }
.hero-img-cap {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  font-size: .95rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em;
}
.hero-img-float {
  position: absolute; top: -12px; right: -8px; z-index: 2;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-deep));
  color: #FFFFFF; font-weight: 700; font-size: .82rem;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .30); border: 1px solid rgba(255, 255, 255, .5);
}

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; }
.hero-slides { position: relative; }
.hero-slide { transition: opacity .5s ease; }
.hero-slide:not(.active) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-slide.active { position: relative; opacity: 1; }
.hero-carousel-nav { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-dot.active { background: var(--gold); transform: scale(1.18); }
.hero-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.hero-arrow:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-050); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* A soft indigo hairline across the top edge. */
.card::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .45), transparent);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow), var(--shadow-gold); border-color: rgba(99, 102, 241, .40); }
.card:hover::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.card-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 58%, var(--gold-deep));
  color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .26);
  margin-bottom: 18px;
}
.card-ico.accent {
  /* Neutral silver for alternating cards, so a long grid does not read
     as one uninterrupted wall of indigo. */
  background: linear-gradient(135deg, #F2F4F7, #D8DEE5 58%, #B9C2CD);
  color: var(--navy-3);
}
.card p { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* ---------- Big-image / colour-matrix tiles ----------
   Each tile carries its own --accent + --accent-soft, set inline by the
   renderer, so the grid reads as a bright colour matrix (à la the
   reference site's category tiles) while the brand chrome stays indigo. */
.tile {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--accent-soft); box-shadow: var(--shadow), 0 16px 34px var(--accent-soft); }
.tile-img {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-soft), #FFFFFF);
}
.tile-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 82% -12%, rgba(255, 255, 255, .6), transparent 56%); pointer-events: none;
}
.tile-ph-glyph { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; color: var(--accent); opacity: .42; }
.tile-badge {
  position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 12px 26px rgba(16, 22, 31, .16);
}
.tile-badge svg { width: 30px; height: 30px; }
.tile-illu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 22px 24px 26px; }
.tile-body h3 { font-size: 1.08rem; }
.tile-body p { color: var(--muted); font-size: .93rem; margin-top: 10px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; padding: 30px 26px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(99, 102, 241, .38); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 58%, var(--gold-deep));
  color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .45);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 18px; box-shadow: 0 4px 12px rgba(79, 70, 229, .24);
}
.step p { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { font-size: .85rem; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }

/* Stats — sans numerals in indigo. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 22px 16px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, .42), transparent);
}
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold-deep); letter-spacing: -.01em;
}
.stat span { font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 320px at 22% -10%, rgba(99, 102, 241, .10), transparent 60%),
    linear-gradient(135deg, #FFFFFF 0%, var(--primary-soft) 100%);
  color: var(--ink); border: 1px solid rgba(99, 102, 241, .22);
  border-radius: var(--radius-lg); padding: 62px 46px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); color: var(--ink); }
.cta-band p { margin-top: 14px; opacity: .9; max-width: 640px; margin-left: auto; margin-right: auto; color: var(--ink-2); }
.cta-band .btn { margin-top: 30px; }
.cta-band .btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.cta-band .btn-ghost:hover { background: var(--gold-050); border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Content pages ---------- */
.prose { max-width: 780px; }
.prose h3 { margin-top: 34px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-top: 12px; color: var(--ink-2); }
.prose ul { margin-top: 12px; }
.prose ul li { position: relative; padding-left: 20px; margin-top: 8px; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.page-hero { padding: 64px 0 14px; }
.page-hero .lead { max-width: 700px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item b {
  display: block; font-size: .8rem; color: var(--gold-deep); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px;
}
.contact-item a, .contact-item span { font-size: 1.02rem; color: var(--ink); font-weight: 550; }
.contact-item a:hover { color: var(--gold-deep); }

/* Even 1px border on all four sides — no single-side emphasis. */
.note {
  background: var(--primary-soft); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: .9rem; color: var(--ink-2); margin-top: 24px;
}

/* 404 */
.notfound { padding: 130px 0; text-align: center; }
.notfound .code {
  font-family: var(--font-display); font-size: 5rem; font-weight: 700;
  color: var(--gold); opacity: .5; line-height: 1; letter-spacing: -.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-muted); color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 26px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-brand .brand-text { color: var(--ink); }
.footer-brand .brand-text span { color: var(--gold-deep); }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer-col b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .92rem; color: var(--ink-2); padding: 5px 0; }
.footer-col a:hover { color: var(--gold-deep); }

.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--muted);
}
.icp { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); }
.icp a:hover { color: var(--gold-deep); }

/* 举报与投诉区块（公安部 / 网信办合规要求） */
.footer-report {
  margin-top: 40px; padding: 22px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.footer-report-head {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-deep); margin-bottom: 8px; font-weight: 600;
}
.footer-report-intro { font-size: .86rem; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.footer-report-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.report-link {
  display: inline-flex; align-items: center; font-size: .86rem; color: var(--ink-2);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-muted); transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.report-link:hover { color: var(--gold-deep); border-color: var(--primary); background: var(--primary-soft); }

/* 公安网安备案标识 */
.police-badge {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  text-decoration: none; padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface);
}
.police-badge:hover { color: var(--gold-deep); border-color: var(--primary); }
.police-badge-icon { color: var(--primary); flex: none; }
.police-badge span { font-size: .82rem; white-space: nowrap; }
.copyright { font-size: .82rem; color: var(--muted-2); }

/* ---------- Reveal ----------
   Hidden state is gated on html.js so content stays fully visible
   when JavaScript is unavailable; the IO script adds .in on scroll. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .entry-tiles { grid-template-columns: 1fr; }
  .entry-tile { min-height: 0; padding: 28px 26px 30px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav, .lang-switch { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 8px; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-3, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-band { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .entry-section { padding: 64px 0 72px; }
  .entry-tile h3 { font-size: 1.5rem; }
  .gold-rule::before, .gold-rule::after { width: 56px; }
}
