/* CSS Reset & Base Styles (from shared.css, not repeated here) */

/* --- Page Index Specific Styles --- */

/* Body background color (from shared.css, page content uses dark text on light background) */
.page-index {
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  font-family: Arial, sans-serif;
}

/* --- HERO Section --- */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css has body padding-top for header offset */
  margin-top: 0;
  background-color: #F4F7FB;
}

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

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

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

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

/* 🚨 移动端主图防裁切（必读）：禁止 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;
  }
}

/* --- Product Showcase Section --- */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #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); /* Desktop: 6 columns */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px;
  border-radius: 0; /* No border-radius */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No box-shadow */
  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); /* Mobile: 2 columns x 3 rows */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%;
  }
}

/* --- Decorative H1 Title Section --- */
.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: #1F2D3D; /* Text Main */
  background-color: #F4F7FB;
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  line-height: 1.35;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
}

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

@media (max-width: 768px) {
  .page-index__section-title-line {
    max-width: 40px;
  }
  .page-index__section-title-wrap {
    padding: 20px 10px;
  }
  .page-index__section-title {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }
}

/* --- Long SEO Article Body Section --- */
.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;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
}

.page-index__article-body p {
  margin-bottom: 1rem;
}

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

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

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

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

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #2F6BFF; /* Primary Color */
  background-color: #ffffff; /* Card BG */
  border-radius: 4px;
  font-style: italic;
  color: #1F2D3D;
}

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

.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: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

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

.page-index__btn-secondary:hover {
  background: #f0f5ff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.1);
}

@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 12px 32px;
    font-size: 16px;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-top: 1.5rem;
  }
  .page-index__article-body h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
  }
  .page-index__article-figure {
    margin: 1rem auto;
  }
  .page-index__article-figure img {
    border-radius: 4px;
  }
  .page-index__article-quote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
  }
  /* Buttons mobile adaptation */
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    margin-top: 20px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    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;
  }
}

/* General image and container responsive styles for mobile */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__products-section,
  .page-index__section-title-wrap,
  .page-index__article-body,
  .page-index__hero-section .page-index__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Override specific padding for hero and products sections if needed */
  .page-index__hero-section,
  .page-index__products-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-index__products-container,
  .page-index__products-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}