/* ============================================================
   升学 · JPDGK 主站样式（Apple 极简精进版）
   系统字体、大留白、0.5px 发丝描边、克制轻阴影、浅色/深色双模式自适应
   ============================================================ */

:root {
  color-scheme: light;

  /* Apple 浅色基础色板 */
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --header-bg: rgba(251, 251, 253, 0.8);
  --modal-bg: rgba(255, 255, 255, 0.94);

  --border: #e5e5ea;
  --border-strong: #d2d2d7;

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --text-4: #aeaeb2;

  --primary: #0071e3;
  --primary-2: #0077ed;
  --primary-strong: #0066cc;
  --primary-soft: #e8f2fd;
  --primary-soft-2: #d6e9fc;
  --accent: #5ac8fa;

  --success: #248a3d;
  --success-soft: #e4f5ea;
  --warn: #b25000;
  --warn-soft: #fff1e3;
  --danger: #d70015;
  --danger-soft: #ffe9eb;
  --info: #0071e3;
  --info-soft: #e8f2fd;
  --violet: #8944ab;
  --violet-soft: #f2e8fa;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  --ring-a: rgba(0, 113, 227, 0.055);
  --ring-b: rgba(0, 113, 227, 0.03);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Cascadia Mono", Consolas, monospace;
}

/* Apple macOS 深色模式（修复 V3 对比度与原生滚动条） */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #000000;
  --bg-2: #0c0c0e;
  --surface: #161618;
  --surface-2: #1f1f22;
  --surface-3: #2c2c30;
  --header-bg: rgba(12, 12, 14, 0.78);
  --modal-bg: rgba(24, 24, 28, 0.95);

  --border: #2c2c2e;
  --border-strong: #3d3d41;

  --text: #f5f5f7;
  --text-2: #a9a9b0;
  --text-3: #8e8e93;
  --text-4: #68686e;

  --primary: #0a84ff;
  --primary-2: #409cff;
  --primary-strong: #409cff;
  --primary-soft: rgba(10, 132, 255, 0.16);
  --primary-soft-2: rgba(10, 132, 255, 0.28);

  --success: #30d158;
  --success-soft: rgba(48, 209, 88, 0.15);
  --warn: #ff9f0a;
  --warn-soft: rgba(255, 159, 10, 0.16);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.16);
  --info: #0a84ff;
  --info-soft: rgba(10, 132, 255, 0.16);
  --violet: #bf5af2;
  --violet-soft: rgba(191, 90, 242, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.72);
  --ring-a: rgba(10, 132, 255, 0.09);
  --ring-b: rgba(10, 132, 255, 0.05);
}

[hidden] {
  display: none !important;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.22s, color 0.22s;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; outline: none; }
button { cursor: pointer; }
svg { display: block; flex-shrink: 0; }

::selection { background: #b4d7fb; color: #000; }
:root[data-theme="dark"] ::selection { background: #0a84ff; color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 5px;
}

/* ---------- 布局骨架与顶栏 ---------- */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 52px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  line-height: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-top: 1px;
}

.nav { display: flex; gap: 2px; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--text); }
.nav a.is-active {
  color: var(--text);
  background: var(--surface-3);
  font-weight: 500;
}
:root[data-theme="dark"] .nav a.is-active {
  color: #ffffff;
  background: var(--surface-3);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  margin-right: 4px;
}

.hdr-pill {
  height: 28px;
  padding: 0 10px;
  border-radius: 980px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.hdr-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}
.hdr-pill svg {
  width: 13px;
  height: 13px;
}
.hdr-pill kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}

.sl-star {
  color: var(--primary);
  font-size: 12.5px;
  line-height: 1;
}
.sl-count {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 980px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  display: inline-grid;
  place-items: center;
}
.sl-count.has-items {
  background: var(--primary);
  color: #fff;
}

.lang-seg {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 980px;
  background: var(--surface-2);
  border: 0.5px solid var(--border-strong);
  height: 28px;
}
.lang-seg button {
  border: 0;
  background: transparent;
  padding: 0 8px;
  height: 22px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  transition: background 0.15s, color 0.15s;
}
.lang-seg button:hover {
  color: var(--text);
}
.lang-seg button.is-on {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.jp-sub {
  font-weight: 400;
  font-size: 0.88em;
  color: var(--text-3);
  margin-left: 5px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  transition: background 0.18s, color 0.18s;
}
.theme-toggle:hover { background: var(--border-strong); color: var(--text); }
.theme-toggle svg { width: 15px; height: 15px; }

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0.5px solid var(--border-strong);
  border-radius: 50%;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow);
  color: var(--text-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: var(--primary); border-color: var(--primary); }
.back-to-top svg { width: 18px; height: 18px; }

main { min-height: 72vh; padding-bottom: 96px; }

.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 28px 0 44px;
  color: var(--text-3);
  font-size: 11.5px;
}
.footer-inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-vers a {
  color: var(--primary);
}
.footer-vers a:hover {
  text-decoration: underline;
}

/* ---------- 通用排版与 Apple 分段控件 ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
}

.page-head, .page-head-v2 { position: relative; overflow: hidden; }
.page-head::before, .page-head-v2::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -130px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 38px var(--ring-b);
  pointer-events: none;
}
.page-head > *, .page-head-v2 > * { position: relative; z-index: 1; }

.lede { font-size: 16px; color: var(--text-2); max-width: 44ch; line-height: 1.75; }
.muted { color: var(--text-3); }
.tiny { font-size: 12px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.btn, .btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 980px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s, opacity 0.2s;
}
.btn:hover, .btn-v2:hover { background: var(--primary-2); color: #fff; }
.btn--sm { padding: 7px 15px; font-size: 12.5px; }
.arw { transition: transform 0.2s; }
.btn-v2:hover .arw { transform: translateX(3px); }

.btn--ghost, .btn-v2-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 980px;
  background: transparent;
  color: var(--primary);
  border: 0;
  font-size: 13.5px;
  transition: opacity 0.2s;
}
.btn--ghost:hover, .btn-v2-ghost:hover { opacity: 0.72; text-decoration: underline; }

/* Apple Segmented Control */
.seg-ctrl {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  gap: 2px;
  flex-wrap: wrap;
}
.seg-ctrl button {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.seg-ctrl button:hover { color: var(--text); }
.seg-ctrl button.is-on {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.seg-ctrl--xs { padding: 2px; border-radius: 8px; }
.seg-ctrl--xs button { padding: 3px 9px; font-size: 11px; border-radius: 6px; }

/* 收藏星标按钮 */
.star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-3);
  font-size: 11.5px;
  transition: all 0.15s;
}
.star-btn--labeled { padding: 0 10px; border-radius: 980px; }
.star-btn:hover { border-color: var(--primary); color: var(--primary); }
.star-btn.is-saved {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.star-ic { font-size: 13px; line-height: 1; }

.inline-pill-btn {
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 980px;
  transition: background 0.15s, border-color 0.15s;
}
.inline-pill-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ---------- 1. 首页 ---------- */

.hero-v2 {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
}
.hero-v2::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -190px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 56px var(--ring-a), 0 0 0 112px var(--ring-b);
  pointer-events: none;
}
.hero-v2::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: -170px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.hero-v2 .shell { position: relative; z-index: 1; text-align: center; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border: 0.5px solid var(--border);
  border-radius: 980px;
  background: var(--surface);
}
.hero-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.8vw, 62px);
  line-height: 1.12;
  font-weight: 650;
  color: var(--text);
  margin: 24px auto 20px;
  letter-spacing: -0.04em;
}
.hero-title em {
  font-style: normal;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--primary-soft-2);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.06em;
}

.hero-lede {
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.72;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 28px;
  letter-spacing: -0.015em;
}

/* Apple 玻璃态快速试筛坞 */
.hero-quick-dock {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  text-align: left;
}
.hqd-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hqd-lbl {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
}
.hqd-cta strong {
  font-family: var(--font-mono);
  font-weight: 700;
  margin: 0 2px;
}

.hero-sub-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.hero-sub-links a { color: var(--primary); }
.hero-sub-links a:hover { text-decoration: underline; }

/* 近期締切速览细条 */
.upcoming-strip {
  margin-top: 28px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.us-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.us-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.us-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.us-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 980px;
  background: var(--surface-2);
  font-size: 12px;
  transition: background 0.15s;
}
.us-chip:hover { background: var(--primary-soft); }
.us-road { font-size: 10.5px; color: var(--primary); font-weight: 600; }
.us-name { font-weight: 500; }
.us-days { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.us-days.dl--urgent { color: var(--danger); font-weight: 600; }
.us-days.dl--soon { color: var(--warn); }
.us-more { font-size: 12px; color: var(--primary); white-space: nowrap; }
.us-more:hover { text-decoration: underline; }

.steps-band { padding: 40px 0 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step-card {
  display: block;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.step-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.step-card .step-n {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-4);
  line-height: 1;
  letter-spacing: -0.04em;
}
.step-card h3 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.step-card p { font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin: 0; }
.step-card .step-arrow { position: absolute; right: 24px; top: 26px; color: var(--text-4); font-size: 17px; }

.stat-strip-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 64px 0 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat-v2 { padding: 28px 26px; border-right: 0.5px solid var(--border); }
.stat-v2:last-child { border-right: 0; }
.stat-v2 .n { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.035em; }
.stat-v2 .n small { font-size: 14px; font-weight: 400; margin-left: 3px; color: var(--text-3); letter-spacing: 0; }
.stat-v2 .l { font-size: 12.5px; color: var(--text-2); margin-top: 10px; }

.sec-v2 { padding: 88px 0 0; }
.sec-head-v2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-kicker { font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.sec-kicker::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
}
.sec-title { font-family: var(--font-display); font-size: clamp(25px, 3.2vw, 34px); font-weight: 600; color: var(--text); margin: 0; letter-spacing: -0.03em; }

.road-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-tile {
  display: block;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.road-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.road-tile .rt-top { display: flex; justify-content: space-between; align-items: center; }
.road-tile .rt-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
}
.road-tile h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 18px 0 6px; }
.road-tile .rt-desc { font-size: 12.5px; color: var(--text-2); margin: 0 0 24px; }
.road-tile .rt-bar { height: 5px; border-radius: 999px; overflow: hidden; display: flex; gap: 2px; margin-bottom: 12px; }
.road-tile .rt-bar span { height: 100%; }
.road-tile .rt-bar span:nth-child(1) { background: var(--primary); }
.road-tile .rt-bar span:nth-child(2) { background: var(--accent); }
.road-tile .rt-bar span:nth-child(3) { background: var(--border-strong); }
.road-tile .rt-bar span:nth-child(4) { background: var(--danger); }
.road-tile .rt-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.road-tile .rt-legend b { color: var(--text); font-weight: 600; }
.road-tile .rt-go { margin-top: 22px; font-size: 12.5px; color: var(--primary); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-card { background: transparent; border-top: 2px solid var(--primary); padding: 22px 4px 0; }
.trust-card .tc-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.trust-card h4 { font-size: 15px; font-weight: 600; margin: 12px 0 8px; }
.trust-card p { font-size: 12.5px; line-height: 1.75; color: var(--text-2); margin: 0; }

.cta-band {
  background: #1d1d1f;
  color: #fff;
  border-radius: var(--radius);
  padding: 46px 50px;
  margin: 88px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .cta-band {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.03em; }
.cta-band p { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin: 0; }
.cta-band .btn-v2 { background: #fff; color: #1d1d1f; flex: none; }
.cta-band .btn-v2:hover { background: #e8e8ed; color: #1d1d1f; }

/* ---------- 2. 筛选页 ---------- */

.page-head-v2 { padding: 52px 0 28px; border-bottom: 0.5px solid var(--border); }
.page-head-v2 h1 { font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 44px); font-weight: 650; margin: 10px 0 12px; letter-spacing: -0.035em; }
.page-head-v2 .lede { font-size: 15px; line-height: 1.75; color: var(--text-2); max-width: 640px; margin: 0; }

.wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 0 70px; align-items: start; }
.wizard-side { position: static; }
#results-anchor { scroll-margin-top: 64px; }

.wizard-panel {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wizard-top {
  padding: 12px 22px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wizard-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.wizard-top b { font-size: 14px; font-weight: 600; }
.preset-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-3);
}
.preset-pill {
  padding: 3px 10px;
  border-radius: 980px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11.5px;
  transition: all 0.15s;
}
.preset-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.wizard-top-actions { display: flex; align-items: center; gap: 14px; }
.wreset { font-size: 12.5px; color: var(--primary); border: 0; background: none; }
.wreset:hover { text-decoration: underline; }
.wizard-top .wapply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 15px;
  border-radius: 980px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
}
.wizard-top .wapply:hover { background: var(--primary-2); }

.wizard-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.wstep { padding: 18px 22px; border-right: 0.5px solid var(--border); min-width: 0; }
.wstep:last-child { border-right: 0; }
.wstep-h { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.wstep-h .w-n {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  flex: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.wstep-h .w-t { font-size: 13.5px; font-weight: 600; }
.wstep-h .w-sub { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

.wlabel { font-size: 12px; color: var(--text-2); margin: 0 0 7px; display: block; font-weight: 500; }
.wlabel .wlabel-hint { color: var(--text-4); font-weight: 400; font-size: 10.5px; margin-left: 5px; }
.wfield { margin-bottom: 13px; }
.wfield:last-child { margin-bottom: 0; }
.wrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.input-clear-wrap { position: relative; }
.winput, .wselect {
  width: 100%;
  padding: 8px 11px;
  font-size: 13px;
  color: var(--text);
  border: 0.5px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-2);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.winput--sm { padding: 6px 10px; font-size: 12px; margin-bottom: 10px; }
.winput::placeholder { color: var(--text-4); }
.winput:focus, .wselect:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.winput-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip {
  padding: 6px 13px;
  border-radius: 980px;
  font-size: 12.5px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.15s;
}
.wchip:hover { border-color: var(--primary); color: var(--text); }
.wchip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* JLPT 六档分段条 */
.jlpt-seg {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  gap: 2px;
}
.jlpt-seg button {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
  transition: all 0.15s;
}
.jlpt-seg button:hover { color: var(--text); }
.jlpt-seg button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.25);
}

/* 报名费快捷胶囊 */
.fee-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 6px;
}
.fee-pills button {
  padding: 4px 6px;
  border-radius: 7px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--text-2);
}
.fee-pills button.is-on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* iOS 风格拨动开关 */
.ios-switches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.ios-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  cursor: pointer;
}
.ios-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ios-track {
  width: 36px;
  height: 20px;
  border-radius: 980px;
  background: var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s;
}
.ios-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s;
}
.ios-switch input:checked + .ios-track { background: var(--primary); }
.ios-switch input:checked + .ios-track::after { transform: translateX(16px); }
.ios-label { display: flex; flex-direction: column; line-height: 1.3; }
.ios-label b { font-size: 12.5px; font-weight: 500; }
.ios-label small { font-size: 11px; color: var(--text-3); }

.whint { font-size: 11.5px; line-height: 1.6; color: var(--text-3); margin-top: 6px; }

/* 结果控制栏 */
.result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.result-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.result-bar .rcount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.result-bar .rcount span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  margin-left: 8px;
  letter-spacing: 0;
}
.result-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.result-tools .wselect { width: auto; padding: 6px 26px 6px 11px; font-size: 12px; }

.btn-mini {
  padding: 6px 13px;
  font-size: 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--text);
  transition: background 0.18s;
}
.btn-mini:hover { background: var(--surface-3); }

/* ---------- 结论卡（双列宽裕排布，无截断四要素） ---------- */

.vcard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vcard {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 3px solid var(--success);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vcard.vc-ok { border-left-color: var(--success); }
.vcard.vc-cond { border-left-color: var(--primary); }
.vcard.vc-warn { border-left-color: var(--warn); }

.vc-head { padding: 18px 20px 14px; display: flex; align-items: flex-start; gap: 10px; }
.vc-badge {
  flex: none;
  padding: 3px 9px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  background: var(--success-soft);
  color: var(--success);
}
.vc-warn .vc-badge { background: var(--warn-soft); color: var(--warn); }
.vc-cond .vc-badge { background: var(--info-soft); color: var(--info); }

.vc-title { flex: 1; min-width: 0; }
.vc-name { font-size: 16px; font-weight: 600; color: var(--text); margin: 0; letter-spacing: -0.02em; }
.vc-name a:hover { color: var(--primary); }
.vc-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.vc-road {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 3px 8px;
  flex: none;
}

.vc-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.vc-fact { padding: 11px 13px; border-right: 0.5px solid var(--border); }
.vc-fact:last-child { border-right: 0; }
.vc-fact .k { font-size: 10.5px; color: var(--text-3); margin-bottom: 4px; }
.vc-fact .v {
  font-size: 12px;
  line-height: 1.38;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}
.vc-dl-urgent { color: var(--danger) !important; }
.vc-dl-soon { color: var(--warn) !important; }
.vc-dl-closed { color: var(--text-3) !important; }

.vc-notes { padding: 13px 20px; flex: 1; }
.vc-note { display: flex; gap: 8px; font-size: 12px; line-height: 1.6; color: var(--text-2); margin-bottom: 5px; }
.vc-note:last-child { margin-bottom: 0; }
.vc-note .mk { flex: none; font-size: 11px; font-weight: 700; }
.vc-note.ok .mk { color: var(--success); }
.vc-note.q .mk { color: var(--warn); }

.vc-foot { padding: 11px 20px; border-top: 0.5px solid var(--border); display: flex; align-items: center; gap: 14px; }
.vc-foot .conf { margin-right: auto; }
.vc-foot a { font-size: 12px; color: var(--primary); font-weight: 500; }
.vc-foot a:hover { text-decoration: underline; }
.vc-toggle { font-size: 12px; color: var(--text-2); cursor: pointer; user-select: none; }
.vc-toggle:hover { color: var(--primary); }

.vc-detail { border-top: 0.5px solid var(--border); padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.26s ease, padding 0.26s ease; background: var(--surface-2); }
.vc-detail.open { max-height: 460px; padding: 14px 20px; }
.vc-detail p { font-size: 11.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 8px; }
.vc-detail p:last-child { margin-bottom: 0; }
.vc-detail .gloss { font-family: var(--font-mono); font-size: 10.5px; background: var(--primary-soft); color: var(--primary-strong); border-radius: 4px; padding: 2px 6px; margin-right: 4px; }

/* 排除原因与空态 */
.reasons-v2 { margin-top: 32px; border: 0.5px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.reasons-v2 summary { padding: 16px 20px; font-size: 12.5px; color: var(--text-2); cursor: pointer; list-style: none; }
.reasons-v2 summary::-webkit-details-marker { display: none; }
.reasons-v2 summary::before { content: "▸"; color: var(--text-3); margin-right: 9px; font-size: 11px; }
.reasons-v2[open] summary::before { content: "▾"; }
.reasons-v2 summary:hover { color: var(--text); }
.reason-list { padding: 0 20px 18px; display: grid; gap: 10px; }

.reason-row { display: grid; grid-template-columns: 1fr 48px; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); }
.reason-label-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reason-bar { height: 4px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.reason-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.reason-num { font-family: var(--font-mono); text-align: right; color: var(--text-3); }

.dl-tip { font-size: 12px; color: var(--text-3); padding: 26px 0; }
.empty-v2 { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 60px 28px; text-align: center; }
.empty-v2 h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.empty-v2 p { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin: 0 auto; max-width: 440px; }

.load-more-v2 {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  transition: background 0.18s;
}
.load-more-v2:hover { background: var(--surface-3); }
.load-more-v2 span { color: var(--text-3); font-size: 11px; margin-left: 6px; font-weight: 400; }

/* 紧凑表格视图 */
.table-wrap { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data thead th { position: sticky; top: 52px; background: var(--surface-2); text-align: left; padding: 11px 13px; border-bottom: 0.5px solid var(--border); font-size: 11px; color: var(--text-3); font-weight: 500; white-space: nowrap; z-index: 3; }
table.data tbody td { padding: 11px 13px; border-bottom: 0.5px solid var(--border); vertical-align: middle; white-space: nowrap; }
table.data tbody td.col-name, table.data tbody td.col-verdict { white-space: normal; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover { background: var(--surface-2); }
.school-name { font-size: 13.5px; line-height: 1.4; font-weight: 600; }
.school-name a:hover { color: var(--primary); }
.school-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- 3. 学校详情 ---------- */

.crumb-bar {
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crumb { font-size: 12px; color: var(--text-3); }
.crumb a:hover { color: var(--primary); }
.crumb span { color: var(--text); font-weight: 500; }
.school-nav-adj { display: flex; gap: 6px; flex-wrap: wrap; }

.school-head { padding: 20px 0 24px; border-bottom: 0.5px solid var(--border); }
.school-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.school-title h1 { font-family: var(--font-display); font-size: 36px; font-weight: 650; letter-spacing: -0.035em; }
.school-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; font-size: 12px; color: var(--text-3); }
.school-meta a { color: var(--primary); font-weight: 500; }
.school-meta a:hover { text-decoration: underline; }

/* 三路径概览切换卡（Apple 精细描边卡） */
.track-card-tabs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.track-card-tab {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.18s;
}
.track-card-tab:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}
.track-card-tab.is-active {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-sm);
}
.tct-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tct-mid { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.tct-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); gap: 8px; }
.tct-foot b { color: var(--text); font-weight: 600; }

/* 实时测算结论横幅 */
.verdict {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-2);
  margin: 24px 0 16px;
}
.verdict--ok { background: var(--success-soft); border-color: rgba(36, 138, 61, 0.2); }
.verdict--warn { background: var(--warn-soft); border-color: rgba(178, 80, 0, 0.2); }
.verdict--alert { background: var(--danger-soft); border-color: rgba(215, 0, 21, 0.2); }
.verdict-body { flex: 1; min-width: 240px; }
.vb-prof-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.verdict-title { font-size: 15px; font-weight: 600; }
.verdict-note { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.verdict-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.vb-editor {
  width: 100%;
  padding-top: 14px;
  border-top: 0.5px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.vb-editor label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
}
.vb-editor .winput { width: 92px; padding: 6px 9px; background: var(--surface); }
.vb-editor .wselect { width: 96px; padding: 6px 9px; background: var(--surface); }
.vb-chk { flex-direction: row !important; align-items: center; height: 32px; padding: 0 6px; font-size: 12px !important; }

/* 四格核心摘要条 */
.detail-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}
.dkpi-cell {
  padding: 18px 20px;
  border-right: 0.5px solid var(--border);
}
.dkpi-cell:last-child { border-right: 0; }
.dkpi-cell .k { font-size: 11px; color: var(--text-3); margin-bottom: 5px; }
.dkpi-cell .v { font-size: 17px; font-weight: 650; color: var(--text); letter-spacing: -0.02em; }
.dkpi-cell .v.dl--urgent { color: var(--danger); }
.dkpi-cell .v.dl--soon { color: var(--warn); }
.dkpi-cell .v.dl--closed { color: var(--text-3); }
.dkpi-cell .s { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding-top: 8px; align-items: start; }
.block { margin-bottom: 36px; }
.block-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  border-left: 2px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.spec { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2px 18px; font-size: 13px; margin: 0; }
.spec dt { color: var(--text-3); font-size: 12px; padding: 9px 0; border-bottom: 0.5px solid var(--border); }
.spec dd { margin: 0; padding: 9px 0; border-bottom: 0.5px solid var(--border); line-height: 1.7; word-break: break-word; color: var(--text); }
.spec dd.is-empty { color: var(--text-4); }

.sub-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}
.subj-list { display: flex; flex-wrap: wrap; gap: 6px; }

.quote {
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.78;
  white-space: pre-wrap;
  word-break: break-word;
}

.clause-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.clause-cards li {
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border-left: 2px solid var(--primary);
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--text-2);
  word-break: break-word;
}

.prog-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.prog-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.side-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.side-card h4 {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}
.art-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}
.art-card-head h4 {
  margin: 0;
  padding: 0;
  border: 0;
}

.file-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.file-item--v5 {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  font-size: 11.5px;
  line-height: 1.45;
}
.file-item--v5 .fi-name { word-break: break-all; color: var(--text); font-weight: 500; margin-bottom: 5px; }
.fi-name-link:hover { color: var(--primary); text-decoration: underline; }
.fi-subrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fi-tag { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.fi-links { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; flex-wrap: wrap; }
.fi-links a { color: var(--text-2); font-weight: 500; }
.fi-links a.fi-local-pdf {
  padding: 2px 8px;
  border-radius: 980px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.fi-links a.fi-local-pdf:hover { background: var(--primary); color: #fff; text-decoration: none; }
.fi-links a.fi-pdf { color: var(--primary); font-weight: 500; }
.fi-links a:hover { text-decoration: underline; }

.local-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.16s;
}
.local-pdf-btn:hover { background: var(--primary-2); color: #fff; }

.evidence-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary); word-break: break-all; }
.evidence-link:hover { text-decoration: underline; }

/* ---------- 徽章 / 门槛 / 倒计时 ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 980px;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
  font-weight: 500;
}
.badge--road-路1 { background: var(--info-soft); color: var(--info); }
.badge--road-路2 { background: var(--warn-soft); color: var(--warn); }
.badge--road-路3 { background: var(--violet-soft); color: var(--violet); }
.badge--a { background: var(--success-soft); color: var(--success); }
.badge--b { background: var(--info-soft); color: var(--info); }
.badge--c { background: var(--surface-2); color: var(--text-2); }
.badge--de { background: var(--danger-soft); color: var(--danger); }
.badge--outline { background: var(--surface-2); color: var(--text-2); }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--alert { background: var(--danger-soft); color: var(--danger); }

.gate { font-size: 11.5px; font-family: var(--font-mono); white-space: nowrap; }
.gate--hard { color: var(--danger); }
.gate--mid { color: var(--text); }
.gate--soft { color: var(--text-3); }

.dl { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.dl-date { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.dl-days { font-family: var(--font-mono); font-size: 10px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-3); }
.dl--soon .dl-days { background: var(--warn-soft); color: var(--warn); }
.dl--urgent .dl-days { background: var(--danger-soft); color: var(--danger); }
.dl--closed .dl-date { color: var(--text-4); text-decoration: line-through; }

/* ---------- 4. 日历 ---------- */

.page-head { padding: 52px 0 28px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(27px, 4vw, 40px); font-weight: 650; letter-spacing: -0.035em; margin-top: 8px; }
.page-head .lede { margin-top: 12px; max-width: 720px; }

.cal-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 0.5px solid var(--border);
  background: var(--surface-2);
  border-radius: 980px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chip:hover { background: var(--surface-3); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 跨年月份密度快跳卡（自动折行，无重复月份歧义） */
.cal-density-card {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cdc-head { font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 12px; }
.cdc-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cdc-pill {
  min-width: 70px;
  padding: 8px 10px 7px;
  border-radius: 11px;
  border: 0.5px solid var(--border);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: border-color 0.15s, background 0.15s;
}
.cdc-pill:hover { border-color: var(--primary); background: var(--primary-soft); }
.cdc-bar {
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-3);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.cdc-bar i { display: block; width: 100%; background: var(--primary); border-radius: 999px; }
.cdc-pill strong { font-size: 11.5px; font-weight: 600; }
.cdc-pill small { font-size: 10.5px; color: var(--text-3); }

.month-block { margin-bottom: 24px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 66px; }
.month-head { display: flex; align-items: baseline; gap: 14px; padding: 16px 22px; border-bottom: 0.5px solid var(--border); }
.month-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.month-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 9px;
  vertical-align: middle;
}
.month-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: auto; }

.day-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 14px 22px; border-bottom: 0.5px solid var(--border); }
.day-row:last-child { border-bottom: 0; }
.day-date { font-size: 12.5px; color: var(--text-2); padding-top: 2px; }
.day-date b { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.day-date span { display: block; font-size: 10.5px; color: var(--text-3); }
.day-items { display: flex; flex-wrap: wrap; gap: 7px; }

.day-chip-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 980px;
  background: var(--surface-2);
  padding-right: 3px;
  transition: background 0.15s;
}
.day-chip-wrap:hover { background: var(--primary-soft); }
.day-chip-wrap .star-btn {
  border: 0;
  background: transparent;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
}
.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 10px;
  border-radius: 980px;
  font-size: 12px;
  color: var(--text-2);
}
.day-chip:hover { color: var(--primary-strong); }
.day-chip .dc-road { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.day-chip-wrap.is-today { background: var(--primary); }
.day-chip.is-today { color: #fff; }
.day-chip.is-today .dc-road { color: rgba(255, 255, 255, 0.78); }
.day-chip-wrap.is-today .star-btn { color: rgba(255, 255, 255, 0.85); }

/* ---------- 5. 口径页 ---------- */

.prose { max-width: 52rem; }
.prose h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 48px 0 16px; letter-spacing: -0.03em; }
.prose h2::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}
.prose p { margin: 0 0 16px; color: var(--text-2); line-height: 1.85; }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; line-height: 1.8; }
.prose li::marker { color: var(--text-4); }
.prose code { font-family: var(--font-mono); font-size: 11.5px; background: var(--surface-2); color: var(--text); padding: 2px 6px; border-radius: 5px; }
.prose strong { font-weight: 600; color: var(--text); }

table.doc {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  margin: 8px 0 22px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
table.doc th { text-align: left; font-size: 11px; color: var(--text-3); font-weight: 500; padding: 10px 12px; border-bottom: 0.5px solid var(--border-strong); background: var(--surface-2); }
table.doc td { padding: 11px 12px; border-bottom: 0.5px solid var(--border); color: var(--text-2); vertical-align: middle; }
table.doc tr:last-child td { border-bottom: 0; }
table.doc td:first-child { white-space: nowrap; color: var(--text); }

.callout {
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.85;
}

.loading { padding: 80px 0; text-align: center; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.empty { padding: 72px 24px; text-align: center; color: var(--text-3); }
.empty h3 { font-size: 19px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.empty code { font-family: var(--font-mono); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--primary); }

/* ---------- Apple Sheet 志愿单抽屉 & Spotlight 弹窗 ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s;
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(660px, calc(100vw - 24px));
  z-index: 100;
  background: var(--modal-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.sheet-drawer.is-open { transform: translateX(0); }

.sheet-head {
  padding: 18px 22px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sheet-eyebrow { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.sheet-title { font-size: 19px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.sheet-badge { font-family: var(--font-mono); font-size: 12px; padding: 1px 8px; border-radius: 980px; background: var(--primary-soft); color: var(--primary); }
.sheet-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.btn-seg {
  padding: 6px 12px;
  border-radius: 980px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.btn-seg:hover, .btn-seg.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-seg--danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

.sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-3);
  color: var(--text-2);
  display: grid;
  place-items: center;
}
.sheet-close:hover { color: var(--text); }
.sheet-close svg { width: 14px; height: 14px; }

.sheet-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.sheet-tip { padding: 9px 13px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--text-2); margin-bottom: 14px; }
.sheet-empty { text-align: center; padding: 64px 20px; }
.se-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--primary); font-size: 22px; display: grid; place-items: center; margin: 0 auto 14px; }
.sheet-empty h3 { font-size: 18px; margin-bottom: 8px; }
.sheet-empty p { font-size: 12.5px; color: var(--text-2); max-width: 360px; margin: 0 auto 20px; }

.sl-list { display: grid; gap: 10px; }
.sl-item { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 0.5px solid var(--border); box-shadow: var(--shadow-sm); }
.sl-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.sl-item-name { font-size: 15px; font-weight: 600; }
.sl-item-name:hover { color: var(--primary); }
.sl-item-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.sl-item-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.cmp-wrap { overflow-x: auto; border: 0.5px solid var(--border); border-radius: 14px; background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cmp-table th, .cmp-table td { padding: 10px 13px; border-bottom: 0.5px solid var(--border); border-right: 0.5px solid var(--border); min-width: 150px; vertical-align: middle; text-align: left; }
.cmp-table th:last-child, .cmp-table td:last-child { border-right: 0; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-k { min-width: 96px !important; font-weight: 600; color: var(--text-2); background: var(--surface-2); position: sticky; left: 0; }
.cmp-school { font-size: 13.5px; font-weight: 600; }
.cmp-school:hover { color: var(--primary); }
.cmp-meta { font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.cmp-del { border: 0; background: none; padding: 0; color: var(--danger); font-size: 11px; text-decoration: underline; }

/* Apple Spotlight Modal */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: start center;
  padding: 11vh 16px 24px;
}
.spotlight-modal {
  width: min(560px, 100%);
  background: var(--modal-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.spotlight-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 0.5px solid var(--border);
}
.spotlight-bar svg { width: 17px; height: 17px; color: var(--primary); }
.spotlight-bar input { flex: 1; border: 0; background: transparent; font-size: 15px; }
.spotlight-esc { border: 0.5px solid var(--border); background: var(--surface-2); color: var(--text-3); font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; }
.spotlight-list { max-height: 370px; overflow-y: auto; padding: 8px; }
.sp-caption { padding: 4px 10px 8px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.sp-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; transition: background 0.12s; }
.sp-item:hover { background: var(--primary-soft); }
.sp-id { font-size: 11.5px; color: var(--text-3); }
.sp-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.sp-roads { display: flex; gap: 4px; }
.sp-road { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 5px; }
.sp-road.is-open { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sp-road.is-dim { background: var(--surface-2); color: var(--text-3); }
.sp-road.is-off { color: var(--text-4); text-decoration: line-through; }
.sp-search-more { display: block; margin-top: 6px; padding: 9px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; text-align: center; }
.sp-hint, .sp-empty { padding: 14px 10px; font-size: 12px; color: var(--text-3); text-align: center; }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: 1fr; }
  .header-meta { display: none; }
}

@media (max-width: 1000px) {
  .wizard-body { grid-template-columns: 1fr; }
  .wstep { border-right: 0; border-bottom: 0.5px solid var(--border); }
  .wstep:last-child { border-bottom: 0; }
  .road-grid-v2, .trust-grid, .track-card-tabs { grid-template-columns: 1fr; }
  .detail-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .dkpi-cell:nth-child(2) { border-right: 0; }
  .dkpi-cell:nth-child(-n + 2) { border-bottom: 0.5px solid var(--border); }
}

@media (max-width: 860px) {
  .shell { padding: 0 18px; }
  .hdr-cmdk-text, .hdr-pill kbd, .hdr-sl-text { display: none; }
  .vcard-list { grid-template-columns: 1fr; }
  .stat-strip-v2 { grid-template-columns: repeat(2, 1fr); }
  .stat-v2:nth-child(2n) { border-right: 0; }
  .stat-v2:nth-child(-n + 2) { border-bottom: 0.5px solid var(--border); }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-v2 { padding: 64px 0 56px; }
  .school-title h1 { font-size: 28px; }
  .day-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .spec { grid-template-columns: 90px minmax(0, 1fr); }

  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tbody tr { border-bottom: 0.5px solid var(--border); padding: 12px 14px; position: relative; }
  table.data tbody tr:last-child { border-bottom: 0; }
  table.data tbody td { border: 0; padding: 3px 0; display: flex; gap: 12px; align-items: baseline; }
  table.data tbody td::before { content: attr(data-label); flex: 0 0 74px; font-family: var(--font-mono); font-size: 10px; color: var(--text-4); }
  table.data tbody td.col-name::before { content: none; }
  td.col-name { padding-bottom: 6px !important; }
}

@media (max-width: 640px) {
  .vc-facts { grid-template-columns: 1fr 1fr; }
  .vc-fact:nth-child(2) { border-right: 0; }
  .vc-fact:nth-child(n + 3) { border-top: 0.5px solid var(--border); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .brand-en { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
