:root {
  color-scheme: light;
  --paper: #f4f6ef;
  --ink: #172e23;
  --muted: #4c6255;
  --line: #ccd6c8;
  --green: #194734;
  --deep: #163b2c;
  --lime: #d9efac;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .29em; }
a:hover { color: #326644; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #598324; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--deep); }
p { margin: 0; color: var(--muted); line-height: 1.8; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 16px; background: var(--paper); }
.skip:focus { transform: none; }
.site-header { min-height: 79px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; white-space: nowrap; }
.brand strong { font: 700 1.28rem/1.1 system-ui, sans-serif; letter-spacing: -.035em; }
.brand span { border-left: 1px solid var(--line); padding-left: 10px; color: var(--muted); font-size: .88rem; }
nav { display: flex; gap: clamp(14px, 3vw, 40px); }
nav a, .lab-link { font-size: .88rem; text-decoration: none; white-space: nowrap; }
nav a:hover, .lab-link:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink); }
.hero { position: relative; isolation: isolate; overflow: hidden; color: #f1f6ec; background: #0d241a; }
.hero-layout { position: relative; display: flex; align-items: center; min-height: 570px; padding-block: 76px; }
.hero-copy { width: min(100%, 680px); }
.flow-art { position: absolute; inset: 0 0 0 28%; pointer-events: none; mask-image: linear-gradient(90deg, transparent 5%, #000 46%); }
.flow-art canvas { display: block; width: 100%; height: 100%; }
.hero h1 { color: inherit; font-size: clamp(2.35rem, 5vw, 4.45rem); line-height: 1.16; letter-spacing: -.035em; font-weight: 750; }
.hero-copy > p:first-of-type { max-width: 27em; margin-top: 22px; color: #bfcebf; }
.endpoint { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: fit-content; max-width: 100%; border: 1px solid #678071; border-radius: 8px; padding: 9px 9px 9px 15px; margin-top: 25px; background: #142e22; }
.endpoint div { min-width: 0; }
.endpoint span { display: block; font-size: .75rem; color: #bfcebf; margin-bottom: 4px; }
.endpoint code { overflow-wrap: anywhere; font-size: clamp(.79rem, 1.38vw, 1rem); }
.copy, .quiet-button { border: 0; border-radius: 6px; padding: .72em .94em; font-size: .84rem; font-weight: 650; }
.copy { background: var(--lime); color: #192a1b; white-space: nowrap; min-height: 44px; }
.copy:hover { background: #ebfacb; }
.hero-links { font-size: .84rem; margin-top: 8px; }
.hero-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 650; color: var(--lime); }
.hero :focus-visible { outline-color: var(--lime); }
.motion-toggle { position: absolute; right: 0; bottom: 24px; padding: 0 12px; min-height: 44px; border: 1px solid #678071; border-radius: 6px; font-size: .8rem; background: #142e22; color: #e5efe2; }
.motion-toggle:hover { background: #244637; }
.section { padding-block: clamp(48px, 6.5vw, 88px); display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(26px, 6vw, 80px); }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.63rem); line-height: 1.25; letter-spacing: -.025em; }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-list > li { padding-block: 20px; border-bottom: 1px solid var(--line); }
.service-list > .service-placeholder { min-height: 80px; display: flex; align-items: center; color: var(--muted); }
.service-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 6px; }
.service-title h3 { font-size: clamp(1.06rem, 1.8vw, 1.24rem); }
.service-status { background: #e9ede4; border-radius: 4px; padding: 2px 8px; font-size: .75rem; color: #43574b; white-space: nowrap; }
.service-status.ready { background: #e2edcf; color: #2c4c2b; }
.service-list p { font-size: .9rem; }
.service-list .provenance { font-size: .8rem; margin-top: 3px; }
.service-list .service-example { margin-top: 9px; color: var(--ink); }
.connect-band { background: #e5eddf; }
.steps { margin: 0; padding-left: 2em; }
.steps li { padding: 0 0 18px 9px; }
.steps li + li { border-top: 1px solid #bfcfbe; padding-top: 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { color: var(--green); font-weight: 700; }
.steps h3 { font-size: 1.12rem; margin-bottom: .28em; }
.steps p, .faq details p { font-size: .91rem; }
pre { color: #eaf2e4; background: var(--deep); margin: 10px 0 8px; padding: 13px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.quiet-button { color: var(--green); background: transparent; border: 1px solid #a2b5a6; }
.quiet-button:hover { background: #f4f6ef; }
.question { padding: 5px 0; font-weight: 550; }
.downloads { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 650; font-size: .86rem; margin-top: 7px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: 9px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 23px; display: flex; flex-wrap: wrap; gap: 12px 19px; align-items: center; color: var(--muted); font-size: .82rem; }
.site-footer > a:last-child { margin-left: auto; }
.notice { position: fixed; inset: auto 18px 18px auto; z-index: 1; max-width: calc(100% - 36px); background: var(--deep); color: white; border-radius: 6px; padding: 12px 17px; font-size: .88rem; }
.notice:empty { display: none; }
.api-doc { padding-block: 56px 88px; max-width: 960px; }
.api-doc h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.api-doc section { margin-top: 48px; }
.api-doc h2 { margin-bottom: 18px; font-size: 1.8rem; }
.api-doc h3 { margin: 30px 0 12px; font-size: 1.2rem; }
.api-doc p + p { margin-top: 14px; }
.api-doc p, .api-doc li { max-width: 72ch; }
.api-doc li { line-height: 1.9; overflow-wrap: anywhere; }
.api-doc code { overflow-wrap: anywhere; font-size: .9em; }
.api-doc pre { line-height: 1.7; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 22px; }
.api-doc table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
.api-doc th, .api-doc td { border-bottom: 1px solid var(--line); padding: 14px 12px; vertical-align: top; }
.api-doc th { background: #e5eddf; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 50px); }
  .hero-layout { min-height: 500px; }
  .flow-art { inset-inline-start: 32%; }
  .section { gap: 30px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { flex-wrap: wrap; gap: 13px; padding-block: 14px; }
  .site-header nav { order: 1; width: 100%; }
  .hero-layout { min-height: auto; align-items: flex-start; padding-block: 42px 158px; }
  .hero h1 { font-size: clamp(1.75rem, 8.2vw, 3.3rem); }
  .flow-art { inset: auto 0 0; height: 167px; mask-image: linear-gradient(transparent, #000 32%); }
  .motion-toggle { bottom: 14px; }
  .section { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
