/* ===================================
   目远AI Design System — 花叔暖金视觉语言
   Huasheng Warm Gold Visual Language
   温暖的暗黑 · 杂志编辑感 · 克制而精致
   =================================== */

/* ─────────────────────────────────────
   1. CSS 变量
   ───────────────────────────────────── */
:root {
  /* 色板 */
  --color-base: #0A0A0A;
  --color-text: #F5EFE6;
  --color-gold: #D4A574;
  --color-warm-gray: #9C8E78;
  --color-deep-brown: #7A6F5C;
  --color-dark-brown: #5C5447;
  --color-signal-red: #E3120B;

  /* 语义别名 */
  --color-accent: var(--color-gold);
  --color-kicker: var(--color-warm-gray);
  --color-citation: var(--color-deep-brown);
  --color-muted: var(--color-dark-brown);

  /* 表面 & 背景 */
  --surface-card: rgba(245, 239, 230, 0.025);
  --surface-hover: rgba(245, 239, 230, 0.04);
  --surface-gold-subtle: rgba(212, 165, 116, 0.1);

  /* 边框 */
  --border-04: rgba(245, 239, 230, 0.04);
  --border-06: rgba(245, 239, 230, 0.06);
  --border-08: rgba(245, 239, 230, 0.08);
  --border-10: rgba(245, 239, 230, 0.10);
  --border-12: rgba(245, 239, 230, 0.12);
  --border-gold: rgba(212, 165, 116, 0.18);

  /* 字体 */
  --font-display: 'Source Serif 4', 'Noto Serif SC', serif;
  --font-serif: 'Noto Serif SC', 'Source Serif 4', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* 间距（8px 基准） */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;

  /* 圆角 — 极小，花叔风格 */
  --radius: 2px;

  /* 阴影 — 克制 */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);

  /* 过渡 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-reveal: 0.8s;
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
}

/* ─────────────────────────────────────
   2. Reset & Base
   ───────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.6;
  /* grain 噪点纹理 */
  background-image: radial-gradient(rgba(245, 239, 230, 0.02) 1px, transparent 1px);
  background-size: 3px 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* SVG 图标尺寸 */
.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────
   3. Typography
   ───────────────────────────────────── */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: pretty;
}

.text-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: pretty;
}

.text-subheading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  text-wrap: pretty;
}

.text-subheading-light {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-warm-gray);
  text-wrap: pretty;
}

.text-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

.text-feature-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

.text-body-large {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.text-body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.text-body-small {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
}

.text-caption {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-deep-brown);
}

.text-overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

.text-mono-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

.text-mono-small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

/* Kicker — Source Serif 4 italic，前面带 48px 横线 */
.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--color-warm-gray);
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.kicker::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-warm-gray);
  flex-shrink: 0;
}

/* 文字居中辅助 */
.text-center {
  text-align: center;
}

/* ─────────────────────────────────────
   4. Buttons
   ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  text-decoration: none;
  min-height: 44px;
  border-radius: var(--radius);
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Primary — 暖白填充，深色文字 */
.btn-primary {
  background: var(--color-text);
  color: var(--color-base);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 500;
}

.btn-primary:hover {
  background: rgba(245, 239, 230, 0.88);
}

/* Ghost — 透明底 + 暖白边框 */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 10px 28px;
  border: 1px solid var(--border-12);
  border-radius: var(--radius);
}

.btn-ghost:hover {
  border-color: var(--color-warm-gray);
  color: var(--color-text);
}

/* Ghost Dark — 更暗的边框 */
.btn-ghost-dark {
  background: transparent;
  color: var(--color-warm-gray);
  padding: 10px 28px;
  border: 1px solid var(--border-08);
  border-radius: var(--radius);
}

.btn-ghost-dark:hover {
  border-color: var(--color-warm-gray);
  color: var(--color-text);
}

/* Gold — 暖金强调按钮 */
.btn-gold {
  background: var(--surface-gold-subtle);
  color: var(--color-gold);
  padding: 10px 28px;
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: var(--radius);
}

.btn-gold:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--color-gold);
}

/* Cyan 按钮 — 映射为 Gold（兼容旧 HTML） */
.btn-cyan {
  background: var(--surface-gold-subtle);
  color: var(--color-gold);
  padding: 10px 28px;
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: var(--radius);
}

.btn-cyan:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--color-gold);
}

/* Phantom — 极淡 */
.btn-phantom {
  background: rgba(245, 239, 230, 0.06);
  color: var(--color-warm-gray);
  padding: 10px 28px;
  border: none;
  border-radius: var(--radius);
}

.btn-phantom:hover {
  background: rgba(245, 239, 230, 0.1);
  color: var(--color-text);
}

/* 尺寸变体 */
.btn-lg {
  font-size: 0.9375rem;
  padding: 12px 36px;
}

.btn-pill {
  border-radius: 9999px;
}

/* ─────────────────────────────────────
   5. Layout
   ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-40);
}

.section {
  padding: var(--space-120) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-80) 0;
  position: relative;
}

/* Section 分隔线 — 暖色渐变 */
.section + .section {
  border-top: 1px solid var(--border-06);
}

/* ─────────────────────────────────────
   6. Header
   ───────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border-06);
  /* 花叔风格不用 backdrop-filter blur */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* 新 logo：图标 + 文字 */
.logo-icon {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  mix-blend-mode: lighten;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-left: var(--space-12);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-warm-gray);
  text-decoration: none;
  transition: color var(--duration-fast);
  padding: var(--space-4) 0;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
  color: var(--color-text);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────
   7. Mobile Nav
   ───────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 999;
  padding: var(--space-32) var(--space-24);
  flex-direction: column;
  gap: var(--space-8);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-06);
  transition: color var(--duration-fast);
}

.mobile-nav-link:hover {
  color: var(--color-gold);
}

.mobile-nav-actions {
  margin-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* ─────────────────────────────────────
   8. Hero Section
   ───────────────────────────────────── */
.hero {
  padding-top: 176px;
  padding-bottom: var(--space-120);
  position: relative;
  overflow: hidden;
  background: var(--color-base);
}

/* 花叔风格不用粒子/orb，用极淡的径向渐变营造温暖氛围 */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(212, 165, 116, 0.06) 0%,
    rgba(212, 165, 116, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* 隐藏旧的 gradient mesh orbs */
.gradient-mesh,
.gradient-orb {
  display: none;
}

/* 粒子画布 — 花叔风格不用，隐藏 */
.particle-canvas {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Chapter 编号 — 左上角 mono 风格 */
.hero-label {
  margin-bottom: var(--space-24);
  color: var(--color-warm-gray);
  opacity: 1;
}

/* Hero 标题 — 暖色渐变文字 */
.hero-title {
  margin-bottom: var(--space-32);
  background: linear-gradient(
    180deg,
    #F5EFE6 0%,
    #9C8E78 65%,
    #5C5447 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--color-warm-gray);
  max-width: 620px;
  margin: 0 auto var(--space-48);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

/* Hero Stats — mono 字体 + 暖金 text-shadow */
.hero-stats {
  display: flex;
  gap: var(--space-64);
  justify-content: center;
  margin-top: var(--space-80);
  padding-top: var(--space-40);
  border-top: 1px solid var(--border-08);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.hero-stat-label {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-dark-brown);
  margin-top: var(--space-8);
}

/* ─────────────────────────────────────
   9. Feature Cards
   ───────────────────────────────────── */
/* Tab Bar */
.tab-bar-wrapper {
  text-align: center;
  margin-bottom: var(--space-64);
}

.tab-bar {
  display: inline-flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(245, 239, 230, 0.03);
  border: 1px solid var(--border-08);
  border-radius: var(--radius);
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  background: transparent;
  color: var(--color-warm-gray);
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--color-text);
  background: var(--border-06);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.tab-btn.active {
  background: var(--color-text);
  color: var(--color-base);
  font-weight: 500;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-20);
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-08);
  border-radius: var(--radius);
  padding: var(--space-32);
  transition: border-color var(--duration-normal) ease,
              border-left-width var(--duration-normal) ease,
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

/* Tab 切换动画：隐藏状态 */
.feature-card.tab-hidden {
  opacity: 0;
  transform: translateY(20px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Tab 切换动画：显示状态 */
.feature-card.tab-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px;
  pointer-events: auto;
}

/* 花叔风格：hover 时左侧 3px 暖金 border + 边框变暖金 */
.feature-card:hover {
  border-color: var(--border-gold);
  border-left: 3px solid var(--color-gold);
}

/* Feature Icon — 暖金色 */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface-gold-subtle);
  border: 1px solid rgba(212, 165, 116, 0.15);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-20);
  font-size: 1.25rem;
  transition: background var(--duration-normal) ease;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card:hover .feature-icon {
  background: rgba(212, 165, 116, 0.15);
}

.feature-card .text-feature-title {
  margin-bottom: var(--space-12);
}

.feature-card .text-body {
  color: var(--color-warm-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────
   10. Steps (How It Works)
   ───────────────────────────────────── */
.how-it-works-section {
  border-top: 1px solid var(--border-06);
  border-bottom: 1px solid var(--border-06);
  background: rgba(245, 239, 230, 0.015);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  position: relative;
}

/* 连接线 — 暗棕色 */
.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: var(--color-dark-brown);
  opacity: 0.5;
}

.step {
  text-align: center;
  position: relative;
}

/* Step Number — 大号 mono，暖金色 */
.step-number {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: var(--color-base);
  border: 1px solid var(--border-08);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-24);
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

/* 花叔风格不用旋转渐变边框，覆盖掉旧的伪元素 */
.step-number::before,
.step-number::after {
  content: none;
}

/* 脉冲光点 — 隐藏（花叔风格不用） */
.step-pulse {
  display: none;
}

.step-title {
  margin-bottom: var(--space-12);
  color: var(--color-text);
}

.step-desc {
  color: var(--color-warm-gray);
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ─────────────────────────────────────
   11. Showcase (代码块)
   ───────────────────────────────────── */
.showcase {
  background: var(--color-base);
  position: relative;
}

/* 花叔风格不用径向渐变装饰 */
.showcase::before {
  content: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
  position: relative;
  z-index: 1;
}

.showcase-content {
  max-width: 500px;
}

.showcase-content .text-section-heading {
  color: var(--color-text);
}

.showcase-content .text-body-large {
  color: var(--color-warm-gray);
  margin-top: var(--space-24);
  margin-bottom: var(--space-40);
  line-height: 1.7;
}

/* 代码块容器 — 左侧 3px 暖金 border */
.showcase-visual {
  background: var(--surface-card);
  border: 1px solid var(--border-08);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-32);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 隐藏旧的径向渐变装饰 */
.showcase-visual::before {
  content: none;
}

/* 数据流装饰 — 花叔风格不用 */
.data-stream {
  display: none;
}

.data-stream::before,
.data-stream::after {
  content: none;
}

/* 代码文字 */
.showcase-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: var(--color-warm-gray);
  position: relative;
  z-index: 1;
}

/* 花叔风格不用扫描线 */
.showcase-code::after {
  content: none;
}

/* 语法高亮 — 暖色系 */
.showcase-code .keyword {
  color: var(--color-gold);
}

.showcase-code .string {
  color: var(--color-warm-gray);
}

.showcase-code .comment {
  color: var(--color-dark-brown);
}

.showcase-code .highlight {
  color: var(--color-gold);
}

/* ─────────────────────────────────────
   12. Stats Section
   ───────────────────────────────────── */
.stats-section {
  border-top: 1px solid var(--border-06);
  border-bottom: 1px solid var(--border-06);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
  text-align: center;
}

.stat-item {
  padding: var(--space-32) var(--space-16);
  border-right: 1px solid var(--border-06);
}

.stat-item:last-child {
  border-right: none;
}

/* 大号 mono 数字 */
.stat-value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

/* 计数动画时的微妙发光 */
.stat-value.counting {
  text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.stat-label {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-dark-brown);
}

/* ─────────────────────────────────────
   13. Use Case Cards
   ───────────────────────────────────── */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-20);
}

.use-case-card {
  background: var(--surface-card);
  border: 1px solid var(--border-08);
  border-radius: var(--radius);
  padding: var(--space-40);
  transition: border-color var(--duration-normal) ease;
  position: relative;
}

/* 花叔风格：hover 时左侧暖金 border */
.use-case-card:hover {
  border-color: var(--border-gold);
  border-left: 3px solid var(--color-gold);
}

/* 隐藏旧的渐变边框伪元素 */
.use-case-card::after {
  content: none;
}

.use-case-tag {
  margin-bottom: var(--space-16);
  color: var(--color-gold);
  font-family: var(--font-mono);
}

.use-case-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-24);
  text-wrap: pretty;
}

.use-case-author {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text);
}

.use-case-role {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-dark-brown);
  margin-top: var(--space-4);
}

/* ─────────────────────────────────────
   14. Open Source Section
   ───────────────────────────────────── */
.open-source {
  position: relative;
  overflow: hidden;
  background: rgba(245, 239, 230, 0.015);
  border-top: 1px solid var(--border-06);
  border-bottom: 1px solid var(--border-06);
}

/* 花叔风格不用径向渐变装饰 */
.open-source::before {
  content: none;
}

.open-source-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.open-source .text-section-heading {
  color: var(--color-text);
  margin-bottom: var(--space-24);
}

.open-source .text-body-large {
  color: var(--color-warm-gray);
  margin-bottom: var(--space-48);
  line-height: 1.7;
}

.open-source-actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────
   15. FAQ
   ───────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: var(--space-64) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-08);
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-20) 0;
  color: var(--color-text);
  transition: color var(--duration-fast);
  min-height: 44px;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.faq-arrow {
  font-size: 1.25rem;
  transition: transform var(--duration-normal) ease,
              color var(--duration-normal) ease;
  font-weight: 400;
  color: var(--color-dark-brown);
  flex-shrink: 0;
  margin-left: var(--space-16);
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  color: var(--color-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) ease,
              padding var(--duration-normal) ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-20);
}

/* 展开时左侧暖金渐变条 */
.faq-answer p {
  color: var(--color-warm-gray);
  font-size: 0.9375rem;
  line-height: 1.8;
  text-wrap: pretty;
  padding-left: var(--space-16);
  border-left: 2px solid transparent;
  transition: border-color var(--duration-normal) ease;
}

.faq-item.open .faq-answer p {
  border-image: linear-gradient(
    180deg,
    var(--color-gold) 0%,
    rgba(212, 165, 116, 0.3) 60%,
    transparent 100%
  ) 1;
}

/* ─────────────────────────────────────
   16. CTA Section
   ───────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 花叔风格不用径向渐变装饰 */
.cta-section::before {
  content: none;
}

.cta-section .text-section-heading {
  margin-bottom: var(--space-24);
  position: relative;
  z-index: 1;
}

.cta-section .text-body-large {
  color: var(--color-warm-gray);
  max-width: 560px;
  margin: 0 auto var(--space-48);
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────
   17. Brand Marquee
   ───────────────────────────────────── */
.brand-display {
  text-align: center;
  padding: var(--space-48) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-04);
}

.brand-display-text {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(245, 239, 230, 0.06);
  text-transform: uppercase;
  user-select: none;
  line-height: 1;
}

/* Marquee 动画 */
.brand-marquee {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(245, 239, 230, 0.06);
  text-transform: uppercase;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  gap: 0.5em;
}

.marquee-inner {
  display: inline-block;
  padding-right: 0.5em;
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ─────────────────────────────────────
   18. Footer
   ───────────────────────────────────── */
.footer {
  background: var(--color-base);
  border-top: 1px solid var(--border-06);
  padding: var(--space-80) 0 var(--space-40);
  position: relative;
}

/* 极淡网格线背景 — 暖色 */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 239, 230, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 230, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
}

/* 四列网格 */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-48);
  position: relative;
  z-index: 1;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  margin-bottom: var(--space-16);
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

/* Footer 新 logo：图标 + 文字 */
.footer-logo-icon {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  mix-blend-mode: lighten;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-left: var(--space-12);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-16);
}

.footer-desc {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-dark-brown);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-20);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.footer-link {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-dark-brown);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-64);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border-06);
  position: relative;
  z-index: 1;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-dark-brown);
  letter-spacing: 0.02em;
}

.footer-social {
  display: flex;
  gap: var(--space-24);
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-dark-brown);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast);
}

.footer-social a:hover {
  color: var(--color-gold);
}

/* ─────────────────────────────────────
   19. Scroll Reveal 动画
   ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
  /* 花叔风格不用 blur 过渡 */
}

[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-reveal="right"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-reveal].revealed,
.revealed[data-reveal] {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ─────────────────────────────────────
   20. Grain 纹理覆盖层
   ───────────────────────────────────── */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: radial-gradient(rgba(245, 239, 230, 0.02) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 1;
}

/* ─────────────────────────────────────
   21. Section 编号
   ───────────────────────────────────── */
.section-chapter {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-dark-brown);
  position: absolute;
  top: var(--space-40);
  left: var(--space-40);
}

/* 红点分隔符 */
.section-chapter .dot {
  color: var(--color-signal-red);
  margin: 0 0.3em;
}

/* ─────────────────────────────────────
   22. Signature 行
   ───────────────────────────────────── */
.section-signature {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--color-dark-brown);
  text-align: right;
  margin-top: var(--space-64);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border-06);
}

/* ─────────────────────────────────────
   23. 响应式
   ───────────────────────────────────── */

/* 1024px — 平板横屏 */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-32);
  }

  .section {
    padding: var(--space-96) 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .showcase-content {
    max-width: 100%;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border-06);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-40);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* 768px — 平板竖屏 */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-24);
  }

  .section {
    padding: var(--space-80) 0;
  }

  .nav {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: var(--space-80);
  }

  .hero-stats {
    gap: var(--space-32);
    flex-wrap: wrap;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .steps::before {
    display: none;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .tab-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-16);
    text-align: center;
  }
}

/* 560px — 手机 */
@media (max-width: 560px) {
  .container {
    padding: 0 var(--space-20);
  }

  .section {
    padding: var(--space-64) 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: var(--space-64);
  }

  .hero-stats {
    gap: var(--space-24);
  }

  .hero-stat-value {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-06);
    padding: var(--space-24) var(--space-16);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-value {
    font-size: 2.25rem;
  }

  .showcase-visual {
    padding: var(--space-24);
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .open-source-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .open-source-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .brand-marquee,
  .brand-display-text {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
  }

  .section-chapter {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: var(--space-24);
  }
}

/* ─────────────────────────────────────
   24. prefers-reduced-motion
   ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-inner {
    animation: none;
  }
}

/* ─────────────────────────────────────
   25. focus-visible 无障碍焦点样式
   ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ─────────────────────────────────────
   补充：text-shimmer 效果（暖金版）
   ───────────────────────────────────── */
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-text) 0%,
    var(--color-text) 40%,
    var(--color-gold) 50%,
    var(--color-text) 60%,
    var(--color-text) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-gold 3s ease-in-out 1;
}

@keyframes shimmer-gold {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ─────────────────────────────────────
   补充：cursor-glow（暖金版，极克制）
   ───────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 165, 116, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ─────────────────────────────────────
   补充：打字机光标（暖金色）
   ───────────────────────────────────── */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─────────────────────────────────────
   补充：滚动进度条（暖金色）
   ───────────────────────────────────── */
/* 由 JS 动态创建，这里提供覆盖样式 */
