:root {
  color-scheme: light;
  --paper: #f6f8f7;
  --ink: #182b26;
  --green: #144a3c;
  --acid: #b0ecd5;
  --quiet: #51635d;
  --line: #dce4e0;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
[hidden] { display: none !important; }
button, a { font: inherit; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #368849; outline-offset: 4px; }
.wrap { width: min(1136px, calc(100% - 72px)); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: 8px; left: 8px; width: auto; height: auto; padding: 8px; background: white; clip-path: none; z-index: 2; }
.site-header { background: #ffffffeb; border-bottom: 1px solid var(--line); }
.nav { min-height: 68px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; gap: 7px; font-size: 19px; line-height: 1; font-weight: 730; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; }
.wordmark > span { font-size: 13px; font-family: "IBM Plex Mono", Consolas, monospace; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.2vw, 30px); font-size: 14px; }
.nav-links a, .footer-inner a { color: var(--quiet); text-decoration: none; white-space: nowrap; }
.nav-links a { padding: 8px 0; }
.nav-links a[aria-current], .nav-links a:hover { color: var(--green); font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 650; padding: 8px 18px; border-radius: 30px; text-decoration: none; }
.button:hover { text-decoration: none; filter: brightness(1.12); }
.nav-key { background: var(--green); color: white; }
.hero { background: radial-gradient(ellipse at 78% 95%, #e6efeb, transparent 45%), linear-gradient(130deg, #fff, #f3f7f5); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(28px, 6vw, 95px); align-items: center; padding-block: 54px 58px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h1 { margin: 0 0 13px; font-size: clamp(42px, 5vw, 72px); letter-spacing: -.055em; }
.hero-inner > div:first-child p { color: var(--quiet); font-size: 16px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 23px; }
.hero-actions a { color: var(--green); font-size: 14px; font-weight: 650; text-decoration: none; }
.hero-actions a:hover { text-decoration: underline; }
.hero-actions .button { color: #fff; background: var(--green); }
.endpoint { min-width: 0; padding: 22px 25px; border: 1px solid #d5e2da; border-radius: 18px; background: #ffffffd9; box-shadow: 0 7px 28px #17382b09; }
.endpoint p { font-size: 13px; color: var(--quiet); }
code, pre { font-family: "IBM Plex Mono", Consolas, "Microsoft YaHei", monospace; }
.endpoint code { display: block; color: var(--green); font-size: clamp(15px, 1.6vw, 21px); overflow-wrap: anywhere; margin-block: 8px 12px; }
.endpoint button, .code-tools button { font-size: 12px; background: transparent; border: 0; padding: 4px 0; color: var(--acid); }
.endpoint button { color: var(--green); font-weight: 650; }
.endpoint button:hover, .code-tools button:hover { text-decoration: underline; }
.guide-layout { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 78px); padding-block: 48px 62px; }
.contents nav { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.contents p { font-weight: 700; margin-bottom: 4px; }
.contents a { color: var(--quiet); padding: 4px 0; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.sections { min-width: 0; display: grid; gap: 22px; }
.sections > section { min-width: 0; padding: clamp(18px, 3.6vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: 20px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; margin-bottom: 22px; }
h3 { font-size: 17px; margin-bottom: 5px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 19px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 29px 1fr; gap: 13px; }
.steps li::before { content: counter(step); background: #eaf2ee; color: var(--green); font-size: 14px; font-weight: 700; text-align: center; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; }
.steps p, .panel p, details p, .download-card p { color: var(--quiet); font-size: 14px; line-height: 1.8; }
.steps a, details a, .inline-link { color: #285b3d; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.tabs button { color: var(--quiet); background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 9px 13px; font-size: 14px; font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--green); border-color: var(--green); background: #edf4f0; }
.panel { padding-block: 24px 0; }
.panel p code, details p code { font-size: .94em; }
.code-box { overflow: hidden; border-radius: 13px; background: #152c25; color: #f1f4e9; margin-top: 15px; }
.code-tools { padding: 7px 16px; border-bottom: 1px solid #3a4e44; color: #bfd1bc; display: flex; align-items: center; justify-content: space-between; font: 12px "IBM Plex Mono", Consolas, monospace; }
.code-tools button { padding: 4px 1px; }
pre { margin: 0; padding: 17px 16px 21px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.inline-link { display: inline-block; margin-top: 14px; font-size: 14px; }
.api-reference > p { color: var(--quiet); font-size: 14px; line-height: 1.8; }
.api-reference > h3 { margin-top: 24px; }
.api-fields { display: grid; grid-template-columns: minmax(100px, .3fr) 1fr; gap: 9px 18px; margin: 22px 0 0; font-size: 14px; }
.api-fields dt { color: var(--quiet); font-weight: 700; }
.api-fields dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.api-reference strong { color: var(--green); }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #eff5f2; border: 1px solid #d7e5dd; border-radius: 14px; margin-bottom: 24px; padding: 20px; }
.download-actions { display: grid; gap: 7px; justify-items: start; font-size: 13px; color: #465c4e; }
.desktop-steps code { overflow-wrap: anywhere; }
.manual-config { margin-top: 20px; }
.download { background: var(--green); color: white; white-space: nowrap; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 2px; font-weight: 650; font-size: 15px; }
details p { padding: 0 18px 15px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 70px; display: flex; align-items: center; gap: 22px; color: var(--quiet); font-size: 13px; }
.footer-name { font-weight: 800; margin-right: auto; color: var(--green); }
.attribution { display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--line); padding-block: 13px 19px; color: var(--quiet); font-size: 14px; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 0; display: grid; grid-template-columns: 1fr auto; padding-top: 12px; gap: 5px 12px; }
  .nav-links { grid-row: 2; grid-column: 1/-1; justify-content: flex-start; gap: clamp(12px, 3.8vw, 23px); padding-block: 4px; font-size: 13px; overflow-x: auto; }
  .nav-key { grid-row: 1; grid-column: 2; padding: 5px 15px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 26px 30px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); padding-block: 20px 38px; gap: 26px; }
  .contents nav { position: static; flex-flow: row wrap; gap: 6px 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .contents p { display: none; }
  .download-card { align-items: flex-start; flex-direction: column; gap: 10px; }
  .tabs { gap: 1px; }
  .api-fields { grid-template-columns: 1fr; gap: 3px; }
  .api-fields dd { margin-bottom: 9px; }
}
@media (max-width: 420px) {
  .footer-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 12px; }
  .tabs button { padding-inline: 10px; }
}
