/* ==========================================================================
   声场 · 播音与主持艺术题库与训练台
   base.css — 设计变量、重置、排版、布局、通用组件
   ========================================================================== */

:root {
  /* 色彩 */
  --ink: #16202b;
  --ink-2: #2b3946;
  --muted: #6c7885;
  --faint: #98a2ac;
  --paper: #f5f0e7;
  --surface: #fffcf6;
  --surface-2: #fbf6ec;
  --surface-3: #f3ecdf;
  --navy: #1b3a52;
  --navy-soft: #e8eef1;
  --teal: #1f6f6a;
  --teal-soft: #e5efec;
  --copper: #bd573b;
  --copper-soft: #f6e7e0;
  --gold: #a9853f;
  --gold-soft: #f3ecda;
  --plum: #74507e;
  --plum-soft: #efe7f1;
  --panel: #101a24;
  --line: rgba(27, 58, 82, 0.12);
  --line-strong: rgba(27, 58, 82, 0.24);
  --ok: #2f7d5b;
  --warn: #a8722c;
  --danger: #a9433a;

  /* 字体 */
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", "Courier New", monospace;

  /* 阴影与圆角 */
  --shadow-1: 0 1px 2px rgba(22, 32, 43, 0.04), 0 10px 30px -20px rgba(22, 32, 43, 0.35);
  --shadow-2: 0 2px 4px rgba(22, 32, 43, 0.05), 0 24px 60px -28px rgba(22, 32, 43, 0.4);
  --shadow-3: 0 40px 100px -30px rgba(10, 18, 26, 0.5);
  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --maxw: 1240px;
  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 88% -8%, rgba(31, 111, 106, 0.09), transparent 62%),
    radial-gradient(900px 460px at -6% 12%, rgba(189, 87, 59, 0.07), transparent 60%),
    linear-gradient(180deg, #f8f4ec 0%, #f3ede3 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: rgba(189, 87, 59, 0.18); }
[hidden] { display: none !important; }

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

/* ------------------------------------------------------------ typography -- */
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow.is-teal { color: var(--teal); }
.eyebrow.is-navy { color: var(--navy); }
.eyebrow.is-plain::before { display: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.display-1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.08; letter-spacing: -0.035em; }
.display-2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.14; letter-spacing: -0.03em; }
.h-section { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.h-card { font-size: 19px; line-height: 1.4; }
.lead { font-size: 17px; line-height: 1.82; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); line-height: 1.7; }
.tiny { font-size: 12px; color: var(--faint); }
.muted { color: var(--muted); }
.copper { color: var(--copper); }
.teal { color: var(--teal); }
.navy { color: var(--navy); }
.accent-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  border: 0;
}
.hl {
  background-image: linear-gradient(transparent 62%, rgba(169, 133, 63, 0.28) 0);
}

/* ---------------------------------------------------------------- layout -- */
.shell {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}
.shell-narrow { width: min(880px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.stack > * + * { margin-top: var(--gap, 14px); }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grow { flex: 1 1 auto; min-width: 0; }
.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;
}
.page-head { padding: 46px 0 26px; }
.page-head .h-section { margin-top: 12px; }
.page-head .lead { max-width: 760px; margin-top: 14px; }

/* ------------------------------------------------------------------- nav -- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 235, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }
.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { background: rgba(27, 58, 82, 0.06); text-decoration: none; }
.nav-link[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-primary { --btn-bg: var(--navy); --btn-fg: #f6f1e7; --btn-bd: var(--navy); }
.btn-primary:hover { --btn-bg: #23496a; }
.btn-copper { --btn-bg: var(--copper); --btn-fg: #fff9f3; --btn-bd: var(--copper); }
.btn-copper:hover { --btn-bg: #cc6749; }
.btn-teal { --btn-bg: var(--teal); --btn-fg: #f2fbf9; --btn-bd: var(--teal); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--ink-2); }
.btn-ghost:hover { --btn-bg: rgba(27, 58, 82, 0.06); box-shadow: none; }
.btn-outline { --btn-bg: transparent; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon-only { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.btn-danger { --btn-fg: var(--danger); --btn-bd: rgba(169, 67, 58, 0.28); }

/* ---------------------------------------------------------------- chips -- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.7);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: 0.16s var(--ease);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink-2); background: var(--surface); }
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #f4efe5;
}
.chip-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}
.tag-speech { background: var(--teal-soft); color: #175a56; }
.tag-commentary { background: var(--copper-soft); color: #96442c; }
.tag-topic { background: var(--navy-soft); color: #17364e; }
.tag-reading { background: var(--gold-soft); color: #7d6127; }
.tag-quick { background: rgba(116, 80, 126, 0.12); color: var(--plum); }
.tag-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ----------------------------------------------------------------- card -- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 22px 24px; }
.card-hover { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card-link { cursor: pointer; }
.card-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.card-accent { border-left: 3px solid var(--line-strong); }
.accent-speech { border-left-color: var(--teal); }
.accent-commentary { border-left-color: var(--copper); }
.accent-topic { border-left-color: var(--navy); }
.accent-reading { border-left-color: var(--gold); }
.panel-dark {
  background:
    radial-gradient(900px 300px at 80% -10%, rgba(31, 111, 106, 0.28), transparent 60%),
    linear-gradient(160deg, #14212c, #0e1620 70%);
  color: #e9e4da;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.panel-dark h2, .panel-dark h3 { color: #f6f1e7; }

.callout {
  position: relative;
  padding: 16px 18px 16px 20px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  font-size: 14px;
  color: var(--ink-2);
}
.callout.teal { border-left-color: var(--teal); background: var(--teal-soft); }
.callout.copper { border-left-color: var(--copper); background: var(--copper-soft); }
.callout.navy { border-left-color: var(--navy); background: var(--navy-soft); }
.callout-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---------------------------------------------------------------- forms -- */
.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 106, 0.12);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c7885' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.search-field { position: relative; }
.search-field .input { padding-left: 40px; }
.search-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: rgba(27, 58, 82, 0.06);
  border-radius: 999px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s var(--ease);
  white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.checkbox input { accent-color: var(--teal); width: 15px; height: 15px; }

/* -------------------------------------------------------------- overlays -- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 27, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s var(--ease);
}
.overlay-sheet { place-items: stretch; padding: 0; grid-template-rows: minmax(0, 1fr); }
.overlay-sheet > .paper-drawer { max-height: 100vh; max-height: 100dvh; min-height: 0; }
.modal {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  animation: riseIn 0.26s var(--ease);
}
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 0; }
.modal-body { padding: 16px 26px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 24px; }
.x-btn {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s var(--ease);
}
.x-btn:hover { background: var(--surface-3); color: var(--ink); }
.x-btn svg { width: 15px; height: 15px; }

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #f5f0e7;
  font-size: 13.5px;
  box-shadow: var(--shadow-2);
  animation: riseIn 0.24s var(--ease);
  max-width: min(88vw, 560px);
}
.toast svg { width: 15px; height: 15px; flex: 0 0 auto; color: #8fd3c4; }
.toast.err svg { color: #f2a08c; }
.toast.out { animation: fadeOut 0.2s var(--ease) forwards; }

/* ----------------------------------------------------------------- misc -- */
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 252, 246, 0.5);
}
.empty .serif { font-size: 20px; color: var(--ink-2); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-xs); }
.meter { height: 6px; border-radius: 999px; background: rgba(27, 58, 82, 0.1); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width 0.3s var(--ease); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--navy); color: #f2ede3; font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: rgba(27, 58, 82, 0.025); }
.table-scroll { overflow-x: auto; }
.hover-lift { transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* -------------------------------------------------------------- footer -- */
.site-foot {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.4), rgba(243, 237, 227, 0.9));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0 40px;
}
.foot-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.foot-links { display: grid; gap: 7px; font-size: 13.5px; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--teal); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

/* ------------------------------------------------------- command palette -- */
.cmdk { width: min(720px, 100%); align-self: start; margin-top: 12vh; }
.cmdk .input {
  height: 56px;
  font-size: 16px;
  border-radius: var(--r-md);
  padding-left: 50px;
  background: var(--surface);
}
.cmdk-results { max-height: 52vh; overflow: auto; padding: 8px; }
.cmdk-group { padding: 10px 12px 4px; }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
}
.cmdk-item:hover, .cmdk-item.is-active { background: var(--surface-3); }
.cmdk-item .tag { flex: 0 0 auto; }
.cmdk-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.cmdk-item .m { font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); flex: 0 0 auto; }
.cmdk-hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); display: flex; gap: 16px; }
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
}

/* --------------------------------------------------------------- motion -- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px) scale(0.995); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.reveal { animation: riseIn 0.5s var(--ease) both; }
.reveal-1 { animation-delay: 0.05s; } .reveal-2 { animation-delay: 0.12s; } .reveal-3 { animation-delay: 0.2s; } .reveal-4 { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------- @media -- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .topnav.is-open .nav-links { display: flex; }
  .nav-toggle { display: grid; }
  .nav-actions .btn-label { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .shell, .shell-narrow { width: calc(100% - 36px); }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: 32px 0 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .modal { border-radius: var(--r-md); }
  .overlay { padding: 14px; }
  .display-1 { font-size: clamp(34px, 9vw, 48px); }
}
@media (max-width: 480px) {
  .shell, .shell-narrow { width: calc(100% - 28px); }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- print -- */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .topnav, .site-foot, .no-print, .toast-wrap { display: none !important; }
  .print-only { display: block !important; }
  .card, .paper-sheet { box-shadow: none; border-color: #bbb; }
  a { color: #111; }
}
.print-only { display: none; }

@media (max-width: 480px) {
  .topnav-inner { gap: 10px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-actions { gap: 6px; }
  .nav-actions kbd { display: none; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary {
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    justify-content: center;
  }
  .nav-actions .btn-icon-only { width: 38px; height: 38px; }
}

/* 无障碍与动效偏好 */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  padding: 10px 16px; border-radius: 0 0 10px 10px;
  background: var(--teal); color: #f2fbf9; font-size: 13px; text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
