@import url("./brand-tokens.css");

:root {
  --brand: #14403A;
  --brand-deep: #0D2F2A;
  --brand-soft: #E5EFEB;
  --accent: #E2602C;
  --button: #B84A1E;
  --button-hover: #983B16;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #1E2421;
  --muted: #52615B;
  --line: #D8E2DD;
  --success: #1E7A4D;
  --warning: #9A6B0A;
  --error: #B42318;
  --info: #1B5FB0;
  --shadow-sm: 0 2px 10px rgba(20, 64, 58, .06);
  --shadow-md: 0 18px 48px rgba(20, 64, 58, .12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --content: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--button); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid rgba(226, 96, 44, .42); outline-offset: 3px; }
::selection { background: #F4B28F; color: var(--brand-deep); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; padding: 10px 16px; background: var(--white); color: var(--brand); }
.skip-link:focus { left: 8px; }
.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; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-alt { background: var(--paper); }
.section-soft { background: var(--brand-soft); }
.section-dark { background: var(--brand); color: var(--white); }
.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 12px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.7; }
.tiny { font-size: 12px; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 16px; color: var(--brand-deep); line-height: 1.28; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 760; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 730; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 18px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding-left: 1.25em; }
li + li { margin-top: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--button); font-size: 14px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-dark .eyebrow, .hero .eyebrow { color: #F4B28F; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-head > div:first-child { max-width: 760px; }
.section-head p { max-width: 680px; color: var(--muted); margin-bottom: 0; }
.section-dark h1, .section-dark h2, .section-dark h3, .hero h1, .hero h2, .hero h3 { color: var(--white); }
.section-dark p, .hero p { color: rgba(255,255,255,.82); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1.3; text-align: center; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--button); color: var(--white); }
.btn-primary:hover { background: var(--button-hover); color: var(--white); }
.btn-secondary { background: var(--brand); color: var(--white); }
.btn-secondary:hover { background: var(--brand-deep); color: var(--white); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--paper); color: var(--brand-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.48); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: " →"; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; }
.brand-word { display: flex; flex-direction: column; color: var(--white); font-size: 20px; font-weight: 750; line-height: 1.15; letter-spacing: .06em; }
.brand-word small { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 10px; font-weight: 450; letter-spacing: .04em; }
.footer-brand .brand-word { font-size: 22px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.84); font-size: 15px; font-weight: 550; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a.active { color: var(--white); }
.nav a.active { box-shadow: inset 0 -3px 0 var(--accent); }
.header-cta { margin-left: 4px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: var(--white); }

.hero { position: relative; overflow: hidden; padding: 76px 0 68px; background: var(--brand); color: var(--white); }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -220px; border: 1px solid rgba(244,178,143,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(244,178,143,.035), 0 0 0 160px rgba(244,178,143,.025); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 720px; margin-bottom: 22px; }
.hero-lead { max-width: 660px; font-size: 20px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 20px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.76); font-size: 14px; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: #F4B28F; }
.hero-panel { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.hero-panel h2, .hero-panel h3 { color: var(--brand-deep); }
.report-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-label { font-size: 13px; color: var(--muted); }
.report-number { font-size: 48px; line-height: 1.1; color: var(--button); font-weight: 780; letter-spacing: -.04em; }
.report-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.report-meta > div { padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.report-meta strong { display: block; color: var(--brand); font-size: 18px; }
.three-lines { display: grid; gap: 10px; margin: 20px 0; }
.three-lines span { display: block; height: 10px; border-radius: 6px; }
.three-lines span:nth-child(1) { width: 92%; background: var(--brand); }
.three-lines span:nth-child(2) { width: 72%; background: #5F857C; }
.three-lines span:nth-child(3) { width: 48%; background: var(--accent); }

.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.trust-item strong { display: block; color: var(--brand-deep); }
.trust-item span { font-size: 14px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.card { position: relative; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #AFC8BF; }
.card-soft { background: var(--paper); }
.card-dark { background: var(--brand); color: var(--white); border-color: var(--brand); }
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,.8); }
.card-accent { border-top: 4px solid var(--accent); }
.card-featured { border: 2px solid var(--button); box-shadow: 0 14px 36px rgba(184,74,30,.12); }
.card-badge { position: absolute; top: -14px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--button); color: var(--white); font-size: 13px; font-weight: 750; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 20px; font-weight: 800; }
.card h3 { font-size: 21px; }
.card-price { margin: 14px 0 18px; color: var(--button); font-size: 30px; font-weight: 780; line-height: 1.2; }
.card-price small { color: var(--muted); font-size: 14px; font-weight: 500; }
.card-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.card-list li { position: relative; padding-left: 20px; font-size: 15px; }
.card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.card-list.plain li::before { content: "—"; color: var(--muted); }
.card-footer { margin-top: auto; }
.card-product { display: flex; flex-direction: column; }

.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
.tag-orange { background: #FCE9DF; color: #8B3513; }
.tag-gray { background: #EEF1EF; color: var(--muted); }
.tag-success { background: #E4F3EA; color: var(--success); }
.tag-warning { background: #F8EEDB; color: var(--warning); }
.tag-error { background: #FBE7E4; color: var(--error); }
.risk { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.risk-low { color: var(--success); }
.risk-mid { color: var(--warning); }
.risk-high { color: var(--error); }

.page-hero { padding: 54px 0 46px; background: var(--brand); color: var(--white); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); max-width: 850px; }
.page-hero p { max-width: 780px; font-size: 19px; color: rgba(255,255,255,.82); margin-bottom: 0; }
.breadcrumb { margin-bottom: 18px; font-size: 14px; color: rgba(255,255,255,.68); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 24px; overflow-x: auto; padding: 0; }
.subnav a { flex: 0 0 auto; padding: 14px 0; color: var(--muted); font-size: 14px; font-weight: 650; }
.subnav a:hover { color: var(--button); }

.notice { padding: 16px 18px; border: 1px solid #BCD2E9; border-left: 4px solid var(--info); border-radius: 10px; background: #F0F6FC; color: #174A87; }
.notice-warning { border-color: #E7D5AC; border-left-color: var(--warning); background: #FCF7EA; color: #6F4D08; }
.notice-error { border-color: #E9BBB5; border-left-color: var(--error); background: #FDF0EE; color: #8C1D15; }
.notice-success { border-color: #B7DCC5; border-left-color: var(--success); background: #EFF8F2; color: #155D3B; }
.notice > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--brand); color: var(--white); font-size: 14px; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper); }
td strong { color: var(--brand-deep); }
.table-compact th, .table-compact td { padding: 11px 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 16px; color: var(--accent); font-size: 30px; font-weight: 780; line-height: 1; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-wide { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.quote-panel { padding: 30px; border-left: 4px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.quote-panel blockquote { margin: 0; color: var(--brand-deep); font-size: 24px; line-height: 1.55; font-weight: 650; }

.form-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--brand-deep); font-weight: 650; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #B9C9C2; border-radius: 9px; background: var(--white); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(20,64,58,.10); }
.field-help { color: var(--muted); font-size: 13px; line-height: 1.55; }
.field-error { min-height: 18px; color: var(--error); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 14px; line-height: 1.65; cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.form-message { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.form-message:empty { display: none; }

.order-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 28px; align-items: start; }
.order-summary { position: sticky; top: 96px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-lines { margin: 20px 0; }
.price-line { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-total { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 18px; }
.price-total strong { color: var(--button); font-size: 36px; line-height: 1; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; cursor: pointer; color: var(--brand-deep); font-size: 18px; font-weight: 700; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

.question { margin-bottom: 22px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.question h3 { font-size: 17px; margin-bottom: 12px; }
.question-options { display: grid; gap: 8px; }
.question-options label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--paper); cursor: pointer; }
.question-options input { margin-top: 6px; accent-color: var(--brand); }
.result-box { padding: 26px; border-radius: var(--radius); background: var(--brand-soft); }
.result-score { font-size: 52px; color: var(--button); font-weight: 780; line-height: 1; }

.article { max-width: 820px; }
.article h2 { margin-top: 40px; font-size: 28px; }
.article h3 { margin-top: 28px; font-size: 21px; }
.article p, .article li { color: #35443E; }
.article-meta { color: var(--muted); font-size: 14px; }
.article-list { display: grid; gap: 20px; }
.article-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.article-card:hover { border-color: var(--brand); }
.article-card h3 { margin-bottom: 8px; }

.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 36px; padding: 52px 0 34px; }
.footer-brand img { width: 164px; margin-bottom: 18px; }
.site-footer h3 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.site-footer a { display: block; color: rgba(255,255,255,.76); margin: 8px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline; margin: 0; }

@media (max-width: 1024px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .header-cta { display: none; }
  .hero-grid { gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .container, .narrow { width: min(100% - 36px, var(--content)); }
  .section { padding: 56px 0; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; padding: 14px 18px 22px; background: var(--brand-deep); border-bottom: 1px solid rgba(255,255,255,.16); }
  .site-header.open .nav { display: grid; gap: 2px; }
  .nav a { padding: 8px 10px; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
  .header-cta { display: inline-flex; margin: 10px 10px 0; }
  .hero { padding: 54px 0; }
  .hero-grid, .split, .split-wide, .order-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .order-summary { position: static; }
  .section-head { display: block; }
  .section-head > :last-child { margin-top: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container, .narrow { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 34px; height: 34px; }
  .brand-word { font-size: 18px; }
  .brand-word small { font-size: 9px; }
  .nav { top: 66px; }
  .hero { padding: 44px 0; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-panel { padding: 20px; }
  .report-number { font-size: 40px; }
  .report-meta { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .section { padding: 46px 0; }
  .section-sm { padding: 34px 0; }
  .page-hero { padding: 40px 0 34px; }
  .page-hero p { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
  .form-card { padding: 20px; }
  .quote-panel blockquote { font-size: 20px; }
}

.inline-actions { display: flex; gap: 10px; align-items: stretch; }
.inline-actions input { min-width: 0; flex: 1; }
.inline-actions .btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.payment-panel .check { margin: 12px 0; }
#login-status { align-self: center; }
@media (max-width: 640px) {
  .inline-actions { flex-direction: column; }
  .inline-actions .btn { width: 100%; }
  .payment-panel .form-actions .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .btn, .subnav { display: none !important; }
  .hero, .page-hero { background: var(--white); color: var(--ink); padding: 24px 0; }
  .hero h1, .hero h2, .hero p, .page-hero h1, .page-hero p { color: var(--ink); }
  .section { padding: 24px 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
