/* ============================================================
 * BIC 学业规划系统 · 视觉系统
 * 浅色底 + 蓝色主色；报告区域沿用浅色纸质风格
 * ============================================================ */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #eef2f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.2);
  --text: #111827;
  --text-2: #475569;
  --text-3: #7b8798;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --violet: #7c3aed;
  --pink: #db2777;
  --amber: #b45309;
  --red: #dc2626;
  --green: #059669;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.22);
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --paper: #fbfaf7;
  --paper-ink: #1d2433;
  --paper-ink-2: #4b5566;
  --paper-line: #e6e2d9;
  --paper-brand: #2563eb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* 背景光晕 */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(ellipse at 20% -10%, #dbeafe 0%, transparent 55%),
  radial-gradient(ellipse at 90% 10%, #ede9fe 0%, transparent 50%), var(--bg); }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: #93c5fd; left: -140px; top: 30%; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: #bfdbfe; right: -120px; top: -80px; }
.bg-orbs span:nth-child(3) { width: 420px; height: 420px; background: #c4b5fd; right: 20%; bottom: -220px; opacity: .16; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 32px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb 50%, #1d4ed8);
  box-shadow: 0 6px 20px -6px rgba(37, 99, 235, .45);
}
.brand-logo { height: 30px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--border-strong); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: .08em; }
.brand-text small { font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; }

.steps { display: flex; gap: 4px; flex: none; }
.step {
  display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; color: var(--text-3);
  font-size: 13px; transition: all .25s ease;
}
.step i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--text-2);
}
.step.active { color: var(--text); background: var(--surface); }
.step.active i { background: linear-gradient(135deg, var(--brand), #60a5fa); color: #fff; border-color: transparent; }
.step.done i { background: rgba(59, 130, 246, .18); color: var(--brand); border-color: rgba(59, 130, 246, .4); }
.step.done i::after { content: "✓"; }
.step.done i { font-size: 0; }
.step.done i::after { font-size: 11px; }

/* ============ 页面切换 ============ */
.screen { display: none !important; }
.screen.active { display: block !important; animation: fadeUp .45s cubic-bezier(.2,.7,.2,1); }
#screen-home { display: none !important; }
#screen-home.active { display: grid !important; animation: fadeUp .45s cubic-bezier(.2,.7,.2,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

main { padding: 0 0 80px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 720px; }

.btn {
  font-family: inherit; font-size: 15px; font-weight: 600;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  padding: 11px 20px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #1d4ed8);
  box-shadow: 0 10px 26px -12px rgba(37, 99, 235, .65);
}
.btn.primary:hover { box-shadow: 0 14px 32px -12px rgba(37, 99, 235, .8); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 18px; cursor: pointer; flex: none; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }

/* ============ 首页 ============ */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 84px 40px 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .1em; color: var(--brand);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, .3); background: rgba(59, 130, 246, .07);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.12;
  margin: 22px 0 20px; letter-spacing: .01em; font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 17px; color: var(--text-2); max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 26px; font-weight: 700; background: linear-gradient(120deg, #0f172a, #1d4ed8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 12.5px; color: var(--text-3); letter-spacing: .04em; }

.hero-cards { position: relative; display: flex; flex-direction: column; gap: 16px; }
.mini-card {
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease;
}
.mini-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.mini-card.c2 { margin-left: 34px; }
.mini-card.c3 { margin-left: 68px; }
.mini-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(59, 130, 246, .12); margin-bottom: 12px;
}
.c2 .mini-icon { background: rgba(139, 92, 246, .14); }
.c3 .mini-icon { background: rgba(244, 114, 182, .14); }
.mini-card h3 { margin: 0 0 4px; font-size: 16px; }
.mini-card p { margin: 0; font-size: 13px; color: var(--text-2); }
.mini-bar { height: 6px; border-radius: 6px; background: rgba(15,23,42,.08); margin-top: 14px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #60a5fa); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chips span, .mbti-dots span {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: rgba(124, 58, 237, .1); color: #5b21b6;
}
.mbti-dots { display: flex; gap: 6px; margin-top: 14px; }
.mbti-dots span { background: rgba(219, 39, 119, .09); color: #9d174d; letter-spacing: .08em; }

/* ============ 页面头 & 表单 ============ */
.page-head { margin: 56px 0 28px; }
.kicker { font-size: 12px; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; }
.page-head h2 { font-family: var(--serif); font-size: 34px; margin: 8px 0 6px; }
.page-head p { color: var(--text-2); margin: 0; }

.card {
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.form-card { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { font-size: 14.5px; font-weight: 600; }
.field > span em { color: var(--pink); font-style: normal; }
.field small { color: var(--text-3); font-size: 12.5px; }
.field input[type=text], .field input[type=number] {
  font-family: inherit; font-size: 16px; color: var(--text);
  background: #ffffff; border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 13px 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.field input.invalid { border-color: var(--red); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button {
  font-family: inherit; font-size: 14px; color: var(--text-2); cursor: pointer;
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; transition: all .18s;
}
.segmented button:hover { border-color: var(--border-strong); color: var(--text); }
.segmented button[aria-checked="true"] {
  background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.6); color: var(--brand); font-weight: 600;
}
.form-actions { display: flex; justify-content: space-between; padding-top: 6px; }

/* ============ 测试界面 ============ */
.test-shell {
  max-width: 860px; margin: 40px auto 0; padding: 0 28px;
  display: flex; flex-direction: column; min-height: calc(100vh - 180px);
}
body.in-test .test-shell { margin: 16px auto 0; min-height: calc(100vh - 100px); }
.test-head { display: flex; align-items: center; gap: 16px; }
.test-title { flex: 1; min-width: 0; }
.test-title h2 { margin: 0; font-size: 20px; }
.test-title p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.test-meta { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.test-meta b { color: var(--text); }
.progress { height: 5px; background: rgba(15,23,42,.08); border-radius: 5px; margin: 18px 0 0; overflow: hidden; }
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), #60a5fa 60%, var(--violet));
  border-radius: 5px; transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.test-body { flex: 1; padding: 42px 0 24px; }
.test-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 28px; border-top: 1px solid var(--border); }
.foot-tip { font-size: 12.5px; color: var(--text-3); }
.foot-tip.warn { color: var(--amber); }
.foot-actions { display: flex; gap: 10px; }

.question-enter { animation: qIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes qIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.q-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pill {
  font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 500;
  background: rgba(59,130,246,.1); color: var(--brand); border: 1px solid rgba(59,130,246,.25);
}
.pill.violet { background: rgba(124,92,246,.1); color: #5b21b6; border-color: rgba(124,92,246,.3); }
.pill.pink { background: rgba(219,39,119,.08); color: #9d174d; border-color: rgba(219,39,119,.25); }
.pill.gray { background: #f1f5f9; color: var(--text-2); border-color: var(--border); }

.q-prompt { font-size: clamp(20px, 2.6vw, 24px); font-weight: 600; line-height: 1.5; margin: 0 0 8px; white-space: pre-line; }
.q-zh {
  font-size: 15.5px; color: #0f766e; margin: 0 0 26px;
  padding: 10px 14px; border-left: 3px solid rgba(13,148,136,.45);
  background: rgba(13,148,136,.07); border-radius: 0 10px 10px 0; white-space: pre-line;
}
.q-sub { font-size: 14px; color: var(--text-3); margin: -2px 0 24px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  font-family: inherit; font-size: 16px; color: var(--text); cursor: pointer;
  padding: 16px 18px; border-radius: 14px;
  background: #ffffff; border: 1px solid var(--border);
  transition: all .18s ease;
}
.option:hover { background: #f1f6ff; border-color: var(--border-strong); }
.option .key {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--text-2); background: #f1f5f9;
  border: 1px solid var(--border); transition: all .18s;
}
.option.selected { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.65); }
.option.selected .key { background: var(--brand); color: #fff; border-color: transparent; }
.option.correct { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.6); }
.option.wrong { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.55); }
.option .ico { font-size: 20px; width: 26px; text-align: center; flex: none; }
.option .label-wrap { display: flex; flex-direction: column; gap: 2px; }
.option .desc { font-size: 12.5px; color: var(--text-3); }

/* 数值输入（学术测试） */
.numeric-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.numeric-row input {
  font-family: inherit; font-size: 26px; font-weight: 700; color: var(--text); width: 160px;
  background: #ffffff; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 16px; outline: none;
}
.numeric-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.numeric-row span { color: var(--text-3); font-size: 14px; }

/* 多选卡片网格（规划测试） */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tag-card {
  font-family: inherit; text-align: left; cursor: pointer; color: var(--text);
  padding: 14px 16px; border-radius: 13px;
  background: #ffffff; border: 1px solid var(--border);
  transition: all .18s ease; display: flex; flex-direction: column; gap: 3px;
}
.tag-card:hover { background: #f1f6ff; border-color: var(--border-strong); }
.tag-card.selected { background: rgba(124,92,246,.09); border-color: rgba(124,92,246,.65); }
.tag-card .t { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.tag-card .d { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.tag-card[disabled] { opacity: .38; cursor: not-allowed; }

/* MBTI 量表 */
.likert { display: flex; flex-direction: column; gap: 10px; }
.likert button {
  font-family: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 13px;
  background: #ffffff; border: 1px solid var(--border);
  transition: all .18s;
}
.likert button:hover { background: #f1f6ff; }
.likert button .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-3); flex: none; transition: all .18s; }
.likert button[aria-checked="true"] { background: rgba(219,39,119,.08); border-color: rgba(219,39,119,.55); }
.likert button[aria-checked="true"] .dot { border-color: var(--pink); background: radial-gradient(circle, var(--pink) 0 45%, transparent 50%); }

.mbti-statement { font-size: clamp(22px, 3vw, 28px); font-family: var(--serif); line-height: 1.5; margin: 8px 0 30px; }

/* ============ 过渡页 ============ */
.gen-wrap { max-width: 560px; margin: 14vh auto 0; text-align: center; padding: 0 28px; }
.gen-ring {
  width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--brand), transparent 60%);
  display: grid; place-items: center; animation: spin 1.4s linear infinite;
}
.gen-ring .gen-core { animation: spin 1.4s linear infinite reverse; }
.gen-core {
  width: 78px; height: 78px; border-radius: 50%; background: #ffffff;
  display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 20px; letter-spacing: .06em; color: var(--brand);
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-wrap h2 { font-size: 22px; margin: 0 0 26px; }
.gen-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 340px; margin: 0 auto; }
.gen-steps li { font-size: 14px; color: var(--text-3); display: flex; align-items: center; gap: 12px; transition: color .3s; }
.gen-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; transition: all .3s; }
.gen-steps li.on { color: var(--text); }
.gen-steps li.on::before { border-color: var(--brand); animation: pulse 1s ease infinite; }
.gen-steps li.ok { color: var(--brand); }
.gen-steps li.ok::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--bg); }
@keyframes pulse { 50% { transform: scale(.85); } }

/* ============ 提示 ============ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: #ffffff; color: var(--text); font-size: 14px; padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
 * 报告（纸质风格）
 * ============================================================ */
.report-toolbar {
  position: sticky; top: 67px; z-index: 40;
  max-width: 1000px; margin: 20px auto 0; padding: 10px 14px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 16px;
}
.toolbar-title { flex: 1; font-size: 15px; font-weight: 600; }
.toolbar-title small { color: var(--text-3); font-weight: 400; margin-left: 8px; font-size: 12px; }
.toolbar-actions { display: flex; gap: 8px; }

.report {
  max-width: 1000px; margin: 20px auto 60px; padding: 0 14px;
  color: var(--paper-ink); font-size: 14.5px;
}
.paper {
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(15,23,42,.28);
}
.paper-section { padding: 44px 52px; border-bottom: 1px solid var(--paper-line); }
.paper-section:last-child { border-bottom: 0; }
.paper .sec-kicker {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper-brand); font-weight: 700;
}
.paper h2 { font-family: var(--serif); font-size: 28px; margin: 6px 0 8px; color: var(--paper-ink); line-height: 1.3; }
.paper h3 { font-size: 16px; margin: 0 0 10px; color: var(--paper-ink); }
.paper p { color: var(--paper-ink-2); margin: 0 0 12px; line-height: 1.75; }
.paper .muted { color: #64748b; font-size: 12.5px; }

/* 封面 */
.cover {
  position: relative; padding: 60px 52px 48px; color: #0f172a;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(147,197,253,.4), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(167,139,250,.28), transparent 55%),
    #eef5ff;
}
.cover-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cover-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; letter-spacing: .1em; }
.cover-logo { height: 30px; width: auto; display: block; filter: none; }
.cover-brand span { font-family: var(--font); font-size: 15px; letter-spacing: .04em; }
.cover-date { font-size: 12.5px; color: #52647a; text-align: right; line-height: 1.7; }
.cover h1 { font-family: var(--serif); font-size: 44px; line-height: 1.2; margin: 54px 0 10px; font-weight: 700; }
.cover h1 span { color: #1d4ed8; }
.cover-sub { font-size: 15px; color: #52647a; margin: 0 0 44px; }
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cover-cell { background: rgba(255,255,255,.72); border: 1px solid rgba(37,99,235,.14); border-radius: 14px; padding: 16px; }
.cover-cell small { display: block; font-size: 11.5px; color: #52647a; margin-bottom: 4px; letter-spacing: .04em; }
.cover-cell b { font-size: 17px; font-weight: 600; }
.cover-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(37,99,235,.16); font-size: 12px; color: #52647a; }

/* 目录 / 摘要 */
.exec { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 22px; }
.exec-card { border: 1px solid var(--paper-line); border-radius: 14px; padding: 18px; background: #fff; }
.exec-card .t { font-size: 12px; color: var(--paper-brand); font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; }
.exec-card .big { font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--paper-ink); margin-bottom: 6px; }
.exec-card .s { font-size: 12.5px; color: #6b7485; line-height: 1.6; }

/* 评分条 */
.score-list { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 10px; }
.score-row { display: grid; grid-template-columns: 150px 1fr 64px; gap: 18px; align-items: center; }
.score-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.score-name .ico { font-size: 17px; }
.score-name small { display: block; font-weight: 400; font-size: 11px; color: #64748b; }
.score-track { height: 10px; background: #ece8df; border-radius: 6px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 6px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.fill-good { background: linear-gradient(90deg, #2563eb, #2563eb); }
.fill-mid { background: linear-gradient(90deg, #b45309, #f59e0b); }
.fill-weak { background: linear-gradient(90deg, #b91c1c, #f87171); }
.score-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.score-val small { display: block; font-weight: 500; font-size: 11px; color: #64748b; }

/* 诊断双栏 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.panel { border: 1px solid var(--paper-line); border-radius: 14px; padding: 20px 22px; background: #fff; }
.panel.warm { background: #fff8f1; border-color: #f6ddc6; }
.panel.cool { background: #eff6ff; border-color: #d6e5fd; }
.panel h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.panel ul { margin: 0; padding-left: 18px; }
.panel li { margin: 6px 0; color: var(--paper-ink-2); font-size: 13.5px; line-height: 1.6; }
.panel li b { color: var(--paper-ink); }

.quote { border-left: 3px solid var(--paper-brand); padding: 4px 0 4px 16px; margin: 18px 0; color: var(--paper-ink-2); font-size: 14px; line-height: 1.8; }

/* 题目回顾 */
.review-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.review-item { border: 1px solid var(--paper-line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.review-item.ok { border-left: 3px solid #2563eb; }
.review-item.no { border-left: 3px solid #f87171; background: #fff7f7; }
.review-item summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item .mark { font-weight: 700; width: 16px; flex: none; }
.review-item.ok .mark { color: #2563eb; }
.review-item.no .mark { color: #b91c1c; }
.review-item .text { flex: 1; color: var(--paper-ink); }
.review-item .topic { font-size: 11px; color: #64748b; white-space: nowrap; }
.review-item .detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--paper-line); color: var(--paper-ink-2); line-height: 1.7; }
.review-item .detail b { color: var(--paper-ink); }

/* 专业路径 */
.path-hero {
  display: flex; gap: 22px; align-items: center; margin: 22px 0 8px;
  padding: 24px; border-radius: 16px;
  background: linear-gradient(120deg, #eaf2ff, #dbeafe); color: #0f172a; border: 1px solid #c7ddfb;
}
.path-hero .big-ico {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 30px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(37,99,235,.2); flex: none;
}
.path-hero h3 { margin: 0; color: #0f172a; font-family: var(--serif); font-size: 24px; }
.path-hero .en { font-size: 12.5px; color: #52647a; letter-spacing: .04em; }
.path-hero p { color: #33475f; margin: 6px 0 0; font-size: 13.5px; }
.fit-badge { margin-left: auto; text-align: center; flex: none; }
.fit-badge b { display: block; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.fit-badge.good b { background: rgba(5,150,105,.12); color: #047857; }
.fit-badge.mid b { background: rgba(180,83,9,.12); color: #b45309; }
.fit-badge.weak b { background: rgba(220,38,38,.1); color: #b91c1c; }
.fit-badge span { font-size: 11.5px; color: #52647a; }

.reason-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.reason-chip { font-size: 12.5px; padding: 5px 11px; border-radius: 8px; background: #eff6ff; border: 1px solid #d6e5fd; color: #1d4ed8; }

.alt-majors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.alt-major { border: 1px solid var(--paper-line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.alt-major .n { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.alt-major .m { font-size: 11.5px; color: #64748b; margin-top: 2px; }

/* 选科表 */
.subject-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 18px; border: 1px solid var(--paper-line); border-radius: 12px; overflow: hidden; }
.subject-table th, .subject-table td { padding: 12px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--paper-line); }
.subject-table th { background: #f5f2eb; font-size: 12px; color: #6b7485; font-weight: 600; letter-spacing: .04em; }
.subject-table tr:last-child td { border-bottom: 0; }
.subject-table td:first-child { font-weight: 600; white-space: nowrap; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; font-weight: 600; }
.tag.req { background: #fee2e2; color: #b91c1c; }
.tag.help { background: #fef3c7; color: #92400e; }
.tag.strong { background: #d1fae5; color: #065f46; }

/* 国家卡 */
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.country-card { border: 1px solid var(--paper-line); border-radius: 12px; padding: 16px; background: #fff; }
.country-card .flag { font-size: 22px; margin-bottom: 6px; }
.country-card b { font-size: 15px; }
.country-card p { font-size: 12.5px; margin: 6px 0 0; color: #6b7485; line-height: 1.6; }
.country-card.primary { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* 院校 */
.uni-group { margin-top: 18px; }
.uni-group h4 { font-size: 13px; color: #6b7485; letter-spacing: .06em; margin: 0 0 8px; }
.uni-row { display: grid; grid-template-columns: 1fr 110px 200px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--paper-line); font-size: 13.5px; }
.uni-row:last-child { border-bottom: 0; }
.uni-name { font-weight: 600; }
.uni-req { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; color: var(--paper-brand); font-size: 13px; }
.uni-note { font-size: 12.5px; color: #64748b; }

/* 时间线 */
.timeline { margin: 18px 0 0; padding: 0; list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--paper-line); }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--paper-brand); }
.timeline li b { display: block; font-size: 14px; }
.timeline li span { font-size: 13px; color: var(--paper-ink-2); line-height: 1.6; }

/* MBTI */
.mbti-hero { display: flex; gap: 24px; align-items: center; margin: 20px 0; }
.mbti-code {
  font-family: var(--serif); font-size: 46px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  color: var(--paper-ink);
}
.mbti-code span { color: var(--paper-brand); }
.mbti-title { font-size: 14px; color: #6b7485; margin-top: 6px; }
.mbti-scale { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.dim { display: grid; grid-template-columns: 90px 1fr 90px; gap: 12px; align-items: center; font-size: 12.5px; }
.dim .l, .dim .r { color: #64748b; display: flex; align-items: center; gap: 6px; }
.dim .r { justify-content: flex-end; }
.dim .l.win, .dim .r.win { color: var(--paper-ink); font-weight: 700; }
.dim .bar { position: relative; height: 8px; border-radius: 6px; background: #ece8df; overflow: hidden; }
.dim .bar .a { position: absolute; left: 0; top: 0; bottom: 0; background: #93c5fd; }
.dim .bar .b { position: absolute; right: 0; top: 0; bottom: 0; background: #6ea8fe; }

.persona { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }

.disclaimer { font-size: 11.5px; color: #64748b; line-height: 1.7; }

/* 带 !important 的显示规则会压过浏览器默认的 [hidden]；统一让 hidden 属性生效，避免隐藏屏或提示被显示出来。 */
[hidden] { display: none !important; }
.storage-notice { max-width: 920px; margin: 16px auto; padding: 12px 16px; border-left: 3px solid #b45309; color: #78350f; background: #fffbeb; font-size: 13px; }
#profileNotice { line-height: 1.65; overflow-wrap: anywhere; }
#profileNotice .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#profileNotice .btn { max-width: 100%; white-space: normal; justify-content: center; }
#profileNotice .btn.ghost { color: #78350f; background: #fffdf5; border-color: #9a6a25; }
#profileNotice .btn.ghost:hover { color: #5b280b; background: #fef0c7; border-color: #78350f; }
#profileNotice .btn.primary { color: #fff; background: #1d4ed8; border-color: #1e40af; }
#profileNotice .btn.primary:hover { background: #1e40af; }
.report-editor { max-width: 920px; margin: 18px auto; padding: 24px; background: #fff; border: 1px solid #bfdbfe; border-radius: 12px; color: #18263c; }
.editor-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.editor-heading h2 { margin: 0; font-size: 21px; }
.report-editor p { font-size: 13px; line-height: 1.7; color: #506078; }
.report-editor .btn.ghost { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
.report-editor .btn.ghost:hover { background: #e2e8f0; }
.report .cover p.cover-sub { color: #52647a; }
.dim > p { grid-column: 1 / -1; margin: 0; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.editor-fields label, .editor-text-label { display: block; font-size: 13px; font-weight: 600; }
.report-editor input, .report-editor select, .report-editor textarea { width: 100%; border: 1px solid #bac8da; border-radius: 7px; padding: 10px 12px; color: #18263c; background: #fff; font: inherit; }
.editor-fields input, .editor-fields select { margin-top: 6px; }
.report-editor textarea { line-height: 1.7; resize: vertical; margin-top: 8px; }
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.editor-history { margin-top: 12px; border-top: 1px solid #d9e3ef; padding-top: 15px; }
.editor-history article { padding: 14px 0; border-bottom: 1px solid #d9e3ef; font-size: 13px; }
.editor-history article details { margin: 8px 0; }
.editor-history pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 12px; background: #f2f6fc; font: inherit; }
.editor-history summary { cursor: pointer; }
.editor-notice, .report-coverage { padding: 12px 14px; background: #eff6ff; border-left: 3px solid #3b82f6; }
.advice-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.advisor-mark, .advisor-label { color: #2563eb; display: inline-block; margin-bottom: 8px; font-size: 12px; }
.uni-name small { display: block; color: #64748b; font-size: 11px; font-weight: 400; margin-top: 4px; }
.uni-note a { color: #2563eb; text-decoration: underline; }
.btn:focus-visible, .report-editor input:focus-visible, .report-editor select:focus-visible, .report-editor textarea:focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }

/* 本机报告库与现有测评共用蓝色按钮、深色卡片。 */
.library-wrap { max-width: 1064px; padding-top: 36px; }
.library-heading, .library-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.library-heading h2 { margin: 6px 0 0; font-size: 30px; }
.library-privacy { margin: 20px 0; padding: 16px 18px; color: #1e3a5f; border-left: 3px solid var(--brand); background: rgba(37,99,235,.06); border-radius: 0 10px 10px 0; line-height: 1.8; font-size: 14px; }
.library-tools, .library-import-actions, .library-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.library-help { color: var(--text-2); font-size: 12.5px; line-height: 1.8; }
.library-file-button { position: relative; overflow: hidden; }
.library-file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.library-file-button:focus-within { outline: 3px solid #3b82f6; outline-offset: 3px; }
.library-file-button.is-disabled { opacity: .5; cursor: not-allowed; }
.library-status { min-height: 24px; color: var(--brand); font-size: 14px; overflow-wrap: anywhere; }
.library-status.is-error, .library-inline-status.is-error { color: #b91c1c; }
.library-inline-status { max-width: 972px; margin: 12px auto; padding: 0 14px; font-size: 13px; color: var(--brand); overflow-wrap: anywhere; }
.one-time-report-notice { max-width: 972px; margin: 12px auto 0; padding: 12px 16px; border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; background: #fffbeb; color: #78350f; font-size: 14px; line-height: 1.7; }
@media (max-width: 640px) { .one-time-report-notice { margin: 12px; } }
.library-import { padding: 20px; background: #ffffff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); margin: 16px 0 24px; }
.library-import h3 { margin: 0 0 10px; font-size: 18px; }
.library-import p { overflow-wrap: anywhere; font-size: 14px; }
.library-replace { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14px; }
.library-replace input { margin: 4px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--brand); }
.library-search-row { display: flex; align-items: flex-end; gap: 20px; justify-content: space-between; margin: 24px 0 18px; }
.library-search { flex: 1; max-width: 470px; font-size: 13px; color: var(--text-2); }
.library-search input { display: block; margin-top: 8px; width: 100%; min-width: 0; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); font: inherit; }
.library-search input:focus-visible, .library-replace input:focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }
#libraryCount { margin: 0 0 10px; color: var(--text-2); font-size: 13px; }
.library-list { display: grid; gap: 16px; }
.library-empty { margin: 0; padding: 28px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; }
.library-record { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.library-record-name { min-width: 0; font-size: 19px; margin: 0; font-weight: 600; }
.library-badge { padding: 3px 9px; border: 1px solid rgba(37,99,235,.2); border-radius: 7px; background: rgba(37,99,235,.07); color: #1d4ed8; font-size: 12px; flex: none; }
.library-record-id { color: var(--text-2); font-size: 12px; margin: 7px 0 14px; }
.library-record-details { display: grid; grid-template-columns: 68px 1fr 68px 1fr; gap: 6px 14px; font-size: 13px; margin: 0 0 16px; }
.library-record-details dt { color: var(--text-3); }
.library-record-details dd { margin: 0; min-width: 0; color: var(--text-2); }
.library-completion { color: var(--text-2); font-size: 13px; margin: 0 0 8px; }
.library-major { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.library-version { color: #b45309; font-size: 12px; }
.library-record-actions { justify-content: flex-end; }
@media (max-width: 640px) {
  .library-wrap { padding-top: 24px; }
  .library-heading h2 { font-size: 25px; }
  .library-privacy { padding: 12px 14px; font-size: 13px; }
  .library-tools { gap: 8px; }
  .library-tools .btn { padding: 9px 12px; }
  .library-search-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .library-search { max-width: none; }
  #libraryCount { margin: 0; }
  .library-record { padding: 18px; }
  .library-record-heading { align-items: flex-start; gap: 10px; }
  .library-record-details { grid-template-columns: 64px minmax(0,1fr); gap: 7px 12px; }
  .library-import { padding: 16px; }
  .library-record-actions { justify-content: flex-start; }
  .library-inline-status { margin: 12px; padding: 0; }
}

/* 账号报告服务：连接、资料选择与服务端详情分别呈现。 */
.cloud-wrap { max-width: 1064px; padding-top: 36px; padding-bottom: 48px; }
.cloud-heading, .cloud-account-row, .cloud-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cloud-heading h2 { margin: 0; font-size: 30px; }
.cloud-privacy { margin: 22px 0 16px; padding: 14px 18px; border-left: 3px solid var(--brand); background: rgba(37,99,235,.06); color: #1e3a5f; line-height: 1.8; font-size: 14px; }
.cloud-status { min-height: 24px; color: var(--brand); font-size: 14px; overflow-wrap: anywhere; }
.cloud-status.is-error { color: #b91c1c; }
.cloud-connect, .cloud-login, .cloud-upload, .cloud-detail { padding: 22px 24px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); margin: 18px 0; }
.cloud-connect p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.cloud-login { max-width: 520px; }
.cloud-login h3, .cloud-upload h3, .cloud-detail h3 { margin: 0 0 12px; font-size: 18px; }
.cloud-login label, .cloud-upload label { display: block; font-size: 13px; color: var(--text-2); margin: 16px 0; }
.cloud-login input, .cloud-upload select { display: block; margin-top: 8px; padding: 11px 13px; width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-2); color: var(--text); font: inherit; }
.cloud-login input:focus-visible, .cloud-upload select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.cloud-help { color: var(--text-2); font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cloud-account-row { border-bottom: 1px solid var(--border); padding: 8px 0 18px; margin-bottom: 22px; flex-wrap: wrap; }
#cloudAccount { margin: 0; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.cloud-upload { border-color: rgba(59,130,246,.4); }
.cloud-upload label { max-width: 600px; }
.cloud-list-heading { margin: 26px 0 14px; }
.cloud-list-heading h3 { font-size: 20px; margin: 0; }
#cloudCount { font-size: 13px; color: var(--text-2); margin: 0; }
.cloud-list { display: grid; gap: 12px; }
.cloud-record { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; overflow-wrap: anywhere; }
.cloud-record h4 { margin: 0 0 5px; font-size: 18px; font-weight: 600; }
.cloud-record p { font-size: 13px; color: var(--text-2); margin: 6px 0; }
.cloud-record .cloud-actions { margin-top: 16px; }
.cloud-detail { border-color: rgba(37,99,235,.3); }
#cloudDetailSummary { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
#cloudDetailSummary p { margin: 6px 0; }
.cloud-version { color: #b45309; font-size: 13px; overflow-wrap: anywhere; }
.cloud-empty { padding: 24px; margin: 0; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); }
@media (max-width: 640px) {
  .cloud-wrap { padding-top: 24px; }
  .cloud-heading h2 { font-size: 25px; }
  .cloud-privacy { padding: 12px 14px; font-size: 13px; }
  .cloud-connect, .cloud-login, .cloud-upload, .cloud-detail { padding: 18px; }
  .cloud-record { padding: 18px; }
  .cloud-account-row { align-items: flex-start; }
  .cloud-list-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .cloud-actions { gap: 8px; }
}

/* 打印 */
.print-cover { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; color: #000; }
  .bg-orbs, .topbar, .no-print, .toast, #printCover { display: none !important; }
  main { padding: 0; }
  .screen { display: none !important; }
  #screen-report { display: block !important; animation: none; }
  .report { max-width: none; margin: 0; padding: 0; font-size: 12px; }
  .paper { box-shadow: none; border-radius: 0; }
  .paper-section, .cover { padding: 28px 30px; }
  .cover { break-after: page; }
  .paper-section { break-inside: auto; }
  .paper-section > h2, .paper-section > .sec-kicker { break-after: avoid; }
  /* 附录：逐题回顾在打印时收紧，避免大量空白 */
  .appendix .review-item { padding: 7px 12px; font-size: 12px; }
  .appendix .review-grid { gap: 6px; }
  .cover { min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel, .exec-card, .country-card, .alt-major, .path-hero, .review-item, .score-row, .score-fill, .tag, .fit-badge b, .print-keep {
    -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid;
  }
  .paper h2 { break-after: avoid; }
  .score-fill { transition: none !important; }
  .two-col, .exec, .country-grid, .alt-majors, .persona, .cover-grid { break-inside: avoid; }
}

.owner-share { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-strong); }
.owner-share select, .owner-share input { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 8px 0 16px; }
.owner-share .cloud-actions { margin: 12px 0; }
.share-preview { margin: 16px 0; padding: 16px; background: #f3f7ff; border-left: 3px solid #5797ff; overflow-wrap: anywhere; }
.share-preview p { white-space: pre-wrap; }
#editOwnerPreview pre, #editOwnerAudit pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.owner-share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
.owner-share-row p { flex: 1 1 240px; overflow-wrap: anywhere; }
.advice-preview { margin-top: 18px; min-width: 0; }
.advice-choice { margin: 16px 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 14px; min-width: 0; }
.owner-share .advice-select { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.owner-share .advice-select input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.advice-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.advice-compare h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.advice-compare p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
@media (max-width: 600px) { .advice-compare { grid-template-columns: minmax(0, 1fr); } .advice-choice { padding: 12px; } }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .mini-card.c2, .mini-card.c3 { margin-left: 0; }
  .hero-cards { flex-direction: row; overflow-x: auto; padding-bottom: 8px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scroll-snap-type: x mandatory; }
  .hero-cards > * { scroll-snap-align: start; flex: 0 0 auto; }
  .hero-cards::-webkit-scrollbar { display: none; }
  .mini-card { min-width: 250px; width: 250px; }
  .mini-card.c2, .mini-card.c3 { margin-top: 0; width: 250px; }
  .steps .step.done span, .steps .step.active span { display: inline; }
  .steps .step span { display: none; }
  .steps .step { padding: 4px 6px; }
  .exec, .two-col, .persona, .country-grid, .alt-majors { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .report-editor { margin: 12px; padding: 18px; }
  .editor-fields { grid-template-columns: 1fr; }
  .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .report-toolbar { flex-wrap: wrap; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .brand-text small { display: none; }
  .wrap { padding: 0 18px; }
  .hero { padding: 36px 18px 20px; }
  .hero-stats { gap: 22px; }
  .card { padding: 22px; }
  .test-shell { padding: 0 16px; margin-top: 22px; }
  .test-body { padding: 28px 0 16px; }
  .q-prompt { font-size: 19px; }
  .paper-section, .cover { padding: 30px 22px; }
  .cover { padding: 34px 22px 30px; }
  .cover h1 { font-size: 32px; margin-top: 34px; }
  .cover-brand { gap: 8px; }
  .cover-logo { height: 24px; }
  .cover-brand span { font-size: 12.5px; letter-spacing: .02em; }
  .cover-date { font-size: 11px; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
  .score-row { grid-template-columns: 110px 1fr 50px; gap: 10px; }
  .steps { gap: 2px; }
  .steps .step { padding: 2px; }
  .brand { gap: 8px; }
  .brand-text { display: none; }
  .brand-divider { display: none; }
  .brand-logo { height: 22px; }
  .brand { overflow: hidden; }
  .topbar { gap: 10px; padding: 10px 14px; }
  .topbar { position: relative; }
  .topbar .steps { gap: 2px; }
  .topbar .steps .step { gap: 4px; padding: 2px 4px; font-size: 11.5px; }
  .topbar .steps .step.active span, .topbar .steps .step.active + .step span { display: inline; }
  .topbar .steps .step.done { font-size: 0; gap: 0; }
  .topbar .steps .step.done span { display: none; }
  .topbar .steps .step i { position: relative; }
  .topbar .steps .step.done > i { font-size: 0; }
  .topbar .steps .step.done i::after { content: "✓"; display: grid; position: absolute; inset: 0; place-items: center; font-size: 10px; }
  .steps .step i { width: 17px; height: 17px; font-size: 10px; }
  .report-toolbar { top: 58px; margin: 12px 12px 0; padding: 8px 10px; gap: 8px; }
  .report-toolbar .toolbar-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .report-toolbar .btn.sm { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .toolbar-title small { display: none; }
  .uni-row { grid-template-columns: 1fr 90px; }
  .uni-note { display: block; grid-column: 1 / -1; }
  .path-hero { flex-wrap: wrap; }
  .fit-badge { margin-left: 0; }
}

/* ============ 专业规划小游戏 ============ */
.pill.green { background: rgba(5,150,105,.08); color: #047857; border-color: rgba(5,150,105,.25); }
.game-mount { margin-top: 6px; }
.g-sorter { display: flex; flex-direction: column; gap: 14px; }
.g-pool {
  display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; padding: 12px;
  border-radius: var(--radius-sm); border: 1px dashed var(--border-strong);
  background: #f8fafc; transition: all .18s ease;
}
.g-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-lane {
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  padding: 10px; min-height: 130px; transition: all .18s ease;
}
.g-lane.targetable { border-style: dashed; border-color: rgba(59,130,246,.5); cursor: pointer; }
.g-lane.over, .g-pool.over { border-color: var(--brand); background: rgba(59,130,246,.1); box-shadow: 0 0 0 3px rgba(59,130,246,.12) inset; }
.g-lane-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13.5px; }
.g-lane-head b { font-size: 14px; }
.g-lane-head .g-desc, .g-card .g-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.g-lane-body { display: flex; flex-wrap: wrap; gap: 7px; min-height: 70px; }
.g-empty { font-size: 12px; color: var(--text-3); }
.g-card {
  font-family: inherit; font-size: 13px; color: var(--text); cursor: grab;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px;
  border-radius: 10px; background: #ffffff; border: 1px solid var(--border-strong);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  touch-action: manipulation;
}
.g-card:hover { background: #f1f6ff; }
.g-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.g-card[aria-pressed="true"] { border-color: var(--brand); background: rgba(59,130,246,.18); box-shadow: 0 6px 18px -8px rgba(59,130,246,.8); transform: translateY(-1px); }
.g-card.dragging { opacity: .45; cursor: grabbing; }
.g-card.settle { animation: g-settle .24s ease; }
.g-card .g-icon { font-size: 15px; }
.g-card .g-desc { flex-basis: 100%; }
.g-hint { font-size: 12.5px; color: var(--text-3); margin: 2px 0 0; min-height: 18px; }
.g-sorter.done .g-hint { color: var(--green); }
@keyframes g-settle {
  0% { transform: scale(1.12); }
  60% { transform: scale(.96); }
  100% { transform: scale(1); }
}

/* 职业飞镖 */
.g-dart { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dart-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; position: relative; }
.dart-ring {
  font-family: inherit; text-align: left; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--border); background: #ffffff;
  transition: all .18s ease; opacity: .92;
}
.dart-ring:hover { border-color: var(--border-strong); background: #f1f6ff; }
.dart-ring.hit {
  border-color: var(--amber); background: radial-gradient(circle at 20% 20%, rgba(251,191,36,.18), rgba(251,191,36,.05));
  box-shadow: 0 0 0 1px rgba(251,191,36,.5) inset; transform: translateY(-2px);
}
.dart-icon { font-size: 20px; }
.dart-label { font-weight: 600; font-size: 14.5px; }
.dart-desc { font-size: 12px; color: var(--text-3); }
.dart-bull {
  grid-column: 1 / -1; justify-self: center; font-size: 30px; display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25);
}
.dart-bull small { font-size: 12px; color: var(--amber); }
.dart-result { font-size: 13.5px; color: var(--text-2); }
.dart-result b { color: var(--amber); }

/* 团队竞速 */
.g-race { display: flex; flex-direction: column; gap: 18px; }
.race-track {
  position: relative; height: 34px; border-radius: 999px; background: #eef2f8;
  border: 1px solid var(--border); overflow: hidden;
}
.race-runner { position: absolute; left: calc((100% - 40px) * var(--p, 0) / 100); top: 50%; transform: translateY(-50%); font-size: 18px; transition: left .6s cubic-bezier(.2,.8,.2,1); }
.race-flag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.race-block { display: flex; flex-direction: column; gap: 10px; }
.race-block-head { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-3); }
.race-block-head b { color: var(--text); font-size: 14px; }
.race-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.race-item {
  font-family: inherit; color: var(--text); cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: #ffffff; transition: all .16s ease;
}
.race-item:hover { background: #f1f6ff; }
.race-item[aria-pressed="true"] { border-color: var(--green); background: rgba(52,211,153,.12); }
.race-item small { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.race-result { align-self: center; font-size: 13.5px; color: var(--green); }

/* 性格特质测评 */
.trait-scene { font-size: 34px; line-height: 1; margin-bottom: 10px; opacity: .85; }
.trait-sentence { font-size: 17px; color: var(--text); line-height: 1.6; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: #ffffff; border-left: 3px solid var(--brand); }
.trait-sentence small { color: var(--text-3); font-size: 12.5px; display: block; margin-top: 6px; }

@media (max-width: 640px) {
  .g-lanes, .race-items { grid-template-columns: 1fr; }
  .dart-board { grid-template-columns: 1fr; }
}

/* 报告 · 性格特质画像 */
.trait-profile { margin: 18px 0 22px; }
.trait-headline { font-size: 15px; color: var(--paper-ink-2); margin-bottom: 14px; }
.trait-headline b { color: var(--paper-brand); font-size: 18px; }
.trait-bars { display: flex; flex-direction: column; gap: 9px; }
.trait-bar { display: grid; grid-template-columns: 26px 66px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.trait-icon { text-align: center; }
.trait-name { color: var(--paper-ink-2); }
.trait-track { height: 9px; border-radius: 999px; background: rgba(37,99,235,.1); overflow: hidden; }
.trait-fill { display: block; height: 100%; border-radius: 999px; background: var(--paper-brand); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.trait-bar.low .trait-fill { background: #cbd5e1; }
.trait-bar.high .trait-fill { background: linear-gradient(90deg, var(--paper-brand), #06b6d4); }
.trait-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--paper-ink); font-weight: 600; }
.trait-card { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--paper-line); border-radius: 14px; background: #fff; break-inside: avoid; }
.trait-card + .trait-card { margin-top: 10px; }
.trait-rank { font-family: var(--serif); font-size: 26px; color: rgba(37,99,235,.35); line-height: 1; }
.trait-card-body h3 { margin: 0 0 4px; font-size: 15.5px; }
.trait-card-body h3 small { color: var(--paper-brand); font-size: 12.5px; margin-left: 4px; }
.trait-card-body p { margin: 2px 0; font-size: 13px; line-height: 1.6; }
.mbti-hint { margin: 22px 0 10px; border-top: 1px dashed var(--paper-line); padding-top: 14px; }
.mbti-hint summary { cursor: pointer; font-size: 13.5px; color: var(--paper-brand); }
.mbti-hint .mbti-scale { margin-top: 12px; }
.persona .trait-card { flex: 1 1 100%; }
@media (max-width: 640px) {
  .trait-bar { grid-template-columns: 22px 56px 1fr 30px; gap: 7px; font-size: 12px; }
}
