:root {
  --navy: #163b66;
  --navy-deep: #0b213d;
  --navy-ink: #0f2440;
  --blue: #2b6cb0;
  --gold: #d4a64a;
  --gold-dark: #b88221;
  --sky: #eaf4ff;
  --mist: #f5f7fa;
  --slate: #334155;
  --muted: #64748b;
  --line: #dbe4ef;
  --white: #fff;
  --green: #16835b;
  --amber: #b56d09;
  --red: #b42318;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(15, 36, 64, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy-ink);
  background: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 245px; max-width: 48vw; height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions select { min-width: 160px; }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(380px, .86fr) minmax(540px, 1.14fr);
  min-height: 590px;
  color: var(--white);
  background: var(--navy-deep);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px max(38px, calc((100vw - 1180px) / 2));
  padding-right: 54px;
  background: linear-gradient(110deg, #081b31 0%, #12375f 88%);
}
.hero-image {
  min-height: 500px;
  background-image: linear-gradient(90deg, #12375f 0%, rgba(18,55,95,.18) 22%, rgba(0,0,0,.08) 100%), url("tuntutai-app-cover.webp");
  background-size: cover;
  background-position: 64% center;
}
.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(2.8rem, 5.3vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.hero-lead { max-width: 620px; margin: 24px 0 12px; color: #e5edf7; font-size: clamp(1.15rem, 1.7vw, 1.42rem); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 16px; }
.price-row strong { color: var(--gold); font-size: 2.4rem; line-height: 1; }
.price-row span { color: #d9e6f4; font-weight: 700; }
.hero-points { display: grid; gap: 9px; margin: 4px 0 16px; padding: 0; list-style: none; }
.hero-points li::before { content: "✓"; margin-right: 10px; color: var(--gold); font-weight: 900; }
.small-note { color: #b9c9da; font-size: .9rem; }

.section { width: min(1180px, calc(100% - 40px)); margin: 34px auto; padding: clamp(24px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(15,36,64,.05); }
.intro { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 34px; }
.section h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.section-heading p { max-width: 780px; margin: 10px 0 0; color: var(--muted); }
.privacy-chip { flex: 0 0 auto; padding: 8px 13px; border: 1px solid #b9e6d1; border-radius: 999px; color: #0f6848; background: #ebfbf4; font-size: .88rem; font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; min-height: 116px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #f9fbfd; }
.steps li > span { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); font-weight: 900; }
.steps strong, .steps small { display: block; }
.steps small { margin-top: 6px; color: var(--muted); }

form { display: grid; gap: 24px; }
fieldset { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
legend { padding: 0 8px; color: var(--navy); font-size: 1.08rem; font-weight: 850; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.field-grid.metrics { grid-template-columns: repeat(3, 1fr); }
label > span { display: block; margin: 0 0 7px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--navy-ink);
  background: var(--white);
  border: 1px solid #c8d5e3;
  border-radius: 10px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43,108,176,.12); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: #f7f9fc; }
.choice span { margin: 0; }
.full-field { display: block; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #172035; background: var(--gold); box-shadow: 0 8px 18px rgba(212,166,74,.26); }
.button-primary:hover { background: #e1b458; }
.button-secondary { color: var(--white); background: var(--navy); }
.button-ghost { color: var(--navy); background: var(--white); border-color: #b9c8d9; }
.button-large { justify-self: start; min-height: 54px; padding: 13px 26px; }
.alert { padding: 12px 14px; border-radius: 10px; }
.alert-error { color: #84251c; background: #fff1ef; border: 1px solid #ffcfc9; }

.results { border-top: 5px solid var(--gold); }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.score-ring { display: flex; width: 116px; height: 116px; flex: 0 0 116px; align-items: baseline; justify-content: center; padding-top: 27px; border: 10px solid var(--gold); border-radius: 50%; background: #fffaf0; }
.score-ring strong { font-size: 2.25rem; line-height: 1; }
.score-ring span { color: var(--muted); font-size: .86rem; }
.risk-banner { display: flex; align-items: center; gap: 15px; margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: #fff7e8; }
.risk-banner strong { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: var(--white); background: var(--amber); }
.risk-banner span { font-weight: 650; }
.risk-banner.low { background: #ebfbf4; }
.risk-banner.low strong { background: var(--green); }
.risk-banner.high, .risk-banner.critical { background: #fff1ef; }
.risk-banner.high strong, .risk-banner.critical strong { background: var(--red); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #f9fbfd; }
.result-grid h3 { margin: 0 0 14px; }
.issue-list, .action-list { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.issue-list li, .action-list li { padding-left: 5px; }
.route-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px; border: 1px solid #ead096; border-radius: 14px; background: #fffaf0; }
.route-card span, .route-card strong, .route-card small { display: block; }
.route-card strong { margin: 2px 0; color: var(--navy); font-size: 1.25rem; }
.route-card small { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.disclaimer { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }

.paid-review { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; color: var(--white); background: linear-gradient(135deg, #0a2442, #163b66); border-color: #244d78; }
.paid-copy p { color: #d8e4f1; }
.paid-copy ul { display: grid; gap: 8px; padding-left: 22px; }
.request-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 24px; color: var(--navy-ink); background: var(--white); border-radius: 16px; }
.service-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 16px; }
.service-price strong { color: var(--navy); font-size: 2.8rem; line-height: 1; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 9px; margin: 0 0 14px; font-size: .88rem; }
.consent input { width: 20px; min-height: 20px; margin-top: 2px; }
.consent span { margin: 0; font-weight: 500; }
.request-card .button { width: 100%; margin-top: 9px; }
.request-card small { display: block; margin-top: 12px; color: var(--muted); }
.status { min-height: 24px; margin: 10px 0 0; color: var(--green); font-weight: 800; }
.boundaries h2 { margin-bottom: 20px; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.boundary-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.boundary-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-weight: 900; }
.boundary-grid h3 { margin: 12px 0 6px; }
.boundary-grid p { margin: 0; color: var(--muted); }

footer { margin-top: 40px; padding: 38px 24px; text-align: center; color: #c8d7e7; background: #071a30; }
footer img { width: min(320px, 75vw); height: auto; }
footer p { margin: 10px 0 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 500px; padding: 60px max(28px, calc((100vw - 780px) / 2)); background: linear-gradient(90deg, rgba(7,26,48,.98) 0%, rgba(14,49,84,.9) 58%, rgba(14,49,84,.35) 100%), url("tuntutai-app-cover.webp"); background-size: cover; background-position: 64% center; }
  .hero-image { display: none; }
  .intro, .paid-review { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .site-header { min-height: 72px; padding: 10px 16px; }
  .brand img { width: 190px; max-width: 54vw; }
  .header-actions { gap: 7px; }
  .header-actions select { min-width: 0; width: 104px; }
  .header-actions .button { display: none; }
  .hero-copy { min-height: 520px; padding: 46px 22px; background-position: 60% center; }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .section { width: calc(100% - 24px); margin: 18px auto; padding: 22px 18px; border-radius: 16px; }
  .section-heading, .result-top { align-items: flex-start; }
  .privacy-chip { display: none; }
  .steps, .field-grid, .field-grid.metrics, .check-grid, .result-grid, .boundary-grid { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  fieldset { padding: 18px 14px; }
  .choice { grid-template-columns: 1fr; }
  .choice select { width: 100%; }
  .score-ring { width: 94px; height: 94px; flex-basis: 94px; padding-top: 21px; border-width: 8px; }
  .score-ring strong { font-size: 1.8rem; }
  .risk-banner, .route-card { align-items: flex-start; flex-direction: column; }
  .route-card .button { width: 100%; }
}

@media print {
  .site-header, .hero, .intro, .form-section, .paid-review, .boundaries, footer, .result-actions, .route-card .button { display: none !important; }
  body { background: #fff; }
  .results { display: block !important; width: 100%; margin: 0; border: 0; box-shadow: none; }
}
