/* ============================================
   首页样式
   包含：轮播图、关于板块、食材板块
   ============================================ */

/* ---- 通用板块标题 ---- */
.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;
}

/* ============================================
   板块1：轮播图 Hero
   全宽展示，自动播放 + 手动切换
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 轮播图容器 - 固定高度 560px */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 560px;
}

/* 轮播图容器 */
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 单张轮播图 */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* 轮播图文字内容 - 左对齐布局，与页面1200容器对齐 */
.hero-slide-content {
  text-align: left;
  color: #222222;
  padding: 0;
  margin-left: max(20px, calc((100% - 1200px) / 2 + 20px));
  max-width: 600px;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 500px;
}

/* 左右箭头 - 简洁半透明灰色样式 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-arrow:hover {
  background-color: rgba(0, 0, 0, 0.45);
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

/* 圆点指示器 - 底部居中小圆点 */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.hero-dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   企业亮点悬浮板块
   白色卡片，悬浮在轮播图底部与下方内容之间
   ============================================ */
.highlights-float {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding: 0;
}

.highlights-inner {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  padding: 30px 40px;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.highlight-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.highlight-content h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color-secondary);
}

/* ============================================
   关于串起天下
   ============================================ */
.about-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

/* 关于简介：左图右文 */
.about-intro {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxl);
}

.about-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  height: 240px;
}

.about-image-placeholder {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: contain;
}

.about-text {
  flex: 1;
}

.about-text .section-title {
  margin-bottom: var(--spacing-xs);
}

.about-text .section-subtitle {
  margin-bottom: var(--spacing-lg);
}

.about-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color-secondary);
  margin-bottom: var(--spacing-lg);
}

.about-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.about-link:hover {
  color: var(--primary-color-dark);
  transform: translateX(4px);
}

/* ============================================
   业务特性
   ============================================ */
.features-section {
  padding: 50px 0 60px;
  background-color: #f2f3f7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: 40px;
}

.feature-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);
}

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

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

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

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

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

/* ============================================
   行业伙伴的信赖选择
   ============================================ */
.partners-section {
  padding: 80px 0;
  background-color: #f2f3f7;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.partner-logo {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  transition: all var(--transition-normal);
}

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

.partner-logo img {
  max-width: 80%;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

.partners-note {
  text-align: center;
  font-size: 13px;
  color: #999999;
  margin-top: 32px;
}

/* ============================================
   板块4：优选食材（分类图片卡片）
   ============================================ */
.ingredients-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* 四列网格布局 */
.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);
}

/* hover时变为半透明主题色 */
.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);
}

/* hover时竖线变白 */
.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;
}

/* ============================================
   响应式 - 平板端（768px 以下）
   ============================================ */
@media screen and (max-width: 768px) {
  /* 通用标题 */
  .section-title {
    font-size: 26px;
  }

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

  /* 轮播图 - 平板端高度 400px */
  .hero-carousel {
    height: 400px;
  }

  .hero-slide-content {
    margin-left: 8%;
    max-width: 480px;
  }

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

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

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow svg {
    width: 20px;
    height: 20px;
  }

  .hero-arrow--prev {
    left: 12px;
  }

  .hero-arrow--next {
    right: 12px;
  }

  /* 企业亮点悬浮板块 - 平板端 */
  .highlights-inner {
    padding: 24px 28px;
    gap: 24px;
  }

  .highlight-icon {
    width: 42px;
    height: 42px;
  }

  .highlight-icon .iconfont {
    font-size: 42px;
  }

  .highlight-content h3 {
    font-size: 16px;
  }

  .highlight-content p {
    font-size: 13px;
  }

  /* 关于板块 */
  .about-section {
    padding: 60px 0;
  }

  .about-intro {
    flex-direction: column;
    gap: var(--spacing-xl);
  }

  .about-image {
    flex: none;
    width: 100%;
  }

  /* 业务特性 */
  .features-section {
    padding: 40px 0 50px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    margin-top: 28px;
  }

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

  /* 行业伙伴板块 */
  .partners-section {
    padding: 60px 0;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .partner-logo {
    padding: 24px 14px;
    min-height: 80px;
    font-size: 14px;
  }

  /* 食材板块（分类卡片） */
  .ingredients-section {
    padding: 60px 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) {
  /* 通用标题 */
  .section-title {
    font-size: 22px;
  }

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

  /* 轮播图 - 手机端高度 300px */
  .hero-carousel {
    height: 300px;
  }

  .hero-slide-content {
    margin-left: 6%;
    max-width: 90%;
  }

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

  .hero-desc {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .hero-arrow svg {
    width: 18px;
    height: 18px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dots {
    bottom: 16px;
    gap: 8px;
  }

  /* 企业亮点悬浮板块 - 手机端单列排列 */
  .highlights-float {
    margin-top: -40px;
    padding: 0 12px;
  }

  .highlights-inner {
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
  }

  .highlight-icon .iconfont {
    font-size: 40px;
  }

  .highlight-content h3 {
    font-size: 15px;
  }

  .highlight-content p {
    font-size: 12px;
  }

  /* 关于板块 */
  .about-section {
    padding: 48px 0;
  }

  .about-desc {
    font-size: 14px;
  }

  /* 业务特性：两列 */
  .features-section {
    padding: 36px 0 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    margin-top: 24px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon .iconfont {
    font-size: 32px;
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-desc {
    font-size: 12px;
  }

  /* 行业伙伴板块 */
  .partners-section {
    padding: 48px 0;
  }

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

  .partner-logo {
    padding: 20px 12px;
    min-height: 70px;
    font-size: 13px;
  }

  /* 食材板块（分类卡片） */
  .ingredients-section {
    padding: 48px 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;
  }
}
