/* ============================================================
   《我的大学》攻略站 · 设计系统 v1
   ============================================================ */
:root {
  --bar-h: 44px;
  --bg: #f2f6fb;
  --bg-soft: #e9f0f8;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --ink: #0e1b2c;
  --ink-2: #4a5a70;
  --ink-3: #7c8ba1;
  --line: #e2eaf4;
  --line-2: #d3dfee;
  --brand: #1c6ef2;
  --brand-deep: #0f3f8f;
  --teal: #0aa6a0;
  --gold: #f59e0b;
  --rose: #e5555b;
  --violet: #7c5cff;
  --shadow-s: 0 1px 2px rgba(14, 27, 44, .05), 0 2px 8px -2px rgba(14, 27, 44, .06);
  --shadow-m: 0 2px 4px rgba(14, 27, 44, .04), 0 18px 36px -18px rgba(14, 27, 44, .22);
  --shadow-l: 0 30px 70px -30px rgba(13, 42, 80, .38);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --maxw: 1160px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0b121c;
  --bg-soft: #111b28;
  --surface: #131e2c;
  --surface-2: #182635;
  --ink: #e9f0f9;
  --ink-2: #a8b8cb;
  --ink-3: #7d8fa6;
  --line: #22303f;
  --line-2: #2c3d50;
  --brand: #4d93ff;
  --brand-deep: #9cc4ff;
  --teal: #2dd4bf;
  --gold: #fbbf24;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-m: 0 18px 36px -18px rgba(0, 0, 0, .6);
  --shadow-l: 0 30px 70px -30px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.15em; }
li + li { margin-top: .35em; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: .1em .4em; border-radius: 6px; }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 880px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none; overflow: hidden;
  background: var(--bg-soft); display: block;
  box-shadow: 0 6px 14px -8px rgba(13, 43, 82, .7);
  border: 1px solid rgba(13, 43, 82, .08);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .14em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: .18s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.on { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); display: grid; place-items: center;
  cursor: pointer; transition: .18s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
  width: 214px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); padding: 0 12px 0 34px; font-size: 14px;
  font-family: inherit; outline: none; transition: .2s;
}
.search-box input:focus { width: 230px; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--surface); }
.search-box svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.js-msearch, .ms-close, .ms-backdrop { display: none; }
.search-pop {
  position: absolute; top: 46px; right: 0; width: 340px; max-height: 60vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-m); padding: 8px; display: none; z-index: 70;
}
.search-pop.on { display: block; }
.search-pop a { display: block; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; }
.search-pop a:hover { background: var(--bg-soft); text-decoration: none; }
.search-pop .sp-t { display: block; font-weight: 600; }
.search-pop .sp-d { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 1px; }
.search-pop .sp-more {
  display: block; width: 100%; text-align: center; padding: 9px;
  border: 0; border-top: 1px solid var(--line); background: transparent;
  color: var(--brand); font-size: 12.5px; cursor: pointer;
}
.search-pop .empty { padding: 12px; color: var(--ink-3); font-size: 13px; }

.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
}
.drawer.on { display: block; }
.drawer-mask { position: absolute; inset: 0; background: rgba(8, 18, 32, .45); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(84vw, 320px);
  background: var(--surface); border-left: 1px solid var(--line); padding: 18px;
  display: flex; flex-direction: column; gap: 4px; overflow: auto;
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .6; } }
.drawer-panel a { padding: 12px 12px; border-radius: 12px; color: var(--ink); font-size: 15px; }
.drawer-panel a:hover { background: var(--bg-soft); text-decoration: none; }
.drawer-panel .dr-title { font-size: 12px; letter-spacing: .12em; color: var(--ink-3); padding: 12px 12px 4px; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 10px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(900px 380px at 78% -10%, rgba(60, 220, 205, .45), transparent 60%),
    radial-gradient(700px 340px at 8% 110%, rgba(255, 176, 74, .28), transparent 60%),
    linear-gradient(135deg, #0d2b52 0%, #14509b 48%, #0a7d87 100%);
  color: #fff; padding: 54px 48px; box-shadow: var(--shadow-l);
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 78%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .78); font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .6; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 14px 0 16px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ffd479, #7df0dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 16.5px; color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 13px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: .18s; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.grid > .btn, .card > .btn { justify-self: start; align-self: start; }
.btn-primary { background: #fff; color: #0d2b52; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-soft { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border-color: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-stats span {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #eaf6ff;
}
.hero-visual { position: relative; display: flex; justify-content: center; min-width: 0; }
.phone {
  width: 300px; max-width: 100%; flex: 0 0 auto; border-radius: 30px; padding: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12));
  border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  transform: rotate(-2.5deg); transition: .4s;
}
.phone:hover { transform: rotate(0) translateY(-4px); }
.phone img { width: 100%; height: auto; border-radius: 24px; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, .93); color: #0e1b2c;
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .55);
  font-size: 12.5px; line-height: 1.35; backdrop-filter: blur(8px);
}
.float-card b { display: block; font-size: 16px; }
.float-card small { color: #6b7b90; font-size: 11px; letter-spacing: .06em; }
.fc-1 { left: -6px; top: 12%; }
.fc-2 { right: -8px; bottom: 16%; }

/* ---------- 通用区块 ---------- */
.section { padding: 54px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head .kicker {
  display: inline-block; font-size: 12px; letter-spacing: .18em; font-weight: 700;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-s); padding: 24px;
}
.card-pad-s { padding: 18px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 18px 16px; }
.stat .num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .num small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.stat .lbl { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.stat.s-brand .num { color: var(--brand); }
.stat.s-teal .num { color: var(--teal); }
.stat.s-gold .num { color: var(--gold); }
.stat.s-rose .num { color: var(--rose); }

/* 阶段卡 */
.phase {
  position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: .22s;
}
.phase:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.phase-media { position: relative; height: 176px; overflow: hidden; background: var(--bg-soft); }
.phase-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.02); transition: .5s; }
.phase:hover .phase-media img { transform: scale(1.06); }
.phase-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 20, 36, .45)); }
.phase-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.phase-body h3 { font-size: 19px; font-weight: 700; }
.phase-body .range { font-size: 12.5px; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.phase-body p { color: var(--ink-2); font-size: 14.5px; }
.phase-body ul { color: var(--ink-2); font-size: 14px; }
.phase-link { margin-top: auto; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.phase .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0d2b52;
}

/* 循环图 */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.loop-item {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 18px 16px;
}
.loop-item::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; color: var(--brand); font-weight: 700;
}
.loop-item h4 { font-size: 15.5px; margin: 6px 0 4px; }
.loop-item p { font-size: 13.5px; color: var(--ink-3); }
.loop-item:not(:last-child)::after {
  content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--line-2); font-size: 16px; z-index: 2;
}

/* 系统磁贴 */
.tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: .18s; color: inherit;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-m); }
.tile-ico {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-size: 20px; background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.tile h4 { font-size: 15.5px; }
.tile p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.tile .lvl { font-size: 11.5px; color: var(--brand); font-weight: 700; letter-spacing: .06em; }

/* 提示块 */
.callout {
  display: flex; gap: 12px; padding: 15px 18px; border-radius: var(--r-m);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  font-size: 14.5px; color: var(--ink-2);
}
.callout .ci { flex: none; font-size: 17px; line-height: 1.5; }
.callout b { color: var(--ink); }
.callout.tip { background: color-mix(in srgb, var(--teal) 8%, var(--surface)); border-color: color-mix(in srgb, var(--teal) 22%, var(--line)); }
.callout.warn { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 26%, var(--line)); }
.callout.danger { background: color-mix(in srgb, var(--rose) 8%, var(--surface)); border-color: color-mix(in srgb, var(--rose) 22%, var(--line)); }
.callout.plain { background: var(--surface-2); border-color: var(--line); }

/* 步骤 */
.steps { display: grid; gap: 16px; counter-reset: st; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(150deg, #2f7bff, #0aa6a0); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 15px; box-shadow: 0 8px 18px -10px rgba(28, 110, 242, .9);
}
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p, .step ul { color: var(--ink-2); font-size: 14.8px; }
.step > * + * { margin-top: 6px; }

/* 表格 */
.table-wrap {
  max-width: 100%; overflow: auto; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-s); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
thead th {
  position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 700;
  padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13.5px;
  color: var(--ink-2); letter-spacing: .02em; z-index: 1;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hi { background: color-mix(in srgb, var(--gold) 14%, transparent); font-weight: 600; }

/* 图注 */
.figure { margin: 0; }
.figure img {
  width: 100%; max-width: 340px; height: auto; margin: 0 auto; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-m); background: var(--bg-soft);
}
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center; }
.figure.wide img { max-width: 470px; height: auto; }
.figure-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.figure-row .figure { flex: 1 1 220px; max-width: 300px; }

/* 文章布局 */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 34px 0 70px; align-items: start; }
.doc > *, .article > * { min-width: 0; }
.article { min-width: 0; max-width: 100%; }
.toc {
  position: sticky; top: 92px; font-size: 14px;
  border-left: 2px solid var(--line); padding-left: 16px;
}
.toc .toc-t { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); border-radius: 6px; }
.toc a:hover { color: var(--brand); text-decoration: none; }
.toc a.on { color: var(--brand); font-weight: 700; }
.article > * + * { margin-top: 22px; }
.article h2 {
  font-size: 26px; font-weight: 800; padding-top: 14px; scroll-margin-top: 90px;
}
.article h2 .h2n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
  font-size: 14px; margin-right: 10px; vertical-align: 2px;
}
.article h3 { font-size: 19px; font-weight: 700; margin-top: 28px; scroll-margin-top: 90px; }
.article h4 { font-size: 16px; font-weight: 700; margin-top: 20px; }
.article p, .article li { color: var(--ink-2); font-size: 15.5px; }
.article strong { color: var(--ink); }
.lead { font-size: 17px !important; color: var(--ink-2) !important; }
.article .card, .article .table-wrap, .article .callout, .article .figure, .article .grid { margin-top: 18px; }

/* 页头 */
.page-head {
  padding: 30px 0 6px;
}
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.page-head .sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 46em; }
.page-head .chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
  cursor: pointer; transition: .16s; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); text-decoration: none; }
.chip.on { background: var(--brand); color: #fff; border-color: transparent; }

/* FAQ 折叠 */
details.acc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 4px 18px; transition: .18s;
}
details.acc[open] { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-s); }
details.acc + details.acc { margin-top: 10px; }
details.acc summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; gap: 10px; align-items: flex-start;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 18px; line-height: 1; }
details.acc[open] summary::after { content: "−"; }
details.acc .acc-body { padding: 0 0 16px; color: var(--ink-2); font-size: 14.8px; }
details.acc .acc-body > * + * { margin-top: 8px; }

/* 事件列表 */
.ev-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.ev-tools input {
  flex: 1 1 220px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); padding: 0 14px; font-family: inherit; font-size: 14.5px; outline: none;
}
.ev-tools input:focus { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.ev-count { font-size: 13px; color: var(--ink-3); }
.ev-list { display: grid; gap: 12px; }
.ev {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px;
}
.ev-h { display: flex; align-items: baseline; gap: 10px; }
.ev-h .id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ev-h h4 { font-size: 16px; }
.ev-desc { color: var(--ink-2); font-size: 14.3px; margin-top: 6px; }
.ev-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.ev-opts { margin-top: 10px; display: grid; gap: 6px; }
.ev-opt { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.ev-opt .op {
  flex: none; padding: 1px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.ev-opt .eff { color: var(--ink-2); }
.ev-opt .eff b { color: var(--ink); }
.ev-opt .eff .good { color: var(--teal); font-weight: 600; }
.ev-opt .eff .bad { color: var(--rose); font-weight: 600; }
/* 事件标签与推荐 */
.ev-tag {
  font-size: 11px; padding: 1px 7px; border-radius: 6px; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap;
}
.ev-h { flex-wrap: wrap; }
.ev-opt.is-best { background: color-mix(in srgb, var(--teal) 7%, transparent); border-radius: 8px; padding: 4px 8px; margin: 0 -8px; }
.ev-best {
  flex: none; align-self: center; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--teal); padding: 2px 7px; border-radius: 6px; letter-spacing: .04em;
  cursor: help;
}
.eff .good, .eff .bad { white-space: nowrap; }
.eff .sub {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  padding: 0 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px;
}
.eff br { content: ""; display: block; margin-top: 3px; }
mark { background: color-mix(in srgb, var(--gold) 40%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }

/* 计算器 */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; font-weight: 600; }
.calc input, .calc select {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: 0 12px; font-family: inherit; font-size: 15px; outline: none;
}
.calc input:focus, .calc select:focus { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.calc-out { margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 86px 1fr 132px; gap: 12px; align-items: center; font-size: 14px; margin-top: 10px; }
.bar-row > span:first-child { white-space: nowrap; }
.bar { height: 9px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f7bff, #0aa6a0); }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13.5px; }
.bar-row .val.ok { color: var(--teal); font-weight: 700; }

details.acc[id^='q'] { scroll-margin-top: 92px; }

/* FAQ 本页筛选 */
.faq-filter {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.faq-filter svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.faq-filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; }
.faq-filter input::placeholder { color: var(--ink-3); }
.faq-count { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

/* 术语表 */
.glossary h2 {
  font-size: 22px; margin-top: 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.glossary h2:first-of-type { margin-top: 8px; }
.gl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.gl-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 16px 18px; scroll-margin-top: 90px;
}
.gl-item:target { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.gl-item h3 { font-size: 16.5px; margin: 0 0 6px; }
.gl-item p { margin: 0; font-size: 14.2px; color: var(--ink-2); }
.gl-item .gl-note {
  margin-top: 8px; font-size: 13.4px; color: var(--ink-3);
  border-left: 2px solid var(--line-2); padding-left: 10px;
}
.gl-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }

/* 阅读进度 */
.read-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-3); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.read-chip b { color: var(--brand); }
.toc a.read::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* 继续阅读 */
.read-next { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.rn-head { font-size: 11px; letter-spacing: .18em; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; }
.read-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rn-head { grid-column: 1 / -1; margin-bottom: 0; }
.rn-item {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 15px; align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: .18s;
}
.rn-item b { font-size: 15px; color: var(--ink); }
.rn-item span { font-size: 12.8px; color: var(--ink-3); }
.rn-item:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-s); }
@media (max-width: 640px) { .read-next { grid-template-columns: 1fr; gap: 8px; } }

/* 支持本站 */
.support {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px;
}
.support-t {
  font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); font-weight: 700;
}
.support a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.8px; color: var(--ink-2);
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  transition: .16s;
}
.support a:hover {
  color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  text-decoration: none; transform: translateY(-1px);
}
.support svg { width: 14px; height: 14px; flex: none; }

.foot-support { color: var(--ink-3); }
.foot-support a { display: inline; color: var(--ink-2); font-size: 12.5px; padding: 0; }
.foot-support a:hover { color: var(--brand); }

.support-card {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--surface-2);
}
.support-card h3 { font-size: 16.5px; margin: 0 0 4px; }
.support-card p { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.support-card .support { margin-top: 0; }

/* 底部 */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; padding: 40px 0 calc(var(--bar-h) + 26px); }
.footer h4 { font-size: 13px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; }
.footer a { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--brand); }
.footer-note {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  min-height: var(--bar-h); padding: 8px 22px 8px 20px; margin: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -22px rgba(13, 43, 82, .5);
  color: var(--ink-3); font-size: 12.2px;
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  align-items: center; justify-content: space-between;
}
.footer .foot-support { white-space: nowrap; flex: 0 0 auto; color: var(--ink-3); font-size: 12.2px; }
.footer .foot-support a { display: inline; padding: 0; font-size: inherit; color: var(--ink-2); font-weight: 600; }
.footer .foot-support .fs-item { white-space: nowrap; }
.footer .foot-support .fs-sep { margin: 0 8px; color: var(--line-2); }

/* 阅读进度 */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, #2f7bff, #0aa6a0); z-index: 100; width: 0; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 18px; bottom: calc(var(--bar-h) + 18px); width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50;
}
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); color: var(--brand); }

/* 响应式 */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero-card { padding: 38px 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .phone { width: 200px; }
  .fc-1, .fc-2 { display: none; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; gap: 22px; padding-top: 20px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface);
    padding: 10px 12px; display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .toc::-webkit-scrollbar { display: none; }
  .toc .toc-t { margin: 0 4px 0 0; flex: none; font-size: 10.5px; }
  .toc a { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop-item:nth-child(2)::after { display: none; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.7; }
  .topbar-in { height: 60px; gap: 12px; }
  .search-box { display: none; }
  .js-msearch { display: grid; }
  .ms-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(9, 22, 42, .34); }
  body.ms-open .ms-backdrop { display: block; }
  body.ms-open .topbar { z-index: 130; }
  body.ms-open .search-box {
    display: flex; position: fixed; z-index: 120; left: 12px; right: 12px; top: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 6px 10px 6px 34px; box-shadow: var(--shadow-l);
  }
  body.ms-open .search-box input { width: 100%; }
  body.ms-open .search-pop {
    display: block; position: fixed; z-index: 120; left: 12px; right: 12px; top: 64px;
    max-height: calc(100dvh - 150px); overflow-y: auto; box-shadow: var(--shadow-l);
  }
  .ms-close {
    display: none; flex: none; font-size: 13px; color: var(--ink-3);
    padding: 4px 8px; border: 0; background: none; cursor: pointer;
  }
  body.ms-open .ms-close { display: block; }
  .hero { padding-top: 16px; }
  .hero-card { padding: 26px 20px 26px; border-radius: 24px; }
  .phone { width: 168px; padding: 6px; border-radius: 24px; }
  .phone img { border-radius: 19px; }
  .hero-visual { margin-bottom: 2px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15.2px; }
  .btn { height: 44px; padding: 0 16px; font-size: 14.5px; flex: 1 1 auto; justify-content: center; }
  .hero-actions { gap: 10px; }
  .hero-stats span { font-size: 12px; padding: 5px 10px; }
  .section { padding: 38px 0; }
  .g-2, .g-3, .g-4, .gl-grid { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .loop-item::after { display: none !important; }
  .card { padding: 18px; border-radius: 18px; }
  .page-head .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; -webkit-overflow-scrolling: touch; }
  .page-head .chips::-webkit-scrollbar { display: none; }
  .article h2 { font-size: 22px; }
  .article h2 .h2n { width: 26px; height: 26px; font-size: 13px; }
  .article h3 { font-size: 17.5px; }
  .article p, .article li { font-size: 15px; }
  .table-wrap { border-radius: 14px; }
  table { font-size: 13.5px; min-width: 480px; }
  thead th, tbody td { padding: 9px 11px; }
  .toc a { font-size: 13.5px; margin-right: 12px; }
  .figure img { max-width: 100%; }
  .bar-row { grid-template-columns: 62px 1fr 118px; gap: 8px; font-size: 12.6px; }
  .footer-in { grid-template-columns: 1fr; gap: 8px; padding-bottom: calc(var(--bar-h) + 20px); }
  .to-top { right: 12px; bottom: calc(var(--bar-h) + 14px); }
  :root { --bar-h: 48px; }
  .footer-note { padding: 7px 14px; gap: 2px 10px; justify-content: space-between; font-size: 11.4px; }
  .footer-note .fn-mid, .footer-note .fn-name { display: none; }
  .footer .foot-support { font-size: 11.4px; }
  .footer .foot-support .fs-sep { margin: 0 5px; }
  .step { padding-left: 44px; }
  .step::before { width: 30px; height: 30px; font-size: 14px; }
}
/* 打印 */
@media print {
  .topbar, .drawer, .footer, .to-top, .progress, .toc, .read-chip,
  .page-head .chips, .hero-actions, .ev-tools, .js-enroll, .js-calc,
  .article .btn, .search-box, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.55; }
  .wrap, .wrap-narrow { max-width: none; padding: 0; }
  .doc { display: block; padding: 0; }
  .card, .table-wrap, .callout, details.acc, .gl-item, .ev {
    break-inside: avoid; box-shadow: none !important; border-color: #b9b9b9 !important;
  }
  .article h2 { break-after: avoid; font-size: 16pt; border-color: #999; }
  .article h2::after { background: #000; }
  .article h3 { break-after: avoid; font-size: 13pt; }
  table { font-size: 9.5pt; min-width: 0; }
  thead th { background: #eee !important; color: #000; }
  a { color: #000; text-decoration: none; }
  img { max-width: 70% !important; }
  .footer-note, .footer-in { display: none !important; }
  details.acc { border: none; padding: 0; display: block; }
  details.acc > summary ~ * { display: block !important; }
  details.acc .acc-body { display: block !important; }
  details.acc summary { padding: 6px 0; }
  details.acc summary::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 首页 banner 攻略速达 */
.hero-topics {
  position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 18px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.ht-label { flex: 0 0 118px; padding-top: 2px; }
.ht-label span { display: block; font-size: 12px; letter-spacing: .12em; font-weight: 700; color: #ffd479; }
.ht-label small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: rgba(255, 255, 255, .52); }
.ht-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ht-grid a {
  display: block; padding: 8px 11px; border-radius: 10px; text-decoration: none;
  background: rgba(255, 255, 255, .075); border: 1px solid rgba(255, 255, 255, .13);
  transition: .18s;
}
.ht-grid a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.ht-grid b { display: block; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.35; }
.ht-grid small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .58); }
@media (max-width: 980px) {
  .hero-topics { display: block; }
  .ht-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-top: 0; }
  .ht-label small { margin-top: 0; }
}
@media (max-width: 640px) {
  .hero-topics { margin-top: 18px; padding-top: 14px; }
  .ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ht-grid a { padding: 7px 9px; }
  .ht-grid b { font-size: 12.5px; }
  .ht-grid small { font-size: 10.5px; }
}
