/* ==========================================================================
   升学规划联盟 · 高考志愿填报系统
   蓝色调设计系统
   ========================================================================== */

:root {
  /* ---------- 品牌蓝 ---------- */
  --brand: #1f6feb;
  --brand-600: #1557c9;
  --brand-700: #0f45a3;
  --brand-900: #0a2f74;
  --brand-300: #6ea3ff;
  --brand-100: #dbe8ff;
  --brand-050: #eef4ff;

  --cyan: #0fb5c9;
  --cyan-050: #e6fafc;

  /* ---------- 中性色 ---------- */
  --ink: #101c30;
  --ink-2: #3a4b66;
  --ink-3: #7385a0;
  --ink-4: #9aa9bf;
  --line: #e2eaf6;
  --line-2: #eef3fb;
  --bg: #f2f6fd;
  --bg-2: #e9f0fb;
  --card: #ffffff;

  /* ---------- 语义色：冲 / 稳 / 保 ---------- */
  --up: #e8563f;
  --up-bg: #fdeeec;
  --up-line: #f8cdc5;
  --mid: #1f6feb;
  --mid-bg: #eef4ff;
  --mid-line: #c7dcff;
  --safe: #12a05c;
  --safe-bg: #e9f8f0;
  --safe-line: #bce8d1;
  --warn: #d98a13;
  --warn-bg: #fdf5e6;

  /* ---------- 特控线（特殊类型招生控制线）----------
     与省控线是两条不同的线，都用于「未达线」判定。给特控线单独一个紫色，
     是为了让「未达特控线」和「未达批次线」在结果表里一眼能分开。 */
  --spec: #7a4ddb;
  --spec-bg: #f3eeff;

  /* ---------- 形状 ---------- */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --sh-sm: 0 1px 2px rgba(16, 44, 92, .05), 0 1px 3px rgba(16, 44, 92, .04);
  --sh: 0 4px 18px rgba(16, 44, 92, .07);
  --sh-lg: 0 14px 44px rgba(16, 44, 92, .14);
  --h-header: 62px;
  --h-foot: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9d7ea; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9bdd8; background-clip: content-box; }

/* ==========================  顶部导航  ========================== */
.hd {
  position: -webkit-sticky; position: sticky;
  top: 0;
  z-index: 300;
  height: var(--h-header);
  background: linear-gradient(100deg, var(--brand-900) 0%, var(--brand-700) 42%, var(--brand) 100%);
  box-shadow: 0 2px 14px rgba(10, 47, 116, .22);
}

.hd-in {
  max-width: 1680px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffffff, #cfe0ff);
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  flex-shrink: 0;
}
.brand-mark svg { width: 21px; height: 21px; display: block; }

.brand-txt { color: #fff; line-height: 1.15; }
.brand-txt b { display: block; font-size: 16px; letter-spacing: .5px; font-weight: 700; }
.brand-txt span { display: block; font-size: 10px; letter-spacing: 1.6px; opacity: .72; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav a {
  position: relative;
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: .18s;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav a.on { color: #fff; background: rgba(255, 255, 255, .18); font-weight: 600; }
.nav a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 16px; height: 2px; border-radius: 2px;
  background: #9dc4ff; transform: translateX(-50%);
}

.hd-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hd-pill {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: 12.5px;
  cursor: pointer; transition: .18s;
}
.hd-pill:hover { background: rgba(255, 255, 255, .22); }
.hd-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110, 231, 168, .22); }
.hd-pill b { font-weight: 600; }

.hd-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, #7fb0ff, #2f6fe0);
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  border: 2px solid rgba(255, 255, 255, .45);
  cursor: pointer;
}

/* ==========================  公告滚动  ========================== */
.notice {
  height: 34px;
  background: var(--brand-050);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  overflow: hidden;
  max-width: 1680px; margin: 0 auto;
  padding: 0 20px;
  gap: 12px;
}
.notice-tag {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 9px;
  background: var(--brand); color: #fff;
  font-size: 11px; border-radius: 10px; font-weight: 600;
  letter-spacing: .3px;
}
.notice-vp { flex: 1; overflow: hidden; position: relative; height: 34px; }
.notice-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  height: 34px; font-size: 12.5px; color: var(--ink-2);
  animation: marquee 34s linear infinite;
}
.notice-vp:hover .notice-track { animation-play-state: paused; }
.notice-track em { font-style: normal; color: var(--brand); font-weight: 600; }
.notice-track i { font-style: normal; margin: 0 26px; color: var(--line); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================  页面容器  ========================== */
.wrap { max-width: 1680px; margin: 0 auto; padding: 16px 20px 84px; }

/* ==========================  卡片  ========================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  margin-bottom: 14px;
}
.card-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-2);
}
.card-hd h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.card-hd h3::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--cyan));
}
.card-hd .sub { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.card-hd .hd-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-bd { padding: 16px 18px; }
.card-bd.tight { padding: 12px 14px; }
.card-bd.flush { padding: 0; }

/* ==========================  按钮  ========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 15px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: .16s;
  white-space: nowrap;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.btn:hover { border-color: var(--brand-300); color: var(--brand); background: var(--brand-050); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-pri {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 8px rgba(31, 111, 235, .3);
}
.btn-pri:hover { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; border-color: transparent; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--brand-050); color: var(--brand); border-color: transparent; }

.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 38px; padding: 0 22px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .ic { width: 14px; height: 14px; display: block; flex-shrink: 0; }

.btn-line-pri { border-color: var(--brand-300); color: var(--brand); background: var(--brand-050); }
.btn-line-pri:hover { background: var(--brand-100); }

.btn-pill { border-radius: 16px; }

/* ==========================  表单控件  ========================== */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 12px; color: var(--ink-3); font-weight: 500; }

.inp, .sel {
  height: 32px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  transition: .16s;
  outline: none;
}
.inp::placeholder { color: var(--ink-4); }
.inp:hover, .sel:hover { border-color: var(--brand-300); }
.inp:focus, .sel:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 235, .12); }
.sel {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6 6 7.8l3-3.2' fill='none' stroke='%237385a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px;
  padding-right: 26px;
  cursor: pointer;
}
.inp-num { -moz-appearance: textfield; }

/* 输入框内联图标 */
.input-ic { position: relative; }
.input-ic .inp { padding-left: 30px; }
.input-ic .ic-abs {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--ink-4); pointer-events: none;
}

/* 标签内的补充说明，如「院校所在省份 可多选」 */
.field > label .lbl-tip {
  font-style: normal; font-weight: 400; font-size: 11px;
  color: var(--ink-4); margin-left: 4px;
}

/* 区间输入：最小 ~ 最大（投档分范围 / 投档位次范围）
   刻意**不用 flex gap** —— 间距全由 .rng-sep 的内边距撑开，所以连
   xf-no-flexgap 兜底规则都不需要（旧内核对 flex gap 支持不全）。
   两侧输入 flex:1 且 min-width:0，窄屏下才会跟着收窄而不是把行顶宽。 */
.rng { display: flex; align-items: center; }
.rng .inp { flex: 1 1 0; min-width: 0; }
.rng-sep { flex: 0 0 auto; padding: 0 7px; color: var(--ink-4); font-size: 12px; }

/* 多选下拉：按钮 + 复选面板（原生 checkbox，不用自定义滚动/transform 布局，
   旧内核下与极速内核表现一致）。对应 assets/js/app.js 的 XF.multiSelect */
.msel { position: relative; }
.msel-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-family: inherit; text-align: left;
  cursor: pointer; transition: .16s;
}
.msel-btn:hover { border-color: var(--brand-300); }
.msel.on .msel-btn { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 235, .12); }
.msel-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel-txt.on { color: var(--brand); font-weight: 600; }
.msel-cv { flex-shrink: 0; color: var(--ink-4); }
.msel.on .msel-cv { transform: rotate(180deg); }
.msel-pop {
  display: none;
  position: absolute; left: 0; top: 37px; z-index: 60;
  width: 100%; min-width: 210px; max-width: 300px;
  padding: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-lg);
}
.msel.on .msel-pop { display: block; }
.msel-bar {
  display: flex; align-items: center;
  padding: 0 2px 7px; border-bottom: 1px solid var(--line-2);
}
.msel-bar button {
  height: 20px; padding: 0 6px;
  border: 0; background: none; color: var(--brand);
  font-size: 12px; font-family: inherit; cursor: pointer;
}
.msel-bar button:hover { text-decoration: underline; }
.msel-n { margin-left: auto; font-size: 11.5px; color: var(--ink-4); }
.msel-list { max-height: 206px; overflow-y: auto; padding-top: 6px; }
.msel-it {
  display: flex; align-items: center;
  height: 26px; padding: 0 6px; border-radius: 5px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.msel-it:hover { background: var(--brand-050); }
.msel-it input { margin: 0 7px 0 0; accent-color: var(--brand); }
.msel-none { padding: 10px 6px; font-size: 12px; color: var(--ink-4); }

/* 复选 / 单选 chip */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: .16s;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand); background: var(--brand-050); }
.chip input { display: none; }
.chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 2px 8px rgba(31, 111, 235, .28);
}
.chip.on:hover { color: #fff; }

/* 顶部三态 tab */
.seg {
  display: inline-flex; padding: 3px;
  background: var(--bg-2);
  border-radius: 9px;
  gap: 2px;
}
.seg button {
  border: 0; background: transparent; font-family: inherit;
  height: 28px; padding: 0 15px;
  border-radius: 7px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: .16s;
  white-space: nowrap;
}
.seg button:hover { color: var(--brand); }
.seg button.on {
  background: #fff; color: var(--brand); font-weight: 600;
  box-shadow: var(--sh-sm);
}

/* 艺术类 / 体育类板块：顶部两条**独立**的省控线。
   与普通类是并列的考试类型，量级差得远，所以直接摆出生效值，
   免得用户拿物理类的线来对照（那会得出一整片「未达线」的错误结论）。 */
.scope-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-bottom: 12px; padding: 9px 12px;
  background: #f6f8fc; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; color: var(--ink-2);
}
.scope-item {
  padding: 2px 9px; border-radius: 6px;
  background: #fff; border: 1px solid var(--line);
  white-space: nowrap;
}
.scope-item.on { border-color: var(--brand); color: var(--brand); }
.scope-item b { font-weight: 700; color: var(--ink); }
.scope-item.on b { color: var(--brand); }
/* 「未录入」是状态说明而不是分数，别用加粗数字的字重去伪装成一条线 */
.scope-item b.scope-none { font-weight: 400; color: var(--ink-3); }
.scope-item.on b.scope-none { color: var(--ink-3); }
.scope-hint { color: var(--ink-3); flex: 1 1 260px; }

/* ==========================  标签  ========================== */
.tag {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 6px;
  border-radius: 4px;
  font-size: 11px; line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag-985  { background: #fdeceb; color: #c8392b; border-color: #f7cfca; }
.tag-211  { background: #eef4ff; color: #1f6feb; border-color: #cadfff; }
.tag-sygc { background: #eaf6ff; color: #0b7fa8; border-color: #c3e6f7; }
.tag-baoyan { background: #e9f8f0; color: #0f8a51; border-color: #bde8d1; }
.tag-pub  { background: #f0f3f9; color: #4a5c78; border-color: #dde5f0; }
.tag-priv { background: #fdf5e6; color: #b3720a; border-color: #f3ddb0; }
.tag-gray { background: #f0f3f9; color: #5a6b85; border-color: #e0e8f3; }
.tag-ruler{ background: #f4f1fd; color: #6a4bc4; border-color: #ddd4f6; }
.tag-new  { background: #fff3e6; color: #c1650a; border-color: #f8d9ae; }
/* 「停招」：与「新增」同属招生状态标签，但语气要冷 —— 用灰蓝，不用暖色 */
.tag-stop { background: #eef1f5; color: #5a6b85; border-color: #dde3ec; }

/* 冲稳保 */
.tgb {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px;
  border-radius: 5px; font-size: 11.5px; font-weight: 700;
}
.tgb-c { background: var(--up-bg); color: var(--up); border: 1px solid var(--up-line); }
.tgb-w { background: var(--mid-bg); color: var(--mid); border: 1px solid var(--mid-line); }
.tgb-b { background: var(--safe-bg); color: var(--safe); border: 1px solid var(--safe-line); }
.tgb-x { background: #f3f5f9; color: var(--ink-3); border: 1px solid var(--line); }
/* 「险」里更特殊的一种：考生分低于该组所在批次的省控线（压根投不出档）。
   成因与「分差过大」不同，用虚线框把两者区分开；浮层里有精确文案。
   刻意**不加文字**：列宽在真机体检里逐列对齐表头，追加字符会把列撑宽。 */
.tgb-below { border-style: dashed; border-color: var(--ink-4); }
/* 「险」里更特殊的第二种：该组是专项计划组、考生分低于特控线。
   门槛比省控线更高，成因也不同，所以同为虚线框但换成紫色描边与文字。 */
.tgb-spec { border-color: var(--spec); color: var(--spec); }

/* ==========================  搜索面板  ========================== */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px 16px;
}
.search-grid .span2 { grid-column: span 2; }
.search-grid .span3 { grid-column: span 3; }

.adv {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .32s ease, opacity .26s ease, margin .32s ease;
  margin-top: 0;
}
/* 展开区高度：字段变多（学费范围 / 专业全称 / 专业备注 / 投档分范围 / 投档位次范围 /
   换算分范围）后留足余量，否则窄屏换行排版会被 overflow:hidden 裁掉下半截。
   实测（真机 CDP，见 tools/visual-check.mjs）：1600 宽内容高 320，390 宽（换行后）536，
   加一行「换算分范围」后各涨约一行的高度，距 760 仍有富余；
   探针里也钉着「内容高 ≤ 盒高」「末行底 ≤ 盒底」两条断言，再加字段时它会先叫。
   注：艺术 / 体育板块把「投档位次范围」换成了「分差范围」（同一个 .field span2 槽位），
   只是换标签与字段名、**行数不变**，所以两个板块的盒高仍然一致。 */
.adv.open { max-height: 760px; opacity: 1; margin-top: 14px; }
.adv-inner { padding-top: 14px; border-top: 1px dashed var(--line); }

.expand-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 26px; margin-top: 10px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 12px; font-family: inherit;
}
.expand-btn:hover { color: var(--brand); }
.expand-btn svg { transition: transform .28s; }
.expand-btn.open svg { transform: rotate(180deg); }

/* ==========================  考生信息条  ========================== */
.ks-bar {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(115deg, #f7faff 0%, #eef5ff 60%, #e8f7fb 100%);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.ks-main { display: flex; align-items: center; gap: 22px; padding: 12px 18px; flex: 1; flex-wrap: wrap; }
.ks-lbl { font-size: 11.5px; color: var(--ink-3); display: block; margin-bottom: 1px; white-space: nowrap; }
.ks-val { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.ks-val small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.ks-cell { border-left: 1px solid var(--brand-100); padding-left: 20px; }
.ks-cell:first-child { border-left: 0; padding-left: 0; }
.ks-sep { width: 1px; background: var(--brand-100); }
.ks-side {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .7);
  border-left: 1px solid var(--brand-100);
  flex-shrink: 0;
}
.diff-mini { display: flex; gap: 14px; }
.diff-mini div { text-align: center; }
.diff-mini b { display: block; font-size: 14px; }
.diff-mini .pos { color: var(--safe); }
.diff-mini .neg { color: var(--up); }
.diff-mini .neu { color: var(--ink-2); }

/* ==========================  数据表  ========================== */
.tbl-scroll {
  overflow: auto;
  max-height: calc(100vh - 300px);
  min-height: 320px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
table.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
table.tbl th, table.tbl td {
  border-bottom: 1px solid var(--line-2);
  padding: 9px 8px;
  vertical-align: middle;
  text-align: left;
}
table.tbl thead th {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #f7faff, #eef4fd);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: #f8fbff; }
table.tbl tbody tr.sel { background: var(--brand-050); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.c, table.tbl th.c { text-align: center; }
table.tbl td.r, table.tbl th.r { text-align: right; }

/* 冻结列 */
table.tbl .freeze-1 { position: -webkit-sticky; position: sticky; left: 0; z-index: 10; background: #fff; }
table.tbl thead .freeze-1 { z-index: 30; background: #f2f7fe; }
table.tbl .freeze-2 { position: -webkit-sticky; position: sticky; left: 40px; z-index: 10; background: #fff; }
table.tbl thead .freeze-2 { z-index: 30; background: #f2f7fe; }
table.tbl tbody tr:hover .freeze-1,
table.tbl tbody tr:hover .freeze-2 { background: #f8fbff; }
table.tbl tbody tr.sel .freeze-1,
table.tbl tbody tr.sel .freeze-2 { background: var(--brand-050); }
table.tbl .freeze-1::after,
table.tbl .freeze-2::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px;
  background: var(--line);
}
table.tbl .freeze-2 { border-right: 0; }

/* 院校单元格 */
.sc-cell { display: flex; flex-direction: column; gap: 3px; min-width: 190px; }
.sc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.sc-name.fs { font-size: 13px; }
.sc-sub { font-size: 11.5px; color: var(--ink-3); }
.sc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; margin-top: 1px; }
/* 三个链接（招生章程 / 院校百科 / 专业明细）必须整体不换行、不被压缩，
   否则在窄列里会被逐字挤成一列竖排文字 */
.sc-links a {
  display: inline-flex; align-items: center; gap: 3px; color: var(--brand);
  flex-shrink: 0; white-space: nowrap;
}
.sc-links a:hover { text-decoration: underline; }

/* 参考分 */
.ref { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ref-num { font-size: 16px; font-weight: 700; color: var(--brand-700); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.ref-rank { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ref-na { color: var(--ink-4); font-size: 13px; }

/* 专业组 */
.grp { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.grp-name { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.grp-pick {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--brand);
  background: var(--brand-050); border: 1px solid var(--brand-100);
  border-radius: 4px; padding: 0 5px; height: 17px;
  cursor: pointer;
}
.grp-pick:hover { background: var(--brand-100); }

/* 年份堆叠列 */
.stack { display: flex; flex-direction: column; gap: 1px; }
.stack span {
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.stack .y { color: var(--ink-3); font-size: 11.5px; }
.stack .v { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.stack .v.dim { color: var(--ink-4); font-weight: 400; }
.stack .v.hi { color: var(--up); }
.stack .v.lo { color: var(--safe); }

/* 空状态 */
.empty {
  padding: 60px 20px; text-align: center; color: var(--ink-3);
}
.empty .ill { width: 64px; height: 64px; margin: 0 auto 12px; opacity: .5; }
.empty p { margin: 6px 0; font-size: 13px; }
.empty .small { font-size: 12px; color: var(--ink-4); }

/* ==========================  分页  ========================== */
.pager {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.pager .info { font-size: 12.5px; color: var(--ink-3); }
.pager .plist { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pager .plist button {
  min-width: 28px; height: 28px; padding: 0 7px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 6px; font-family: inherit; font-size: 12.5px;
  color: var(--ink-2); cursor: pointer; transition: .15s;
}
.pager .plist button:hover:not(:disabled) { border-color: var(--brand-300); color: var(--brand); }
.pager .plist button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .plist button:disabled { opacity: .45; cursor: not-allowed; }
.pager .plist .gap { color: var(--ink-4); padding: 0 2px; }

/* ==========================  底部固定汇总条  ========================== */
.footbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  height: var(--h-foot);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 16px rgba(16, 44, 92, .07);
}
.footbar-in {
  max-width: 1680px; margin: 0 auto; height: 100%;
  padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.fb-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.fb-item b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fb-sep { width: 1px; height: 22px; background: var(--line); }
.fb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px;
  background: var(--brand-050); border: 1px solid var(--brand-100);
  border-radius: 15px; color: var(--brand); font-size: 12.5px; font-weight: 600;
}
.fb-badge b { font-variant-numeric: tabular-nums; }

/* ==========================  抽屉  ========================== */
/* 全屏遮罩：只用实色半透明，刻意不加 backdrop-filter。
   原因（已实测）：给整屏 fixed 遮罩加 backdrop-filter 后，Chromium 会把背板
   按降采样栅格化，blur(2px) 被放大成整片糊化，背景文字完全看不清；Firefox 则
   几乎不生效，两个浏览器差异极大。改用纯实色后，Chrome / Firefox / 360 表现一致。 */
.mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 400;
  background: rgba(12, 30, 62, .42);
  opacity: 0; pointer-events: none; transition: opacity .26s;
}
.mask.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 420;
  width: 520px; max-width: 94vw;
  background: var(--card);
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .3s cubic-bezier(.32, .72, .3, 1);
}
.drawer.on { transform: translateX(0); }
.drawer-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  color: #fff;
  flex-shrink: 0;
}
.drawer-hd h3 { margin: 0; font-size: 15px; font-weight: 700; }
.drawer-hd .cnt {
  background: rgba(255, 255, 255, .2); padding: 1px 8px;
  border-radius: 10px; font-size: 12px;
}
.drawer-hd .x {
  margin-left: auto; width: 28px; height: 28px; border-radius: 7px;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.drawer-hd .x:hover { background: rgba(255, 255, 255, .28); }
.drawer-bd { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-ft {
  flex-shrink: 0; padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
  background: #fafcff;
}

/* ==========================  弹窗  ========================== */
.modal {
  position: fixed; z-index: 500;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.97);
  width: 560px; max-width: 94vw;
  max-height: 88vh;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-hd {
  display: flex; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}
.modal-hd h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.modal-hd .x {
  margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.modal-hd .x:hover { background: var(--bg-2); color: var(--ink); }
.modal-bd { padding: 18px; overflow-y: auto; }
.modal-ft {
  padding: 12px 18px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* 艺体考生的成绩区（考生信息弹窗里那一块，普通类看不到）：
   头一行说明 + 五个输入框 + 只读的综合分。综合分与两个等效分同网格对齐，
   是为了让「相加」这个关系一眼可核对。 */
.arts-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px;
  padding: 9px 11px; margin-bottom: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
}
.arts-head b { font-size: 12.5px; color: var(--brand-700); flex-shrink: 0; }
.arts-head .small { font-size: 11.5px; line-height: 1.6; }

/* ==========================  Toast  ========================== */
.toasts {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh);
  font-size: 13px; color: var(--ink);
  animation: toastIn .26s ease both;
}
.toast .ic { width: 15px; height: 15px; flex-shrink: 0; }
.toast.ok .ic { color: var(--safe); }
.toast.err .ic { color: var(--up); }
.toast.info .ic { color: var(--brand); }
.toast.out { animation: toastOut .22s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ==========================  已选志愿条目  ========================== */
.pitem {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  margin-bottom: 9px;
  background: #fff;
  transition: .16s;
}
.pitem:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.pitem-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pitem-hd .idx {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 5px; background: var(--brand-050); color: var(--brand);
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.pitem-hd .nm { font-size: 13px; font-weight: 600; }
.pitem-hd .del {
  margin-left: auto; border: 0; background: transparent;
  color: var(--ink-4); cursor: pointer; font-size: 15px; line-height: 1;
  padding: 2px 4px; border-radius: 5px;
}
.pitem-hd .del:hover { color: var(--up); background: var(--up-bg); }
.pitem-meta { font-size: 11.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; padding-left: 28px; }
.pitem-meta b { color: var(--ink-2); font-weight: 600; }

/* ==========================  志愿表  ========================== */
.tblcard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: .16s;
  background: #fff;
}
.tblcard:hover { border-color: var(--brand-300); box-shadow: var(--sh); }
.tblcard-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: linear-gradient(100deg, #f6f9ff, #eef5ff);
  border-bottom: 1px solid var(--line-2);
}
.tblcard-hd .nm { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.tblcard-hd .acts { margin-left: auto; display: flex; gap: 6px; }
.tblcard-bd { padding: 10px 14px; }
.meta-grid { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12px; color: var(--ink-3); }
.meta-grid b { color: var(--ink); font-weight: 600; }
/* 专项计划组卡片里的特控线：与「投档线」同排，换个颜色免得被当成同一种线 */
.meta-grid .spec-tag b { color: var(--spec); }

/* 账号级考生额度条（额度与用量都由服务端下发，前端只渲染）
   刻意不用 flex gap 之外的特殊排版 —— 旧内核没 flex gap 时退化为紧凑排版，内容仍可读。 */
.quota-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 8px 12px;
  background: var(--brand-050);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 12px; color: var(--ink-3);
}
.quota-bar .lbl { font-weight: 700; color: var(--ink-2); }
.quota-bar .it b { color: var(--ink); font-weight: 700; }

/* 志愿顺序列表 */
.zyrow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}
.zyrow:last-child { border-bottom: 0; }
.zyrow:hover { background: #f8fbff; }
.zyrow .idx {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.zyrow .zy-nm { font-weight: 600; color: var(--ink); }
.zyrow .zy-sub { color: var(--ink-3); font-size: 11.5px; }
.zyrow .mvs { margin-left: auto; display: flex; gap: 3px; }
.zyrow .mv {
  width: 24px; height: 24px; border: 1px solid var(--line); background: #fff;
  border-radius: 5px; cursor: pointer; color: var(--ink-3);
  display: grid; place-items: center; font-size: 12px; line-height: 1;
}
.zyrow .mv:hover:not(:disabled) { border-color: var(--brand-300); color: var(--brand); }
.zyrow .mv:disabled { opacity: .35; cursor: not-allowed; }

/* ==========================  资料下载  ========================== */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumb a { color: var(--brand); }
.crumb .sp { color: var(--ink-4); }

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}
.folder {
  display: flex; align-items: center; gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  transition: .16s;
}
.folder:hover { border-color: var(--brand-300); background: var(--brand-050); transform: translateY(-1px); box-shadow: var(--sh); }
.folder svg { width: 30px; height: 30px; flex-shrink: 0; }
.folder .fn { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder .fs { font-size: 11.5px; color: var(--ink-3); }

.file-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  transition: .14s;
}
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #f8fbff; }
.file-row .fico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.fico-pdf { background: linear-gradient(140deg, #ef5350, #c62828); }
.fico-xls { background: linear-gradient(140deg, #34a853, #1b7a37); }
.fico-doc { background: linear-gradient(140deg, #4285f4, #1f5fd0); }
.fico-zip { background: linear-gradient(140deg, #9c7bd8, #6b47b8); }
.fico-img { background: linear-gradient(140deg, #22b8cf, #0b7fa8); }
.file-row .fmain { flex: 1; min-width: 0; }
.file-row .fname { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fmeta { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 12px; }

/* ==========================  工具类  ========================== */
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.tc { text-align: center; }
.strong { font-weight: 700; }
.brandc { color: var(--brand); }
.divider { height: 1px; background: var(--line-2); margin: 12px 0; }

.legend { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

.kv { display: flex; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.kv .k { color: var(--ink-3); flex-shrink: 0; min-width: 66px; }
.kv .v { color: var(--ink); }

/* 响应式 */
@media (max-width: 1180px) {
  .hd-in { padding: 0 14px; gap: 14px; }
  .nav a { padding: 7px 10px; font-size: 12.5px; }
  .wrap { padding: 14px 14px 84px; }
  .ks-side { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hd-pill span { display: none; }
  .search-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .search-grid .span2, .search-grid .span3 { grid-column: span 1; }
  /* 窄屏下两个搜索字段一行只有 140~160px，多选面板固定 min-width 会顶出视口右侧
     （实测 390px 视口下 .msel-pop 右边界 408 > 380）。这里让它随字段等宽。 */
  .msel-pop { width: 100%; min-width: 0; max-width: none; }
  .msel-bar { padding-left: 0; padding-right: 0; }
  .msel-bar button { padding: 0 5px; font-size: 11.5px; }
  .msel-n { display: none; }
  /* 同理：悬浮说明浮层在手机宽度下不能再占 380px，否则左右都会出界 */
  .mtip-pop { max-width: 92vw; }
}

@media print {
  .hd, .footbar, .notice, .mask, .drawer, .modal, .toasts, .pager { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
  .tbl-scroll { max-height: none; overflow: visible; }
}

/* ==========================================================================
   前台补充样式（用户菜单 / 登录页 / 查询页扩展）
   ========================================================================== */

/* ---------- 顶栏用户菜单 ---------- */
.hd-menu { position: relative; }
.hd-pop {
  position: absolute; top: 44px; right: 0; z-index: 320;
  min-width: 214px; padding: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: .18s;
}
.hd-pop.on { opacity: 1; pointer-events: auto; transform: none; }
.hd-pop-hd { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.hd-pop-hd b { display: block; font-size: 13px; }
.hd-pop-hd span { display: block; font-size: 11.5px; }
.hd-pop a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 12.5px; color: var(--ink-2);
}
.hd-pop a:hover { background: var(--brand-050); color: var(--brand); }
.hd-pop a .ic { width: 14px; height: 14px; }
.btn-login { background: rgba(255,255,255,.92); color: var(--brand-700); border-color: transparent; font-weight: 600; }
.btn-login:hover { background: #fff; color: var(--brand-700); }

/* ---------- 登录 / 注册页 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--bg);
}
.auth-left {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--brand-900) 0%, var(--brand-700) 46%, var(--brand) 100%);
  color: #fff; padding: 54px 56px;
  display: flex; flex-direction: column;
}
.auth-left::after {
  content: ""; position: absolute; right: -140px; bottom: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 62%);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
.auth-brand b { font-size: 20px; letter-spacing: .5px; display: block; }
.auth-brand span { font-size: 11px; letter-spacing: 2px; opacity: .75; text-transform: uppercase; }
.auth-h1 { font-size: 30px; line-height: 1.45; margin: 0 0 14px; font-weight: 700; }
.auth-h1 em { font-style: normal; color: #9dc4ff; }
.auth-desc { font-size: 13.5px; line-height: 2; opacity: .84; margin: 0 0 34px; max-width: 460px; }
.auth-feats { margin-top: auto; display: grid; gap: 14px; max-width: 480px; }
.auth-feat { display: flex; gap: 12px; align-items: flex-start; }
.auth-feat .ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center;
}
.auth-feat .ico svg { width: 17px; height: 17px; }
.auth-feat b { display: block; font-size: 13px; }
.auth-feat span { font-size: 11.5px; opacity: .78; }

.auth-right { display: grid; place-items: center; padding: 34px 24px; }
.auth-card {
  width: 100%; max-width: 396px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh);
  padding: 30px 30px 26px;
}
.auth-card h2 { margin: 0 0 4px; font-size: 21px; }
.auth-card .sub { color: var(--ink-3); font-size: 12.5px; margin-bottom: 22px; }
.auth-tabs { margin-bottom: 20px; }
.auth-tabs .seg { width: 100%; }
.auth-tabs .seg button { flex: 1; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; font-weight: 500; }
.auth-field .inp { height: 40px; font-size: 13.5px; }
.auth-err {
  display: none; margin-bottom: 14px; padding: 9px 12px;
  background: var(--up-bg); border: 1px solid var(--up-line);
  border-radius: var(--r-sm); color: var(--up); font-size: 12.5px;
}
.auth-err.on { display: block; }
.auth-back { display: block; text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 940px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* ---------- 查询页扩展 ---------- */
.sum-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sum-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; border: 1px solid;
}
.sum-chip i { font-style: normal; opacity: .75; font-weight: 400; }
.view-toggle { display: flex; gap: 6px; }
.major-cell { display: flex; flex-direction: column; gap: 3px; min-width: 150px; }
.major-name { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.major-code { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 4px; background: #eef2f8; color: #4a6fa5; font-size: 11px; font-weight: 600; line-height: 16px; text-align: center; flex: none; }
.major-meta { font-size: 11.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 3px 12px; }

/* ---------- 专业备注摘要 ----------
   备注最长 200 字（源表按 Excel 列宽截断过），铺开会把结果表撑得很高，
   所以列表里只给一行摘要，超出省略，悬浮看浮层里的全文。
   刻意不用 nowrap + text-overflow：那会让单元格的最小内容宽度等于整段备注，
   自动布局的表格会被整体撑宽、出现横向滚动条。改为「允许折行 + 只显示一行」——
   中文能逐字断行 ⇒ 最小内容宽度仍是一个字，列宽不受备注长短影响；
   旧内核不认 -webkit-line-clamp 时由 max-height 兜住，少一个省略号而已。 */
.major-note {
  margin-top: 1px;
  font-size: 11.5px; line-height: 1.55; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 1.6em;
  word-break: break-all; word-wrap: break-word;
}
.major-note b { color: var(--brand-700); font-weight: 600; margin-right: 5px; }
/* 已选抽屉里的备注行要与专业名对齐（名称左侧有 28px 的序号缩进） */
.pitem-note { padding-left: 28px; }

/* ---------- 专业全称 / 备注 悬浮说明 ----------
   数据集里专业全称最长 120 字、备注最长 200 字，列里放不下：
   列表里显示简称 + 一行备注摘要（.major-note），完整内容走悬浮浮层。
   带 .mtip 的名称用虚线下划线 + help 光标提示「还有内容」，浮层挂在 body 上
   （结果表在 overflow:auto 的 .tbl-scroll 里，挂在单元格内会被裁掉）。 */
.mtip { cursor: help; }
/* 虚线下划线只加在直接包住文字的元素上（容器加会让整列出现一条横线） */
.mtip-nm { border-bottom: 1px dashed var(--brand-300); }
.mtip-pop {
  display: none;
  position: fixed; left: 0; top: 0; z-index: 600;
  max-width: 380px;
  padding: 10px 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  font-size: 12px; line-height: 1.75;
  /* 专业全称是一长串没有空格的括号串，不强制断行会把浮层撑出屏幕 */
  word-break: break-all; word-wrap: break-word;
  /* 鼠标穿过浮层：否则移上去会盖住触发元素，触发 mouseout 后又收起，来回抖动 */
  pointer-events: none;
}
.mtip-pop.on { display: block; }
.mtip-row + .mtip-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.mtip-row b { display: block; font-size: 11px; font-weight: 600; color: var(--brand-700); margin-bottom: 2px; }
.mtip-txt { display: block; color: var(--ink); }
.grp .sc-sub.hit { color: var(--brand); font-weight: 600; }
.num-cell { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--ink); }
.num-cell.dim { color: var(--ink-4); font-weight: 400; }
.plan-cell { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.plan-cell b { font-size: 13.5px; }
.act-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pick-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--brand-300); background: var(--brand-050); color: var(--brand);
  font-size: 12px; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.pick-btn:hover { background: var(--brand-100); }
.pick-btn.done { border-color: var(--line); background: #f5f7fb; color: var(--ink-4); cursor: default; }

/* ---------- 专业明细弹窗（近三年录取分 + 招生计划） ---------- */
.pk-modal { width: 900px; max-width: 94vw; }
.pk-scroll { max-height: 52vh; min-height: 200px; padding: 0; }
.pk-tbl th, .pk-tbl td { vertical-align: top; }
.pk-tbl td.c { padding-top: 11px; }
.pk-tbl .major-name { font-weight: 600; }
.pk-tbl tbody tr.on,
.pk-tbl tbody tr.on:hover { background: var(--brand-050); }
/* 别把高亮画在 <tr> 上：表格 border-collapse:collapse 时浏览器不绘制 tr 的 box-shadow，
   真机看不见，而测试只断言 class 存在 —— 正好抓不到。落到首个单元格上才渲染。 */
.pk-tbl tbody tr.focus > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.pk-tbl tbody tr.focus .major-name { color: var(--brand); }
.pk-ck {
  width: 14px; height: 14px; margin: 3px 0 0;
  accent-color: var(--brand); cursor: pointer;
}
.pk-ck:disabled { cursor: default; }
.pk-count { margin-right: auto; }
.chips-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips-row > label { font-size: 12px; color: var(--ink-3); width: 62px; flex-shrink: 0; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.switch input { width: 14px; height: 14px; accent-color: var(--brand); }

/* ---------- 考生信息条 ---------- */
.ks-select { height: 30px; }

/* ---------- 方案 / 志愿表 ---------- */
.plan-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
@media (max-width: 1080px) { .plan-wrap { grid-template-columns: 1fr; } }
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-item {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; cursor: pointer; transition: .16s;
}
.plan-item:hover { border-color: var(--brand-300); background: var(--brand-050); }
.plan-item.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.1); }
.plan-item .pn { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.plan-item .pm { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.zigzag { display: flex; gap: 4px; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 7px; background: var(--line-2); }
.zigzag i { display: block; height: 100%; }

/* ---------- 资料下载 ---------- */
.folder.on { border-color: var(--brand); background: var(--brand-050); }
.folder .fcount { font-size: 11.5px; color: var(--ink-3); }
.dl-btn { white-space: nowrap; }

/* ---------- 通用表格空行 ---------- */
.tbl td .tbl-empty { padding: 0; }

/* ---------- 打印 ---------- */
@media print {
  .hd-pop, .hd-menu, .footbar, .notice { display: none !important; }
}


/* ==== COMPAT-BEGIN 浏览器兼容层 ==== */
/* 本块由兼容性改造脚本生成初版，之后按手工维护（新增 flex 容器时请同步补上
   对应的 xf-no-flexgap 兜底规则）。配合 assets/js/compat.js 使用。 */
/* 说明：本块由 CSS 兼容改造脚本生成，配合 assets/js/compat.js 使用。
   compat.js 会在 <html> 上打 xf-no-backdrop / xf-no-flexgap 两个降级类，
   仅在对应能力缺失时才生效，现代浏览器不会受影响。 */

/* ---------- 1. 表单控件字体继承 / 移动端字号 ---------- */
/* Firefox 默认给表单控件套用系统字体，这里统一继承页面字体 */
button, input, select, textarea { font-family: inherit; }
html { -webkit-text-size-adjust: 100%; }
body { -moz-osx-font-smoothing: grayscale; }

/* ---------- 2. 无 backdrop-filter 时的实色兜底 ---------- */
/* Firefox 103 之前、Chromium 76 之前不认 backdrop-filter，
   毛玻璃会退化成半透明，文字容易糊在背景上，这里提高不透明度。 */
html.xf-no-backdrop .footbar { background: #ffffff; }
html.xf-no-backdrop .hd-pop { background: #ffffff; }

/* ---------- 3. 无 flex gap 时的外边距兜底 ---------- */
/* Chromium 84 之前、Firefox 63 之前不支持 flex 容器的 gap，
   下面按原样式里的 gap 值推导出等价的相邻兄弟外边距。 */
html.xf-no-flexgap .hd-in > * + * { margin-left: 26px; }
html.xf-no-flexgap .brand > * + * { margin-left: 10px; }
html.xf-no-flexgap .nav > * + * { margin-left: 4px; }
html.xf-no-flexgap .hd-right > * + * { margin-left: 12px; }
html.xf-no-flexgap .hd-pill > * + * { margin-left: 7px; }
html.xf-no-flexgap .notice > * + * { margin-left: 12px; }
html.xf-no-flexgap .notice-tag > * + * { margin-left: 5px; }
html.xf-no-flexgap .card-hd > * + * { margin-left: 10px; }
html.xf-no-flexgap .card-hd h3 > * + * { margin-left: 8px; }
html.xf-no-flexgap .card-hd .hd-actions > * + * { margin-left: 8px; }
html.xf-no-flexgap .btn > * + * { margin-left: 6px; }
html.xf-no-flexgap .field > * + * { margin-top: 5px; }
html.xf-no-flexgap .arts-head > * + * { margin-left: 10px; }
html.xf-no-flexgap .chips > * + * { margin-left: 6px; margin-top: 6px; }
html.xf-no-flexgap .chip > * + * { margin-left: 5px; }
html.xf-no-flexgap .seg > * + * { margin-left: 2px; }
html.xf-no-flexgap .msel-bar > * + * { margin-left: 4px; }
html.xf-no-flexgap .msel-it > * + * { margin-left: 7px; }
html.xf-no-flexgap .expand-btn > * + * { margin-left: 6px; }
html.xf-no-flexgap .ks-main > * + * { margin-left: 22px; margin-top: 22px; }
html.xf-no-flexgap .ks-val > * + * { margin-left: 4px; }
html.xf-no-flexgap .ks-side > * + * { margin-left: 8px; }
html.xf-no-flexgap .diff-mini > * + * { margin-left: 14px; }
html.xf-no-flexgap .sc-cell > * + * { margin-top: 3px; }
html.xf-no-flexgap .sc-name > * + * { margin-left: 6px; }
html.xf-no-flexgap .sc-tags > * + * { margin-left: 4px; margin-top: 4px; }
html.xf-no-flexgap .sc-links > * + * { margin-left: 10px; margin-top: 4px; }
html.xf-no-flexgap .sc-links a > * + * { margin-left: 3px; }
html.xf-no-flexgap .ref > * + * { margin-top: 2px; }
html.xf-no-flexgap .grp > * + * { margin-top: 3px; }
html.xf-no-flexgap .grp-pick > * + * { margin-left: 3px; }
html.xf-no-flexgap .stack > * + * { margin-top: 1px; }
html.xf-no-flexgap .pager > * + * { margin-left: 10px; margin-top: 10px; }
html.xf-no-flexgap .pager .plist > * + * { margin-left: 4px; }
html.xf-no-flexgap .footbar-in > * + * { margin-left: 16px; }
html.xf-no-flexgap .fb-item > * + * { margin-left: 7px; }
html.xf-no-flexgap .fb-right > * + * { margin-left: 10px; }
html.xf-no-flexgap .fb-badge > * + * { margin-left: 5px; }
html.xf-no-flexgap .drawer-hd > * + * { margin-left: 10px; }
html.xf-no-flexgap .drawer-ft > * + * { margin-left: 10px; }
html.xf-no-flexgap .modal-ft > * + * { margin-left: 10px; }
html.xf-no-flexgap .toasts > * + * { margin-top: 8px; }
html.xf-no-flexgap .toast > * + * { margin-left: 8px; }
html.xf-no-flexgap .pitem-hd > * + * { margin-left: 8px; }
html.xf-no-flexgap .pitem-meta > * + * { margin-left: 12px; margin-top: 4px; }
html.xf-no-flexgap .tblcard-hd > * + * { margin-left: 10px; }
html.xf-no-flexgap .tblcard-hd .acts > * + * { margin-left: 6px; }
html.xf-no-flexgap .meta-grid > * + * { margin-left: 22px; margin-top: 6px; }
html.xf-no-flexgap .zyrow > * + * { margin-left: 10px; }
html.xf-no-flexgap .zyrow .mvs > * + * { margin-left: 3px; }
html.xf-no-flexgap .crumb > * + * { margin-left: 8px; margin-top: 8px; }
html.xf-no-flexgap .folder > * + * { margin-left: 11px; }
html.xf-no-flexgap .file-row > * + * { margin-left: 12px; }
html.xf-no-flexgap .file-row .fmeta > * + * { margin-left: 12px; }
html.xf-no-flexgap .legend > * + * { margin-left: 14px; margin-top: 14px; }
html.xf-no-flexgap .kv > * + * { margin-left: 8px; }
html.xf-no-flexgap .hd-pop a > * + * { margin-left: 8px; }
html.xf-no-flexgap .auth-brand > * + * { margin-left: 12px; }
html.xf-no-flexgap .auth-feat > * + * { margin-left: 12px; }
html.xf-no-flexgap .sum-chips > * + * { margin-left: 8px; margin-top: 8px; }
html.xf-no-flexgap .sum-chip > * + * { margin-left: 5px; }
html.xf-no-flexgap .view-toggle > * + * { margin-left: 6px; }
html.xf-no-flexgap .major-cell > * + * { margin-top: 3px; }
html.xf-no-flexgap .major-name > * + * { margin-left: 6px; }
html.xf-no-flexgap .major-meta > * + * { margin-left: 12px; margin-top: 3px; }
html.xf-no-flexgap .act-links > * + * { margin-left: 6px; margin-top: 6px; }
html.xf-no-flexgap .pick-btn > * + * { margin-left: 4px; }
html.xf-no-flexgap .chips-row > * + * { margin-left: 10px; margin-top: 10px; }
html.xf-no-flexgap .switch > * + * { margin-left: 6px; }
html.xf-no-flexgap .plan-list > * + * { margin-top: 8px; }
html.xf-no-flexgap .plan-item .pn > * + * { margin-left: 6px; }
html.xf-no-flexgap .plan-item .pm > * + * { margin-left: 10px; margin-top: 10px; }
html.xf-no-flexgap .zigzag > * + * { margin-left: 4px; }

/* ---------- 4. 数字输入框上下箭头 ---------- */
/* 分数、计划数这类字段不需要步进箭头，三端统一隐藏：
   Blink 侧用伪元素关闭，Firefox 侧用 appearance: textfield */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none; appearance: none; margin: 0;
}
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- 5. accent-color 降级（Chrome < 93 / Firefox < 92） ---------- */
/* 旧内核不认 accent-color，勾选框会退回系统色；
   这里用 background-image 自绘（input 上不能用 ::after 伪元素）。 */
@supports not (accent-color: red) {
  input[type=checkbox] {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    width: 14px; height: 14px; margin: 0;
    border: 1px solid var(--line); border-radius: 3px;
    background-color: #fff; background-repeat: no-repeat;
    background-position: center; background-size: 11px;
    vertical-align: -2px; cursor: pointer;
  }
  input[type=checkbox]:checked {
    background-color: var(--brand); border-color: var(--brand);
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.7 8.6 9.6 3.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
}

/* ---------- 6. Firefox 专属适配 ---------- */
/* 上面的 ::-webkit-scrollbar 只对 Blink/WebKit 生效，
   Firefox 走 scrollbar-width / scrollbar-color。
   @supports (-moz-appearance:none) 是 Firefox 独有的探测条件，
   避免 Chrome 121+ 也认 scrollbar-width 后与 webkit 样式打架。 */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: #c9d7ea transparent; }
  .tbl-wrap, .drawer-bd, .modal-bd, .table-scroll { scrollbar-width: thin; scrollbar-color: #c9d7ea transparent; }
}

/* ---------- 7. 极端情况下 sticky 失效的兜底 ---------- */
/* 部分国产内核会忽略 position:sticky，此时表头改成普通静态定位，
   内容仍可读，只是失去吸顶效果。 */
@supports not ((position: -webkit-sticky) or (position: sticky)) {
  .hd { position: relative; }
  table.tbl thead th { position: static; }
  table.tbl .freeze-1, table.tbl .freeze-2 { position: static; }
}

/* ==== COMPAT-END ==== */
