/* ═══════════════════════════════════════════════
   首页专用样式
   ═══════════════════════════════════════════════ */

/* ── Banner Carousel ── */
.hero-banner {
  position: relative;
  margin-top: 64px;
  height: min(72vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: var(--bg);
}

.hero-banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.hero-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.35) 0%,
    rgba(10, 10, 15, 0.55) 45%,
    rgba(10, 10, 15, 0.88) 100%
  );
}

.hero-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 24px 88px;
}

.hero-banner-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-banner-desc {
  max-width: 520px;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.7;
  color: rgba(228, 228, 231, 0.92);
}

.hero-banner-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
}

.hero-banner-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 15, 0.55);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.hero-banner-arrow:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(99, 102, 241, 0.5);
}

.hero-banner-dots {
  display: flex;
  gap: 10px;
}

.hero-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero-banner-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Hero Section ── */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
}

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

.hero-logo {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 40px;
}

.hero-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.5s infinite;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Quote Carousel ── */
.quote-carousel {
  height: 56px;
  overflow: hidden;
  position: relative;
  margin-bottom: 48px;
}

.quote-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-item {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.quote-item span {
  padding: 6px 20px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Quick Links Section ── */
.quick-links {
  padding: 80px 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.quick-link-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.quick-link-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.quick-link-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.quick-link-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quick-link-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Highlights Section ── */
.highlights {
  padding: 80px 0 120px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.highlight-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .3s;
}

.highlight-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}

.highlight-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.highlight-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Stats Section ── */
.stats-section {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .3s;
}

.stat-item:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── Stats Extra ── */
.stats-extra {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stats-extra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.stats-extra-icon {
  font-size: 20px;
}

.stats-extra-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-banner {
    height: min(68vh, 520px);
    min-height: 360px;
  }

  .hero-banner-content {
    padding-bottom: 76px;
  }

  .hero-banner-arrow {
    display: none;
  }

  .quick-links-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stats-extra {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
