/* 配色沿用《天津转学规划方案》：深海蓝 + 薄荷绿 */
:root {
  --deep: #0b365b;
  --night: #082946;
  --surface: #154f78;
  --mint: #8fd5b5;
  --mint-deep: #3f9c78;
  --mint-soft: #c9eddd;
  --paper: #f5f7f6;
  --card: #ffffff;
  --fog: #e8eff1;
  --ink: #172733;
  --muted: #5d7180;
  --line: #d8e2e6;
  --violet: #6f8ff7;
  --amber: #c98a12;
  --amber-soft: #fbf1dc;
  --red: #b5473a;
  --red-soft: #f8e6e3;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
.hidden { display: none !important; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px;
  background: var(--night); color: #fff;
}
.topbar-logo { width: 32px; height: 32px; border-radius: 7px; }
.topbar-title { font-weight: 600; font-size: 15px; }
.topbar-status { margin-left: auto; font-size: 12px; color: var(--mint-soft); }

main { max-width: 560px; margin: 0 auto; }
.view { padding: 20px 16px 40px; }

/* 按钮 */
.btn-primary {
  display: block; width: 100%;
  min-height: 50px; border: 0; border-radius: 10px;
  background: var(--mint); color: var(--night);
  font-size: 17px; font-weight: 700;
}
.btn-primary:disabled { background: var(--line); color: #8a9aa5; cursor: not-allowed; }
.btn-ghost {
  min-height: 50px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-size: 15px;
}
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

/* 开场页 */
#introView { padding: 0; }
.hero {
  min-height: calc(100vh - 52px);
  padding: 44px 24px 36px;
  background: linear-gradient(180deg, var(--deep), var(--night));
  color: #fff;
  display: flex; flex-direction: column;
}
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; color: var(--mint); }
.eyebrow.dark { color: var(--mint-deep); }
.hero h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.2; letter-spacing: .02em; }
.lead { margin: 0 0 28px; color: #d4e2ea; font-size: 16px; }
.hero-points { list-style: none; margin: 0 0 auto; padding: 0; }
.hero-points li {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
}
.hero-points li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-points b { color: var(--mint); font-size: 13px; }
.hero .btn-primary { margin-top: 32px; }
.micro { margin: 12px 0 0; text-align: center; font-size: 12px; color: #9db2be; }

/* 答题 */
.progress { height: 6px; border-radius: 3px; background: var(--fog); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--mint-deep); transition: width .25s; }
.q-meta { display: flex; justify-content: space-between; margin: 14px 0 6px; font-size: 13px; color: var(--mint-deep); font-weight: 600; }
.q-meta span:last-child { color: var(--muted); font-weight: 400; }
.q-title { margin: 0 0 4px; font-size: 22px; line-height: 1.4; color: var(--deep); }
.q-hint { margin: 0 0 16px; min-height: 20px; font-size: 13px; color: var(--muted); }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink);
  text-align: left; font-size: 16px;
}
.option.selected { border-color: var(--mint-deep); background: #eef8f3; }
.opt-mark {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fog); color: var(--deep); font-size: 13px; font-weight: 700;
}
.option.selected .opt-mark { background: var(--mint-deep); color: #fff; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  min-height: 46px; padding: 6px 4px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 14px; line-height: 1.3;
}
.chip.selected { border-color: var(--mint-deep); background: #eef8f3; font-weight: 600; }
.text-input, .field input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 16px;
}
.text-input:focus, .field input:focus { outline: none; border-color: var(--mint-deep); }
.q-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 24px; }

/* 留资 */
.lead-card { padding: 26px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.lead-card h2 { margin: 0 0 8px; font-size: 22px; color: var(--deep); }
.lead-desc { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--mint-deep); }
.form-error { min-height: 20px; margin: 0 0 8px; color: var(--red); font-size: 14px; }

/* 报告 */
#reportView { padding-top: 0; }
.r-cover {
  margin: 0 -16px 16px; padding: 30px 22px 26px;
  background: var(--deep); color: #fff;
}
.r-logo { width: 48px; height: 48px; border-radius: 9px; margin-bottom: 14px; }
.r-cover h2 { margin: 0 0 4px; font-size: 26px; }
.r-profile { margin: 0 0 18px; color: #c4d4de; font-size: 14px; }
.verdict { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border-left: 5px solid var(--mint); }
.verdict span { font-size: 12px; color: #c4d4de; }
.verdict strong { font-size: 24px; }
.v-go { border-left-color: var(--mint); }
.v-hurry { border-left-color: #f1bd56; }
.v-eval { border-left-color: var(--violet); }
.v-stay { border-left-color: #e3876c; }
.r-reason { margin: 12px 0 0; font-size: 15px; color: #e3ecf1; }

.r-sec { margin-bottom: 14px; padding: 18px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--mint-soft); }
.r-no { font-size: 13px; font-weight: 700; color: var(--mint-deep); }
.r-head h3 { margin: 0; font-size: 18px; color: var(--deep); }
.r-sec p { margin: 0 0 10px; font-size: 15px; }
.r-sec p:last-child { margin-bottom: 0; }
.sub { font-weight: 600; color: var(--deep); margin-top: 14px !important; }
.fine { font-size: 12.5px !important; color: var(--muted); }
.callout { padding: 10px 12px; border-radius: 10px; background: #eef8f3; color: var(--deep); }
.note { padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: #6b4a09; font-size: 14px !important; }
.highlight { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--deep); color: #fff; }
.highlight p { color: #dbe6ec; margin: 6px 0 0 !important; font-size: 14px !important; }
.ph { background: var(--amber-soft); color: #8a5a00; padding: 0 2px; border-radius: 3px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { padding: 12px; border-radius: 10px; background: var(--fog); }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat strong { font-size: 18px; color: var(--deep); }
.stat.warn { background: var(--red-soft); }
.stat.warn strong { color: var(--red); }

.nodes { display: grid; gap: 8px; margin-bottom: 10px; }
.node { padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.node.rec { border: 1.5px solid var(--mint-deep); background: #f3faf7; }
.node-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--deep); }
.node p { margin: 0 0 4px !important; font-size: 13.5px !important; color: #33495a; }
.tag { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--fog); color: var(--muted); }
.tag-rec { background: var(--mint-deep); color: #fff; }

.cards { display: grid; gap: 8px; margin-bottom: 10px; }
.card { padding: 12px; border-radius: 10px; background: var(--fog); }
.card-no { display: block; font-size: 12px; color: var(--mint-deep); font-weight: 700; }
.card strong { color: var(--deep); }
.card p { margin: 4px 0 0 !important; font-size: 13.5px !important; color: #33495a; }

.schools { display: grid; gap: 8px; }
.school { padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.school strong { color: var(--deep); }
.school-d { margin-left: 6px; font-size: 12px; color: var(--muted); }
.school p { margin: 3px 0 0 !important; font-size: 13px !important; color: #33495a; }

.tiers { display: grid; gap: 8px; margin-bottom: 10px; }
.tier { padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.tier.on { border: 1.5px solid var(--mint-deep); background: #f3faf7; }
.tier-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tier-top strong { color: var(--deep); font-size: 16px; }
.tier-top span { color: var(--mint-deep); font-weight: 700; }
.tier p { margin: 0 0 2px !important; font-size: 14px !important; }

.r-cta { margin: 18px 0 14px; padding: 24px 18px; border-radius: 14px; background: var(--deep); color: #fff; text-align: center; }
.r-cta h3 { margin: 0 0 8px; font-size: 20px; }
.r-cta > p { margin: 0 0 16px; font-size: 14px; color: #d4e2ea; text-align: left; }
.qr-wrap { display: inline-block; padding: 10px; border-radius: 12px; background: #fff; }
.qr-wrap img { display: block; width: 180px; height: 180px; object-fit: contain; }
.qr-ph { width: 180px; height: 180px; display: grid; place-items: center; color: #8a5a00; background: var(--amber-soft); border-radius: 8px; font-size: 14px; }
.qr-tip { margin: 10px 0 16px !important; color: var(--mint) !important; text-align: center !important; }
.teacher { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.teacher strong { display: block; margin-bottom: 4px; }
.teacher p { margin: 2px 0; font-size: 13.5px; color: #d4e2ea; }
.teacher .ph { background: rgba(241,189,86,.2); color: #f1d08a; }

.disclaimer { font-size: 12px; color: var(--muted); text-align: center; margin: 0 8px 14px; }
.restart { display: block; margin: 0 auto; }
.node p b { display: block; color: var(--deep); }
.school-tags { display: flex; gap: 6px; margin: 4px 0 2px; }
.tag-tier { background: var(--deep); color: #fff; }
.teacher { display: flex; gap: 12px; align-items: center; text-align: left; }
.brand-logo { width: 48px; height: 48px; border-radius: 9px; flex: none; }
.stat-sub { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.r-cover { position: relative; overflow: hidden; }
.r-cover > *:not(.r-deco) { position: relative; }
.r-deco { position: absolute; top: 14px; right: -10px; width: 132px; height: 132px; opacity: .55; }
.deco-ring { fill: none; stroke: var(--mint); stroke-width: 1.2; opacity: .45; }
.deco-ring.thin { stroke-dasharray: 3 5; opacity: .6; }
.deco-book { fill: rgba(143, 213, 181, .18); stroke: var(--mint); stroke-width: 1.6; stroke-linejoin: round; }
.deco-line { stroke: var(--mint); stroke-width: 1.4; }
.deco-star { fill: #f1d08a; }
.r-greet { margin: 0 0 18px; max-width: 78%; font-size: 14px; color: #c4d4de; }
.r-cover .eyebrow { margin-top: 6px; }
.tag-pri { background: var(--violet); color: #fff; }
.callout .route { display: block; font-size: 12.5px; color: var(--mint-deep); margin-bottom: 2px; }
.callout + .callout { margin-top: -2px; }
.stat.warn strong { font-size: 16px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px !important; color: var(--muted); }
.node.rec.pri-only { border-color: var(--violet); background: #f4f6ff; }

/* 开场页（与报告封面同一套插画和配色，更有温度） */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(143, 213, 181, .24), transparent 42%),
    radial-gradient(circle at 8% 96%, rgba(241, 189, 86, .16), transparent 45%),
    linear-gradient(168deg, #12517f 0%, #0b365b 46%, #072640 100%);
}
.hero > *:not(.hero-deco) { position: relative; }
.hero-deco { position: absolute; top: 20px; right: -14px; width: 170px; height: 170px; opacity: .7; }
.deco-star.small { fill: var(--mint); opacity: .8; }
.eyebrow.chip {
  align-self: flex-start; padding: 4px 12px; border-radius: 99px;
  border: 1px solid rgba(143, 213, 181, .45); background: rgba(143, 213, 181, .1);
  font-size: 12px; letter-spacing: .04em;
}
.hero h1 { margin-top: 18px; }
.h1-accent { color: var(--mint); }
.hero-points { display: grid; gap: 10px; }
.hero-points li {
  border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 12px;
  background: rgba(255, 255, 255, .06); padding: 13px 14px;
}
.hero-points b {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(143, 213, 181, .18); color: var(--mint); font-size: 12px;
}
.hero-warm { margin: 22px 0 0; font-size: 14px; color: #f1d08a; }
.hero .btn-primary { margin-top: 14px; box-shadow: 0 10px 26px rgba(143, 213, 181, .28); }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 12px; color: #9db2be; }
.hero-brand img { width: 22px; height: 22px; border-radius: 5px; }
.eyebrow.chip { color: var(--mint-soft); background: rgba(143, 213, 181, .14); }
.hero-deco { top: 64px; width: 150px; height: 150px; }
