/* ============================================
   首页 - Patreon 浅色简洁风 · TheMarketMemo 致敬
   ============================================ */

/* ========== Hero 区域 ========== */
.hero {
  position: relative;
  background: #0f0f1a;
  padding: 5rem 1.5rem 3.5rem;
  margin-top: 0;
  overflow: hidden;
}

/* 背景纹理图案 */
.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    /* 斜线条纹 */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.015) 30px,
      rgba(255, 255, 255, 0.015) 31px
    ),
    /* 横线条纹 */
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.01) 40px,
      rgba(255, 255, 255, 0.01) 41px
    ),
    /* 光晕 */
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #2563eb;
  color: #fff;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
}
.hero-actions .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.hero-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hero-actions .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Hero 统计 */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}

.hero-stat {
  padding: 0 2rem;
  text-align: center;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}
.hero-stat-lbl {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .hero { padding: 4rem 1.2rem 2.5rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { flex-wrap: wrap; gap: 0.5rem 0; }
  .hero-stat { padding: 0.75rem 1rem; }
  .hero-stat + .hero-stat::before { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ========== K线画布区 ========== */
.kline-section {
  width: 100%;
  max-width: 680px;
  height: 120px;
  margin: 2.5rem auto 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fafbfc;
  border: 1px solid var(--border-subtle);
}
.kline-section canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========== 快速导航 ========== */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.quick-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}

.quick-card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.quick-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.15rem;
  display: block;
}
.quick-card-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: block;
}

@media (max-width: 640px) {
  .quick-nav { grid-template-columns: 1fr; }
  .kline-section { height: 90px; }
}
