:root {
  color-scheme: light;
  --ink: #101418;
  --ink-soft: #4d5962;
  --paper: #f5f7f8;
  --white: #ffffff;
  --line: #d9dee2;
  --line-dark: #b6c0c7;
  --green: #16865a;
  --green-bright: #20a66a;
  --green-pale: #e8f6ef;
  --amber: #a45c00;
  --amber-pale: #fff4dd;
  --red: #b42318;
  --blue: #2059c7;
  --shadow: 0 16px 50px rgba(16, 20, 24, 0.09);
  --radius: 6px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 30; min-height: 68px; padding: 0 4vw;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid rgba(217, 222, 226, .9); background: rgba(245, 247, 248, .94);
  backdrop-filter: blur(14px);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img, .footer-brand img { flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: 28px; color: var(--ink-soft); font-size: 14px; }
nav a:hover { color: var(--ink); }
.header-action { padding: 9px 15px; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 700; font-size: 14px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.language-link { min-width: 38px; padding: 7px 9px; border: 1px solid var(--line-dark); border-radius: var(--radius); text-align: center; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.language-link:hover { color: var(--ink); border-color: var(--ink); }

main { overflow: hidden; }
.hero { min-height: 690px; padding: 92px max(4vw, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, .96fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 5px var(--green-pale); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 690px; margin: 0; font-size: clamp(48px, 5vw, 76px); line-height: 1.03; font-weight: 850; }
.hero-lede { max-width: 660px; margin: 26px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; font-weight: 800; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button-primary:hover { background: #263039; }
.button-secondary { color: var(--ink); background: var(--white); border-color: var(--line-dark); }
.button-secondary:hover { border-color: var(--ink); }
.button-quiet { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.button-light { color: var(--ink); background: #fff; border-color: #fff; }
.trust-list { display: flex; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; font-weight: 650; flex-wrap: wrap; }
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list svg { width: 15px; height: 15px; color: var(--green); }

.system-visual { min-width: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.window-bar { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #edf1f3; font-size: 12px; font-weight: 750; }
.window-state { padding: 4px 8px; color: var(--green); background: var(--green-pale); border: 1px solid #bfe5d0; border-radius: 4px; }
.scan-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.scan-summary > div { padding: 22px; border-right: 1px solid var(--line); }
.scan-summary > div:last-child { border-right: 0; }
.metric-label { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.scan-summary strong { display: block; font-size: 28px; line-height: 1.1; }
.scan-summary strong span { margin-left: 3px; font-size: 12px; color: var(--ink-soft); }
.metric-warn { color: var(--amber); }
.check-list { padding: 12px 16px; }
.check-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f2; font-size: 13px; }
.check-row:last-child { border-bottom: 0; }
.check-row span { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.check-row svg { width: 17px; height: 17px; color: var(--ink-soft); flex: 0 0 auto; }
.check-row b { flex: 0 0 auto; font-size: 12px; }
.ok { color: var(--green); }
.warn { color: var(--amber); }
.console-line { padding: 15px 16px; background: var(--ink); color: #dbe3e7; font-size: 11px; }
.console-line span { display: block; margin-bottom: 5px; color: #79d9a9; font-weight: 800; }
.console-line code { white-space: normal; }

.signal-band { padding: 18px 4vw; display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap; color: #d7e0e5; background: var(--ink); font-size: 12px; font-weight: 700; }
.signal-band span::before { content: "•"; margin-right: 12px; color: var(--green-bright); }

.diagnose-section, .cases-section, .pricing-section, .contact-section, .faq-section { padding: 104px max(4vw, calc((100vw - 1200px) / 2)); }
.diagnose-section { background: var(--white); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 32px; }
.section-heading h2, .safety-copy h2, .final-cta h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; }
.section-heading > p:last-child, .safety-copy > p:last-child { margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; }
.diagnose-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 28px; align-items: start; }
.diagnose-form, .diagnosis-output { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.diagnose-form { padding: 28px; }
fieldset { margin: 0 0 28px; padding: 0; border: 0; }
legend { margin-bottom: 12px; font-size: 14px; font-weight: 800; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius); background: #e9edef; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { min-height: 38px; padding: 8px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--ink-soft); cursor: pointer; font-size: 13px; font-weight: 750; }
.segmented-control input:checked + span { color: var(--ink); background: var(--white); box-shadow: 0 1px 4px rgba(16, 20, 24, .08); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-card { position: relative; min-height: 92px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.option-card:hover { border-color: var(--line-dark); }
.option-card:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #fbfffd; }
.option-card input { position: absolute; top: 12px; right: 12px; accent-color: var(--green); }
.option-card > svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
.option-card span { min-width: 0; }
.option-card strong, .option-card small { display: block; }
.option-card strong { margin-bottom: 3px; font-size: 13px; }
.option-card small { padding-right: 16px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
textarea { width: 100%; padding: 13px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: 13px; outline: none; }
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 134, 90, .1); }
.field-note { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: var(--red); font-size: 11px; }
.field-note svg { width: 14px; height: 14px; }
.form-submit { width: 100%; }
.diagnosis-output { position: sticky; top: 92px; min-height: 510px; overflow: hidden; background: var(--ink); color: #eef3f5; }
.output-empty { min-height: 510px; padding: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.output-empty > svg { width: 42px; height: 42px; margin-bottom: 16px; color: #7c8d97; }
.output-empty h3 { margin: 0 0 8px; font-size: 19px; }
.output-empty p { max-width: 280px; margin: 0; color: #9ba9b1; font-size: 13px; }
.output-result { padding: 30px; }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.result-kicker { color: #79d9a9; font-size: 11px; font-weight: 800; }
.result-header h3 { margin: 4px 0 0; font-size: 23px; line-height: 1.25; }
.severity { padding: 5px 8px; border: 1px solid #6b4c13; border-radius: 4px; color: #ffd98f; background: #3b2a0e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.output-result > p { color: #bac5ca; font-size: 13px; }
.output-result h4 { margin: 28px 0 10px; font-size: 12px; color: #79d9a9; }
.output-result ol { margin: 0; padding-left: 20px; color: #e1e8eb; }
.output-result li { margin-bottom: 11px; padding-left: 4px; font-size: 12px; }
.result-actions { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.diagnosis-output .button-primary { color: var(--ink); background: #79d9a9; border-color: #79d9a9; }
.diagnosis-output .button-quiet { color: #d6dfe3; border-color: #4a565d; }
.copy-status { min-height: 20px; margin: 9px 0 0 !important; color: #79d9a9 !important; }

.cases-section { background: var(--paper); }
.case-list { border-top: 1px solid var(--line-dark); }
.case-row { min-height: 128px; padding: 24px 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.case-number { color: var(--green); font: 800 12px ui-monospace, monospace; }
.case-row h3 { margin: 0 0 6px; font-size: 18px; }
.case-row p { max-width: 780px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.case-tag { padding: 5px 8px; border: 1px solid var(--line-dark); border-radius: 4px; color: var(--ink-soft); font-size: 11px; font-weight: 750; white-space: nowrap; }

.pricing-section { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; min-width: 0; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow); background: var(--white); }
.featured-label { position: absolute; top: 0; right: 0; padding: 5px 9px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 800; }
.plan-label { color: var(--green); font-size: 11px; font-weight: 800; }
.price-card h3 { margin: 6px 0 3px; font-size: 22px; }
.price-card > div > p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.price { margin: 28px 0 20px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 38px; line-height: 1; }
.price span { color: var(--ink-soft); font-size: 12px; }
.price-card ul { min-height: 152px; margin: 0 0 24px; padding: 0; list-style: none; }
.price-card li { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.price-card li svg { width: 15px; height: 15px; color: var(--green); }
.price-card .button { width: 100%; margin-top: auto; }

.safety-section { padding: 104px max(4vw, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; background: #e9eef0; }
.safety-copy { align-self: start; position: sticky; top: 104px; }
.safety-rules { border-top: 1px solid var(--line-dark); }
.safety-rules article { min-height: 128px; padding: 24px 0; display: grid; grid-template-columns: 40px 1fr; gap: 18px; border-bottom: 1px solid var(--line-dark); }
.safety-rules article > svg { width: 24px; height: 24px; color: var(--green); }
.safety-rules h3 { margin: 0 0 6px; font-size: 17px; }
.safety-rules p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.contact-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; background: var(--white); }
.contact-intro h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; }
.contact-intro > p:not(.eyebrow) { margin: 18px 0 0; color: var(--ink-soft); font-size: 16px; }
.contact-meta { margin-top: 34px; border-top: 1px solid var(--line); }
.contact-meta > div { min-height: 76px; padding: 16px 0; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.contact-meta svg { width: 20px; height: 20px; color: var(--green); }
.contact-meta span, .contact-meta small { display: block; }
.contact-meta small { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.contact-meta strong, .contact-meta a { font-size: 14px; font-weight: 800; }
.contact-meta a { color: var(--blue); }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form > label, .form-grid label { display: block; margin-bottom: 18px; }
.contact-form label > span, .form-grid label > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 134, 90, .1); }
.contact-form .consent-row { margin: 2px 0 18px; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; }
.contact-form .consent-row input { width: 16px; min-height: 16px; margin: 3px 0 0; accent-color: var(--green); }
.contact-form .consent-row span { margin: 0; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 22px; margin: 10px 0 0; font-size: 12px; font-weight: 750; }
.form-status.pending { color: var(--blue); }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }
.contact-form button:disabled { cursor: wait; opacity: .65; transform: none; }

.faq-section { background: var(--paper); }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { min-height: 72px; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; height: 18px; transition: transform .16s ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { max-width: 780px; margin: -4px 0 22px; color: var(--ink-soft); font-size: 14px; }

.final-cta { padding: 70px max(4vw, calc((100vw - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff; background: var(--green); }
.final-cta .eyebrow { color: #c8f1da; }
.final-cta h2 { max-width: 780px; font-size: clamp(32px, 4vw, 50px); }
footer { min-height: 116px; padding: 28px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #d2dce1; font-size: 12px; }
footer p { color: #8fa0aa; }
footer a { color: #79d9a9; }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { min-height: auto; padding-top: 72px; grid-template-columns: 1fr; gap: 48px; }
  .system-visual { max-width: 720px; }
  .diagnose-layout { grid-template-columns: 1fr; }
  .diagnosis-output { position: static; min-height: 430px; }
  .output-empty { min-height: 430px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card ul { min-height: 0; }
  .safety-section { grid-template-columns: 1fr; gap: 34px; }
  .safety-copy { position: static; }
  .contact-section { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 60px; padding: 0 18px; }
  .brand span { font-size: 14px; }
  .header-action { padding: 7px 10px; font-size: 12px; }
  .hero, .diagnose-section, .cases-section, .pricing-section, .safety-section, .contact-section, .faq-section { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 54px; padding-bottom: 60px; }
  h1 { font-size: 42px; }
  .hero-lede { font-size: 16px; }
  .hero-actions .button { flex: 1 1 170px; }
  .trust-list { gap: 10px 16px; }
  .scan-summary > div { padding: 16px 12px; }
  .scan-summary strong { font-size: 22px; }
  .check-row { align-items: flex-start; padding: 13px 0; }
  .check-row span { line-height: 1.35; }
  .signal-band { justify-content: flex-start; padding: 18px; }
  .diagnose-section, .cases-section, .pricing-section, .safety-section, .contact-section, .faq-section { padding-top: 72px; padding-bottom: 72px; }
  .diagnose-form { padding: 18px; }
  .segmented-control { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .diagnosis-output, .output-empty { min-height: 400px; }
  .output-result { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 18px; }
  .case-row { grid-template-columns: 34px 1fr; gap: 14px; }
  .case-tag { grid-column: 2; justify-self: start; }
  .final-cta { padding: 54px 18px; flex-direction: column; align-items: flex-start; }
  footer { padding: 28px 18px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
