﻿/* =========================================================
 * 华北理工大学 · 新生入学指南 — 样式
 * 移动优先 · 现代简约 · 高级感
 * ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f4f6fb;
  --bg-soft: #eaeef7;
  --card: #ffffff;
  --card-2: #f7f8fc;
  --ink: #14213d;
  --ink-2: #4d5a74;
  --ink-3: #8a94a8;
  --line: rgba(20, 33, 61, .08);
  --line-strong: rgba(20, 33, 61, .14);
  --primary: #1d3a8f;
  --primary-2: #3b6ef6;
  --primary-soft: rgba(59, 110, 246, .1);
  --accent: #c9a24b;
  --accent-soft: rgba(201, 162, 75, .12);
  --green: #0e9f6e;
  --red: #e5484d;
  --gold: #b7791f;
  --grad-hero: linear-gradient(165deg, rgba(10, 22, 48, .55) 0%, rgba(16, 34, 78, .78) 55%, rgba(23, 58, 143, .88) 100%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .04);
  --shadow-md: 0 10px 30px -8px rgba(16, 24, 40, .14);
  --shadow-lg: 0 24px 60px -12px rgba(16, 24, 40, .22);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --maxw: 700px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --topbar-h: 54px;
  --bottombar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f1729;
  --card: #121b30;
  --card-2: #17213a;
  --ink: #e9eefb;
  --ink-2: #a7b1c9;
  --ink-3: #6b7690;
  --line: rgba(233, 238, 251, .09);
  --line-strong: rgba(233, 238, 251, .16);
  --primary-soft: rgba(96, 140, 255, .16);
  --accent-soft: rgba(220, 180, 90, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .6);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }

.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--bottombar-h) + var(--safe-b) + 16px);
  position: relative;
}
.section { padding: 0 18px; }
.section + .section { margin-top: 26px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--primary-2);
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-2), transparent);
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 2px 14px;
}
.section-title h2 { font-size: 19px; letter-spacing: .02em; }
.section-title .more { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  min-width: 0;
}
.topbar .brand .logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(29, 58, 143, .5);
}
.topbar .brand small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.topbar .brand b { font-family: var(--font-display); }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), background .2s, color .2s;
}
.icon-btn:active { transform: scale(.94); }

/* 返回按钮 + 页标题 */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 0;
}
.page-head .icon-btn { flex-shrink: 0; }
.page-head h1 { font-size: 20px; font-family: var(--font-display); letter-spacing: .02em; }
.page-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding: 26px 22px 40px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("../assets/campus.webp") center 30% / cover no-repeat,
    var(--grad-hero);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-hero);
}
.hero .badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: .14em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd98a, #fff3d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .82); letter-spacing: .06em; }
.hero .stats {
  display: flex;
  gap: 22px;
  margin-top: 20px;
}
.hero .stats .num { font-size: 19px; font-weight: 800; font-family: var(--font-display); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero .stats .lbl { font-size: 11px; color: rgba(255, 255, 255, .82); letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .stats .divider { width: 1px; background: rgba(255, 255, 255, .22); }

/* 搜索框 */
.search {
  margin: -28px 18px 0;
  position: relative;
  z-index: 5;
}
.search .box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s var(--ease), border-color .2s;
}
.search .box:focus-within {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
.search input::placeholder { color: var(--ink-3); }
.search .ico { color: var(--ink-3); display: grid; }
.search .hot {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.search .hot::-webkit-scrollbar { display: none; }
.search .hot span { font-size: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; padding-top: 2px; }
.search .hot a {
  font-size: 12px;
  color: var(--primary-2);
  white-space: nowrap;
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- 分类宫格 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s;
}
.cat-item:active { transform: scale(.96); }
.cat-item .ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(16, 24, 40, .25);
}
.cat-item .nm { font-size: 12.5px; font-weight: 600; }
.cat-item .ds { font-size: 9.5px; color: var(--ink-3); text-align: center; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- 路线预览（自适应卡片） ---------- */
.route-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.route-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 14px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s;
}
.route-preview:active { transform: scale(.97); }
.route-preview .pin {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.route-preview .info { flex: 1; min-width: 0; }
.route-preview .info b { font-size: 14px; display: block; line-height: 1.35; }
.route-preview .info span { font-size: 11px; color: var(--ink-3); display: block; margin-top: 3px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 热门问题 ---------- */
.hot-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hot-list .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: background .15s;
}
.hot-list .row + .row { border-top: 1px solid var(--line); }
.hot-list .row:active { background: var(--card-2); }
.hot-list .row .tag {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--primary-2);
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 600;
}
.hot-list .row .txt { flex: 1; font-size: 14px; line-height: 1.5; }
.hot-list .row .go { color: var(--ink-3); display: grid; flex-shrink: 0; }

/* ---------- 学长卡片 ---------- */
.senior-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  color: #fff;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.senior-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
  pointer-events: none;
}
.senior-card .sc-title { font-size: 16px; font-family: var(--font-display); letter-spacing: .04em; }
.senior-card .sc-sub { font-size: 12px; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.senior-card .sc-body { display: flex; gap: 14px; margin-top: 16px; align-items: center; }
.senior-card .sc-qr {
  width: 76px; height: 76px;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  flex-shrink: 0;
}
.senior-card .sc-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.senior-card .sc-qr.placeholder { display: grid; place-items: center; color: var(--ink-3); font-size: 9px; text-align: center; line-height: 1.4; }
.senior-card .sc-qr.placeholder svg { margin-bottom: 2px; }
.senior-card .sc-meta { flex: 1; min-width: 0; }
.senior-card .sc-meta .line { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 7px; }
.senior-card .sc-meta .line:first-child { margin-top: 0; }
.senior-card .sc-meta .k { color: rgba(255, 255, 255, .65); flex-shrink: 0; }
.senior-card .sc-meta code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  background: rgba(255, 255, 255, .14);
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.senior-card .sc-actions { display: flex; gap: 10px; margin-top: 16px; }
.sc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s;
}
.sc-btn:active { background: rgba(255, 255, 255, .28); }
.sc-btn.primary { background: var(--accent); border-color: transparent; color: #231a04; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 26px 22px 12px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.8;
}
.footer .f-brand { font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: .06em; }

/* ---------- 分类问答页 ---------- */
.cat-chips {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .18s var(--ease);
}
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 6px 16px -4px rgba(59, 110, 246, .5);
}

/* 手风琴 */
.qa-list { padding: 14px 18px 6px; display: grid; gap: 12px; }
.qa-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease);
}
.qa-item.open { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.qa-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  text-align: left;
}
.qa-q .idx {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.qa-q .txt { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.qa-q .arrow {
  flex-shrink: 0;
  color: var(--ink-3);
  display: grid;
  transition: transform .3s var(--ease);
}
.qa-item.open .qa-q .arrow { transform: rotate(180deg); color: var(--primary-2); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.qa-item.open .qa-a { grid-template-rows: 1fr; }
.qa-a .inner { overflow: hidden; }
.qa-a .body { padding: 2px 16px 18px; font-size: 14px; color: var(--ink-2); }

/* 富文本块 */
.qa-a .body p { margin-top: 8px; }
.qa-a .body p:first-child { margin-top: 0; }
.qa-a .body b, .qa-a .body strong { color: var(--ink); font-weight: 700; }
.qa-a .body ul, .qa-a .body ol { margin-top: 8px; display: grid; gap: 6px; }
.qa-a .body li { position: relative; padding-left: 20px; }
.qa-a .body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .72em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}
.qa-a .body ol { counter-reset: qa; }
.qa-a .body ol li { counter-increment: qa; }
.qa-a .body ol li::before {
  content: counter(qa);
  position: absolute;
  left: 0; top: .08em;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary-2);
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.callout .co-ico { flex-shrink: 0; margin-top: 1px; }
.callout.tip { background: var(--accent-soft); color: var(--gold); }
.callout.warn { background: rgba(229, 72, 77, .09); color: #c0392b; }
[data-theme="dark"] .callout.warn { color: #f0858a; }
.callout b { display: block; font-size: 12px; letter-spacing: .08em; margin-bottom: 2px; }

/* ---------- 路线页 ---------- */
.routes-hero {
  position: relative;
  margin: 12px 18px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  padding: 20px;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
}
.routes-hero .rh-tag { font-size: 11px; letter-spacing: .16em; color: #ffd98a; font-weight: 600; }
.routes-hero h1 { font-family: var(--font-display); font-size: 24px; margin-top: 4px; }
.routes-hero .rh-dest { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.9); }
.routes-hero .rh-dest svg { flex-shrink: 0; margin-top: 3px; color: #ffd98a; }
.routes-alert {
  margin: 12px 18px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: rgba(229, 72, 77, .08);
  border: 1px solid rgba(229, 72, 77, .22);
  color: #c0392b;
  font-size: 13px;
  line-height: 1.6;
}
[data-theme="dark"] .routes-alert { color: #f0858a; }
.routes-alert svg { flex-shrink: 0; margin-top: 2px; }

.station-nav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.station-nav::-webkit-scrollbar { display: none; }

.station-block { padding: 8px 18px 0; }
.station-block .st-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 2px 12px;
}
.station-block .st-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.station-block .st-head h2 { font-size: 18px; font-family: var(--font-display); }
.station-block .st-head .st-time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.station-block .st-head .st-time b { color: var(--accent); }

.plan-list { display: grid; gap: 12px; }
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.plan-card .pc-top { display: flex; align-items: center; gap: 10px; }
.plan-card .pc-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary-2);
}
.plan-card .pc-ico.free { background: var(--accent-soft); color: var(--gold); }
.plan-card .pc-title { flex: 1; font-size: 15px; font-weight: 700; }
.plan-card .pc-badge {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--gold);
  letter-spacing: .06em;
}
.plan-card .pc-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.plan-card .pc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.plan-card .pc-meta svg { color: var(--ink-3); }
.plan-card .pc-cost { color: var(--red); font-weight: 600; }
.plan-card .pc-steps { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.plan-card .pc-steps li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.plan-card .pc-steps li::before {
  content: "";
  position: absolute;
  left: 2px; top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.plan-card .pc-steps li:first-child::before { background: var(--primary-2); }

/* ---------- 搜索页 ---------- */
.search-res { padding: 14px 18px 6px; display: grid; gap: 10px; }
.search-res .hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease);
}
.search-res .hit:active { transform: scale(.98); }
.search-res .hit .hit-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.search-res .hit .hit-txt { flex: 1; min-width: 0; }
.search-res .hit .hit-txt .q { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.search-res .hit .hit-txt .cat { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.search-res .hit .go { color: var(--ink-3); display: grid; flex-shrink: 0; }
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.empty svg { margin: 0 auto 12px; opacity: .5; }
.empty b { display: block; font-size: 15px; color: var(--ink-2); }
.empty p { font-size: 13px; margin-top: 4px; }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + var(--safe-b));
  z-index: 60;
  width: min(calc(100% - 28px), 520px);
  display: flex;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.bottom-nav .bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0 5px;
  border-radius: 16px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s, background .2s;
}
.bottom-nav .bn-item.active {
  color: var(--primary-2);
  background: var(--primary-soft);
}
.bottom-nav .bn-item.active svg { transform: translateY(-1px); }

/* ---------- 学长弹层 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 14, 28, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 105%);
  z-index: 95;
  width: min(100%, var(--maxw));
  background: var(--card);
  border-radius: 26px 26px 0 0;
  padding: 18px 20px calc(22px + var(--safe-b));
  box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab {
  width: 40px; height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  margin: 0 auto 16px;
}
.sheet .sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet h3 { font-family: var(--font-display); font-size: 18px; text-align: center; }
.sheet .sheet-sub { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.sheet .sheet-body { margin-top: 18px; }

/* 复制提示 */
.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--topbar-h) + 12px);
  transform: translate(-50%, -16px);
  z-index: 120;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
  max-width: 80%;
  text-align: center;
}
[data-theme="dark"] .toast { background: #e9eefb; color: #0b1220; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; }
.fade-up.in { animation: fadeUp .55s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .15s; }
.d4 { animation-delay: .2s; } .d5 { animation-delay: .25s; } .d6 { animation-delay: .3s; }

@keyframes popIn {
  0% { opacity: 0; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}
.pop-in { animation: popIn .32s var(--ease) both; }

/* ---------- 桌面端微调 ---------- */
@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .hero { min-height: 360px; padding: 40px 34px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 0 24px; }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-chips { padding: 12px 24px; }
  .qa-list { padding: 18px 24px 8px; }
  .station-block { padding: 10px 24px 0; }
  .search { margin: -28px 24px 0; }
  .search-res { padding: 18px 24px 8px; }
}
