/* ========================================
   首页样式
   ======================================== */

/* ---------- Hero Banner ---------- */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, var(--primary-bg) 0%, #fff 40%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

/* 装饰性光晕 - 右上 */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(10,102,194,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* 装饰性光晕 - 左下 */
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,201,167,0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* 浮动粒子背景 */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1);
  }
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(10,102,194,0.08);
  color: var(--primary);
  border: 1px solid rgba(10,102,194,0.12);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

/* badge 左侧小圆点装饰 */
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-placeholder {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  background: transparent;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* SVG插图外围微光 */
.hero-visual-placeholder::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(10,102,194,0.08), rgba(0,201,167,0.06));
  filter: blur(20px);
  z-index: -1;
}

/* ---------- Stats ---------- */
.stats {
  padding: 52px 0;
  background: linear-gradient(180deg, #1a1a30 0%, var(--text-primary) 100%);
  position: relative;
  overflow: hidden;
}

/* 顶部装饰线 */
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,201,167,0.3) 30%,
    rgba(10,102,194,0.4) 70%,
    transparent 100%
  );
}

/* 微弱粒子纹理 */
.stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(10,102,194,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 统计项之间分隔线 */
.stat-item {
  padding: 20px 0;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-number {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部渐变装饰条 */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-bg), rgba(0,201,167,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow-primary);
  transform: scale(1.05);
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.service-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Products Preview ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* 产品图片底部渐变遮罩 */
.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.03));
  pointer-events: none;
}

.product-info {
  padding: 24px;
}

.product-tag {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--primary-bg), rgba(0,201,167,0.06));
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}

.product-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-section {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0b3d75 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* CTA 区域微纹理 */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,201,167,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* CTA 底部装饰线 */
.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,167,0.4), transparent);
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.cta-desc {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.cta-actions .btn {
  border-radius: var(--radius-sm);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ---------- News Preview ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

/* 新闻卡片 hover 左侧accent条 */
.news-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.news-card:hover::before {
  transform: scaleY(1);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* 新闻图片微弱渐变 */
.news-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(transparent, rgba(0,0,0,0.02));
  pointer-events: none;
}

.news-info {
  padding: 20px;
}

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.news-tag {
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--primary-bg), rgba(0,201,167,0.06));
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card:hover .news-title {
  color: var(--primary);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Partners ---------- */
.partners-section {
  padding: 48px 0;
  background: var(--bg-secondary);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  width: 120px;
  height: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 12px;
  transition: all var(--transition);
}

.partner-logo:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual-placeholder {
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

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

  .stat-item + .stat-item::before {
    display: none;
  }

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

  .services-grid,
  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 24px;
  }
}
