:root {
  color-scheme: light;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --ink: #182033;
  --muted: #566176;
  --line: #dce1eb;
  --purple: #6146dc;
  --purple-dark: #4931b7;
  --purple-soft: #eeeafb;
  --green: #216548;
  --green-soft: #e6f4ec;
  --terminal: #182032;
  --shadow: 0 20px 65px rgb(34 43 72 / 8%);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: clamp(30px, 3.4vw, 45px); font-weight: 760; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.shell { width: min(1360px, calc(100% - 36px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(220 225 235 / 85%);
  background: rgb(247 248 251 / 95%);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand img { flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: 25px; }
nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--purple-dark); }
.language-button {
  min-width: 48px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.language-button:hover { border-color: var(--line); color: var(--ink); background: var(--surface); }
.nav-github { padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }

/* Hero: the product definition must remain readable without JavaScript or images. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 36px;
  padding-block: 44px;
}
.hero > *, .quickstart-layout > * { min-width: 0; }
.eyebrow, .kicker {
  margin-bottom: 16px;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
h1 { margin-bottom: 24px; font-size: clamp(42px, 4.3vw, 62px); font-weight: 800; }
.accent { color: var(--purple); }
.product-mapping { display: grid; gap: 7px; margin-bottom: 14px; }
.product-mapping p { font-size: 16px; line-height: 1.65; }
.product-mapping strong { font-weight: 750; white-space: nowrap; }
.product-mapping p > span:last-child { color: var(--purple-dark); font-weight: 650; }
.hero-provider-support {
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px solid #dad3f4;
  border-left: 3px solid var(--purple);
  border-radius: 10px;
  background: var(--purple-soft);
}
.hero-provider-label {
  margin-bottom: 5px;
  color: var(--purple-dark);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.hero-provider-list { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.hero-provider-list strong { font-size: 14px; line-height: 1.65; font-weight: 700; white-space: nowrap; }
.lede { max-width: 550px; margin-bottom: 25px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.button-primary { color: white; background: var(--purple); box-shadow: 0 5px 15px rgb(97 70 220 / 15%); }
.button-primary:hover { background: var(--purple-dark); box-shadow: 0 6px 20px rgb(97 70 220 / 22%); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: #c1b6ee; background: #f3f0fd; }
.install-block { width: fit-content; max-width: 100%; margin-top: 20px; display: flex; align-items: center; gap: 15px; padding: 5px 6px 5px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.install-block code { min-width: 0; padding-block: 7px; font-size: 13px; overflow-wrap: anywhere; }
.copy-button {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: #edf0f6;
  font-size: 12px;
  font-weight: 650;
}
.copy-button:hover { color: var(--purple-dark); background: var(--purple-soft); }
.copy-button.copied { color: var(--green); background: var(--green-soft); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 15px; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-facts span::before { content: "✓"; margin-right: 6px; color: var(--green); }
.qualification { max-width: 520px; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* Main content */
.section { padding-block: 48px; }
#quickstart { border-top: 1px solid var(--line); }
.hero-demo { width: 100%; max-width: 860px; justify-self: center; align-self: start; margin-top: 10px; }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.demo-controls > a { display: inline-flex; align-items: center; min-height: 38px; color: #d6def0; font-size: 11px; }
.demo-controls > a:hover { color: white; }
.demo-task { padding: 14px 18px 0; font-size: 15px; font-weight: 650; line-height: 1.6; }
.demo-frame { overflow: hidden; border: 1px solid #2d3850; border-radius: var(--radius); color: #e8edf8; background: var(--terminal); box-shadow: var(--shadow); }
.demo-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #344057; }
.fixture-badge { color: #b7c6dd; font-size: 10px; font-weight: 700; letter-spacing: .065em; }
.demo-control { min-height: 38px; padding: 8px 12px; border: 1px solid #60718c; border-radius: 7px; color: #fff; background: #34415b; font-size: 12px; font-weight: 650; }
.demo-control:hover { background: #475773; }
.demo-frame > img { width: 100%; aspect-ratio: 718 / 480; object-fit: contain; background: var(--terminal); }
.demo-frame figcaption { padding: 16px 20px; border-top: 1px solid #344057; color: #c1cbdd; font-size: 12px; line-height: 1.75; }

/* Installation */
.quickstart-layout { display: grid; grid-template-columns: .85fr 1.25fr; align-items: start; gap: 52px; }
.quickstart-copy h2 { margin-bottom: 18px; font-size: clamp(28px, 3vw, 36px); }
.quickstart-copy > p:not(.kicker) { margin-bottom: 18px; color: var(--muted); font-size: 16px; }
.quickstart-copy .platform-note { font-size: 13px !important; }
.text-link { color: var(--purple-dark); font-size: 14px; font-weight: 700; }
.setup-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface); box-shadow: var(--shadow); }
.setup-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 13px; }
.setup-step + .setup-step { margin-top: 22px; }
.setup-number { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-dark); font-size: 12px; font-weight: 750; }
.setup-step h3 { margin: 2px 0 11px; font-size: 16px; }
.command-line { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.command-line code { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 12px; }
.setup-step pre { max-width: 100%; margin: 0 0 11px; padding: 14px; overflow-x: auto; border-radius: 9px; color: #e8edf8; background: var(--terminal); font-size: 13px; line-height: 1.9; }
.setup-step p { color: var(--muted); font-size: 13px; }
.setup-step .example-prompt { padding: 12px 14px; border-left: 3px solid #b4a2ee; background: #f5f2fd; color: #423970; }
.provider-command { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.provider-command > span { color: var(--muted); }
.provider-command code { overflow-wrap: anywhere; font-size: 12px; }
.provider-command .copy-button { margin-left: auto; }
.provider-options { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.provider-options code { overflow-wrap: anywhere; font-size: 11px; }

/* Short usage notes and footer */
.usage-notes { padding-block: 25px 30px; border-top: 1px solid var(--line); }
.usage-notes h2 { margin-bottom: 12px; font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
.usage-notes p { max-width: 1100px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.usage-notes p + p { margin-top: 8px; }

footer { padding-block: 25px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; color: var(--muted); }
footer .brand { color: var(--ink); font-size: 17px; }
.footer-inner p { max-width: 530px; }
.footer-inner > div { display: flex; flex-shrink: 0; gap: 18px; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2 { letter-spacing: -.025em; line-height: 1.25; }
html[lang="zh-CN"] .eyebrow, html[lang="zh-CN"] .kicker { letter-spacing: .035em; }

@media (min-width: 1600px) {
  .hero { padding-block: 52px; }
}

@media (max-width: 1100px) {
  .hero { gap: 30px; padding-block: 52px; }
  h1 { font-size: 46px; }
  .product-mapping p { font-size: 15px; }
  .quickstart-layout { gap: 36px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 46px; }
  .hero-copy { max-width: 660px; }
  .hero-demo { margin-top: 0; }
  h1 { font-size: clamp(42px, 7vw, 60px); }
  .lede { max-width: 620px; }
  .product-mapping p { font-size: 16px; }
  .section { padding-block: 62px; }
  .quickstart-layout { grid-template-columns: 1fr; gap: 30px; }
  .quickstart-copy { max-width: 680px; }
  .setup-card { max-width: 720px; width: 100%; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; flex-basis: 100%; max-width: none; }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  .nav-wrap { min-height: 64px; gap: 12px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  nav { gap: 8px; }
  .nav-detail { display: none; }
  .nav-github { padding: 9px 11px; font-size: 12px; }
  .hero { padding-block: 34px 38px; gap: 28px; }
  .eyebrow { font-size: 10px; margin-bottom: 14px; }
  h1 { font-size: clamp(32px, 8.8vw, 48px); margin-bottom: 21px; }
  h2 { font-size: 30px; }
  .product-mapping { gap: 7px; margin-bottom: 12px; }
  .product-mapping p { font-size: 14px; line-height: 1.65; }
  .hero-provider-support { margin-bottom: 17px; padding: 10px 12px; }
  .hero-provider-label { font-size: 12px; }
  .hero-provider-list { gap: 4px 12px; }
  .hero-provider-list strong { font-size: 13px; }
  .lede { font-size: 15px; line-height: 1.8; margin-bottom: 22px; }
  .hero-actions { gap: 9px; }
  .button { padding: 12px 16px; font-size: 13px; min-height: 46px; }
  .install-block { gap: 10px; }
  .install-block code { font-size: 12px; }
  .hero-facts { gap: 7px 14px; font-size: 11px; }
  .qualification { font-size: 10px; }
  .section { padding-block: 48px; }
  .kicker { font-size: 10px; }
  .demo-toolbar { padding: 10px 12px; gap: 8px; }
  .demo-controls { gap: 9px; }
  .demo-controls > a { font-size: 10px; }
  .demo-task { padding: 12px 14px 0; font-size: 14px; }
  .usage-notes { padding-block: 22px 25px; }
  .usage-notes p { font-size: 12px; }
  .fixture-badge { font-size: 9px; letter-spacing: .025em; }
  .demo-frame { border-radius: 14px; }
  .demo-frame figcaption { padding: 14px; font-size: 11px; }
  .quickstart-copy > p:not(.kicker) { font-size: 14px; }
  .setup-card { padding: 21px 16px; border-radius: 15px; }
  .setup-step { grid-template-columns: 25px minmax(0, 1fr); gap: 10px; }
  .setup-number { width: 25px; height: 25px; }
  .setup-step h3 { font-size: 14px; }
  .command-line { padding-left: 9px; gap: 7px; }
  .command-line code { font-size: 11px; }
  .command-line .copy-button { min-width: 39px; padding-inline: 7px; font-size: 11px; }
  .setup-step pre { font-size: 12px; padding: 12px; }
  .provider-command { font-size: 11px; }
  .provider-command code { font-size: 11px; }
  .footer-inner { gap: 18px; }
  .footer-inner p { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
