:root {
  --paper: #f5f7f4; --white: #ffffff; --ink: #172d3a; --muted: #566770; --rule: #cddad5;
  --brand: #087f73; --brand-ink: #06655b; --tint: #e6f0ec; --code: #102330; --code-ink: #dbe7e3;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Noto Sans Mono CJK SC", "Sarasa Mono SC", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, video { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--white); padding: 6px 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; margin: 0 0 18px; letter-spacing: .01em; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.intro { color: var(--muted); max-width: 46em; margin: 0 0 28px; }
.fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }

.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
  padding: 11px 22px; border-radius: 6px; border: 2px solid var(--brand); }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 5; background: rgba(245, 247, 244, .94); backdrop-filter: blur(6px);
  border-top: 5px solid var(--brand); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 24px; height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; }
.logo em { font-style: normal; color: var(--brand); }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--brand); }

/* 首屏：左文字，右边是真实解码演示 */
.hero { padding: 64px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.kicker { color: var(--brand); font-weight: 700; margin: 0 0 10px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.hero-media { margin: 0; }
.hero-media video { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule); }
.hero-media figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* 测试摘要：一行账目，不做卡片 */
section.ledger { padding: 0; }
.ledger { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.ledger-cap { margin: 0; padding: 18px 0 0; font-weight: 700; }
.ledger dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.ledger dl > div { padding: 12px 20px 22px 0; }
.ledger dl > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.ledger dt { font-size: 14px; color: var(--muted); }
.ledger dd { margin: 0; font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; color: var(--brand); line-height: 1.2; }
.ledger dl p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

section { padding: 72px 0; }
.band { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* 平台：四栏，竖线分隔 */
.plat { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.plat article { padding: 18px 20px 4px 0; }
.plat article + article { padding-left: 20px; border-left: 1px solid var(--rule); }
.plat p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }
.plat ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.plat code { white-space: nowrap; font-size: 12.5px; }

/* 代码 */
.tabs { display: flex; gap: 4px; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--muted);
  padding: 8px 18px; border-radius: 6px 6px 0 0; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--code); color: #fff; }
.code { margin: 0; background: var(--code); color: var(--code-ink); padding: 22px 24px; border-radius: 0 8px 8px 8px;
  overflow-x: auto; font: 14px/1.7 var(--mono); position: relative; }
.code code { background: none; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 10px; right: 10px; font: 12px var(--sans); background: #23394a; color: #cfe0db;
  border: 0; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.feats b { display: inline-block; width: 3.5em; color: var(--brand); }

/* 能力区间 */
.sub { margin-top: 8px; }
.legend-note { color: var(--muted); font-size: 14px; max-width: 52em; }
.cap { margin: 18px 0; }
.cap-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 5px 0; }
.cap-head { display: flex; flex-direction: column; justify-content: center; }
.cap-head b { font-size: 15px; }
.cap-head small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cap-strip { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; border-radius: 5px; overflow: hidden; }
.cap-strip li { flex: 1; padding: 6px 10px; min-height: 50px; display: flex; flex-direction: column; justify-content: center; }
.cap-strip b { font-size: 17px; line-height: 1.2; }
.cap-strip span { font-size: 12px; opacity: .88; line-height: 1.3; }
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 0; }
.samples figure { margin: 0; }
.samples img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.samples figcaption { font-size: 13.5px; margin-top: 6px; }
.caveat { font-size: 13.5px; color: var(--muted); margin-top: 22px; }

/* 试用步骤：真实的先后顺序，用编号 */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; max-width: 820px; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 56px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 2px; background: var(--rule); }
.steps b { font-size: 17px; display: block; padding-top: 4px; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.dls { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.dl { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font-weight: 700;
  border: 2px solid var(--ink); border-radius: 6px; padding: 8px 16px; min-width: 190px; }
.dl small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.dl:hover { border-color: var(--brand); color: var(--brand-ink); }
.dl.muted { border-style: dashed; border-color: var(--muted); }

/* 价格：一张账单，不做卡片 */
.prices { list-style: none; padding: 0; margin: 0 0 24px; border-top: 2px solid var(--ink); max-width: 820px; }
.prices li { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule); }
.p-name { font-weight: 700; }
.p-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.p-price { font-size: 26px; font-weight: 700; color: var(--brand); }
.p-note { color: var(--muted); font-size: 14px; }

.faq { max-width: 820px; margin: 0; }
.faq dt { font-weight: 700; margin-top: 20px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

.dark { background: var(--ink); color: #fff; border: 0; }
.dark .intro { color: #b9c9c4; }
.contact-in { display: flex; gap: 48px; align-items: flex-start; justify-content: space-between; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid #2c4553; font-size: 17px; }
.contact span { width: 5em; color: #9fb4ae; font-size: 15px; }
.contact a { color: #8fe0cb; }
.qr { margin: 0; background: #fff; padding: 10px; border-radius: 8px; text-align: center; color: var(--ink); font-size: 13px; }

.foot { padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0; }
  .ledger dl, .plat { grid-template-columns: 1fr 1fr; }
  .ledger dl > div:nth-child(3), .plat article:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger dl > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .plat article:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .samples { grid-template-columns: 1fr 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  .cap-head { flex-direction: row; gap: 10px; align-items: baseline; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  section { padding: 52px 0; }
  .ledger dl, .plat { grid-template-columns: 1fr; }
  .ledger dl > div, .plat article { border-left: 0 !important; padding-left: 0 !important; }
  .ledger dl > div + div, .plat article + article { border-top: 1px solid var(--rule); }
  .cap-strip li { padding: 5px 6px; min-height: 46px; }
  .cap-strip b { font-size: 15px; }
  .cap-strip span { font-size: 10.5px; }
  .prices li { grid-template-columns: 1fr auto; }
  .p-note { grid-column: 1 / -1; }
  .contact-in { flex-direction: column; gap: 24px; }
  .code { font-size: 12.5px; padding: 18px 16px; }
}
