/* ============================================================
   深圳中考 · 全局样式
   青绿色主色 + 白色底 · 信息平台风格（参照掌上高考信息架构）
   ============================================================ */
:root {
  --primary: #12855A;
  --primary-dark: #0B7A44;
  --primary-deep: #157A42;
  --primary-light: #E6F6EC;
  --accent: #157A42;
  --accent-light: #E6F6EC;
  --text: #1A1F27;
  --text-2: #5A6472;
  --text-3: #8B94A1;
  --border: #E3EDE7;
  --bg: #F2F8F4;
  --card: #fff;
--radius: 10px;
  --shadow: 0 1px 4px rgba(11, 58, 40, 0.06);
  --nav-h: 64px;
  /* 主题令牌：hero 渐变 / 绿系边框 / 状态色 / 蒙层 */
  --hero-g1: #E9F7F0;
  --hero-g2: #F6FCF8;
  --hero-g3: #E2F3EB;
  --deep-green: #0A5C39;
  --green-line: #B9E3C8;
  --green-line-2: #C8E8D6;
  --green-soft: #EDF8F1;
  --green-border-soft: #D8EDE1;
  --green-deep: #2A6B46;
  --bg-deep: #0E6B42;
  --danger: #E0393E;
  --danger-deep: #B01E2B;
  --mask-45: rgba(16, 28, 22, .45);
  --mask-18: rgba(8, 46, 28, .18);
  --primary-08: rgba(18, 133, 90, .08);
  --primary-05: rgba(18, 133, 90, .05);
  --primary-12: rgba(18, 133, 90, .12);
  --scrim-a: rgba(8, 46, 28, .04);
  --scrim-b: rgba(8, 46, 28, .30);
  --fade-a: rgba(8, 46, 28, 0);
  --fade-b: rgba(8, 46, 28, .20);
  --fade-c: rgba(8, 46, 28, .46);
  --fade-deep: rgba(8, 46, 28, .72);
  --shadow-card: 0 4px 16px rgba(11, 58, 40, .07);
  --shadow-deep: 0 18px 50px rgba(8, 46, 28, .18);
  --fade-d: rgba(8, 46, 28, .86);
  --warn: #E8833A;
  --warn-deep: #B8651F;
  --warn-line: rgba(232, 131, 58, .4);
  --warn-soft: rgba(232, 131, 58, .06);
  --err-bg: #FFF7F3;
  --err-line: #F5C6B5;
  --err-text: #9A4A32;
  --muted-08: rgba(139, 148, 161, .08);
  --grad-a: #46D18F;
  --grad-b: #5CD9A0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  /* 兜底：防止横向溢出 */
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- 主导航 ---------- */
#mainnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
}
#mainnav .container { display: flex; align-items: center; height: var(--nav-h); gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
}
.brand .site-name { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.brand .site-name small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); line-height: 1.2; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
color: var(--text);
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer;
border-radius: 8px;
  font-size: 14px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--primary); color: #fff; padding: 8px 18px; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 7px 16px; }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 6px 10px; }
.btn-ghost:hover { background: var(--bg); }

/* 汉堡菜单 */
.burger { display: none; background: none; border: none; font-size: 22px; color: var(--text); cursor: pointer; }

/* ---------- 搜索条 ---------- */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 28px;
  overflow: hidden;
  max-width: 520px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  background: transparent;
}
.search-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  /* 搜索按钮保持完整、不被压缩断字 */
  flex-shrink: 0;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #E9F7F0 0%, #F6FCF8 55%, #E2F3EB 100%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 42px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(820px 320px at 84% -8%, var(--primary-08), transparent 62%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--primary-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-05) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .7;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 2px; }
.hero-actions .btn { padding: 10px 22px; font-size: 15px; border-radius: 10px; font-weight: 600; }
.hero-actions .btn svg { width: 16px; height: 16px; }
.hero-actions .btn-outline { background: rgba(255,255,255,.74); }
.hero-actions .btn-outline:hover { background: #fff; }
.hero-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; letter-spacing: .5px; color: var(--text); }
.hero-sub { color: var(--text-2); margin-bottom: 22px; font-size: 15px; }
.hero-search-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero-search-tags span { color: var(--text-3); font-size: 13px; }
.hero-search-tags a { color: var(--primary-deep); background: #fff; border: 1px solid var(--green-line-2); padding: 4px 12px; border-radius: 20px; font-size: 13px; }
.hero-search-tags a:hover { border-color: var(--primary); color: var(--primary); }

/* 模拟报志愿面板 */
.volunteer-panel {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--green-line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.panel-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title .tag { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 500; }

.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 4px; }
.choose-item label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
#volForm .choose-item { margin-bottom: 16px; }
#volForm .choose-item:last-child { margin-bottom: 20px; }
#volForm #vGo { margin-top: 2px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: #fafbfe;
cursor: pointer;
  font-size: 13px;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.score-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 16px; }
.score-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; background: #fafbfe; }
.score-input input { border: none; outline: none; background: transparent; width: 100%; padding: 10px 4px; font-size: 15px; font-weight: 600; }
.score-input span { color: var(--text-3); font-size: 13px; }

.stu-type { display: flex; gap: 8px; margin-bottom: 14px; }
.stu-type .chip { flex: 1; text-align: center; }
.stu-type .chip small { display: block; font-size: 11px; color: var(--text-3); }
.stu-type .chip.on small { color: #D8F1E3; }

.result-zone { border-top: 1px dashed var(--border); padding-top: 14px; }
.result-zone .result-hint { color: var(--text-3); font-size: 13px; text-align: center; padding: 10px 0; }
.result-bars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.result-bar { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.result-bar .rb-num { font-size: 20px; font-weight: 800; color: var(--primary-dark); }
.result-bar.chong .rb-num { color: var(--danger-deep); }
.result-bar.wen .rb-num { color: var(--primary); }
.result-bar.bao .rb-num { color: #17a05e; }
.result-bar .rb-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.result-schools { display: flex; flex-direction: column; gap: 8px; max-height: 168px; overflow: auto; }
.result-school { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.result-school .rs-badge { font-size: 11px; color: var(--text-3); }

/* ---------- 区块 ---------- */
.section { margin: 22px 0; }
.section.white { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }
.section-more { color: var(--text-3); font-size: 13px; cursor: pointer; }
.section-more:hover { color: var(--primary); }

.tabs { display: flex; gap: 4px; }
.tab { padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; transition: background .2s, color .2s; }
.tab:hover { color: var(--primary); }
.tab.on { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.quick-item {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px 14px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.quick-item::before {
  content: ''; position: absolute; inset: 0;
  background: var(--primary-light); opacity: 0; transition: opacity .2s;
}
.quick-item:hover { border-color: var(--green-line); background: var(--green-soft); }
.quick-item:hover::before { opacity: .18; }
.quick-item .q-icon {
  width: 52px; height: 52px; margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.quick-item .q-icon svg { width: 26px; height: 26px; display: block; }
.quick-item .q-name { font-weight: 600; font-size: 14px; }
.quick-item .q-desc { color: var(--text-3); font-size: 12px; margin-top: 3px; }

/* 热门学校卡片（带封面图） */
.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.school-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  overflow: hidden; display: flex; flex-direction: column;
}
.school-card:hover { border-color: var(--green-line); box-shadow: var(--shadow-card); }
.school-card .sc-cover {
  height: 108px; background-size: cover; background-position: center;
  position: relative; flex-shrink: 0;
}
.school-card .sc-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 100%);
}
.school-card .sc-cover .sc-region {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--primary-dark);
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 12px;
}
.school-card .sc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.school-card .sc-name { font-size: 16px; font-weight: 700; }
.school-card .sc-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--text-2); }
.badge.blue { background: var(--primary-light); color: var(--primary-deep); }
.badge.orange { background: var(--primary-light); color: var(--primary-deep); }
.badge.green { background: #E7F8EF; color: var(--primary-dark); }
.badge.red { background: #FDECEC; color: var(--danger-deep); }
.school-card .sc-score { font-size: 13px; color: var(--text-2); }
.school-card .sc-score b { color: var(--primary-dark); font-size: 15px; }
.school-card .sc-link { color: var(--primary); font-size: 13px; margin-top: auto; display: flex; align-items: center; gap: 4px; }

/* 专业/路径卡（带图标） */
.major-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.major-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 18px 16px; cursor: pointer; transition: border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.major-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--primary-light); opacity: 0; transition: opacity .2s;
}
.major-card:hover { border-color: var(--green-line); }
.major-card:hover::before { opacity: .18; }
.major-card .mc-icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 12px;
  background: var(--primary-light); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
}
.major-card .mc-icon svg { width: 24px; height: 24px; display: block; }
.major-card .mc-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.major-card .mc-desc { color: var(--text-2); font-size: 13px; }
.major-card .mc-count { color: var(--primary-deep); font-size: 12px; margin-top: 8px; }

/* 资讯头条 + 列表 */
.news-block {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 18px;
}
.news-feature {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  position: relative; min-height: 210px;
  display: flex; flex-direction: column; align-items: stretch;
  background: #fff;
}
.news-feature .nf-photo {
  height: 132px; flex-shrink: 0;
  background-size: cover; background-position: center;
  position: relative;
}
.news-feature .nf-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--fade-a) 55%, var(--fade-b) 100%);
}
.news-feature .nf-body {
  position: relative; z-index: 2; padding: 14px 16px 16px;
  background: #F3FAF6; color: var(--text); flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.news-feature .nf-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 11px; align-self: flex-start; }
.news-feature .nf-title { font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-feature .nf-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover .news-title { color: var(--primary); }
.news-item .news-tag { flex-shrink: 0; }
.news-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-meta { color: var(--text-3); font-size: 12px; flex-shrink: 0; }

/* 榜单 */
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; cursor: pointer; }
.rank-item:hover { background: var(--bg); }
.rank-no { width: 22px; height: 22px; border-radius: 6px; background: #E3EDE7; color: var(--text-2); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rank-item:nth-child(1) .rank-no, .rank-item:nth-child(2) .rank-no, .rank-item:nth-child(3) .rank-no { background: var(--primary-deep); color: #fff; }
.rank-name { flex: 1; font-size: 14px; }
.rank-heat { color: var(--text-3); font-size: 12px; }

/* 图表/统计条 */
.stat-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.stat-item { background: var(--primary-light); border-radius: 10px; padding: 12px 22px; text-align: center; min-width: 110px; }
.stat-item .stat-num { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.stat-item .stat-label { font-size: 12px; color: var(--text-2); }

/* ---------- 页面副标题条 ---------- */
.page-head {
  background: linear-gradient(135deg, var(--deep-green), var(--primary));
  color: #fff; padding: 26px 0;
}
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { color: #D4EADC; font-size: 13px; margin-top: 4px; }

/* ---------- 筛选条 ---------- */
.filter-bar { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 16px 18px; margin: 18px 0; }
.filter-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.filter-line + .filter-line { margin-top: 10px; }
.filter-label { color: var(--text-3); font-size: 13px; width: 56px; flex-shrink: 0; }
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-options .chip { font-size: 13px; }

/* ---------- 表格 ---------- */
.data-table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #F4FAF6; color: var(--text-2); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: #F8FBF9; }
.data-table .hot-score { color: var(--primary-dark); font-weight: 700; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--primary-light); }
.timeline-item { position: relative; padding: 0 0 22px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-item .tl-phase { font-size: 12px; color: var(--primary); font-weight: 700; }
.timeline-item .tl-title { font-size: 15px; font-weight: 700; margin: 2px 0 4px; }
.timeline-item .tl-desc { color: var(--text-2); font-size: 13px; }

/* ---------- FAQ / 说明 ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.faq-item .faq-q { font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; }
.faq-item .faq-q::before { content: 'Q'; color: var(--primary); font-weight: 800; }
.faq-item .faq-a { color: var(--text-2); font-size: 13px; }
.faq-item .faq-a::before { content: 'A'; color: var(--accent); font-weight: 800; margin-right: 8px; }

.notice-banner {
  background: var(--primary-light);
  border: 1px solid var(--green-line);
  color: var(--bg-deep);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 14px 0;
}

/* ---------- 页脚 ---------- */
.footer { background: #10281C; color: #9DBBA9; margin-top: 40px; font-size: 13px; }
.footer .container { padding: 28px 16px 22px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: #D3E8DA; }
.footer-links a:hover { color: #fff; }
.footer-about { line-height: 2; }
.footer-about .fk { color: #A9E3C3; }
.footer-legal { margin-top: 2px; }
.footer-legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #87AB96; line-height: 1.9; }
.footer-legal-line .fl-sep { color: #4E7A63; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .school-grid { grid-template-columns: repeat(3, 1fr); }
  .major-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(16,28,58,.12);
  }
  .mobile-search { display: block !important; margin-bottom: 10px; }
  .section-head { flex-wrap: wrap; row-gap: 8px; }
  .tabs { flex-wrap: wrap; }
  .news-block { grid-template-columns: 1fr; }
  .news-block > * { min-width: 0; }
  .news-item { min-width: 0; }
  .news-feature { min-height: 180px; }
}
@media (max-width: 640px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-item { padding: 14px 6px; }
  .quick-item .q-desc { display: none; }
.brand .site-name { font-size: 17px; }
  .brand .site-name small { display: none; }
  .hero-title { font-size: 24px; }
  .choose-grid { grid-template-columns: 1fr; }
  #mainnav .container { gap: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .nav-user { gap: 2px; }
  .nav-user .nu-link { padding: 5px 3px; font-size: 12px; }
  .nav-user .nu-divider { display: none; }
  #scoreCard table.data-table th,
  #scoreCard table.data-table td { white-space: normal; padding: 10px 8px; }
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table-wrap table.data-table th,
  .data-table-wrap table.data-table td { white-space: normal; }

  /* 各页内联多列布局移动端收拢为单列 */
  section[style*="grid-template-columns:1.6fr 1fr"],
  section[style*="grid-template-columns:1fr 1fr"],
  section[style*="grid-template-columns:1.4fr 1fr"],
  section[style*="grid-template-columns:1fr 1.5fr"] { grid-template-columns: 1fr !important; }
  section[style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* 网格子项允许收缩，避免 min-content 撑宽导致横向溢出 */
  section[style*="grid"] > *, div[style*="grid"] > * { min-width: 0; }
  .section-head { min-width: 0; }
  .volunteer-panel { min-width: 0; overflow: hidden; }
  .hero-left { min-width: 0; }
  .hero-title, .hero-sub, .hero-search-tags { overflow-wrap: break-word; }

  /* 志愿面板：考生类别 chip 允许折行并收缩 */
  .stu-type { flex-wrap: wrap; }
  .stu-type .chip { flex: 1 1 calc(50% - 4px); min-width: 0; text-align: center; }
  .stu-type .chip b { display: inline-block; margin-right: 4px; }
  .score-row { grid-template-columns: 1fr; }
  .result-bars { grid-template-columns: 1fr; }
  .result-zone { max-width: 100%; }
  .stat-strip { gap: 8px; }
  .stat-item { flex: 1; min-width: 0; padding: 10px 6px; }
  .stat-item .stat-num { font-size: 22px; }
  .stat-item .stat-label { font-size: 11px; }
}
.mobile-search { display: none; width: 100%; }

/* 骨架载入动画（局部装饰） */
.skeleton { background: linear-gradient(90deg, #EAEFF0 25%, #F4F8F4 50%, #EAEFF0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   V2 视觉改版补充：横幅页头 / 统计条 / 详情页 / 榜单 / 流程 / 图文列表
   ============================================================ */
.page-head.with-bg {
  position: relative;
  background:
radial-gradient(720px 260px at 88% -30%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg, var(--deep-green), var(--primary));
  border-bottom: 3px solid var(--primary-dark);
}
.page-head.with-bg::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: rgba(255,255,255,.55);
}
.page-head.with-bg * { position: relative; z-index: 1; }
.page-head.with-bg h1 { font-size: 28px; }
.page-head.with-bg p { max-width: 720px; }

/* 学校库统计条 */
.school-stat-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 2px; }
.school-stat-strip .ss-item {
  flex: 1; min-width: 150px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.school-stat-strip .ss-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.school-stat-strip .ss-ic svg { width: 20px; height: 20px; }
.school-stat-strip .ss-num { font-size: 20px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.school-stat-strip .ss-label { font-size: 12px; color: var(--text-3); }

/* 详情页横幅头图 */
.detail-hero {
  position: relative; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--deep-green), var(--primary));
  min-height: 240px; display: flex; align-items: flex-end;
  color: #fff; border: 1px solid var(--border);
}
.detail-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--fade-a) 0%, var(--fade-d) 100%);
}
.detail-hero .dh-body { position: relative; z-index: 2; padding: 24px; width: 100%; }
.detail-hero .dh-name { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-hero .dh-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; }
.detail-hero .badge { background: rgba(255,255,255,.18); color: #fff; }
.detail-hero .badge.orange { background: rgba(21,122,66,.9); color: #fff; }
.detail-hero .dh-score .ds-num { font-size: 28px; font-weight: 800; color: #DDF5E8; line-height: 1.1; }
.detail-hero .dh-score .ds-label { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 2px; }

/* 详情数据卡 */
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.detail-grid .dg-item { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.detail-grid .dg-ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.detail-grid .dg-ic svg { width: 18px; height: 18px; }
.detail-grid .dg-k { font-size: 12px; color: var(--text-3); }
.detail-grid .dg-v { font-weight: 700; margin-top: 2px; }

/* 图集 */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.gallery .gal-item {
  position: relative; border-radius: 12px; overflow: hidden;
  min-height: 150px; background-size: cover; background-position: center;
}
.gallery .gal-item.big { min-height: 210px; }
.gallery .gal-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--fade-a) 55%, var(--fade-c) 100%);
}
.gallery .gal-item .gal-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: var(--fade-deep); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 11px;
}

/* 办学特色卡 */
.feat-item { background: var(--bg); border-radius: 10px; padding: 14px; }
.feat-item .ft-icon {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px;
  background: var(--primary-light); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
}
.feat-item .ft-icon svg { width: 17px; height: 17px; }
.feat-item .ft-title { font-weight: 700; margin-bottom: 4px; }
.feat-item .ft-desc { font-size: 13px; color: var(--text-2); }

/* 分数线条形 */
.score-bars { display: flex; flex-direction: column; gap: 10px; }
.score-bar-row { display: flex; align-items: center; gap: 10px; }
.score-bar-row .sbr-name { width: 115px; flex-shrink: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-bar-row .sbr-track { flex: 1; height: 18px; background: var(--bg); border-radius: 9px; overflow: hidden; }
.score-bar-row .sbr-fill {
  height: 100%; border-radius: 9px; min-width: 8px;
  background: linear-gradient(90deg, var(--primary), var(--grad-a));
}
.score-bar-row:nth-child(2) .sbr-fill, .score-bar-row:nth-child(3) .sbr-fill {
  background: linear-gradient(90deg, var(--primary), var(--grad-b));
}
.score-bar-row .sbr-num { width: 52px; text-align: right; font-weight: 700; color: var(--primary-dark); flex-shrink: 0; }

/* 批次特征卡 */
.bc-item { background: var(--bg); border-radius: 10px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bc-item .bc-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.bc-item .bc-ic svg { width: 22px; height: 22px; }
.bc-item .bc-t { font-weight: 700; }

/* 填报流程 */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-step { background: var(--bg); border-radius: 12px; padding: 16px; position: relative; }
/* 步骤序号浅绿底色（局部装饰） */
.flow-step .fs-no { font-size: 30px; font-weight: 800; color: #CDE6D7; line-height: 1; }
.flow-step .fs-t { font-weight: 700; margin: 8px 0 4px; }
.flow-step .fs-d { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* 攻略卡 */
.guide-card { background: var(--bg); border-radius: 10px; padding: 16px; }
.guide-card .g-icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.guide-card .g-icon svg { width: 20px; height: 20px; }
.guide-card .g-title { font-weight: 700; margin-bottom: 4px; }
.guide-card .g-desc { font-size: 13px; color: var(--text-2); }

/* 图文资讯列表 */
.news-item.with-thumb { align-items: flex-start; padding: 12px 4px; }
.news-item .news-thumb {
  width: 104px; height: 64px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.news-item .nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.news-item .nt-body .news-title { flex: none; }
.news-item .nt-body .news-meta { flex: none; }
.news-item .doc-ic {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
}
.news-item .doc-ic svg { width: 19px; height: 19px; }

/* 响应式补充 */
@media (max-width: 992px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .gal-item.big { grid-column: span 2; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-head.with-bg h1 { font-size: 22px; }
  .detail-hero { min-height: 200px; }
  .detail-hero .dh-name { font-size: 20px; }
  .detail-hero .dh-score .ds-num { font-size: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .gal-item.big { grid-column: span 1; min-height: 150px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .school-stat-strip .ss-item { min-width: calc(50% - 8px); padding: 12px; }
  .score-bar-row .sbr-name { width: 88px; }
  .score-bar-row .sbr-num { width: 44px; }
  .news-item .news-thumb { width: 82px; height: 54px; }
  .flow-steps { grid-template-columns: 1fr; }
}

/* V3 视觉调优：学校卡片首字徽标 / 资讯缩略图分类 / 工具页图形化 / 空态引导 */
.school-card .sc-cover { height: 128px; }
.school-card .sc-cover .sc-monogram {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 10px;
  color: #fff; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(8,46,28,.16);
}

/* 资讯缩略图：分类色罩 + 角标 */
.news-item .news-thumb { position: relative; }
.news-item .news-thumb::after {
content: ''; position: absolute; inset: 0; border-radius: 8px;
  /* 按栏目分类的置色遮罩（局部装饰） */
  background: rgba(18,133,90,.16);
}
.news-item .news-thumb[data-type="志愿填报"]::after { background: rgba(21,122,66,.16); }
.news-item .news-thumb[data-type="学校"]::after { background: rgba(23,160,94,.16); }
.news-item .news-thumb[data-type="备考"]::after { background: rgba(224,57,62,.20); }
.news-item .news-thumb .thumb-tag {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 7px;
  background: rgba(18,133,90,.94); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.news-item .news-thumb[data-type="志愿填报"] .thumb-tag { background: rgba(21,122,66,.94); }
.news-item .news-thumb[data-type="学校"] .thumb-tag { background: rgba(23,160,94,.94); }
.news-item .news-thumb[data-type="备考"] .thumb-tag { background: rgba(224,57,62,.94); }

/* 分数线条形：校名两行展示 */
.score-bar-row .sbr-name {
  width: 130px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal;
}

/* 工具箱：科目分值图形条 / 考生类别字母徽章 */
.tool-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.subj-item { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid transparent; }
.subj-item.big { background: #F3FAF6; }
.subj-item .subj-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.subj-item .subj-name { font-weight: 700; font-size: 14px; }
.subj-item .subj-name small { color: var(--text-3); font-weight: 400; margin-left: 4px; font-size: 11px; }
.subj-item .subj-score { color: var(--primary-dark); font-size: 19px; font-weight: 800; }
.subj-item .subj-score i { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 2px; }
.subj-item .subj-bar { height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.subj-item .subj-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--grad-a)); }
.cat-card { background: #fff; border-radius: 12px; padding: 14px 12px; box-shadow: var(--shadow); display: flex; gap: 11px; align-items: flex-start; }
.cat-badge { width: 32px; height: 32px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(8,46,28,.14); }
.cat-card .cat-body { min-width: 0; }
.cat-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.cat-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; }

/* 志愿页推荐结果空态 */
.result-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 42px 18px;
  border: 1.5px dashed var(--border); border-radius: 14px;
  background: var(--bg); color: var(--text-3);
}
.result-empty svg { width: 46px; height: 46px; color: var(--primary); opacity: .65; margin-bottom: 12px; }
.result-empty .re-title { font-weight: 700; color: var(--text-2); font-size: 14px; margin-bottom: 6px; }
.result-empty .re-desc { font-size: 12px; line-height: 1.8; max-width: 270px; }

/* V3 响应式补充（640 断点） */
@media (max-width: 640px) {
  .tool-grid-2 { grid-template-columns: 1fr; }
  .tool-grid-3 { grid-template-columns: 1fr; }
  .score-bar-row .sbr-name { width: 88px; }
}

/* ===== 模拟报志愿：表单与结果卡片 ===== */
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; cursor: pointer; }
.check input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }

.vol-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 38px 12px; color: var(--text-3); font-size: 13px; }
.vol-loading .spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: volSpin .8s linear infinite; }
@keyframes volSpin { to { transform: rotate(360deg); } }

.vol-summary { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.vol-summary b { color: var(--primary-dark); }

.vol-cats { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.vol-cats-head { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.vol-cats-head b { color: var(--primary-dark); }
.vol-cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vcs { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; text-align: center; min-width: 0; }
.vcs-n { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; }
.vcs-n span { font-size: 12px; font-weight: 700; color: var(--text-3); margin-left: 2px; }
.vcs-l { font-size: 12px; font-weight: 700; color: var(--text-2); margin-top: 3px; }
.vcs-l::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; background: var(--text-3); }
.vcs-pub .vcs-l::before { background: var(--primary); }
.vcs-pri .vcs-l::before { background: #E8833A; }
.vcs-voc .vcs-l::before { background: #8B94A1; }
.vcs-s { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.vol-cats-note { font-size: 12px; color: var(--text-3); line-height: 1.8; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* 游客门控：未登录仅预览前 3 所 */
.vol-gate { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #F3FBF7 0%, #EAF6F1 100%); border: 1px dashed rgba(18,133,90,.45); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.vol-gate .vg-lock { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.vol-gate-body { flex: 1; min-width: 0; }
.vol-gate-t { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.55; }
.vol-gate-t b { color: var(--primary-dark); }
.vol-gate-d { font-size: 12px; color: var(--text-2); line-height: 1.75; margin-top: 4px; }
.vol-gate-d b { color: var(--primary-dark); }
.vol-gate-act { display: flex; gap: 8px; flex-shrink: 0; }
.vol-gate-act .btn { font-size: 13px; }
.vol-hint { font-size: 12px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }
.vol-hint b { color: var(--primary-dark); }
.vol-expand { margin-top: 10px; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.vol-expand:hover { background: var(--primary-light); }

.vol-group { margin-bottom: 20px; }
.vol-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vg-title { font-weight: 800; font-size: 15px; }
.vg-count { font-size: 12px; color: var(--text-3); }
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vol-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vol-card:hover { border-color: rgba(18,133,90,.35); box-shadow: 0 2px 10px rgba(18,133,90,.06); }
.vc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vc-band { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; color: #fff; flex-shrink: 0; letter-spacing: .5px; }
.vc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex-shrink: 1; min-width: 0; }
.vc-tag { font-size: 11px; line-height: 1.7; padding: 0 7px; border-radius: 6px; white-space: nowrap; }
.vc-tag-nature { background: var(--primary-light); color: var(--primary-dark); }
.vc-tag-type { background: var(--warn-soft); color: var(--warn-deep); }
.vc-tag-region { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); }
.vc-name { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; white-space: normal; overflow-wrap: break-word; line-height: 1.4; }
.vc-name:hover { color: var(--primary); }
.vc-boundary { font-size: 11px; color: var(--warn); font-weight: 700; border: 1px solid var(--warn-line); background: var(--warn-soft); padding: 1px 7px; border-radius: 20px; flex-shrink: 0; }
.vc-src { font-size: 11px; color: var(--text-3); }
.vc-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-lines span { font-size: 12px; background: var(--bg); color: var(--text-2); padding: 3px 9px; border-radius: 7px; }
.vc-lines b { color: var(--primary-dark); font-weight: 700; }
.vc-lines span.c { background: var(--warn-soft); color: var(--warn-deep); }
.vc-lines span.c b { color: var(--warn-deep); }
.vc-judge { font-size: 12px; color: var(--text-2); line-height: 1.75; border-top: 1px dashed var(--border); padding-top: 8px; }
.vc-judge b { color: var(--text); }
.vc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.vc-link { font-size: 12px; color: var(--primary); font-weight: 600; text-decoration: none; }
.vc-link:hover { text-decoration: underline; }
.vc-none { grid-column: 1 / -1; background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; padding: 14px; font-size: 12px; color: var(--text-3); line-height: 1.8; text-align: center; }

.vol-over { background: var(--muted-08); border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; }
.vol-over-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: var(--text-2); }
.vol-over .vol-grid { grid-template-columns: 1fr 1fr; }
.vol-over .vc-lines span { background: #fff; }

.vol-error { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: 12px; padding: 16px; font-size: 13px; color: var(--err-text); line-height: 1.8; }

@media (max-width: 992px) {
  .vol-grid { grid-template-columns: 1fr; }
  .vol-over .vol-grid { grid-template-columns: 1fr; }
}
/* ===== 资讯/政策详情页（news-detail.html）===== */
.detail-wrap { padding-top: 24px; padding-bottom: 40px; }
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.crumb a { color: var(--primary); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.c-sep { color: #C4CDC8; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail-article { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px 32px; min-width: 0; }
.detail-title { font-size: 24px; font-weight: 800; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding-bottom: 14px; border-bottom: 1px dashed var(--border); margin-bottom: 18px; }
.detail-meta .m-date::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #C4CDC8; margin-right: 8px; vertical-align: middle; }
.detail-body { font-size: 15px; line-height: 2; color: #2A313A; overflow-wrap: break-word; }
.detail-body p { margin-bottom: 14px; }
.detail-body h2, .detail-body h3 { margin: 22px 0 10px; font-weight: 700; color: var(--text); }
.detail-body ul, .detail-body ol { margin: 0 0 14px 1.4em; }
.detail-body li { margin-bottom: 6px; }
.detail-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 4px 0; }
.detail-body a { color: var(--primary); }
.loading-hint { color: var(--text-3); }
.detail-back { margin-top: 22px; }
.wx-promo { margin-top: 22px; background: linear-gradient(120deg, #F0F9F3, #E6F6EC); border: 1px solid #CFE8D9; border-radius: 10px; padding: 14px 16px; }
.wx-promo-in { display: flex; align-items: center; gap: 12px; }
.wx-promo-in > svg { width: 34px; height: 34px; color: var(--primary); flex: none; }
.wx-promo-txt { flex: 1; min-width: 0; }
.wx-promo-t { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.wx-promo-d { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.wx-promo-qr img { width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--border); object-fit: cover; background: #fff; }
.wx-promo-qr { flex: none; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.side-title { font-size: 15px; font-weight: 800; color: var(--text); padding-left: 10px; border-left: 3px solid var(--primary); margin-bottom: 14px; }
.rel-list { list-style: none; margin: 0; padding: 0; }
.rel-item { border-bottom: 1px dashed var(--border); padding: 10px 0; }
.rel-item:last-child { border-bottom: 0; }
.rel-item a { display: block; text-decoration: none; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.rel-item a:hover { color: var(--primary); }
.rel-t { display: block; }
.rel-d { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.rel-none { color: var(--text-3); font-size: 13px; padding: 8px 0; }
.side-tip p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin: 0; }
@media (max-width: 992px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { flex-direction: row; }
  .detail-side .side-card { flex: 1; }
}
@media (max-width: 640px) {
  .detail-article { padding: 18px 16px 22px; }
  .detail-title { font-size: 19px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { flex-direction: column; }
  .wx-promo-in { flex-wrap: wrap; }
}

/* ===== 首页公告栏 ===== */
.announce-bar { background: var(--green-soft); border-bottom: 1px solid var(--green-border-soft); }
.announce-bar .container { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; min-width: 0; }
.ab-tag { flex: none; background: var(--primary); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.ab-text { color: var(--green-deep); font-size: 13px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) {
  .ab-text { white-space: normal; }
}

/* ===== 顶部用户区（登录/注册/公众号） ===== */
.nav-user { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-user .nu-link { font-size: 13px; color: var(--text-2); text-decoration: none; padding: 5px 4px; }
.nav-user .nu-link:hover { color: var(--primary); }
.nav-user .nu-divider { width: 1px; height: 14px; background: var(--border); }
.nav-user .nu-btn { font-size: 13px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-weight: 600; }
.nav-user .nu-btn.on { background: var(--primary); color: #fff; }
.nav-user .nu-name { font-size: 13px; color: var(--text); font-weight: 600; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-modal-mask { position: fixed; inset: 0; background: var(--mask-45); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-modal { width: 400px; max-width: 100%; background: #fff; border-radius: 14px; padding: 26px 28px 22px; box-shadow: var(--shadow-deep); }
.auth-modal-t { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.auth-modal-s { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.auth-field input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-12); }
.auth-err { color: var(--danger-deep); font-size: 12px; min-height: 18px; margin-bottom: 8px; }
.auth-submit { width: 100%; padding: 11px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: var(--primary-dark); }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 14px; }
.auth-switch a { color: var(--primary); cursor: pointer; }
.auth-tip { font-size: 11.5px; color: var(--text-3); line-height: 1.7; margin-top: 10px; text-align: center; }
.auth-wx { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 14px; text-align: center; font-size: 13px; color: var(--text-2); }
.auth-wx img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--border); margin-top: 8px; object-fit: cover; }
.auth-close { position: absolute; top: 12px; right: 14px; font-size: 22px; color: var(--text-3); cursor: pointer; background: none; border: 0; }
.auth-modal { position: relative; }

/* ===== 移动端导航用户区收敛 ===== */
@media (max-width: 640px) {
  .nav-user { gap: 4px; }
  .nav-user .nu-link { padding: 5px 2px; font-size: 12px; }
  .nav-user .nu-wx { display: none; }
}

/* ===== 学校详情页补充样式（简介 / 位置地图 / 图集占位 / 录取空态） ===== */
.intro-lead { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.intro-facts { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0 0 4px; }
.intro-facts li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.7; }
.intro-facts li span { width: 76px; flex-shrink: 0; color: var(--text-3); }
.intro-facts li b { color: var(--text); font-weight: 600; word-break: break-all; }
.intro-note { font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.intro-note a, .loc-extra a { color: var(--primary); text-decoration: none; word-break: break-all; }
.intro-note a:hover, .loc-extra a:hover { text-decoration: underline; }

.loc-line { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--text); line-height: 1.7; }
.loc-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.loc-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.loc-actions .btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.loc-actions .btn svg { width: 15px; height: 15px; }
.loc-extra { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.loc-score { margin-top: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.loc-score .ls-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 9px; }
.loc-score .ls-title svg { width: 15px; height: 15px; color: var(--primary); }
.loc-score .ls-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.loc-score .chip { font-size: 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; color: var(--text-2); }
.loc-score .ls-more { display: inline-block; font-size: 12px; color: var(--primary); text-decoration: none; }
.loc-score .ls-more:hover { text-decoration: underline; }

.gal-item.gal-mono { display: flex; flex-direction: column; align-items: center; justify-content: center; background-size: cover; }
.gal-item.gal-mono .gal-mono-char { font-size: 44px; font-weight: 800; color: rgba(255,255,255,.94); line-height: 1; text-shadow: 0 1px 6px rgba(8,46,28,.28); }
.school-card .sc-cover.sc-cover-mono::after { background: none; }
.empty-tip { font-size: 13px; color: var(--text-2); padding: 6px 0; }
.empty-tip a { color: var(--primary); }

/* ===== 广告位 / 可达性 / 动效降级 / 排版细节 ===== */

/* 广告位（/api/ads 渲染容器） */
.ad-slot { margin: 18px 0 2px; }
.ad-slot-top { margin-top: 4px; }
.ad-card { border-radius: var(--radius); border: 1px solid var(--border); background: #fff; overflow: hidden; }
.ad-card:not(.ad-card-banner) { box-shadow: 0 1px 2px rgba(16, 64, 40, .05); }
.ad-card + .ad-card { margin-top: 10px; }
.ad-card a, .ad-card > div { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); transition: background .2s; }
.ad-card a:hover { background: var(--green-soft); }
.ad-card-banner { border: none; }
.ad-card-banner a, .ad-card-banner > div { display: block; padding: 0; }
.ad-card-banner a:hover { background: #fff; }
.ad-card-banner img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; object-position: center; border-radius: calc(var(--radius) - 1px); }
.ad-thumb { width: 120px; height: 64px; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--primary-light); flex-shrink: 0; }
.ad-tag { flex-shrink: 0; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ad-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ad-title { font-size: 15px; font-weight: 700; color: var(--text); }
.ad-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.ad-go { font-size: 13px; color: var(--primary); font-weight: 600; flex-shrink: 0; }
.ad-card-text { background: var(--primary-light); border-color: var(--green-line); }
.ad-card-text a:hover { background: #EAF7F0; }

/* 首页横幅槽：与页面容器对齐，横幅限高，下方卡片并排紧凑，避免通栏过长 */
.ad-slot-hero {
  max-width: 1200px; margin: 18px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch;
}
.ad-slot-hero .ad-card + .ad-card { margin-top: 0; }
.ad-slot-hero .ad-card-banner { grid-column: 1 / -1; }
.ad-slot-hero .ad-card:not(.ad-card-banner) a,
.ad-slot-hero .ad-card:not(.ad-card-banner) > div { padding: 10px 14px; gap: 12px; }
.ad-slot-hero .ad-thumb { width: 92px; height: 56px; }
.ad-slot-hero .ad-title { font-size: 14px; }

@media (max-width: 640px) {
  .ad-card a, .ad-card > div { flex-wrap: wrap; }
  .ad-thumb { width: 100%; height: 96px; }
  .ad-slot-hero { grid-template-columns: 1fr; }
  .ad-slot-hero .ad-card-banner { grid-column: auto; }
  .ad-card-banner img { max-height: 140px; }
  .ad-slot-hero .ad-thumb { width: 84px; height: 52px; }
  .ad-slot-hero .ad-card:not(.ad-card-banner) a,
  .ad-slot-hero .ad-card:not(.ad-card-banner) > div { flex-wrap: nowrap; }
}

/* 尊重系统「减弱动效」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 键盘焦点环 */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 标题平衡折行，避免孤字 */
.section-title, .hero-title, .detail-title, .page-head h1, .panel-title, .side-title { text-wrap: balance; }

/* 数字等宽对齐，避免表格跳动 */
.stat-num, .rb-num, .vc-lines b, .vol-summary b, .sbr-num, .subj-score, .ds-num, .hot-score, .ss-num, .rank-heat, .data-table td {
  font-variant-numeric: tabular-nums;
}

/* 按压与禁用态反馈 */
.btn:active, .chip:active, .tab:active, .search-bar button:active, .auth-submit:active,
.quick-item:active, .school-card:active, .major-card:active, .rank-item:active { transform: translateY(1px); }
.btn:disabled, .auth-submit:disabled { opacity: .55; cursor: not-allowed; }

/* 游客门控移动端：按钮整行堆叠 */
@media (max-width: 640px) {
  .vol-gate { flex-direction: column; align-items: flex-start; gap: 10px; padding: 13px 14px; }
  .vol-gate .vg-lock { width: 22px; height: 22px; }
  .vol-gate-act { width: 100%; }
  .vol-gate-act .btn { flex: 1; padding: 9px 10px; }
  .vol-expand { width: 100%; padding: 9px 10px; }
}

/* 资讯/政策长文分页 */
.pg-bar { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 24px 0 6px; }
.pg-btn { min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--border); background: #fff; color: var(--text-2); border-radius: 8px; font-size: 13.5px; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-num.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pg-ellip { color: var(--text-3); padding: 0 2px; font-size: 13px; }
