/* Base styles for the page-ban-ca scope */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #333333);
  background-color: var(--background-color, #F5F7FA);
  line-height: 1.6;
}

.page-ban-ca__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-ban-ca__section {
  padding: 60px 0;
}

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #333333);
}

.page-ban-ca__subsection-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color, #E53935);
}

.page-ban-ca__content-area p {
  margin-bottom: 15px;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Adjusted padding-top as per rule */
  overflow: hidden;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand colors for dark bg */
  color: #ffffff;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default to cover for desktop */
  display: block;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-ban-ca__lead-text {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
  margin-left: 15px;
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Features Grid */
.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__feature-card {
  background: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #E0E0E0);
  color: var(--text-main, #333333);
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__feature-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-ban-ca__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color, #E53935);
}

/* Dark background sections */
.page-ban-ca__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__subsection-title {
  color: #ffffff;
}

.page-ban-ca__text-contrast-fix p {
  color: #f0f0f0;
}

/* Light background sections */
.page-ban-ca__light-bg {
  background-color: var(--background-color, #F5F7FA);
  color: var(--text-main, #333333);
}

/* Promo List */
.page-ban-ca__promo-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-ban-ca__promo-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: var(--card-bg, #fff);
  color: var(--text-main, #333333);
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: #f5f5f5;
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333);
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Conclusion Section */
.page-ban-ca__conclusion .page-ban-ca__btn-primary {
  margin-top: 30px;
}

/* Global image responsiveness */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Media Queries */
/* HERO 主图区域: 移动 object-fit:contain !important；aspect-ratio:unset；禁止 cover 裁切两侧；顶距约 10px，禁止 var(--header-offset) */
@media (max-width: 849px) {
  .page-ban-ca__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px; /* Prevent excessively tall images on smaller screens */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding: 10px 0 40px 0; /* Adjusted top padding for mobile */
  }

  .page-ban-ca__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-ban-ca__lead-text {
    font-size: clamp(16px, 4vw, 18px);
  }

  /* 其他通用设置 */
  .page-ban-ca__container {
    padding: 15px;
  }

  .page-ban-ca__section {
    padding: 40px 0;
  }

  .page-ban-ca__section-title {
    font-size: clamp(24px, 6vw, 28px);
    margin-bottom: 30px;
  }

  .page-ban-ca__subsection-title {
    font-size: clamp(20px, 5vw, 22px);
  }

  /* 按钮与按钮容器 */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-ban-ca__btn-secondary {
    margin-left: 0;
    margin-top: 15px; /* Stack buttons vertically */
  }

  .page-ban-ca__button-group {
    flex-direction: column !important; /* Force vertical stacking */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset; /* Allow smaller display if needed */
    min-height: unset;
  }
  
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* 产品展示图区域: __products-grid 桌面 6 列一行、768px 2 列×3 行（禁止后 2 张独占一行）；overflow-x:hidden */
  .page-ban-ca__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 2 columns */
    gap: 20px;
    overflow-x: hidden;
  }

  .page-ban-ca__feature-card {
    padding: 20px;
  }

  .page-ban-ca__feature-card img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* 装饰主标题 + 长文 SEO 区: __section-title-wrap、__article-body、__article-figure 在 768px 下居中换行、max-width:100%、字号 clamp、防溢出 */
  /* This page doesn't have explicit __section-title-wrap, __article-body, __article-figure, but applying general rules to relevant elements */
  .page-ban-ca__section-title {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-ban-ca__content-area {
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* FAQ */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }
}