/* ============================================================
   RedClaw — 暗色 SaaS 官网主题
   参考 AnythingLLM 风格 · 现代深色 · 玻璃拟态 · 优雅动效
   ============================================================ */

/* ====== 1. CSS 变量 & Reset ====== */
:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.06);

  --red-500: #ef4444;
  --red-400: #f87171;
  --red-600: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.25);
  --red-subtle: rgba(239, 68, 68, 0.08);

  --blue-500: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.2);
  --teal-500: #14b8a6;
  --teal-glow: rgba(20, 184, 166, 0.2);
  --orange-500: #f97316;
  --orange-glow: rgba(249, 115, 22, 0.2);
  --purple-500: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --green-500: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.2);

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --font-display: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --section-space-desktop: 64px;
  --section-space-mobile: 48px;
  --section-header-space-desktop: 40px;
  --section-header-space-mobile: 32px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: #000000;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--red-400); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--red-500); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== 2. 背景装饰 ====== */

/* 噪点纹理覆盖层 */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* 网格 — 带径向遮罩，中心可见、边缘渐隐 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 58% at 50% 30%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 100%);
  mask-image: radial-gradient(ellipse 75% 58% at 50% 30%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 100%);
}

/* 光晕系统 */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* 右上冷色主光晕 — 缓慢浮动 */
.bg-glow--1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.015), transparent 70%);
  top: -250px;
  right: -200px;
  animation: glowFloat1 20s ease-in-out infinite;
}

/* 左下冷色光晕 */
.bg-glow--2 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.012), transparent 70%);
  bottom: -150px;
  left: -200px;
  animation: glowFloat2 25s ease-in-out infinite;
}

/* 中部冷色光晕 — 增加中间区域层次 */
.bg-glow--3 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.01), transparent 70%);
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  animation: glowFloat3 28s ease-in-out infinite;
}

/* 右侧橙色光晕 — 中下区域点缀 */
.bg-glow--4 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.026), transparent 70%);
  top: 60%;
  right: -150px;
  animation: glowFloat4 22s ease-in-out infinite;
}

/* 左侧青色光晕 — 底部点缀 */
.bg-glow--5 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.028), transparent 70%);
  bottom: 5%;
  left: 5%;
  animation: glowFloat5 30s ease-in-out infinite;
}

/* 光晕浮动动画 */
@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 20px); }
  66% { transform: translate(20px, -15px); }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -20px); }
  66% { transform: translate(-15px, 30px); }
}

@keyframes glowFloat3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0); }
  33% { transform: translateX(-50%) translate(30px, -25px); }
  66% { transform: translateX(-50%) translate(-20px, 20px); }
}

@keyframes glowFloat4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -30px); }
}

@keyframes glowFloat5 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, 15px); }
  66% { transform: translate(-25px, -10px); }
}

/* CSS 粒子效果 */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.76);
  box-shadow: 0 0 8px 1px rgba(191, 219, 254, 0.24);
  animation: particleDrift var(--dur) ease-in-out var(--delay) infinite, twinkle 3.8s ease-in-out infinite;
  opacity: 0;
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }
  15% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
    transform: translateY(-40px) translateX(20px) scale(1.2);
  }
  85% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) translateX(-15px) scale(0.8);
  }
}

@keyframes twinkle {
  0%, 100% { filter: brightness(0.8); opacity: 0.25; }
  50% { filter: brightness(1.35); opacity: 0.95; }
}

/* ====== 3. Header ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid var(--border-default);
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-text {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.logo-main {
  display: inline-block;
}

.logo-sub {
  margin-left: 6px;
  align-self: flex-end;
  margin-bottom: 1px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-default);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.mobile-nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ====== 4. 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red-500);
  color: #fff !important;
  box-shadow: 0 0 20px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-600);
  box-shadow: 0 0 30px var(--red-glow);
  transform: translateY(-1px);
}

.btn-hero {
  background: var(--red-500);
  color: #fff !important;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px var(--red-glow);
}

.btn-hero:hover {
  background: var(--red-600);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-hover);
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-outline:hover {
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* ====== 5. Hero ====== */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 48px;
  text-align: center;
}

.hero-container {
  position: relative;
}

.hero-stage {
  position: relative;
  --hero-lower-shift: 48px;
  min-height: 760px;
  padding: 56px 52px 36px;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-showcase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-46% + var(--hero-lower-shift)));
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-showcase::before,
.hero-showcase::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-showcase::before {
  inset: -50px -60px -70px;
  border-radius: 96px;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 30, 30, 0.28) 0%, rgba(15, 15, 15, 0.5) 35%, rgba(5, 5, 5, 0.85) 65%, rgba(0, 0, 0, 0) 90%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.85) 0%, rgba(3, 3, 3, 0.7) 46%, rgba(0, 0, 0, 0.15) 100%);
  filter: blur(30px);
  opacity: 0.80;
}

.hero-showcase::after {
  inset: -28px -44px -54px;
  border-radius: 70px;
  background:
    radial-gradient(circle at 50% 86%, rgba(60, 60, 60, 0.12) 0%, rgba(20, 20, 20, 0.06) 42%, transparent 72%),
    radial-gradient(circle at 50% 18%, rgba(30, 30, 30, 0.08) 0%, transparent 62%);
  filter: blur(36px);
  opacity: 0.65;
}

.hero-showcase-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  z-index: 1;
  background: #000000;
  /* 用 mask 让视频四边渐变消融到背景 */
  -webkit-mask-image:
    radial-gradient(ellipse 68% 72% at 50% 50%, #000 22%, transparent 65%);
  mask-image:
    radial-gradient(ellipse 68% 72% at 50% 50%, #000 22%, transparent 65%);
}

.hero-showcase-glow {
  position: absolute;
  inset: auto 8% 4%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 100, 100, 0.15), rgba(239, 68, 68, 0.06) 36%, rgba(0, 0, 0, 0.02) 64%, transparent 82%);
  filter: blur(62px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.hero-showcase-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.hero-showcase-overlay {
  display: none;
}

.hero-showcase-frame::before,
.hero-showcase-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-showcase-frame::before {
  display: none;
}

.hero-showcase-frame::after {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-subtle);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--red-400);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--red-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--red-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--red-400), #fb923c, var(--red-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 240px;
}

.hero-badge,
.hero h1,
.hero-desc,
.hero-cta {
  position: relative;
  top: -120px;
}

.hero-stats {
  position: relative;
  top: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--hero-lower-shift);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px 12px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 28px;
  min-width: 140px;
}

.hero-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.hero-stat-icon {
  width: 20px;
  height: 20px;
  color: var(--red-400);
}

.hero-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-default);
}

/* ====== 6. Section 通用 ====== */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--section-header-space-desktop);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ====== 6b. 板块渐变分区装饰 ====== */
.features::before,
.quickstart::before,
.demo-section::before,
.download-section::before,
.docs-section::before,
.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.12), rgba(96, 165, 250, 0.08), transparent);
}

/* 各 section 的环境光 — 顶部辉光 */
.features::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.05), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.quickstart::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(125, 211, 252, 0.045), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.demo-section::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.045), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.download-section::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(148, 163, 184, 0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.docs-section::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(239, 68, 68, 0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.faq::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.045), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ====== 7. Features Bento Grid ====== */
.features,
.quickstart,
.demo-section,
.download-section,
.docs-section,
.faq,
.cta-section {
  padding: var(--section-space-desktop) 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bento-card-inner {
  padding: 32px;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-lg .bento-card-inner { padding: 36px; }

.bento-sm {
  grid-column: span 1;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bento-icon svg, .bento-icon i { width: 22px; height: 22px; }

.icon-red { background: var(--red-subtle); color: var(--red-400); }
.icon-blue { background: rgba(59,130,246,0.1); color: var(--blue-500); }
.icon-teal { background: rgba(20,184,166,0.1); color: var(--teal-500); }
.icon-orange { background: rgba(249,115,22,0.1); color: var(--orange-500); }
.icon-purple { background: rgba(139,92,246,0.1); color: var(--purple-500); }
.icon-green { background: rgba(34,197,94,0.1); color: var(--green-500); }

/* Bento 可视化装饰 */
.bento-visual { margin-top: 20px; }

.bento-demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.bento-demo-icon {
  color: var(--green-500);
}

.bento-demo-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: auto;
}

.bento-demo-status.active {
  background: var(--green-500);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

.bento-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.bento-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.bento-flow-node em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bento-flow-arrow {
  color: var(--text-muted);
}

/* ====== 8. 快速上手 ====== */

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all 0.35s;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.step-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-400);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-400);
}

.step-card-icon svg, .step-card-icon i { width: 24px; height: 24px; }

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--text-muted);
  margin-top: 60px;
}

.step-connector svg, .step-connector i { width: 20px; height: 20px; }

.quickstart-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.note-icon { color: var(--orange-500); flex-shrink: 0; margin-top: 2px; }
.note-content strong { color: var(--text-primary); }

/* ====== 9. 演示区域 ====== */

.demo-window {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-default);
}

.demo-dots { display: flex; gap: 7px; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.demo-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-content {
  position: relative;
  min-height: 320px;
}

.demo-step {
  display: none;
  padding: 24px;
  animation: fadeSlideIn 0.4s ease;
}

.demo-step.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 聊天界面 */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-500);
}

.ai-avatar {
  background: var(--red-subtle);
}

.chat-text {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.chat-user .chat-text {
  color: var(--text-primary);
}

.typing-line {
  display: inline;
}

.typing-line::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--red-400);
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.chat-input-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  margin-top: 8px;
}

.chat-input-placeholder {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chat-send-btn {
  background: var(--red-500);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
}

.chat-send-btn:hover {
  background: var(--red-600);
}

/* 自动化中 */
.auto-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auto-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--blue-500);
  font-weight: 600;
}

.auto-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mini-browser {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.mini-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-default);
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.mini-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 4px;
}

.mini-browser-content { padding: 12px; }

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s;
}

.mini-card.highlight {
  border-color: var(--red-500);
  box-shadow: 0 0 12px var(--red-glow);
}

.mini-card-img {
  height: 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.mini-card-text { padding: 6px 8px; }

.mini-card-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.mini-card-line.short { width: 60%; }

.auto-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.auto-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.auto-progress-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 32px;
}

/* 结果 */
.result-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-icon { color: var(--green-500); }

.result-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.result-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.result-table {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.result-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 0.7fr;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-default);
}

.result-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 0.7fr;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  transition: background 0.2s;
}

.result-table-row:last-child { border-bottom: none; }
.result-table-row:hover { background: rgba(255, 255, 255, 0.02); }

.result-actions {
  display: flex;
  gap: 10px;
}

.result-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s;
}

.result-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}

/* 演示导航 */
.demo-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.demo-dot.active {
  background: var(--red-500);
  box-shadow: 0 0 10px var(--red-glow);
  width: 24px;
  border-radius: 4px;
}

.demo-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}

.demo-label.active {
  color: var(--text-primary);
}

.demo-separator {
  width: 20px;
  height: 1px;
  background: var(--border-default);
}

/* ====== 10. 下载区域 ====== */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s;
}

.download-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.download-card--coming {
  opacity: 0.6;
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.download-os-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.download-os-icon svg { width: 32px; height: 32px; }

.download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.download-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none !important;
  font-family: var(--font-body);
}

.download-btn.primary {
  background: var(--red-500);
  color: #fff !important;
  border: none;
}

.download-btn.primary:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.download-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-default);
}

.download-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary) !important;
  border-color: var(--border-hover);
}

.arch-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: auto;
}

.download-card-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.coming-soon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ====== 10b. 文档中心 ====== */

.is-hidden {
  display: none !important;
}

.docs-shell {
  position: relative;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 30px;
}

.docs-home-intro h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.docs-home-intro p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.docs-card-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.docs-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.25s ease;
}

.docs-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.docs-card:focus-visible {
  outline: 2px solid rgba(239, 68, 68, 0.5);
  outline-offset: 2px;
}

.docs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.docs-card-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red-400);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.docs-card-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.docs-card h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.docs-card p {
  color: rgba(244, 244, 245, 0.78);
  font-size: 0.84rem;
  line-height: 1.6;
  min-height: 42px;
}

.docs-card-footer {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.docs-article-view {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.docs-toc-panel {
  position: sticky;
  top: 86px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.docs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.docs-toc-panel h3 {
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.docs-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-toc-link {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.docs-toc-link:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.04);
}

.docs-toc-link.active {
  color: var(--text-primary);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
}

.docs-toc-link.is-sub {
  padding-left: 16px;
  font-size: 0.79rem;
}

.docs-empty-state,
.docs-toc-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.docs-empty-state {
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
}

.docs-article-panel {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  padding: 28px;
}

.docs-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.docs-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-500);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.docs-meta-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.docs-article-panel > h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.docs-article-panel > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.docs-markdown-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.docs-markdown-content h2,
.docs-markdown-content h3,
.docs-markdown-content h4 {
  color: var(--text-primary);
  margin-top: 26px;
  margin-bottom: 10px;
  line-height: 1.4;
  scroll-margin-top: 92px;
}

.docs-markdown-content h2 {
  font-size: 1.36rem;
  font-weight: 800;
}

.docs-markdown-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.docs-markdown-content h4 {
  font-size: 0.96rem;
  font-weight: 700;
}

.docs-markdown-content p {
  margin-bottom: 12px;
}

.docs-markdown-content ul,
.docs-markdown-content ol {
  margin-bottom: 12px;
  margin-left: 22px;
}

.docs-markdown-content li + li {
  margin-top: 6px;
}

.docs-markdown-content code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-primary);
  font-size: 0.84em;
}

.docs-markdown-content pre {
  margin: 14px 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-default);
  padding: 12px;
  overflow: auto;
}

.docs-markdown-content pre code {
  border: none;
  background: transparent;
  padding: 0;
}

.docs-markdown-content blockquote {
  margin: 14px 0;
  border-left: 3px solid rgba(239, 68, 68, 0.5);
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 0 8px 8px 0;
}

.docs-markdown-content .docs-inline-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.02);
}

.docs-markdown-content .docs-inline-image-fallback {
  display: inline-block;
  color: var(--text-muted);
  border: 1px dashed var(--border-default);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.docs-markdown-content strong {
  color: var(--text-primary);
}

.docs-page .docs-section {
  padding-top: 120px;
  min-height: calc(100vh - 64px);
}

/* ====== 11. FAQ ====== */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.25s;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer-inner code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
}

.faq-answer-inner strong {
  color: var(--text-primary);
}

/* ====== 12. CTA ====== */

.cta-card {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: var(--radius-xl);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ====== 13. Footer ====== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-default);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 20px; }

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ====== 14. 动画 ====== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== 15. 响应式 ====== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: block; }
  .btn-primary { display: none; }

  .hero { padding: 120px 0 40px; }

  .features,
  .quickstart,
  .demo-section,
  .download-section,
  .docs-section,
  .faq,
  .cta-section {
    padding: var(--section-space-mobile) 0;
  }

  .section-header {
    margin-bottom: var(--section-header-space-mobile);
  }

  .hero-stage {
    min-height: 700px;
    padding: 44px 24px 28px;
    border-radius: 26px;
  }

  .hero-showcase::before {
    inset: -44px -36px -60px;
    border-radius: 52px;
    filter: blur(24px);
  }

  .hero-showcase::after {
    inset: -20px -18px -30px;
    border-radius: 38px;
    filter: blur(26px);
  }

  .hero-showcase-frame {
    border-radius: inherit;
  }

  .hero h1 { font-size: 2rem; }

  .hero-desc br { display: none; }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 180px;
  }

  .hero-badge,
  .hero h1,
  .hero-desc,
  .hero-cta {
    top: -36px;
  }

  .hero-stats {
    top: 80px;
    flex-direction: column;
    gap: 0;
  }

  .hero-stat { padding: 12px 20px; }

  .hero-stat-divider {
    width: 60px;
    height: 1px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-lg {
    grid-column: span 1;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .step-connector {
    transform: rotate(90deg);
    margin-top: 0;
    padding: 4px 0;
  }

  .step-card { max-width: 100%; width: 100%; }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .docs-shell {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .docs-article-view {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .docs-toc-panel {
    position: static;
  }

  .docs-article-panel {
    padding: 20px;
  }

  .docs-markdown-content {
    font-size: 0.9rem;
  }

  .docs-page .docs-section {
    padding-top: 104px;
  }

  .demo-labels { gap: 10px; }

  .cta-card { padding: 40px 24px; }

  .cta-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-desc { font-size: 0.95rem; }
  .container { padding: 0 16px; }
  .hero-stage {
    min-height: 640px;
    padding: 36px 18px 24px;
    border-radius: 22px;
  }

  .hero-showcase::before {
    inset: -32px -22px -42px;
    border-radius: 40px;
  }

  .hero-showcase::after {
    inset: -14px -10px -20px;
    border-radius: 28px;
    filter: blur(20px);
  }

  .hero-badge,
  .hero h1,
  .hero-desc,
  .hero-cta {
    top: -24px;
  }

  .docs-shell {
    padding: 16px;
  }

  .docs-article-panel {
    padding: 16px;
  }

  .docs-markdown-content h2 {
    font-size: 1.18rem;
  }

  .docs-markdown-content h3 {
    font-size: 1.02rem;
  }

  .docs-page .docs-section {
    padding-top: 96px;
  }

  .hero-showcase-frame {
    border-radius: inherit;
  }
  .bento-card-inner { padding: 24px; }
  .mini-cards { grid-template-columns: repeat(2, 1fr); }
}
