/*
 * pages/home.css — 极光趣动官网
 * 用途：首页专属样式（Hero 区、产品矩阵、品牌故事）
 * 依赖：base.css, components.css, layout.css
 */

/* ========== SECTION: Hero ========== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-16) var(--space-3) var(--space-8);
}

/* 极光光晕背景 */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__glow::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(124, 58, 237, 0.25) 0%,
    rgba(6, 182, 212, 0.12) 45%,
    transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero__glow::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: 10%;
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at center,
    rgba(16, 185, 129, 0.15) 0%,
    transparent 65%);
  border-radius: 50%;
  filter: blur(50px);
}

/* 极光光晕流动动效 */
@keyframes aurora-float {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50%       { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.hero__glow.is-animating::before {
  animation: aurora-float 8s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-aurora-2);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

/* 英文模式下隐藏中文专属前缀 "用科技，" */
[data-lang="en"] .hero__title [data-i18n="home.hero.title_prefix"] {
  display: none;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  line-break: strict;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* 向下滚动指示箭头 */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-text-subtle);
  border-bottom: 2px solid var(--color-text-subtle);
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ========== SECTION: 产品矩阵 ========== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* 主打产品卡片（更大） */
.product-card--featured {
  grid-column: span 1;
  border-color: rgba(124, 58, 237, 0.30);
}

.product-card--featured:hover {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.25);
}

/* ========== SECTION: 品牌故事 ========== */

.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.brand-story__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.brand-story__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-aurora-2);
}

.brand-story__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: var(--leading-tight);
}

.brand-story__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.brand-story__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 品牌故事配图：大尺寸 Logo 展示 */
.brand-story__logo-display {
  width: 260px;
  height: 260px;
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-story__logo-display img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

/* ========== SECTION: 联系 CTA ========== */

.contact-cta {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.contact-cta__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.contact-cta__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-inline: auto;
  text-wrap: balance;
}

/* ========== 响应式 ========== */

@media (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card--featured {
    grid-column: span 2;
  }

  .brand-story {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .brand-story__visual {
    order: -1;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-column: span 1;
  }

  .brand-story__title {
    font-size: var(--text-3xl);
  }

  .contact-cta__title {
    font-size: var(--text-2xl);
  }
}
