/* General styles for .page-index */
.page-index {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main color */
  background-color: #F4F7FB; /* Background color */
  line-height: 1.6;
}

/* Module 1: HERO主图区域 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

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

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

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

/* Module 2: 产品展示图区域 */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #F4F7FB; /* Background color */
  overflow-x: hidden;
}

.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; /* Max width for each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center;
}

.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; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* Module 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;
  background-color: #F4F7FB; /* Background color */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Clamp font size for H1 */
  line-height: 1.35;
  color: #000000; /* Custom Color_1776249996415 */
  font-weight: 700;
}

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background-color: #D6E2FF; /* Border color */
  opacity: 0.8;
}

/* Module 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;
  background-color: #F4F7FB; /* Background color */
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: #000000; /* Custom Color_1776249996415 */
  font-size: 1.75rem;
  font-weight: 600;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: #000000; /* Custom Color_1776249996415 */
  font-size: 1.35rem;
  font-weight: 600;
}

.page-index__article-body p,
.page-index__article-body li {
  color: #1F2D3D; /* Text Main color */
  margin-bottom: 1em;
}

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-index__article-figure {
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
}

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Slight round for content images */
}

.page-index__article-figure figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #2F6BFF; /* Primary color */
  background-color: rgba(47, 107, 255, 0.05); /* Light tint of primary */
  color: #1F2D3D; /* Text Main color */
  font-style: italic;
}

.page-index__btn-text-link {
  color: #2F6BFF; /* Primary color for text links */
  text-decoration: underline;
  font-weight: 600;
}

/* Button styles (for text links that act as CTAs) */
.page-index a[class*="btn"] {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Example primary button style (if needed for explicit buttons, not just text links) */
.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index__products-grid {
    gap: 15px;
  }
}

@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;
    object-fit: contain !important; /* Mobile HERO: contain, not cover */
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important; /* Mobile top padding */
    margin-top: 0;
  }

  /* 产品展示图区域 */
  .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%;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-index__section-title-wrap {
    padding: 20px 10px;
  }
  .page-index__section-title {
    font-size: clamp(1rem, 5vw, 1.5rem); /* Adjust clamp for smaller screens */
  }
  .page-index__section-title-line {
    max-width: 40px; /* Shorter lines on mobile */
  }
  .page-index__article-body {
    padding: 0 15px 32px; /* Adjust padding for mobile */
    font-size: 16px; /* Base font size for mobile content */
  }
  .page-index__article-body h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem); /* Responsive H2 font size */
    margin: 1.5rem 0 0.8rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.25rem); /* Responsive H3 font size */
    margin: 1rem 0 0.6rem;
  }
  .page-index__article-figure {
    margin: 1rem auto;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__article-quote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
  }
  .page-index__article-body p,
  .page-index__article-body li {
    font-size: 15px;
  }

  /* 通用图片与容器 */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__container,
  .page-index__products-container,
  .page-index__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__article-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 按钮与按钮容器 */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"],
  .page-index__btn-text-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}