/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #0a0e1a;
  color: #e6eaf2;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code { font-family: Consolas, "SF Mono", Menlo, monospace; }

/* ---------- 背景光晕 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(0,212,255,.55), transparent 70%); }
.orb-2 { width: 640px; height: 640px; bottom: -240px; right: -160px;
  background: radial-gradient(circle, rgba(124,58,237,.5), transparent 70%);
  animation-delay: -9s; }
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}
/* 细网格铺底，给大面积深色一点质感 */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10,14,26,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
  box-shadow: 0 4px 16px rgba(0,180,255,.35);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: rgba(230,234,242,.65); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto;
  padding: 158px 24px 34px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px; font-size: 13px;
  color: rgba(230,234,242,.75);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #10d97e;
  box-shadow: 0 0 0 0 rgba(16,217,126,.5);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16,217,126,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(16,217,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,217,126,0); }
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 62px); font-weight: 700; line-height: 1.18;
  letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #00d4ff 8%, #6d8bff 50%, #a855f7 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
  max-width: 640px; margin: 0 auto 40px; font-size: 17px;
  color: rgba(230,234,242,.62);
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 30px; border-radius: 11px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #00d4ff, #7c3aed);
  box-shadow: 0 8px 28px rgba(0,160,255,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,.45); }
.btn-ghost {
  color: rgba(230,234,242,.85);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* ---------- 通用 section ---------- */
.section { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 84px 24px 0; }
/* Hero 与后续区块间的空档由 Hero 自己收口，第一个区块不再叠一层顶距 */
.section-tight { padding-top: 26px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 2px;
  color: #00d4ff; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; margin-bottom: 12px; }
.section-head p { color: rgba(230,234,242,.55); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ---------- 特性卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 28px 26px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.5), transparent);
  opacity: 0; transition: opacity .2s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(0,212,255,.3);
  box-shadow: 0 16px 44px rgba(0,0,0,.4); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,.14), rgba(124,58,237,.14));
  border: 1px solid rgba(0,212,255,.22);
}
.feature-icon svg { width: 22px; height: 22px; stroke: #00d4ff; }
.feature h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 9px; }
.feature p { font-size: 13.5px; color: rgba(230,234,242,.55); }
.feature .mode-tag {
  display: inline-block; margin-top: 14px; padding: 2px 10px;
  border-radius: 6px; font-size: 12px; font-family: Consolas, Menlo, monospace;
  color: #7dd3fc; background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.2);
}

/* ---------- API 速查 ---------- */
.api-list { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 0 auto; }
.api-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start;
  padding: 22px 26px; border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .15s, background .15s;
}
.api-item:hover { border-color: rgba(0,212,255,.28); background: rgba(255,255,255,.05); }
.method {
  justify-self: start; padding: 4px 0; width: 64px; text-align: center;
  border-radius: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  color: #34d399; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
}
.api-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.api-body h3 code { color: #7dd3fc; font-size: 14px; }
.api-body p { font-size: 13px; color: rgba(230,234,242,.55); margin-bottom: 10px; }
.api-code {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08);
}
.api-code code { flex: 1; font-size: 12.5px; color: rgba(230,234,242,.78);
  word-break: break-all; line-height: 1.55; }
.copy-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px; font-size: 12px; cursor: pointer;
  color: rgba(230,234,242,.6); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); font-family: inherit;
  transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: #00d4ff; border-color: rgba(0,212,255,.4); }
.copy-btn svg { width: 13px; height: 13px; }

/* ---------- 架构流程 ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 170px; max-width: 210px; text-align: center; padding: 26px 16px;
  border-radius: 14px; margin: 8px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
}
.flow-step .no {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
}
.flow-step h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 7px; }
.flow-step p { font-size: 12.5px; color: rgba(230,234,242,.5); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative; z-index: 1; margin-top: 96px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.25);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 34px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(230,234,242,.42);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(230,234,242,.6); transition: color .15s; }
.footer-links a:hover { color: #00d4ff; }

/* ---------- 入场动画 ----------
   隐藏态只在 JS 可用时生效（html.js 由 head 里的内联脚本打上）：
   否则 JS 被禁或 observer 未触发时，整页内容会永久停在 opacity:0。 */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .hero-badge .pulse { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links .nav-link-text { display: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: 128px; }
  .features { grid-template-columns: 1fr; }
  .api-item { grid-template-columns: 1fr; gap: 10px; }
  .method { width: auto; padding: 4px 14px; }
}
