/* ==========================================================================
   Index Page Specific Styles
   ========================================================================== */

/* 1. Hero Section */
.hero-home {
  position: relative;
  min-height: 656px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
@media (max-width: 768px) {
  .hero-bg {
    object-position: right center;
  }
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,   
    rgba(0, 0, 0, 0.7) 40%,   
    rgba(0, 0, 0, 0) 60%,      
    rgba(0, 0, 0, 0) 100%   
  );
  z-index: 1;
}

.hero-home .container {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
}

.hero-home .eyebrow { color: var(--color-white); margin-bottom: 24px; }

.hero-home h1 {
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 800;
  line-height: 1.1;
}

/* PROMAX 整体：斜体 + 白色 */
.hero-home h1 .hero-promax {
  color: var(--color-white) !important; 
  font-style: italic !important; 
}

/* 单独 P：主红色 + 斜体 */
.hero-home h1 .hero-p {
  color: var(--color-primary-red) !important;
  font-style: italic !important;
}

/* CYCLER：白色 + 正体 */
.hero-home h1 .hero-cycler {
  color: var(--color-white) !important;
  font-style: normal !important;
  margin-left: 8px;
}

.hero-home .desc { color: var(--color-white); max-width: 480px; margin-bottom: 32px; }

/* 2. Brands Section (保留深灰) */
.brands-section { background-color: var(--color-bg-dark); padding: 48px 0; display: flex; flex-direction: column; justify-content: center; text-align: center; color: var(--color-white); }
.brands-title { font: var(--font-h2); letter-spacing: 1.5px; margin-bottom: 24px; }
.brands-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 80px; margin-bottom: 0; }
.brand-logo img { height: 48px; width: auto; }
.copyright-text { font-family: var(--font-body); font-size: 12px; color: #FFFFFF; margin-top: 32px; margin-bottom: 0; opacity: 0.7; }

/* 3. About Preview Section (白底) */
.about-preview { background-color: var(--color-white); padding: 80px 0; display: flex; align-items: center; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text .eyebrow { color: var(--color-text-main); }
.about-text h2 { color: var(--color-text-main); margin-bottom: 20px; }
.about-text p { color: var(--color-text-main); margin-bottom: 28px; }
.img-placeholder { width: 100%; height: 380px; background-color: var(--color-bg-light); display: flex; align-items: center; justify-content: center; color: #666; }

/* 4. Services Preview Section (极浅灰底 #F4F4F4) */
.services-preview { background-color: #F4F4F4; padding: 80px 0; }
.services-preview .eyebrow { color: var(--color-text-main); margin-bottom: 24px; }
.services-preview h2 { color: var(--color-text-main); margin-bottom: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.service-card { background-color: #FFFFFF; display: flex; flex-direction: column; }
.card-img-placeholder { width: 100%; height: 218px; background-color: #C0C0C0; display: flex; align-items: center; justify-content: center; color: #666; }
.service-card h3 { height: 74px; padding: 16px; font: var(--font-h3); color: var(--color-text-main); display: flex; align-items: center; justify-content: flex-start; margin: 0; }

/* 5. Products Preview Section (白底) */
.products-preview { background-color: var(--color-white); padding: 80px 0; }
.products-preview .eyebrow { color: var(--color-text-main); margin-bottom: 24px; }
.products-preview h2 { color: var(--color-text-main); margin-bottom: 16px; }
.products-carousel { display: flex; gap: 24px; margin-bottom: 48px; overflow-x: auto; padding-bottom: 24px; scroll-snap-type: x mandatory; }
.products-carousel::-webkit-scrollbar { height: 6px; }
.products-carousel::-webkit-scrollbar-track { background: #F4F4F4; border-radius: 4px; }
.products-carousel::-webkit-scrollbar-thumb { background: #CCCCCC; border-radius: 4px; }
.product-card { background-color: #F2F2F2; flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; }
.prod-img-placeholder { width: 100%; height: 210px; background-color: #C8C8C8; display: flex; align-items: center; justify-content: center; color: #666; }
.product-card h3 { height: 70px; padding: 0 16px; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600; line-height: 39.1px; color: var(--color-text-main); display: flex; align-items: center; justify-content: flex-start; margin: 0; }

/* 6. Testimonials Section (保留深灰) */
.testimonials-section { background-color: var(--color-bg-dark); color: var(--color-white); padding: 80px 0; }
.testimonials-section .eyebrow, .testimonials-section h2 { text-align: center; color: var(--color-white); }
.testimonials-section .eyebrow { margin-bottom: 24px; }
.testimonials-section h2 { margin-bottom: 16px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background-color: var(--color-bg-card); width: 100%; max-width: 389px; height: 268px; padding: 16px; display: flex; flex-direction: column; margin: 0 auto; }
.stars { color: var(--color-primary-red); font: var(--font-h3); margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 28.2px; font-style: italic; text-align: left; color: var(--color-white); flex-grow: 1; margin-bottom: 16px; }
.review-author { font: var(--font-body); color: var(--color-white); text-align: left; margin-bottom: 0; }

/* ===== Products Carousel ===== */
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.preview-head h2 { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-wrap { position: relative; margin-bottom: 48px; }
.carousel-arrow { width: 40px; height: 40px; border: 2px solid #434343; background-color: transparent; color: #434343; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.carousel-arrow:hover { background-color: #434343; color: var(--color-white); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 768px) {
  .carousel-arrow { width: 32px; height: 32px; font-size: 18px; }
}

.testimonials-section .view-all-btn { display: flex; justify-content: center; margin-top: 48px; }

/* ==========================================================================
   Index — Mobile Responsive (≤768)
   ========================================================================== */
@media (max-width: 768px) {
  .brands-grid { justify-content: center; gap: 32px; }
  .brand-logo img { height: 32px; }
  .about-content { grid-template-columns: 1fr; gap: 32px; }
  .about-preview .img-placeholder { height: 240px; }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card h3 { height: auto; padding: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 24px; }
  .review-card { height: auto; max-width: 100%; }
  .about-preview, .services-preview, .products-preview, .testimonials-section { padding: 48px 0; }
}