/* ============ 首页展示样式（Hero / 功能 / 走势 / 统计 / FAQ / CTA） ============ */
/* === Hero Section === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  background: var(--gradient-bg);
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}
.hero-glow {
  position: absolute; top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--purple-400);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-stats {
  display: flex; gap: 36px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid var(--border-light);
}
.hero-stat-value {
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Right - Dashboard Preview */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-dashboard {
  width: 100%; border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.hero-dash-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-light);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #f87171; }
.dash-dot.y { background: #fbbf24; }
.dash-dot.g { background: #4ade80; }
.dash-title-text {
  margin-left: 12px; font-size: 0.75rem;
  color: var(--text-muted); font-weight: 500;
}
.hero-dash-body { padding: 20px; }
.hero-dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash-mini-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 10px; padding: 14px;
}
.dash-mini-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.dash-mini-value { font-size: 1.2rem; font-weight: 700; color: #fff; }
.dash-mini-change { font-size: 0.72rem; margin-top: 4px; }
.dash-mini-change.up { color: var(--green-400); }
.dash-mini-change.down { color: var(--red-400); }
.dash-chart-area {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px; padding: 16px;
  height: 160px; position: relative; overflow: hidden;
}
.dash-chart-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 8px; }
.dash-chart-svg { width: 100%; height: 120px; }

/* Floating elements around hero visual */
.hero-float {
  position: absolute; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 12px 16px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  animation: float-up 4s ease-in-out infinite;
  z-index: 2;
}
.hero-float.f1 { top: 5%; right: -10px; animation-delay: 0s; }
.hero-float.f2 { bottom: 10%; left: -20px; animation-delay: 1.5s; }
.hero-float-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.hero-float-icon.purple { background: rgba(124,58,237,0.2); }
.hero-float-icon.blue { background: rgba(59,130,246,0.2); }
@keyframes float-up {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* === Features Section === */
.features { padding: 120px 0; background: var(--bg-secondary); position: relative; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-purple);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-400); margin-bottom: 20px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.15);
}
.feature-icon svg { width: 28px; height: 28px; display: block; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feature-tag {
  font-size: 0.7rem; padding: 4px 10px; border-radius: 100px;
  background: rgba(124,58,237,0.08); color: var(--purple-400);
  border: 1px solid rgba(124,58,237,0.15); font-weight: 500;
}

/* === App Showcase === */
.showcase { padding: 120px 0; position: relative; overflow: hidden; }
.showcase-bg-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.showcase-inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.showcase-screens {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; position: relative;
}
.screen-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.screen-card:first-child { grid-row: span 2; }
.screen-placeholder {
  width: 100%; aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,0.05) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center;
}
.screen-placeholder.landscape { aspect-ratio: 16/10; }
.screen-icon { font-size: 2.5rem; }
.screen-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.screen-bars {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
  padding: 0 10px;
}
.screen-bar {
  height: 6px; border-radius: 3px;
  background: rgba(124,58,237,0.15);
}
.screen-bar.filled { background: var(--gradient-purple); }

.showcase-features { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.showcase-feat-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
.showcase-feat-item:hover {
  background: rgba(124,58,237,0.05);
  border-color: rgba(124,58,237,0.15);
}
.showcase-feat-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  background: rgba(124,58,237,0.12); font-size: 1.2rem;
}
.showcase-feat-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.showcase-feat-item p { font-size: 0.82rem; color: var(--text-muted); }

/* === Trend Preview Section === */
.trend-preview { padding: 100px 0; background: var(--bg-secondary); }
.trend-chart-wrap {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px;
  margin-top: 40px;
}
.trend-chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.trend-tabs { display: flex; gap: 8px; }
.trend-tab {
  padding: 8px 16px; border-radius: 8px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; border: none;
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  transition: all 0.2s;
}
.trend-tab.active, .trend-tab:hover {
  background: rgba(124,58,237,0.2); color: var(--purple-400);
}
.trend-chart-canvas { width: 100%; height: 280px; position: relative; }
.trend-chart-canvas canvas { width: 100% !important; height: 100% !important; }

/* === Stats Section === */
.stats-section { padding: 80px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-glow);
}
.stat-number {
  font-size: 2.4rem; font-weight: 800;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* === Number Grid (Hot/Cold) === */
.number-analysis { padding: 100px 0; background: var(--bg-secondary); }
.number-grid-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px;
}
.number-panel {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px; overflow: hidden;
}
.number-panel-title {
  font-size: 0.9rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.number-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.number-ball {
  aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.number-ball:hover { transform: scale(1.15); }
.number-ball.hot {
  background: rgba(248,113,113,0.15); color: var(--red-400);
  border-color: rgba(248,113,113,0.3);
}
.number-ball.cold {
  background: rgba(96,165,250,0.12); color: var(--blue-400);
  border-color: rgba(96,165,250,0.25);
}
.number-ball.neutral {
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  border-color: rgba(255,255,255,0.08);
}
.number-legend {
  display: flex; gap: 16px; margin-top: 16px;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.hot { background: var(--red-400); }
.legend-dot.cold { background: var(--blue-400); }

/* === Tutorial Section === */
.tutorial { padding: 100px 0; }
.tutorial-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.tutorial-step {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px 28px;
  position: relative; transition: transform 0.3s;
}
.tutorial-step:hover { transform: translateY(-4px); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  margin-bottom: 20px;
}
.tutorial-step h3 { margin-bottom: 10px; font-size: 1.05rem; }
.tutorial-step p { font-size: 0.88rem; color: var(--text-muted); }

/* === Changelog === */
.changelog { padding: 100px 0; background: var(--bg-secondary); }
.changelog-list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.changelog-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: start;
}
.changelog-date {
  font-size: 0.8rem; font-weight: 700; color: var(--purple-400);
  background: rgba(124,58,237,0.1); padding: 6px 12px;
  border-radius: 6px; white-space: nowrap;
}
.changelog-version { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.changelog-item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.changelog-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.changelog-tag {
  font-size: 0.68rem; padding: 3px 8px; border-radius: 4px;
  font-weight: 600; text-transform: uppercase;
}
.changelog-tag.feat { background: rgba(74,222,128,0.12); color: var(--green-400); }
.changelog-tag.fix { background: rgba(96,165,250,0.12); color: var(--blue-400); }
.changelog-tag.perf { background: rgba(251,191,36,0.12); color: var(--yellow-400); }
.changelog-item p { font-size: 0.84rem; color: var(--text-muted); }

/* === FAQ Section === */
.faq { padding: 100px 0; }
.faq-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 40px; align-items: start;
}
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--shadow-glow);
}
.faq-item.open { border-color: rgba(124,58,237,0.3); }
.faq-question {
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-weight: 600; font-size: 0.95rem; color: #fff;
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-arrow {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s; color: var(--text-muted);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--purple-400); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7;
}

/* === CTA Section === */
.cta-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { margin-bottom: 36px; font-size: 1.05rem; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }


/* === Responsive (home) === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .hero-float { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-inner { grid-template-columns: 1fr; gap: 48px; }
  .showcase-screens { max-width: 400px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .number-grid-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-height) + 20px); }
  .hero-inner { padding: 40px 0; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .tutorial-steps { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .changelog-item { grid-template-columns: 1fr; }
  .trend-chart-header { flex-direction: column; align-items: flex-start; }
  .hero-dash-row { grid-template-columns: 1fr; }
  .number-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .number-grid { grid-template-columns: repeat(4, 1fr); }
}
