/* =========================================================================
 * 创赛通 · 样式表  assets/css/style.css
 * 设计约定：浅色主题；移动端优先断点 960px / 640px；所有交互元素保留
 *          :focus-visible 焦点环；正文对比度 ≥ 4.5:1。
 * ========================================================================= */

/* ---------------- 1. 设计变量 ---------------- */
:root {
  --brand: #2b4acb;
  --brand-dark: #1e37a0;
  --brand-soft: #eff3ff;
  --brand-line: #c7d2fe;
  --accent: #f59f00;
  --accent-soft: #fff7e6;

  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;

  --line: #e4e7ec;
  --line-2: #f0f2f5;
  --bg: #f7f9fc;
  --card: #ffffff;

  --ok: #0e7a5f;
  --ok-soft: #e7f7f1;
  --warn: #b54708;
  --warn-soft: #fef3e2;
  --info: #175cd3;
  --info-soft: #eff6ff;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .22);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -20px rgba(16, 24, 40, .28);

  --container: 1180px;
  --header-h: 66px;
}

/* ---------------- 2. 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); line-height: 1.22; }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- 3. 顶栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.0625rem; color: var(--ink); letter-spacing: .01em; }
.brand-text em {
  font-style: normal;
  font-size: .6875rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}
.site-nav a.is-current {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- 4. 区块与标题 ---------------- */
.section { padding: 68px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 28px; }
.section-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: .9375rem; }

.sub-head { margin: 40px 0 16px; }
.sub-head h3 { font-size: 1.125rem; margin-bottom: 6px; }
.sub-head p { color: var(--muted); font-size: .875rem; }

/* ---------------- 5. 首屏 ---------------- */
.hero {
  padding: 60px 0 48px;
  background:
    radial-gradient(900px 380px at 12% -12%, #e8edff 0%, rgba(232, 237, 255, 0) 62%),
    radial-gradient(700px 340px at 92% 4%, #fff4e0 0%, rgba(255, 244, 224, 0) 60%);
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}
.hero h1 { margin-bottom: 16px; max-width: 22em; }
.hero-lead {
  max-width: 46em;
  font-size: 1rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}
.hero-note { margin-top: 14px; font-size: .8125rem; color: var(--muted-2); }

/* ---------------- 6. 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: .9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(43, 74, 203, .7);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-line); color: var(--brand-dark); background: var(--brand-soft); }
.btn-sm { padding: 8px 14px; font-size: .8125rem; }

/* ---------------- 7. 统计卡 ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 18px 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.stat-value {
  margin-top: 6px;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: .5em; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat-foot { margin-top: 6px; font-size: .75rem; color: var(--muted-2); }

/* ---------------- 8. 面板 / 表单 ---------------- */
.panel {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink);
}
.field-hint { margin-top: 8px; font-size: .8125rem; color: var(--muted-2); }

input[type="text"],
input[type="search"],
select {
  width: 100%;
  padding: 11px 13px;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input[type="text"]::placeholder,
input[type="search"]::placeholder { color: var(--muted-2); }
input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 74, 203, .14);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* 组合输入框（专业搜索） */
.combo { position: relative; }
.combo input { padding-right: 40px; }
.combo-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.combo-clear:hover { background: var(--line); color: var(--ink); }

.combo-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.combo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .875rem;
}
.combo-list li .cn { color: var(--ink); font-weight: 600; }
.combo-list li .cc { color: var(--muted-2); font-size: .75rem; margin-left: auto; }
.combo-list li:hover,
.combo-list li[aria-selected="true"] { background: var(--brand-soft); }
.combo-empty { padding: 12px; color: var(--muted); font-size: .875rem; text-align: center; }

/* 标签片 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  font-size: .8125rem;
  font-family: inherit;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--brand-line); color: var(--brand-dark); background: var(--brand-soft); }
.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.chips-select .chip::before {
  content: "+";
  display: inline-block;
  margin-right: 5px;
  font-weight: 700;
  opacity: .55;
}
.chips-select .chip.is-active::before { content: "✓"; opacity: 1; }
.chip:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- 9. 结果区 ---------------- */
.result-stack { display: grid; gap: 18px; }

.empty-state {
  padding: 34px 22px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); }
.empty-state p { color: var(--muted); font-size: .875rem; }

.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 12px; }
.card-note { margin-top: 14px; font-size: .8125rem; color: var(--muted-2); }

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.card-head h3 { margin: 0; }
.card-head .card-sub { width: 100%; font-size: .8125rem; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

/* 专业名片 */
.major-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--muted);
}
.major-id .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  padding: 2px 7px;
  background: var(--line-2);
  border-radius: 6px;
  color: var(--ink-2);
}

/* 赛道匹配列表 */
.track-list { display: grid; gap: 10px; }
.track-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--r-md);
}
.track-item[data-fit="3"] { border-left-color: var(--brand); background: var(--brand-soft); }
.track-item[data-fit="2"] { border-left-color: var(--info); }
.track-item[data-fit="1"] { border-left-color: var(--muted-2); }
.track-main { flex: 1 1 260px; min-width: 0; }
.track-name { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.track-comp { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.track-desc { width: 100%; font-size: .8125rem; color: var(--muted); }

/* 数据条目 */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.kv { padding: 12px 14px; background: var(--bg); border-radius: var(--r-md); }
.kv dt { font-size: .75rem; color: var(--muted); margin-bottom: 3px; }
.kv dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.kv dd small { font-size: .7rem; font-weight: 500; color: var(--muted); margin-left: 3px; }

/* ---------------- 10. 徽章 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: .6875rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------------- 11. 选项卡 ---------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.section-alt .tabs { background: var(--bg); }
.tab {
  padding: 9px 18px;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .16s ease;
}
.tab:hover { color: var(--brand-dark); background: #fff; }
.tab.is-active { color: var(--brand-dark); background: #fff; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .24s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------- 12. 图表 ---------------- */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.chart-card {
  margin: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.chart-card figcaption { margin-bottom: 14px; }
.chart-card figcaption h3 { font-size: 1rem; margin-bottom: 4px; }
.chart-card figcaption p { font-size: .75rem; color: var(--muted); margin: 0; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text { fill: var(--muted); font-size: 12px; }
.chart .axis-title { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.chart .series-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart .series-area { opacity: .14; }
.chart .dot { stroke: #fff; stroke-width: 2; }
.chart .dot-hit { fill: transparent; cursor: pointer; }
.chart .bar { transition: opacity .16s ease; cursor: pointer; }
.chart .bar:hover { opacity: .82; }
.chart .value-text { font-size: 12px; font-weight: 600; fill: var(--ink); }
.chart-empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: .875rem; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--muted);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-caveat {
  padding: 12px 16px;
  font-size: .8125rem;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
}

/* ---------------- 13. 表格 ---------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
/* 表格最小宽度：保证窄屏下出现横向滚动，而不是把列挤成一团 */
.table-wrap > table { min-width: 680px; }
caption { padding: 16px 18px 0; text-align: left; font-size: .8125rem; color: var(--muted); }
th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafbfd;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.is-empty { color: var(--muted-2); }
td .row-note { display: block; margin-top: 3px; font-size: .75rem; color: var(--muted); font-weight: 400; }
td a { word-break: break-all; }

/* ---------------- 14. 工具栏 ---------------- */
.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.toolbar-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink);
}
.toolbar-field--action { display: flex; align-items: flex-end; }
.toolbar-field--action .btn { width: 100%; }
.result-count { margin-bottom: 12px; font-size: .8125rem; color: var(--muted); }

/* ---------------- 15. 时间轴 ---------------- */
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--brand-line), var(--line));
}
.timeline li { position: relative; padding: 0 0 18px 10px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--brand-line);
}
.timeline li[data-current="true"]::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline .tl-year {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: .9375rem;
}
.timeline .tl-year em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--brand-dark); }
.timeline .tl-body { font-size: .8125rem; color: var(--muted); }
.timeline .tl-host { font-weight: 600; color: var(--ink-2); }

/* ---------------- 16. 通用列表 ---------------- */
.list { list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 18px; font-size: .875rem; }
.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-line);
}
.list-links li { padding-left: 18px; }
.list-links a { font-size: .8125rem; }
.list-links .src-scope { display: block; color: var(--muted); font-size: .75rem; }

/* ---------------- 17. 缺口清单 ---------------- */
.gap-stat {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.gap-stat .num { font-size: 1.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.gap-stat .lbl { font-size: .8125rem; color: var(--muted); }

/* ---------------- 18. 工具提示 ---------------- */
.tooltip {
  position: fixed;
  z-index: 200;
  max-width: 260px;
  padding: 8px 11px;
  font-size: .75rem;
  line-height: 1.5;
  color: #fff;
  background: rgba(16, 24, 40, .94);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  transform: translate(-50%, -120%);
}
.tooltip strong { display: block; font-size: .8125rem; margin-bottom: 2px; }

/* ---------------- 19. 页脚 ---------------- */
.site-footer {
  padding: 40px 0;
  background: #101828;
  color: #98a2b3;
  font-size: .8125rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-desc { max-width: 34em; }
.footer-copy { margin-top: 10px; color: #d0d5dd; }
.footer-meta { text-align: right; }
.footer-meta p { margin-bottom: 4px; }
.footer-disclaimer { color: #667085; max-width: 30em; }

/* ---------------- 19.5 学科竞赛库 ---------------- */

/* 区块说明里的补充口径说明（例如"为什么医学方向收录少"） */
.sub-head .sub-note {
  margin-top: 10px;
  padding: 10px 13px;
  border-left: 3px solid var(--brand-line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: .8125rem;
}
.sub-head .sub-note strong { color: var(--brand-dark); }

/* 官网直达按钮容器（三大赛事卡片底部 + 竞赛库每条卡片） */
.comp-link { margin-top: 14px; }
.comp-link .btn { text-decoration: none; }
.comp-link .ext, .comp-row-side .ext { display: inline-block; }

.comp-stack { display: flex; flex-direction: column; gap: 12px; }

.comp-group { display: flex; flex-direction: column; gap: 12px; }
.comp-group + .comp-group { margin-top: 26px; }
.comp-group-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink-2);
}
.comp-group-count { font-size: .8125rem; font-weight: 500; color: var(--muted-2); }

.comp-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.comp-row:hover, .comp-row:focus-within {
  border-color: var(--brand-line);
  border-left-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.comp-row-main { flex: 1 1 auto; min-width: 0; }
.comp-row-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.comp-row-full { margin-bottom: 6px; font-size: .75rem; color: var(--muted-2); word-break: break-word; }
.comp-row-meta { margin-bottom: 7px; font-size: .8125rem; color: var(--muted); }
.comp-row-note { margin: 0 0 6px; font-size: .875rem; color: var(--ink-2); }
.comp-row-tip {
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .8125rem;
}
.comp-row-tip strong { color: var(--brand-dark); }
.comp-row-side { flex: 0 0 auto; padding-top: 2px; }
.comp-row-side .ext { margin-left: 5px; font-size: .875em; }

/* 官网按钮是外链，焦点环必须可见（键盘用户靠它定位） */
.comp-row-side a:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }

@media (max-width: 640px) {
  .comp-row { flex-direction: column; gap: 12px; padding: 15px; }
  .comp-row-side { width: 100%; }
  .comp-row-side .btn { width: 100%; }
}

/* ---------------- 19.6 专业查询：口径切换与赛事结果 ---------------- */
.tabs-inline {
  display: inline-flex;
  width: auto;
  flex-wrap: nowrap;
  margin-bottom: 0;
}
/* 结果堆叠里的分组标题 */
.result-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.result-group-head h3 { margin: 0; font-size: 1rem; }
.result-group-head p { margin: 0; font-size: .8125rem; color: var(--muted-2); }
/* 研究生学科徽章 */
.badge-type-学硕 { background: var(--info-soft); color: var(--info); }
.badge-type-专硕 { background: var(--ok-soft); color: var(--ok); }
/* 按专业查询里命中的学科竞赛条目 */
.match-comp {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.match-comp:last-child { border-bottom: 0; padding-bottom: 0; }
.match-comp-main { flex: 1 1 auto; min-width: 0; }
.match-comp-main h4 { margin: 0 0 4px; font-size: .9375rem; }
.match-comp-main p { margin: 0; font-size: .8125rem; color: var(--muted-2); }
.match-comp-meta { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.match-comp-actions { flex: 0 0 auto; }

/* 专升本升学路径列表（专科口径）——「专科专业 → 可报考本科专业 → 赛道」 */
.path-list { gap: 14px; }
.path-list .code { margin-left: 6px; }
.path-tracks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: .8125rem;
  color: var(--muted);
}
.path-tracks .tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .75rem;
  line-height: 1.6;
}
.path-tracks .tag-more { background: var(--line-2); color: var(--muted-2); }
.path-tracks.path-none { color: var(--muted-2); }

/* ---------------- 20. 断点 ---------------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform-origin: top;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 14px; border-radius: var(--r-sm); font-size: .9375rem; }

  .section { padding: 52px 0; }
  .hero { padding: 44px 0 36px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 16px; }
  .section { padding: 42px 0; }
  .panel, .card { padding: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { padding: 15px 16px; }
  .hero-actions .btn { width: 100%; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; }
  .toolbar { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  th, td { padding: 9px 11px; }
  .track-main { flex-basis: 100%; }
  .timeline { padding-left: 20px; }
  .timeline li::before { left: -20px; }

  /* 图表是固定 viewBox 的 SVG，窄屏下等比缩小会让轴标签小到看不清。
     这里改为横向可滚动，保持标签的实际字号不变。 */
  .chart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .chart svg { min-width: 560px; }
}

/* 尊重用户的动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* 打印：收起交互控件与页脚明细，保留品牌与版权署名 */
@media print {
  .site-header, .hero-actions, .toolbar, .tabs, .nav-toggle { display: none !important; }
  .site-footer { display: block !important; background: #fff; color: #333; border-top: 1px solid #ccc; padding: 16px 0; }
  .footer-inner { display: block; }
  .footer-brand { color: #000; }
  .footer-desc, .footer-meta { display: none !important; }
  .footer-copy { color: #333; margin-top: 4px; }
  .tab-panel { display: block !important; }
  body { background: #fff; }
}
