/* =========================================================
   寰球学涯 GLOBALPATH — 样式表
   设计基调：学术深蓝 + 暖纸白 + 细线分隔（编辑部气质）
   ========================================================= */

:root {
  --navy: #1f4e79;
  --navy-600: #265d8e;
  --navy-700: #173d60;
  --navy-900: #0f2a42;
  --blue-soft: #e9f0f7;
  --blue-soft-2: #f3f7fb;
  --ink: #101b26;
  --body: #3d4c5b;
  --muted: #6b7b8b;
  --line: #dce3eb;
  --line-soft: #e9eef4;
  --paper: #ffffff;
  --sand: #f7f5f0;
  --gold: #ab7f31;
  --green: #2c7a5b;
  --red: #b04a34;

  --serif: "Source Serif 4", "Noto Serif SC", Georgia, "Songti SC", "STSong", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --max: 1180px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 38, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(16, 27, 38, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(15, 42, 66, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  padding-bottom: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-cn { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: 0.02em; }
.brand-en { font-size: 9px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 12px;
  font-size: 14px;
  color: #445565;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--blue-soft-2); color: var(--navy); }
.nav-links a.active { color: var(--navy); background: var(--blue-soft); font-weight: 600; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  padding: 0 10px;
  height: 34px;
  width: 220px;
  border-radius: var(--radius);
}
.nav-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }
.nav-search svg { flex-shrink: 0; opacity: 0.5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--blue-soft-2); border-color: var(--navy); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(31, 78, 121, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 78, 121, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 10%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 62px 0 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--navy); }
.hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--navy);
  border-bottom: 3px solid rgba(31, 78, 121, 0.18);
  padding-bottom: 2px;
}
.hero-lead { font-size: 16px; color: #4a5a69; max-width: 46ch; }

.search-shell {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  position: relative;
  z-index: 20;
}
.search-tabs {
  display: flex; gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.search-tab {
  border: 0; background: transparent;
  padding: 8px 14px 10px;
  font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.search-tab.on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.search-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.search-row svg { opacity: 0.45; flex-shrink: 0; }
.search-row input {
  flex: 1; border: 0; outline: none; font-size: 16px; background: transparent;
  min-width: 0;
}
.search-row input::placeholder { color: #9aa8b6; }
.search-row .btn { height: 40px; }

.search-suggest {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  z-index: 40;
}
.search-suggest.on { display: block; }
.sg-group-label {
  padding: 9px 16px 6px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  background: #fafbfc;
  border-bottom: 1px solid var(--line-soft);
}
.sg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.sg-item:last-child { border-bottom: 0; }
.sg-item:hover, .sg-item.sel { background: var(--blue-soft-2); }
.sg-item .t { font-size: 14px; color: var(--ink); font-weight: 500; }
.sg-item .s { font-size: 12px; color: var(--muted); margin-left: auto; }
.sg-empty { padding: 18px 16px; font-size: 13px; color: var(--muted); }

.hero-hint { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.hero-hint .lb { font-size: 12px; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  font-size: 12px; color: #4d5e6e;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--navy); opacity: 0.5; }

/* Hero 右侧：四榜预览卡 */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.hc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
}
.hc-head .l { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.hc-head .r { font-size: 11px; opacity: 0.65; font-family: var(--mono); }
.hc-body { padding: 18px; }
.hc-uni { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.hc-uni .zh { font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 600; }
.hc-uni .en { font-size: 11px; color: var(--muted); }
.hc-meta { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.hc-rows { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.hc-row {
  display: grid; grid-template-columns: 1fr 58px 92px;
  align-items: center; gap: 10px;
  background: #fff; padding: 9px 12px;
}
.hc-row .nm { font-size: 12.5px; color: #4a5a69; }
.hc-row .nm b { color: var(--ink); font-weight: 600; }
.hc-row .rk { font-family: var(--mono); font-size: 15px; text-align: right; color: var(--navy); font-weight: 600; }
.hc-bar { height: 5px; background: #eef2f6; position: relative; }
.hc-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); opacity: 0.75; }
.hc-foot {
  margin-top: 14px; padding: 11px 12px;
  background: var(--sand);
  font-size: 12px; color: #6a5c43;
  display: flex; gap: 8px; align-items: flex-start;
  border-left: 2px solid var(--gold);
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 62px 0; border-bottom: 1px solid var(--line-soft); }
.section.sand { background: var(--sand); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: 27px; }
.sec-head .kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); font-weight: 600; margin-bottom: 8px;
}
.sec-head p { font-size: 14px; color: var(--muted); max-width: 52ch; margin-top: 8px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}
.stat-cell { padding: 22px 24px; border-right: 1px solid var(--line-soft); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .n { font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1; }
.stat-cell .n small { font-size: 13px; color: var(--muted); margin-left: 3px; font-family: var(--sans); }
.stat-cell .l { font-size: 12px; color: var(--muted); margin-top: 7px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px 24px 28px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: block;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c9d6e3; }
.feature .idx { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.1em; }
.feature h3 { font-size: 19px; margin: 12px 0 9px; }
.feature p { font-size: 13.5px; color: #55656f; }
.feature .go { margin-top: 18px; font-size: 12.5px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- 表格 ---------------- */
.table-wrap { border: 1px solid var(--line); background: #fff; overflow-x: auto; }
table.rank { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
table.rank thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6d7d;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  z-index: 5;
}
table.rank thead th:hover { color: var(--navy); }
table.rank thead th .arrow { font-size: 9px; opacity: 0.6; margin-left: 3px; }
table.rank thead th.on { color: var(--navy); background: var(--blue-soft); }
table.rank tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.rank tbody tr:hover { background: #f9fbfd; }
table.rank tbody tr { cursor: pointer; }
.u-cell { display: flex; align-items: center; gap: 12px; }
.u-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--blue-soft); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; font-weight: 600;
  border-radius: 2px;
}
.u-name { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.3; }
.u-name span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 1px; letter-spacing: 0.01em; }
.rk-num { font-family: var(--mono); font-size: 14px; color: #33475b; }
.rk-num.top { color: var(--navy); font-weight: 600; }
.rk-num.na { color: #b8c3cd; }
.tag-country {
  display: inline-block; font-size: 11px; color: #4d5e6e;
  background: #f1f5f9; border: 1px solid #e4ebf2;
  padding: 2px 8px; border-radius: 2px; white-space: nowrap;
}
.spread { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-family: var(--mono); }
.spread.wide { color: var(--red); }
.spread.tight { color: var(--green); }
.cmp-box { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }

/* 工具条 */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff;
  height: 38px; padding: 0 12px; border-radius: var(--radius);
  min-width: 240px;
}
.field input, .field select { border: 0; outline: none; background: transparent; width: 100%; font-size: 13.5px; }
.field select { cursor: pointer; }
.field-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.seg button {
  border: 0; background: transparent; padding: 0 13px; height: 36px;
  font-size: 13px; color: #52616f; border-right: 1px solid var(--line-soft);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: #fff; }
.result-meta { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.result-meta b { color: var(--ink); font-family: var(--mono); }

/* ---------------- 院校详情 ---------------- */
.detail-hero {
  background: linear-gradient(150deg, #123c5d 0%, #1f4e79 55%, #2a6396 100%);
  color: #fff; padding: 46px 0 40px;
  position: relative; overflow: hidden;
}
.detail-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
}
.detail-hero .crumb { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.detail-hero .crumb a { color: rgba(255, 255, 255, 0.85); }
.detail-hero h1 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; }
.detail-hero .en-name { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin-top: 8px; letter-spacing: 0.02em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail-tags .t {
  font-size: 12px; padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px; color: rgba(255, 255, 255, 0.9);
}
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 42px 0 64px; align-items: start; }
.card {
  border: 1px solid var(--line); background: #fff; padding: 26px 28px;
  border-radius: var(--radius);
}
.card + .card { margin-top: 18px; }
.card h3 { font-size: 17px; margin-bottom: 4px; }
.card .sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.card h4 { font-size: 14px; margin: 18px 0 7px; }
.prose { font-size: 14px; color: #46565f; line-height: 1.75; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; color: var(--ink); }

.rank-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rank-card {
  border: 1px solid var(--line); padding: 14px 12px; background: #fbfcfd;
}
.rank-card .lb { font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.rank-card .v { font-family: var(--serif); font-size: 26px; color: var(--navy); line-height: 1.1; margin-top: 6px; }
.rank-card .v small { font-size: 12px; color: var(--muted); font-family: var(--sans); }
.rank-card .d { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.campus-list { display: flex; flex-direction: column; gap: 0; }
.campus {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
}
.campus:last-child { border-bottom: 0; }
.campus .nm { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.campus .loc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.campus .note { font-size: 13px; color: #4e5e68; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 12px; font-size: 12.5px; }
.bar-track { height: 6px; background: #eef2f6; display: flex; gap: 3px; }
.bar-track i { flex: 1; background: #dfe7ef; }
.bar-track i.on { background: var(--navy); }

.scholar-list { display: flex; flex-wrap: wrap; gap: 8px; }
.scholar {
  font-size: 12.5px; color: #40505f; background: var(--blue-soft-2);
  border: 1px solid #e2eaf3; padding: 5px 10px; border-radius: 2px;
}

.college { border-top: 1px solid var(--line-soft); padding: 13px 0; }
.college:first-of-type { border-top: 0; }
.college .cn { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.college .ce { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.major-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.major-tag {
  font-size: 11.5px; color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid transparent;
  padding: 3px 9px; border-radius: 2px;
}
.major-tag:hover { border-color: var(--navy); }

.side-card { position: sticky; top: 86px; }
.side-card .card { padding: 22px; }
.side-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.side-rank { display: flex; flex-direction: column; gap: 0; }
.side-rank .r {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.side-rank .r:last-child { border-bottom: 0; }
.side-rank .r b { font-family: var(--mono); font-size: 16px; color: var(--navy); }
.side-rank .r span.k { color: var(--muted); font-size: 12.5px; }

/* ---------------- 专业页 ---------------- */
.major-picker { display: grid; grid-template-columns: 320px 1fr; gap: 32px; padding: 40px 0 64px; align-items: start; }
.major-list { border: 1px solid var(--line); background: #fff; max-height: 620px; overflow-y: auto; }
.major-cat { padding: 12px 16px 6px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: #fafbfc; position: sticky; top: 0; border-bottom: 1px solid var(--line-soft); }
.major-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; font-size: 13.5px; color: #46565f;
}
.major-item:hover { background: var(--blue-soft-2); }
.major-item.on { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.major-item .en { font-size: 10.5px; color: var(--muted); margin-left: auto; text-align: right; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  border: 1px solid var(--line); background: #fff;
  height: 32px; padding: 0 13px; border-radius: 20px;
  font-size: 12.5px; color: #4d5e6e;
}
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.major-uni {
  display: grid; grid-template-columns: 34px 1fr 120px 190px 92px;
  align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  background: #fff; cursor: pointer;
}
.major-uni:hover { background: #f9fbfd; }
.major-uni .idx { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.major-uni .nm { font-size: 14px; color: var(--ink); font-weight: 500; }
.major-uni .nm span { font-size: 10.5px; color: var(--muted); display: block; font-weight: 400; }
.major-uni .rk4 { display: flex; gap: 9px; font-family: var(--mono); font-size: 11.5px; color: #6a7a88; }
.major-uni .rk4 i { font-style: normal; }
.major-uni .rk4 b { color: var(--navy); font-weight: 600; }
.major-uni .lk { font-size: 12px; text-align: right; white-space: nowrap; }

.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.portal {
  border: 1px solid var(--line); background: #fff; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.portal:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.portal .c { font-size: 13px; font-weight: 600; color: var(--ink); }
.portal .u { font-size: 11px; color: var(--muted); line-height: 1.5; }
.portal .a { font-size: 11.5px; color: var(--navy); margin-top: auto; }

/* ---------------- 就业薪资 ---------------- */
.salary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.salary-card { border: 1px solid var(--line); background: #fff; padding: 18px; }
.salary-card .m { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.salary-card .amt { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 8px 0 2px; line-height: 1.2; }
.salary-card .cur { font-size: 11px; color: var(--muted); }
.salary-card .src { font-size: 11px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.badge-official {
  font-size: 9.5px; letter-spacing: 0.06em; color: var(--green);
  border: 1px solid #cfe3d9; background: #f2f8f5; padding: 1px 6px; border-radius: 2px;
}
.career-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.career-box { border: 1px solid var(--line); background: #fff; padding: 20px 22px; }
.career-box h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.career-box li {
  display: flex; gap: 9px; padding: 7px 0; font-size: 13.5px; color: #44545f;
  border-bottom: 1px dashed var(--line-soft);
}
.career-box li:last-child { border-bottom: 0; }
.career-box li .n { font-family: var(--mono); font-size: 11px; color: #a8b5c1; }

/* ---------------- 数据页 ---------------- */
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.src-card { border: 1px solid var(--line); background: #fff; padding: 18px 20px; }
.src-card .t { font-size: 14px; color: var(--ink); font-weight: 600; }
.src-card .e { font-size: 11px; color: var(--muted); margin-top: 2px; }
.src-card .n { font-size: 12.5px; color: #53636f; margin-top: 9px; line-height: 1.6; }
.src-card .u { font-size: 11.5px; margin-top: 10px; word-break: break-all; }

.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--gold); padding-top: 2px;
}
.step h4 { font-family: var(--sans); font-size: 13.5px; margin: 0 0 4px; color: var(--ink); }
.step p { font-size: 13px; color: #55656f; }
code.inline { font-family: var(--mono); font-size: 12px; background: #f3f6f9; padding: 1px 5px; border-radius: 2px; color: #2c4a63; }

.notice {
  border-left: 3px solid var(--gold); background: #fdfaf3;
  padding: 14px 18px; font-size: 13px; color: #6a5a3d; line-height: 1.7;
}
.notice.warn { border-left-color: var(--red); background: #fdf6f4; color: #7a4a3d; }

/* ---------------- 对比抽屉 ---------------- */
.cmp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy-900); color: #fff;
  padding: 12px 0;
  transform: translateY(110%); transition: transform 0.25s ease;
  box-shadow: 0 -10px 40px -18px rgba(0, 0, 0, 0.5);
}
.cmp-bar.on { transform: translateY(0); }
.cmp-bar .wrap { display: flex; align-items: center; gap: 14px; }
.cmp-items { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 8px 5px 12px; font-size: 12.5px; border-radius: 2px;
}
.cmp-chip button { border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1; padding: 0 2px; }
.cmp-chip button:hover { color: #fff; }
.cmp-bar .act { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.cmp-bar .hint { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #eef3f8; color: var(--navy); }

.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 22, 33, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; width: min(980px, 100%); max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.modal-head h3 { font-size: 18px; }
.modal-head button { border: 0; background: transparent; font-size: 22px; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px 24px 28px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmp th, table.cmp td { border: 1px solid var(--line-soft); padding: 10px 12px; text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; color: var(--muted); font-weight: 400; width: 130px; }
table.cmp thead th { background: #f7fafc; font-size: 13px; color: var(--ink); }
table.cmp td.best { background: #f2f8f5; color: var(--green); font-weight: 600; }
table.cmp td.worst { background: #fdf6f4; color: var(--red); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.66); padding: 46px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand-cn { color: #fff; }
.site-footer .brand-en { color: rgba(255, 255, 255, 0.4); }
.site-footer p { font-size: 12.5px; line-height: 1.75; }
.footer-col h5 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); margin: 0 0 12px; font-weight: 500;
}
.footer-col a { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11.5px; color: rgba(255, 255, 255, 0.42);
}

/* 权威出处：页脚外链区 */
.footer-refs {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.footer-refs-t {
  font-size: 11px; letter-spacing: .06em; color: rgba(255, 255, 255, 0.38);
  margin-right: 4px;
}
.footer-refs a {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 11.5px; color: rgba(255, 255, 255, 0.62);
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color .15s, border-color .15s, background .15s;
}
.footer-refs a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }
.footer-refs a em { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, 0.34); }

/* ---------------- 杂项 ---------------- */
.empty {
  padding: 56px 24px; text-align: center; color: var(--muted); font-size: 13.5px;
}
.breadcrumb { font-size: 12px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: #52616f; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-size: 13px; }
.divider { height: 1px; background: var(--line-soft); margin: 26px 0; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 40px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .salary-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .major-picker { grid-template-columns: 1fr; }
  .major-list { max-height: 320px; }
  .src-grid { grid-template-columns: 1fr; }
  .nav-search { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 12px; height: 60px; }
  .nav-links { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .feature-grid { grid-template-columns: 1fr; }
  .salary-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .rank-cards { grid-template-columns: 1fr 1fr; }
  .career-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .campus { grid-template-columns: 1fr; gap: 4px; }
  .major-uni { grid-template-columns: 26px 1fr 84px; }
  .major-uni .rk4, .major-uni .lk { display: none; }
  .section { padding: 44px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 30px; }

  table.rank { font-size: 12.5px; }
  .cmp-bar .hint { display: none; }
}
