/* CSS Reset & Base Styles (from shared.css) are omitted here */

/* --- PAGE INDEX SPECIFIC STYLES --- */

/* Body background color is handled by shared.css var(--site-bg) */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main for dark backgrounds */
  background-color: var(--site-bg); /* Inherit from shared */
}

/* --- 1. HERO主图区域 --- */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared has body padding-top */
  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;
  min-width: 200px;
  min-height: 200px;
}

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

/* 🚨 移动端主图防裁切 */
@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; /* Ensure 10px top padding on mobile */
    margin-top: 0;
  }
}

/* --- 2. 产品展示图区域 --- */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #B71C1C; /* 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 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;
  border-radius: 0; /* Ensure no border-radius */
  min-width: 200px;
  min-height: 200px;
}

@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: 48px 12px;
  box-sizing: border-box;
  text-align: center;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

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

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

@media (max-width: 768px) {
  .page-index__section-title-wrap {
    padding: 32px 12px;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem); /* Adjust clamp for mobile */
  }
  .page-index__section-title-line {
    max-width: 40px;
  }
}

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

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  font-size: 2.2em;
  font-weight: 700;
  color: #F4D34D; /* Gold */
  line-height: 1.2;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.5em;
  font-weight: 600;
  color: #FFCC66; /* Glow */
  line-height: 1.3;
}

.page-index__article-body p,
.page-index__article-body li {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 1em;
  color: #FFF5E1; /* Text Main */
}

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

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

.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 images in article */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Min size for all images */
  min-height: 200px;
}

.page-index__article-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9em;
  color: #FFF5E1;
  opacity: 0.8;
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #F4D34D; /* Gold border */
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  font-style: italic;
  border-radius: 4px;
}

.page-index__btn-text-link {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index__btn-text-link:hover {
  color: #E6B800; /* Darker yellow from button gradient */
}

.page-index__btn-inline {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text for bright button */
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
  margin: 0 5px;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #FFE680 0%, #F4D34D 100%); /* Slightly lighter hover */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

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

.page-index__btn-secondary:hover {
  background: #FFCC66;
  color: #333333; /* Dark text on hover */
  box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4);
}

/* 🚨 移动端响应式 */
@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 15px 32px;
    font-size: 16px;
  }
  .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: 1.2em;
    margin: 1rem 0 0.6rem;
  }
  .page-index__article-body p,
  .page-index__article-body li {
    font-size: 1em;
    line-height: 1.6;
  }
  .page-index__article-quote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
  }
  .page-index__article-figure {
    margin: 1rem auto;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .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;
    padding-right: 15px;
  }
  .page-index__cta-buttons--bottom {
    margin-top: 20px;
  }
}

/* 🚨 通用图片与容器移动端适配 */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__products-section,
  .page-index__products-container,
  .page-index__products-grid,
  .page-index__article-body,
  .page-index__section-title-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

/* No CSS filter allowed for images */
.page-index img {
  filter: none; /* Ensure no filter is applied */
}