:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0c1119;
  --surface: rgba(13, 18, 27, 0.82);
  --surface-2: rgba(18, 24, 34, 0.9);
  --line: rgba(156, 176, 202, 0.18);
  --line-strong: rgba(85, 220, 255, 0.36);
  --text: #f5f8fc;
  --muted: #9ba8ba;
  --soft: #cbd4df;
  --cyan: #58dcff;
  --magenta: #ff4fb0;
  --green: #74e3ad;
  --amber: #f0c76b;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(88, 220, 255, 0.055), transparent 310px),
    linear-gradient(135deg, #070a0f 0%, #0d141d 62%, #0d1018 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a,
.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .active {
  color: var(--text);
  background: rgba(88, 220, 255, 0.12);
}

.header-action {
  color: #061018;
  background: var(--cyan);
}

.home main {
  width: 100%;
  max-width: none;
}

.hero {
  position: relative;
  min-height: min(620px, calc(100vh - 116px));
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-top: -68px;
  padding: 124px 0 76px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.91) 0%, rgba(7, 10, 15, 0.76) 45%, rgba(7, 10, 15, 0.3) 100%),
    linear-gradient(180deg, rgba(7, 10, 15, 0.12) 0%, rgba(7, 10, 15, 0.86) 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(1.04) contrast(1.03);
}

.hero-copy,
.ops-strip,
.home .section-block {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(88, 220, 255, 0.3);
  border-radius: var(--radius);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.055);
}

.product-pill img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 10px;
  color: #edf5ff;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

.hero-sub {
  max-width: 600px;
  color: var(--soft);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 24px;
}

.button {
  min-height: 44px;
  padding-inline: 17px;
  border: 1px solid transparent;
}

.button.primary {
  color: #051019;
  background: var(--cyan);
  box-shadow: 0 14px 32px rgba(88, 220, 255, 0.2);
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.button:hover,
.doc-card:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 590px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.hero-metrics div,
.ops-strip article,
.architecture-grid article,
.demo-video-frame,
.doc-card,
.release-panel,
.link-group {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

.hero-metrics div {
  padding: 12px 14px;
}

.hero-metrics dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.ops-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.ops-strip article {
  min-height: 112px;
  padding: 18px;
}

.ops-strip span,
.architecture-grid span,
.doc-card span,
.release-panel span,
.doc-meta span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.ops-strip strong,
.architecture-grid strong,
.doc-card strong,
.release-panel strong {
  display: block;
  margin: 8px 0 9px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.28;
}

.section-block {
  padding-top: 56px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

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

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

.architecture-grid article,
.demo-video-frame,
.doc-card,
.release-panel,
.link-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.architecture-grid article {
  min-height: 198px;
  padding: 22px;
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 34px;
  align-items: center;
}

.demo-copy {
  max-width: 660px;
}

.demo-video-frame {
  width: min(100%, 340px);
  justify-self: end;
  margin: 0;
  padding: 10px;
  box-shadow: var(--shadow);
}

.demo-video-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background: #05070b;
  object-fit: cover;
}

.showcase-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 28px;
  align-items: center;
}

.principles {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
}

.product-shot,
figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1018;
}

.product-shot {
  padding: 8px;
  box-shadow: var(--shadow);
}

.product-shot img,
figure img {
  width: 100%;
}

.product-shot img {
  border-radius: 6px;
}

figcaption {
  padding: 10px 12px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

.doc-card {
  min-height: 184px;
  padding: 20px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.doc-card:hover {
  border-color: var(--line-strong);
}

.doc-card p {
  margin-bottom: 0;
}

.release-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
}

.release-panel {
  padding: 26px;
  border-color: rgba(116, 227, 173, 0.34);
}

.release-panel .button {
  margin-top: 8px;
}

.link-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.link-group {
  padding: 18px;
}

.link-group a {
  display: block;
  margin: 10px 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.link-group a:hover {
  color: var(--cyan);
}

.page-hero {
  padding: 70px 0 28px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
}

.all-docs {
  padding-bottom: 48px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 46px;
}

.doc-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: blur(16px);
}

.doc-sidebar a {
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
  color: var(--text);
  background: rgba(88, 220, 255, 0.12);
}

.doc-sidebar .back-link {
  color: var(--green);
  font-weight: 900;
}

.doc-article {
  min-width: 0;
  max-width: 890px;
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.doc-meta a {
  color: var(--cyan);
  font-size: 13px;
}

.doc-title {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-title h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
}

.doc-title p {
  max-width: 720px;
  color: var(--soft);
  font-size: 17px;
}

.doc-article h1 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
}

.doc-article h2 {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.doc-article h3 {
  margin-top: 28px;
  color: var(--soft);
}

.doc-article p,
.doc-article li,
.doc-article td {
  color: var(--soft);
}

.doc-article ul,
.doc-article ol {
  padding-left: 24px;
  line-height: 1.75;
}

.doc-article li {
  margin: 8px 0;
}

.doc-article a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  color: #dcf7ff;
  background: #0b111d;
}

pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b12;
}

pre code {
  padding: 0;
  background: transparent;
}

.doc-article figure {
  margin: 26px 0;
  padding: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
}

.doc-article figure img {
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border-radius: var(--radius);
}

th,
td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: rgba(88, 220, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 80px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .hero {
    min-height: auto;
    margin-top: -64px;
    padding: 120px 0 72px;
  }

  .ops-strip,
  .architecture-grid,
  .demo-section,
  .doc-grid,
  .release-section,
  .showcase-section,
  .link-groups,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .ops-strip {
    margin-top: -26px;
  }

  .demo-video-frame {
    justify-self: center;
  }

  .doc-sidebar {
    position: static;
    order: 2;
  }

  .doc-article {
    max-width: none;
    order: 1;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  main,
  .hero-copy,
  .ops-strip,
  .home .section-block {
    width: calc(100% - 24px);
  }

  .site-header {
    align-items: center;
    padding: 8px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-action {
    width: auto;
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .site-nav {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0 6px;
    font-size: 13px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .showcase-section {
    gap: 18px;
  }

  .demo-section {
    gap: 20px;
  }

  .demo-video-frame {
    width: min(100%, 292px);
  }

  .doc-title h1 {
    font-size: 34px;
  }
}
