/* 🚨 Body background color is var(--background-color) from shared.css, which is #F4F7FB (light). Text colors should be dark. */
.page-index {
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.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;
  }
}

/* 🚨 移动端主图防裁切（必读）：禁止 aspect-ratio + object-fit:cover + max-height 限高组合 */
@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;
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
  }
}

/* 产品展示图区域样式 */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #F4F7FB; /* 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; /* 每个产品卡片最宽不超过 300px */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.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;
  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 hàng */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%;
  }
}

/* 居中装饰主标题 (H1) 样式 */
.page-index__section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 24px 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #F4F7FB; /* Background */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* Adjusted for better H1 impact */
  line-height: 1.35;
  color: #1F2D3D; /* Text Main */
  font-weight: 700;
  max-width: 800px;
}

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

@media (max-width: 768px) {
  .page-index__section-title-wrap {
    padding: 20px 15px;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .page-index__section-title-line {
    max-width: 40px;
  }
}

/* 长文 SEO 主体样式 */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-index__article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: 2.2rem;
  line-height: 1.3;
  color: #000000; /* Custom Color_1776249996415 */
  font-weight: 700;
}

.page-index__article-body h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.4;
  color: #1F2D3D; /* Text Main */
  font-weight: 600;
}

.page-index__article-body p,
.page-index__article-body li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.page-index__article-body li {
  margin-bottom: 0.5rem;
}

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

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__article-figure figcaption {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.75rem;
}

.page-index__article-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 5px solid #2F6BFF; /* Main color */
  background-color: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__article-body a {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
}

.page-index__article-body a:hover {
  text-decoration: underline;
}

/* 按钮样式 */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

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

.page-index__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Main color */
}

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

.page-index__button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 通用图片和容器移动端适配 */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__article-body {
    padding: 32px 15px;
    font-size: 16px;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    margin: 2rem 0 1rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin: 1rem 0 0.5rem;
  }
  .page-index__article-quote {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  .page-index__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding: 0 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 1rem;
  }
  .page-index__section-title-wrap, .page-index__products-section, .page-index__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}