:root {
  --ink: #10283a;
  --ink-2: #1c3d54;
  --text: #22323d;
  --muted: #62727d;
  --line: #e2ddd2;
  --paper: #f8f5ef;
  --card: #ffffff;
  --gold: #a9782c;
  --gold-soft: #f3e9d6;
  --high: #a8322a;
  --high-bg: #fbecea;
  --mid: #9a6408;
  --mid-bg: #fbf1dc;
  --low: #23684a;
  --low-bg: #e4f2ea;
  --info-bg: #edf2f5;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.75 var(--sans); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

.demo-bar { background: var(--ink); color: #d9c9a8; font-size: 12px; text-align: center; padding: 6px 16px; letter-spacing: .04em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(248,245,239,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 6px; background: var(--ink); color: #e8d3a7; display: grid; place-items: center; font: 700 19px Georgia, serif; }
.brand-text { font: 700 16px/1.2 Georgia, serif; letter-spacing: .12em; color: var(--ink); }
.brand-text small { display: block; font: 400 10px var(--sans); letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff !important; border: 1px solid var(--ink); border-radius: 8px; padding: 11px 24px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: #c9c3b6; }
.btn-ghost:hover { background: #efeadf; }
.btn-light { background: #fff; color: var(--ink) !important; border-color: #fff; }
.btn-light:hover { background: var(--gold-soft); }
.link-arrow { color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, #f8f5ef 0%, #f1ebdf 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .18em; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: .01em; }
.lead { font-size: 17px; color: #43535e; margin-top: 20px; max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--gold); margin-right: 6px; font-weight: 700; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 18px 40px -24px rgba(16,40,58,.35); }
.hc-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.hc-tag { border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; font-size: 12px; }
.hc-score { display: flex; align-items: center; gap: 18px; margin: 18px 0; }
.hc-score svg { width: 92px; height: 92px; transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: #ece6da; stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.hc-score b { font: 700 40px/1 Georgia, serif; color: var(--ink); display: block; }
.hc-score small { color: var(--muted); font-size: 13px; }
.hc-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hc-list dt { color: var(--muted); flex: none; }
.hc-list dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.hc-flag { margin-top: 12px; padding: 10px 12px; background: var(--mid-bg); color: var(--mid); border-radius: 8px; font-size: 13px; }

.pill { display: inline-block; border-radius: 99px; padding: 1px 12px; font-size: 13px; font-weight: 600; }
.pill-high { background: var(--high-bg); color: var(--high); }
.pill-mid { background: var(--mid-bg); color: var(--mid); }
.pill-low { background: var(--low-bg); color: var(--low); }

/* sections */
.section { padding: 80px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2, .band h2 { font-size: clamp(24px, 3.2vw, 34px); }
.sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 36px; }
.about-text { font-size: 16px; color: #3b4b56; }
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.adv h3 { font-size: 17px; padding-left: 12px; border-left: 3px solid var(--gold); }
.adv p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.svc-no { font: 700 13px Georgia, serif; color: var(--gold); letter-spacing: .1em; }
.svc h3 { font-size: 18px; margin: 8px 0 14px; }
.svc li { font-size: 14px; color: #4a5a65; padding: 7px 0; border-top: 1px dashed var(--line); line-height: 1.6; }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; }

.band { background: var(--ink); color: #d5dee4; padding: 56px 0; }
.band h2 { color: #fff; }
.band p { margin-top: 12px; max-width: 40em; font-size: 15px; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band .btn { flex: none; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.case-tag { display: inline-block; font-size: 12px; color: var(--gold); background: var(--gold-soft); border-radius: 4px; padding: 2px 10px; font-weight: 600; }
.case h3 { font-size: 18px; margin: 12px 0 10px; }
.case-bg { font-size: 14px; color: var(--muted); line-height: 1.7; }
.case dl { margin: 16px 0 0; }
.case dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.case dt { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.case dd { margin: 4px 0 0; font-size: 14px; line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 22px Georgia, serif; color: var(--gold); }
.steps b { font: 700 17px var(--serif); color: var(--ink); }
.steps span { font-size: 14px; color: #4a5a65; line-height: 1.65; flex: 1; }
.steps em { font-style: normal; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

.footer { background: #0b1d2b; color: #a9b7c0; padding: 48px 0 32px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.brand-foot { margin-bottom: 10px; }
.brand-foot .brand-mark { background: #e8d3a7; color: var(--ink); }
.brand-foot .brand-text { color: #fff; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1f3546; font-size: 12px; line-height: 1.8; color: #7f909b; }

/* tool (quiz + result) */
.tool { padding: 40px 0 80px; min-height: 70vh; }
.progress-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.progress-meta span:first-child { color: var(--ink); font-weight: 600; }
.progress-track { height: 6px; background: #e6dfd0; border-radius: 99px; overflow: hidden; }
#progressBar { height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .3s; }
#quiz { margin-top: 28px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.q.err { border-color: var(--high); }
.q-title { font: 700 18px/1.5 var(--serif); color: var(--ink); }
.q-hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
.q-err { display: none; color: var(--high); font-size: 13px; margin-top: 8px; }
.q.err .q-err { display: block; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.opts.one-col { grid-template-columns: 1fr; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: block; border: 1px solid #d6d0c3; border-radius: 8px; padding: 11px 14px 11px 40px; font-size: 15px; line-height: 1.5; background: #fff; transition: border-color .12s, background .12s; height: 100%; }
.opt span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border: 1.5px solid #a9a394; border-radius: 50%; background: #fff; }
.opt input[type=checkbox] + span::before { border-radius: 4px; }
.opt:hover span { border-color: var(--gold); }
.opt input:checked + span { border-color: var(--ink); background: #f1f5f7; color: var(--ink); font-weight: 600; }
.opt input:checked + span::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
textarea, input[type=text], input[type=tel], input[type=email] { width: 100%; border: 1px solid #d6d0c3; border-radius: 8px; padding: 11px 14px; font: 15px/1.6 var(--sans); color: var(--text); background: #fff; }
textarea { margin-top: 16px; min-height: 110px; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.quiz-actions { display: flex; justify-content: space-between; margin-top: 24px; }
.tool-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; }

/* result */
.r-head { text-align: center; margin-bottom: 28px; }
.r-head h1 { font-size: clamp(24px, 4vw, 32px); }
.r-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin-bottom: 18px; }
.card > h2 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card > h2::before { content: ""; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }
.score-row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.score-ring { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring b { font: 700 54px/1 Georgia, serif; color: var(--ink); }
.score-ring small { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tier { font: 700 20px var(--serif); color: var(--ink); }
.tier-text { margin-top: 8px; color: #43535e; font-size: 15px; }
.cx { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; background: var(--info-bg); }
.cx b { margin-right: 8px; }
.dims { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.radar { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.radar .grid { fill: none; stroke: #e2ddd2; }
.radar .axis { stroke: #e2ddd2; }
.radar .shape { fill: rgba(169,120,44,.22); stroke: var(--gold); stroke-width: 2; }
.radar text { font: 12px var(--sans); fill: var(--muted); }
.bars li { display: grid; grid-template-columns: 88px 1fr 34px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.bars i { display: block; height: 8px; border-radius: 99px; background: #ece6da; overflow: hidden; }
.bars i u { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; }
.bars b { text-align: right; font: 700 15px Georgia, serif; color: var(--ink); }
.path-title { font: 700 20px var(--serif); color: var(--ink); }
.path-sum { margin-top: 8px; font-size: 15px; color: #43535e; }
.olist { margin-top: 16px; counter-reset: o; }
.olist li { counter-increment: o; position: relative; padding: 9px 0 9px 38px; font-size: 15px; border-top: 1px dashed var(--line); }
.olist li::before { content: counter(o); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font: 700 13px/24px Georgia, serif; text-align: center; }
.tl li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.tl li span:last-child { color: var(--ink); font-weight: 600; text-align: right; flex: none; max-width: 55%; }
.tl-total { font-size: 15px; margin-bottom: 8px; }
.tl-total b { font: 700 20px var(--serif); color: var(--ink); margin-left: 6px; }
.flag { border-radius: 8px; padding: 14px 16px; margin-top: 10px; border-left: 4px solid; }
.flag h3 { font: 700 15px var(--sans); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flag p { font-size: 14px; margin-top: 6px; line-height: 1.75; color: #3b4b56; }
.flag-high { background: var(--high-bg); border-color: var(--high); }
.flag-high h3 { color: var(--high); }
.flag-mid { background: var(--mid-bg); border-color: var(--mid); }
.flag-mid h3 { color: var(--mid); }
.flag-info { background: var(--info-bg); border-color: #8fa3b0; }
.flag-info h3 { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tags span { background: var(--gold-soft); color: #7a5518; border-radius: 6px; padding: 5px 12px; font-size: 14px; }
.lead-card { background: var(--ink); border-color: var(--ink); color: #d5dee4; }
.lead-card > h2 { color: #fff; }
.lead-card > p { font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.form-grid label { font-size: 13px; color: #b9c6ce; display: block; }
.form-grid input { margin-top: 4px; border-color: transparent; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-top: 14px; line-height: 1.7; color: #b9c6ce; cursor: pointer; }
.consent input { margin-top: 5px; flex: none; width: 16px; height: 16px; }
.form-msg { font-size: 14px; margin-top: 12px; min-height: 1.5em; color: #f3c9a0; }
.lead-card .btn { margin-top: 8px; }
.lead-done { text-align: center; padding: 12px 0; }
.lead-done b { display: block; font: 700 20px var(--serif); color: #fff; margin-bottom: 6px; }
.r-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.r-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 24px; text-align: center; }

@media (max-width: 900px) {
  .hero-in, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid, .steps { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .band-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .brand-text small { display: none; }
  .adv, .svc-grid, .steps, .opts, .form-grid { grid-template-columns: 1fr; }
  .score-row, .dims { grid-template-columns: 1fr; gap: 18px; }
  .score-row { text-align: center; }
  .q, .card { padding: 20px 16px; }
  .tl li { flex-direction: column; gap: 2px; }
  .tl li span:last-child { text-align: left; max-width: none; }
  .quiz-actions .btn { flex: 1; }
  .quiz-actions { gap: 12px; }
}
@media print {
  .demo-bar, .nav, .lead-card, .r-actions { display: none !important; }
  body { background: #fff; }
  .tool { padding: 0; }
  .card { break-inside: avoid; border-color: #ccc; }
}
