/* ============================================================
   达讯科技 | AI量化交易网站
   设计语言：暗黑金融 · 数据美学 · 算法黑盒
   ============================================================ */

/* --- 减少动画偏好 (低配设备自动关闭) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- CSS Variables --- */
:root {
  --bg-deep: #060b11;
  --bg-primary: #0a1119;
  --bg-card: #0d1520;
  --bg-card-hover: #111b28;
  --border-subtle: rgba(41, 121, 255, 0.12);
  --border-glow: rgba(41, 121, 255, 0.3);
  --text-primary: #e8edf4;
  --text-secondary: #a8b8cc;
  --text-muted: #8899b0;
  --accent-blue: #2979ff;
  --accent-cyan: #00bcd4;
  --accent-green: #00e676;
  --accent-orange: #ff9100;
  --accent-gold: #ffb74d;
  --accent-red: #ff3d5a;
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a1119 100%);
  --gradient-card: linear-gradient(145deg, rgba(13, 21, 32, 0.95), rgba(10, 17, 25, 0.98));
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(41,121,255,0.08);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}

/* --- Particles Canvas --- */
#particles {
  position: fixed; top:0; left:0; width:100%; height:100%;
  z-index: 0; pointer-events: none; opacity: 0.45;
}

/* --- Navigation --- */
#navbar {
  position: fixed; top:0; left:0; right:0; z-index:100;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(6, 11, 17, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(41,121,255,0.08);
}
.nav-inner {
  max-width: 1280px; margin:0 auto; padding:0 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--accent-blue); }
.nav-links { display:flex; gap:28px; align-items:center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 1.05rem; font-weight: 500;
  transition: color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent-gold); }

/* --- 策略演示特色导航项 --- */
.nav-featured {
  position: relative;
}
.nav-featured::before {
  content: '⚡';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--accent-gold);
  animation: bolt-flash 0.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px var(--accent-gold));
}
@keyframes bolt-flash {
  0%   { opacity: 0.5; transform: translateY(-50%) scale(0.85); }
  100% { opacity: 1;   transform: translateY(-50%) scale(1.15); }
}
.nav-featured:hover::before {
  animation: bolt-flash 0.3s ease-in-out infinite alternate;
}
.nav-cta {
  background: rgba(41,121,255,0.12);
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(41,121,255,0.2);
}
.nav-cta:hover { background: rgba(41,121,255,0.2) !important; }

/* --- Section Common --- */
section { position:relative; z-index:1; padding: 100px 0; }
.section-header {
  text-align:center; margin-bottom:64px; padding:0 32px;
}
.section-tag {
  display:inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight:600;
  letter-spacing: 0.15em; color: var(--accent-blue);
  text-transform: uppercase;
  background: rgba(41,121,255,0.08);
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(41,121,255,0.15);
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.6rem; font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(232,237,244,0.7) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-secondary); font-size: 1.2rem; max-width:560px;
  margin:0 auto; line-height: 1.6;
}

/* --- 策略演示特色标签 --- */
.video-tag-featured {
  position: relative;
  background: linear-gradient(to right, rgba(255,183,77,0.1), rgba(255,183,77,0.2)) !important;
  border-color: rgba(255,183,77,0.3) !important;
  color: var(--accent-gold) !important;
  padding: 8px 24px !important;
  animation: tag-pulse 2s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,183,77,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255,183,77,0); }
}
.bolt-icon {
  display: inline-block;
  animation: bolt-spin 1.2s ease-in-out infinite alternate;
  margin: 0 8px;
  filter: drop-shadow(0 0 3px var(--accent-gold));
}
@keyframes bolt-spin {
  0%   { transform: rotate(-15deg) scale(0.9); opacity: 0.7; }
  100% { transform: rotate(15deg) scale(1.1); opacity: 1; }
}

/* --- Hero --- */
#hero {
  padding: 110px 0 80px;
  min-height: 100vh; display:flex; flex-direction:column;
  justify-content:center;
}
#hero::before {
  content:''; position:absolute; top:-30%; left:50%; transform:translateX(-50%);
  width:800px; height:800px;
  background: radial-gradient(ellipse, rgba(41,121,255,0.06) 0%, transparent 70%);
  pointer-events:none;
}
.hero-grid {
  max-width:1280px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;
}
.hero-text { position:relative; z-index:2; }
.hero-badge {
  display:inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight:500;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(0,188,212,0.08);
  padding: 8px 18px; border-radius: 20px;
  border: 1px solid rgba(0,188,212,0.15);
  margin-bottom: 28px;
}
.hero-text h1 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 3.4rem; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-line1 { display:block; color: var(--text-primary); }
.hero-line2 {
  display:block;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 60%, var(--accent-green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--text-secondary); font-size: 0.95rem;
  max-width:520px; line-height: 1.7; margin-bottom: 36px;
}
.hero-stats { display:flex; gap:40px; margin-bottom: 36px; }
.hero-stat { text-align:center; }
.stat-value {
  display:block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--text-primary); line-height:1;
}
.stat-value small { font-size: 0.6em; color: var(--accent-blue); }
.stat-label {
  display:block; font-size: 0.75rem; color: var(--text-muted);
  margin-top: 6px;
}
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
.btn-primary {
  display:inline-block; padding: 14px 32px;
  background: var(--accent-blue);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(41,121,255,0.25);
  touch-action: manipulation;
}
.btn-primary:hover {
  background: #3d8aff;
  box-shadow: 0 6px 28px rgba(41,121,255,0.35);
  transform: translateY(-1px);
}
.btn-primary.btn-gold {
  background: linear-gradient(135deg, rgba(255,183,77,0.85) 0%, rgba(255,160,40,0.75) 100%);
  box-shadow: 0 4px 20px rgba(255,183,77,0.25);
}
.btn-primary.btn-gold:hover {
  background: linear-gradient(135deg, rgba(255,183,77,0.95) 0%, rgba(255,160,40,0.85) 100%);
  box-shadow: 0 6px 28px rgba(255,183,77,0.35);
}
.btn-ghost {
  display:inline-block; padding: 14px 32px;
  background: transparent;
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  border-radius: var(--radius-sm); text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  touch-action: manipulation;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-glow); }
.hero-visual { position:relative; display:flex; justify-content:center; align-items:center; }
.hero-img {
  width: 100%; height: auto;
  max-width:120%; border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(41,121,255,0.12), 0 8px 40px rgba(0,0,0,0.5);
  position:relative; z-index:1;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.hero-glow {
  position:absolute; width:300px; height:300px;
  background: radial-gradient(circle, rgba(41,121,255,0.2) 0%, transparent 70%);
  top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none;
}
.hero-scroll-hint {
  text-align:center; margin-top:60px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.hero-scroll-hint span { font-size:0.7rem; color:var(--text-muted); letter-spacing:0.1em; }
.scroll-line { width:1px; height:40px; background:linear-gradient(to bottom, var(--text-muted), transparent); }

/* --- Model Engines --- */
#models { background: var(--bg-primary); }
.model-showcase { max-width:1280px; margin:0 auto; padding:0 32px; }
.model-card {
  display:grid; grid-template-columns:1fr 1fr; gap:48px;
  align-items:center;
  padding: 48px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  transition: border-color var(--transition-smooth);
}
.model-card:hover { border-color: var(--border-glow); }
.model-card.reverse .model-visual { order:2; }
.model-card.reverse .model-info { order:1; }
.model-visual img {
  width:100%; border-radius:var(--radius-md);
  box-shadow: var(--shadow-card);
  display:block;
}
.model-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 600; margin-bottom: 4px;
}
.model-role {
  display:block; color: var(--accent-blue); font-size:0.8rem;
  font-weight:500; letter-spacing:0.04em; margin-bottom:16px;
}
.model-info p {
  color: var(--text-secondary); font-size:0.95rem;
  line-height:1.7; margin-bottom:24px;
}
.model-metrics { display:flex; gap:32px; }
.model-metrics .metric { text-align:center; }
.model-metrics .metric strong {
  display:block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem; color: var(--accent-cyan);
}
.model-metrics .metric span {
  font-size:0.72rem; color: var(--text-muted); margin-top:4px; display:block;
}

/* --- Algo Grid --- */
.algo-grid {
  max-width:1280px; margin:48px auto 0; padding:0 32px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.algo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-smooth);
}
.algo-card:hover { border-color: var(--border-glow); transform:translateY(-2px); }
.algo-icon {
  width:48px; height:48px;
  border-radius: var(--radius-sm);
  background: rgba(41,121,255,0.1);
  color: var(--accent-blue);
  font-family: 'Space Grotesk', sans-serif;
  font-size:1.1rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.algo-icon.accent { background: rgba(0,188,212,0.1); color: var(--accent-cyan); }
.algo-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size:1.1rem; font-weight:600; margin-bottom:10px;
}
.algo-card p {
  color: var(--text-secondary); font-size:0.9rem;
  line-height:1.65; margin-bottom:16px;
}
.algo-card ul { list-style:none; }
.algo-card ul li {
  font-size:0.85rem; color: var(--text-muted);
  padding: 4px 0; padding-left: 16px;
  position:relative;
}
.algo-card ul li::before {
  content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:5px; height:5px; border-radius:50%; background: var(--accent-blue); opacity:0.5;
}

/* --- Strategy Matrix --- */
.strategy-grid {
  max-width:1280px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:repeat(2,1fr); gap:28px;
}
.strategy-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display:flex; flex-direction:column;
}
.strategy-card:hover { border-color: var(--border-glow); transform:translateY(-3px); }
.strategy-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }
.strategy-img-wrap { width:100%; overflow:hidden; }
.strategy-img-wrap img {
  width:100%; height:220px; object-fit:cover;
  display:block;
  transition: transform 0.6s ease;
}
.strategy-card:hover .strategy-img-wrap img { transform:scale(1.03); }
.strategy-body { padding: 24px 28px 28px; flex:1; display:flex; flex-direction:column; }
.strategy-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight:600;
  display:flex; align-items:center; gap:10px; margin-bottom:10px;
}
.strategy-tag {
  font-family: 'Inter', sans-serif;
  font-size:0.65rem; font-weight:600;
  padding:3px 10px; border-radius:12px;
  letter-spacing:0.04em;
  background: rgba(0,188,212,0.1); color: var(--accent-cyan);
}
.strategy-tag.hot { background: rgba(255,61,90,0.1); color: var(--accent-red); }
.strategy-tag.new { background: rgba(0,230,118,0.1); color: var(--accent-green); }
.strategy-quote {
  font-size:0.88rem; color: var(--text-muted);
  font-style:italic; margin-bottom:14px;
  padding-left:12px; border-left: 2px solid var(--border-subtle);
}
.strategy-tech {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px;
}
.strategy-tech span {
  font-family: 'JetBrains Mono', monospace;
  font-size:0.72rem; font-weight:500;
  padding:4px 12px; border-radius:14px;
  background: rgba(41,121,255,0.06);
  color: var(--accent-blue);
  border: 1px solid rgba(41,121,255,0.1);
  white-space:nowrap;
}
.strategy-desc {
  color: var(--text-secondary); font-size:0.92rem;
  line-height:1.7; margin-top:auto;
}

/* --- Factor Architecture --- */
#factors { background: var(--bg-primary); }
.factor-layout {
  max-width:1280px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1fr 340px; gap:36px;
}
.factor-diagram { display:flex; flex-direction:column; gap:20px; }
.factor-tier {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition-fast);
}
.factor-tier:hover { border-color: var(--border-glow); }
.factor-tier h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size:0.9rem; font-weight:600;
  margin-bottom:14px; color: var(--text-primary);
}
.tier-macro h4 { color: var(--accent-gold); }
.tier-daily h4 { color: var(--accent-blue); }
.tier-tick h4 { color: var(--accent-cyan); }
.tier-intraday h4 { color: var(--accent-green); }
.factor-chips { display:flex; flex-wrap:wrap; gap:8px; }
.factor-chips span {
  font-family: 'JetBrains Mono', monospace;
  font-size:0.72rem; padding:5px 14px;
  border-radius:14px;
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.05);
}
.factor-sidebar { display:flex; flex-direction:column; gap:16px; }
.factor-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px; text-align:center;
  transition: all var(--transition-fast);
}
.factor-metric-card:hover { border-color: var(--border-glow); }
.factor-metric-card h4 {
  font-size:0.85rem; color: var(--text-muted);
  font-weight:500; margin-bottom:8px;
}
.factor-big-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight:700;
  color: var(--accent-blue); line-height:1;
  margin-bottom:2px;
}
.factor-metric-card p {
  font-size:0.8rem; color: var(--text-secondary);
  margin-bottom:8px;
}
.factor-metric-card span {
  font-size:0.75rem; color: var(--text-muted);
}

/* --- Factor Principles --- */
.factor-principles {
  max-width:1280px; margin:60px auto 0; padding:0 32px;
}
.factor-principles h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size:1.4rem; text-align:center; margin-bottom:40px;
}
.principles-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.principle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition-smooth);
}
.principle:hover { border-color: var(--border-glow); }
.principle-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size:2rem; font-weight:700;
  color: rgba(41,121,255,0.2); display:block; margin-bottom:12px;
}
.principle h4 {
  font-size:1rem; font-weight:600; margin-bottom:10px;
}
.principle p {
  color: var(--text-secondary); font-size:0.9rem; line-height:1.65;
}

/* --- Pipeline --- */
.pipeline-flow {
  max-width:1280px; margin:0 auto 48px; padding:0 32px;
  display:flex; align-items:center; justify-content:center; gap:0;
}
.pipe-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px; text-align:center;
  flex:1; max-width:240px;
  transition: border-color var(--transition-smooth);
}
.pipe-stage:hover { border-color: var(--border-glow); }
.pipe-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size:1.6rem; font-weight:700;
  color: rgba(41,121,255,0.3); margin-bottom:8px;
}
.pipe-stage h4 {
  font-size:0.95rem; font-weight:600; margin-bottom:8px;
}
.pipe-stage p {
  font-size:0.8rem; color: var(--text-muted); line-height:1.55;
}
.pipe-arrow {
  font-size:1.5rem; color: var(--accent-blue);
  opacity:0.4; padding:0 12px;
  font-family: 'Space Grotesk', sans-serif;
}
.pipeline-detail {
  max-width:1280px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
}
.detail-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}
.detail-block h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size:0.95rem; font-weight:600; margin-bottom:16px;
}
.defense-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.defense-grid span {
  font-family: 'JetBrains Mono', monospace;
  font-size:0.76rem; padding:8px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.04);
  text-align:center;
}

/* --- Performance --- */
.perf-grid {
  max-width:1280px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px; text-align:center;
}
.perf-card.highlight {
  border-color: var(--border-glow);
  background: linear-gradient(145deg, rgba(41,121,255,0.08), var(--bg-card));
}
.perf-model { font-size:0.85rem; color: var(--accent-blue); font-weight:500; margin-bottom:12px; }
.perf-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem; font-weight:700;
  color: var(--accent-cyan); line-height:1;
}
.perf-value small { font-size:0.5em; }
.perf-label {
  font-size:0.9rem; color: var(--text-secondary); margin-top:8px;
}
.perf-note {
  font-size:0.78rem; color: var(--text-muted); margin-top:8px;
  padding:4px 12px; background: rgba(0,188,212,0.06);
  border-radius:10px; display:inline-block;
}
.perf-table { text-align:left; }
.perf-table h4 {
  font-size:0.9rem; font-weight:600; margin-bottom:14px;
  color: var(--text-primary);
}
.perf-table table { width:100%; border-collapse:collapse; }
.perf-table tr { border-bottom:1px solid rgba(255,255,255,0.03); }
.perf-table td {
  padding:8px 0; font-size:0.85rem;
  color: var(--text-secondary);
}
.perf-table td.val {
  text-align:right; font-family:'JetBrains Mono', monospace;
  color: var(--accent-blue); font-weight:600;
}

/* --- CTA --- */
#cta {
  padding: 100px 32px;
  text-align:center;
}
.cta-inner {
  max-width:720px; margin:0 auto;
  padding: 60px 48px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.cta-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size:2rem; font-weight:600; margin-bottom:16px;
}
.cta-inner p {
  color: var(--text-secondary); font-size:0.95rem;
  line-height:1.6; margin-bottom:32px;
}
.cta-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
}
.footer-inner {
  max-width:1280px; margin:0 auto; padding:0 32px;
  display:flex; justify-content:space-between; align-items:center;
}
.footer-brand span {
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size:1rem; display:block; margin-bottom:4px;
}
.footer-brand small { font-size:0.72rem; color: var(--text-muted); }
.footer-links {
  display:flex; gap:24px;
  font-size:0.8rem; color: var(--text-muted);
}
.footer-icp a { color: inherit; text-decoration: none; }
.footer-icp a:hover { color: var(--text-secondary); }

.footer-qrcode {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-qrcode img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.footer-qrcode span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-qrcode { justify-content: center; }
}

/* --- Reveal Animation --- */
[data-reveal] {
  opacity:0; transform:translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible { opacity:1; transform:translateY(0); }

/* --- Hamburger Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: rgba(255,61,90,0.15);
  border: 1.5px solid rgba(255,61,90,0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 110;
  padding: 8px 10px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255,61,90,0.25); border-color: rgba(255,61,90,0.7); }

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ff7a8a;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle-label {
  font-size: 0.8rem;
  color: #ff7a8a;
  font-weight: 500;
  user-select: none;
}

.nav-toggle.active .nav-toggle-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Responsive --- */

/* - Tablet (≤1024px) - */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,11,17,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 105;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 1.25rem;
    padding: 12px 0;
  }
  .nav-cta { padding: 12px 28px !important; font-size: 1rem !important; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text h1 { font-size: clamp(2rem, 5vw, 2.4rem); }
  .hero-visual { order: -1; }
  .hero-img { max-width: 85%; width: 100%; height: auto; }

  .model-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .model-card.reverse .model-visual { order: 1; }
  .model-card.reverse .model-info { order: 2; }
  .model-metrics { gap: 24px; }

  .algo-grid { grid-template-columns: repeat(2, 1fr); }
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-card:last-child:nth-child(odd) { max-width: none; }
  .strategy-img-wrap img { height: 180px; }

  .factor-layout { grid-template-columns: 1fr; }
  .factor-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }

  .pipeline-flow { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .pipe-stage { max-width: 160px; padding: 20px 16px; }
  .pipe-arrow { display: none; }
  .pipeline-detail { grid-template-columns: 1fr; }

  .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* - Large Phone (≤768px) - */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  #hero { padding: 100px 0 48px; min-height: auto; }

  .nav-inner { padding: 0 20px; }
  .section-header { margin-bottom: 40px; padding: 0 20px; }
  .section-header h2 { font-size: clamp(1.6rem, 4.5vw, 2rem); }
  .section-header p { font-size: 0.9rem; }

  .hero-grid { padding: 0 20px; }
  .hero-text h1 { font-size: clamp(1.7rem, 6vw, 2rem); }
  .hero-desc { font-size: 0.88rem; }
  .hero-stats { gap: 24px; }
  .stat-value { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; }

  .model-showcase { padding: 0 20px; }
  .model-card { padding: 24px 20px; }
  .model-info h3 { font-size: 1.3rem; }
  .model-info p { font-size: 0.88rem; }

  .algo-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .algo-card { padding: 24px 20px; }

  .strategy-grid { padding: 0 20px; }
  .strategy-body { padding: 20px; }
  .strategy-body h3 { font-size: 1.05rem; }

  .factor-layout { padding: 0 20px; }
  .factor-sidebar { grid-template-columns: 1fr; }
  .factor-tier { padding: 20px; }
  .factor-principles { padding: 0 20px; }
  .factor-principles h3 { font-size: 1.15rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { padding: 24px 20px; }

  .pipeline-flow { padding: 0 20px; }
  .pipe-stage { max-width: none; flex: 1 1 140px; padding: 18px 12px; }
  .pipeline-detail { padding: 0 20px; }

  .perf-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .perf-card { padding: 24px 20px; }
  .perf-value { font-size: 2.2rem; }

  #cta { padding: 72px 20px; }
  .cta-inner { padding: 40px 24px; }
  .cta-inner h2 { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; }

  footer { padding: 24px 0; }
  .footer-inner { padding: 0 20px; flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-direction: column; gap: 6px; align-items: center; }
}

/* - Small Phone (≤480px) - */
@media (max-width: 480px) {
  section { padding: 56px 0; }
  #hero { padding: 88px 0 36px; }

  .hero-badge { font-size: 0.65rem; padding: 6px 14px; }
  .hero-text h1 { font-size: clamp(1.5rem, 6.5vw, 1.7rem); }
  .hero-desc { font-size: 0.82rem; }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: 0.7rem; }

  .section-tag { font-size: 0.62rem; padding: 5px 12px; }

  .model-card { gap: 16px; padding: 20px 16px; }
  .model-info h3 { font-size: 1.15rem; }
  .model-metrics .metric strong { font-size: 1.05rem; }

  .algo-card { padding: 20px 16px; }
  .algo-card h4 { font-size: 1rem; }

  .strategy-img-wrap img { height: 150px; }
  .strategy-tech span { font-size: 0.65rem; padding: 3px 8px; }

  .factor-big-num { font-size: 1.8rem; }

  .pipe-stage { flex: 1 1 100%; max-width: none; }

  .btn-primary, .btn-ghost { padding: 12px 24px; font-size: 0.85rem; width: 100%; text-align: center; }
  .btn-primary { font-size: 0.88rem; }

  .cta-inner { padding: 32px 20px; }
  .cta-inner h2 { font-size: 1.3rem; }
}
/* ============================================================
   页面动感 & 动物动画系统
   ============================================================ */

/* --- 浮动关键帧 --- */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.01); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}

/* --- 各动物独立节奏 (策略卡片) --- */
/* 已移除持续浮动动画，改为 hover 时微动 */
.strategy-card:hover .strategy-img-wrap img {
  transform: translateY(-4px);
  transition: transform 0.3s ease-out;
}

/* --- Hero 主图动画 --- */
.hero-img {
  /* 移除持续浮动，保留静态 */
}

/* --- GPU 加速 --- */
.strategy-img-wrap img,
.hero-img {
  will-change: transform;
  backface-visibility: hidden;
}

/* --- 浮动科技图标 (Hero) --- */
.hero-floating-icon {
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
  /* 移除持续浮动动画，改为静态 */
  z-index: 1;
}
.hero-floating-icon:nth-child(1) { top: 18%; left: 6%; }
.hero-floating-icon:nth-child(2) { top: 22%; right: 8%; }
.hero-floating-icon:nth-child(3) { top: 55%; right: 4%; }
.hero-floating-icon:nth-child(4) { top: 60%; left: 5%; }
.hero-floating-icon:nth-child(5) { top: 35%; left: 10%; }
.hero-floating-icon:nth-child(6) { top: 40%; right: 12%; }

/* 保留 keyframes 但不再自动调用 */
@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  33% { transform: translateY(-10px) rotate(3deg); opacity: 0.55; }
  66% { transform: translateY(5px) rotate(-2deg); opacity: 0.4; }
}

/* --- [data-reveal] visible 入场动效 (增强) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 策略卡片入场延迟 (staggered) --- */
.strategy-card[data-reveal]:nth-child(1) { transition-delay: 0s; }
.strategy-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.strategy-card[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.strategy-card[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.strategy-card[data-reveal]:nth-child(5) { transition-delay: 0.4s; }

.model-card[data-reveal]:nth-child(1) { transition-delay: 0s; }
.model-card[data-reveal]:nth-child(2) { transition-delay: 0.15s; }

.perf-card[data-reveal]:nth-child(1) { transition-delay: 0s; }
.perf-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.perf-card[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.perf-card[data-reveal]:nth-child(4) { transition-delay: 0.3s; }

.algo-card[data-reveal]:nth-child(1) { transition-delay: 0s; }
.algo-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.algo-card[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

.detail-block[data-reveal]:nth-child(1) { transition-delay: 0s; }
.detail-block[data-reveal]:nth-child(2) { transition-delay: 0.15s; }

/* --- 卡片悬停增强 --- */
.strategy-card:hover .strategy-img-wrap img {
  animation-duration: 2s !important;
  filter: brightness(1.15);
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(41,121,255,0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.algo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(41,121,255,0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

/* ============================================================
   在线客服浮动按钮动态加强
   ============================================================ */

@keyframes kf-glow-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41,121,255,0.4); }
  50% { box-shadow: 0 0 0 18px rgba(41,121,255,0); }
}

/* widget.js 渲染的按钮通用增强 */
[class*="kf-button"],
[class*="chat-button"],
button[aria-label*="客服"],
button[aria-label*="联系"],
#kfChatButton,
#chatButton {
  transition: transform 0.2s ease !important;
}
[class*="kf-button"]:hover,
[class*="chat-button"]:hover,
button[aria-label*="客服"]:hover,
button[aria-label*="联系"]:hover {
  transform: scale(1.12) !important;
}

/* --- 旧版 dq-chat-toggle 按钮动画加强 (兼容) --- */
.dq-chat-toggle:hover {
  transform: scale(1.12);
}

/* ============================================================
   scroll 进度 & 标题闪烁 & 其他动效
   ============================================================ */
.hero-scroll-hint .scroll-line {
  /* 移除持续脉冲 */
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.4); }
}

/* --- Hero 徽章闪烁 --- */
.hero-badge {
  /* 移除持续闪烁，保留静态 */
}
@keyframes badge-glow {
  0%, 100% { border-color: rgba(0,188,212,0.15); box-shadow: 0 0 0 rgba(0,188,212,0); }
  50% { border-color: rgba(0,188,212,0.4); box-shadow: 0 0 16px rgba(0,188,212,0.08); }
}

/* --- 统计数据入场动效 --- */
.hero-stat {
  opacity: 0;
  transform: translateY(20px);
  animation: stat-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-stat:nth-child(1) { animation-delay: 0.2s; }
.hero-stat:nth-child(2) { animation-delay: 0.35s; }
.hero-stat:nth-child(3) { animation-delay: 0.5s; }
@keyframes stat-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* --- CTA 标题渐变流动 --- */
.cta-inner h2 {
  background: linear-gradient(135deg, #e8edf4, #2979ff, #00bcd4, #e8edf4);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 移除持续流动 */
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 页脚品牌呼吸 --- */
.footer-brand span {
  background: linear-gradient(135deg, #2979ff, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 移除持续呼吸 */
}
@keyframes footer-breathe {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; filter: brightness(1.2); }
}

/* --- 导航 CTA 脉冲 --- */
.nav-cta {
  /* 移除持续脉冲，保留静态 */
}
@keyframes nav-cta-pulse {
  0%, 100% { border-color: rgba(41,121,255,0.2); }
  50% { border-color: rgba(41,121,255,0.5); box-shadow: 0 0 12px rgba(41,121,255,0.08); }
}

/* --- section-tag 脉冲 --- */
.section-tag {
  /* 移除持续脉冲 */
}
@keyframes tag-pulse {
  0%, 100% { border-color: rgba(41,121,255,0.15); }
  50% { border-color: rgba(41,121,255,0.35); }
}

/* --- Pipeline 箭头快速流动 --- */
.pipe-arrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: none;
  font-size: 2.2rem;
  color: var(--accent-gold);
  opacity: 0.9;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0 20px;
}
/* 每个箭头用伪元素追加额外箭头形成连续流动 */
.pipe-arrow::before {
  content: '→';
  position: absolute;
  left: -20px;
  font-size: 2rem;
  opacity: 0;
  animation: arrow-flow-left 0.7s linear infinite;
}
.pipe-arrow::after {
  content: '→';
  position: absolute;
  right: -20px;
  font-size: 2rem;
  opacity: 0;
  animation: arrow-flow-right 0.7s linear infinite;
}
@keyframes arrow-flow-left {
  0%   { transform: translateX(-8px); opacity: 0; }
  15%  { opacity: 0.8; }
  100% { transform: translateX(28px); opacity: 0; }
}
@keyframes arrow-flow-right {
  0%   { transform: translateX(8px); opacity: 0; }
  15%  { opacity: 0.8; }
  100% { transform: translateX(-28px); opacity: 0; }
}
/* 流动粒子光点 */
.pipe-arrow .flow-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  margin: 0 3px;
  animation: dot-flow 0.5s linear infinite;
  box-shadow: 0 0 10px var(--accent-gold), 0 0 20px rgba(255,183,77,0.4);
}
.pipe-arrow .flow-dot:nth-child(2) { animation-delay: 0.2s; }
.pipe-arrow .flow-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-flow {
  0%   { transform: translateX(-6px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(10px); opacity: 0; }
}

/* ============================================================
   背景光晕球体 (Ambient Orbs)
   ============================================================ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
  will-change: transform;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent-blue);
  top: -150px; right: -150px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent-cyan);
  bottom: 5%; left: -180px;
}
.orb-3 {
  width: 400px; height: 400px;
  background: var(--accent-orange);
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
}

/* ============================================================
   火箭动画 (Hero Rocket) — 移植自客服系统网站
   ============================================================ */
.rocket-container {
  position: absolute;
  top: 15%;
  left: -140px;
  width: 140px;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  animation: rocket-launch 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes rocket-launch {
  0%   { left: -140px; top: 42%; transform: rotate(0deg) scale(1); opacity: 1; }
  10%  { left: 5%;     top: 38%; transform: rotate(-2deg) scale(1.03); opacity: 1; }
  30%  { left: 25%;    top: 35%; transform: rotate(1deg) scale(1.05); opacity: 1; }
  50%  { left: 50%;    top: 34%; transform: rotate(0deg) scale(1); opacity: 0.9; }
  70%  { left: 75%;    top: 38%; transform: rotate(2deg) scale(0.85); opacity: 0.5; }
  85%  { left: 95%;    top: 43%; transform: rotate(3deg) scale(0.6); opacity: 0.2; }
  100% { left: 115%;   top: 48%; transform: rotate(5deg) scale(0.3); opacity: 0; }
}
@keyframes rocket-shake {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-1px) translateX(0.5px); }
  50%  { transform: translateY(0.5px); }
  75%  { transform: translateY(-0.5px) translateX(-0.5px); }
  100% { transform: translateY(0); }
}

.rocket-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
}
.rocket-hull {
  position: absolute;
  top: 10px; left: 25px;
  width: 28px; height: 75px;
  background: linear-gradient(180deg,
    #e8e0d0 0%, #d4c8a8 20%, #f0ebe0 50%, #c8b898 80%, #b0a080 100%);
  border-radius: 50% 50% 4px 4px;
  box-shadow:
    inset -4px 0 8px rgba(255,255,255,0.2),
    inset 4px 0 8px rgba(0,0,0,0.15),
    0 0 16px rgba(255,145,0,0.25);
}
.rocket-nose {
  position: absolute;
  top: 0; left: 31px;
  width: 16px; height: 20px;
  background: linear-gradient(135deg, #e8d8c0 0%, #d4b888 50%, #c09860 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  box-shadow: 0 0 10px rgba(255,145,0,0.25);
}
.rocket-fin-left {
  position: absolute;
  top: 55px; left: 9px;
  width: 16px; height: 28px;
  background: linear-gradient(180deg, #c09050 0%, #a07030 100%);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 70% 100%, 0% 50%);
  box-shadow: 0 0 8px rgba(255,145,0,0.2);
}
.rocket-fin-right {
  position: absolute;
  top: 55px; right: 11px;
  width: 16px; height: 28px;
  background: linear-gradient(180deg, #c09050 0%, #a07030 100%);
  clip-path: polygon(100% 0%, 0% 0%, 0% 100%, 30% 100%, 100% 50%);
  box-shadow: 0 0 8px rgba(255,145,0,0.2);
}
.rocket-window {
  position: absolute;
  top: 30px; left: 33px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(0,188,212,0.9) 0%, rgba(0,150,180,0.7) 60%, rgba(0,100,140,0.8) 100%);
  box-shadow: inset 2px 2px 3px rgba(255,255,255,0.3), 0 0 8px rgba(0,188,212,0.4);
}
.rocket-label {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px; font-weight: 900;
  color: #e03030;
  white-space: nowrap;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(255,40,40,0.8), 0 0 20px rgba(255,60,60,0.4);
  z-index: 5;
  pointer-events: none;
}
.rocket-flame {
  position: absolute;
  bottom: -8px; left: 28px;
  width: 22px; height: 40px;
  background: linear-gradient(180deg,
    rgba(255,145,0,0.9) 0%, rgba(255,100,0,0.8) 20%,
    rgba(255,60,0,0.6) 50%, rgba(255,20,0,0.2) 80%, transparent 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 50% 80%, 0% 100%);
  filter: blur(2px);
}
.rocket-flame::after {
  content: '';
  position: absolute; bottom: 5px; left: 2px;
  width: 18px; height: 30px;
  background: linear-gradient(180deg,
    rgba(255,220,100,0.85) 0%, rgba(255,180,40,0.7) 30%,
    rgba(255,100,10,0.4) 70%, transparent 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 50% 70%, 0% 100%);
  filter: blur(1px);
}
@keyframes flame-flicker {
  0%   { transform: scaleY(0.85) translateY(2px); opacity: 0.85; }
  100% { transform: scaleY(1.15) translateY(-2px); opacity: 1; }
}
@keyframes flame-inner {
  0%   { transform: scaleY(0.8) scaleX(0.9); }
  100% { transform: scaleY(1.1) scaleX(1.05); }
}

.rocket-flame-side {
  position: absolute; bottom: 5px;
  width: 8px; height: 18px;
  background: linear-gradient(180deg,
    rgba(255,120,0,0.7) 0%, rgba(255,60,0,0.4) 60%, transparent 100%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  filter: blur(1.5px);
}
.rocket-flame-left  { left: 20px; }
.rocket-flame-right { right: 20px; }
@keyframes flame-side {
  0%   { transform: scaleY(0.7) rotate(-2deg); opacity: 0.6; }
  100% { transform: scaleY(1.2) rotate(2deg); opacity: 0.9; }
}

.rocket-trail {
  position: absolute; bottom: 20px; left: 35px;
  width: 10px; height: 5px;
  background: rgba(255,145,0,0.5);
  border-radius: 50%;
  box-shadow:
    0 8px 8px 2px rgba(255,120,0,0.35),
    0 18px 10px 3px rgba(255,90,0,0.2),
    0 30px 12px 4px rgba(255,60,0,0.1),
    0 45px 14px 5px rgba(255,30,0,0.04);
}
@keyframes trail-pulse {
  0%   { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* 移动端缩小火箭 */
@media (max-width: 768px) {
  .rocket-container { width: 90px; height: 90px; }
  .rocket-hull { width: 18px; height: 48px; top: 6px; left: 16px; }
  .rocket-nose { width: 10px; height: 13px; left: 20px; }
  .rocket-fin-left { width: 10px; height: 18px; top: 35px; left: 6px; }
  .rocket-fin-right { width: 10px; height: 18px; top: 35px; right: 8px; }
  .rocket-window { width: 8px; height: 8px; top: 19px; left: 21px; }
  .rocket-flame { width: 14px; height: 26px; left: 18px; bottom: -5px; }
  .rocket-flame-side { width: 5px; height: 12px; }
  .rocket-flame-left  { left: 13px; }
  .rocket-flame-right { right: 13px; }
  .rocket-label { font-size: 8px; }
  .rocket-trail { left: 22px; }
}

/* ============================================================
   增强动物动画 (五兽独立节奏) — 已简化
   ============================================================ */

/* --- 打板龙: 仅保留上下浮动 --- */
@keyframes dragon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.strategy-card:nth-child(1) .strategy-img-wrap img {
  animation: dragon-float 4s ease-in-out infinite;
}

/* --- 隔夜牛: 仅保留上下浮动 --- */
@keyframes ox-charge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.strategy-card:nth-child(2) .strategy-img-wrap img {
  animation: ox-charge 5.5s ease-in-out infinite;
}

/* --- 吸金兔: 仅保留上下浮动 --- */
@keyframes rabbit-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.strategy-card:nth-child(3) .strategy-img-wrap img {
  animation: rabbit-bounce 2.8s ease-in-out infinite;
}

/* --- 趋势狗: 仅保留上下浮动 --- */
@keyframes dog-run {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.strategy-card:nth-child(4) .strategy-img-wrap img {
  animation: dog-run 3.2s ease-in-out infinite;
}

/* --- 智盈象: 仅保留上下浮动 --- */
@keyframes elephant-step {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.strategy-card:nth-child(5) .strategy-img-wrap img {
  animation: elephant-step 5s ease-in-out infinite;
}

/* 移除所有伪元素动画 */
.strategy-card .strategy-img-wrap::after,
.strategy-card .strategy-img-wrap::before {
  display: none !important;
}

/* ============================================================
   扫描线效果 (策略卡片 & 模型卡片)
   ============================================================ */
.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(41,121,255,0.5) 20%,
    rgba(0,188,212,0.7) 50%, rgba(41,121,255,0.5) 80%,
    transparent 100%);
  /* 移除持续扫描动画，改为 hover 时显示 */
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.strategy-card:hover .scan-line,
.model-card:hover .scan-line {
  opacity: 1;
}
@keyframes scan-down {
  0%   { transform: translateY(-100%); opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.7; }
  100% { transform: translateY(600px); opacity: 0; }
}
/* 移动端扫描线减弱 */
@media (max-width: 768px) {
  .scan-line { height: 1px; }
  @keyframes scan-down {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(400px); opacity: 0; }
  }
}

/* ============================================================
   数字跳动效果 (Hero 统计数据)
   ============================================================ */
.stat-value .count-num {
  display: inline-block;
}
.stat-value.counting {
  animation: stat-glow 0.6s ease-out;
}
@keyframes stat-glow {
  0%   { text-shadow: 0 0 20px rgba(41,121,255,0.6); }
  100% { text-shadow: none; }
}

/* ============================================================
   增强客服浮动按钮动态效果
   ============================================================ */

/* 脉冲光环扩散 */
@keyframes kf-glow-ring {
  0%   { box-shadow: 0 0 0 0 rgba(41,121,255,0.5), 0 0 0 0 rgba(0,188,212,0.3); }
  100% { box-shadow: 0 0 0 20px rgba(41,121,255,0), 0 0 0 36px rgba(0,188,212,0); }
}

/* 呼吸放大缩小 */
@keyframes kf-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 定期弹跳提醒 */
@keyframes kf-bounce-notify {
  0%, 100% { transform: translateY(0); }
  5%  { transform: translateY(-18px); }
  10% { transform: translateY(0); }
  15% { transform: translateY(-8px); }
  20% { transform: translateY(0); }
}

/* 客服按钮通用匹配 (widget.js 渲染元素) */
[class*="kf-button"],
[class*="chat-button"],
[class*="kf-widget"],
[class*="widget-button"],
button[aria-label*="客服"],
button[aria-label*="联系"],
a[aria-label*="客服"],
a[aria-label*="联系"],
#kfChatButton,
#chatButton,
[id*="kf-button"],
[id*="chatButton"],
[class*="kf-launcher"],
[class*="chat-launcher"] {
  animation:
    kf-glow-ring 2.5s ease-out infinite,
    kf-breathe 3s ease-in-out infinite !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease !important;
  will-change: transform, box-shadow;
}

/* 悬停放大 */
[class*="kf-button"]:hover,
[class*="chat-button"]:hover,
[class*="kf-widget"]:hover,
[class*="widget-button"]:hover,
button[aria-label*="客服"]:hover,
button[aria-label*="联系"]:hover,
a[aria-label*="客服"]:hover,
a[aria-label*="联系"]:hover,
#kfChatButton:hover,
#chatButton:hover {
  animation: none !important;
  transform: scale(1.18) !important;
  box-shadow: 0 4px 24px rgba(41,121,255,0.5) !important;
}

/* 定期弹跳 (每 12 秒) — 已移除 */
/* 旧版兼容 */
.dq-chat-toggle:hover {
  transform: scale(1.18) !important;
}

/* 移动端减弱客服按钮动画 */
@media (max-width: 768px) {
  [class*="kf-button"]:hover,
  [class*="chat-button"]:hover {
    transform: scale(1.1) !important;
  }
}

/* ============================================================
   实战数据卡片 — 数学公式背景装饰
   ============================================================ */
.perf-card {
  position: relative;
  overflow: hidden;
}
.perf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}
.perf-card > * {
  position: relative;
  z-index: 1;
}
/* 卡片1: Easy QMT — 积分/极限/梯度/矩阵 */
.perf-card:nth-child(1)::before {
  background-image: url('../img/math-bg-1.svg');
  opacity: 0.13;
}
/* 卡片2: 破板预测 — 概率/贝叶斯/损失函数/混淆矩阵 */
.perf-card:nth-child(2)::before {
  background-image: url('../img/math-bg-2.svg');
  opacity: 0.12;
}
/* 卡片3: 涨停溢价 — 梯度下降/正则化/决策树/GBDT */
.perf-card:nth-child(3)::before {
  background-image: url('../img/math-bg-3.svg');
  opacity: 0.12;
}
/* 卡片4: ETF轮动 — 组合数学/随机过程/信息论/时序 */
.perf-card:nth-child(4)::before {
  background-image: url('../img/math-bg-4.svg');
  opacity: 0.12;
}
/* 高亮卡片稍微增强 */
.perf-card.highlight::before {
  opacity: 0.16;
}

/* --- 策略演示视频区 --- */
#video-demo {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(6,11,17,0) 0%, rgba(8,15,26,0.6) 50%, rgba(6,11,17,0) 100%);
}

.video-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  max-width: 1000px;
  margin: 0 auto 48px;
  align-items: start;
  padding: 0 24px;
}
.video-row:last-of-type { margin-bottom: 0; }

/* --- 左侧产品选择卡 --- */
.video-tabs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.video-tabs.two-up { /* 2 cards stacked */ }
.video-tabs.one-up { /* 1 card */ }

.video-tab {
  position: relative;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(41,121,255,0.15);
  border-radius: 12px;
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.video-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(41,121,255,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-tab:hover::before,
.video-tab.active::before { opacity: 1; }
.video-tab:hover {
  border-color: rgba(41,121,255,0.4);
  transform: translateX(4px);
}
.video-tab.active {
  border-color: var(--accent-blue);
  background: rgba(20,30,55,0.95);
  box-shadow: 0 0 24px rgba(41,121,255,0.15), inset 0 0 0 1px rgba(41,121,255,0.25);
}

.tab-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  color: var(--accent-blue);
  border: 1px solid rgba(41,121,255,0.3);
  background: rgba(41,121,255,0.08);
}
.tab-badge.hot {
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.4);
  background: rgba(255,107,107,0.1);
}
.tab-badge.new {
  color: var(--accent-gold);
  border-color: rgba(255,183,77,0.4);
  background: rgba(255,183,77,0.1);
}
.video-tab h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.video-tab p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0 0 10px;
  line-height: 1.4;
}
.tab-play {
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}
.video-tab.active .tab-play { color: var(--accent-cyan); }
.tab-play.pending {
  color: var(--text-muted);
  cursor: default;
}

/* --- 右侧视频播放器 --- */
.video-player-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(41,121,255,0.12);
  aspect-ratio: 16 / 9;
}
.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.video-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  pointer-events: none;
}

/* 智盈象占位 */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(10,18,32,0.95));
  gap: 12px;
}
.placeholder-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,183,77,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-gold);
  background: rgba(255,183,77,0.06);
}
.video-placeholder p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}
.video-placeholder span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 768px) {
  .video-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .video-tabs {
    flex-direction: row;
    gap: 8px;
  }
  .video-tab {
    flex: 1;
    padding: 14px;
  }
  .video-tab p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .video-tab { transition: none; }
  .video-tab:hover { transform: none; }
  .rocket-container,
  .strategy-card .strategy-img-wrap img,
  .orb,
  .scan-line,
  [class*="kf-button"],
  [class*="chat-button"] {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Modal: 合作咨询 --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6,11,17,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(41,121,255,0.1);
  overflow: hidden;
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.modal-body {
  padding: 28px;
}
.modal-body > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-btn {
  display: block;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}
.modal-btn.primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  color: white;
  border: none;
}
.modal-btn.secondary {
  background: rgba(255,183,77,0.12);
  border: 1px solid rgba(255,183,77,0.35);
  color: var(--accent-gold);
}
.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.modal-btn strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.modal-btn span {
  font-size: 0.8rem;
  opacity: 0.8;
}
.modal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
