/* 刺猬哥通信电子考研 · 公共样式（外壳 + 通用组件）
 * 视觉照决策记录 §6：苹果式骨架、刺猬蓝唯一主色、晨雾蓝底；版式照 §14.2。
 * 圆角：卡片 22，输入框 12，抽屉项 8（§14.2），按钮和胶囊全圆角。
 * 动画只动 transform 和 opacity。
 * 层级：内容 0–2，吸顶条 20–30，顶栏 40，吸底条 45，抽屉 / 弹层 60–61，提示 70。
 * 断点：窄于 768 手机布局和 ☰ 抽屉，768 起电脑顶栏，两栏内容 1024 起（§14.2）。
 */

:root {
  --blue: #2454fc;           /* 刺猬蓝，取自海报主色 */
  --blue-press: #1b43d9;
  --blue-soft: #edf1ff;
  --blue-line: #d5ddff;
  --blue-ink: #1638b8;       /* 浅底上的蓝字 */
  --blue-200: #cbd8f8;       /* 图表、精学班卡片 */
  --blue-100: #e3eafb;
  --navy: #0f1d4a;           /* 锦鲤班 */
  --yellow: #fce840;         /* 只用在价格、徽标 */
  --yellow-ink: #3a3200;

  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #9a9aa0;
  --line: rgba(29, 29, 31, .1);
  --line-2: rgba(29, 29, 31, .16);
  --bg: #f3f6fb;             /* 晨雾蓝底色 */
  --surface: #fdfdfe;
  --fill: #eef1f6;           /* 浅灰填充：单项卡、输入底 */
  --danger: #c4122f;

  --r-card: 22px;
  --r-mid: 14px;
  --r-input: 12px;
  --r-pill: 999px;

  --nav-h: 48px;
  --gutter: 20px;
  --maxw: 1200px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --t-release: 280ms;
  --t-press: 160ms;
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --shadow-card: 0 1px 2px rgba(22, 40, 110, .05), 0 8px 28px rgba(22, 40, 110, .07);
  --shadow-lift: 0 2px 4px rgba(22, 40, 110, .06), 0 18px 44px rgba(22, 40, 110, .13);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* 临界阻尼附近的弹簧，略带一点回弹，只给点按松手用 */
    --ease-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.9%, 1.043 23.2%, 1.035 27.1%, 1.007 34.9%, .997 41.6%, 1);
  }
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
main { display: block; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(720px + 2 * var(--gutter)); }
.wrap--read { max-width: calc(680px + 2 * var(--gutter)); }

/* ---------- 文字 ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8.6vw, 4.5rem);
  line-height: 1.1; letter-spacing: -.015em; font-weight: 700;
}
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.12; letter-spacing: -.015em; font-weight: 700;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.16; letter-spacing: -.012em; font-weight: 700;
}
.h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.3; font-weight: 650; letter-spacing: -.005em; }
.h4 { font-size: 17px; line-height: 1.4; font-weight: 650; }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.55; }
.tiny { font-size: 12px; line-height: 1.5; letter-spacing: .01em; }
.blue { color: var(--blue-ink); }
.strong { font-weight: 650; }

/* ---------- 排布 ---------- */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }

/* ---------- 段落 ---------- */
.section { padding: 72px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--surface); }
@media (min-width: 1024px) { .section { padding: 112px 0; } .section--tight { padding: 64px 0; } }
.section-head { margin-bottom: 32px; display: grid; gap: 12px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 48px; } }
.page-head { padding-top: 36px; padding-bottom: 20px; display: grid; gap: 10px; justify-items: start; }
@media (min-width: 1024px) { .page-head { padding-top: 64px; padding-bottom: 28px; gap: 14px; } }

/* ---------- 图标（Lucide 0.460.0，ISC，本地 vendor/lucide/） ---------- */
.ic {
  display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle;
  background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 24px; height: 24px; }
.ic-arrow-left { -webkit-mask-image: url(../vendor/lucide/arrow-left.svg); mask-image: url(../vendor/lucide/arrow-left.svg); }
.ic-book-open { -webkit-mask-image: url(../vendor/lucide/book-open.svg); mask-image: url(../vendor/lucide/book-open.svg); }
.ic-chart-column { -webkit-mask-image: url(../vendor/lucide/chart-column.svg); mask-image: url(../vendor/lucide/chart-column.svg); }
.ic-check { -webkit-mask-image: url(../vendor/lucide/check.svg); mask-image: url(../vendor/lucide/check.svg); }
.ic-chevron-down { -webkit-mask-image: url(../vendor/lucide/chevron-down.svg); mask-image: url(../vendor/lucide/chevron-down.svg); }
.ic-chevron-left { -webkit-mask-image: url(../vendor/lucide/chevron-left.svg); mask-image: url(../vendor/lucide/chevron-left.svg); }
.ic-chevron-right { -webkit-mask-image: url(../vendor/lucide/chevron-right.svg); mask-image: url(../vendor/lucide/chevron-right.svg); }
.ic-columns-3 { -webkit-mask-image: url(../vendor/lucide/columns-3.svg); mask-image: url(../vendor/lucide/columns-3.svg); }
.ic-copy { -webkit-mask-image: url(../vendor/lucide/copy.svg); mask-image: url(../vendor/lucide/copy.svg); }
.ic-download { -webkit-mask-image: url(../vendor/lucide/download.svg); mask-image: url(../vendor/lucide/download.svg); }
.ic-external-link { -webkit-mask-image: url(../vendor/lucide/external-link.svg); mask-image: url(../vendor/lucide/external-link.svg); }
.ic-file-text { -webkit-mask-image: url(../vendor/lucide/file-text.svg); mask-image: url(../vendor/lucide/file-text.svg); }
.ic-gift { -webkit-mask-image: url(../vendor/lucide/gift.svg); mask-image: url(../vendor/lucide/gift.svg); }
.ic-house { -webkit-mask-image: url(../vendor/lucide/house.svg); mask-image: url(../vendor/lucide/house.svg); }
.ic-lock { -webkit-mask-image: url(../vendor/lucide/lock.svg); mask-image: url(../vendor/lucide/lock.svg); }
.ic-log-in { -webkit-mask-image: url(../vendor/lucide/log-in.svg); mask-image: url(../vendor/lucide/log-in.svg); }
.ic-map-pin { -webkit-mask-image: url(../vendor/lucide/map-pin.svg); mask-image: url(../vendor/lucide/map-pin.svg); }
.ic-menu { -webkit-mask-image: url(../vendor/lucide/menu.svg); mask-image: url(../vendor/lucide/menu.svg); }
.ic-message-circle { -webkit-mask-image: url(../vendor/lucide/message-circle.svg); mask-image: url(../vendor/lucide/message-circle.svg); }
.ic-package { -webkit-mask-image: url(../vendor/lucide/package.svg); mask-image: url(../vendor/lucide/package.svg); }
.ic-pencil { -webkit-mask-image: url(../vendor/lucide/pencil.svg); mask-image: url(../vendor/lucide/pencil.svg); }
.ic-shopping-bag { -webkit-mask-image: url(../vendor/lucide/shopping-bag.svg); mask-image: url(../vendor/lucide/shopping-bag.svg); }
.ic-user { -webkit-mask-image: url(../vendor/lucide/user.svg); mask-image: url(../vendor/lucide/user.svg); }
.ic-x { -webkit-mask-image: url(../vendor/lucide/x.svg); mask-image: url(../vendor/lucide/x.svg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border-radius: var(--r-pill); border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--blue); color: #fff;
  transition: transform var(--t-release) var(--ease-spring), opacity .2s ease, background-color .2s ease;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--blue-press); }
  .btn--ghost:hover, .btn--light:hover { background: var(--blue-soft); }
}
.btn--ghost { background: transparent; color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--blue-line); }
.btn--light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--xs { min-height: 30px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-off { background: #c9ced9; color: #fff; box-shadow: none; }
.btn.is-off { cursor: not-allowed; }
.btn[disabled] { pointer-events: none; }
.link-arrow { color: var(--blue-ink); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow .arr { display: inline-block; transition: transform 200ms ease; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .arr { transform: translateX(4px); } }
.link { color: var(--blue-ink); font-weight: 600; background: none; border: 0; padding: 0; text-align: left; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- 标签 / 胶囊 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; line-height: 1.5;
  background: var(--blue-soft); color: var(--blue-ink);
}
.chip--yellow { background: var(--yellow); color: var(--yellow-ink); }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); }
.chip--glass { background: rgba(255, 255, 255, .72); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 5px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: middle; }
.ph-tag { /* 占位标记：资料没到、要用户提供或核对 */
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.6;
  background: #fff3c4; color: #6b5300; box-shadow: inset 0 0 0 1px #f0d98a; vertical-align: middle; white-space: nowrap;
}
.price { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.01em; }
.price .yen { font-size: .62em; margin-right: 1px; font-weight: 600; }

/* 选项胶囊（规格、筛选、查询器） */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform var(--t-release) var(--ease-spring), background-color .2s ease, box-shadow .2s ease, color .2s ease;
  touch-action: manipulation;
}
.opt-chip:active { transform: scale(.97); transition: transform var(--t-press) var(--ease-out); }
.opt-chip.is-on, .opt-chip[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue); }
@media (hover: hover) and (pointer: fine) { .opt-chip:not(.is-on):hover { box-shadow: inset 0 0 0 1px var(--blue-line); background: #f7f9ff; } }
.opt-chip--sm { min-height: 34px; padding: 0 13px; font-size: 14px; }
.opt-chip__meta { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.opts--fill { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts--fill .opt-chip { padding: 0 6px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 20px; position: relative;
}
@media (min-width: 768px) { .card { padding: 28px; } }
.card--flat { box-shadow: inset 0 0 0 1px var(--line); }
.card--press { transition: transform var(--t-release) var(--ease-spring), box-shadow .25s ease; }
.card--press:active { transform: scale(.98); transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card--press:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }

/* ---------- 顶栏（§13.3、§14.2：高 48，吸顶，毛玻璃，不随滚动收起） ---------- */
.tb { position: sticky; top: 0; z-index: 40; height: var(--nav-h); color: var(--ink); }
.tb::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(250, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .07);
}
.tb__in { position: relative; height: 100%; display: flex; align-items: center; gap: 4px; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.tb__menu, .tb__icon {
  width: 40px; height: 40px; border: 0; background: transparent; color: inherit; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tb__menu { margin-left: -10px; }
.tb__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap; min-width: 0; }
.tb__mark { width: 24px; height: 24px; border-radius: 7px; flex: none; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.tb__links { display: none; }
.tb__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb__icon { display: none; }
.tb__icon.is-on { color: var(--blue-ink); }
.tb__enroll { min-height: 30px; padding: 0 14px; font-size: 13.5px; }
.tb__back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-ink); font-size: 15px; font-weight: 500; margin-left: -8px; padding: 8px; border: 0; background: none; }
@media (max-width: 359px) { .tb__name span:last-child { font-size: 14px; } .tb__mark { display: none; } }
@media (min-width: 768px) {
  .tb__menu { display: none; }
  .tb__links { display: flex; gap: 36px; position: absolute; left: 50%; transform: translateX(-50%); font-size: 14px; }
  .tb__links a { color: var(--ink-3); padding: 8px 0; transition: color .2s ease; }
  .tb__links a:hover { color: var(--ink); }
  .tb__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .tb__icon { display: inline-flex; }
  @media (hover: hover) { .tb__icon:hover { background: rgba(118, 118, 128, .12); } }
}
.tb--simple .tb__in { justify-content: space-between; }
.tb--simple .tb__name { position: absolute; left: 50%; transform: translateX(-50%); }
.tb--simple .tb__spacer { width: 64px; }

/* ---------- 抽屉（手机，§14.2：从左滑出，宽 280，组标题 12 号灰字，每项高 44、图标 20，当前页浅蓝底块圆角 8） ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 16, 34, .4);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: 280px; max-width: 86vw;
  background: var(--surface); display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(10, 16, 34, .18);
  transform: translateX(-104%); visibility: hidden;
  transition: transform 380ms var(--ease-drawer), visibility 0s linear 380ms;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 380ms var(--ease-drawer), visibility 0s; }
.drawer__head { height: var(--nav-h); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; }
.drawer__head b { font-size: 15px; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 16px; }
.drawer__group + .drawer__group { margin-top: 14px; }
.drawer__label { font-size: 12px; color: var(--ink-3); padding: 8px 12px 4px; font-weight: 500; }
.drawer__item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 15.5px; font-weight: 500; text-align: left;
  transition: background-color .15s ease;
}
.drawer__item .ic { color: var(--ink-3); }
.drawer__item:active { background: var(--fill); }
.drawer__item[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); font-weight: 650; }
.drawer__item[aria-current="page"] .ic { color: var(--blue); }
.drawer__foot { flex: none; border-top: 1px solid var(--line); padding: 8px 12px; }
@media (min-width: 768px) { .drawer { display: none; } }

/* ---------- 弹层：手机底部弹出，电脑居中（§14.2） ---------- */
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0;
  max-height: 90vh; max-height: 90dvh;
  transform: translateY(104%); visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
}
.sheet.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
.sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 10px var(--gutter); }
.sheet__head b, .sheet__title { font-size: 17px; font-weight: 650; }
.sheet__close {
  width: 32px; height: 32px; border-radius: 50%; border: 0; flex: none;
  background: rgba(118, 118, 128, .14); color: var(--ink-2);
  display: grid; place-items: center;
}
.sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.sheet__foot { flex: none; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.sheet:focus { outline: none; }
@media (min-width: 768px) {
  .sheet {
    left: 50%; top: 50%; bottom: auto; right: auto; width: min(480px, calc(100vw - 48px)); max-height: 82vh;
    border-radius: var(--r-card); opacity: 0;
    transform: translate(-50%, -46%) scale(.97);
    transition: transform 320ms var(--ease-out), opacity 200ms ease, visibility 0s linear 320ms;
  }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; transition: transform 320ms var(--ease-out), opacity 200ms ease, visibility 0s; }
  .sheet--wide { width: min(720px, calc(100vw - 48px)); }
  .sheet__head { padding: 18px 16px 10px 28px; }
  .sheet__body { padding: 4px 28px 28px; }
  .sheet__foot { padding: 14px 28px; }
}

/* ---------- 联系卡（联系弹层、页脚共用） ---------- */
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row__qr { width: 76px; height: 76px; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.contact-row__qr img { width: 100%; height: 100%; }
.contact-row__txt { flex: 1; min-width: 0; }
.contact-row__num { font-size: 21px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  min-height: 34px; padding: 0 13px; border: 0; border-radius: var(--r-pill);
  background: var(--blue-soft); color: var(--blue-ink); font-size: 13.5px; font-weight: 600;
  transition: transform var(--t-release) var(--ease-spring);
}
.copy-btn:active { transform: scale(.95); transition: transform var(--t-press) var(--ease-out); }

/* ---------- 页脚（§13.4：手机竖排，电脑分上下两部分） ---------- */
.footer { background: var(--surface); color: var(--ink-3); font-size: 13px; line-height: 1.7; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); box-shadow: inset 0 1px 0 var(--line); }
.footer__contact .contact-row__num { font-size: 18px; color: var(--ink); }
.footer__contact .contact-row__qr { width: 64px; height: 64px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer__legal a { color: var(--ink-2); }
.footer__legal a:hover { color: var(--ink); }
.footer__meta { margin-top: 12px; display: grid; gap: 4px; }
@media (min-width: 768px) {
  .footer__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .footer__contact .contact-row + .contact-row { border-top: 0; }
  .footer__legal { margin-top: 24px; }
}
body.has-buybar .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-buybar .footer { padding-bottom: 36px; } }

/* ---------- 吸底条（手机详情页、确认订单页） ---------- */
.buybar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: var(--r-pill);
  background: rgba(250, 251, 253, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px rgba(22, 40, 110, .16), inset 0 0 0 1px rgba(255, 255, 255, .6);
  transform: translateY(150%); transition: transform 300ms var(--ease-out);
}
.buybar.is-shown { transform: none; }
.buybar__price { flex: 1; min-width: 0; font-size: 20px; line-height: 1.2; }
.buybar__price small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.buybar .btn { min-height: 44px; }
@media (min-width: 1024px) { .buybar { display: none; } }

/* ---------- 分段切换 ---------- */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: var(--r-pill);
  background: rgba(118, 118, 128, .12); position: relative; max-width: 100%;
}
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent;
  min-height: 36px; padding: 0 16px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: color .2s ease;
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg__thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
  border-radius: var(--r-pill); background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: transform 260ms var(--ease-in-out);
}
.seg--block { display: grid; width: 100%; }
@media (max-width: 380px) { .seg button { padding: 0 10px; font-size: 13.5px; } }

/* ---------- 吸顶页内导航（院校数据） ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 30; }
.subnav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(243, 246, 251, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.subnav__in { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gutter); }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 5px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.subnav a.is-on { background: var(--ink); color: #fff; }
@media (min-width: 768px) { .subnav__in { justify-content: center; } }

/* ---------- 折叠 ---------- */
.fold { border-top: 1px solid var(--line); }
.fold:last-child { border-bottom: 1px solid var(--line); }
.fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; font-weight: 600; font-size: 16px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: ""; width: 18px; height: 18px; flex: none; background: var(--ink-3);
  -webkit-mask: url(../vendor/lucide/chevron-down.svg) center / contain no-repeat; mask: url(../vendor/lucide/chevron-down.svg) center / contain no-repeat;
  transition: transform .25s var(--ease-out);
}
.fold[open] > summary::after { transform: rotate(180deg); }
.fold__body { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- 列表、数字格、表格 ---------- */
.dots { display: grid; gap: 8px; }
.dots li { padding-left: 16px; position: relative; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.rows > li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows > li:first-child { border-top: 1px solid var(--line); }
.rows .muted { white-space: nowrap; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-mid); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.stats > div { background: var(--surface); padding: 12px 14px; display: grid; align-content: start; gap: 2px; }
.stats b { font-size: 24px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats > div > span { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 600px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }

.tbl-scroll { overflow-x: auto; border-radius: var(--r-mid); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-weight: 600; color: var(--ink-3); font-size: 12.5px; background: #f8f9fc; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl-scroll .tbl td:first-child, .tbl-scroll .tbl th:first-child { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line); z-index: 1; }
.tbl-scroll .tbl th:first-child { background: #f8f9fc; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field label, .field .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .err { font-size: 13px; color: var(--danger); display: none; }
.field.has-err .err { display: block; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-input); border: 1px solid var(--line-2);
  background: var(--surface); font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #8a8a90; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 84, 252, .18); }
.field.has-err .input { border-color: var(--danger); }
textarea.input { min-height: 84px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.check .link { font-weight: 600; }

/* ---------- 横滑卡片排（照 Apple 商店，§6） ---------- */
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shelf-head__copy { display: grid; gap: 12px; }
.shelf-nav { display: none; gap: 8px; flex: none; }
@media (min-width: 1024px) and (hover: hover) { .shelf-nav { display: flex; } }
.shelf-nav__btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(118, 118, 128, .12); color: var(--ink);
  display: grid; place-items: center; transition: opacity .2s ease, background-color .2s ease;
}
.shelf-nav__btn:hover:not(:disabled) { background: rgba(118, 118, 128, .2); }
.shelf-nav__btn:disabled { opacity: .3; cursor: default; }
.shelf {
  --shelf-pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--shelf-pad);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf__track { display: flex; gap: 14px; width: max-content; padding: 8px var(--shelf-pad) 28px; }
.shelf__track > * { scroll-snap-align: start; }

/* 班型卡（首页、商店共用，§14.3：竖版，手机约 78% 屏宽；蓝色深浅区分班型，§6） */
.tier-card {
  position: relative; flex: none; display: flex; flex-direction: column;
  width: 78vw; max-width: 310px; min-height: 470px; padding: 24px 22px 20px;
  border-radius: 24px; overflow: hidden;
  background: #e8eefc; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 40, 90, .05), 0 12px 30px rgba(20, 40, 90, .08);
  transition: transform var(--t-release) var(--ease-spring), box-shadow .25s ease;
}
@media (min-width: 768px) { .tier-card { width: 290px; } }
.tier-card:active { transform: scale(.985); transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tier-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 40, 90, .06), 0 20px 44px rgba(20, 40, 90, .14); }
}
.tier-card__name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tier-card__line { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; min-height: 3em; }
.tier-card__art { position: relative; height: 150px; margin: 16px 0 14px; }
.tier-card__art img, .tier-card__art .paper-ph {
  position: absolute; width: auto; height: 100%; border-radius: 6px; background: #fff;
  box-shadow: 0 2px 6px rgba(20, 40, 90, .10), 0 14px 32px rgba(20, 40, 90, .16);
}
.tier-card__art img:nth-child(1) { left: 4%; top: 0; transform: rotate(-3deg); }
.tier-card__art img:nth-child(2) { right: 4%; top: 8px; transform: rotate(4deg); }
.tier-card__art .art-photo { left: 0; right: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; transform: none !important; box-shadow: 0 6px 20px rgba(20, 40, 90, .12); }
.tier-card__points { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tier-card__points li { padding-left: 16px; position: relative; line-height: 1.45; }
.tier-card__points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.tier-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tier-card__price { font-size: 28px; line-height: 1.1; }
.tier-card__go { font-size: 14px; font-weight: 600; color: var(--blue-ink); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.tier-card .chip { background: rgba(255, 255, 255, .7); }
.tier-card--jx { background: var(--blue-200); }
.tier-card--zt { background: var(--blue); color: #fff; }
.tier-card--zt .tier-card__line, .tier-card--zt .tier-card__points { color: rgba(255, 255, 255, .86); }
.tier-card--zt .chip { background: rgba(255, 255, 255, .2); color: #fff; }
.tier-card--zt .tier-card__go { color: #fff; }
.tier-card--jl { background: var(--navy); color: #fff; }
.tier-card--jl .tier-card__line, .tier-card--jl .tier-card__points { color: rgba(255, 255, 255, .76); }
.tier-card--jl .chip { background: var(--yellow); color: var(--yellow-ink); }
.tier-card--jl .tier-card__price { color: var(--yellow); }
.tier-card--jl .tier-card__go { color: #fff; }

/* 单项卡（小一号，统一浅灰底，细节用蓝色，§6） */
.item-card {
  flex: none; width: 62vw; max-width: 250px; min-height: 290px; display: flex; flex-direction: column; gap: 6px;
  padding: 16px 16px 18px; border-radius: 20px; background: #e9edf4; color: var(--ink);
  transition: transform var(--t-release) var(--ease-spring), box-shadow .25s ease;
}
@media (min-width: 768px) { .item-card { width: 240px; } }
.item-card:active { transform: scale(.985); transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }
.item-card__art { height: 112px; border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 8px; display: grid; place-items: center; }
.item-card__art img { width: 100%; height: 100%; object-fit: cover; }
.item-card__art--contain img { object-fit: contain; padding: 6px; }
.item-card__name { font-size: 17px; font-weight: 650; line-height: 1.35; }
.item-card__desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.item-card__price { margin-top: auto; padding-top: 8px; font-size: 19px; color: var(--blue-ink); }
.item-card__price small { font-size: 13px; font-weight: 600; margin-left: 2px; }

/* 排版图（没有实拍时：主色块 + 大字，§6） */
.type-art {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 10px;
  background: linear-gradient(150deg, var(--blue) 0%, #1a3fd0 60%, #13308f 100%); color: #fff;
}
.type-art b { display: block; font-size: 20px; letter-spacing: .02em; }
.type-art span { font-size: 11.5px; opacity: .8; }
.paper-ph {
  display: grid; place-items: center; aspect-ratio: 1075 / 1521;
  background: #fff repeating-linear-gradient(to bottom, transparent 0 17px, rgba(29, 29, 31, .06) 17px 18px);
}
.paper-ph em { font-style: normal; font-size: 12px; color: var(--ink-3); background: #fff; padding: 2px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100vw - 40px);
  background: rgba(29, 29, 31, .92); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; text-align: center;
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 进场：只有允许动画时才先藏起来，由 GSAP 放出来 ---------- */
.motion [data-reveal] { opacity: 0; }
.motion [data-split] { opacity: 0; }
.motion.motion-failed [data-reveal], .motion.motion-failed [data-split] { opacity: 1; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* 页面切换 */
.page-fade { transition: opacity 150ms var(--ease-out); }
.is-leaving .page-fade { opacity: 0; }

/* 滚动锁 */
html.is-locked { overflow: hidden; }

/* ---------- 减弱动态效果：去掉位移，保留淡入淡出（抽屉、弹层、吸底条改成 200ms 淡入） ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .card--press, .opt-chip, .tier-card, .item-card, .copy-btn, .link-arrow .arr { transition: opacity .2s ease !important; transform: none !important; }
  .seg__thumb, .fold > summary::after { transition: none !important; }
  .drawer, .sheet { transition: opacity 200ms ease, visibility 0s linear 200ms !important; opacity: 0; transform: none !important; }
  .drawer.is-open, .sheet.is-open { transition: opacity 200ms ease, visibility 0s !important; opacity: 1; }
  .buybar { transform: none !important; opacity: 0; pointer-events: none; transition: opacity 200ms ease !important; }
  .buybar.is-shown { opacity: 1; pointer-events: auto; }
  .toast { transform: translate(-50%, 0) !important; transition: opacity 200ms ease !important; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .sheet { transform: translate(-50%, -50%) !important; }
}
.no-motion .btn, .no-motion .card--press, .no-motion .opt-chip, .no-motion .tier-card, .no-motion .item-card, .no-motion .copy-btn, .no-motion .link-arrow .arr { transition: opacity .2s ease !important; transform: none !important; }
.no-motion .seg__thumb, .no-motion .fold > summary::after { transition: none !important; }
.no-motion .drawer, .no-motion .sheet { transition: opacity 200ms ease, visibility 0s linear 200ms !important; opacity: 0; transform: none !important; }
.no-motion .drawer.is-open, .no-motion .sheet.is-open { transition: opacity 200ms ease, visibility 0s !important; opacity: 1; }
.no-motion .buybar { transform: none !important; opacity: 0; pointer-events: none; transition: opacity 200ms ease !important; }
.no-motion .buybar.is-shown { opacity: 1; pointer-events: auto; }
.no-motion .toast { transform: translate(-50%, 0) !important; transition: opacity 200ms ease !important; }
@media (min-width: 768px) { .no-motion .sheet { transform: translate(-50%, -50%) !important; } }
@media (prefers-reduced-transparency: reduce) {
  .tb::before, .subnav::before { background: #f7f8fb; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .buybar { background: #fdfdfe; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  .tb, .footer, .drawer, .sheet, .scrim, .buybar, .toast, .subnav, .no-print { display: none !important; }
  body { background: #fff; }
}
