/* ============================================================
   Home page styles
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #f5f5f5; }
.hero .swiper { width: 100%; aspect-ratio: 16 / 6; }
.hero .swiper-slide { position: relative; }
.hero .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero .slide-caption {
  position: absolute; left: 8%; top: 50%; transform: translateY(-50%);
  max-width: 520px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero .slide-caption h2 {
  font-family: var(--font-heading);
  font-size: 40px; line-height: 1.3; margin-bottom: 14px;
}
.hero .slide-caption h2::before {
  content: ''; display: inline-block;
  width: 4px; height: 0.9em;
  background: var(--color-accent);
  margin-right: 12px; vertical-align: middle;
  transform: skewX(-15deg);
}
.hero .slide-caption p { font-size: 16px; line-height: 1.8; margin-bottom: 22px; opacity: .95; }
.hero .slide-caption .btn { background: var(--color-primary); color: #fff; }
.hero .slide-caption .btn:hover { background: var(--color-secondary); }

.hero .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .6; }
.hero .swiper-pagination-bullet-active { background: var(--color-primary); opacity: 1; width: 24px; border-radius: 5px; }

/* ---------- Section Head ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px;
}
.section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-head .tit i {
  display: block; font-style: normal;
  font-family: var(--font-heading);
  font-size: 14px; color: var(--color-muted);
  letter-spacing: 3px; margin-bottom: 4px;
}
.section-head .more {
  font-size: 14px; color: var(--color-muted);
  padding: 8px 20px; border: 1px solid var(--color-border);
  border-radius: 30px; transition: var(--transition);
}
.section-head .more:hover { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }

/* ---------- 产品中心 ---------- */
.home-products .product-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-feature a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.product-feature a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.product-feature a:hover img { transform: scale(1.05); }
.product-feature .feature-main img { aspect-ratio: 4 / 5; }
.product-feature .feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-feature .feature-list a:first-child { grid-column: 1 / -1; }
.product-feature .feature-list img { aspect-ratio: 4 / 3; }
.product-feature .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; display: flex; justify-content: space-between; align-items: center;
}
.product-feature .caption h4 { font-size: 16px; font-weight: 500; }
.product-feature .caption span { font-size: 13px; opacity: .85; }

/* ---------- 标语 ---------- */
.home-slogan { text-align: center; padding: 72px 16px; background: #fff; }
.home-slogan h2 {
  font-family: var(--font-heading);
  font-size: 36px; font-weight: 400; letter-spacing: 3px;
  color: var(--color-text); line-height: 1.5;
}
.home-slogan span { display: block; width: 1px; height: 48px; background: var(--color-text); margin: 24px auto 0; }

/* ---------- 关于我们（桌面：左右） ---------- */
.home-about { display: grid; grid-template-columns: 1fr 1fr; background: #5c5c5c; color: #fff; align-items: stretch; }
.home-about .about-image { overflow: hidden; }
.home-about .about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-about .about-text {
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.home-about .about-text i {
  display: block; font-style: normal;
  font-family: var(--font-heading);
  font-size: 14px; letter-spacing: 3px;
  color: var(--color-accent); margin-bottom: 12px;
}
.home-about .about-text h2 { font-family: var(--font-heading); font-size: 32px; color: #fff; margin-bottom: 24px; }
.home-about .about-text p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 2; margin-bottom: 16px; }
.home-about .about-text .btn { margin-top: 16px; align-self: flex-start; background: transparent; border: 1px solid #fff; color: #fff; }
.home-about .about-text .btn:hover { background: #fff; color: #5c5c5c; }

/* ---------- 数据亮点 ---------- */
.home-stats { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; padding: 48px 0; }
.home-stats .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.home-stats .stat-item .num { font-family: var(--font-heading); font-size: 42px; font-weight: 700; color: var(--color-accent); line-height: 1.2; }
.home-stats .stat-item .num small { font-size: 20px; margin-left: 4px; }
.home-stats .stat-item .label { font-size: 14px; opacity: .9; margin-top: 6px; letter-spacing: 1px; }

/* ---------- 工厂实力 ---------- */
.home-factory { background: #fff; }
.factory-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.factory-feature { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.factory-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.factory-feature:hover img { transform: scale(1.05); }
.factory-feature .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
}
.factory-feature .caption i { display: block; font-style: normal; font-size: 12px; letter-spacing: 2px; opacity: .85; margin-bottom: 4px; }
.factory-feature .caption h4 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.factory-feature .caption span { font-size: 13px; opacity: .9; }

.factory-small-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.factory-small { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.factory-small img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .6s ease; }
.factory-small:hover img { transform: scale(1.08); }
.factory-small .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; text-align: center;
}
.factory-small .caption h4 { font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 合作品牌 ---------- */
.home-brands { background: var(--color-bg); padding: 40px 0; }
.home-brands .brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.home-brands .brand-item {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(100%); opacity: .7; transition: var(--transition);
}
.home-brands .brand-item:hover { filter: none; opacity: 1; box-shadow: var(--shadow-sm); }
.home-brands .brand-item img { max-height: 48px; width: auto; }

/* ---------- 新闻 ---------- */
.home-news .news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-news .news-card {
  display: grid; grid-template-columns: 90px 1fr 160px;
  gap: 20px; align-items: center;
  padding: 24px; background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.home-news .news-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.home-news .news-card .date { border-right: 1px solid var(--color-border); padding-right: 20px; }
.home-news .news-card .date i { display: block; font-style: normal; font-family: var(--font-heading); font-size: 36px; color: var(--color-text); line-height: 1; }
.home-news .news-card .date em { display: block; font-size: 12px; color: var(--color-muted); font-style: normal; margin-top: 4px; }
.home-news .news-card .text h3 {
  font-size: 15px; line-height: 1.6; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-news .news-card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }

/* ---------- CTA ---------- */
.home-cta {
  background: url('/images/cta-bg.jpg') center/cover no-repeat;
  position: relative; color: #fff; text-align: center;
  padding: 80px 16px;
}
.home-cta::before { content: ''; position: absolute; inset: 0; background: rgba(43,29,18,.8); }
.home-cta .inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.home-cta h2 { font-family: var(--font-heading); font-size: 32px; margin-bottom: 14px; }
.home-cta p { font-size: 15px; opacity: .9; margin-bottom: 24px; }
.home-cta .btn { background: var(--color-accent); color: var(--color-dark); font-weight: 700; }
.home-cta .btn:hover { background: #fff; }