:root {
  color-scheme: light;
  --ink: #10243f;
  --ink-deep: #09182b;
  --ink-soft: #334a68;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #edf3f8;
  --line: #d8e2ed;
  --line-strong: #b7c8da;
  --accent: #1677c8;
  --accent-strong: #0c5d9f;
  --accent-soft: #e6f2fb;
  --success: #16734a;
  --shadow: 0 18px 55px rgba(16, 36, 63, 0.09);
  --radius: 18px;
  --radius-small: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 5%, rgba(22, 119, 200, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 17ch;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 720;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f0a11a;
  outline-offset: 3px;
  border-radius: 4px;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(183, 200, 218, 0.75);
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  gap: clamp(10px, 1.5vw, 22px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.button-small {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 0.88rem;
}

.section {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(54px, 7vw, 88px);
}

.hero.section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  min-height: 64vh;
  gap: clamp(34px, 7vw, 92px);
  padding-block: clamp(64px, 9vw, 118px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 68ch;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.snapshot-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 44%),
    var(--ink);
  box-shadow: var(--shadow);
  color: #fff;
}

.snapshot-panel::after {
  position: absolute;
  right: -45px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.panel-label {
  margin-bottom: 18px;
  color: #9cd1f5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot-panel dl {
  display: grid;
  margin: 0 0 18px;
}

.snapshot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.snapshot-row dt {
  color: #c9d8e8;
  font-size: 0.88rem;
}

.snapshot-row dd {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.panel-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c9d8e8;
  font-size: 0.78rem;
  line-height: 1.6;
}

.section-contrast {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--container)) / 2));
  background: var(--surface-muted);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading > :last-child {
  margin-bottom: 0;
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.split-heading > div {
  max-width: 700px;
}

.split-heading > p {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section-copy {
  max-width: 80ch;
  color: var(--ink-soft);
}

.compact-note {
  margin-top: 22px;
  font-size: 0.88rem;
}

.vendor-grid,
.model-grid,
.group-grid,
.steps-grid,
.stats-grid {
  display: grid;
  gap: 18px;
}

.vendor-grid,
.model-grid,
.group-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.vendor-card,
.model-card,
.group-card,
.step-card,
.guide-card,
.api-card,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 36, 63, 0.045);
}

.vendor-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.vendor-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-2px);
}

.vendor-card strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.vendor-card p {
  flex: 1;
  margin: 6px 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.vendor-kicker {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 750;
}

.model-grid {
  align-items: stretch;
}

.model-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  padding: 20px;
}

.model-id {
  display: block;
  margin-bottom: auto;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.model-meta {
  margin: 20px 0 9px;
  color: #5a6f88;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.group-chip {
  display: inline-block;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #c9dced;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #174e79;
  font-size: 0.74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.group-chip-large {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.group-chips-showcase {
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.group-grid {
  align-items: start;
}

.group-card {
  min-width: 0;
  padding: 22px;
}

.group-card h3 {
  margin-bottom: 8px;
}

.group-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compact-list {
  display: grid;
  margin: 14px 0 0;
  padding: 14px 0 0;
  gap: 7px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.compact-list li,
.compact-list code {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat {
  min-width: 0;
  padding: 20px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.68);
}

.stat strong {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.step-card {
  position: relative;
  padding: 26px;
}

.step-number {
  display: block;
  margin-bottom: 26px;
  color: #9bb1c8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.step-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.inline-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.inline-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.inline-stats strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.callout-section {
  padding-top: 24px;
}

.callout {
  padding: clamp(25px, 4vw, 42px);
  background:
    linear-gradient(125deg, rgba(22, 119, 200, 0.08), transparent 45%),
    var(--surface);
}

.callout h2 {
  max-width: 26ch;
}

.callout p:not(.eyebrow) {
  max-width: 72ch;
  color: var(--ink-soft);
}

.compact-callout {
  margin-top: 26px;
  padding: 22px;
}

.compact-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.compact-callout p {
  margin-bottom: 0;
}

.related-section {
  border-top: 1px solid var(--line);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.link-row .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.faq-section {
  padding-top: 26px;
}

.faq-list {
  display: grid;
  max-width: 900px;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.faq-item summary {
  min-height: 52px;
  padding: 14px 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.faq-answer {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: clamp(30px, 5vw, 64px);
}

.guide-main {
  min-width: 0;
}

.guide-main > h3 {
  margin-top: 28px;
}

.guide-aside {
  position: sticky;
  top: 96px;
  display: grid;
  padding: 24px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-aside ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.guide-aside li {
  margin-bottom: 9px;
  padding-left: 3px;
}

.guide-card {
  padding: clamp(22px, 3vw, 30px);
}

.api-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.api-card {
  min-width: 0;
  padding: 20px;
}

.api-card > span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-card > code {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.api-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.api-card p code {
  color: var(--ink);
}

.code-block {
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid #263f5f;
  border-radius: var(--radius-small);
  background: var(--ink-deep);
  color: #e7f1fa;
}

.code-label {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #9cc7e8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.81rem;
  line-height: 1.7;
  tab-size: 2;
}

.code-block code {
  overflow-wrap: normal;
  word-break: normal;
  white-space: pre;
}

.trouble-list {
  display: grid;
  margin-top: 18px;
  gap: 9px;
}

.trouble-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.trouble-row code {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #fce9e5;
  color: #a52b1c;
  font-weight: 800;
}

.trouble-row p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 50px;
  padding-block: 54px 28px;
  background: var(--ink-deep);
  color: #d7e4f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 48px;
}

.footer-brand {
  margin-bottom: 18px;
  color: #fff;
}

.footer-brand .brand-mark {
  background: #fff;
  color: var(--ink-deep);
}

.site-footer p {
  max-width: 66ch;
  margin-bottom: 0;
  color: #aebfd0;
  font-size: 0.87rem;
}

.footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c8d9e8;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #91a7bc;
  font-size: 0.75rem;
}

.footer-bottom span:last-child {
  max-width: 72ch;
  text-align: right;
}

@media (max-width: 1050px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-block: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero.section {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 36px;
  }

  .vendor-grid,
  .model-grid,
  .group-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .container,
  .section {
    width: min(100% - 28px, var(--container));
  }

  .section-contrast {
    width: 100%;
    padding-inline: 14px;
  }

  .hero.section,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .hero.section {
    min-height: 0;
    padding-block: 52px 68px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.25rem, 11vw, 3.7rem);
  }

  .split-heading {
    display: block;
  }

  .split-heading > p {
    margin-top: 14px;
  }

  .vendor-grid,
  .model-grid,
  .group-grid,
  .steps-grid,
  .api-cards {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 0;
  }

  .model-id {
    margin-bottom: 0;
  }

  .guide-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-bottom span:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 16px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .button-small {
    padding-inline: 13px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }

  .stat strong {
    font-size: 2rem;
  }

  .trouble-row {
    grid-template-columns: 1fr;
  }

  .trouble-row code {
    width: 64px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .snapshot-row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
