:root {
  --ink: #0f1a3c;
  --ink-2: #1e2b57;
  --primary: #2f54eb;
  --primary-2: #5b7cff;
  --primary-soft: #eef2ff;
  --orange: #ff7a45;
  --orange-soft: #fff2ec;
  --green: #0fa968;
  --green-soft: #e9f8f1;
  --red: #e5484d;
  --red-soft: #fdecec;
  --gold: #f5a524;
  --gold-soft: #fff7e6;
  --bg: #f5f7fc;
  --card: #ffffff;
  --muted: #7a849b;
  --line: #e8ecf5;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 26, 60, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #e9edf7;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 500px at 15% 0%, #dbe4ff 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 100%, #ffe9dd 0%, transparent 55%),
    #e9edf7;
  z-index: -1;
}
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: 14px; color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.stage { display: flex; justify-content: center; min-height: 100vh; }
.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  box-shadow: 0 0 90px rgba(15, 26, 60, 0.18);
  overflow-x: hidden;
}
.app.no-tab { padding-bottom: 0; }

/* ---------- 通用 ---------- */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; } .tiny { font-size: 11px; }
.bold { font-weight: 700; } .semi { font-weight: 600; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.page { padding: 16px 16px 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.section-head h3 { font-size: 17px; letter-spacing: -0.2px; }
.section-head .more { font-size: 12px; color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid rgba(232, 236, 245, 0.7); }
.soft { background: var(--primary-soft); border: none; box-shadow: none; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; }
.pill-blue { background: var(--primary-soft); color: var(--primary); }
.pill-orange { background: var(--orange-soft); color: #e05f2a; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-gold { background: var(--gold-soft); color: #b97708; }
.pill-gray { background: #f1f3f9; color: var(--muted); }
.rating-红牌 { background: var(--red-soft); color: var(--red); }
.rating-黄牌 { background: var(--gold-soft); color: #b97708; }
.rating-绿牌 { background: var(--green-soft); color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 14px; font-size: 15px; font-weight: 600;
  background: var(--primary); color: #fff; transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid #c9d4ff; }
.btn.dark { background: var(--ink); }
.btn.orange { background: var(--orange); }
.btn.sm { height: 36px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
.btn.tiny { height: 30px; font-size: 12px; padding: 0 10px; border-radius: 8px; }
.btn[disabled] { background: #c8d0e4; color: #fff; pointer-events: none; }
.btn + .btn { margin-left: 10px; }

.input, .select, .textarea {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; background: #fff; outline: none; transition: border 0.15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--muted);
  font-size: 12.5px; border: 1px solid var(--line); font-weight: 500;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.blue.on { background: var(--primary); border-color: var(--primary); }

.empty { text-align: center; padding: 42px 20px; color: var(--muted); font-size: 13px; }
.empty .icon { font-size: 34px; display: block; margin-bottom: 8px; opacity: 0.8; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid #dbe2f5; border-top-color: var(--primary);
  margin: 0 auto 10px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef1f8 25%, #f7f9fd 50%, #eef1f8 75%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- 顶部 / 搜索 ---------- */
.hero { position: relative; background: linear-gradient(160deg, #0f1a3c 0%, #1b2b63 62%, #26377a 100%); color: #fff; padding: 18px 16px 22px; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: radial-gradient(circle, rgba(91, 124, 255, 0.55), transparent 65%); }
.hero::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; left: -80px; bottom: -110px; background: radial-gradient(circle, rgba(255, 122, 69, 0.3), transparent 65%); }
.hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, #5b7cff, #2f54eb 55%, #ff7a45);
  display: grid; place-items: center; font-size: 17px; font-weight: 800; color: #fff; box-shadow: 0 6px 14px rgba(47, 84, 235, 0.4);
}
.brand .name { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; }
.brand .sub { font-size: 9px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.55); margin-top: -3px; }
.hero-top .links { display: flex; gap: 8px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: #fff; font-size: 15px; backdrop-filter: blur(6px); }
.searchbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 42px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); padding: 0 14px; color: rgba(255, 255, 255, 0.7); font-size: 13px; border: 1px solid rgba(255, 255, 255, 0.1); }
.searchbar .ico { font-size: 14px; }
.hero-search { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.hero-search .searchbar { flex: 1; }

/* 倒计时 */
.countdown { position: relative; z-index: 1; margin-top: 16px; border-radius: 18px; padding: 14px; background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.14); }
.countdown .label { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.countdown .days { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.countdown .days small { font-size: 13px; font-weight: 500; margin-left: 4px; color: rgba(255, 255, 255, 0.72); }
.countdown .clock { display: flex; gap: 6px; margin-top: 8px; }
.countdown .clock span { min-width: 34px; text-align: center; background: rgba(0, 0, 0, 0.22); border-radius: 7px; padding: 3px 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.countdown .meta { font-size: 11px; color: rgba(255, 255, 255, 0.62); margin-top: 8px; display: flex; gap: 12px; }

/* 专区切换 */
.zone {
  display: flex; background: #fff; border-radius: 14px; padding: 4px; gap: 4px; margin-top: 14px;
  position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(15, 26, 60, 0.08);
}
.zone button { flex: 1; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.zone button.on { background: var(--ink); color: #fff; }

/* ---------- 首页 ---------- */
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 16px 6px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 calc(100% - 32px); scroll-snap-align: center; border-radius: 18px; padding: 18px; color: #fff; min-height: 124px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.banner::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.banner .tag { font-size: 10px; letter-spacing: 1px; background: rgba(255, 255, 255, 0.2); padding: 2px 8px; border-radius: 999px; width: fit-content; }
.banner h3 { font-size: 19px; line-height: 1.3; margin: 8px 0 6px; max-width: 80%; }
.banner p { font-size: 11.5px; opacity: 0.85; }
.banner .go { font-size: 11px; opacity: 0.9; display: flex; align-items: center; gap: 4px; }
.dots { display: flex; gap: 5px; justify-content: center; margin-top: 8px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #ced6ea; }
.dots i.on { width: 14px; border-radius: 999px; background: var(--primary); }

.task-card { margin: 0 16px; }
.task-top { display: flex; align-items: center; gap: 14px; }
.ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: conic-gradient(var(--primary) 0deg, var(--primary) var(--deg, 0deg), #e9edf8 var(--deg, 0deg)); position: relative; }
.ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring b { position: relative; z-index: 1; font-size: 14px; }
.task-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.task { background: #f8faff; border-radius: 12px; padding: 9px 8px; display: flex; flex-direction: column; gap: 2px; position: relative; border: 1px solid #eef2ff; }
.task.done { background: var(--green-soft); border-color: #d4f0e3; }
.task .t { font-size: 12px; font-weight: 600; display: flex; gap: 3px; align-items: center; }
.task .d { font-size: 10px; color: var(--muted); transform: scale(0.95); transform-origin: left; white-space: nowrap; }
.task .check { position: absolute; right: 6px; top: 6px; font-size: 10px; color: var(--green); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.entry { background: #fff; border-radius: 16px; padding: 14px 8px 12px; text-align: center; border: 1px solid rgba(232, 236, 245, 0.9); transition: transform 0.15s; }
.entry:active { transform: scale(0.97); }
.entry .ico { width: 42px; height: 42px; margin: 0 auto 7px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; }
.entry .t { font-size: 12.5px; font-weight: 600; }
.entry .s { font-size: 9.5px; color: var(--muted); margin-top: 1px; }

.course-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; scrollbar-width: none; }
.course-scroll::-webkit-scrollbar { display: none; }
.course-card { flex: 0 0 232px; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.course-cover { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 10px 12px; color: #fff; overflow: hidden; }
.course-cover::after { content: ""; position: absolute; right: -20px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.course-cover .badge { position: relative; z-index: 1; font-size: 10px; background: rgba(0, 0, 0, 0.2); padding: 2px 7px; border-radius: 999px; }
.course-body { padding: 10px 12px 12px; }
.course-body h4 { font-size: 14px; line-height: 1.35; height: 38px; }
.course-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.course-price b { color: var(--red); font-size: 18px; }
.course-price b i { font-size: 11px; font-style: normal; }
.course-price s { font-size: 11px; color: #aab2c5; }

.live-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.live-cover { width: 78px; height: 58px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; color: #fff; flex: 0 0 auto; }

.stats-strip { display: flex; justify-content: space-around; background: #fff; border-radius: 16px; padding: 14px 8px; border: 1px solid var(--line); }
.stats-strip div { text-align: center; }
.stats-strip b { font-size: 18px; display: block; font-variant-numeric: tabular-nums; }
.stats-strip span { font-size: 10px; color: var(--muted); }

/* ---------- 列表 / 卡片 ---------- */
.major-card { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.avatar-sq { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; flex: 0 0 auto; }
.major-card h4 { font-size: 14.5px; }
.mini-stats { display: flex; gap: 10px; font-size: 10.5px; color: var(--muted); margin-top: 5px; flex-wrap: wrap; }
.mini-stats b { color: var(--ink); font-weight: 600; }

.college-card { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 13px; border: 1px solid var(--line); margin-bottom: 10px; }
.logo-college { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; flex: 0 0 auto; letter-spacing: -0.5px; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }

/* 详情页 */
.detail-head { background: #fff; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.detail-title { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.info-block { background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.info-block h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.info-block h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.info-block p { font-size: 13px; color: #46506b; line-height: 1.75; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv > div { background: #f8faff; border-radius: 10px; padding: 9px 11px; }
.kv span { display: block; font-size: 10px; color: var(--muted); }
.kv b { font-size: 13px; }

.college-link { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.college-link:last-child { border-bottom: none; }
.score-chip { font-size: 16px; font-weight: 800; color: var(--primary); text-align: right; }
.score-chip span { display: block; font-size: 9px; color: var(--muted); font-weight: 400; }

/* 题库 */
.paper-card { background: #fff; border-radius: 16px; padding: 14px; border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden; }
.paper-card.locked { background: #fbfcff; }
.type-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.mock-card { background: linear-gradient(135deg, #1c2a5e, #2f54eb); color: #fff; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; margin-bottom: 14px; }
.mock-card::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.mock-card h3 { font-size: 18px; }
.mock-card p { font-size: 11.5px; opacity: 0.8; }
.mock-countdown { display: flex; gap: 6px; margin: 12px 0; }
.mock-countdown span { background: rgba(0, 0, 0, 0.22); border-radius: 7px; padding: 4px 9px; font-size: 13px; font-variant-numeric: tabular-nums; }

/* 做题 */
.practice-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 14px; }
.practice-top .bar { height: 4px; border-radius: 999px; background: #eef1f8; overflow: hidden; margin-top: 8px; }
.practice-top .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 999px; transition: width 0.3s; }
.q-card { padding: 18px 16px 20px; }
.q-type { font-size: 10px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.q-stem { font-size: 16.5px; line-height: 1.65; font-weight: 600; margin: 12px 0 6px; }
.q-score { font-size: 11px; color: var(--muted); }
.options { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; gap: 10px; padding: 13px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); align-items: flex-start; transition: all 0.15s; }
.option .k { width: 24px; height: 24px; border-radius: 50%; background: #f1f4fb; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.option .v { font-size: 14px; line-height: 1.55; padding-top: 1px; }
.option.on { border-color: var(--primary); background: var(--primary-soft); }
.option.on .k { background: var(--primary); color: #fff; }
.option.ok { border-color: var(--green); background: var(--green-soft); }
.option.ok .k { background: var(--green); color: #fff; }
.option.bad { border-color: var(--red); background: var(--red-soft); }
.option.bad .k { background: var(--red); color: #fff; }
.practice-actions { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; z-index: 20; }
#q-body { padding-bottom: 96px; }
.analysis { background: #f8faff; border-radius: 14px; padding: 14px; margin-top: 16px; border: 1px dashed #d6dff5; }
.analysis .a { font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.analysis p { font-size: 13px; color: #46506b; line-height: 1.7; }
.analysis.bad .a { color: var(--red); }

/* 答题卡 */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 18, 40, 0.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 78vh; overflow-y: auto; animation: up 0.25s ease; }
@keyframes up { from { transform: translateY(30px); opacity: 0.5; } }
.sheet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 14px 0 4px; }
.sheet-grid button { aspect-ratio: 1; border-radius: 10px; background: #f3f5fb; font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet-grid button.done { background: var(--primary); color: #fff; }
.sheet-grid button.cur { outline: 2px solid var(--orange); outline-offset: 1px; }

/* 结果 */
.result-hero { background: linear-gradient(160deg, #101c44, #22336f); color: #fff; padding: 24px 20px 26px; text-align: center; position: relative; overflow: hidden; }
.result-hero::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; left: 50%; top: -140px; transform: translateX(-50%); background: radial-gradient(circle, rgba(91, 124, 255, 0.5), transparent 65%); }
.score-ring { width: 132px; height: 132px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center; background: conic-gradient(var(--orange) 0deg, var(--orange) var(--deg, 0deg), rgba(255, 255, 255, 0.16) var(--deg, 0deg)); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #16234f; }
.score-ring .num { position: relative; z-index: 1; font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.score-ring .num small { font-size: 11px; font-weight: 500; opacity: 0.7; display: block; letter-spacing: 0; margin-top: 3px; }
.result-metrics { display: flex; justify-content: space-around; margin-top: 14px; position: relative; z-index: 1; }
.result-metrics b { display: block; font-size: 17px; }
.result-metrics span { font-size: 10px; opacity: 0.65; }
.review-item { background: #fff; border-radius: 16px; padding: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.review-item .head { display: flex; gap: 8px; align-items: flex-start; }
.review-item .idx { width: 22px; height: 22px; border-radius: 7px; background: #f1f4fb; font-size: 11px; display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; font-weight: 600; }
.review-item .stem { font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.review-ans { display: flex; gap: 8px; font-size: 12px; margin-top: 8px; flex-wrap: wrap; }
.review-ans span { background: #f8faff; border-radius: 7px; padding: 3px 8px; }

/* 我的 */
.profile-hero { background: linear-gradient(160deg, #101c44, #24356f); padding: 22px 18px 54px; color: #fff; position: relative; overflow: hidden; }
.profile-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 69, 0.32), transparent 65%); }
.profile-user { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(140deg, #5b7cff, #2f54eb); display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; border: 2px solid rgba(255, 255, 255, 0.3); }
.member-card { margin: -38px 16px 0; position: relative; z-index: 2; background: linear-gradient(120deg, #1d1a15, #3b3122); color: #f5d9a6; border-radius: 18px; padding: 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 14px 30px rgba(30, 24, 12, 0.25); overflow: hidden; }
.member-card::after { content: ""; position: absolute; right: -20px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(245, 217, 166, 0.08); }
.member-card .t { font-size: 15px; font-weight: 700; }
.member-card .s { font-size: 10.5px; opacity: 0.7; margin-top: 3px; }
.member-card .go { font-size: 11px; background: rgba(245, 217, 166, 0.15); border: 1px solid rgba(245, 217, 166, 0.3); padding: 4px 10px; border-radius: 999px; color: #f5d9a6; }
.menu { background: #fff; border-radius: 18px; margin: 14px 16px; overflow: hidden; border: 1px solid var(--line); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f3f5fa; font-size: 14px; }
.menu-item:last-child { border-bottom: none; }
.menu-item .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: #f6f8fd; }
.menu-item .arrow { margin-left: auto; color: #c3cadb; font-size: 15px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px; }
.stat-cards > div { background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center; border: 1px solid var(--line); }
.stat-cards b { display: block; font-size: 18px; }
.stat-cards span { font-size: 10px; color: var(--muted); }

/* 会员 */
.member-hero { background: linear-gradient(150deg, #191510, #3d3222 70%, #59462c); color: #f5d9a6; padding: 24px 18px 30px; position: relative; overflow: hidden; }
.member-hero h2 { font-size: 24px; letter-spacing: -0.5px; }
.member-hero p { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.member-hero .price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.member-hero .price b { font-size: 36px; color: #ffe0a8; letter-spacing: -1px; }
.member-hero .price s { font-size: 13px; opacity: 0.5; }
.benefit { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; font-size: 13px; color: #3e465e; }
.benefit .dot { color: var(--green); font-weight: 800; }

/* 志愿 */
.hero-sm { background: linear-gradient(150deg, #101c44, #253872); color: #fff; padding: 18px 16px 22px; }
.hero-sm h2 { font-size: 21px; letter-spacing: -0.4px; }
.v-group-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-weight: 700; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.chong { background: var(--red); } .dot.wen { background: var(--primary); } .dot.bao { background: var(--green); }
.tag-risk { font-size: 10px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.risk-冲刺 { background: var(--red-soft); color: var(--red); }
.risk-稳妥 { background: var(--primary-soft); color: var(--primary); }
.risk-保底 { background: var(--green-soft); color: var(--green); }
.prob { height: 4px; border-radius: 999px; background: #eef1f8; overflow: hidden; margin-top: 6px; }
.prob i { display: block; height: 100%; border-radius: 999px; background: var(--green); }

/* tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  display: flex; z-index: 40; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button { flex: 1; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9aa3b8; font-size: 10px; }
.tabbar .ico { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: 0.55; }
.tabbar button.on { color: var(--primary); font-weight: 600; }
.tabbar button.on .ico { filter: none; opacity: 1; }

/* 子页头 */
.navbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.navbar .back { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: #f4f6fc; }
.navbar .title { font-size: 15.5px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar .act { font-size: 12px; color: var(--primary); }

/* modal & toast */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 15, 35, 0.55); display: flex; align-items: center; justify-content: center; padding: 26px; backdrop-filter: blur(3px); }
.modal-card { background: #fff; border-radius: 22px; width: 100%; max-width: 350px; padding: 22px 20px; position: relative; animation: pop 0.2s ease; max-height: 84vh; overflow-y: auto; }
@keyframes pop { from { transform: scale(0.95); opacity: 0.5; } }
.modal-card .close { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #f3f5fb; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.modal-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px); background: rgba(15, 26, 60, 0.92); color: #fff; font-size: 12.5px; padding: 9px 16px; border-radius: 999px; z-index: 200; opacity: 0; pointer-events: none; transition: all 0.25s; max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 620px) {
  .stage { padding: 22px 0; }
  .app { min-height: calc(100vh - 44px); border-radius: 28px; overflow: hidden; }
  .app::after { content: ""; }
  .tabbar { border-radius: 0 0 28px 28px; }
}
