/* ============================================================
   奥罕宝典 · 视差滚动 / dark 主题
   ============================================================ */

/* Inter · 本地自托管（latin 子集），离线可用 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

/* 蒙文原题字体：字形为横排旋转字形，PUA 编码，只能用它渲染 */
@font-face {
  font-family: 'BagaBichimel';
  src: url('../fonts/BagaBichimel.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* Colors */
  --color-deep-navy: #1e3a5f;
  --color-snow: #f8fafc;
  --color-primary-blue: #3b82f6;
  --color-pale-blue: #93c5fd;
  --color-sky: #0ea5e9;
  --color-violet: #c559f0;

  --page-bg: #0b1826;
  --page-bg-2: #0a1420;
  --ink: #1e293b;
  --ink-soft: #475569;
  --on-dark: #e9f1fb;
  --on-dark-soft: rgba(233, 241, 251, 0.68);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-display: 80px;
  --leading-display: 1.02;
  --tracking-display: -0.03em;
  --text-heading-lg: 56px;
  --leading-heading-lg: 1.05;
  --tracking-heading-lg: -0.025em;
  --text-heading: 32px;
  --text-subheading: 20px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-label: 12px;
  --tracking-label: 0.08em;

  /* Spacing */
  --spacing-8: 8px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-96: 96px;
  --spacing-128: 128px;

  /* Layout */
  --page-max-width: 1120px;
  --card-padding: 48px;
  --radius-cards: 24px;
  --radius-buttons: 999px;
  --radius-inputs: 12px;

  /* Surfaces */
  --surface-navy-veil: rgba(30, 58, 95, 0.8);
  --surface-snow-card: rgba(248, 250, 252, 0.9);

  /* Elevation */
  --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.18);
  --shadow-card-hover: 0 32px 80px rgba(15, 23, 42, 0.24);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 58, 95, 0.55), transparent 60%),
    var(--page-bg);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--color-pale-blue); }

::selection { background: rgba(59, 130, 246, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-pale-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px; border-radius: var(--radius-buttons);
  background: var(--color-snow); color: var(--ink); font-weight: 600; font-size: 14px;
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------
   背景层（内页）
   ------------------------------------------------------------ */
.app-backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('../img/desk.jpg');
  background-size: cover; background-position: center;
  opacity: 0; filter: blur(2px) saturate(0.8);
  transition: opacity 0.6s ease;
}
.app-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 24, 38, 0.92), rgba(11, 24, 38, 0.97)),
    radial-gradient(900px 500px at 75% 0%, rgba(30, 58, 95, 0.9), transparent 65%);
}
html[data-route='app'] .app-backdrop { opacity: 1; }

/* ------------------------------------------------------------
   通用元素
   ------------------------------------------------------------ */
.eyebrow {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-pale-blue);
}
.display {
  font-size: clamp(48px, 7.2vw, var(--text-display));
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  color: #12263f;
}
.heading-lg {
  font-size: clamp(32px, 4.4vw, var(--text-heading-lg));
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  font-weight: 700;
  color: #12263f;
}
.lede {
  font-size: var(--text-body-lg);
  line-height: 1.65;
  color: var(--ink-soft);
}
.card .eyebrow { color: #2563eb; }
.card .lede { color: #334155; }
.card .btn--ghost { --btn-fg: #1e3a5f; border-color: rgba(30, 58, 95, 0.22); }
.card .btn--ghost:hover { background: rgba(30, 58, 95, 0.06); }

.btn {
  --btn-bg: var(--color-primary-blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-buttons);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: #2f74ec; box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: #1e3a5f;
  border-color: rgba(30, 58, 95, 0.22);
}
.btn--ghost:hover { background: rgba(30, 58, 95, 0.06); box-shadow: none; }
.btn--soft {
  --btn-bg: rgba(30, 58, 95, 0.06); --btn-fg: #1e3a5f;
  border-color: transparent;
}
.btn--soft:hover { background: rgba(30, 58, 95, 0.12); box-shadow: none; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.empty-actions .btn--ghost { --btn-fg: #eaf2fb; border-color: rgba(233, 241, 251, 0.34); }

.link-btn {
  background: none; border: 0; padding: 4px 2px;
  color: #64748b; font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: #b91c1c; }
.link-inline { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   头部
   ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 17, 28, 0.62), rgba(8, 17, 28, 0));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid {
  background: rgba(11, 24, 38, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: rgba(147, 197, 253, 0.14);
  box-shadow: 0 12px 40px rgba(3, 10, 20, 0.35);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: 1280px; margin: 0 auto; height: 74px;
  padding: 0 var(--spacing-32);
  display: flex; align-items: center; gap: var(--spacing-24);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--color-snow); flex: none;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3b82f6, #1e3a5f 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 20px rgba(15, 23, 42, 0.35);
  font-size: 20px; font-weight: 700; color: #f8fafc;
}
.brand-mark--sm { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: 0.02em; }
.brand-text small { font-size: 11px; color: var(--on-dark-soft); letter-spacing: 0.04em; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list a, .nav-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; border-radius: 999px;
  background: none; color: rgba(233, 241, 251, 0.78);
  font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: color 0.24s ease, background 0.24s ease;
}
.nav-list a:hover, .nav-btn:hover { color: #fff; background: rgba(147, 197, 253, 0.1); }
.nav-list a.is-active, .nav-btn.is-active { color: #fff; }
.nav-list a.is-active::after, .nav-btn.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--color-sky), var(--color-primary-blue));
}
.nav-badge {
  margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: rgba(197, 89, 240, 0.22);
  color: #e9d5ff; font-size: 11px; font-weight: 600;
}
.caret { transition: transform 0.24s ease; opacity: 0.7; }
.nav-btn[aria-expanded='true'] .caret { transform: rotate(180deg); }

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

.search-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  border-radius: var(--radius-buttons);
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(147, 197, 253, 0.06);
  color: rgba(233, 241, 251, 0.7); font-size: 13px; cursor: pointer;
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}
.search-trigger:hover { border-color: rgba(147, 197, 253, 0.45); color: #fff; background: rgba(147, 197, 253, 0.12); }
.search-trigger kbd {
  font-family: inherit; font-size: 10.5px; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(11, 24, 38, 0.6); border: 1px solid rgba(147, 197, 253, 0.2);
  color: rgba(233, 241, 251, 0.72);
}
.header-cta { text-decoration: none; }

/* 通知按钮 / 用户菜单 */
.icon-btn {
  position: relative; width: 38px; height: 38px; flex: none;
  border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(147, 197, 253, 0.06);
  color: rgba(233, 241, 251, 0.8); cursor: pointer;
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}
.icon-btn:hover { border-color: rgba(147, 197, 253, 0.45); background: rgba(147, 197, 253, 0.12); color: #fff; }
.icon-btn__dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: #f472b6; box-shadow: 0 0 0 2px rgba(11, 24, 38, 0.9);
}
.auth-slot { display: flex; align-items: center; }
.auth-slot .btn { text-decoration: none; }
.auth-slot .btn--soft,
.drawer__auth .btn--soft {
  background: rgba(147, 197, 253, 0.1);
  border-color: rgba(147, 197, 253, 0.24);
  color: #eaf2fb;
}
.auth-slot .btn--soft:hover,
.drawer__auth .btn--soft:hover { background: rgba(147, 197, 253, 0.18); }
.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(147, 197, 253, 0.06);
  color: #eaf2fb; font-size: 13px; cursor: pointer;
  transition: border-color 0.24s ease, background 0.24s ease;
}
.user-btn:hover { border-color: rgba(147, 197, 253, 0.45); background: rgba(147, 197, 253, 0.12); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3b82f6, #1e3a5f);
  font-size: 12px; font-weight: 600; color: #fff;
}
.user-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 95;
  width: 172px; padding: 6px;
  border-radius: 14px;
  background: rgba(12, 26, 42, 0.98);
  border: 1px solid rgba(147, 197, 253, 0.18);
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.5);
  display: flex; flex-direction: column;
}
.user-dropdown a, .user-dropdown button {
  text-align: left; padding: 9px 12px; border-radius: 9px; border: 0;
  background: none; color: rgba(233, 241, 251, 0.86);
  font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(147, 197, 253, 0.12); color: #fff; }
.user-dropdown .user-dropdown__meta { padding: 8px 12px 6px; font-size: 11.5px; color: rgba(233, 241, 251, 0.42); }

/* 通知面板 */
.notice-panel {
  position: fixed; top: 82px; z-index: 95;
  right: max(24px, calc((100vw - 1280px) / 2 + 32px));
  width: min(390px, calc(100vw - 32px));
  border-radius: 18px; overflow: hidden;
  background: rgba(12, 26, 42, 0.98);
  border: 1px solid rgba(147, 197, 253, 0.18);
  box-shadow: 0 32px 80px rgba(2, 8, 20, 0.6);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.notice-panel.is-open { opacity: 1; transform: none; }
.notice-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid rgba(147, 197, 253, 0.12);
}
.notice-panel__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-soft);
}
.notice-panel__count {
  padding: 1px 7px; border-radius: 999px;
  background: rgba(244, 114, 182, 0.22); color: #fbcfe8;
  font-size: 11px; letter-spacing: 0;
}
.notice-panel__actions { display: flex; align-items: center; gap: 10px; }
.notice-panel__close {
  width: 26px; height: 26px; border-radius: 8px; border: 0; background: none;
  color: var(--on-dark-soft); font-size: 18px; line-height: 1; cursor: pointer;
}
.notice-panel__close:hover { color: #fff; }
.notice-list { max-height: min(60vh, 420px); overflow-y: auto; padding: 6px; }
.notice-item { display: flex; gap: 10px; padding: 12px; border-radius: 12px; cursor: pointer; }
.notice-item:hover { background: rgba(147, 197, 253, 0.08); }
.notice-item__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 7px;
  background: #f472b6; opacity: 0; transition: opacity 0.2s ease;
}
.notice-item.is-unread .notice-item__dot { opacity: 1; }
.notice-item__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f2f7fd; }
.notice-item__type {
  padding: 1px 6px; border-radius: 6px;
  background: rgba(147, 197, 253, 0.14); color: #bfdbfe;
  font-size: 10px; font-weight: 500;
}
.notice-item__body { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: rgba(233, 241, 251, 0.6); }
.notice-item__time { margin-top: 6px; font-size: 11px; color: rgba(233, 241, 251, 0.38); }
.notice-empty { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--on-dark-soft); }

/* 登录 */
.login { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 11, 20, 0.68);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.login__panel {
  position: relative; width: min(420px, 100%);
  padding: 34px 34px 28px; border-radius: 22px;
  background: #0e2136;
  border: 1px solid rgba(147, 197, 253, 0.18);
  box-shadow: 0 40px 100px rgba(2, 8, 20, 0.65);
  color: var(--on-dark);
}
.login__close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 9px; border: 0; background: none;
  color: var(--on-dark-soft); font-size: 20px; line-height: 1; cursor: pointer;
}
.login__close:hover { color: #fff; }
.login__title { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.login__sub { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--on-dark-soft); }
.login__form { margin-top: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 12.5px; color: rgba(233, 241, 251, 0.6); }
.field input {
  height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(147, 197, 253, 0.06);
  color: #f2f7fd; font: inherit; font-size: 14.5px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: rgba(233, 241, 251, 0.32); }
.field input:focus { border-color: var(--color-primary-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.field-error { margin: 0; font-size: 12.5px; color: #fca5a5; }
.login__submit { height: 46px; margin-top: 2px; }
.login__hint { margin-top: 16px; font-size: 12px; color: rgba(233, 241, 251, 0.42); }
.login__hint code { padding: 1px 6px; border-radius: 6px; background: rgba(147, 197, 253, 0.12); color: #dbeafe; }
.drawer__auth { display: flex; flex-direction: column; }
.drawer__auth .auth-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 4px; border-top: 1px solid rgba(147, 197, 253, 0.1);
  font-size: 14px; color: rgba(233, 241, 251, 0.82);
}
.drawer__auth button { height: 34px; padding: 0 14px; }

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.24); background: rgba(147, 197, 253, 0.06);
  cursor: pointer; padding: 0; place-items: center; gap: 5px;
}
.menu-toggle span { display: block; width: 17px; height: 1.5px; background: #e9f1fb; border-radius: 2px; }

/* Mega 菜单 */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(720px, calc(100vw - 64px));
  transform: translate(-50%, 8px);
  padding: 22px;
  border-radius: var(--radius-cards);
  background: rgba(12, 26, 42, 0.96);
  border: 1px solid rgba(147, 197, 253, 0.16);
  box-shadow: 0 32px 80px rgba(2, 8, 20, 0.6);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 6px 14px; }
.mega__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(233, 241, 251, 0.5); }
.mega__all { font-size: 13px; color: var(--color-pale-blue); text-decoration: none; }
.mega__all:hover { color: #fff; }

.mega__cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mega__cat {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 10px; border-radius: 14px;
  text-decoration: none; color: var(--on-dark);
  transition: background 0.2s ease;
}
.mega__cat:hover { background: rgba(147, 197, 253, 0.1); }
.mega__cat-text { display: flex; flex-direction: column; min-width: 0; }
.mega__cat-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mega__cat-text small { font-size: 10.5px; color: rgba(233, 241, 251, 0.48); white-space: nowrap; }
.mega__cat .ring { width: 30px; height: 30px; font-size: 9.5px; box-shadow: inset 0 0 0 3px #0c1a2a; }


.ring {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 600; color: #dbeafe;
  box-shadow: inset 0 0 0 4px #0c1a2a;
}

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 14, 24, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.24s ease;
}
.drawer.is-open { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw); padding: 22px 24px 34px;
  background: #0d1f33; border-left: 1px solid rgba(147, 197, 253, 0.14);
  display: flex; flex-direction: column; gap: 18px;
  transform: translateX(24px); transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.drawer__close {
  width: 34px; height: 34px; border-radius: 10px; font-size: 22px; line-height: 1;
  border: 1px solid rgba(147, 197, 253, 0.2); background: transparent; color: var(--on-dark); cursor: pointer;
}
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  padding: 13px 4px; font-size: 17px; font-weight: 500; color: var(--on-dark);
  text-decoration: none; border-bottom: 1px solid rgba(147, 197, 253, 0.1);
}
.drawer__nav a.is-active { color: var(--color-pale-blue); }
.drawer__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.drawer__subjects { display: flex; flex-direction: column; gap: 2px; }
.drawer__subjects a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 4px; font-size: 14px; color: rgba(233, 241, 251, 0.8); text-decoration: none;
}
.drawer__subjects em { font-style: normal; font-size: 12px; color: rgba(233, 241, 251, 0.45); }
.drawer__cta { margin-top: auto; text-decoration: none; }

/* ------------------------------------------------------------
   首页 · 视差区块
   ------------------------------------------------------------ */
.p-section {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 96px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--color-deep-navy);
  overflow: hidden;
  isolation: isolate;
}
.bg-hero { background-image: url('../img/hero.jpg'); background-position: center 62%; }
.bg-desk { background-image: url('../img/desk.jpg'); }
.bg-herb { background-image: url('../img/herb.jpg'); }
.bg-path { background-image: url('../img/path.jpg'); }
.bg-night { background-image: url('../img/night.jpg'); background-position: center 40%; }
.p-section.bg-desk .p-section__veil {
  background: linear-gradient(to bottom, rgba(30, 58, 95, 0.88) 0%, rgba(30, 58, 95, 0.7) 52%, rgba(11, 24, 38, 0.74) 100%);
}
.p-section__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 58, 95, 0.78) 0%, rgba(30, 58, 95, 0.44) 50%, rgba(11, 24, 38, 0.62) 100%);
}
.p-section__veil::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 22% 18%, rgba(147, 197, 253, 0.16), transparent 68%);
  opacity: calc(var(--depth, 0) * 0.9);
  transition: opacity 0.2s linear;
}
.p-section__veil--hero {
  background:
    radial-gradient(120% 95% at 10% 6%, rgba(30, 58, 95, 0.88), rgba(30, 58, 95, 0.32) 56%, transparent 100%),
    linear-gradient(to bottom, rgba(30, 58, 95, 0.62) 0%, rgba(30, 58, 95, 0.36) 45%, rgba(8, 18, 30, 0.82) 100%);
}
.p-section::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(to bottom, rgba(11, 24, 38, 0), rgba(11, 24, 38, 0.92));
  pointer-events: none; z-index: 0;
}
.p-section__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--page-max-width);
  margin: 0 auto; padding: 0 var(--spacing-32);
}

.card {
  background: var(--surface-snow-card);
  color: var(--ink);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease-out, transform 0.4s ease-out;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-in { opacity: 1; filter: blur(0); transform: none; }

.hero-card { max-width: 820px; }
.hero-card .display { margin-top: 10px; }
.hero-sub {
  margin-top: 4px;
  font-size: var(--text-subheading);
  font-weight: 500;
  color: #1e3a5f;
  letter-spacing: 0.02em;
}
.hero-card .lede { margin-top: 20px; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(30, 58, 95, 0.14);
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.hero-meta dd { font-size: 16px; font-weight: 600; color: #1e3a5f; }

.cue {
  position: absolute; left: 50%; bottom: 36px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
  animation: cueFade 2.4s ease-in-out infinite;
}
.cue-line { width: 1px; height: 48px; background: rgba(255, 255, 255, 0.5); }
.cue-text { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
@keyframes cueFade { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* 过渡带 */
.band {
  --band-a: rgba(14, 165, 233, 0.16);
  --band-b: rgba(59, 130, 246, 0.14);
  position: relative; height: 160px;
  background: linear-gradient(to bottom, #0b1826 0%, #102338 50%, #0b1826 100%);
  overflow: hidden;
}
.band::after {
  content: ''; position: absolute; inset: 34% 0;
  background: linear-gradient(90deg, var(--band-a), var(--band-b) 55%, transparent);
  filter: blur(40px);
  opacity: 0.85;
}
.band--b { --band-a: rgba(59, 130, 246, 0.16); --band-b: rgba(197, 89, 240, 0.13); }
.band--c { --band-a: rgba(197, 89, 240, 0.13); --band-b: rgba(59, 130, 246, 0.14); }
.band--d { --band-a: rgba(14, 165, 233, 0.14); --band-b: rgba(147, 197, 253, 0.12); }

/* 区块 02 · 题库 */
.block-card { padding: var(--card-padding); }
.section-head { max-width: 62ch; }
.section-head .heading-lg { margin-top: 10px; }
.section-head .lede { margin-top: 16px; }
.section-action { margin-top: 32px; }

.cat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 32px;
}
.cat-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(30, 58, 95, 0.05);
  border: 1px solid rgba(30, 58, 95, 0.1);
  text-decoration: none; color: inherit;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cat-card:hover { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.3); transform: translateY(-2px); }
.cat-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-card__head strong { font-size: 15.5px; font-weight: 600; color: #12263f; }
.cat-card__head em { font-style: normal; font-size: 11.5px; color: #64748b; white-space: nowrap; }
.cat-card__desc { font-size: 12.5px; line-height: 1.55; color: #5b6b80; min-height: 39px; }
.cat-card__bar { height: 5px; border-radius: 999px; background: rgba(30, 58, 95, 0.1); overflow: hidden; }
.cat-card__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #0ea5e9); }
.cat-card__foot { display: flex; justify-content: space-between; font-size: 11.5px; color: #64748b; }

/* 区块 03 · 教研 */
.approach-card { max-width: 880px; }
.approach-list { display: grid; gap: 4px; margin-top: 24px; }
.approach-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid rgba(30, 58, 95, 0.12);
}
.approach-list li:first-child { border-top: 0; }
.approach-list h3 { font-size: 17px; font-weight: 600; color: #16283f; }
.approach-list p { margin-top: 4px; color: #475569; font-size: 15px; }
.approach-num {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: #3b82f6; font-variant-numeric: tabular-nums;
}

/* 区块 04 · 路径 */
.path-card { max-width: 960px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.steps li {
  padding: 18px 18px 20px; border-radius: 16px;
  background: rgba(30, 58, 95, 0.05);
  border: 1px solid rgba(30, 58, 95, 0.1);
}
.step-num { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: #3b82f6; }
.steps h3 { margin-top: 8px; font-size: 16px; font-weight: 600; color: #16283f; }
.steps p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: #55637a; }

/* 区块 05 · 模考 */
.exam-card { max-width: 880px; }
.exam-note { margin-top: 28px; font-size: 13px; color: #64748b; }

/* ------------------------------------------------------------
   内页容器
   ------------------------------------------------------------ */
.view {
  position: relative; z-index: 1;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 132px var(--spacing-32) 96px;
  min-height: 100vh;
}
.view-head { max-width: none; }
.view-head--compact { max-width: none; }
.view-title {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f2f7fd;
}
.view-sub { margin-top: 12px; color: var(--on-dark-soft); font-size: 16px; max-width: 62ch; }
.view-note { margin-top: 40px; font-size: 12.5px; color: rgba(233, 241, 251, 0.42); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toolbar .btn--soft, .toolbar .btn--ghost { background: rgba(147, 197, 253, 0.08); color: #eaf2fb; border-color: rgba(147, 197, 253, 0.2); }
.toolbar .btn--soft:hover { background: rgba(147, 197, 253, 0.16); }

/* 考试类型 tab */
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 26px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
}
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: rgba(233, 241, 251, 0.72); text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { background: rgba(147, 197, 253, 0.1); color: #fff; }
.tab.is-active { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.4); color: #fff; }
.tab span {
  font-size: 10.5px; padding: 1px 6px; border-radius: 999px;
  background: rgba(147, 197, 253, 0.16); color: rgba(233, 241, 251, 0.8);
}

/* 通用 chip */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: transparent; color: rgba(233, 241, 251, 0.8);
  font-size: 13px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { background: rgba(147, 197, 253, 0.12); color: #fff; }
.chip.is-active { background: rgba(59, 130, 246, 0.24); border-color: rgba(59, 130, 246, 0.55); color: #fff; }
.chip span { font-size: 10.5px; opacity: 0.65; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: rgba(147, 197, 253, 0.16);
  font-size: 14px; font-weight: 600; vertical-align: middle; color: #dbeafe;
}

/* 题库 */
.subject-grid { display: grid; gap: 16px; margin-top: 40px; }
.subject-block {
  border-radius: var(--radius-cards);
  background: rgba(248, 250, 252, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(2, 8, 20, 0.28);
  overflow: hidden;
}
.subject-block__head {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
  padding: 24px 28px; cursor: default;
}
.subject-block__title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.subject-glyph {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(30, 58, 95, 0.07); color: #1e3a5f;
  font-size: 19px; font-weight: 600;
}
.subject-block__title h2 { font-size: 20px; font-weight: 600; color: #12263f; }
.subject-block__title p { margin-top: 2px; font-size: 13.5px; color: #64748b; }
.subject-block__stat { display: flex; align-items: baseline; gap: 6px; color: #64748b; font-size: 13px; }
.subject-block__stat strong { font-size: 18px; color: #1e3a5f; font-weight: 600; }
.subject-toggle {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(30, 58, 95, 0.14); background: transparent; color: #334155; cursor: pointer;
}
.subject-toggle svg { transition: transform 0.25s ease; }
.subject-block.is-open .subject-toggle svg { transform: rotate(180deg); }
.subject-block__body { display: none; padding: 0 28px 26px; }
.subject-block.is-open .subject-block__body { display: block; }
.chapter-list { border-top: 1px solid rgba(30, 58, 95, 0.1); }
.chapter-row {
  display: grid; grid-template-columns: 1fr 150px auto; align-items: center; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid rgba(30, 58, 95, 0.07);
}
.chapter-row__main { min-width: 0; }
.chapter-row__name { font-size: 15px; font-weight: 500; color: #1f3247; }
.chapter-row__meta { font-size: 12.5px; color: #64748b; }
.mini-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(30, 58, 95, 0.1); overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #0ea5e9); transition: width 0.5s ease; }
.subject-block__actions { display: flex; gap: 10px; margin-top: 20px; }

/* 题目卡片 */
.quiz-shell { margin-top: 32px; }
.quiz-bar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.quiz-bar__progress { flex: 1; height: 5px; border-radius: 999px; background: rgba(147, 197, 253, 0.18); overflow: hidden; }
.quiz-bar__progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-sky), var(--color-primary-blue)); transition: width 0.4s ease; }
.quiz-bar__count { font-size: 13px; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.quiz-bar__count strong { font-size: 17px; color: #fff; font-weight: 600; }
.quiz-bar .btn--ghost { background: rgba(147, 197, 253, 0.08); color: #eaf2fb; border-color: rgba(147, 197, 253, 0.2); }

.quiz-card {
  background: rgba(248, 250, 252, 0.96);
  color: var(--ink);
  border-radius: var(--radius-cards);
  padding: 40px 48px 44px;
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.34);
}
.quiz-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(59, 130, 246, 0.12); color: #1d4ed8;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
}
.tag--ghost { background: rgba(30, 58, 95, 0.07); color: #475569; font-weight: 500; }
.fav-btn {
  margin-left: auto; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(30, 58, 95, 0.16);
  background: transparent; color: #475569; font-size: 12.5px; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.fav-btn:hover { border-color: rgba(197, 89, 240, 0.5); color: #a21caf; }
.fav-btn.is-on { background: rgba(197, 89, 240, 0.12); border-color: rgba(197, 89, 240, 0.4); color: #a21caf; }
.quiz-stem {
  margin-top: 22px;
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 1.5;
  font-weight: 600;
  color: #10233a;
  letter-spacing: -0.01em;
}
.opts { display: grid; gap: 10px; margin-top: 24px; }
.opt {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  padding: 15px 18px; text-align: left;
  border-radius: var(--radius-inputs);
  border: 1px solid rgba(30, 58, 95, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #1f3247; font-size: 15.5px; line-height: 1.55; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.opt:hover { border-color: rgba(59, 130, 246, 0.5); background: #fff; }
.opt:focus-visible { outline: 2px solid var(--color-primary-blue); outline-offset: 2px; }
.opt[disabled] { cursor: default; }
.opt[disabled]:hover { border-color: rgba(30, 58, 95, 0.14); }
.opt.is-selected { border-color: var(--color-primary-blue); background: rgba(59, 130, 246, 0.09); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.opt.is-correct { border-color: #10b981; background: rgba(16, 185, 129, 0.12); box-shadow: none; }
.opt.is-wrong { border-color: #ef4444; background: rgba(239, 68, 68, 0.1); box-shadow: none; }
.opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(30, 58, 95, 0.08); color: #1e3a5f;
  font-size: 12.5px; font-weight: 600;
}
.opt.is-selected .opt-key { background: rgba(59, 130, 246, 0.18); color: #1d4ed8; }
.opt.is-correct .opt-key { background: rgba(16, 185, 129, 0.22); color: #047857; }
.opt.is-wrong .opt-key { background: rgba(239, 68, 68, 0.18); color: #b91c1c; }
.quiz-tip { margin-top: 12px; font-size: 12.5px; color: #64748b; }

/* 蒙文原题：竖排（横排渲染后整体旋转 90°） */
.tag--mn { background: rgba(197, 89, 240, 0.14); color: #86198f; }
.mn-block { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mn-hint { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.mn-source { font-size: 12px; color: #64748b; }
.mn-frame {
  position: relative;
  height: 360px;
  overflow-x: auto; overflow-y: hidden;
  border-radius: 14px;
  background: rgba(30, 58, 95, 0.05);
  min-width: 300px;
}
.mn-frame--opt { height: 118px; border-radius: 10px; background: rgba(30, 58, 95, 0.045); min-width: 56px; }
.mn-spacer { display: block; height: 1px; }
.mn-text {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  padding: 18px;
  box-sizing: border-box;
  font-family: 'BagaBichimel', 'PingFang SC', serif;
  font-size: 24px;
  line-height: 1.8;
  color: #10233a;
  word-break: normal;
  overflow-wrap: normal;
}
.mn-frame--opt .mn-text { font-size: 20px; line-height: 1.6; padding: 12px; }

.opts--mn { display: flex; flex-wrap: wrap; gap: 12px; }
.opt--mn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  width: auto; padding: 12px 14px 14px;
}
.quiz-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.quiz-hint { font-size: 12px; color: #94a3b8; letter-spacing: 0.02em; }

.explain {
  margin-top: 26px; padding: 20px 22px;
  border-radius: 16px; background: rgba(30, 58, 95, 0.05);
  border-left: 3px solid rgba(59, 130, 246, 0.6);
  animation: fadeUp 0.35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.explain__head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #16283f; }
.explain__dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.explain__dot.is-ok { background: #10b981; }
.explain__body { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: #334155; }
.explain__meta { margin-top: 10px; font-size: 12.5px; color: #64748b; }

/* 结果 */
.result-card {
  background: rgba(248, 250, 252, 0.96); color: var(--ink);
  border-radius: var(--radius-cards); padding: 44px 48px;
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.34);
}
.result-card .eyebrow { color: #2563eb; }
.result-title { margin-top: 8px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: #10233a; }
.result-sub { margin-top: 8px; color: #475569; }
.result-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.result-stats div { padding: 16px 18px; border-radius: 14px; background: rgba(30, 58, 95, 0.05); }
.result-stats strong { display: block; font-size: 24px; font-weight: 700; color: #1e3a5f; font-variant-numeric: tabular-nums; }
.result-stats span { font-size: 12.5px; color: #64748b; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.result-actions .btn--ghost { color: #1e3a5f; border-color: rgba(30, 58, 95, 0.2); }

.diag { display: grid; gap: 10px; margin-top: 24px; }
.diag-row { display: grid; grid-template-columns: 150px 1fr 76px; align-items: center; gap: 16px; font-size: 13.5px; color: #334155; }
.diag-row .mini-bar { margin: 0; }
.diag-row__num { text-align: right; font-variant-numeric: tabular-nums; color: #1e3a5f; font-weight: 600; }

/* 模考 */
.exam-intro { margin-top: 32px; max-width: 880px; }
.exam-intro__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; margin-bottom: 10px; }
.exam-intro .chips { margin-bottom: 22px; }
.exam-intro .chip { border-color: rgba(30, 58, 95, 0.2); color: #334155; }
.exam-intro .chip:hover { background: rgba(30, 58, 95, 0.06); color: #12263f; }
.exam-intro .chip.is-active { background: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.5); color: #1d4ed8; }
.exam-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.exam-rules li { padding: 16px 18px; border-radius: 14px; background: rgba(30, 58, 95, 0.05); }
.exam-rules strong { display: block; font-size: 16px; color: #1e3a5f; }
.exam-rules span { font-size: 13px; color: #5b6b80; }
.exam-last { margin-top: 22px; font-size: 13.5px; color: #475569; }
.exam-intro .cta-row { margin-top: 24px; }
.exam-intro .btn--ghost { color: #1e3a5f; border-color: rgba(30, 58, 95, 0.2); }

.quiz-bar--sticky {
  position: sticky; top: 86px; z-index: 20;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(12, 26, 42, 0.86);
  border: 1px solid rgba(147, 197, 253, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.exam-timer { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: #dbeafe; }
.exam-timer.is-urgent { color: #fda4af; }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; margin-top: 20px; align-items: start; }
#examStage { margin-top: 32px; }
.exam-nav {
  position: sticky; top: 156px;
  padding: 18px; border-radius: 18px;
  background: rgba(12, 26, 42, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.14);
}
.exam-nav__title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.navgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.navgrid__cell {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid rgba(147, 197, 253, 0.18);
  background: transparent; color: rgba(233, 241, 251, 0.6);
  font-size: 11.5px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.navgrid__cell:hover { background: rgba(147, 197, 253, 0.14); color: #fff; }
.navgrid__cell.is-done { background: rgba(59, 130, 246, 0.28); color: #fff; border-color: rgba(59, 130, 246, 0.5); }
.navgrid__cell.is-current { border-color: var(--color-pale-blue); box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.35); color: #fff; }
.exam-card { padding-bottom: 32px; }

/* 列表（错题 / 收藏） */
.list-group { margin-top: 36px; }
.list-group__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--color-pale-blue);
}
.list-group__title span {
  padding: 1px 8px; border-radius: 999px; background: rgba(147, 197, 253, 0.16);
  font-size: 11.5px; color: #dbeafe;
}
.list-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px;
  margin-top: 12px; padding: 22px 24px;
  border-radius: 18px; background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 14px 36px rgba(2, 8, 20, 0.22);
}
.list-item__meta { font-size: 12px; color: #64748b; letter-spacing: 0.02em; }
.list-item__stem { margin-top: 6px; font-size: 15.5px; font-weight: 500; color: #16283f; line-height: 1.55; }
.list-item__details { margin-top: 10px; font-size: 13.5px; color: #475569; }
.list-item__details summary { cursor: pointer; color: #2563eb; font-size: 13px; }
.list-item__answer { margin-top: 8px; color: #0f766e; font-weight: 500; }
.list-item__explain { margin-top: 6px; line-height: 1.65; }
.list-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.empty-state {
  margin-top: 36px; padding: 48px;
  border-radius: var(--radius-cards);
  background: rgba(12, 26, 42, 0.66);
  border: 1px dashed rgba(147, 197, 253, 0.24);
  text-align: center;
}
.empty-state__title { font-size: 18px; font-weight: 600; color: #eaf2fb; }
.empty-state p { margin-top: 8px; color: var(--on-dark-soft); font-size: 14px; }
.empty-state .btn { margin-top: 20px; }
.empty-actions { display: flex; gap: 12px; margin-top: 28px; }
.empty-actions .btn--ghost { color: #eaf2fb; border-color: rgba(147, 197, 253, 0.3); }

/* 数据 */
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.stat-card {
  padding: 22px; border-radius: 18px;
  background: rgba(248, 250, 252, 0.94); color: var(--ink);
  box-shadow: 0 14px 36px rgba(2, 8, 20, 0.22);
}
.stat-card strong { display: block; font-size: 30px; font-weight: 700; color: #1e3a5f; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-card span { font-size: 13px; color: #64748b; }
.panel {
  margin-top: 20px; padding: 28px 32px; border-radius: 20px;
  background: rgba(12, 26, 42, 0.7);
  border: 1px solid rgba(147, 197, 253, 0.14);
}
.panel__title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.panel .diag-row { color: rgba(233, 241, 251, 0.82); }
.panel .diag-row__num { color: #dbeafe; }
.panel .mini-bar { background: rgba(147, 197, 253, 0.16); }
.panel__empty { margin-top: 14px; color: var(--on-dark-soft); font-size: 14px; }
.exam-history { margin-top: 16px; display: grid; gap: 8px; }
.exam-history li {
  display: grid; grid-template-columns: 1fr 90px 70px 70px; gap: 12px;
  padding: 10px 0; font-size: 13.5px; color: rgba(233, 241, 251, 0.78);
  border-bottom: 1px solid rgba(147, 197, 253, 0.1);
}
.exam-history strong { color: #dbeafe; }
.heatmap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.heatmap__cell {
  width: 54px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; color: rgba(233, 241, 251, 0.42);
  background: rgba(147, 197, 253, 0.08);
}
.heatmap__cell.is-on { background: linear-gradient(140deg, rgba(59, 130, 246, 0.55), rgba(14, 165, 233, 0.42)); color: #fff; }

/* ------------------------------------------------------------
   书籍资料
   ------------------------------------------------------------ */
.upload-note {
  margin-top: 30px; padding: 22px 26px;
  border-radius: 18px;
  border: 1px dashed rgba(147, 197, 253, 0.24);
  background: rgba(12, 26, 42, 0.66);
}
.upload-note__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); }
.upload-steps { display: grid; gap: 8px; margin-top: 12px; }
.upload-steps li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.7; color: rgba(233, 241, 251, 0.82); }
.upload-steps__n { font-size: 11px; color: var(--color-pale-blue); font-variant-numeric: tabular-nums; padding-top: 3px; }
.upload-steps__t { min-width: 0; }
.upload-steps code {
  padding: 1px 6px; border-radius: 6px;
  background: rgba(147, 197, 253, 0.14); color: #dbeafe; font-size: 12.5px;
}
.upload-note__meta { margin-top: 12px; font-size: 12px; color: rgba(233, 241, 251, 0.45); }
.books-filter { margin-top: 24px; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.book-card {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px;
  padding: 20px; border-radius: 20px;
  background: rgba(248, 250, 252, 0.95); color: var(--ink);
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.26);
}
.book-cover {
  position: relative; border-radius: 12px; min-height: 132px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #1e3a5f, #3b82f6 130%);
  color: #eaf2fb;
}
.book-cover span { font-size: 30px; font-weight: 700; opacity: 0.92; }
.book-cover em {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
  font-style: normal; font-size: 9px; letter-spacing: 0.14em; opacity: 0.6;
}
.book-meta { font-size: 11.5px; letter-spacing: 0.04em; color: #64748b; }
.book-title { margin-top: 4px; font-size: 16px; font-weight: 600; color: #12263f; line-height: 1.35; }
.book-desc { margin-top: 6px; font-size: 13px; line-height: 1.6; color: #55637a; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(30, 58, 95, 0.08); color: #475569; }
.badge--ok { background: rgba(16, 185, 129, 0.14); color: #047857; }
.book-empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--on-dark-soft); font-size: 14px; }

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.site-footer {
  position: relative; z-index: 1;
  background: var(--page-bg-2);
  border-top: 1px solid rgba(147, 197, 253, 0.12);
  padding: 56px var(--spacing-32) 64px;
}
.footer-inner {
  max-width: var(--page-max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 48px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 15px; }
.footer-brand small { font-size: 11.5px; color: var(--on-dark-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; }
.footer-nav a { color: rgba(233, 241, 251, 0.6); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-note {
  grid-column: 1 / -1;
  font-size: 12px; line-height: 1.75; color: rgba(233, 241, 251, 0.36);
  max-width: 72ch;
}

/* ------------------------------------------------------------
   命令面板
   ------------------------------------------------------------ */
.palette { position: fixed; inset: 0; z-index: 130; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(4, 11, 20, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s ease; }
.palette.is-open .palette__backdrop { opacity: 1; }
.palette__panel {
  position: relative; width: min(640px, 100%);
  border-radius: 20px; overflow: hidden;
  background: rgba(13, 28, 46, 0.98);
  border: 1px solid rgba(147, 197, 253, 0.2);
  box-shadow: 0 40px 100px rgba(2, 8, 20, 0.7);
  opacity: 0; transform: translateY(-8px) scale(0.99);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.palette.is-open .palette__panel { opacity: 1; transform: none; }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(147, 197, 253, 0.14); color: var(--on-dark-soft); }
.palette__field input {
  flex: 1; border: 0; background: transparent; color: #f2f7fd;
  font-size: 16px; font-family: inherit; outline: none;
}
.palette__field input::placeholder { color: rgba(233, 241, 251, 0.38); }
.palette__field kbd {
  font-family: inherit; font-size: 10.5px; padding: 2px 6px; border-radius: 6px;
  background: rgba(147, 197, 253, 0.12); color: rgba(233, 241, 251, 0.6);
}
.palette__list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.palette__group { padding: 10px 12px 6px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(233, 241, 251, 0.38); }
.palette__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--on-dark); font-size: 14px; text-align: left; cursor: pointer;
}
.palette__item.is-active { background: rgba(59, 130, 246, 0.2); }
.palette__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__hinttext { flex: none; font-size: 11.5px; color: rgba(233, 241, 251, 0.46); }
.palette__empty { padding: 26px 16px; text-align: center; font-size: 13.5px; color: var(--on-dark-soft); }
.palette__hint { display: flex; gap: 18px; padding: 10px 18px 14px; border-top: 1px solid rgba(147, 197, 253, 0.1); font-size: 11px; color: rgba(233, 241, 251, 0.38); }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 32px; z-index: 140; transform: translateX(-50%); pointer-events: none; }
.toast {
  padding: 11px 20px; border-radius: 999px;
  background: rgba(13, 28, 46, 0.96); color: #eaf2fb;
  border: 1px solid rgba(147, 197, 253, 0.24);
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.5);
  font-size: 13.5px; animation: fadeUp 0.25s ease;
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subject-block__head { grid-template-columns: 1fr auto; }
  .subject-block__stat { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .auth-slot { display: none; }
  .header-inner { gap: 10px; }
  .search-trigger span { display: none; }
  .search-trigger kbd { display: none; }
  .search-trigger { width: 42px; height: 42px; justify-content: center; padding: 0; }
  .header-cta { display: none; }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-nav { position: static; order: -1; }
  .navgrid { grid-template-columns: repeat(10, 1fr); }
}

@media (max-width: 820px) {
  :root { --card-padding: 28px; }
  .header-inner { padding: 0 16px; gap: 8px; }
  .brand-text small { display: none; }
  .p-section {
    min-height: auto;
    padding: 112px 0 88px;
    background-attachment: scroll;
  }
  .p-section__inner { padding: 0 20px; }
  .p-section__veil { background: linear-gradient(to bottom, rgba(30, 58, 95, 0.86) 0%, rgba(30, 58, 95, 0.55) 60%, rgba(11, 24, 38, 0.2) 100%); }
  .cue { display: none; }
  .band { height: 96px; }
  .hero-meta { gap: 20px; }
  .view { padding: 108px 20px 72px; }
  .quiz-card, .result-card { padding: 26px 22px 30px; border-radius: 20px; }
  .quiz-bar--sticky { top: 78px; flex-wrap: wrap; }
  .exam-timer { width: 100%; }
  .result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subject-block__head { padding: 20px; }
  .subject-block__body { padding: 0 20px 22px; }
  .chapter-row { grid-template-columns: 1fr auto; gap: 10px; }
  .chapter-row__meta { display: none; }
  .list-item { grid-template-columns: 1fr; }
  .list-item__actions { flex-direction: row; align-items: center; justify-content: flex-start; }
  .exam-rules { grid-template-columns: 1fr; }
  .diag-row { grid-template-columns: 104px 1fr 62px; gap: 10px; font-size: 12.5px; }
  .footer-inner { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 76px minmax(0, 1fr); padding: 16px; }
  .mega { display: none; }
  .header-inner { height: 66px; padding: 0 20px; }
  .palette { padding-top: 8vh; }
}

@media (max-width: 560px) {
  .display { font-size: clamp(40px, 12vw, 56px); }
  .heading-lg { font-size: clamp(28px, 8vw, 36px); }
  .cat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .quiz-hint { display: none; }
  .result-stats strong { font-size: 20px; }
  .footer-note { font-size: 11.5px; }
}

/* ------------------------------------------------------------
   减少动态效果
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; filter: none; transform: none; }
  .p-section { background-attachment: scroll; }
  .cue { opacity: 0.8; }
}
