/* ============================================================
   SuperX 官网 · 设计系统
   对应设计稿 docs/design/00-foundation.md §2
   ============================================================ */

:root {
  /* 中性 */
  --ink-900: #07070A;
  --ink-800: #0D0D14;
  --ink-700: #14141F;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-1: #F5F6FA;
  --text-2: #A6A8B8;
  --text-3: #6B6D80;

  /* 品牌 */
  --violet: #0B62CE;
  --cyan: #12B5C0;
  --grad: linear-gradient(100deg, #0B62CE 0%, #12B5C0 100%);

  /* 产品线辅色 */
  --p1: #FF5A6E;
  --p2: #A855F7;
  --p3: #34D399;
  --p4: #F59E0B;

  /* 当前分区辅色（各 section 覆盖） */
  --accent: var(--violet);
  --accent-soft: rgba(11, 98, 206, 0.12);

  /* 尺寸 */
  --maxw: 1280px;
  --gutter: 80px;
  --section-y: 140px;
  --r-card: 20px;
  --r-btn: 12px;
  --r-lg: 28px;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-1);
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", "HarmonyOS Sans SC", "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section.screen {
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
section.screen.alt { background: var(--ink-800); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.h-display { font-size: clamp(40px, 6vw, 72px); }
.h1 { font-size: clamp(32px, 4.4vw, 56px); }
.h2 { font-size: clamp(26px, 2.8vw, 36px); }
.h3 { font-size: clamp(20px, 1.6vw, 24px); }

.lead { font-size: 18px; color: var(--text-2); max-width: 56ch; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .lead { margin: 16px auto 0; text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(11, 98, 206, 0.40);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 34px rgba(11, 98, 206, 0.50); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--text-1);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #0B0B10; }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent); position: relative;
}
.btn-text .arrow { transition: transform .24s var(--ease); }
.btn-text:hover .arrow { transform: translateX(4px); }

/* ---------- 卡片 / 标签 ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  font-size: 14px; color: var(--text-2);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text-1); border-color: var(--line-strong); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 72px; display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 40px; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 17px; width: auto; display: block; }
.footer .logo img { height: 22px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-links > li { position: relative; }
.nav-links a:hover, .nav-links button:hover { color: var(--text-1); }
.nav-links .has-menu { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.dropdown {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: 720px; padding: 22px; border-radius: var(--r-lg);
  background: rgba(16, 16, 24, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  opacity: 0; visibility: hidden; transition: all .24s var(--ease);
}
.nav-links > li:hover .dropdown,
.nav-links > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.dd-item { padding: 14px; border-radius: 14px; transition: background .2s; }
.dd-item:hover { background: rgba(255, 255, 255, 0.05); }
.dd-item .dd-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text-1); }
.dd-item .dd-title .dot { width: 8px; height: 8px; border-radius: 50%; }
.dd-item .dd-desc { font-size: 13px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.dd-foot {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; justify-content: space-between;
}

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: auto; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text-1); position: relative; transition: .3s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text-1); transition: .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: rgba(7, 7, 10, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 22px 20px 36px; overflow-y: auto;
  transform: translateX(100%); transition: transform .32s var(--ease);
  display: none;
}
body.menu-open .drawer { transform: translateX(0); }
.drawer-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 16px; margin-bottom: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.drawer-card .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.drawer-links { margin-top: 16px; display: grid; gap: 2px; font-size: 17px; }
.drawer-links a { padding: 9px 0; color: var(--text-2); }

/* ---------- 右侧章节轴 ---------- */
.rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 14px;
}
.rail a {
  display: flex; align-items: center; gap: 10px;
  flex-direction: row-reverse; color: var(--text-3); font-size: 12px;
}
.rail .pip {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,0.18); transition: all .3s var(--ease);
}
.rail .label { opacity: 0; transform: translateX(6px); transition: all .3s var(--ease); white-space: nowrap; }
.rail a:hover .label { opacity: 1; transform: translateX(0); }
.rail a.active .pip { background: var(--accent-rail, var(--violet)); transform: scale(1.6); box-shadow: 0 0 0 4px rgba(255,255,255,0.06); }
.rail a.active .label { opacity: 1; transform: translateX(0); color: var(--text-1); }

/* ---------- 滚动进场 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   屏 01 · Hero
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-glow {
  position: absolute; width: 1100px; height: 900px; left: 50%; top: -220px; transform: translateX(-50%);
  background:
    radial-gradient(45% 45% at 33% 38%, rgba(11,98,206,0.55), transparent 68%),
    radial-gradient(42% 42% at 70% 56%, rgba(18,181,192,0.34), transparent 70%);
  filter: blur(30px);
}
/* 漂移的生成画面拼贴 */
.collage { position: absolute; inset: -10% -20%; display: flex; gap: 18px; opacity: 0.32; }
.collage-col { display: flex; flex-direction: column; gap: 18px; animation: drift 34s linear infinite; }
.collage-col:nth-child(even) { animation-direction: reverse; animation-duration: 44s; }
.collage-tile { width: 180px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.09); flex: none; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,10,0.42) 0%, rgba(7,7,10,0.68) 58%, var(--ink-900) 100%);
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  font-size: 14px; color: var(--text-2); margin-bottom: 32px;
  transition: all .2s var(--ease);
}
.announce:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.09); color: var(--text-1); }
.announce .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(18,181,192,0.22); }

.hero h1 { max-width: 20ch; margin: 0 auto; }
.hero .lead { margin: 28px auto 0; text-align: center; font-size: 19px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

.hero-pills { display: flex; gap: 12px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-pills a {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: all .24s var(--ease);
}
.hero-pills a:hover { color: var(--text-1); transform: translateY(-3px); }
.hero-pills a .dot { width: 8px; height: 8px; border-radius: 50%; }

.scroll-hint { margin-top: 64px; font-size: 13px; color: var(--text-3); display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .chevron { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* ============================================================
   屏 02 · 我们是谁
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.pillar .ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); display: grid; place-items: center; color: var(--accent);
}
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line);
  text-align: center;
}
.metric .num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.metric .cap { font-size: 14px; color: var(--text-2); margin-top: 6px; }

/* 引擎示意图（屏 02 小图 / 屏 08 大图共用） */
.engine { width: 100%; }
.engine .flow-dot { animation: flow 3s linear infinite; }
@keyframes flow { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ============================================================
   屏 03 · 产品矩阵
   ============================================================ */
.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pcard { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.pcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%);
  transition: opacity .35s var(--ease);
}
.pcard:hover::after { opacity: 1; }
.pcard .body { padding: 30px 30px 24px; position: relative; z-index: 1; }
.pcard .idx { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.pcard h3 { margin: 14px 0 4px; }
.pcard .en { font-size: 14px; color: var(--text-3); font-family: "Space Grotesk", sans-serif; }
.pcard p { color: var(--text-2); font-size: 15px; margin-top: 16px; min-height: 78px; }
.pcard .thumb { margin: 0 30px; height: 148px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; position: relative; background: var(--ink-900); }
.pcard .foot { padding: 22px 30px 30px; position: relative; z-index: 1; }

/* ============================================================
   屏 04-07 · 产品线分屏
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split > *, .about-grid > *, .ide > *, .matrix > *, .cases > *, .plans > * { min-width: 0; }
.split.mirror .split-text { order: 2; }
.feature-list { margin-top: 28px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.feature-list .tick { color: var(--accent); flex: none; margin-top: 2px; }
.split .btn-primary { margin-top: 36px; }
.split-stats { margin-top: 28px; font-size: 14px; color: var(--text-3); }

/* 竖屏手机组（P1） */
.phones { display: flex; gap: 18px; justify-content: center; align-items: center; }
.phone {
  width: 168px; aspect-ratio: 9 / 16; border-radius: 22px; position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); flex: none;
  animation: float 6s ease-in-out infinite;
}
.phone:nth-child(2) { width: 208px; z-index: 2; animation-delay: -2s; }
.phone:nth-child(3) { animation-delay: -4s; }
.phone:nth-child(1), .phone:nth-child(3) { opacity: .72; --s: .94; }
@keyframes float { 0%,100% { transform: translateY(-6px) scale(var(--s,1)); } 50% { transform: translateY(6px) scale(var(--s,1)); } }
.phone .play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center;
}
.phone .cap { position: absolute; left: 12px; right: 12px; bottom: 14px; font-size: 11px; color: rgba(255,255,255,.85); }
.phone .bar { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); }
.phone .bar i { display: block; height: 100%; width: 38%; border-radius: 2px; background: #fff; }

/* 横屏剧集（P2） */
.stage { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stage .frame { aspect-ratio: 16 / 9; position: relative; }
.stage .frame .play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.filmstrip { display: flex; gap: 6px; padding: 12px; background: var(--ink-900); overflow-x: auto; scrollbar-width: thin; }
.filmstrip button {
  flex: none; width: 46px; height: 30px; border-radius: 5px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  font-size: 10px; color: var(--text-3); transition: all .2s var(--ease);
}
.filmstrip button:hover { border-color: var(--line-strong); color: var(--text-2); }
.filmstrip button.on { background: var(--accent); border-color: var(--accent); color: #0B0B10; font-weight: 600; }

/* Tab 预览（P3） */
.tabs { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow); }
.tabbar { display: flex; border-bottom: 1px solid var(--line); position: relative; }
.tabbar button { flex: 1; padding: 16px 0; font-size: 15px; color: var(--text-3); transition: color .2s; }
.tabbar button.on { color: var(--text-1); font-weight: 600; }
.tabbar .ink { position: absolute; bottom: 0; height: 2px; background: var(--accent); transition: all .28s var(--ease); }
.tabpanel { padding: 26px; display: none; }
.tabpanel.on { display: block; animation: fadeup .4s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 对话 + 预览（P4） */
.ide { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow); min-height: 360px; }
.ide .pane { padding: 18px; }
.ide .pane + .pane { border-left: 1px solid var(--line); }
.ide .pane-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.ide .pane-head .dots { display: flex; gap: 5px; }
.ide .pane-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.chatlog { font-size: 13px; line-height: 1.9; }
.chatlog .you { color: var(--text-1); }
.chatlog .done { color: var(--text-2); }
.chatlog .done::before { content: "✓ "; color: var(--p3); }
.chatlog .run { color: var(--accent); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mockapp { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.02); }
.mockapp .row { height: 10px; border-radius: 4px; background: rgba(255,255,255,.08); margin-bottom: 9px; }
.mockapp .row.grow { animation: grow .5s var(--ease) both; }
@keyframes grow { from { opacity: 0; transform: scaleX(.4); transform-origin: left; } to { opacity: 1; transform: none; } }
.mockapp .blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mockapp .blocks div { height: 46px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }

/* ============================================================
   屏 08 · 引擎
   ============================================================ */
.engine-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); }
.engine-cols { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 32px; align-items: center; }
.engine-box { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(255,255,255,0.025); }
.engine-box h4 { font-size: 13px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.engine-box li { color: var(--text-2); font-size: 15px; padding: 7px 0; display: flex; align-items: center; gap: 10px; }
.engine-core {
  border: 1px solid rgba(11,98,206,.45); border-radius: 18px; padding: 26px;
  background: radial-gradient(70% 90% at 50% 0%, rgba(11,98,206,.20), rgba(255,255,255,.02));
  box-shadow: 0 0 44px rgba(11,98,206,.20) inset;
}
.engine-core .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 16px; }
.engine-core li { font-size: 14px; color: var(--text-2); padding: 6px 0; }
.engine-core li::before { content: "▸ "; color: var(--cyan); }
.out-line { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-1); padding: 8px 0; }
.out-line .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.engine-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.engine-badges div { text-align: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--text-2); background: rgba(255,255,255,.02); }

/* 连线流动光点 */
.wire { position: relative; height: 1px; background: var(--line); overflow: visible; }
.wire i { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: wiremove 2.6s linear infinite; }
@keyframes wiremove { from { left: -4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 104%; opacity: 0; } }

/* ============================================================
   屏 09 · 三步流程
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; background: var(--line); }
.step { position: relative; text-align: center; }
.step .n {
  width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  background: var(--ink-900); border: 1px solid var(--line-strong); position: relative; z-index: 1;
}
.step.in .n { background: var(--grad); border-color: transparent; color: #fff; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 12px; }

/* ============================================================
   屏 10 · 案例
   ============================================================ */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-item {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px;
  font-weight: 700; font-size: 17px; color: var(--text-3); filter: grayscale(1); opacity: .6;
  transition: all .3s var(--ease); white-space: nowrap;
}
.logo-item:hover { filter: none; opacity: 1; color: var(--text-1); }
.logo-item .sq { width: 18px; height: 18px; border-radius: 5px; background: currentColor; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.case .cover { height: 168px; border-radius: 14px; margin: -28px -28px 22px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.case .cover { border-radius: var(--r-card) var(--r-card) 0 0; }
.case h3 { font-size: 20px; margin: 14px 0 10px; line-height: 1.45; }
.case .who { font-size: 14px; color: var(--text-3); }
.quote {
  margin-top: 28px; padding: 36px 44px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  display: flex; align-items: center; gap: 28px;
}
.quote .q { font-size: 21px; line-height: 1.6; font-weight: 500; }
.quote .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); flex: none; }

/* ============================================================
   屏 11 · 定价
   ============================================================ */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.toggle button { padding: 9px 22px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: all .24s var(--ease); }
.toggle button.on { background: rgba(255,255,255,.1); color: var(--text-1); font-weight: 600; }
.toggle .save { color: var(--p3); font-size: 12px; margin-left: 6px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; align-items: start; }
.plan { padding: 30px 26px; }
.plan.featured {
  border-color: transparent; background:
    linear-gradient(var(--ink-800), var(--ink-800)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent; transform: scale(1.03);
}
.plan.featured:hover { transform: scale(1.03) translateY(-4px); }
.plan .ribbon { position: absolute; top: 16px; right: 18px; font-size: 12px; font-weight: 600; color: var(--cyan); }
.plan .pname { font-size: 15px; color: var(--text-2); }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 2px; font-family: "Space Grotesk", sans-serif; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--text-3); }
.plan ul { margin: 22px 0 26px; display: grid; gap: 11px; }
.plan li { font-size: 14px; color: var(--text-2); display: flex; gap: 10px; }
.plan li::before { content: "·"; color: var(--accent); }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; margin-top: 34px; font-size: 14px; color: var(--text-3); }

/* ============================================================
   屏 12 · FAQ + CTA + 页脚
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 17px; font-weight: 500; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq summary .plus { flex: none; width: 24px; height: 24px; position: relative; transition: transform .3s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--text-2); }
.faq summary .plus::before { width: 14px; height: 1.5px; }
.faq summary .plus::after { width: 1.5px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 44px 26px 0; color: var(--text-2); font-size: 15px; animation: fadeup .3s var(--ease); }

.cta-box {
  margin-top: 96px; padding: 72px 40px; text-align: center; border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(40% 70% at 12% 0%, rgba(255,90,110,.16), transparent 70%),
    radial-gradient(40% 70% at 38% 100%, rgba(168,85,247,.16), transparent 70%),
    radial-gradient(40% 70% at 64% 0%, rgba(52,211,153,.14), transparent 70%),
    radial-gradient(40% 70% at 90% 100%, rgba(245,158,11,.16), transparent 70%),
    linear-gradient(180deg, rgba(11,98,206,.16), rgba(18,181,192,.07));
}
.cta-box .h1 { max-width: 18ch; margin: 0 auto; }
.cta-box .lead { margin: 20px auto 0; text-align: center; }
.cta-box .hero-cta { margin-top: 36px; }

.footer { border-top: 1px solid var(--line); background: var(--ink-800); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.foot-brand .lead { font-size: 15px; margin-top: 16px; max-width: 30ch; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--text-3); transition: all .2s var(--ease); }
.socials a:hover { color: var(--text-1); border-color: var(--line-strong); transform: translateY(-2px); }
.foot-col h4 { font-size: 14px; margin-bottom: 18px; }
.foot-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-3); transition: color .2s; }
.foot-col a:hover { color: var(--text-1); }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.foot-bottom a { color: var(--text-3); }
.foot-bottom a:hover { color: var(--text-1); }

/* ============================================================
   响应式（docs/design/04 §2）
   ============================================================ */
@media (max-width: 1200px) { :root { --gutter: 48px; --maxw: 1120px; } }

@media (max-width: 980px) {
  :root { --gutter: 40px; --section-y: 96px; }
  .rail { display: none; }
  .matrix, .plans, .cases, .steps, .engine-badges, .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .engine-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .plan.featured { transform: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section-y: 72px; }
  .logo img { height: 15px; }
  .footer .logo img { height: 17px; }
  .nav-links, .nav-actions { display: none; }
  .burger { display: flex; }
  .drawer { display: block; }
  .split, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.mirror .split-text { order: 0; }
  .pillars, .matrix, .cases, .steps, .plans { grid-template-columns: 1fr; }
  .metrics, .engine-badges { grid-template-columns: repeat(2, 1fr); }
  .ide { grid-template-columns: 1fr; }
  .ide .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .hero-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-pills a { justify-content: center; }
  .hero-cta .btn { width: 100%; }
  .quote { flex-direction: column; text-align: center; padding: 30px 24px; }
  .quote .q { font-size: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .phone { width: 128px; } .phone:nth-child(2) { width: 152px; }
}

@media (max-width: 480px) {
  .phones { gap: 10px; }
  .phone:nth-child(1), .phone:nth-child(3) { display: none; }
  .phone:nth-child(2) { width: 220px; }
  .cta-box { padding: 48px 22px; }
}

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 语言切换 ---------- */
.lang-switch {
  height: 32px; padding: 0 8px; border-radius: 9px; font-size: 13px;
  color: var(--text-2); background: rgba(255,255,255,.05);
  border: 1px solid var(--line); cursor: pointer;
  transition: all .18s var(--ease);
}
.lang-switch:hover { color: var(--text-1); border-color: var(--line-strong); }
.footer .lang-switch { margin-top: 18px; }

/* ---------- 拉丁语种的排版微调（英文/印尼语比中文长） ---------- */
html:not([lang="zh-CN"]) .nav .wrap { gap: 24px; }
html:not([lang="zh-CN"]) .nav-links { gap: 18px; font-size: 14.5px; }
html:not([lang="zh-CN"]) .nav .lang-switch { max-width: 104px; }
html:not([lang="zh-CN"]) .nav-links a,
html:not([lang="zh-CN"]) .nav-links .has-menu,
html:not([lang="zh-CN"]) .nav-actions a { white-space: nowrap; }
html:not([lang="zh-CN"]) .hero h1 { max-width: 26ch; }
html:not([lang="zh-CN"]) .plan .price { font-size: 32px; }
html:not([lang="zh-CN"]) .cta-box .h1 { max-width: 24ch; }
