/*
 * 上海安弗真空技术有限公司 — 首页样式 (Home CSS)
 * 版本: 2.0
 */

/* ===================== 首页区块间距 ===================== */
.home-section {
  padding: var(--space-3xl) 0;
}

.home-section.gray {
  background: var(--bg-light);
}

/* ===================== 优势区域 ===================== */
.advantages-section {
  background: var(--bg-light);
}

/* ===================== 产品中心区域 ===================== */
.products-section {
  background: var(--bg-white);
}

/* ===================== 应用场景区域 ===================== */
.scenes-section {
  background: var(--bg-white);
}

/* ===================== 新闻区域 ===================== */
.news-section {
  background: var(--bg-light);
}

.news-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: stretch;
}

.news-layout .featured {
  width: 50%;
}

.news-layout .list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-layout .list .news-list-item {
  flex: 1;
}

/* ===================== 客户反馈区域 ===================== */
.testimonials-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-white);
}

.testimonials-section .bg-wrapper {
  background: url("https://qny.luckyblank.cn/anfu/images/feedback-bg.jpg") center no-repeat;
  background-size: cover;
}

/* ===================== 合作伙伴区域 ===================== */
.partners-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-white);
}

/* ===================== 数据指标区域 ===================== */
.stats-section {
  padding: var(--space-2xl) 0;
  background: var(--primary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-card:last-child {
  border-right: none;
}

.stat-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
}

.stat-label {
  font-size: var(--text-base);
  opacity: 0.8;
  font-weight: 500;
}

@media (max-width: 767px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .stat-value {
    font-size: 32px;
  }
}

/* ===================== 关于我们 — 统计 & 里程碑 ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stats-grid .stat-card {
  background: var(--bg-white);
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dark);
  transition: all var(--transition-base);
}

.stats-grid .stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.stats-grid .stat-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.stats-grid .stat-label {
  font-size: var(--text-base);
  color: var(--text-gray);
  font-weight: 500;
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid .stat-value {
    font-size: 36px;
  }
  .stats-grid .stat-card {
    padding: var(--space-xl) var(--space-lg);
  }
}

.milestones-timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

.milestones-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  position: relative;
}

.milestone-item.left {
  justify-content: flex-start;
  padding-right: 55%;
}

.milestone-item.right {
  justify-content: flex-end;
  padding-left: 55%;
}

.milestone-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--primary-light);
  z-index: 1;
}

.milestone-content {
  background: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.milestone-year {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.milestone-content p {
  font-size: var(--text-base);
  color: var(--text-gray);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .milestones-timeline::before {
    left: 20px;
  }
  .milestone-item.left,
  .milestone-item.right {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .milestone-dot {
    left: 20px;
  }
}

/* ===================== Hero Banner 高度 ===================== */
.hero-slider {
  height: 580px;
}

@media (max-width: 991px) {
  .hero-slider {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    height: 380px;
  }
}