/**
 * TIC SEO Theme - Hero Animation Enhancements v2
 * Full-screen background + floating content card layout
 */

/* ===== Hero全屏背景 ===== */
.hero-split {
  position: relative;
  overflow: hidden;
}

/* 背景图片缓慢缩放（入场） */
.hero-split {
  animation: bgSlowZoom 8s ease-out both;
  background-size: cover !important;
  background-position: center !important;
}

@keyframes bgSlowZoom {
  from { background-size: 115% auto; }
  to   { background-size: cover; }
}

/* ===== 内容卡片浮层 ===== */
.hero-split-content {
  opacity: 0;
  transform: translateX(-30px);
  animation: cardSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes cardSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 子元素逐序出场 */
.hero-split-badge {
  animation: badgeGlow 2s ease-in-out infinite alternate, heroSlideUp 0.6s ease-out 0.4s both;
}

.hero-split-title {
  animation: heroSlideUp 0.7s ease-out 0.5s both;
}

.hero-split-desc {
  animation: heroSlideUp 0.7s ease-out 0.6s both;
}

.hero-split-actions {
  animation: heroSlideUp 0.7s ease-out 0.7s both;
}

.hero-split-stats {
  animation: heroSlideUp 0.8s ease-out 0.8s both;
}

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes badgeGlow {
  0%   { box-shadow: 0 0 5px rgba(237, 137, 54, 0.1); }
  100% { box-shadow: 0 0 18px rgba(237, 137, 54, 0.2); }
}

/* ===== 按钮增强 ===== */
.hero-split-actions .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-split-actions .btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.hero-split-actions .btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(237, 137, 54, 0.45);
}

.hero-split-actions .btn-accent::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-split-actions .btn-accent:hover::after { opacity: 1; }

.hero-split-actions .btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-split-actions .btn-secondary:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-100);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== 统计卡片 ===== */
.hero-stat-item {
  transition: all 0.3s ease;
}

.hero-stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ===== 服务卡片增强 ===== */
.service-metal-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-metal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-metal-header {
  transition: background 0.5s ease;
}

.service-metal-card:hover .service-metal-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-dark) 100%);
}

/* ===== 案例卡片增强 ===== */
.case-horizontal-card {
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-horizontal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ===== CTA 区域增强 ===== */
.cta-fullwidth {
  position: relative;
}

.cta-fullwidth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero-split-content {
    margin-left: 4% !important;
    margin-right: 4%;
    max-width: 520px;
    padding: 2rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero-split-text {
    padding: 4rem 1rem;
  }

  .hero-split-content {
    margin: 0 auto !important;
    padding: 1.5rem 1.5rem;
    max-width: 100%;
  }

  .hero-split-title {
    font-size: 2rem;
  }

  .hero-split-actions {
    flex-direction: column;
  }

  .hero-split-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-split-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
