/* ===== Section-Specific Styles ===== */
/*
 * This file contains section-specific visual styles (backgrounds, decorations, padding).
 * All GRID LAYOUT properties are managed by responsive.css to avoid specificity conflicts.
 * Mobile-first: base styles here are minimal; responsive.css handles breakpoints.
 */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
}

/* When background image is set, add overlay for readability */
.hero__bg[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 250, 250, 0.92) 0%,
    rgba(255, 245, 240, 0.88) 50%,
    rgba(255, 240, 235, 0.85) 100%
  );
  z-index: 0;
}

.hero__bg[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

/* Glow effects */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -200px;
  opacity: 0.08;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  bottom: -100px;
  left: -100px;
  opacity: 0.06;
}

/* Particles container */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 107, 53, 0.6);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Hero grid ?base grid setup, columns controlled by responsive.css */
.hero__container {
  display: grid;
  align-items: center;
  gap: var(--space-12);
}

/* Version tag ?replaces badge */
.hero__version-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.hero__version-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
}

/* Title ?weight contrast instead of gradient */
.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}

.hero__title-accent {
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

/* Subtitle ?tighter */
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-normal);
  max-width: 440px;
}

/* CTA ?single button + text link */
.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.hero__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-on-primary);
  background: var(--color-text-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.hero__cta-btn:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.hero__cta-btn:active {
  transform: scale(0.98);
}

.hero__cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero__cta-link:hover {
  color: var(--color-primary);
}

/* Stats bar ?real numbers replace fake avatars */
.hero__stats-bar {
  display: flex;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-number {
  white-space: nowrap;
}

.hero__stat strong {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   PRODUCT PREVIEW
   ============================================ */

.product-preview-section {
  background: var(--color-bg-dark);
  overflow: hidden;
}

.product-preview {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  position: relative;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  gap: var(--space-10);
  position: relative;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
}

.contact-grid {
  display: grid;
  gap: var(--space-6);
  margin: 0 auto;
}

/* ============================================
   PAGE HERO (通用子页?Hero)
   ============================================ */

.page-hero {
  position: relative;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: calc(80px + var(--space-16));
  padding-bottom: var(--space-16);
  min-height: 440px;
  display: flex;
  align-items: center;
}

.page-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.page-hero__glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 107, 53, 0.12);
  top: -200px;
  right: -150px;
}

.page-hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 51, 102, 0.08);
  bottom: -150px;
  left: -100px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}
