:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #142943;
  background: #f7f9fd;
  font-synthesis: none;
  --muted: #52657a;
  --line: #dce5f1;
  --blue: #254b8f;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #477ecc; outline-offset: 4px; }
svg { display: block; width: 24px; height: 24px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.brand b { color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #234679; }
.brand-mark svg { width: 21px; height: 21px; }
nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, .footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.nav-action { color: var(--blue); font-weight: 700; white-space: nowrap; }
.site-header .official-website-label { display: inline; }

.hero { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: clamp(34px, 5vw, 84px); padding-block: clamp(52px, 7vw, 98px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #cfdcf1; border-radius: 99px; background: #edf3fd; color: var(--blue); font-size: 13px; font-weight: 700; }
.eyebrow span, .local-note span { width: 7px; height: 7px; border-radius: 50%; background: #338376; }
h1 { margin-top: 22px; font-size: clamp(38px, 5vw, 68px); line-height: 1.16; letter-spacing: -.055em; }
h1 em { font-style: normal; color: var(--blue); }
.intro { max-width: 27em; margin-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button.primary { color: #fff; background: #244a89; box-shadow: 0 7px 18px #254b8f26; }
.button.primary:hover { background: #183a72; }
.button.secondary { color: var(--blue); border-color: #c9d8ed; background: #fff; }
.button.secondary:hover { background: #edf3fd; }
.local-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.runner-download { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 11px; }
.runner-download a { color: var(--blue); font-size: 14px; font-weight: 700; }
.runner-download a:hover { text-decoration: underline; }
.runner-download small { color: var(--muted); font-size: 12px; }

.preview { min-width: 0; border: 1px solid #cfdcec; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 54px #244a8916; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #eaf1fb; border-bottom: 1px solid #dce6f5; color: #455c79; font-size: 12px; }
.preview-top span:first-child { display: flex; gap: 5px; }
.preview-top i { width: 7px; height: 7px; border-radius: 50%; background: #8ca7ca; }
.preview-content { padding: clamp(16px, 2.3vw, 27px); }
.preview-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.preview-title h2 { font-size: clamp(17px, 2vw, 23px); }
.flow-tag { background: #eaf5f3; border-radius: 6px; padding: 4px 8px; color: #24645c; font-size: 12px; white-space: nowrap; }
.flow-preview { list-style: none; padding: 0; margin: 17px 0 19px; display: grid; gap: 7px; }
.flow-preview li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; border: 1px solid #e2eaf6; border-radius: 8px; background: #f7f9fd; }
.flow-index { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #e6effc; color: var(--blue); font: 700 12px ui-monospace, monospace; }
.flow-preview strong { display: block; font-size: 14px; }
.flow-preview small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.result-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 15px; }
.result-preview div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.result-preview dt { color: var(--muted); font-size: 12px; }
.result-preview dd { margin-top: 3px; font-size: clamp(18px, 3vw, 25px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-preview dd small { font-size: 11px; font-weight: 500; }
.preview-action { margin-top: 17px; }
.preview-action button { width: 100%; cursor: pointer; }
.preview-action button:focus-visible { outline: 3px solid #477ecc; outline-offset: 3px; }
.preview-action p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.feature-section { padding-block: 47px 51px; border-block: 1px solid var(--line); background: #fff; }
.section-label { color: var(--blue); font-size: 13px; font-weight: 700; }
.feature-section h2, .example h2 { margin-top: 7px; font-size: clamp(23px, 3vw, 32px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.feature-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.feature-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #eaf1fc; }
.feature-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { margin-top: 13px; font-size: 17px; }
.feature-grid p, .example p:not(.section-label) { margin-top: 7px; color: var(--muted); line-height: 1.75; font-size: 14px; }
.feature-note { margin-top: 16px; color: var(--muted); line-height: 1.75; font-size: 14px; }
.feature-note strong { margin-right: 6px; color: var(--blue); }
.example { padding-block: 43px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--blue); }
.footer .logout button { font: inherit; color: var(--blue); background: transparent; border: 0; cursor: pointer; padding: 0; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; padding-block: 42px; }
  .feature-grid { grid-template-columns: 1fr; }
  .example { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 450px) {
  .header-inner { min-height: 60px; gap: 8px; }
  nav { gap: 8px; }
  nav a:not(.nav-action, .official-website-link) { display: none; }
  .nav-action { font-size: 13px; }
  .nav-action span { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .intro { font-size: 15px; }
  .result-preview div + div { padding-left: 8px; }
}

@media (max-width: 360px) {
  .site-header .wrap { width: calc(100% - 24px); }
  .brand { gap: 6px; }
  nav .nav-action { display: none; }
}
