/* 🚨 桌面端HERO主图区域样式（必须严格遵守） */
/* 🚨 留白只做一处：若 shared 已设置 body 的 padding-top: var(--header-offset)，则 hero 禁止再写 padding-top: var(--header-offset)；仅用约 10px 级顶距，避免与 body 双倍留白 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared 已给 body 留白：约 10px 级；若 shared 未给 body 留白则改为 var(--header-offset, 120px) */
  margin-top: 0;
  background: var(--Background, #F4F7FB);
}

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

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

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
/* 桌面横幅可用 cover；移动禁止 cover+固定比例裁切两侧 */
@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-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important;
    margin-top: 0;
  }
}

/* 🚨 产品展示图区域样式（必须严格遵守） */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background: var(--Background, #F4F7FB);
}

.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;
  border: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cells */
}

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

/* 🚨 模块 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: var(--Background, #F4F7FB);
}
.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--Text-Main, #1F2D3D);
  font-weight: 700;
}
.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--Border, #D6E2FF);
  opacity: 0.8;
}
@media (max-width: 768px) {
  .page-index__section-title-line { max-width: 40px; }
  .page-index__section-title-wrap { padding: 20px 12px; }
}

/* 🚨 模块 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: var(--Text-Main, #1F2D3D);
  background: var(--Background, #F4F7FB);
  line-height: 1.7;
}
.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: var(--Custom-Color_1776249996415, #000000);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
}
.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: var(--Text-Main, #1F2D3D);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 600;
}
.page-index__article-body p,
.page-index__article-body ul li {
  color: var(--Text-Main, #1F2D3D);
  margin-bottom: 1em;
}
.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 1em;
}
.page-index__article-body a {
  color: var(--primary, #2F6BFF);
  text-decoration: underline;
}
.page-index__article-body a:hover {
  color: var(--secondary, #6FA3FF);
}
.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;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.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 var(--primary, #2F6BFF);
  background: rgba(47, 107, 255, 0.05);
  color: var(--Text-Main, #1F2D3D);
  font-style: italic;
  border-radius: 4px;
}

/* 移动端长文 SEO 区适配 */
@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 15px 32px;
    font-size: 16px;
    line-height: 1.6;
  }
  .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(1rem, 4vw, 1.3rem);
    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 {
    padding: 0.8rem 1rem;
    margin: 1rem 0;
  }
}

/* 通用图片响应式样式 */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* 禁止使用CSS filter改变图片颜色 */
}

/* 移动端强制适配所有图片 */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-section,
  .page-index__products-section,
  .page-index__section-title-wrap,
  .page-index__article-body,
  .page-index__products-container,
  .page-index__products-grid,
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__products-section,
  .page-index__section-title-wrap,
  .page-index__article-body {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* 按钮样式 */
.page-index a[href*="redirect"],
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index a[href*="redirect"] {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-index a[href*="redirect"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 移动端强制适配所有按钮 */
@media (max-width: 768px) {
  .page-index a[href*="redirect"],
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center;
  }
  
  /* 按钮容器移动端适配 */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* 移动端垂直排列 */
  }
}