/* ============================================================
   简幻欢 · 宣传页样式
   设计语言参考 Apple Design（半透明材质 / 流体动效 / 排版层级）
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* 尺寸 */
  --max-width: 1120px;
  --nav-height: 60px;
  --radius: 20px;
  --radius-lg: 28px;

  /* 动效曲线（spring 近似：无过冲、柔和落地） */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 品牌渐变 */
  --brand-a: #6366f1;
  --brand-b: #8b5cf6;
  --brand-c: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #06b6d4 100%);
}

/* 暗色主题（默认） */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #08080a;
  --bg-soft: #0e0e12;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-edge: rgba(255, 255, 255, 0.1);
  --surface-edge-bright: rgba(255, 255, 255, 0.22);

  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;

  --nav-bg: rgba(8, 8, 10, 0.62);
  --nav-edge: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(99, 102, 241, 0.18);
}

/* 亮色主题 */
[data-theme="light"] {
  color-scheme: light;

  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --surface-edge: rgba(0, 0, 0, 0.06);
  --surface-edge-bright: rgba(0, 0, 0, 0.12);

  --text: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #86868b;

  --nav-bg: rgba(251, 251, 253, 0.65);
  --nav-edge: rgba(0, 0, 0, 0.07);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(99, 102, 241, 0.1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* 确保 hidden 属性永远生效，不被 display:grid/flex 覆盖 */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(99, 102, 241, 0.35); }

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

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--brand-a);
  color: #fff;
  border-radius: 10px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- 排版（字号 / 字距 / 行高 成组设计） ---------- */
.display {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
  font-optical-sizing: auto;
}

.h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  font-optical-sizing: auto;
}

.h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 14px auto 0;
  max-width: 560px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-spring), background-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--surface-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}
.btn-ghost svg { width: 16px; height: 16px; }

.btn-light {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-light:hover { transform: translateY(-2px) scale(1.02); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- 导航栏（半透明材质） ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.nav.scrolled {
  border-bottom-color: var(--nav-edge);
}

.nav-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface-edge);
  transition: transform 0.25s var(--ease-spring), background-color 0.25s var(--ease-out);
}
.theme-toggle:hover { background: var(--surface-strong); transform: scale(1.06); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  place-items: center; border-radius: 10px; }
.menu-toggle span {
  width: 20px; height: 1.6px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--nav-edge);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.mobile-menu a {
  padding: 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}
.mobile-menu a:hover { background: var(--surface); color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 96px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a { width: 520px; height: 520px; top: -120px; left: -100px;
  background: radial-gradient(circle, #6366f1, transparent 70%); }
.orb-b { width: 460px; height: 460px; top: -60px; right: -120px;
  background: radial-gradient(circle, #06b6d4, transparent 70%); }
.orb-c { width: 420px; height: 420px; bottom: -160px; left: 40%;
  background: radial-gradient(circle, #8b5cf6, transparent 70%); }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--surface-edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-edge) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 75%);
  opacity: 0.5;
}

.hero-content { text-align: center; position: relative; }

.hero-sub {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* 产品窗口（仿终端） */
.hero-window {
  max-width: 620px;
  margin: 64px auto 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-glow), inset 0 1px 0 var(--surface-edge-bright);
  overflow: hidden;
  text-align: left;
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 0.5s var(--ease-out);
}
.hero-window:hover { transform: perspective(1200px) rotateX(0deg); }

.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-edge);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.window-title {
  margin-left: 8px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.window-body {
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: grid;
  gap: 12px;
}
.term-line { color: var(--text-secondary); }
.term-prompt { color: var(--brand-c); margin-right: 8px; }
.term-ok { color: var(--text); }
.term-check { color: #28c840; margin-right: 8px; font-weight: 700; }
.term-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-edge);
  color: var(--text-secondary);
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(40, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

/* ---------- 交互式创建实例 ---------- */
.create-stage { min-height: 280px; align-content: center; justify-items: center; }
.create-prompt { display: grid; gap: 18px; justify-items: center; text-align: center; }
.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
  will-change: transform;
}
.btn-create:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5); }
.btn-create:active { transform: scale(0.96); }
.btn-create svg { width: 20px; height: 20px; }
.create-hint { color: var(--text-tertiary); font-size: 0.85rem; margin: 0; }

.create-flow { width: 100%; justify-self: stretch; }
.flow-title { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 18px; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.flow-list li { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 0.95rem; }
.flow-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--surface-edge-bright);
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.flow-check.done {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  animation: check-pop 0.4s var(--ease-spring);
}
@keyframes check-pop {
  0% { transform: scale(0.3); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.flow-result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-edge);
  display: grid;
  gap: 10px;
}

/* ---------- 规格面板 ---------- */
.spec-panel { padding: 30px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.spec-item { display: grid; gap: 8px; }
.spec-num {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.spec-label { font-size: 0.85rem; color: var(--text-tertiary); }

/* ---------- FAQ 列表 ---------- */
.faq ul { margin: 0; padding: 0 26px 24px 46px; color: var(--text-secondary); display: grid; gap: 8px; }
.faq ul li { font-size: 0.95rem; }

/* ---------- 数据带 ---------- */
.stats { padding: 48px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-num {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-num sup { font-size: 0.5em; letter-spacing: 0; }
.count { display: inline-block; will-change: transform; }
.stat-num { margin-left: -8px; margin-right: 8px; }

/* 数据数字：夸张的雷霆弹跳 + 光晕 */
.stat-num.jumped {
  animation: stat-jump 0.7s var(--ease-out), stat-glow 1.1s var(--ease-out);
}
@keyframes stat-jump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  68% { transform: scale(0.82); }
  86% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes stat-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  40% { text-shadow: 0 0 24px rgba(99, 102, 241, 0.95), 0 0 48px rgba(139, 92, 246, 0.6); }
}
.stat-label { margin-top: 6px; font-size: 0.9rem; color: var(--text-tertiary); }

/* ---------- 区块通用 ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }

/* ---------- 功能卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--surface-edge-bright);
  border: 1px solid var(--surface-edge);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--surface-edge-bright);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-gradient);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.card-icon svg { width: 23px; height: 23px; }
.card p { margin: 10px 0 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- 步骤 ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step { text-align: center; padding: 24px 20px; }
.step-num {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.9;
}
.step h3 { margin-top: 18px; }
.step p { margin: 10px 0 0; color: var(--text-secondary); }

/* ---------- 亮点 ---------- */
.highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.highlight + .highlight { margin-top: 104px; }
.highlight-reverse .highlight-visual { order: -1; }

.highlight-text p { color: var(--text-secondary); font-size: 1.05rem; margin: 18px 0 0; }

.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.glass-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--surface-edge-bright);
  overflow: hidden;
}

.code-panel .code {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.gauge-panel { padding: 28px 26px; display: grid; gap: 22px; }
.gauge-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 14px; }
.gauge-label { font-size: 0.85rem; color: var(--text-tertiary); }
.gauge {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-strong);
  overflow: hidden;
}
.gauge i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  background: var(--brand-gradient);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-spring);
}
.gauge-row:nth-child(1) .gauge i { transition-delay: 0.1s; }
.gauge-row:nth-child(2) .gauge i { transition-delay: 0.22s; }
.gauge-row:nth-child(3) .gauge i { transition-delay: 0.34s; }
.in-view .gauge i { transform: scaleX(1); }
.gauge-val { font-size: 0.85rem; color: var(--text-secondary); text-align: right; }

/* ---------- 常见问题 ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  overflow: hidden;
  transition: background-color 0.3s var(--ease-out);
}
.faq[open] { background: var(--surface-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s var(--ease-out);
}
.faq summary:hover { background: var(--surface); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 26px 24px; color: var(--text-secondary); }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  text-align: center;
  padding: 88px 32px;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.35);
}
.cta-panel .orb { opacity: 0.4; }
.cta-panel .h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, 0.9); margin: 16px 0 32px; font-size: 1.1rem; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--surface-edge);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--text-tertiary); margin-top: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.footer-col a { color: var(--text-tertiary); font-size: 0.92rem; transition: color 0.2s var(--ease-out); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-edge);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ---------- 滚动入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight { grid-template-columns: 1fr; gap: 40px; }
  .highlight-reverse .highlight-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu:not([hidden]) { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 64px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 无障碍：减少动效 / 透明 / 高对比 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-window { transform: none; }
  .orb { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .mobile-menu { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .hero-window, .glass-panel { background: var(--bg-soft); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .card, .faq, .glass-panel, .hero-window { border: 1.5px solid var(--text-tertiary); }
}
