.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: #F5F7FA; /* Default background */
}

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

.page-ban-ca__dark-bg {
  background: #E53935;
  color: #ffffff;
}

.page-ban-ca__light-bg {
  background: #F5F7FA;
  color: #333333;
}

/* HERO Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top margin, as body padding-top is handled by shared */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  color: #ffffff;
  max-width: 900px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__lead-text {
  font-size: 1.25rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-ban-ca__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  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: #E53935;
  border: 2px solid #E53935;
}

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

/* General Section Styles */
.page-ban-ca__intro-section,
.page-ban-ca__features-section,
.page-ban-ca__game-types-section,
.page-ban-ca__guide-section,
.page-ban-ca__strategy-section,
.page-ban-ca__promo-section,
.page-ban-ca__why-choose-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-final {
  padding: 60px 0;
}

.page-ban-ca__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

.page-ban-ca__section-title--white {
  color: #ffffff;
}

.page-ban-ca__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-ban-ca__section-description--white {
  color: #f0f0f0;
}

/* Intro Section */
.page-ban-ca__intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__intro-text {
  flex: 1;
}

.page-ban-ca__intro-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-ban-ca__intro-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-ban-ca__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Features Section */
.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-ban-ca__feature-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__feature-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-ban-ca__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-ban-ca__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Game Types Section (Product Grid) */
.page-ban-ca__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ban-ca__product-card {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__product-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__product-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-ban-ca__product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E53935;
  margin: 20px 15px 10px;
}

.page-ban-ca__product-text {
  font-size: 1rem;
  color: #555555;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-ban-ca__btn-play:hover {
  opacity: 0.9;
}

/* Guide Section */
.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__guide-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-ban-ca__guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-ban-ca__guide-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-ban-ca__guide-item a {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-ban-ca__guide-item a:hover {
  color: #ffffff;
}

/* Strategy Section */
.page-ban-ca__strategy-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__strategy-content {
  flex: 1;
}

.page-ban-ca__strategy-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-ban-ca__strategy-content p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-ban-ca__strategy-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-ban-ca__strategy-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Promo Section */
.page-ban-ca__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__promo-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
}

.page-ban-ca__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-ban-ca__promo-text {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-ban-ca__promo-cta {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Section */
.page-ban-ca__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__why-choose-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__why-choose-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-ban-ca__why-choose-item p {
  font-size: 1rem;
  color: #555555;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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: #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;
}

.page-ban-ca__faq-answer p {
  font-size: 1rem;
  color: #555555;
}

/* Final CTA Section */
.page-ban-ca__cta-final {
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__cta-final-content {
  max-width: 800px;
}

/* Universal Image Sizing */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures proper spacing and prevents inline issues */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ban-ca__lead-text {
    font-size: 1.15rem;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-ban-ca__intro-grid,
  .page-ban-ca__strategy-grid {
    flex-direction: column;
  }
  .page-ban-ca__intro-image-wrapper,
  .page-ban-ca__strategy-image-wrapper {
    margin-top: 30px;
  }
  .page-ban-ca__product-card {
    height: auto; /* Allow height to adjust */
  }
  .page-ban-ca__feature-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__why-choose-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top margin */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important; /* 允许图片自适应比例 */
    position: relative;
  }
  .page-ban-ca__hero-image-wrapper {
    position: relative;
    height: auto;
  }
  .page-ban-ca__hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-ban-ca__lead-text {
    font-size: 1rem;
  }
  .page-ban-ca__hero-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    padding: 0 15px; /* Add padding for buttons container */
    box-sizing: border-box;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Styles */
  .page-ban-ca__intro-section,
  .page-ban-ca__features-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final {
    padding: 40px 0;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-ban-ca__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__container,
  .page-ban-ca__intro-grid,
  .page-ban-ca__strategy-grid,
  .page-ban-ca__products-grid,
  .page-ban-ca__features-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__why-choose-grid,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* 防止内容溢出 */
  }
  .page-ban-ca__intro-text,
  .page-ban-ca__intro-image-wrapper,
  .page-ban-ca__strategy-content,
  .page-ban-ca__strategy-image-wrapper {
    flex: none;
    width: 100%;
  }
  .page-ban-ca__intro-image-wrapper,
  .page-ban-ca__strategy-image-wrapper {
    margin-top: 25px;
  }

  /* 产品展示图区域 */
  .page-ban-ca__products-grid {
    grid-template-columns: 1fr; /* Single column for products */
    gap: 20px;
    overflow-x: hidden;
  }
  .page-ban-ca__product-image {
    height: auto;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__intro-text p,
  .page-ban-ca__strategy-content p,
  .page-ban-ca__guide-item p,
  .page-ban-ca__promo-text,
  .page-ban-ca__why-choose-item p,
  .page-ban-ca__faq-answer p {
    font-size: 0.95rem;
  }
  .page-ban-ca__guide-item {
    padding: 20px;
  }
  .page-ban-ca__guide-step-title {
    font-size: 1.2rem;
  }
  .page-ban-ca__strategy-subtitle {
    font-size: 1.2rem;
  }
  .page-ban-ca__feature-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__why-choose-item {
    padding: 20px;
  }
  .page-ban-ca__feature-title,
  .page-ban-ca__promo-title,
  .page-ban-ca__why-choose-title {
    font-size: 1.2rem;
  }

  /* FAQ */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-ban-ca__hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  .page-ban-ca__section-title {
    margin-bottom: 25px;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__why-choose-grid {
    grid-template-columns: 1fr;
  }
  .page-ban-ca__feature-icon {
    width: 100px;
  }
  .page-ban-ca__product-title {
    font-size: 1.3rem;
  }
  .page-ban-ca__btn-play {
    padding: 10px 15px;
  }
  .page-ban-ca__cta-final {
    padding: 60px 0;
  }
}