/* ============ 基础变量 ============ */
:root {
  --bg: #070b14;
  --bg-alt: #0b1220;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef8;
  --text-dim: #9fb0c8;
  --text-mute: #6f8199;
  --brand: #35d6a4;
  --brand-2: #4aa8ff;
  --warn: #ffb454;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* 背景光晕 */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(53, 214, 164, 0.16), transparent 60%),
    radial-gradient(760px 480px at 92% 4%, rgba(74, 168, 255, 0.16), transparent 60%);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04131a;
  box-shadow: 0 10px 30px -12px rgba(53, 214, 164, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(53, 214, 164, .85); }

.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); background: rgba(53, 214, 164, .08); }

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

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(7, 11, 20, .88); }

.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
.brand-mark { width: 28px; height: 28px; }
.brand-text { color: var(--text); font-size: 17px; letter-spacing: .01em; }
.brand-text strong { font-weight: 700; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; }

/* ============ 首屏 ============ */
.hero { padding: 84px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13.5px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(53, 214, 164, .18);
}

.hero h1 { margin: 22px 0 18px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
.grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--text-dim); font-size: 17.5px; max-width: 520px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-mute); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* 控制台示意面板 */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}
.panel-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.panel-title { margin-left: 10px; font-size: 13px; color: var(--text-mute); }
.panel-body { padding: 20px; display: grid; gap: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.stat-label { display: block; font-size: 12.5px; color: var(--text-mute); }
.stat-value { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; }

.chart { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-mute); margin-bottom: 12px; }
.chip { padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.chip-up { background: rgba(53, 214, 164, .14); color: var(--brand); }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 96px; }
.bars i {
  display: block;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand-2), rgba(74, 168, 255, .18));
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) both;
}
.bars i:nth-child(2) { animation-delay: .06s; }
.bars i:nth-child(3) { animation-delay: .12s; }
.bars i:nth-child(4) { animation-delay: .18s; }
.bars i:nth-child(5) { animation-delay: .24s; }
.bars i:nth-child(6) { animation-delay: .3s; }
.bars i:nth-child(7) { animation-delay: .36s; background: linear-gradient(180deg, var(--brand), rgba(53, 214, 164, .2)); }
@keyframes grow { from { height: 0; opacity: 0; } to { height: var(--h); opacity: 1; } }

.node-list { display: grid; gap: 8px; }
.node-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.node-name { color: var(--text); }
.node-meta { margin-left: auto; color: var(--text-mute); font-size: 12.5px; }
.status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status.ok { background: var(--brand); box-shadow: 0 0 0 4px rgba(53, 214, 164, .16); }
.status.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 180, 84, .16); }

/* ============ 指标条 ============ */
.metrics { padding: 8px 0 24px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}
.metric { background: var(--bg-alt); padding: 26px 22px; text-align: center; }
.metric b { display: block; font-size: 26px; font-weight: 700; }
.metric span { display: block; margin-top: 4px; color: var(--text-mute); font-size: 14px; }

/* ============ 通用区块 ============ */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin: 18px 0 14px; font-size: clamp(26px, 3.4vw, 38px); }
.section-sub { color: var(--text-dim); }

/* 能力卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(53, 214, 164, .1);
  border: 1px solid rgba(53, 214, 164, .22);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(53, 214, 164, .1);
  margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--text-dim); font-size: 15px; }

/* 方案 Tabs */
.tabs { max-width: 1040px; margin: 0 auto; }
.tab-list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 26px;
}
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s ease;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.is-active { background: rgba(53, 214, 164, .12); border-color: rgba(53, 214, 164, .45); color: var(--brand); }

.tab-panel { display: none; }
.tab-panel.is-active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  animation: fade .28s ease both;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-copy h3 { font-size: 22px; margin-bottom: 12px; }
.panel-copy p { color: var(--text-dim); margin-bottom: 18px; }

.check { display: grid; gap: 9px; }
.check li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 15px; }
.check li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.mini-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: grid;
  gap: 14px;
}
.mini-title { font-size: 13px; color: var(--text-mute); }
.mini-foot { font-size: 12.5px; color: var(--text-mute); }

.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.pipeline { display: flex; gap: 8px; flex-wrap: wrap; }
.pipeline li {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
}
.pipeline li.done { color: var(--brand); border-color: rgba(53, 214, 164, .35); }
.pipeline li.run { color: #04131a; background: var(--brand); border-color: transparent; font-weight: 600; }

.stack { display: grid; gap: 8px; }
.stack i {
  display: block;
  width: var(--w);
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(74,168,255,.22), rgba(74,168,255,.06));
  border: 1px solid rgba(74,168,255,.25);
  font-style: normal;
  font-size: 13px;
  color: var(--text-dim);
}
.stack i b { color: var(--text); margin-right: 6px; font-weight: 600; }

.latency { display: grid; gap: 8px; }
.latency li { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.latency li span { color: var(--brand); font-weight: 600; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan.is-featured {
  border-color: rgba(53, 214, 164, .5);
  background: linear-gradient(180deg, rgba(53,214,164,.10), rgba(255,255,255,.03));
  box-shadow: 0 30px 60px -40px rgba(53, 214, 164, .5);
}
.badge {
  position: absolute; top: -12px; left: 26px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04131a;
  font-size: 12px;
  font-weight: 700;
}
.plan h3 { font-size: 18px; }
.price { font-size: 34px; font-weight: 700; }
.price span { font-size: 15px; font-weight: 500; color: var(--text-mute); margin-left: 4px; }
.plan-desc { color: var(--text-dim); font-size: 14.5px; }
.plan .check { margin: 6px 0 18px; flex: 1; align-content: start; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 22px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-dim); font-size: 15px; }

/* CTA + 表单 */
.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(53,214,164,.10), rgba(74,168,255,.08) 55%, rgba(255,255,255,.02));
}
.cta-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.cta-copy p { color: var(--text-dim); margin-bottom: 22px; }
.contact-list { display: grid; gap: 6px; color: var(--text-dim); font-size: 15px; }
.contact-list a { color: var(--brand); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-dim); }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, .6);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-mute); }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(53, 214, 164, .15);
}
.form input.is-error { border-color: #ff6b6b; }
.form-note { font-size: 12.5px; color: var(--text-mute); text-align: center; }
.form-note.is-ok { color: var(--brand); }

/* 页脚 */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand p { margin-top: 10px; color: var(--text-mute); font-size: 14.5px; max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.footer-links a { display: block; color: var(--text-mute); font-size: 14px; padding: 4px 0; transition: color .15s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-panel.is-active { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 30px; }
  .footer-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(7, 11, 20, .97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-cta .btn { width: 100%; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
