:root {
  --bg: #0a0a0f;
  --bg-elev: #0d0d13;
  --line: #23232e;
  --text: #f5f5f7;
  --muted: #9a9aa8;
  --dim: #6b6b7b;
  --purple: #bd34fe;
  --purple-2: #7c3aed;
  --blue: #41d1ff;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 公告条 */
.announce {
  padding: 7px 16px;
  background: linear-gradient(90deg, var(--purple-2), var(--purple));
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.announce a {
  font-weight: 600;
}

/* 顶栏 */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-mark svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 13px;
  color: var(--dim);
}

.nav-right .ver {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

/* 主容器：细线边框网格 */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 60px 48px 44px;
  border-right: 1px solid var(--line);
}

.eyebrow {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 18px;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lead {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cta {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  border: 1px solid var(--purple);
  background: rgba(189, 52, 254, 0.1);
  color: #e9d5ff;
}

.btn-primary:hover {
  background: rgba(189, 52, 254, 0.2);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--dim);
}

.meta {
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
}

/* Hero 右侧视觉 */
.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 320px at 60% 40%, rgba(189, 52, 254, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-visual canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero 底部终端条 */
.hero-term {
  grid-column: 1 / -1;
  padding: 22px 48px 30px;
  border-top: 1px solid var(--line);
}

.term-tabs {
  display: flex;
  gap: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

.term-tabs .active {
  color: var(--text);
  box-shadow: 0 1px 0 var(--purple);
  padding-bottom: 12px;
  margin-bottom: -13px;
}

.term {
  margin: 0;
  padding: 16px 0 0;
  color: #d4d4d8;
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.term .c {
  color: var(--dim);
}

.term .g {
  color: #4ade80;
}

/* 信任条 */
.trust {
  border-bottom: 1px solid var(--line);
}

.trust p {
  margin: 0;
  padding: 15px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.trust-row span {
  padding: 18px 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.trust-row span:last-child {
  border-right: none;
}

/* 大标题区 */
.headline {
  padding: 88px 48px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.headline h2 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.headline p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* 功能网格 */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.feature {
  padding: 38px 40px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.feature:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: none;
}

.feature:nth-last-child(2) {
  border-bottom: none;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
}

/* 视觉块：深色 + 紫色光晕 + 终端窗口 */
.visual {
  position: relative;
  flex: 1;
  min-height: 230px;
  margin-top: auto;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(189, 52, 254, 0.22), transparent 62%),
    radial-gradient(80% 80% at 100% 100%, rgba(65, 209, 255, 0.12), transparent 62%),
    #0b0b12;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 36px 36px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 35%, transparent 100%);
  pointer-events: none;
}

.window {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(4, 4, 8, 0.9);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(189, 52, 254, 0.12);
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window pre {
  margin: 0;
  padding: 12px 14px;
  color: #c9c9d4;
  font-size: 11.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.window .ok {
  color: #4ade80;
}

.window .dim {
  color: #6b6b7b;
}

.window .acc {
  color: #c084fc;
}

.window .cmd {
  color: #41d1ff;
}

/* 截图区 */
.shot {
  padding: 48px;
  border-bottom: 1px solid var(--line);
}

.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

/* 文档页 */
.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 28px;
}

.doc h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 21px;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 14.5px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc a {
  color: var(--blue);
}

.doc code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elev);
  font-size: 13px;
}

.doc pre {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  font-size: 13px;
  overflow: auto;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 28px;
  color: var(--dim);
  font-size: 12.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1144px;
  margin: 0 auto;
}

.footer-inner a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 40px 24px;
  }
  .hero-visual {
    min-height: 320px;
  }
  .hero-term {
    padding: 20px 24px;
  }
  h1 {
    font-size: 38px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(odd) {
    border-right: none;
  }
  .trust-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links {
    display: none;
  }
}

/* 3D 旋转方块 */
.visual .cube {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 66px;
  height: 66px;
  transform-style: preserve-3d;
  animation: cubeSpin 18s linear infinite;
  pointer-events: none;
}

.visual .cube i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
}

.visual .cube i:nth-child(1) { transform: translateZ(33px); }
.visual .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(33px); }
.visual .cube i:nth-child(3) { transform: rotateY(90deg) translateZ(33px); }
.visual .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(33px); }
.visual .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(33px); }
.visual .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(33px); }

@keyframes cubeSpin {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to { transform: rotateX(-24deg) rotateY(360deg); }
}

/* 功能卡片的 Three.js 画布 */
.visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
