/* ============================================================
   星创 XingChuang — 门户落地页
   Design tokens: primitive → semantic → component (三层 token)
   对比度基线: 正文 ≥ 4.5:1 / 大字与装饰 ≥ 3:1 (WCAG AA)
   ============================================================ */

:root {
  /* ---- Primitive ---- */
  --red-500: #f13f12;          /* 品牌主色（大字号/装饰，5.0:1 on ink-950） */
  --red-600: #d92f05;          /* 深主色（白字按钮底，4.8:1） */
  --red-700: #b91f04;          /* 更深（渐变端点，6.4:1） */
  --orange-400: #ff8a52;       /* 亮橙（渐变起点/强调文字，8.2:1） */
  --orange-500: #ff7a3d;       /* 辅助橙（7.4:1） */
  --ink-950: #0b0c10;          /* 页面底色 */
  --ink-900: #101218;
  --ink-850: #15171f;          /* 区块底色 */
  --ink-800: #1b1e28;          /* 卡片底色 */
  --ink-700: #262a37;
  --text-hi: #f4f5f9;          /* 主文字 */
  --text-mid: #a6acc0;         /* 次文字（8.4:1） */
  --text-low: #7a8093;         /* 弱文字（4.9:1，仅限辅助信息） */
  --white: #ffffff;

  /* ---- Semantic ---- */
  --color-primary: var(--red-500);
  --color-primary-deep: var(--red-600);
  --color-accent: var(--orange-500);
  --color-bg: var(--ink-950);
  --color-surface: var(--ink-850);
  --color-card: var(--ink-800);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-text: var(--text-hi);
  --color-text-muted: var(--text-mid);
  --color-text-faint: var(--text-low);
  --grad-brand: linear-gradient(135deg, var(--orange-400) 0%, var(--red-500) 55%, var(--red-600) 100%);
  --grad-cta: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
  --grad-text: linear-gradient(92deg, var(--orange-400) 10%, var(--red-500) 90%);
  --glow-brand: 0 12px 40px -8px rgba(241, 63, 18, 0.45);

  /* ---- Spacing（营销页：宽松节奏 4→128） ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---- Typography ---- */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 52px;
  --text-hero: clamp(40px, 7.2vw, 72px);
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.7;

  /* ---- Shape & Motion ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(241, 63, 18, 0.35); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary-deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: var(--space-3); }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 800px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(217, 47, 5, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(217, 47, 5, 0.6);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px -4px rgba(217, 47, 5, 0.5); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-outline {
  background: rgba(241, 63, 18, 0.08);
  border-color: rgba(241, 63, 18, 0.45);
  color: var(--orange-400);
}
.btn-outline:hover {
  background: rgba(241, 63, 18, 0.16);
  border-color: rgba(241, 63, 18, 0.7);
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }

.btn-light {
  background: var(--white);
  color: var(--red-700);
  box-shadow: 0 10px 32px -10px rgba(255, 255, 255, 0.35);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 255, 255, 0.45); }
.btn-light:active { transform: translateY(0); }

.btn-lg { min-height: 56px; padding: 0 var(--space-7); font-size: var(--text-md); }
.btn-sm { min-height: 42px; padding: 0 var(--space-5); font-size: var(--text-sm); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 12, 16, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: right 0.25s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--color-text); }
.nav-link:hover::after, .nav-link:focus-visible::after { right: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.hero-glow--a {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(241, 63, 18, 0.32), transparent 65%);
}
.hero-glow--b {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.14), transparent 65%);
}
.hero-grid {
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-6);
  padding-bottom: var(--space-9);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(241, 63, 18, 0.35);
  background: rgba(241, 63, 18, 0.1);
  color: var(--orange-400);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(241, 63, 18, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(241, 63, 18, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(241, 63, 18, 0.06); }
}

.hero-title {
  margin-top: var(--space-5);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: var(--space-5);
  max-width: 34em;
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.hero-actions {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-stats {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-6);
  max-width: 480px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(241, 63, 18, 0.4);
}
.hero-stats strong {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.hero-stats span { font-size: var(--text-sm); color: var(--color-text-faint); }

/* ---- Hero 视觉：手机 mockup ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone { position: relative; }

.phone-frame {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #23262f, #0a0b0e 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(241, 63, 18, 0.1),
    0 24px 70px -18px rgba(0, 0, 0, 0.75),
    0 24px 60px -20px rgba(241, 63, 18, 0.28);
}
.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a3e4a, #22252e);
}
.phone-frame::before { top: 22%; height: 56px; }
.phone-frame::after { top: calc(22% + 72px); height: 56px; }

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #000;
}
.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 14px;
  background: #060708;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 9, 13, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.video-toggle svg { width: 20px; height: 20px; }
.video-toggle .icon-play { display: none; }
.video-toggle:hover { background: rgba(8, 9, 13, 0.75); }

.phone:hover .video-toggle,
.phone:focus-within .video-toggle,
.video-toggle.is-shown {
  opacity: 1;
  transform: scale(1);
}
.phone.is-paused .video-toggle { opacity: 1; transform: scale(1); }
.phone.is-paused .video-toggle .icon-pause { display: none; }
.phone.is-paused .video-toggle .icon-play { display: block; }
@media (hover: none) {
  .video-toggle { opacity: 1; transform: scale(1); }
}

.video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  place-content: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-5);
  background: linear-gradient(160deg, #1c1f29, #0d0e13);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}
.video-fallback small { color: var(--color-text-faint); font-weight: 400; }
.phone.is-error .video-fallback { display: grid; }
.phone.is-error .demo-video { opacity: 0; }

.float-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--orange-400); }
.chip-a { top: 12%; left: -14%; }
.chip-b { bottom: 16%; right: -12%; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- 热点源跑马灯 ---- */
.hero-marquee {
  position: relative;
  border-block: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: var(--space-4) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-right: var(--space-6);
}
.marquee-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(241, 63, 18, 0.55);
  flex: none;
  margin-right: var(--space-6);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Sections 通用 ============ */
.section { padding: var(--space-10) 0; }
.section--alt { background: var(--color-surface); }
.section--flush { padding-top: 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-9);
}
.eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--orange-400);
}
.section-title {
  margin-top: var(--space-4);
  font-size: clamp(28px, 4.6vw, var(--text-3xl));
  line-height: var(--leading-tight);
  font-weight: 800;
}
.section-sub {
  margin-top: var(--space-4);
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

/* ============ 三步流程 ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 63, 18, 0.4);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.6);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--grad-brand);
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--glow-brand);
}
.step-title {
  margin-top: var(--space-5);
  font-size: var(--text-xl);
  font-weight: 700;
}
.step-desc {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ============ 功能网格 ============ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.feature-card {
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 63, 18, 0.45);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(241, 63, 18, 0.12);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--orange-400);
  background: linear-gradient(150deg, rgba(241, 63, 18, 0.18), rgba(255, 122, 61, 0.08));
  border: 1px solid rgba(241, 63, 18, 0.3);
  transition: transform 0.25s var(--ease);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }
.feature-title {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  font-weight: 700;
}
.feature-desc {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

/* ============ 成品演示 ============ */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: end;
  justify-items: center;
}
.showcase-item { text-align: center; }
.showcase-item--mid { padding-bottom: var(--space-6); }

.phone--mini .phone-frame {
  width: min(220px, 26vw);
  border-radius: 34px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(241, 63, 18, 0.08),
    0 18px 48px -16px rgba(0, 0, 0, 0.7);
}
.phone--mini .phone-screen { border-radius: 27px; }
.phone--mini .phone-island { width: 64px; height: 18px; top: 9px; border-radius: 10px; }
.phone--mini .video-toggle { width: 40px; height: 40px; right: 10px; bottom: 10px; }

.showcase-item:nth-child(1) .phone-frame { transform: rotate(-4deg); }
.showcase-item:nth-child(3) .phone-frame { transform: rotate(4deg); }
.showcase-item:hover .phone-frame {
  transform: rotate(0) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(241, 63, 18, 0.14),
    0 26px 60px -16px rgba(0, 0, 0, 0.75),
    0 20px 50px -20px rgba(241, 63, 18, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.showcase-item .phone-frame { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }

.showcase-caption {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
}

/* ============ 定价 ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-7);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.6);
}

.plan--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--ink-800), var(--ink-800)) padding-box,
    linear-gradient(165deg, rgba(255, 138, 82, 0.85), rgba(241, 63, 18, 0.35) 55%, rgba(185, 31, 4, 0.5)) border-box;
  box-shadow: 0 26px 64px -18px rgba(241, 63, 18, 0.35);
}
.plan--featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 72px -18px rgba(241, 63, 18, 0.42);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--glow-brand);
  white-space: nowrap;
}

.plan-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-muted);
}
.plan--featured .plan-name { color: var(--orange-400); }

.plan-price {
  margin-top: var(--space-4);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.plan-price .currency { font-size: var(--text-lg); font-weight: 700; color: var(--color-text); }
.plan-price strong {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.plan-price .unit { font-size: var(--text-sm); color: var(--color-text-faint); }

.plan-credit {
  margin-top: var(--space-4);
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(241, 63, 18, 0.12);
  border: 1px solid rgba(241, 63, 18, 0.35);
  color: var(--orange-400);
  font-size: var(--text-sm);
  font-weight: 700;
}
.plan-perday {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.plan-features {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: 15px;
}
.plan-features li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(241, 63, 18, 0.14);
}

.plan .btn { margin-top: var(--space-7); }

.pricing-note {
  margin-top: var(--space-7);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ============ FAQ ============ */
.faq-list {
  display: grid;
  gap: var(--space-4);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item.open { border-color: rgba(241, 63, 18, 0.4); }

.faq-q-wrap { margin: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-4) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
}
.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--orange-400);
  transition: transform 0.28s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  padding: 0 var(--space-6);
  color: var(--color-text-muted);
}
.faq-item.open .faq-a-inner { padding-bottom: var(--space-5); }

/* ============ Final CTA ============ */
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(241, 63, 18, 0.32);
  background:
    radial-gradient(120% 150% at 50% -10%, rgba(241, 63, 18, 0.26), transparent 55%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
}
.cta-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(241, 63, 18, 0.4), transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}
.cta-title {
  position: relative;
  font-size: clamp(26px, 4.4vw, var(--text-3xl));
  line-height: var(--leading-tight);
  font-weight: 800;
}
.cta-sub {
  position: relative;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-md);
}
.cta-panel .btn { position: relative; margin-top: var(--space-7); }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--ink-900);
  padding-top: var(--space-9);
  margin-top: var(--space-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}
.footer-slogan {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}
.footer-contact {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
.footer-col ul {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--orange-400); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* ============ Reveal 动画（仅 JS 可用时隐藏） ============ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: 0.1s; }
html.js .reveal-d2 { transition-delay: 0.2s; }
html.js .reveal-d3 { transition-delay: 0.3s; }
html.js .reveal-d4 { transition-delay: 0.4s; }

/* ============ 响应式 ============ */
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-6);
    padding-top: var(--space-7);
  }
  .hero-visual { justify-content: flex-end; }
  .chip-a { left: -16%; }
  .chip-b { right: -14%; }
  .plan--featured { transform: scale(1.045); }
  .plan--featured:hover { transform: scale(1.045) translateY(-6px); }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-5) 20px var(--space-7);
    background: rgba(11, 12, 16, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }
  .nav-link {
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-md);
    border-bottom: 1px solid var(--color-border);
  }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; }

  .hero { padding-top: var(--space-5); }
  .hero-inner { padding-bottom: var(--space-8); gap: var(--space-7); }
  .hero-actions .btn { flex: 1 1 auto; }
  .chip-a { left: -4%; top: 8%; }
  .chip-b { right: -4%; }

  .showcase-row { gap: var(--space-4); }
  .phone--mini .phone-frame { width: min(180px, 27vw); }
  .showcase-item--mid { padding-bottom: var(--space-5); }

  .section { padding: var(--space-9) 0; }
  .section-head { margin-bottom: var(--space-7); }
}

@media (max-width: 400px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .float-chip { display: none; }
  .showcase-row { grid-template-columns: 1fr; justify-items: center; }
  .showcase-item .phone-frame { width: min(240px, 64vw); }
  .showcase-item--mid { padding-bottom: 0; }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero-marquee { overflow-x: auto; }
  .float-chip { animation: none; }
}

/* ============================================================
   动效增强层（UI 库研究移植，纯 CSS/JS 无依赖）
   1) 按钮点击涟漪 —— 移植自 Beast UI button-ripple（MIT）
   2) Hero 标题字符弹簧入场 —— 模拟 motion.dev spring 物理
   3) Hero 光标跟随光晕 —— uiverse/spotlight 式聚光
   ============================================================ */

/* ---- 1) 涟漪：按钮仅补定位，裁剪交给独立图层，不影响原有溢出 ---- */
.btn { position: relative; }
.fx-ripple-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
}

/* ---- 2) 标题字符弹簧入场（cubic-bezier 带过冲，模拟 spring 回弹） ---- */
.hero-title .fx-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) scale(0.9);
  animation: fx-char-in 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(0.18s + var(--fx-i, 0) * 0.05s);
  will-change: transform, opacity;
}
/* 渐变字按字符切片继承整段渐变（JS 计算切片位置） */
.hero-title .fx-grad {
  background-image: var(--grad-text);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes fx-char-in {
  0% { opacity: 0; transform: translateY(0.55em) scale(0.9); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- 3) Hero 光标跟随光晕（z-index:-1 与 hero-bg 同层，DOM 靠后故在其上） ---- */
.hero-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 82, 0.15), rgba(241, 63, 18, 0.06) 45%, transparent 68%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  will-change: transform;
}
.hero.is-glowing .hero-cursor-glow { opacity: 1; }
