/* ============================================
   服务与产品页 - 页面样式
   包含：页面 Banner、核心服务、全链路协同、数据实力、优选食材
   ============================================ */

/* ---- 通用板块标题（与首页一致） ---- */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-color-secondary);
  margin-bottom: var(--spacing-xxl);
}

.section-subtitle--center {
  text-align: center;
}

/* ============================================
   页面 Banner
   纯图片展示，与关于页一致
   ============================================ */
.services-banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.services-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.services-banner .banner-title {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
}

.services-banner .banner-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   板块1：核心服务优势 - 3列白色卡片
   与首页 features-section 风格一致
   ============================================ */
.services-features {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.service-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon .iconfont {
  font-size: 40px;
  color: var(--primary-color);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   板块2：全链路协同 - 流程图
   背景 #f2f3f7（与首页 features-section 一致）
   ============================================ */
.chain-section {
  padding: 80px 0;
  background-color: #f2f3f7;
}

.chain-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  position: relative;
}

.chain-stage {
  flex: 1;
  max-width: 320px;
  text-align: center;
  position: relative;
  padding: var(--spacing-xl) var(--spacing-md);
}

/* 阶段之间的连接箭头 */
.chain-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  position: relative;
}

.chain-arrow::before {
  content: "";
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.chain-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid var(--primary-color);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* 阶段图标 */
.chain-stage-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chain-stage-icon .iconfont {
  font-size: 32px;
  color: var(--primary-color);
}

.chain-stage-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

/* 阶段内节点列表 */
.chain-nodes {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.chain-node {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 16px;
  background: #ffffff;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-color);
  transition: border-color var(--transition-fast),
    transform var(--transition-fast);
}

.chain-node:hover {
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

/* ============================================
   板块3：数据实力 - 四列数据卡片
   ============================================ */
.stats-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

.stat-card {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: #f2f3f7;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  font-family: 'DINPro', Arial, sans-serif;
  letter-spacing: 1px;
}

.stat-unit {
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  font-size: 15px;
  color: var(--text-color-secondary);
  margin-top: var(--spacing-sm);
}

/* ============================================
   板块4：优选食材（与首页一致）
   ============================================ */
.products-section {
  padding: 80px 0;
  background-color: #f2f3f7;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg, 24px);
}

.product-category-card {
  position: relative;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal, 0.3s ease),
    box-shadow var(--transition-normal, 0.3s ease);
}

.product-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.product-category-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-category-card:hover .product-category-img {
  transform: scale(1.05);
}

.product-category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
  transition: background var(--transition-normal, 0.3s ease);
}

.product-category-card:hover .product-category-overlay {
  background: rgba(255, 15, 35, 0.65);
}

.product-category-accent {
  width: 3px;
  height: 22px;
  background: #ff6b35;
  border-radius: 2px;
  flex-shrink: 0;
  transition: background var(--transition-normal, 0.3s ease);
}

.product-category-card:hover .product-category-accent {
  background: rgba(255, 255, 255, 0.7);
}

.product-category-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

/* ============================================
   滚动淡入动画
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   响应式 - 平板端（768px 以下）
   ============================================ */
@media screen and (max-width: 768px) {
  /* Banner */
  .services-banner {
    height: 220px;
  }

  .services-banner .banner-title {
    font-size: 30px;
  }

  .services-banner .banner-subtitle {
    font-size: 15px;
  }

  /* 通用标题 */
  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: var(--spacing-xl);
  }

  /* 板块1：卡片两列 */
  .services-features {
    padding: 56px 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  /* 板块2：流程图纵向 */
  .chain-section {
    padding: 56px 0;
  }

  .chain-flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .chain-stage {
    max-width: 100%;
    width: 100%;
    padding: var(--spacing-md) 0;
  }

  .chain-arrow {
    width: auto;
    height: 36px;
    transform: rotate(90deg);
  }

  .chain-nodes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .chain-node {
    padding: 8px 14px;
  }

  /* 板块3：数据两列 */
  .stats-section {
    padding: 56px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

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

  /* 板块4：食材两列 */
  .products-section {
    padding: 56px 0;
  }

  .product-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md, 16px);
  }

  .product-category-name {
    font-size: 16px;
  }

  .product-category-overlay {
    padding: 14px 16px;
  }

}

/* ============================================
   响应式 - 手机端（480px 以下）
   ============================================ */
@media screen and (max-width: 480px) {
  /* Banner */
  .services-banner {
    height: 180px;
  }

  .services-banner .banner-title {
    font-size: 24px;
  }

  .services-banner .banner-subtitle {
    font-size: 14px;
  }

  /* 通用标题 */
  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  /* 板块1：卡片单列 */
  .services-features {
    padding: 44px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .service-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  /* 板块2 */
  .chain-section {
    padding: 44px 0;
  }

  .chain-stage-icon {
    width: 56px;
    height: 56px;
  }

  .chain-stage-icon .iconfont {
    font-size: 26px;
  }

  .chain-stage-title {
    font-size: 16px;
  }

  .chain-node {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* 板块3：数据两列紧凑 */
  .stats-section {
    padding: 44px 0;
  }

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

  .stat-label {
    font-size: 13px;
  }

  /* 板块4：食材两列紧凑 */
  .products-section {
    padding: 44px 0;
  }

  .product-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm, 8px);
  }

  .product-category-name {
    font-size: 14px;
  }

  .product-category-overlay {
    padding: 10px 12px;
    gap: 6px;
  }

  .product-category-accent {
    width: 2px;
    height: 16px;
  }

}
