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

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

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #C91F17;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E53935;
  border-radius: 2px;
}

.page-ban-ca__section-title--light {
  color: #FFF5E1;
}

.page-ban-ca__dark-section {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-ban-ca__dark-section .page-ban-ca__section-title::after {
  background-color: #F2B544;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding-top: 10px; /* Specific top padding for hero section */
  background-color: #7A0E0E; /* Deep Red background */
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #F4D34D; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 30px;
  opacity: 0.9;
}

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

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold */
  border: 2px solid #F4D34D; /* Gold border */
}

.page-ban-ca__btn-secondary:hover {
  background-color: rgba(244, 211, 77, 0.1);
  transform: translateY(-2px);
}

/* Article Body styles */
.page-ban-ca__article-body {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}

.page-ban-ca__article-body p {
  margin-bottom: 1em;
}

.page-ban-ca__article-body strong {
  color: #C91F17;
}

.page-ban-ca__article-figure {
  margin: 30px auto;
  max-width: 100%;
  text-align: center;
}

.page-ban-ca__figure-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-ban-ca__figure-caption {
  font-style: italic;
  font-size: 15px;
  color: #666;
  margin-top: 10px;
}

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

.page-ban-ca__feature-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #FFF5E1; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__feature-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-ban-ca__feature-description {
  font-size: 16px;
  opacity: 0.9;
}

/* Games Section */
.page-ban-ca__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 20px;
  font-weight: 700;
  color: #C91F17;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

/* Tips Section */
.page-ban-ca__tip-item {
  background-color: #ffffff;
  border-left: 5px solid #E53935;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-ban-ca__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #C91F17;
  margin-bottom: 10px;
}

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

.page-ban-ca__promo-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #FFF5E1; /* Text Main */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
}

.page-ban-ca__promo-description {
  font-size: 16px;
  margin-bottom: 25px;
}

.page-ban-ca__btn-view-promo {
  display: inline-block;
  padding: 10px 20px;
  background-color: #F2B544; /* Border color for button */
  color: #7A0E0E; /* Deep Red */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-view-promo:hover {
  background-color: #FFCC66; /* Glow */
}

.page-ban-ca__full-promo-cta {
  text-align: center;
  margin-top: 50px;
}

/* Guide Section */
.page-ban-ca__guide-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #C91F17;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-ban-ca__guide-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}

/* CTA Section */
.page-ban-ca__cta-section {
  text-align: center;
}

.page-ban-ca__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1;
}

/* General image styling */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__hero-content {
    padding: 15px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-ban-ca__subtitle {
    font-size: clamp(15px, 2.2vw, 18px);
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    min-height: 400px;
    padding-top: 10px; /* 約 10px 頂距 */
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important;
  }
  .page-ban-ca__hero-content {
    padding: 10px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 10px;
  }
  .page-ban-ca__subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  
  /* 按钮与按钮容器 */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play,
  .page-ban-ca__btn-view-promo,
  .page-ban-ca a[class*="button"],
  .page-ban-ca 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-ban-ca__cta-buttons,
  .page-ban-ca__guide-cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__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;
  }
  .page-ban-ca__guide-cta-buttons {
    flex-direction: column;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__section-spacing {
    padding: 40px 0;
  }
  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-ban-ca__article-body {
    font-size: 16px;
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-ban-ca__article-figure {
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-ban-ca__figure-image {
    border-radius: 5px;
  }
  .page-ban-ca__figure-caption {
    font-size: 14px;
  }

  /* 产品展示图区域 (适用于 games-grid/features-grid) */
  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__promotions-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 列 × 3 行 */
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-ban-ca__feature-item,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-ban-ca__feature-title,
  .page-ban-ca__game-title,
  .page-ban-ca__promo-title {
    font-size: 18px;
  }
  .page-ban-ca__feature-image {
    max-width: 150px;
  }
  .page-ban-ca__game-image {
    height: 150px;
  }
  .page-ban-ca__game-description,
  .page-ban-ca__feature-description,
  .page-ban-ca__promo-description {
    font-size: 14px;
  }

  /* 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  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; }

  .page-ban-ca__tip-item {
    padding: 20px;
  }
  .page-ban-ca__tip-title {
    font-size: 20px;
  }
  .page-ban-ca__guide-subtitle {
    font-size: 20px;
  }
  .page-ban-ca__cta-description {
    font-size: 16px;
    padding: 0 15px;
  }
}