:root {
  --ink: #10243d;
  --ink-soft: #37516b;
  --muted: #718397;
  --line: #dce4eb;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --navy: #10243d;
  --blue: #2c6bed;
  --blue-soft: #ebf2ff;
  --green: #1d8f7a;
  --green-soft: #eaf7f3;
  --amber: #b78016;
  --amber-soft: #fff6df;
  --red: #c65a4b;
  --red-soft: #fff0ed;
  --shadow: 0 24px 70px rgba(16, 36, 61, .10);
  font-family: "Aptos", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f2f5f7; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }

.app-shell { min-height: 100vh; }
.topbar { min-height: 72px; padding: 0 max(24px, 5vw); display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--navy); }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 5px; color: #9fc0ff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.brand-logo { width: 146px; height: 43px; display: block; object-fit: contain; object-position: left center; background: #fff; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { color: #afc1d1; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: #c7d4e0; font-size: 12px; }
.secure-dot, .trust-dot { width: 7px; height: 7px; border-radius: 50%; background: #63d3b5; box-shadow: 0 0 0 4px rgba(99,211,181,.15); }
.main-content { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 80px; }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; letter-spacing: 0; line-height: 1.12; }
h2, h3 { letter-spacing: 0; }
.button-primary, .button-secondary { min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; transition: .2s ease; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 22px rgba(44,107,237,.2); }
.button-primary:hover { background: #1f57ca; transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 40px; align-items: stretch; }
.hero-copy { padding: 24px 0 22px; }
.hero-copy h1 { max-width: 720px; font-size: clamp(36px, 5vw, 66px); }
.hero-lede { max-width: 650px; margin: 24px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.trust-line { display: flex; gap: 10px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 12px; }
.hero-panel { position: relative; overflow: hidden; padding: 28px; color: #fff; border-radius: 8px; background: linear-gradient(145deg, #10243d, #1b4664); box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; width: 250px; height: 250px; right: -100px; bottom: -135px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.hero-panel-top, .panel-heading, .card-heading, .scorecard-top, .scorecard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-kicker { color: #a9c0d4; font-size: 10px; letter-spacing: .14em; }
.panel-status { padding: 4px 7px; border: 1px solid rgba(99,211,181,.45); color: #80e0c3; border-radius: 3px; font-size: 9px; letter-spacing: .12em; }
.hero-panel-score { margin-top: 48px; }
.hero-panel-score strong { display: block; color: #fff; font-size: 76px; font-weight: 500; line-height: .9; }
.hero-panel-score span { display: block; margin-top: 14px; color: #bfd0de; font-size: 14px; }
.hero-panel-rule { height: 1px; margin: 28px 0 18px; background: rgba(255,255,255,.18); }
.hero-panel-list { display: grid; gap: 12px; }
.hero-panel-list div { display: flex; justify-content: space-between; color: #fff; font-size: 13px; }
.hero-panel-list span:last-child { color: #a9c0d4; font-size: 12px; }
.hero-panel > p { position: relative; z-index: 1; margin: 28px 0 0; color: #bfd0de; font-size: 12px; line-height: 1.7; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: 72px; align-items: center; min-height: 560px; }
.profile-intro h1 { max-width: 650px; font-size: clamp(36px, 5vw, 62px); }
.profile-intro > p:not(.eyebrow) { max-width: 560px; margin: 24px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.profile-note { display: flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--muted); font-size: 12px; }
.profile-form { padding: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.form-field { display: block; margin-bottom: 20px; }
.form-field > span { display: flex; gap: 7px; align-items: baseline; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-field b { color: var(--red); }
.form-field small { color: var(--muted); font-size: 11px; font-weight: 400; }
.form-field input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); outline: 0; }
.form-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.profile-actions { display: flex; gap: 10px; margin-top: 28px; }
.profile-actions button { flex: 1; }
.home-section { margin-top: 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { max-width: 700px; margin: 0; font-size: 27px; line-height: 1.25; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dimension-tile { position: relative; min-height: 170px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--dimension-color); border-radius: 6px; background: var(--surface); }
.dimension-index { color: var(--dimension-color); font-size: 12px; font-weight: 800; }
.dimension-tag { float: right; color: var(--muted); font-size: 11px; }
.dimension-tile h3 { margin: 28px 0 9px; font-size: 18px; }
.dimension-tile p { max-width: 230px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.principles-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-band > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; }
.band-number { grid-row: span 2; color: var(--blue); font-size: 12px; font-weight: 800; }
.principles-band strong { font-size: 14px; }
.principles-band span:last-child { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.assessment-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.progress-panel { position: sticky; top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.panel-heading { align-items: start; }
.panel-heading .eyebrow { margin: 0; }
.save-status { color: var(--green); font-size: 11px; }
.progress-panel h2 { margin: 20px 0 8px; font-size: 18px; }
.progress-panel > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.progress-summary { display: flex; align-items: end; justify-content: space-between; margin-bottom: 9px; }
.progress-summary strong { font-size: 30px; line-height: 1; }
.progress-summary strong small { color: var(--muted); font-size: 14px; font-weight: 500; }
.progress-summary span { color: var(--muted); font-size: 12px; }
.progress-line { height: 6px; overflow: hidden; border-radius: 3px; background: #e9eef3; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s ease; }
.dimension-nav { display: grid; gap: 5px; margin-top: 26px; }
.dimension-nav-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 8px; text-align: left; border: 0; border-left: 3px solid transparent; border-radius: 3px; color: var(--muted); background: transparent; opacity: 1; }
.dimension-nav-item:disabled { opacity: 1; cursor: default; }
.dimension-nav-item.active { border-left-color: var(--blue); color: var(--ink); background: var(--blue-soft); }
.nav-number { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #e9eef3; font-size: 10px; font-weight: 800; }
.active .nav-number { color: #fff; background: var(--blue); }
.dimension-nav-item strong, .dimension-nav-item small { display: block; }
.dimension-nav-item strong { font-size: 12px; }
.dimension-nav-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.mobile-save { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }
.question-stage { min-width: 0; }
.question-breadcrumb { display: flex; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.question-breadcrumb span:first-child { color: var(--blue); font-weight: 800; }
.question-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.question-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-number { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.question-dimension { padding: 6px 9px; border-left: 3px solid var(--dimension-color); color: var(--ink-soft); background: var(--surface-soft); font-size: 11px; }
.question-card h1 { max-width: 790px; margin-top: 28px; font-size: clamp(25px, 3.8vw, 42px); line-height: 1.32; }
.question-card .hint { max-width: 700px; margin: 15px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.answer-list { display: grid; gap: 9px; }
.answer-option { display: grid; grid-template-columns: 34px 1fr 22px; gap: 12px; align-items: center; width: 100%; padding: 15px 16px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: #fff; transition: .18s ease; }
.answer-option:hover, .answer-option.selected { border-color: var(--blue); background: var(--blue-soft); }
.answer-option.selected { box-shadow: inset 4px 0 0 var(--blue); }
.answer-key { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cbd6e0; border-radius: 50%; color: var(--muted); font-size: 12px; font-weight: 800; }
.answer-option.selected .answer-key { color: #fff; border-color: var(--blue); background: var(--blue); }
.answer-copy strong, .answer-copy span { display: block; }
.answer-copy strong { font-size: 14px; }
.answer-copy span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.answer-check { visibility: hidden; color: var(--blue); font-size: 18px; }
.answer-option.selected .answer-check { visibility: visible; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.question-footer small { color: var(--muted); line-height: 1.5; }
.question-actions { display: flex; gap: 10px; }

.result-toolbar { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.result-heading { min-width: 0; }
.result-toolbar h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.result-toolbar p:not(.eyebrow) { max-width: 600px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.result-title-suffix { display: inline-block; font-weight: 400; white-space: nowrap; }
.result-meta { margin-top: 10px; color: var(--blue); font-size: 12px; font-weight: 700; }
.report-logo { position: absolute; top: 0; right: 0; display: none; width: 170px; height: auto; object-fit: contain; }
.result-actions { display: flex; gap: 10px; }
.executive-summary { display: grid; grid-template-columns: .85fr 1.35fr .8fr; gap: 1px; overflow: hidden; border: 1px solid var(--navy); border-radius: 7px; background: var(--navy); box-shadow: var(--shadow); }
.summary-score, .summary-copy, .summary-next { min-height: 230px; padding: 28px; color: #fff; background: var(--navy); }
.summary-copy { background: #173451; }
.summary-next { background: #214766; }
.summary-kicker { display: block; color: #9fb7ca; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.summary-score-value { display: flex; align-items: baseline; gap: 6px; margin-top: 34px; }
.summary-score-value strong { font-size: 64px; font-weight: 500; line-height: .9; }
.summary-score-value span { color: #a9c0d4; font-size: 13px; }
.summary-level { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.summary-level b { font-size: 18px; }
.summary-level span, .summary-score > small { color: #a9c0d4; font-size: 12px; }
.level-progress { height: 5px; margin: 20px 0 7px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.18); }
.level-progress span { display: block; height: 100%; background: #73d3b3; }
.summary-copy h2 { max-width: 520px; margin: 25px 0 12px; font-size: 22px; line-height: 1.45; }
.summary-copy p { max-width: 560px; margin: 0; color: #c0d0dc; font-size: 13px; line-height: 1.7; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag { padding: 7px 9px; border-radius: 3px; font-size: 11px; }
.tag-strong { color: #9fe0c6; background: rgba(99,211,181,.13); }
.tag-risk { color: #ffd38a; background: rgba(255,211,138,.12); }
.tag-neutral { color: #c0d4e6; background: rgba(192,212,230,.11); }
.summary-next strong { display: block; max-width: 220px; margin-top: 31px; font-size: 24px; line-height: 1.35; }
.summary-next > span:last-child { display: block; margin-top: 17px; color: #c0d0dc; font-size: 12px; }
.result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.result-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.result-card.full { grid-column: 1 / -1; }
.card-heading { align-items: start; margin-bottom: 22px; }
.card-heading .section-label { margin-bottom: 8px; }
.card-heading h2 { margin: 0; font-size: 20px; }
.card-note { color: var(--muted); font-size: 11px; }
.radar-layout { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(220px, .95fr); gap: 18px; align-items: center; }
.radar-chart { width: 100%; max-height: 345px; }
.radar-ring { fill: none; stroke: #e4ebf0; stroke-width: 1; }
.radar-axis { stroke: #e4ebf0; stroke-width: 1; }
.radar-label { fill: #687b8d; font-size: 11px; }
.radar-value { fill: rgba(44,107,237,.14); stroke: var(--blue); stroke-width: 2; }
.radar-point { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.radar-legend { display: grid; gap: 12px; }
.radar-legend > div { display: grid; grid-template-columns: 25px 1fr 34px; gap: 8px; align-items: center; }
.legend-rank { color: #b2c0cc; font-size: 11px; font-weight: 800; }
.radar-legend b, .radar-legend small { display: block; }
.radar-legend b { font-size: 12px; }
.radar-legend small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.radar-legend strong { text-align: right; font-size: 14px; }
.diagnosis-card { display: flex; flex-direction: column; }
.readout-block { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line); }
.readout-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 800; }
.readout-positive .readout-mark { color: var(--green); background: var(--green-soft); }
.readout-risk .readout-mark { color: var(--amber); background: var(--amber-soft); }
.readout-action .readout-mark { color: var(--blue); background: var(--blue-soft); }
.readout-block small { display: block; color: var(--muted); font-size: 11px; }
.readout-block strong { display: block; margin-top: 4px; font-size: 14px; }
.readout-block p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.scorecard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.scorecard-item { padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfd; }
.scorecard-item.is-risk { border-color: #f0c9bb; background: #fffaf8; }
.scorecard-top span { font-weight: 700; font-size: 13px; }
.scorecard-top b { font-size: 19px; }
.scorecard-bar { height: 5px; margin: 13px 0 12px; overflow: hidden; border-radius: 3px; background: #e6edf2; }
.scorecard-bar span { display: block; height: 100%; border-radius: inherit; }
.scorecard-bottom { align-items: start; }
.scorecard-bottom small { max-width: 180px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.scorecard-bottom em { color: var(--blue); font-size: 10px; font-style: normal; white-space: nowrap; }
.is-risk .scorecard-bottom em { color: var(--red); }
.roadmap { display: grid; }
.roadmap-item { display: grid; grid-template-columns: 38px 122px 1fr 32px; gap: 12px; align-items: start; padding: 17px 0; border-top: 1px solid var(--line); }
.roadmap-index { color: var(--blue); font-size: 12px; font-weight: 800; }
.roadmap-phase { color: var(--ink); font-size: 12px; font-weight: 800; }
.roadmap-phase span { display: block; width: fit-content; margin-top: 7px; padding: 4px 6px; color: var(--red); background: var(--red-soft); font-size: 9px; }
.roadmap-copy strong { font-size: 14px; }
.roadmap-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); background: #fff; }
.result-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.result-footer p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: calc(100vw - 48px); padding: 12px 15px; color: #fff; border-radius: 5px; background: var(--navy); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.browser-prompt { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.browser-prompt-backdrop { position: absolute; inset: 0; background: rgba(16, 36, 61, .52); }
.browser-prompt-card { position: relative; width: min(100%, 430px); padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.browser-prompt-card h2 { margin: 0; font-size: 25px; }
.browser-prompt-card p:not(.eyebrow) { margin: 15px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.browser-prompt-card .button-primary { width: 100%; }
.browser-prompt-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 25px; line-height: 1; }
.loading-state { max-width: 680px; margin: 12vh auto 0; padding: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.loading-state h1 { font-size: clamp(30px, 5vw, 52px); }
.loading-state p:not(.eyebrow) { margin: 16px 0 24px; color: var(--muted); line-height: 1.7; }
.loading-link { display: inline-flex; align-items: center; text-decoration: none; }
.report-mode .result-footer { display: none !important; }

@media (max-width: 980px) {
  .hero, .executive-summary, .result-grid { grid-template-columns: 1fr; }
  .summary-score, .summary-copy, .summary-next { min-height: auto; }
  .summary-score-value { margin-top: 20px; }
  .summary-next strong { max-width: none; margin-top: 18px; }
  .summary-next > span:last-child { margin-top: 10px; }
  .assessment-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 26px; min-height: auto; }
  .report-logo { width: 145px; }
  .progress-panel { position: static; }
  .dimension-nav { grid-template-columns: repeat(3, 1fr); }
  .mobile-save { display: none; }
  .radar-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .topbar { padding: 0 18px; }
  .topbar-meta { display: none; }
  .main-content { width: min(100% - 32px, 560px); padding: 34px 0 50px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-lede { font-size: 15px; }
  .hero-actions, .result-actions { width: 100%; }
  .hero-actions button, .result-actions button { flex: 1; }
  .report-logo { width: 125px; }
  .section-heading, .result-toolbar, .result-footer { align-items: stretch; flex-direction: column; }
  .section-heading h2 { font-size: 22px; }
  .dimension-grid, .principles-band, .scorecard-grid { grid-template-columns: 1fr; }
  .principles-band { gap: 18px; }
  .dimension-nav { grid-template-columns: repeat(2, 1fr); }
  .question-card { padding: 22px; }
  .question-card h1 { font-size: 27px; }
  .question-footer { align-items: stretch; flex-direction: column; }
  .question-actions { width: 100%; }
  .question-actions button { flex: 1; }
  .radar-layout { grid-template-columns: 1fr; }
  .radar-chart { max-width: 360px; margin: 0 auto; }
  .roadmap-item { grid-template-columns: 28px 1fr 30px; }
  .roadmap-phase { grid-column: 2; grid-row: 1; }
  .roadmap-copy { grid-column: 2; grid-row: 2; }
  .icon-button { grid-column: 3; grid-row: 1; }
}

@media print {
  body { background: #fff; }
  .topbar, .result-actions, .result-footer button, .toast { display: none !important; }
  .report-logo { display: block !important; }
  .result-heading { padding-right: 190px; }
  .main-content { width: 100%; padding: 0; }
  .result-card, .executive-summary { break-inside: avoid; box-shadow: none; }
  .executive-summary { color-adjust: exact; -webkit-print-color-adjust: exact; }
}
