.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

/* General image responsiveness for all images within .page-index */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Small top padding as body has --header-offset */
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* Desktop specific aspect ratio for hero */
@media (min-width: 850px) {
  .page-index__hero-image img {
    aspect-ratio: 16/5;
    object-fit: cover;
  }
}

/* 🚨 Mobile HERO: object-fit:contain to prevent cropping */
@media (max-width: 849px) {
  .page-index__hero-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    object-fit: contain !important; /* Prevent cropping */
    max-height: none !important;
    display: block !important;
  }
}

/* 🚨 Mobile responsive for HERO section */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* 产品展示图区域样式 */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #0D0E12; /* Background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr); /* 桌面：一行 6 张 */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px;
  border-radius: 0; /* 禁止圆角 */
  overflow: hidden;
  background: transparent; /* 透明背景 */
  box-shadow: none; /* 禁止阴影 */
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid */
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* 最宽不超过 300px */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* 保持图片原始宽高比 */
  display: block;
}

/* 🚨 移动端产品展示图区域样式 */
@media (max-width: 768px) {
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-grid {
    grid-template-columns: repeat(2, 1fr); /* 移动：2 列 × 3 行 */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%;
  }
}

/* 模块 3：居中装饰主标题样式 */
.page-index__section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 24px 12px;
  box-sizing: border-box;
  text-align: center;
  color: #FFF3E6; /* Text Main */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Use clamp for H1 font size */
  line-height: 1.35;
  font-weight: bold;
}

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  opacity: 0.6;
  background-color: #FF8C1A; /* Main color for decorative line */
}

/* 🚨 移动端装饰主标题样式 */
@media (max-width: 768px) {
  .page-index__section-title-line {
    max-width: 40px;
  }
  .page-index__section-title-wrap {
    padding: 20px 10px;
  }
}

/* 模块 4：长文 SEO 主体样式 */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  color: #FF8C1A; /* Main color for H2 */
  font-weight: bold;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.4rem;
  color: #FFA53A; /* Auxiliary color for H3 */
  font-weight: bold;
}

.page-index__article-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
}

.page-index__article-body ul {
  margin-bottom: 1rem;
  padding-left: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-index__article-body ul li {
  margin-bottom: 0.5rem;
  color: #FFF3E6; /* Text Main */
}

.page-index__article-figure {
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
  background: #17191F; /* Card BG */
  padding: 10px;
  border-radius: 5px;
  box-sizing: border-box;
}

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__article-figure figcaption {
  font-size: 0.9rem;
  color: #FFA53A; /* Auxiliary color */
  margin-top: 10px;
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #FF8C1A; /* Main color */
  color: #FFF3E6; /* Text Main */
  background-color: rgba(255, 140, 26, 0.1);
  font-style: italic;
}

/* 🚨 移动端长文 SEO 主体样式 */
@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 15px 32px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin: 1.5rem 0 0.8rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.25rem);
    margin: 1rem 0 0.6rem;
  }
  .page-index__article-body p,
  .page-index__article-body ul li {
    font-size: 0.95rem;
  }
  .page-index__article-quote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
  }
  .page-index__article-figure {
    margin: 1rem auto;
    padding: 8px;
  }
}

/* Common button styles */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button custom color */
  color: #ffffff; /* Ensure white text for contrast */
  border: none;
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A; /* Main color */
}

.page-index__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 🚨 移动端按钮响应式适配 */
@media (max-width: 768px) {
  .page-index__btn-primary,
  .page-index__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* General content containers for mobile */
  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Contrast Fixes (if needed, but design should prevent this) */
.page-index__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-index__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}