:root {
  color-scheme: dark;
  --ink: #f7f9ff;
  --muted: #a9b7cf;
  --faint: #6f819e;
  --navy-950: #030a18;
  --navy-900: #07142d;
  --navy-850: #0a1d3d;
  --navy-800: #102b57;
  --navy-700: #164482;
  --blue: #2f6df6;
  --sky: #76c9ff;
  --red: #e73522;
  --orange: #ff7a3d;
  --green: #27cf8b;
  --amber: #f0b33a;
  --line: rgba(164, 195, 239, 0.16);
  --line-strong: rgba(164, 195, 239, 0.3);
  --glass: rgba(9, 26, 57, 0.78);
  --panel: rgba(12, 32, 66, 0.9);
  --shadow: 0 24px 72px rgba(0, 6, 20, 0.42);
  --page: min(1240px, calc(100vw - 40px));
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(47, 109, 246, 0.22), transparent 29rem),
    radial-gradient(circle at 8% 28%, rgba(231, 53, 34, 0.1), transparent 24rem),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 45%, #071024 100%);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(117, 164, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 164, 229, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(164, 195, 239, 0.12);
  background: rgba(3, 10, 24, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-inner {
  width: var(--page);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-link img {
  width: 190px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #c1cce0;
  font-size: 14px;
  font-weight: 760;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(47, 109, 246, 0.18);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links .console-link {
  margin-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #bd1531);
  box-shadow: 0 8px 22px rgba(231, 53, 34, 0.22);
}

.page {
  width: var(--page);
  margin: 0 auto;
  padding: 46px 0 76px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-family: "LXGW WenKai", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.display-title .accent {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #8ecbff 44%, #4c7cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #bcc9dc;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.78;
}

.button-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  color: #fff;
  background: rgba(19, 48, 94, 0.72);
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 201, 255, 0.58);
  background: rgba(24, 65, 127, 0.84);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), #bb1432);
  box-shadow: 0 15px 36px rgba(231, 53, 34, 0.24);
}

.button.ghost {
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-portrait {
  position: relative;
  isolation: isolate;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 12% -12% -8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.24);
  filter: blur(64px);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(133, 190, 255, 0.28);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.proof-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 24, 52, 0.78);
  box-shadow: var(--shadow);
}

.proof-item {
  min-height: 132px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-item span {
  display: block;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: "LXGW WenKai", "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
}

.proof-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.section {
  margin-top: 76px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: "LXGW WenKai", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.section-head p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(24, 60, 113, 0.42), transparent 64%),
    var(--panel);
  box-shadow: 0 18px 44px rgba(0, 6, 20, 0.22);
}

.card-kicker {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h2,
.card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.runtime-card {
  position: relative;
  overflow: hidden;
}

.runtime-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  bottom: -48px;
  border: 1px solid rgba(118, 201, 255, 0.24);
  border-radius: 50%;
}

.runtime-value {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.runtime-detail {
  display: block;
  margin-top: 9px;
  color: var(--faint);
  font-size: 12px;
}

.notice {
  border: 1px solid rgba(240, 179, 58, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #f6d790;
  background: rgba(125, 80, 12, 0.15);
  line-height: 1.7;
}

.error-box {
  border-color: rgba(231, 53, 34, 0.42);
  color: #ffb2a5;
  background: rgba(145, 31, 30, 0.18);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 13px;
  outline: none;
  color: #fff;
  background: rgba(3, 10, 24, 0.76);
}

.field input:focus,
.field select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(118, 201, 255, 0.12);
}

.toolbar .button {
  align-self: end;
  min-height: 44px;
}

.model-list {
  display: grid;
  gap: 14px;
}

.model-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 6, 20, 0.2);
}

.model-meta {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(47, 109, 246, 0.15), transparent 62%);
}

.model-meta h2 {
  margin: 0;
  font-size: 20px;
  word-break: break-word;
}

.model-meta p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bcd0ef;
  background: rgba(47, 109, 246, 0.09);
  font-size: 11px;
  font-weight: 760;
}

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

.price-cell {
  min-height: 112px;
  padding: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.price-cell:nth-child(-n + 2) {
  border-top: 0;
}

.price-cell:nth-child(odd) {
  border-left: 0;
}

.price-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.price-cell strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: 21px;
}

.price-cell small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  line-height: 1.5;
}

.empty {
  display: none;
  padding: 46px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 6px rgba(111, 129, 158, 0.12);
}

.status-card[data-state="ok"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(39, 207, 139, 0.12);
}

.status-card[data-state="error"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(231, 53, 34, 0.12);
}

.status-card strong {
  display: block;
  margin-top: 16px;
  font-size: 24px;
}

.status-card time,
.status-card small {
  color: var(--faint);
}

.doc-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
}

.toc a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.toc a:hover {
  color: #fff;
  background: rgba(47, 109, 246, 0.15);
}

.doc-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.doc-section {
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 98px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--panel);
}

.doc-section h2 {
  margin: 0 0 12px;
  font-family: "LXGW WenKai", "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
}

.doc-section h3 {
  margin: 24px 0 10px;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
  line-height: 1.78;
}

.doc-section ul,
.doc-section ol {
  padding-left: 1.35em;
}

.endpoint-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.endpoint {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(3, 10, 24, 0.46);
}

.endpoint span {
  display: block;
  color: var(--sky);
  font-size: 12px;
  font-weight: 850;
}

.endpoint code {
  display: block;
  margin-top: 8px;
  color: #fff;
  word-break: break-all;
}

.code-block {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #020712;
}

.code-block pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #dbe9ff;
  font: 13px/1.7 "SFMono-Regular", Consolas, monospace;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  color: #cfe0f8;
  background: rgba(16, 43, 87, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.footer {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.reveal {
  animation: reveal 620ms cubic-bezier(.2, .72, .2, 1) both;
}

.reveal-delay {
  animation-delay: 100ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .doc-shell {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 620px;
    margin: 0 auto;
  }

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

  .proof-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .model-card {
    grid-template-columns: 1fr;
  }

  .model-meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --page: min(100% - 28px, 1240px);
    --radius-lg: 24px;
  }

  .nav-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand-link img {
    width: 90px;
  }

  .nav-links {
    max-width: calc(100vw - 128px);
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

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

  .nav-links a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-links .console-link {
    margin-left: 0;
  }

  .page {
    padding: 32px 0 56px;
  }

  .display-title {
    font-size: clamp(38px, 10.5vw, 54px);
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-portrait img {
    border-radius: 26px;
  }

  .proof-strip,
  .card-grid,
  .status-grid,
  .endpoint-pair {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(3),
  .proof-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-item:first-child {
    border-top: 0;
  }

  .section {
    margin-top: 56px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .price-cell,
  .price-cell:nth-child(-n + 2),
  .price-cell:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .price-cell:first-child {
    border-top: 0;
  }

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

  .doc-section {
    padding: 22px;
  }
}
