/* ==========================================================================
   喵气刷题 · 官网首页
   1. 设计令牌 (Design Tokens)
   2. 基础重置与排版
   3. 通用组件（按钮 / 卡片 / 标签 / 区块头）
   4. 顶部导航
   5. 首屏 + 平板仿真界面
   6. 四层解析
   7. Pad 工作台
   8. 四个模块
   9. 下载 CTA
   10. 页脚
   11. 响应式断点
   12. 动效与无障碍
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 主色 */
  --green-900: #0A4630;
  --green-800: #0E6647;
  --green-700: #117650;
  --green-600: #1F8A62;
  --mint-500:  #49B98A;

  /* 辅助 / 模块色（与 App 入口固定色一致） */
  --coral:  #FF7954;
  --violet: #7F86FF;
  --amber:  #FFB167;
  --coral-ink:  #C4573A;
  --violet-ink: #5B63D6;
  --amber-ink:  #B57C21;

  /* 中性 */
  --ink:      #10241B;
  --ink-2:    #3C4F45;
  --muted:    #5B6F66;
  --muted-2:  #7B8C83;
  --bg:       #F6F9F7;
  --card:     #FFFFFF;
  --line:     #E6EFEA;
  --line-soft:#EEF4F1;

  /* 圆角 */
  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-xs: 10px;
  --r-pill: 999px;

  /* 间距 */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-26: 104px;

  /* 版心 */
  --maxw: 1440px;
  --gutter: 96px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16, 36, 27, .05);
  --shadow-md: 0 10px 26px -12px rgba(16, 36, 27, .14);
  --shadow-lg: 0 30px 54px -14px rgba(6, 30, 22, .36);

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC",
               "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-latin: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

/* ---------- 2. 基础重置与排版 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 900; letter-spacing: -.01em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* 锚点跳转时避开吸顶导航 */
section[id], footer[id] { scroll-margin-top: 96px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-700);
  color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--mint-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-solid-light { background: #fff; color: var(--green-800); box-shadow: 0 12px 28px -8px rgba(6, 30, 22, .28); font-weight: 600; }
.btn-solid-light:hover { box-shadow: 0 16px 34px -10px rgba(6, 30, 22, .34); }

/* 区块头 */
.sec-head { max-width: 900px; margin-bottom: var(--sp-10); }
.sec-head .eyebrow { margin-bottom: var(--sp-4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: #EAF6F0;
  color: var(--green-700);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.sec-title { font-size: 44px; line-height: 1.32; margin-bottom: var(--sp-4); }
.sec-title--md { font-size: 40px; }
.sec-title--sm { font-size: 40px; }
.sec-title--sm span { display: block; }

.sec-sub {
  max-width: 680px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}

/* 区块外壳 */
.section { padding-block: var(--sp-26); }
.section--mint  { background: var(--bg); }
.section--white { background: #fff; }

/* 卡片 */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D9E8DF; }
.card h3 { font-size: 18px; font-weight: 700; }
.card > p { color: var(--muted); font-size: 13.5px; line-height: 1.72; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: var(--sp-1);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box--green  { background: #EAF6F0; }
.icon-box--coral  { background: #FFEFEA; }
.icon-box--violet { background: #F0F0FF; }
.icon-box--amber  { background: #FFF6E6; }

.card-ask  { font-size: 12.5px; font-weight: 500; line-height: 1.6; }
.card-ask--coral  { color: var(--coral-ink); }
.card-ask--green  { color: var(--green-600); }
.card-ask--violet { color: var(--violet-ink); }
.card-ask--amber  { color: var(--amber-ink); }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 网格 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

/* 标签 */
.chip-tag {
  padding: 7px 14px;
  border: 1px solid #DEE9E3;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* 与首屏渐变起始色一致，保证导航文字（白色）有足够对比度 */
  background: var(--green-900);
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 70, 48, .92);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 10px 30px -18px rgba(6, 30, 22, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  height: 84px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: block; width: 34px; height: 34px; }
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: 32%; }
.brand-name { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #CFE9DD;
  transition: color .18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: #fff; border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  background: rgba(10, 70, 48, .97);
}
.mobile-nav a { color: #DCEFE5; font-size: 15px; font-weight: 500; }
.mobile-nav .btn { align-self: flex-start; margin-top: var(--sp-2); }
.mobile-nav:not([hidden]) { display: flex; }

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A4630 0%, #117650 60%, #1C8C66 100%);
  padding-block: 44px 92px;
}
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero-glow--a {
  width: 560px; height: 560px;
  right: -80px; top: 180px;
  background: radial-gradient(circle, rgba(110, 224, 174, .34) 0%, rgba(110, 224, 174, 0) 70%);
}
.hero-glow--b {
  width: 620px; height: 620px;
  left: -180px; top: -220px;
  background: radial-gradient(circle, rgba(140, 230, 190, .26) 0%, rgba(140, 230, 190, 0) 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14);
  color: #E4F5EB;
  font-size: 13px;
  font-weight: 500;
}

.hero-title {
  margin-block: var(--sp-5) var(--sp-4);
  font-size: 62px;
  line-height: 1.26;
  color: #fff;
}
.hero-title span { display: block; }
.hero-title em { display: block; font-style: normal; color: #A9E7C6; }

.hero-sub {
  max-width: 520px;
  color: #C2E3D4;
  font-size: 17px;
  line-height: 1.78;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--sp-6); }
.hero-meta { margin-top: var(--sp-5); color: #A9CDBA; font-size: 13px; }

/* 平板外壳 */
.pad {
  width: 100%;
  max-width: 592px;
  margin-inline: auto;
  padding: 13px;
  background: #10221A;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.pad-screen {
  display: flex;
  height: 440px;
  background: #fff;
  border-radius: 23px;
  overflow: hidden;
}

/* 栏 1 · 题号栏 */
.pad-rail {
  flex: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 13px 6px;
  background: #fff;
  border-right: 1px solid var(--line-soft);
}
.rail-label  { font-family: var(--font-latin); font-size: 8.5px; font-weight: 600; color: #9AA9A1; letter-spacing: .08em; }
.rail-number { font-family: var(--font-latin); font-size: 11px; font-weight: 700; color: var(--ink); }
.rail-dot { width: 24px; height: 24px; }
.rail-dot svg { width: 100%; height: 100%; }

/* 栏 2 · 作答区 */
.pad-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
  background: #FBFCFB;
  overflow: hidden;
}
.pad-main .chip {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid #DEE9E3;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}
.q-text { font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--ink); }

.q-hint {
  padding: 7px 9px;
  border: 1px solid #FAD999;
  border-radius: 9px;
  background: #FFF8E9;
  color: #8A6A2F;
  font-size: 9.5px;
  line-height: 1.7;
}

.opt {
  padding: 8px 10px;
  border: 1px solid #E5EBE8;
  border-radius: 11px;
  background: #fff;
}
.opt-head { display: flex; align-items: center; gap: 7px; }
.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  border-radius: var(--r-pill);
  background: #F0F3F1;
  color: #81948A;
  font-family: var(--font-latin);
  font-size: 9.5px;
  font-weight: 700;
}
.opt-word { font-size: 11px; font-weight: 500; color: #3C4F45; }
.opt-note { margin-top: 5px; font-size: 9.5px; line-height: 1.6; color: #7B8C83; }

.opt.is-correct { background: #EAF6F0; border-color: #4ABB8A; }
.opt.is-correct .opt-letter { background: #1F8A62; color: #fff; }
.opt.is-correct .opt-word { color: #0F5F42; font-weight: 600; }
.opt.is-correct .opt-note { color: #4E6C5E; }

.opt.is-picked { background: #FFEFEA; border-color: #FF7954; }
.opt.is-picked .opt-letter { background: var(--coral); color: #fff; }
.opt.is-picked .opt-word { color: #8C3A26; font-weight: 600; }
.opt.is-picked .opt-note { color: #A56A57; }

.pad-bar { display: flex; align-items: center; gap: 7px; margin-top: auto; }
.mini-btn {
  padding: 7px 14px;
  border: 1px solid #E5EBE8;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}
.mini-btn.is-primary { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 600; padding-inline: 16px; }

/* 栏 3 · 复盘栏 */
.pad-review {
  flex: 0 0 214px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 11px;
  background: #fff;
  border-left: 1px solid var(--line-soft);
  overflow: hidden;
}
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rv-title { font-size: 10px; font-weight: 600; color: var(--ink); }
.rv-pill {
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: #EAF6F0;
  color: var(--green-700);
  font-size: 8.5px;
  font-weight: 500;
}
.rv-card {
  padding: 8px 9px;
  border: 1px solid #E5EBE8;
  border-radius: var(--r-xs);
  background: #F6FAF8;
}
.rv-card-title { display: block; margin-bottom: 4px; font-size: 9.5px; font-weight: 600; }
.rv-card p { font-size: 9px; line-height: 1.6; color: var(--muted); }
.rv-card--green  .rv-card-title { color: var(--green-700); }
.rv-card--coral  { background: #FFF8F5; border-color: #FCE2DA; }
.rv-card--coral  .rv-card-title { color: #D4553A; }
.rv-card--coral  p { color: #7C5C52; }
.rv-card--violet { background: #F7F8FF; border-color: #E8E9FF; }
.rv-card--violet .rv-card-title { color: var(--violet-ink); }
.rv-chip {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #D1D3FF;
  border-radius: 6px;
  background: #fff;
  color: var(--violet-ink);
  font-size: 8.5px;
  font-weight: 500;
}

/* ---------- 6. 四层解析 · 错因带 ---------- */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.band-copy h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.band-copy p  { color: var(--muted-2); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- 7. Pad 工作台 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 72px;
  align-items: center;
}
.split-copy .eyebrow { margin-bottom: var(--sp-4); }
.split-copy .sec-title { margin-bottom: var(--sp-4); }
.split-copy .sec-sub { max-width: 480px; margin-bottom: var(--sp-6); }

.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullets li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #EAF6F0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10.3l2.6 2.6 5-5.4' stroke='%23117650' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.diagram {
  padding: var(--sp-6);
  background: #F8FBF9;
  border: 1px solid #E2EBE6;
  border-radius: var(--r-lg);
}
.diagram-label { display: block; margin-bottom: var(--sp-4); color: var(--muted-2); font-size: 12px; font-weight: 600; }
.diagram-cols { display: flex; gap: 8px; height: 200px; }
.dcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-sm);
}
.dcol--rail   { flex: 0 0 62px;  background: #EAF6F0; }
.dcol--main   { flex: 1 1 auto;  background: #F1F7F4; }
.dcol--review { flex: 0 0 160px; background: #F0F0FF; }
.dcol-name { font-size: 11px; font-weight: 600; }
.dcol--rail   .dcol-name { font-size: 10.5px; color: var(--green-700); }
.dcol--main   .dcol-name { color: #4E8A6B; }
.dcol--review .dcol-name { color: var(--violet-ink); }
.dcol-size { font-family: var(--font-latin); font-size: 9.5px; color: #7FA995; }
.dcol--review .dcol-size { color: #8E93E0; }

.diagram-cap { margin-top: var(--sp-4); color: #9AA9A1; font-size: 11.5px; line-height: 1.7; }

/* ---------- 8. 四个模块 · 金句带 ---------- */
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  padding: 20px 26px;
  background: var(--green-700);
  border-radius: 18px;
}
.strip-text { color: #fff; font-size: 16px; font-weight: 600; }
.strip-path { color: #A8E6C6; font-size: 13px; }

/* ---------- 9. 下载 CTA ---------- */
.cta-band {
  padding-block: 72px;
  background: linear-gradient(90deg, #117650 0%, #17875B 100%);
}
.cta-inner {
  display: flex;
  align-items: center;
}
.cta-copy h2 { color: #fff; font-size: 34px; line-height: 1.35; margin-bottom: var(--sp-3); }
.cta-copy p  { color: #A8E6C6; font-size: 14px; }

/* ---------- 10. 页脚 ---------- */
.site-footer {
  padding-block: var(--sp-16) 0;
  background: linear-gradient(135deg, #07281B 0%, #0A3222 100%);
}
.foot-top {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.foot-brand { flex: 0 0 320px; }
.brand-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--sp-4); }
.foot-brand .brand-mark { width: 32px; height: 32px; }
.brand-tag { color: #9FCBB6; font-size: 14px; line-height: 1.8; max-width: 260px; }

.foot-col { display: flex; flex-direction: column; gap: 13px; flex: 0 0 160px; }
.foot-col:last-child { flex: 1 1 auto; }
.foot-col-title {
  color: #7FBBA0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.foot-col a, .foot-col > span:not(.foot-col-title) { color: #C2DFCF; font-size: 14px; transition: color .18s ease; }
.foot-col a:hover { color: #fff; }
.foot-dim { color: #8FBAA4 !important; }
.foot-col > span.foot-org { color: #E8F4EE; font-weight: 500; }

.foot-divider { height: 1px; margin-block: var(--sp-12); background: rgba(255, 255, 255, .12); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-8);
  color: #6E9B86;
  font-size: 13px;
}
.foot-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.foot-icp { color: #6E9B86; transition: color .18s ease; }
.foot-icp:hover { color: #9FCBB6; }
.foot-legal { display: flex; gap: var(--sp-6); }
.foot-legal a { color: #6E9B86; }
.foot-legal a:hover { color: #9FCBB6; }

/* ---------- 11. 响应式断点 ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-title { font-size: 52px; }
  .split { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
}

@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .section { padding-block: 72px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-title { font-size: 46px; }
  .hero-copy { max-width: 640px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .sec-title { font-size: 34px; }
  .sec-title--md, .sec-title--sm { font-size: 32px; }
  .band, .strip { flex-direction: column; align-items: flex-start; }
  .foot-top { flex-wrap: wrap; gap: 40px; }
  .foot-brand { flex: 1 1 100%; }
  .foot-col { flex: 1 1 140px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header { background: rgba(10, 70, 48, .92); }
  .pad-screen { height: 400px; }
  .pad-review { flex-basis: 180px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding-block: 56px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-block: 24px 56px; }
  .hero-title { font-size: 34px; }
  .hero-sub, .sec-sub { font-size: 15px; }
  .btn { height: 44px; font-size: 15px; padding-inline: 20px; }
  .pad { padding: 9px; border-radius: 22px; }
  .pad-screen { height: 360px; border-radius: 16px; }
  .pad-review { display: none; }        /* 窄屏收起复盘栏，保留题号 + 作答 */
  .cta-copy h2 { font-size: 26px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

/* ---------- 12. 动效与无障碍 ---------- */
/* 入场动画：仅在 JS 可用时由 <html class="js"> 开启。
   脚本不执行时内容保持默认可见，避免整页空白。 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
