/* ============================================================
   KEWO DSE · 升学资讯站 common.css
   设计系统：「数据感」变体 v2.1
   ============================================================ */

:root {
  --c-primary: #14335C;
  --c-accent: #C8A24B;
  --c-blue: #2F6FE4;
  --c-up: #C0504D;      /* 上升=红（中国习惯） */
  --c-down: #2E9E6B;    /* 下降=绿 */
  --c-bg-soft: #F6F8FB;
  --c-text: #1F2430;
  --c-text-2: #5A6472;
  --c-line: #E5E9F0;
  --c-white: #FFFFFF;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow: 0 4px 16px rgba(20, 51, 92, .08);
  --shadow-l: 0 8px 28px rgba(20, 51, 92, .12);
  --font: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --header-h: 64px;
  --container: 1120px;
  /* 分类色 */
  --cat-release: #C8A24B;
  --cat-cutoff: #14335C;
  --cat-hkuni: #2F6FE4;
  --cat-mainland: #2E9E9B;
  --cat-parent: #6E5AA8;
  --cat-prep: #5A6472;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--c-primary); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
table { border-collapse: collapse; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 769px) { .container { padding: 0 24px; } }

.num { font-variant-numeric: tabular-nums; }
.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;
}

/* ---------- 区块通用 ---------- */
.section { padding: 48px 0; }
@media (min-width: 769px) { .section { padding: 64px 0; } }
.section-soft { background: var(--c-bg-soft); }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: 24px; margin-bottom: 6px; }
@media (min-width: 769px) { .section-head h2 { font-size: 28px; } }
.section-head .sub { color: var(--c-text-2); font-size: 15px; margin: 0; }
.section-head .more { float: right; font-size: 14px; font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: #1D4376; color: #fff; }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #B58F3C; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-blue { background: var(--c-blue); color: #fff; }
.btn-blue:hover { background: #255CC2; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-primary);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { color: var(--c-accent); }
.logo .logo-sub { font-size: 12px; font-weight: 600; color: var(--c-text-2); }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-s);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--c-bg-soft); text-decoration: none; color: var(--c-primary); }
.main-nav a.active { color: var(--c-blue); font-weight: 700; }

/* 「我们的服务」下拉菜单 */
.nav-drop { position: relative; }
.nav-drop .nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-s);
  cursor: pointer;
  white-space: nowrap;
}
.nav-drop .nav-drop-toggle:hover { background: var(--c-bg-soft); color: var(--c-primary); text-decoration: none; }
.nav-drop .nav-drop-toggle.active { color: var(--c-blue); font-weight: 700; }
.nav-drop .nav-drop-toggle .caret { font-size: 10px; transition: transform .2s ease; display: inline-block; }
.nav-drop.open .caret { transform: rotate(180deg); }
/* 注意：.main-nav ul 是 flex（0,1,1），必须用更高优先级隐藏子菜单，否则下拉常显 */
.nav-drop .drop-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-l);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 110;
}
.drop-menu li { margin: 0; }
.drop-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 0;
}
.drop-menu a:hover { background: var(--c-bg-soft); color: var(--c-blue); text-decoration: none; }
.nav-drop.open > .drop-menu { display: block; }
@media (hover: hover) and (min-width: 1025px) {
  .nav-drop:hover > .drop-menu { display: block; }
}
.header-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--c-primary); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1025px) {
  .main-nav { display: block; }
  .header-cta { display: inline-block; }
  .nav-toggle { display: none; }
}

/* 移动抽屉（关闭态用 visibility 彻底隐藏，防止残余边框/阴影在顶栏上方露出白条） */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-l);
  padding: 12px 20px 20px;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateY(0); visibility: visible; transition: transform .28s ease; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { border-bottom: 1px solid var(--c-line); }
.mobile-drawer a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}
.mobile-drawer a.active { color: var(--c-blue); }
.mobile-drawer .drawer-group {
  padding: 16px 4px 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text-2);
  letter-spacing: .05em;
  border-bottom: 1px dashed var(--c-line);
}
.mobile-drawer .drawer-group + li a { padding-top: 12px; }
.mobile-drawer .btn { margin-top: 16px; }
@media (min-width: 1025px) {
  .mobile-drawer { display: none; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, .82);
  margin-top: 64px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 40px;
}
@media (min-width: 769px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 56px 0 48px; }
}
.footer-col h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255, 255, 255, .82); font-size: 14px; }
.footer-col a:hover { color: var(--c-accent); text-decoration: none; }
.footer-logo { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo .logo-mark { color: var(--c-accent); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  text-align: center;
  line-height: 1.9;
}

/* ---------- 悬浮转化条 ---------- */
.float-bar {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--c-primary);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-l);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn.to-top { background: #fff; color: var(--c-primary); border: 1px solid var(--c-line); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .15s ease; }
.float-btn.to-top.show { opacity: 1; pointer-events: auto; }
.mobile-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -4px 16px rgba(20, 51, 92, .08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.mobile-sticky-cta .btn { flex: 1; margin: 0 6px; }
@media (max-width: 768px) {
  .float-bar { bottom: 76px; right: 12px; }
  body { padding-bottom: 62px; } /* 给 sticky CTA 让位 */
}
@media (min-width: 769px) { .mobile-sticky-cta { display: none; } }

/* ---------- 分类 chip ---------- */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  white-space: nowrap;
}
.chip-release  { background: var(--cat-release); }
.chip-cutoff   { background: var(--cat-cutoff); }
.chip-hkuni    { background: var(--cat-hkuni); }
.chip-mainland { background: var(--cat-mainland); }
.chip-parent   { background: var(--cat-parent); }
.chip-prep     { background: var(--cat-prep); }
.chip-outline {
  background: transparent;
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
}
.chip-demo { background: #F0E6D2; color: #8A6D1F; border: 1px dashed var(--c-accent); }

/* ---------- 文章卡片 ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); text-decoration: none; }
.article-card .card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-primary) 0%, #2A5490 60%, var(--c-accent) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  font-size: 30px;
  flex-shrink: 0;
}
.article-card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-size: 16.5px; margin: 0; color: var(--c-text); line-height: 1.5; }
.article-card:hover h3 { color: var(--c-blue); }
.article-card .card-summary {
  font-size: 13.5px;
  color: var(--c-text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--c-text-2);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 481px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 数据速览卡 ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: 13.5px; color: var(--c-text-2); margin-bottom: 6px; }
.stat-card .stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-card .stat-value .unit { font-size: 14px; font-weight: 600; color: var(--c-text-2); }
.stat-card .stat-delta { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.stat-card .stat-delta.up { color: var(--c-up); }
.stat-card .stat-delta.down { color: var(--c-down); }
.stat-card .stat-source { font-size: 12px; color: var(--c-text-2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c-line); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1025px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- 数据表格（移动横滑 + 冻结首列） ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: #fff;
}
.data-table { width: 100%; min-width: 640px; font-size: 14px; }
.data-table th, .data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}
.data-table th {
  background: var(--c-bg-soft);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 13px;
  position: sticky;
  top: 0;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #FAFBFD; }
/* 冻结首列 */
.data-table th:first-child, .data-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 1px 0 0 var(--c-line);
}
.data-table th:first-child { background: var(--c-bg-soft); z-index: 3; }
.data-table tbody tr:hover td:first-child { background: #FAFBFD; }
.table-note { font-size: 12.5px; color: var(--c-text-2); margin-top: 8px; }

/* ---------- Key Takeaways ---------- */
.key-takeaways {
  background: linear-gradient(135deg, #FDFBF5, #F9F4E4);
  border: 1px solid #EADFC0;
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.key-takeaways h2 {
  font-size: 16px;
  color: #8A6D1F;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.key-takeaways ul { margin: 0; padding-left: 1.3em; }
.key-takeaways li { font-size: 14.5px; margin-bottom: 6px; color: var(--c-text); }
.key-takeaways li:last-child { margin-bottom: 0; }

/* ---------- 提示条 ---------- */
.notice {
  border-radius: var(--radius-m);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.notice-warn { background: #FDF3F3; border-color: #EBC8C8; color: #9C3B3B; }
.notice-info { background: #F0F5FD; border-color: #C9D9F2; color: #2A4E8F; }
.notice strong { font-weight: 700; }

/* ---------- 表单 ---------- */
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 481px) { .lead-form-row { flex-direction: row; } .lead-form-row .field { flex: 1; } }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 5px; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 228, .12);
}
.form-msg { font-size: 13.5px; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: var(--c-down); }
.form-msg.err { color: var(--c-up); }

/* 订阅横幅 */
.subscribe-banner {
  background: linear-gradient(120deg, var(--c-primary) 0%, #1E4578 70%, #3A6298 100%);
  border-radius: var(--radius-l);
  color: #fff;
  padding: 32px 24px;
}
@media (min-width: 769px) { .subscribe-banner { padding: 44px 48px; } }
.subscribe-banner h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
@media (min-width: 769px) { .subscribe-banner h2 { font-size: 26px; } }
.subscribe-banner p { color: rgba(255,255,255,.8); font-size: 14.5px; }
.subscribe-banner .field label { color: rgba(255,255,255,.85); }
.subscribe-banner .field input, .subscribe-banner .field select { border-color: rgba(255,255,255,.25); }
@media (min-width: 769px) {
  .subscribe-banner .banner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.tab-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--c-text-2); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-line); }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb [aria-current] { color: var(--c-text); font-weight: 500; }

/* ---------- 页头横幅 ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--c-primary) 0%, #1E4578 100%);
  color: #fff;
  padding: 40px 0 36px;
}
@media (min-width: 769px) { .page-hero { padding: 56px 0 48px; } }
.page-hero h1 { color: #fff; font-size: 26px; margin-bottom: 8px; }
@media (min-width: 769px) { .page-hero h1 { font-size: 32px; } }
.page-hero .hero-sub { color: rgba(255,255,255,.78); font-size: 15px; margin: 0; max-width: 720px; }
.page-hero .breadcrumb a, .page-hero .breadcrumb [aria-current] { color: rgba(255,255,255,.7); }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--c-text-2);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-bg-soft);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 10px; }
.empty-state p { margin: 0; font-size: 14.5px; }

/* ---------- 手风琴（院校详情 / 数据表折叠） ---------- */
.accordion-toggle { cursor: pointer; user-select: none; }
.accordion-panel[hidden] { display: none; }

/* ---------- 转化卡 ---------- */
.cta-card {
  background: linear-gradient(120deg, #FDFBF5, #F7F0DC);
  border: 1px solid #EADFC0;
  border-radius: var(--radius-m);
  padding: 22px 24px;
}
.cta-card h3 { font-size: 17px; color: var(--c-primary); margin-bottom: 8px; }
.cta-card p { font-size: 14px; color: var(--c-text-2); margin-bottom: 14px; }

/* ---------- 动效 ---------- */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate="fade-up"].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-animate="fade-up"] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
/* 无 JS 兜底：内容不可隐藏 */
.no-js [data-animate="fade-up"] { opacity: 1; transform: none; }

/* ---------- 图表容器 ---------- */
.chart-box { width: 100%; min-height: 320px; }
@media (min-width: 769px) { .chart-box { min-height: 400px; } }

/* ---------- 可折叠数据表 ---------- */
.collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
}
.collapse-toggle:hover { border-color: var(--c-blue); color: var(--c-blue); }
.collapse-toggle .arrow { transition: transform .2s ease; display: inline-block; }
.collapse-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* ---------- 来源行 ---------- */
.source-line { font-size: 12.5px; color: var(--c-text-2); margin-top: 10px; }

/* ---------- 留资表单验证码与提交反馈 ---------- */
.lead-captcha-row { display: flex; align-items: center; gap: 8px; }
.lead-captcha-row input { flex: 1; min-width: 0; }
.lead-captcha-img {
  width: 104px;
  height: 38px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  cursor: pointer;
  background: #fff;
  object-fit: contain;
}
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 21, .45);
  backdrop-filter: blur(2px);
}
.lead-overlay[hidden], .lead-dialog[hidden] { display: none; }
.lead-overlay-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 43, 31, .22);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}
.lead-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--c-line);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: lead-spin .8s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }
.lead-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 21, .38);
}
.lead-dialog-box {
  width: min(92vw, 380px);
  padding: 26px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 43, 31, .24);
  text-align: center;
}
.lead-dialog-title { font-size: 20px; color: var(--c-primary); margin-bottom: 8px; }
.lead-dialog.is-error .lead-dialog-title { color: #c0392b; }
.lead-dialog-desc { font-size: 14px; color: var(--c-text-2); margin-bottom: 18px; }

/* ---------- 通用分页器（新闻/院校共用） ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination[hidden] { display: none; }
.page-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  transition: border-color .15s ease, color .15s ease;
}
.page-btn:hover { border-color: var(--c-blue); color: var(--c-blue); text-decoration: none; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-nums { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.page-num:hover { border-color: var(--c-blue); color: var(--c-blue); text-decoration: none; }
.page-num.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; cursor: default; }

.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }