/* ==========================================================================
   生涯通 · Web 版设计系统
   ========================================================================== */

:root {
  --brand: #2f6fed;
  --brand-600: #2560d8;
  --brand-700: #1d4fb8;
  --brand-50: #eef4ff;
  --brand-100: #dbe7ff;
  --accent: #ff7a2f;
  --accent-50: #fff3ea;

  --bg: #f2f5fb;
  --bg-soft: #e9eef8;
  --card: #ffffff;
  --card-2: #fafbfe;

  --text: #16203a;
  --text-2: #55617a;
  --text-3: #8b97ae;
  --border: #e4e9f2;
  --border-strong: #cfd8e8;

  --success: #12a05c;
  --success-50: #e8f8f0;
  --danger: #dc3545;
  --danger-50: #fdedef;
  --warn: #e8a10c;
  --warn-50: #fdf5e4;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(22, 32, 58, 0.05);
  --shadow-sm: 0 2px 8px rgba(22, 32, 58, 0.06);
  --shadow: 0 8px 24px rgba(22, 32, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 32, 58, 0.14);

  --sidebar-w: 236px;
  --topbar-h: 58px;
  --bottom-h: 62px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3dae8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #bcc6da; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 启动占位 ---------- */
.boot {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: var(--text-3);
}
.boot-logo {
  width: 62px; height: 62px; border-radius: 18px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: 0;
  box-shadow: var(--shadow);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(0.94); opacity: 0.75 } }
img.boot-logo { background: #fff; object-fit: contain; border: 1px solid #e8edf5; }

/* ---------- 布局骨架 ---------- */
.shell { min-height: 100vh; }

.sidebar { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 17px; font-weight: 700; flex: 1; min-width: 0; }
.topbar-title small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.topbar-back {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); font-size: 16px; color: var(--text-2); flex-shrink: 0;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-2); font-size: 17px; flex-shrink: 0; transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg-soft); }

.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #5b8dff);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: 0; flex-shrink: 0;
}
img.brand-mark { background: #fff; object-fit: contain; border: 1px solid var(--border, #e8edf5); }

/* 顶栏 logo：位于标题左侧、可点击回首页（各尺寸屏均显示，仅此一处品牌位） */
.brand-link { display: grid; place-items: center; flex-shrink: 0; text-decoration: none; transition: opacity 0.15s; }
.brand-link:hover { opacity: 0.85; }
.brand-link:active { transform: scale(0.96); }

.content {
  padding: 14px 14px calc(var(--bottom-h) + 26px);
  max-width: 1120px; margin: 0 auto; width: 100%;
}

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; color: var(--text-3); font-weight: 500; transition: color 0.15s;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--brand); font-weight: 700; }

/* ---------- 通用块 ---------- */
.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 22px; }
.page-head p { color: var(--text-2); font-size: 13px; margin-top: 4px; }

.section { margin-bottom: 22px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.section-head h2 { font-size: 16.5px; }
.section-head .more { font-size: 12.5px; color: var(--brand); font-weight: 600; white-space: nowrap; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 16px; }
.card + .card { margin-top: 12px; }

.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--text); transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #4f83f5); color: #fff; box-shadow: 0 4px 14px rgba(47, 111, 237, 0.28); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(47, 111, 237, 0.36); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff9a56); color: #fff; box-shadow: 0 4px 14px rgba(255, 122, 47, 0.28); }
.btn-outline { background: #fff; border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-danger { background: var(--danger-50); color: var(--danger); }
/* 柔和次要按钮：用于「差 N 分 / 已兑完」等不可用态，比 disabled 的灰更可读 */
.btn-soft { background: var(--bg-soft); color: var(--text-3); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
/* 微信登录（品牌绿 #07C160） */
.btn-wx { background: #07c160; color: #fff; box-shadow: 0 4px 14px rgba(7, 193, 96, 0.26); }
.btn-wx:hover { background: #06ad56; box-shadow: 0 6px 18px rgba(7, 193, 96, 0.34); }
.wx-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--text-3); font-size: 12px; }
.wx-or::before, .wx-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- 标签 / 徽标 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  transition: all 0.15s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip.scroll { flex-shrink: 0; }

/* 目录专业 chip：左侧名称（有详解可点）+ 右侧收藏切换 */
.chip-split { padding: 0 6px 0 0; gap: 0; }
.chip-split .chip-main {
  padding: 6px 8px 6px 13px; color: inherit; text-decoration: none;
  display: inline-flex; align-items: center;
}
.chip-split a.chip-main:hover { color: var(--brand); }
.chip-split .wish-toggle {
  background: none; border: 0; cursor: pointer; padding: 6px 8px 6px 2px;
  color: var(--brand); font-size: 13px; line-height: 1;
}
.chip-split .wish-toggle:hover { transform: scale(1.15); }

.scroll-x {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: var(--brand-50); color: var(--brand-700); white-space: nowrap;
}
.badge.orange { background: var(--accent-50); color: #c04f0d; }
.badge.green { background: var(--success-50); color: #0b7a45; }
.badge.red { background: var(--danger-50); color: #b02534; }
.badge.gray { background: #eef1f6; color: var(--text-2); }
.badge.solid { background: var(--brand); color: #fff; }

/* ---------- 搜索框 ---------- */
.search {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.search svg { width: 17px; height: 17px; color: var(--text-3); flex-shrink: 0; }
.search input { flex: 1; border: none; outline: none; background: none; font-size: 14.5px; min-width: 0; }
.search input::placeholder { color: var(--text-3); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--border); background: #fff; outline: none; font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
textarea.input { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.6; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2f6fed 0%, #5b8dff 52%, #7aa6ff 100%);
  color: #fff; padding: 22px 20px 20px; box-shadow: 0 14px 34px rgba(47, 111, 237, 0.26);
}
.hero::after {
  content: ''; position: absolute; right: -46px; top: -66px; width: 210px; height: 210px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.13);
}
.hero::before {
  content: ''; position: absolute; right: 46px; bottom: -84px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.09);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 21px; line-height: 1.4; }
.hero .sub { font-size: 13px; opacity: 0.9; margin-top: 6px; }
.hero-stats { display: flex; gap: 20px; margin-top: 16px; }
.hero-stat b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stat span { font-size: 11.5px; opacity: 0.85; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.hero-actions .btn { flex: 1; height: 44px; background: #fff; color: var(--brand-700); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.hero-actions .btn.ghost-light { background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.42); }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 6px 11px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.quick-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-size: 19px; font-weight: 700;
}
.quick-item span { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 15px; box-shadow: var(--shadow-xs);
}
.stat-card .label { font-size: 12px; color: var(--text-3); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.stat-card .value { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.2; }
.stat-card .value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.stat-card .hint { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.stat-card.brand { background: linear-gradient(135deg, #f3f7ff, #e8f0ff); border-color: var(--brand-100); }

/* ---------- 进度条 ---------- */
.progress { height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #6c9bff); transition: width 0.5s ease; }
.progress.green > i { background: linear-gradient(90deg, #12a05c, #45c98a); }
.progress.orange > i { background: linear-gradient(90deg, #ff7a2f, #ffa96b); }

/* ---------- 科目卡 ---------- */
.subject-grid { display: grid; gap: 11px; grid-template-columns: 1fr; }
.subject-card {
  display: flex; align-items: center; gap: 13px; padding: 15px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.subject-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.subject-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.subject-card .body { flex: 1; min-width: 0; }
.subject-card h3 { font-size: 15.5px; display: flex; align-items: center; gap: 7px; }
.subject-card .desc { font-size: 12px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.subject-card .meta { font-size: 11.5px; color: var(--text-2); margin-top: 6px; display: flex; gap: 12px; }
.subject-card .arrow { color: var(--text-3); font-size: 16px; flex-shrink: 0; }

/* ---------- 列表项 ---------- */
.list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-bottom: 1px solid var(--border); transition: background 0.15s; cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--card-2); }
.list-item .body { flex: 1; min-width: 0; }
.list-item h4 { font-size: 14.5px; font-weight: 600; }
.list-item .sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.list-item .tail { font-size: 12.5px; color: var(--text-3); flex-shrink: 0; text-align: right; }

/* ---------- 院校卡 ---------- */
.college-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.college-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; cursor: pointer;
}
.college-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.college-top { display: flex; gap: 12px; align-items: flex-start; }

/* 浏览量「小眼睛」：卡片右上角，纯展示（不可点击）
   计数口径 = 进入院校详情页 +1，故芯片本身不需要 hover/active 等交互态 */
.view-chip {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  margin-left: auto; padding: 4px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-3); border: 1px solid transparent;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.view-chip svg { display: block; }
.view-chip.pop { animation: viewPop 0.36s ease; }
@keyframes viewPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.college-logo {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: -0.5px;
  position: relative; overflow: hidden;
}
/* 校徽图片：铺满头像框，加载失败由 onerror 移除、露出渐变首字 */
.college-logo .cl-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #fff; z-index: 1;
}
.college-name { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.college-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.college-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.college-foot {
  display: flex; gap: 16px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border);
}
.college-foot div { font-size: 11.5px; color: var(--text-3); }
.college-foot b { display: block; font-size: 14.5px; color: var(--text); font-weight: 700; margin-top: 1px; }

/* ---------- 专业卡 ---------- */
.major-grid { display: grid; gap: 11px; grid-template-columns: repeat(2, 1fr); }
.major-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.major-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.major-card h4 { font-size: 14.5px; }
.major-card .cat { font-size: 11.5px; color: var(--text-3); }
.major-card .salary { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.major-card .goal { font-size: 12px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1; min-width: fit-content; height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all 0.15s; white-space: nowrap;
}
.tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-xs); }

/* ---------- 答题界面 ---------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.quiz-progress { flex: 1; }
.quiz-progress .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.quiz-progress .top b { color: var(--brand); }

.q-card { padding: 18px 16px; }
.q-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.q-stem { font-size: 16px; line-height: 1.75; font-weight: 600; white-space: pre-wrap; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.option {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; text-align: left;
  background: var(--card-2); border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 14.5px; line-height: 1.6; transition: all 0.15s; width: 100%;
}
.option:hover { border-color: var(--brand); background: var(--brand-50); }
.option .key {
  width: 25px; height: 25px; border-radius: 8px; background: #fff; border: 1.5px solid var(--border-strong);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); flex-shrink: 0;
}
.option.selected { border-color: var(--brand); background: var(--brand-50); }
.option.selected .key { background: var(--brand); border-color: var(--brand); color: #fff; }
.option.correct { border-color: var(--success); background: var(--success-50); }
.option.correct .key { background: var(--success); border-color: var(--success); color: #fff; }
.option.wrong { border-color: var(--danger); background: var(--danger-50); }
.option.wrong .key { background: var(--danger); border-color: var(--danger); color: #fff; }
.option:disabled { cursor: default; }

.answer-box { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 14px; animation: fadeUp 0.28s ease; }
.answer-verdict { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.answer-verdict.ok { color: var(--success); }
.answer-verdict.no { color: var(--danger); }
.analysis {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 14px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; color: var(--text-2);
}
.analysis b { color: var(--text); }

.quiz-foot { display: flex; gap: 10px; margin-top: 16px; }
.quiz-foot .btn { flex: 1; }

.quiz-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.qa-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px;
  border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--bg-soft); color: var(--text-2);
  border: 1px solid transparent; transition: all 0.15s;
}
.qa-btn:hover { border-color: var(--brand); color: var(--brand); }
.qa-btn.on { background: var(--warn-50); color: #a9700a; border-color: #f0d089; }

.card-sheet {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px;
}
.sheet-num {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; background: var(--bg-soft); color: var(--text-2);
  border: 1.5px solid transparent; transition: all 0.15s;
}
.sheet-num.correct { background: var(--success-50); color: var(--success); border-color: #a8e0c4; }
.sheet-num.wrong { background: var(--danger-50); color: var(--danger); border-color: #f3bcc3; }
.sheet-num.current { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- 成绩单 ---------- */
.score-ring { display: grid; place-items: center; padding: 8px 0 4px; }
.score-ring .num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.score-ring .unit { font-size: 15px; color: var(--text-3); font-weight: 600; }
.score-ring .label { font-size: 13px; color: var(--text-2); margin-top: 8px; }

/* ---------- 文章 ---------- */
.article-head { margin-bottom: 16px; }
.article-head h1 { font-size: 21px; line-height: 1.45; }
.article-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); margin-top: 9px; flex-wrap: wrap; }
.article-body { font-size: 15px; line-height: 1.85; color: #2a3550; }
.article-body h2 { font-size: 16.5px; margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--brand); line-height: 1.4; }
.article-body p { margin: 0 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 13.5px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; }
.article-body th { background: var(--card-2); font-weight: 700; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body code { background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- 图表 ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 128px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bar-bg { position: absolute; inset: 0; background: var(--bg-soft); border-radius: 8px 8px 4px 4px; }
.bar-fill {
  position: relative; width: 100%; border-radius: 8px 8px 4px 4px; margin-top: auto;
  background: linear-gradient(180deg, #6c9bff, var(--brand)); transition: height 0.6s ease;
}
.bar-fill.zero { background: var(--border); min-height: 4px; }
.bar-label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.bar-value { font-size: 10.5px; font-weight: 700; color: var(--text-2); }

.subj-bars { display: flex; flex-direction: column; gap: 13px; }
.subj-bar .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.subj-bar .top b { font-weight: 700; }
.subj-bar .top span { color: var(--text-3); font-size: 12px; }

/* ---------- 个人中心 ---------- */
.profile-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px;
  background: linear-gradient(135deg, #2f6fed, #5b8dff); border-radius: var(--radius-lg); color: #fff;
  box-shadow: 0 12px 30px rgba(47, 111, 237, 0.24);
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.22);
  display: grid; place-items: center; font-size: 21px; font-weight: 800; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.profile-head .info { flex: 1; min-width: 0; }
.profile-head h2 { font-size: 18px; }
.profile-head p { font-size: 12.5px; opacity: 0.9; margin-top: 3px; }
.profile-head .target { font-size: 12px; opacity: 0.85; margin-top: 5px; }

.menu-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-bottom: 1px solid var(--border); transition: background 0.15s; cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--card-2); }
.menu-item .mi-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.menu-item .mi-body { flex: 1; min-width: 0; }
.menu-item .mi-body b { font-size: 14.5px; font-weight: 600; display: block; }
.menu-item .mi-body span { font-size: 12px; color: var(--text-3); }
.menu-item .arrow { color: var(--text-3); font-size: 15px; }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 24, 44, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease; backdrop-filter: blur(2px);
}
.modal {
  width: 100%; max-width: 400px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 20px; animation: fadeUp 0.26s ease;
  max-height: 88vh; overflow-y: auto;
}
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .modal-sub { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

/* 打卡推广开屏弹窗（真实用户首次/当日首次打开时展示）——独立类名，勿与通用 .modal-mask/.modal 耦合 */
.promo-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 24, 44, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease; backdrop-filter: blur(2px);
}
.promo-card {
  position: relative; width: 100%; max-width: 320px; text-align: center;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 0 20px 18px; overflow: hidden; animation: fadeUp 0.26s ease;
}
.promo-x {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  color: #2f6fed; font-size: 13px; line-height: 28px; cursor: pointer; z-index: 2; padding: 0;
}
.promo-head {
  margin: 0 -20px 14px; padding: 26px 20px 18px; color: #fff;
  background: linear-gradient(135deg, #2f6fed, #6d5cf6);
}
.promo-emoji { font-size: 40px; line-height: 1; }
.promo-head h3 { margin: 10px 0 4px; font-size: 20px; color: #fff; }
.promo-head p { margin: 0; font-size: 13px; opacity: 0.92; }
.promo-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.promo-chip {
  font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--bg-soft, #f2f4f8); color: var(--text-2, #4a5568);
}
.promo-go { box-shadow: 0 6px 16px rgba(47, 111, 237, 0.32); }
.promo-skip { margin-top: 8px; }

/* 刷题权限弹窗：客服微信二维码 */
.gate-qr {
  display: block; width: 220px; height: 220px; margin: 6px auto 0;
  border-radius: 12px; border: 1px solid var(--border); background: #fff; object-fit: contain;
}
.modal-foot { display: flex; gap: 10px; margin-top: 18px; }
.modal-foot .btn { flex: 1; }

/* ---------- 问百度 AI（专业详情页入口 + 解读弹窗） ---------- */
.ai-entry {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; cursor: pointer; color: var(--text);
  background: linear-gradient(135deg, #eef4ff, #f4edff);
  border: 1px solid #dbe4ff; border-radius: var(--radius-lg);
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ai-entry:hover { border-color: #b9ccff; box-shadow: 0 8px 22px rgba(47, 111, 237, 0.14); transform: translateY(-1px); }
.ai-entry:active { transform: scale(0.99); }
.ai-entry:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ai-entry .ai-ico {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f6fed, #7b4ef0);
}
.ai-entry .ai-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-entry .ai-txt b { font-size: 14.5px; }
.ai-entry .ai-txt i { font-style: normal; font-size: 12px; color: var(--text-3); }
.ai-entry .ai-arrow { margin-left: auto; flex-shrink: 0; color: var(--brand); }

.ai-modal {
  max-width: 520px; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; max-height: 86vh;
}
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 0; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #eef4ff, #f4edff); border: 1px solid #dbe4ff;
  color: var(--brand); font-size: 11.5px; font-weight: 700; line-height: 1.2;
}
.ai-close {
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
}
.ai-close:hover { background: var(--bg-soft); color: var(--text); }
.ai-modal h3 { font-size: 18px; margin: 10px 0 4px; }
.ai-modal .modal-sub { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }

.ai-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px; }
.ai-sec { padding: 12px 0; border-top: 1px solid var(--border); }
.ai-sec:first-child { border-top: 0; padding-top: 4px; }
.ai-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-sec-h b { font-size: 14px; }
.ai-sec-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.ai-p { font-size: 13px; color: var(--text-2); line-height: 1.75; margin: 0 0 8px; }
.ai-p:last-child { margin-bottom: 0; }
.ai-label { font-size: 12px; color: var(--text-3); margin: 10px 0 6px; }
.ai-note { font-size: 12px; color: var(--text-3); line-height: 1.7; margin: 8px 0 0; }
.ai-salary {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--success-50); border: 1px solid #cdeedd;
}
.ai-salary b { font-size: 17px; color: var(--success); font-variant-numeric: tabular-nums; }
.ai-salary span { font-size: 11.5px; color: var(--text-3); }

.ai-modal .modal-foot {
  flex-shrink: 0; margin-top: 0; padding: 12px 16px 14px;
  border-top: 1px solid var(--border); background: var(--card-2);
}
.ai-modal .modal-foot .btn { font-size: 13.5px; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ---------- 空态 / 提示 ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .ico { font-size: 40px; margin-bottom: 12px; opacity: 0.55; }
.empty p { font-size: 13.5px; }
.empty .btn { margin-top: 16px; }

.toast-host {
  position: fixed; left: 50%; bottom: calc(var(--bottom-h) + 24px); transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: rgba(22, 32, 58, 0.93); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); animation: fadeUp 0.24s ease;
  max-width: 82vw; text-align: center;
}
.toast.err { background: rgba(180, 38, 52, 0.95); }
.toast.ok { background: rgba(12, 122, 69, 0.95); }

/* ---------- 分享（文章页按钮 + 微信内引导浮层） ---------- */
/* 微信 H5 没有调起分享面板的 API，微信内点分享只能弹一层「去点右上角 ···」的引导 */
.share-row { display: flex; justify-content: center; margin-top: 18px; }
.share-row .btn { gap: 6px; }

.share-guide {
  position: fixed; inset: 0; z-index: 220; cursor: pointer;
  background: rgba(16, 24, 44, 0.84);
  animation: fadeIn 0.18s ease;
}
.share-guide .sg-tip {
  position: absolute; top: 6px; right: 14px; max-width: 78vw;
  text-align: right; color: #fff;
}
.share-guide .sg-arrow { color: #fff; opacity: 0.95; animation: sgNudge 1.2s ease-in-out infinite; }
.share-guide .sg-arrow svg { display: block; margin-left: auto; }
.share-guide .sg-h { font-size: 17px; font-weight: 800; margin: 2px 0 6px; letter-spacing: 0.3px; }
.share-guide .sg-p { font-size: 12.5px; line-height: 1.75; opacity: 0.8; margin: 0; }
.share-guide .sg-foot {
  position: absolute; left: 0; right: 0; bottom: 44px; margin: 0;
  text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.55);
}
@keyframes sgNudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(7px, -7px); }
}

/* ---------- 微信分享自检面板（网址加 ?wxdiag=1 显示，微信内无控制台时的排查窗口） ---------- */
.wx-diag {
  position: fixed; left: 10px; right: 10px; top: 10px; z-index: 300;
  background: rgba(16, 24, 44, 0.94); color: #fff; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; line-height: 1.65;
  max-height: 46vh; overflow: auto; word-break: break-all;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}
.wx-diag-h {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; margin-bottom: 6px;
}
.wx-diag-x {
  background: none; border: 0; color: #fff; font-size: 18px; line-height: 1;
  padding: 0 2px; cursor: pointer;
}
.wx-diag-r.err { color: #ff9aa2; }
.wx-diag-r.warn { color: #ffd479; }

/* ---------- PWA 安装引导 ---------- */
.pwa-banner {
  position: fixed; left: 14px; right: 14px; bottom: calc(var(--bottom-h) + 12px);
  z-index: 90; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 11px 12px;
  animation: fadeUp 0.3s ease;
}
.pwa-banner img { border-radius: 9px; flex-shrink: 0; }
.pwa-banner .pb-body { flex: 1; min-width: 0; }
.pwa-banner .pb-body b { display: block; font-size: 14px; }
.pwa-banner .pb-body span { font-size: 11.5px; color: var(--text-3); }

@media (min-width: 1024px) {
  .pwa-banner { left: auto; right: 24px; bottom: 24px; width: 380px; }
}

.spinner {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--brand-100);
  border-top-color: var(--brand); animation: spin 0.7s linear infinite; margin: 34px auto;
}
@keyframes spin { to { transform: rotate(360deg) } }

.skeleton {
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fd 50%, #eef1f7 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.sk-line { height: 14px; margin-bottom: 9px; }
.sk-card { height: 104px; margin-bottom: 12px; }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-6 { margin-top: 6px } .mt-10 { margin-top: 10px } .mt-14 { margin-top: 14px } .mt-20 { margin-top: 20px }
.mb-10 { margin-bottom: 10px } .mb-14 { margin-bottom: 14px }
.t2 { color: var(--text-2) } .t3 { color: var(--text-3) }
.f11 { font-size: 11px } .f12 { font-size: 12px } .f13 { font-size: 13px }
.bold { font-weight: 700 }
.center { text-align: center }
.hide-sm { display: none }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .college-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .major-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  :root { --topbar-h: 66px; }
  .shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
  .bottom-nav { display: none; }

  .sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh; padding: 20px 14px;
    background: #fff; border-right: 1px solid var(--border);
  }
  .sidebar .logo {
    display: flex; align-items: center; gap: 10px; padding: 0 8px 18px;
    text-decoration: none; color: inherit;
  }
  .sidebar .logo:hover b { color: var(--brand); }
  .sidebar .logo b { font-size: 16px; letter-spacing: -0.01em; transition: color 0.15s; }
  .sidebar .logo b small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
  .nav-group { font-size: 11px; color: var(--text-3); font-weight: 700; padding: 14px 10px 6px; letter-spacing: 0.06em; }
  .nav-item {
    display: flex; align-items: center; gap: 11px; height: 41px; padding: 0 12px;
    border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: all 0.15s;
  }
  .nav-item:hover { background: var(--bg); color: var(--text); }
  .nav-item.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
  .nav-item .ni { width: 19px; text-align: center; font-size: 15px; }
  .nav-item .ni-count {
    margin-left: auto; font-size: 11px; background: var(--bg-soft); color: var(--text-2);
    padding: 1px 7px; border-radius: 999px; font-weight: 600;
  }
  .nav-item.active .ni-count { background: var(--brand-100); color: var(--brand-700); }
  .sidebar-foot { margin-top: auto; padding: 10px 8px 0; }

  .content { padding: 24px 30px 60px; }
  .major-grid { grid-template-columns: repeat(3, 1fr); }
  .hide-sm { display: block }

  .hero { padding: 30px 30px 28px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 34px; margin-top: 20px; }
  .hero-stat b { font-size: 25px; }
  .hero-actions { max-width: 420px; }
}

@media (min-width: 1280px) {
  .college-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   邀请好友 · 积分
   ========================================================================== */

.invite-hero {
  background: linear-gradient(135deg, #1f7a5c, #2f9d74);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.invite-hero .ih-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invite-hero .ih-stats { display: flex; gap: 34px; min-width: 0; }
.invite-hero .ih-stat .label { display: block; font-size: 12.5px; opacity: 0.85; }
.invite-hero .ih-stat b { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; }
.invite-hero .ih-stat b small { font-size: 12.5px; font-weight: 600; margin-left: 2px; }
.invite-hero .ih-rules-btn {
  border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  flex-shrink: 0;
}
.invite-hero .ih-rules-btn:hover { background: rgba(255, 255, 255, 0.22); }

.invite-code-card { text-align: center; }
.invite-code-card > b { font-size: 14.5px; }
.invite-code {
  font-size: 34px; font-weight: 800; letter-spacing: 8px; color: #1f7a5c;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  margin: 12px 0 4px; user-select: all; overflow-wrap: anywhere;
}
.invite-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.invite-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.invite-link { font-size: 12px; color: var(--text-3); margin: 12px 0 0; overflow-wrap: anywhere; }

.invite-records, .invite-ledger { margin-top: 10px; display: grid; gap: 10px; }
.invite-record { display: flex; align-items: center; gap: 11px; }
.invite-record .body { flex: 1; min-width: 0; }
.invite-record h4 { font-size: 14px; margin: 0; }
.invite-record .sub { font-size: 12px; color: var(--text-3); }
.invite-record .gain { font-size: 15px; font-weight: 800; color: #1f7a5c; flex-shrink: 0; }

.invite-empty { text-align: center; padding: 26px 10px 16px; }
.invite-empty h4 { font-size: 14.5px; margin: 0; }
.invite-empty p { font-size: 13px; color: var(--text-3); margin: 6px 0 0; }

.invite-note { padding: 0 4px; }
.invite-note b { font-size: 13.5px; color: #1f7a5c; }
.invite-note p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin: 6px 0 0; }

.invite-rules { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); line-height: 2; }
.invite-rules b { color: #1f7a5c; }

/* 大类筛选折叠切换按钮 */
.chip-toggle { color: var(--brand); background: var(--brand-50); border: 1px dashed var(--brand-100); font-weight: 600; }
.chip-toggle:hover { background: var(--brand-100); }

/* 积分中心 · 每日签到 */
.points-hero {
  background: linear-gradient(135deg, #2f6fed, #5b8df5);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.points-hero .ph-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.points-hero .ph-main .label { display: block; font-size: 12.5px; opacity: 0.85; }
.points-hero .ph-main b { font-size: 30px; font-weight: 800; letter-spacing: 0.5px; }
.points-hero .ph-btn {
  background: rgba(255, 255, 255, 0.94); color: #2560d8; font-weight: 700;
  border: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
}
.points-hero .ph-btn:disabled { opacity: 0.65; cursor: default; }
.points-hero .ph-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; opacity: 0.92; margin-top: 10px; }
.points-hero .ph-week { display: flex; justify-content: space-between; margin-top: 14px; }
.checkin-day { display: grid; justify-items: center; gap: 5px; font-size: 11px; opacity: 0.95; }
.checkin-day .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.6); color: #fff;
}
.checkin-day.on .dot { background: rgba(255, 255, 255, 0.94); border-style: solid; color: #2560d8; }
.points-hero .ph-rule { font-size: 11.5px; opacity: 0.8; margin: 12px 0 0; }

.invite-entry { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.invite-entry .body { flex: 1; min-width: 0; }
.invite-entry b { font-size: 14.5px; display: block; }
.invite-entry .sub { font-size: 12.5px; color: var(--text-3); }
.invite-entry .arrow { color: var(--text-3); display: grid; place-items: center; }

/* ==========================================================================
   积分商城
   ========================================================================== */

.mall-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #6a3df5 0%, #8b6cf8 58%, #a688ff 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(106, 61, 245, 0.26);
}
/* 装饰光斑：右上一大一小，纯 CSS 不引图片 */
.mall-hero::after {
  content: ''; position: absolute; right: -36px; top: -46px;
  width: 152px; height: 152px; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.mall-hero::before {
  content: ''; position: absolute; right: 30px; bottom: -56px;
  width: 108px; height: 108px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
}
.mall-hero .mh-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mall-hero .label { display: block; font-size: 12.5px; opacity: 0.86; }
.mall-hero b { font-size: 32px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.15; }
.mall-hero .mh-unit { font-size: 12.5px; opacity: 0.85; margin-left: 4px; }
.mall-hero .mh-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mall-hero .mh-btn {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.2); color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); transition: background 0.15s, transform 0.15s;
}
.mall-hero .mh-btn:hover { background: rgba(255, 255, 255, 0.32); }
.mall-hero .mh-btn:active { transform: scale(0.97); }
.mall-hero .mh-rule { position: relative; z-index: 1; font-size: 11.5px; opacity: 0.82; margin: 14px 0 0; }

.mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mall-card {
  position: relative;
  /* 原写法引用未定义的 --surface / --line，卡片实际没有底色与边框，这里改用设计系统变量 */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px 13px;
  display: grid; justify-items: center; gap: 8px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.mall-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.mall-card.out { opacity: 0.7; }
.mall-card.out:hover { transform: none; box-shadow: var(--shadow-xs); }
.mall-thumb {
  width: 100%; height: 82px; border-radius: 12px;
  background: linear-gradient(135deg, #f4f1ff, #e9f1ff);
  display: grid; place-items: center;
}
.mall-emoji { font-size: 38px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(106, 61, 245, 0.2)); }
.mall-card h4 {
  font-size: 13.5px; margin: 0; line-height: 1.4; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mall-price { display: flex; align-items: baseline; gap: 3px; color: #6a3df5; }
.mall-price b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.mall-price span { font-size: 11.5px; opacity: 0.85; }
.mall-stock { font-size: 11.5px; color: var(--text-3); }
.mall-stock.low { color: var(--warn); font-weight: 600; }
.mall-stock.out { color: var(--danger); }
.mall-btn[disabled] { opacity: 0.6; cursor: default; }
.mall-ribbon {
  position: absolute; top: 9px; right: 9px; z-index: 1;
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8a4c, #ff5f6d); color: #fff;
  box-shadow: 0 4px 10px rgba(255, 95, 109, 0.3);
}
.mall-ribbon.hot { background: linear-gradient(135deg, #6a3df5, #8b6cf8); box-shadow: 0 4px 10px rgba(106, 61, 245, 0.3); }

/* 我的兑换记录 */
.mall-orders { display: grid; gap: 10px; }
.mall-order { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px dashed var(--border); }
.mall-order:first-child { border-top: none; padding-top: 2px; }
.mall-order .mo-ico {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(135deg, var(--brand-50), #eef4ff);
}
.mall-order .mo-body { flex: 1; min-width: 0; }
.mall-order h4 { font-size: 13.5px; margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mall-order .sub { font-size: 11.5px; color: var(--text-3); }
.mall-order .mo-cost { font-size: 14px; font-weight: 800; color: var(--text-2); flex-shrink: 0; }

.mall-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1.5px 7px;
  border-radius: 999px; background: #fff4e0; color: #b26a00; vertical-align: 1px;
}
.mall-badge.ok { background: var(--success-50, #e8f7ef); color: var(--success); }

/* ==========================================================================
   积分抽奖（九宫格转盘）
   ========================================================================== */

.lot-hero {
  background: linear-gradient(135deg, #ff7a2f 0%, #ff9a3d 45%, #ffb951 100%);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 122, 47, 0.26);
}
.lot-hero .lh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lot-hero .label { display: block; font-size: 12.5px; opacity: 0.88; }
.lot-hero b { font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: 0.5px; }
.lot-hero .lh-unit { font-size: 12.5px; opacity: 0.88; margin-left: 4px; }
.lot-hero .lh-meta { display: grid; gap: 4px; justify-items: end; font-size: 12.5px; text-align: right; }
.lot-hero .lh-meta a { color: #fff; opacity: 0.94; font-weight: 600; text-decoration: none; }

.lot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff5ec, #ffe9d8);
  border: 1px solid #ffe0c8;
  transition: transform 0.3s;
}
.lot-grid.spinning { transform: scale(0.99); }
.lot-cell {
  min-height: 84px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 4px; text-align: center;
  transition: transform 0.08s, background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.lot-cell .lot-emoji { font-size: 25px; line-height: 1; }
.lot-cell .lot-name { font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.25; }
.lot-cell.pad { opacity: 0.6; }
.lot-cell.pad .lot-name { color: var(--text-3); font-weight: 500; }
/* 跑马灯当前格 */
.lot-cell.on {
  background: linear-gradient(135deg, #fff2e2, #ffe3cb);
  border-color: var(--accent); transform: scale(1.03);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.22);
}
.lot-cell.on .lot-emoji { transform: scale(1.14); }
/* 中奖定格 */
.lot-cell.win {
  background: linear-gradient(135deg, #fff0d6, #ffe0a8);
  border-color: #f0a800; box-shadow: 0 0 0 3px rgba(240, 168, 0, 0.3);
  animation: lotPop 0.42s ease;
}
@keyframes lotPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.lot-go {
  border: none; cursor: pointer; border-radius: 14px;
  background: linear-gradient(135deg, #ff6a2f, #ff9a3d 60%, #ffb951);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 8px 20px rgba(255, 122, 47, 0.36);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.lot-go span { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.lot-go small { font-size: 10.5px; opacity: 0.9; font-weight: 600; }
.lot-go:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 10px 24px rgba(255, 122, 47, 0.44); }
.lot-go:active:not(:disabled) { transform: scale(0.96); }
.lot-go:disabled, .lot-go.is-disabled {
  cursor: not-allowed; filter: grayscale(0.5) brightness(0.97);
  box-shadow: none; background: linear-gradient(135deg, #c9cfdc, #d8dde8);
}

.lot-tip { font-size: 12px; color: var(--text-3); text-align: center; margin: 12px 0 0; }
.lot-tip b { color: var(--accent); }

.lot-rates { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.lot-rates li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.lot-rates .rr-emoji { font-size: 16px; width: 20px; text-align: center; }
.lot-rates .rr-name { flex: 1; min-width: 0; color: var(--text-2); }
.lot-rates .rr-rate { font-weight: 700; color: var(--accent); }

.lot-records { display: grid; gap: 10px; }
.lot-record { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px dashed var(--border); }
.lot-record:first-child { border-top: none; padding-top: 2px; }
.lot-record .lr-emoji {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(135deg, var(--accent-50), #fff3e6);
}
.lot-record .lr-body { flex: 1; min-width: 0; }
.lot-record h4 { font-size: 13.5px; margin: 0; }
.lot-record .sub { font-size: 11.5px; color: var(--text-3); }
.lot-record .lr-gain { font-size: 13.5px; font-weight: 800; color: var(--text-3); flex-shrink: 0; }
.lot-record .lr-gain.up { color: var(--accent); }

/* 中奖弹窗 */
.lot-result { text-align: center; }
.lot-result .lr-burst {
  width: 84px; height: 84px; margin: 2px auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 42px; line-height: 1;
  background: radial-gradient(circle at 50% 38%, #fff4e0, #ffe0b0);
  box-shadow: 0 0 0 8px rgba(255, 176, 92, 0.16), 0 12px 26px rgba(255, 122, 47, 0.24);
  animation: lotPop 0.5s ease;
}
.lot-result .lr-burst.none { background: radial-gradient(circle at 50% 38%, #f4f6fa, #e6ebf4); box-shadow: 0 0 0 8px rgba(140, 152, 172, 0.12); }
.lot-result .lr-points { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.lot-result .lr-points b { color: var(--accent); font-size: 16px; }

/* 未登录预览：禁用态 */
.lot-preview { pointer-events: none; }

/* ---------- 历年真题下载中心（年份 → 院校 两层分组） ---------- */
.dl-year { margin-bottom: 26px; }
.dl-year-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 0 2px 10px; margin-bottom: 12px; border-bottom: 2px solid var(--brand-100);
}
.dl-year-num {
  font-size: 24px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--brand), #6f9bff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dl-year-unit { font-size: 14px; font-weight: 700; color: var(--text-2); }
.dl-year-meta { font-size: 12px; color: var(--text-3); margin-left: auto; }
.dl-schools { display: grid; gap: 12px; }
.dl-school {
  background: var(--card, #fff); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-xs);
}
.dl-school-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: linear-gradient(135deg, #f7faff, #eef4ff); border-bottom: 1px solid var(--border);
}
.dl-school-head .college-logo.small { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.dl-school-fallback { background: var(--bg-soft); font-size: 16px; }
.dl-school-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.dl-school-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.dl-list { padding: 4px 0; }
.dl-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border-bottom: 1px dashed var(--border);
}
.dl-item:last-child { border-bottom: none; }
.dl-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700;
}
.dl-main { flex: 1; min-width: 0; }
.dl-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.dl-sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-3); margin-top: 4px;
}
.dl-dl { color: var(--brand); font-weight: 600; }
.dl-acts { display: flex; gap: 6px; flex-shrink: 0; }
/* 网盘来源徽标 + 提取码：提取码是用户真正要抄走的东西，给足对比度 */
.badge.netdisk { background: var(--brand-50); color: var(--brand-700); }
.dl-code { color: var(--text-2); }
.dl-code b { color: var(--text); letter-spacing: 0.06em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 560px) {
  .dl-item { flex-wrap: wrap; }
  .dl-main { flex-basis: calc(100% - 45px); }
  .dl-acts { width: 100%; }
  .dl-acts .btn { flex: 1; text-align: center; justify-content: center; }
}

/* ==========================================================================
   资讯中心（板块 / 地域 / 标签 / 封面卡片）—— v3.14.0
   ========================================================================== */
/* 二级标题行（地域、标签分组） */
.sub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
/* chip 里的计数：选中时反白，保证可读 */
.chip .cnt { font-size: 11.5px; opacity: 0.75; font-weight: 600; }
.chip.active .cnt { opacity: 0.9; }
.chip.tag { background: var(--card-2); }

/* 列表卡片：左封面 + 右文字 */
.news-card { display: flex; gap: 12px; align-items: stretch; }
.news-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.nc-cover {
  width: 104px; height: 76px; flex-shrink: 0; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--brand-50); position: relative;
}
.nc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-cover.ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}
.nc-cover.ph span { color: var(--brand-700); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.nc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.nc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.nc-title {
  font-size: 15px; line-height: 1.5; font-weight: 700; margin: 6px 0 0; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-sum {
  margin: 5px 0 0; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-title-lg { font-size: 17px; line-height: 1.5; margin-top: 9px; }
.news-top { display: block; background: linear-gradient(135deg, #eef4ff, #dfeaff); border-color: var(--brand-100); }

/* 详情：大封面 + 导语 */
.news-cover-lg { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-sm); display: block; margin-bottom: 16px; }
.article-lead {
  background: var(--card-2); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: 11px 14px; font-size: 14px; line-height: 1.75; color: var(--text-2);
}

/* 外链型资讯说明块 */
.ext-note { margin-top: 18px; padding: 14px 15px; background: var(--brand-50); border-radius: var(--radius-sm); }
.ext-note-h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand-700); }
.ext-note p { font-size: 13px; line-height: 1.75; color: var(--text-2); margin: 8px 0 12px; }

/* 关联院校卡片 */
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.link-card .lc-body { min-width: 0; }
.link-card .lc-name { font-size: 15px; font-weight: 700; margin-top: 3px; color: var(--text); }

@media (max-width: 560px) {
  .nc-cover { width: 88px; height: 66px; }
  .news-cover-lg { max-height: 210px; }
  .link-card { flex-direction: column; align-items: stretch; }
  .link-card .btn { width: 100%; justify-content: center; }
}

/* ---------- 登录 / 注册弹窗：短信验证码行 ---------- */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 14px;
  font-size: 13px;
}
.code-row .btn:disabled { opacity: .6; }
