/* =============================================
   首页特定样式
   ============================================= */

/* Hero Banner */
.hero {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(26,58,107,0.7) 0%, rgba(26,58,107,0.2) 60%, transparent 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 560px;
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dots span.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ==================== Advantages ==================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-item {
  text-align: center;
  padding: 32px 20px;
}

.adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  transition: all var(--transition);
}

.adv-item:hover .adv-icon {
  /* background: var(--primary); */
  color: #fff;
  transform: scale(1.1);
}

.adv-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.adv-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.adv-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==================== Products Section ==================== */
.product-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.product-tab-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-gray);
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-zh);
}

.product-tab-btn:hover,
.product-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==================== About Section ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.about-text .en-title {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 400;
}

.about-text p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 24px 0;
}

.stat-item .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .unit {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ==================== Partner Brands ==================== */
.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.brand-logo-item {
  filter: grayscale(1);
  opacity: 0.6;
  transition: all var(--transition);
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
}

.brand-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ==================== 合作品牌轮播（5个一屏滚动） ==================== */
.brand-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.brand-carousel-viewport {
  overflow: hidden;
  flex: 1;
}
.brand-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.brand-slide {
  flex: 0 0 20%;
  box-sizing: border-box;
  padding: 0 10px;
}
.brand-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.brand-slide a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.brand-slide img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  transition: all var(--transition);
}
.brand-slide a:hover img {
  opacity: 0.85;
}
.brand-carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}
.brand-carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.brand-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.brand-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}
.brand-carousel-dots span.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .brand-slide { flex: 0 0 33.333%; }
}
@media (max-width: 600px) {
  .brand-slide { flex: 0 0 50%; }
}

/* ==================== CTA Section ==================== */
.cta-section {
  background: url('../images/bottom-banner.jpg') no-repeat center center/cover;
  padding: 56px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 28px;
}

.cta-section .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-section .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* ==================== Animations ==================== */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.animated {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Responsive - Tablet (≤900px) ==================== */
@media (max-width: 900px) {
  .hero {
    height: 400px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* ==================== Responsive - Mobile (≤768px) ==================== */
@media (max-width: 768px) {
  .hero {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

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

  .adv-item {
    padding: 20px 14px;
  }

  .about-text h2 {
    font-size: 22px;
  }

  .stat-item .num {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 22px;
  }
}

/* ==================== Responsive - Small Phone (≤600px) ==================== */
@media (max-width: 600px) {
  .hero {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .advantages-grid {
    gap: 12px;
  }

  .adv-item {
    padding: 16px 10px;
  }

  .adv-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .adv-icon img {
    width: 26px;
    height: 26px;
  }

  .adv-item h3 {
    font-size: 14px;
  }

  .adv-item p {
    font-size: 12px;
  }

  .stat-item .num {
    font-size: 24px;
  }

  .stat-item .unit {
    font-size: 13px;
  }

  .stat-item .label {
    font-size: 12px;
  }

  .about-stats {
    gap: 12px;
    padding: 16px 0;
  }

  .cta-section {
    padding: 36px 0;
  }

  .cta-section h2 {
    font-size: 20px;
  }

  .brand-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .brand-slide a {
    height: 72px;
  }

  .brand-slide img {
    max-height: 56px;
  }
}

/* ==================== Responsive - Phone (≤480px) ==================== */
@media (max-width: 480px) {
  .hero {
    height: 220px;
  }

  .hero-content {
    left: 5%;
    right: 5%;
    max-width: none;
  }

  .hero-content h1 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .hero-content .btn {
    display: none;
  }

  .hero-dots {
    bottom: 12px;
  }

  .hero-dots span {
    width: 6px;
    height: 6px;
  }

  .hero-dots span.active {
    width: 18px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .adv-item {
    padding: 14px 10px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-tabs {
    gap: 6px;
  }

  .product-tab-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .cta-section h2 {
    font-size: 18px;
  }

  .cta-section p {
    font-size: 13px;
  }
}
