/* ============================================
   首页专属样式
   组件动画与交互效果
   ============================================ */

/* 噪点纹理叠加层 */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

/* 滚动显示动画 */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 子元素依次出现 */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 120ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 360ms; }

/* 卡片悬停上浮发光 */
.card-hover {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(212,168,83,0.25),
    0 28px 60px rgba(212,168,83,0.2),
    0 8px 24px rgba(0,0,0,0.3);
  border-color: rgba(212,168,83,0.35);
}

/* 图片悬停缩放 */
.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* 渐变动画文字 */
.text-gradient-animate {
  background: linear-gradient(90deg, #fff, #E8C872, #D4A853, #B87333, #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 按钮光泽扫过动画 */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 3s ease-in-out infinite 1s;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* 推荐卡片发光边框 */
.featured-glow {
  position: relative;
}

.featured-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    var(--border-angle, 135deg),
    #D4A853, #B87333, #E8C872, #D4A853
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradientShift 4s ease infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-glow:hover::before {
  opacity: 1;
}

/* 导航链接下划线动画 */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4A853, #B87333);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* 防止导航按钮出现下划线动效 */
.nav-link-button::after {
  display: none;
}

/* 在线状态脉冲点 */
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.status-dot {
  animation: statusPulse 2s ease-in-out infinite;
}

/* 数据统计数字入场动画 */
.stat-number {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-number.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-stat > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-stat > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-stat > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-stat > .reveal:nth-child(4) { transition-delay: 300ms; }

/* 品牌标签滚动轨道 */
.ticker-track {
  width: max-content;
  min-width: 200%;
}

/* 定价卡片悬停缩放 */
.price-pop {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover .price-pop {
  transform: scale(1.05);
}

/* 徽章浮动动画 */
.badge-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 分区分隔线发光 */
.glow-divider {
  position: relative;
}

.glow-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.4), rgba(184,115,51,0.3), transparent);
}

/* ============================================
   Hero 区域高端卡片样式
   ============================================ */

/* 主卡片 - 深色玻璃态 */
.hero-card-primary {
  background: linear-gradient(
    135deg,
    rgba(15, 17, 28, 0.88) 0%,
    rgba(10, 12, 20, 0.92) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 主卡片微光边框 */
.hero-card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(200, 220, 255, 0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 主按钮 - 渐变填充 */
.hero-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #7c7ff7 0%, #9d6ef7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Ghost 按钮 */
.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Ghost Accent 按钮 */
.hero-btn-ghost-accent {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: rgb(165, 243, 252);
}

.hero-btn-ghost-accent:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}

/* 次卡片 - 略透明玻璃态 */
.hero-card-secondary {
  background: linear-gradient(
    135deg,
    rgba(20, 22, 35, 0.75) 0%,
    rgba(15, 17, 28, 0.8) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* 次卡片微光边框 */
.hero-card-border-secondary {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 60%,
    rgba(139, 92, 246, 0.15) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 在线状态徽章 */
.hero-status-badge {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: rgb(167, 243, 208);
}

/* 能力模块基础样式 */
.hero-module-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Cyan 强调模块 */
.hero-module-cyan {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.12);
}

/* Violet 强调模块 */
.hero-module-accent {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

/* ============================================
   Hero 图片轮播与极光效果
   ============================================ */

/* 轮播舞台 */
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* 背景图片层 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-bg-img.is-on {
  opacity: 1;
}

/* 极光容器 */
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 极光光球 */
.hero-aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: auroraDrift 12s ease-in-out infinite alternate;
}

.hero-aurora .orb.a {
  width: 400px;
  height: 400px;
  background: rgba(212, 168, 83, 0.5);
  top: -10%;
  left: -5%;
  animation-duration: 14s;
  animation-delay: 0s;
}

.hero-aurora .orb.b {
  width: 350px;
  height: 350px;
  background: rgba(184, 115, 51, 0.45);
  top: 20%;
  right: -8%;
  animation-duration: 16s;
  animation-delay: -4s;
}

.hero-aurora .orb.c {
  width: 300px;
  height: 300px;
  background: rgba(232, 200, 114, 0.4);
  bottom: 10%;
  left: 30%;
  animation-duration: 18s;
  animation-delay: -8s;
}

/* 极光漂移动画 */
@keyframes auroraDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
  100% {
    transform: translate(10px, -10px) scale(1.02);
  }
}

/* ============================================
   Hero 卡片漂浮动画
   ============================================ */

/* 主卡片漂浮动画 - 上方卡片 */
.hero-card-primary {
  animation: heroFloatPrimary 5s ease-in-out infinite;
}

/* 次卡片漂浮动画 - 下方卡片，反向相位 */
.hero-card-secondary {
  animation: heroFloatSecondary 5s ease-in-out infinite;
  animation-delay: -2.5s; /* 相位差，形成交替漂浮效果 */
}

@keyframes heroFloatPrimary {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroFloatSecondary {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* 尊重用户的减少动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
  .hero-card-primary,
  .hero-card-secondary {
    animation: none;
  }
}
