/* ============================================
   高中帮 · 全站样式
   亮色主题 · 移动优先响应式
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 页面与表面 */
  --bg: #FFF7F2;                 /* 柔和背景底色（大面积页面背景） */
  --surface: #ffffff;
  --soft: #F5F5F5;               /* 分割线、卡片底色 */
  --border: #ebe6e2;
  /* 文字色系（三级） */
  --text: #4B3F38;               /* 一级文字色：标题、关键名称 */
  --text-2: #6A594F;             /* 二级正文文字色：正文内容 */
  --text-3: #947E70;             /* 三级辅助文字色：备注、小字说明 */
  --text-muted: #947E70;         /* 辅助/备注小字（映射三级） */
  /* 主色与延展色 */
  --primary: #F27935;
  --primary-bg: #fff2e8;
  --primary-dark: #d56325;
  --tag-soft: #FFD0B0;           /* 浅橙标签色块（小面积色块底色） */
  --primary-soft: #FFD0B0;       /* 浅橙：大色块/按钮底色统一用此色 */
  --primary-soft-hover: #FFC39D; /* 浅橙按钮悬停加深一档 */
  --teal: #0f6e56;
  --teal-bg: #e8f6f0;
  --amber: #ef9f27;
  --amber-bg: #fdf3e3;
  --red: #c94f4f;
  --red-bg: #fbeaea;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(75,63,56,0.06);
  --nav-h: 58px;
  /* ============ 全站字号规范（字阶，禁止使用字阶外字号） ============
     --fs-xs   11px  角标/小标签（tag、badge、tabbar 文字）
     --fs-sm   12px  备注、说明小字、页脚
     --fs-md   13px  表单标签、表头、元信息、提示条
     --fs-base 14px  按钮、输入控件、正文
     --fs-lg   15px  列表标题、卡片内重点文字
     --fs-xl   16px  卡片标题
     --fs-2xl  18px  模态标题、品牌名
     --fs-3xl  22px  页面主标题
     数字展示（非正文，仅用于大数字）：20 / 26 / 34 / 56 px            */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 16px;
  --fs-2xl: 18px;
  --fs-3xl: 22px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-2);            /* 二级正文文字色 */
  line-height: 1.65;
  font-size: 15px;
  padding-bottom: calc(var(--nav-h) + 16px); /* 给底部导航留空间 */
}

/* 标题 / 关键名称统一使用一级文字色 */
h1, h2, h3, .page-title, .card-title, .li-title, .combo-name,
.path-card .pc-title, .req-mname, .dl-name, .entry-card .name,
.modal h3, .contact-card h3 {
  color: var(--text);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1020px; margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--text);
  text-decoration: none; flex-shrink: 0;
}
/* 顶栏品牌 Slogan（导航栏只放主标语后半句，与「高中帮」合成完整主标语） */
.brand-slogan {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  white-space: nowrap; flex-shrink: 0; letter-spacing: .5px;
}
@media (max-width: 767px) {
  .brand-slogan { display: none; }
}
.brand-logo {
  width: 32px; height: 32px; border-radius: 50%;
  background: url('../assets/logo-icon.png') center/contain no-repeat;
  color: transparent; font-size: 0;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-nav { display: none; margin-left: auto; gap: 4px; }
.top-nav a {
  padding: 6px 14px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
}
.top-nav a:hover { background: var(--primary-bg); color: var(--primary); }
.top-nav a.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.prov-select {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.prov-select select {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 8px; font-size: 13px; background: var(--surface);
  color: var(--text); cursor: pointer;
}
@media (min-width: 768px) {
  .top-nav { display: flex; }
  .prov-select { margin-left: 12px; }
}

/* ---------- 主容器 ---------- */
.container { max-width: 1020px; margin: 0 auto; padding: 20px 16px 40px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ---------- 底部 Tab 导航（手机） ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: #999; font-size: 11px;
}
.tabbar a .icon { font-size: 20px; line-height: 1; }
.tabbar a.active { color: var(--primary); font-weight: 600; }
@media (min-width: 768px) { .tabbar { display: none; } body { padding-bottom: 16px; } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-title .badge { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px; }

/* ---------- 倒计时 ---------- */
.countdown-hero {
  background: var(--primary-soft);
  color: var(--text);
  border-radius: 16px; padding: 28px 22px; text-align: center;
  box-shadow: 0 2px 10px rgba(75,63,56,0.08);
}
.countdown-hero .cd-label { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.countdown-hero .cd-days {
  font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: 2px;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.countdown-hero .cd-days small { font-size: 18px; font-weight: 500; letter-spacing: 0; margin-left: 4px; color: var(--text-2); }
.countdown-hero .cd-date { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.countdown-hero .cd-detail {
  display: flex; justify-content: center; gap: 18px; margin-top: 16px;
  flex-wrap: wrap;
}
.countdown-hero .cd-detail .item { text-align: center; }
.countdown-hero .cd-detail .num {
  font-size: 20px; font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums;
}
.countdown-hero .cd-detail .lbl { font-size: 12px; color: var(--text-3); }

/* ---------- 功能入口网格 ---------- */
.entry-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 14px;
}
@media (min-width: 768px) { .entry-grid { grid-template-columns: repeat(4, 1fr); } }
.entry-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px;
  text-decoration: none; color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.entry-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}
.entry-card .name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.entry-card .desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.entry-card .tag-hot {
  display: inline-block; margin-top: 8px; font-size: 11px;
  padding: 1px 8px; border-radius: 20px;
  background: var(--red-bg); color: var(--red);
}

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text);
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(3, 1fr); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--primary-soft); color: var(--primary-dark); }
.btn-primary:hover { background: var(--primary-soft-hover); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: #ccc; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag-985 { background: #fdeeee; color: #b03a3a; }
.tag-211 { background: #fdf3e3; color: #b07a1a; }
.tag-syll { background: var(--teal-bg); color: var(--teal); }
.tag-prov { background: var(--primary-bg); color: var(--primary); }
.tag-public { background: #f0eefc; color: #5b48c4; }
.tag-private { background: #f3f1ed; color: #888; }

/* ---------- 列表 ---------- */
.list-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-item .li-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.list-item .li-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.55; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-weight: 600; color: var(--text-muted); font-size: 12px; background: var(--bg); }
tr:hover td { background: #f7f9fc; }

/* ---------- 筛选器 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center;
}
.filter-chip {
  padding: 5px 14px; border-radius: 20px; font-size: 13px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; color: var(--text-muted); font-family: inherit;
}
.filter-chip.active { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-dark); }
/* 意向地区：大区分组 + 快捷操作 */
.prov-ops { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 8px; }
.prov-ops-label { font-size: 12px; color: var(--text-3); }
.prov-op {
  padding: 3px 12px; border-radius: 14px; font-size: 12px; cursor: pointer;
  border: 1px dashed var(--border); background: var(--surface); color: var(--text-2); font-family: inherit;
}
.prov-op:hover { border-color: var(--primary); color: var(--primary-dark); }
/* 意向地区容器改 block：每个大区分组独占一行 */
#cityFilter { display: block; }
.prov-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.prov-group:last-child { margin-bottom: 0; }
.prov-glabel { font-size: 12px; color: var(--text-3); flex-shrink: 0; width: 32px; margin-right: 2px; }
.search-input {
  flex: 1; min-width: 160px;
  border: 1px solid var(--border); border-radius: 20px;
  padding: 7px 16px; font-size: 14px; font-family: inherit; background: var(--surface);
}
.search-input:focus { outline: none; border-color: var(--primary); }

/* ---------- 提示条 ---------- */
.notice {
  border-radius: 8px; padding: 10px 14px; font-size: 13px;
  margin-bottom: 14px; line-height: 1.6;
}
.notice-info { background: var(--primary-bg); color: var(--primary); }
.notice-warn { background: var(--amber-bg); color: #9a6a1a; }

/* ---------- 赋分计算器 ---------- */
.grade-input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grade-input-cell { text-align: center; padding: 14px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.grade-input-cell .sub-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.grade-input-cell input {
  width: 72px; text-align: center; font-size: 22px; font-weight: 700;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px;
  font-variant-numeric: tabular-nums;
}
.grade-input-cell input:focus { outline: none; border-color: var(--primary); }
.grade-result {
  margin-top: 14px; padding: 16px; border-radius: 10px;
  background: var(--teal-bg); text-align: center;
}
.grade-result .gr-label { font-size: 13px; color: var(--teal); margin-bottom: 6px; }
.grade-result .gr-value {
  font-size: 34px; font-weight: 800; color: var(--teal);
  font-variant-numeric: tabular-nums;
}

/* 等级尺 */
.grade-ruler { margin-top: 18px; overflow-x: auto; padding-bottom: 6px; }
.ruler-track { display: flex; min-width: 560px; border-radius: 8px; overflow: hidden; }
.ruler-seg {
  flex: 1; text-align: center; padding: 10px 4px 8px; color: #fff;
  position: relative;
}
.ruler-seg .rs-grade { font-size: 13px; font-weight: 700; }
.ruler-seg .rs-range { font-size: 11px; opacity: 0.85; }
.ruler-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; min-width: 560px; }

/* ---------- 趋势图 ---------- */
.trend-wrap { overflow-x: auto; }
.trend-svg { min-width: 560px; width: 100%; height: 260px; display: block; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.trend-legend .lg { display: flex; align-items: center; gap: 5px; }
.trend-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- 选科设置 ---------- */
.subject-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.subject-pick button {
  padding: 14px 6px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit; position: relative;
}
.subject-pick button.selected { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.subject-pick button .num {
  position: absolute; top: 6px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty .icon { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }
.empty p { font-size: 14px; }

/* ---------- 模态框 ---------- */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--surface); border-radius: 14px;
  max-width: 480px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 20px;
}
.modal h3 { font-size: 18px; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }

/* ---------- 页脚 ---------- */
.footer {
  max-width: 1020px; margin: 0 auto; padding: 20px 16px 30px;
  font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.8;
}

/* ---------- 工具类 ---------- */
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-14 { margin-bottom: 14px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12px; }
.hidden { display: none !important; }

/* ---------- P1 页面补充样式 ---------- */
.page-head { margin: 18px 0 4px; }
.page-head h1 { font-size: 22px; font-weight: 700; }
.page-head p { margin-top: 4px; }

.input-group { display: flex; gap: 10px; }
.input-group input {
  flex: 1; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: var(--surface);
}
.input-group input:focus { outline: none; border-color: var(--primary); }
.btn {
  padding: 10px 18px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--primary-soft); color: var(--primary-dark); }
.btn-primary:active { opacity: .85; }

.result-box {
  margin-top: 12px; padding: 14px 16px;
  background: var(--primary-bg); border-radius: 10px;
  font-size: 14px; line-height: 1.7;
}
.result-box .big-num { font-size: 34px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.result-box .big-num small { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.badge-level {
  display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px;
}
.badge-level.ok { background: var(--teal-bg); color: var(--teal); }
.badge-level.warn { background: var(--amber-bg); color: var(--amber); }
.text-danger { color: var(--red); }

.combo-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.combo-item:last-child { border-bottom: none; }
.combo-rank {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.combo-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }

/* ---------- P2 页面补充样式 ---------- */
.path-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .path-grid { grid-template-columns: repeat(2, 1fr); } }
.path-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  background: var(--surface);
}
.path-card .pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.path-card .pc-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-bg); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.path-card .pc-title { font-size: 15px; font-weight: 700; }
.path-card .pc-tags { margin-bottom: 8px; }
.path-card .pc-tags .tag { margin-right: 6px; background: var(--bg); color: var(--text-muted); }
.path-card .pc-body { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.path-card .pc-body b { color: var(--text); }

.vol-cols { display: grid; gap: 14px; }
@media (min-width: 768px) { .vol-cols { grid-template-columns: 320px 1fr; } }
.vol-list { display: flex; flex-direction: column; gap: 8px; }
.vol-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  background: var(--surface);
}
.vol-item .idx { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vol-item .info { flex: 1; min-width: 0; }
.vol-item .info .name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vol-item .info .meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.55; }
.vol-tag { font-size: 11px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.vol-tag.chong { background: #fff2e8; color: #d56325; }
.vol-tag.wen { background: #e8f6f0; color: #0f6e56; }
.vol-tag.bao { background: #f0eefc; color: #5b48c4; }
.vol-tag.uni { background: var(--amber-bg); color: #b07a1a; }
.vol-tag.code { background: #f2f3f5; color: #667085; font-weight: 500; font-family: ui-monospace, Consolas, monospace; }
.vol-tag.warn { background: #fdecec; color: #c0392b; }
.vol-tag.coop { background: #eef4fd; color: #2b6cb0; }

/* ---------- 排雷体检报告（M4） ---------- */
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; align-items: flex-start; border: 1px solid var(--border); }
.check-item .check-ic { font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.check-item b { font-size: 13px; display: block; }
.check-ok { background: #f2faf5; }
.check-warn { background: #fdf6ec; }
.check-danger { background: #fdecec; }

/* ---------- 志愿页：分段选项卡 / 投档线查询 ---------- */
.seg-tabs { display: flex; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.seg-tab {
  flex: 1; min-width: 130px; padding: 10px 8px; text-align: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-muted); font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.seg-tab.active { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-dark); }
.q-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.q-bar select {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer;
}
.q-count { font-size: 12px; color: var(--text-muted); margin: 4px 0 10px; }

.eval-list { list-style: none; padding: 0; }
.eval-list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 8px; }
.eval-list li:last-child { border-bottom: none; }
.eval-list input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }


/* ---------- P3 智能推荐 & 导航扩展 ---------- */
.top-nav { overflow-x: auto; scrollbar-width: none; flex-shrink: 1; min-width: 0; }
.top-nav::-webkit-scrollbar { display: none; }
@media (min-width: 768px) and (max-width: 1180px) {
  .top-nav a { padding: 6px 9px; font-size: 13px; white-space: nowrap; }
}

.reco-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.reco-item:last-child { border-bottom: none; }
.reco-item:active { opacity: .7; }
.reco-icon { font-size: 18px; flex-shrink: 0; }
.reco-text { flex: 1; font-size: 13px; line-height: 1.6; }
.reco-tag {
  flex-shrink: 0; padding: 2px 8px; border-radius: 10px;
  background: var(--primary-bg); color: var(--primary);
  font-size: 11px; font-weight: 600;
}

/* 资讯/家长页下拉选择 */
.form-row .gzb-select { width: 100%; }

/* ---------- 选科页：官方文件下载卡 ---------- */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; background: var(--surface);
}
.dl-row:hover { border-color: var(--primary); background: var(--primary-bg); }
.dl-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px;
  background: var(--red-bg); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
}
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 15px; font-weight: 600; }
.dl-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.dl-row .btn { flex-shrink: 0; }

/* ---------- 选科页：官方统计磁贴 ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 12px; text-align: center; background: var(--bg);
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

/* ---------- 选科页：选科要求类型对照表 ---------- */
.req-need { color: var(--teal); font-weight: 600; white-space: nowrap; }

/* ---------- 提示框（复用设计规范） ---------- */
.note-box {
  background: #fefcf5; border: 1px solid #e8d8a0;
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 13px; line-height: 1.75;
}
.note-box b { color: #633806; }
.note-box ul { margin-top: 6px; }
.note-box li { margin-bottom: 4px; }

/* ---------- 院校专业库：选科要求查询 ---------- */
.req-block { padding: 14px 0; border-bottom: 1px solid var(--border); }
.req-block:last-child { border-bottom: none; }
.req-mname { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-mname .cnt { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.req-dist { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.req-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--bg); color: var(--text-muted); border: 1px solid var(--border);
}
.req-chip b { color: var(--text); font-weight: 700; }
.req-chip.free { background: var(--teal-bg); color: var(--teal); border-color: transparent; }
.req-chip.phys { background: var(--red-bg); color: var(--red); border-color: transparent; }
.req-chip.other { background: var(--primary-bg); color: var(--primary); border-color: transparent; }
.req-ex { font-size: 12px; color: var(--text-muted); }
.req-ex b { color: var(--text); font-weight: 600; }

/* 按院校查：结果表 */
.req-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.req-row:last-child { border-bottom: none; }
.req-row .rm { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.req-row .rc { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.req-row .rr { flex-shrink: 0; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rr.free { background: var(--teal-bg); color: var(--teal); }
.rr.phys { background: var(--red-bg); color: var(--red); }
.rr.other { background: var(--primary-bg); color: var(--primary); }
.req-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ---------- 综合评价：云平台活动板块 ---------- */
.activity-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.activity-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; background: var(--soft);   /* 卡片底色 #F5F5F5 */
}
.ac-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ac-status {
  font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  background: var(--teal-bg); color: var(--teal);
}
.ac-tag {
  font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  background: var(--tag-soft); color: var(--text);   /* 浅橙标签色块 */
}
.ac-title { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); }
.ac-desc { font-size: 13px; color: var(--text-3); margin: 8px 0 14px; line-height: 1.7; }
.ac-btn { width: 100%; }

/* ---------- 全站咨询联系弹窗 ---------- */
.contact-fab {
  position: fixed; bottom: 20px; right: 18px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 18px rgba(75,63,56,0.18);
  z-index: 150; transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-pulse 2.4s infinite;
}
.contact-fab:hover { transform: scale(1.08); box-shadow: 0 6px 26px rgba(75,63,56,0.24); }
.contact-fab:active { transform: scale(0.94); }
.fab-icon { font-size: 25px; line-height: 1; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(75,63,56,0.18); }
  50% { box-shadow: 0 4px 28px rgba(75,63,56,0.30); }
}
@media (max-width: 767px) {
  .contact-fab { bottom: calc(var(--nav-h) + 16px); }  /* 避开底部 Tab */
}
.contact-overlay {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(75,63,56,0.45);
  align-items: flex-end; justify-content: center; padding: 16px;
}
.contact-overlay.show { display: flex; }
.contact-card {
  background: var(--surface); border-radius: 18px 18px 6px 6px;
  padding: 24px 20px 20px; width: 100%; max-width: 400px;
  position: relative; animation: contact-up 0.25s ease;
}
@keyframes contact-up { from { transform: translateY(20px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.contact-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 26px; color: var(--text-3); cursor: pointer; line-height: 1; padding: 0 4px;
}
.contact-close:hover { color: var(--text); }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-intro { font-size: 12px; color: var(--text-3); margin-bottom: 16px; line-height: 1.6; }
.contact-items { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); text-decoration: none; color: inherit; cursor: pointer;
}
a.contact-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.contact-item .ci-icon { font-size: 22px; flex-shrink: 0; }
.contact-item .ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-item .ci-label { font-size: 11px; color: var(--text-3); }
.contact-item .ci-value { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.contact-item .ci-arrow { color: var(--text-3); font-size: 16px; flex-shrink: 0; }
.contact-item .ci-copy {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--soft);
  color: var(--text-2); font-size: 12px; padding: 4px 12px; border-radius: 20px; cursor: pointer; font-family: inherit;
}
.contact-item .ci-copy.copied { background: var(--teal-bg); color: var(--teal); border-color: transparent; }
.contact-item.qrcode-item { flex-direction: column; align-items: center; gap: 6px; display: none; }
.contact-item.qrcode-item img { width: 160px; height: 160px; border-radius: 10px; }
.contact-tip { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 16px; }

/* ---------- 首页品牌 Slogan Hero ---------- */
.slogan-hero {
  text-align: center;
  padding: 26px 16px 6px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, transparent 100%);
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.slogan-hero .sh-main {
  font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: 1px;
  line-height: 1.3;
}
.slogan-hero .sh-sub {
  font-size: 15px; font-weight: 600; color: var(--primary);
  margin-top: 8px; letter-spacing: .5px;
}
.slogan-hero .sh-desc {
  font-size: 13px; color: var(--text-3); margin-top: 10px; line-height: 1.7;
}
@media (max-width: 480px) {
  .slogan-hero .sh-main { font-size: 22px; }
}

/* ---------- 白名单赛事分类块 ---------- */
.contest-cat {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.contest-cat:first-child { border-top: none; padding-top: 0; }
.contest-cat:last-child { padding-bottom: 0; }
.contest-cat .cc-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.contest-cat .cc-head b { font-size: 15px; color: var(--text); }
.contest-cat .cc-count {
  font-size: 12px; color: var(--primary); background: var(--primary-bg);
  padding: 2px 10px; border-radius: 20px; font-weight: 600;
}
.contest-cat .cc-items { margin-top: 8px; line-height: 1.6; }

/* ---------- 咨询登记弹窗 / 会员开通申请弹窗（表单字段） ---------- */
.fb-sub { font-size: 12.5px; color: var(--text-3); margin: -8px 0 14px; }
.fb-field { margin-bottom: 12px; }
.fb-field label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 5px; }
.fb-select {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 13.5px; font-family: inherit; outline: none; background: var(--surface);
}
.fb-select:focus { border-color: var(--primary); }
textarea.fb-select { resize: vertical; }
.fb-note { font-size: 11.5px; color: var(--text-3); margin-top: 12px; line-height: 1.7; }

/* ---------- 页脚留言链接 / 版权行 ---------- */
.footer-feedback-link { color: var(--primary); text-decoration: none; margin-top: 4px; display: inline-block; }
.footer-feedback-link:active { opacity: .7; }
.footer-copyright { display: inline-block; margin-top: 4px; color: var(--text-3); }

/* ---------- 会员门禁锁定页 ---------- */
.mem-gate {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.mem-gate-card {
  max-width: 380px; width: 100%; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 24px;
}
.mem-gate-card .mg-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.mem-gate-card h3 { font-size: 17px; margin-bottom: 10px; }
.mem-gate-card .mg-desc { font-size: 13px; color: var(--text-3); line-height: 1.8; margin-bottom: 18px; }
.mem-gate-card .btn { width: 100%; }
.mg-code-row { display: flex; gap: 8px; margin-top: 10px; }
.mg-code-row input {
  flex: 1; min-width: 0; padding: 9px 11px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 13.5px; outline: none;
}
.mg-code-row input:focus { border-color: var(--primary); }
.mg-code-row .btn { width: auto; flex-shrink: 0; padding: 9px 16px; }
.mg-back { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--text-3); text-decoration: none; }
.mg-back:hover { color: var(--primary); }

/* ---------- 页面标题旁会员按钮 ---------- */
.mem-join-btn { margin-top: 10px; white-space: nowrap; }

/* ---------- 全站禁止选取复制（CSS 兜底，JS 拦截在某些浏览器不可靠） ---------- */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
.contact-card, .contact-card * {
  -webkit-user-select: text;
  user-select: text;
}
