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

.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #E53935; /* Primary color as hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

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

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

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-ban-ca__cta-buttons--center {
  margin-top: 30px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.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: #E53935;
  color: #ffffff;
}

.page-ban-ca__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  border: 1px solid #E53935;
  color: #E53935;
  background-color: transparent;
}

.page-ban-ca__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-ban-ca__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__dark-section {
  background-color: #E53935; /* Primary color as background */
  color: #ffffff;
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__section-intro,
.page-ban-ca__dark-section .page-ban-ca__guide-title,
.page-ban-ca__dark-section li,
.page-ban-ca__dark-section p {
  color: #ffffff;
}

.page-ban-ca__dark-section a {
  color: #FFDDC1; /* Lighter shade for links on dark background */
}

.page-ban-ca__dark-section a:hover {
  color: #ffffff;
}

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

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

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

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

.page-ban-ca__dark-section .page-ban-ca__section-intro {
  color: #f0f0f0;
}

.page-ban-ca__features-grid,
.page-ban-ca__tips-grid,
.page-ban-ca__promotions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-ban-ca__card {
  background: #FFFFFF;
  color: #333333;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__dark-section .page-ban-ca__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-ban-ca__feature-title,
.page-ban-ca__tip-title,
.page-ban-ca__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

.page-ban-ca__dark-section .page-ban-ca__feature-title,
.page-ban-ca__dark-section .page-ban-ca__tip-title,
.page-ban-ca__dark-section .page-ban-ca__promo-title {
  color: #FF5A4F;
}

.page-ban-ca__card p {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
}

.page-ban-ca__dark-section .page-ban-ca__card p {
  color: #f0f0f0;
}

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

.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.page-ban-ca__guide-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-ban-ca__guide-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FF5A4F;
}

.page-ban-ca__guide-item ol {
  list-style-type: decimal;
  padding-left: 20px;
}

.page-ban-ca__guide-item li {
  margin-bottom: 10px;
  color: #ffffff;
}

.page-ban-ca__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-ban-ca__sub-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #E53935;
}

.page-ban-ca__dark-section .page-ban-ca__sub-title {
  color: #FF5A4F;
}

.page-ban-ca__text-block ul {
  list-style-type: disc;
  padding-left: 20px;
}

.page-ban-ca__text-block li {
  margin-bottom: 8px;
}

.page-ban-ca__promo-item .page-ban-ca__btn-outline {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-ban-ca__conclusion-section {
  text-align: center;
}

/* Common image and container responsive styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__container,
.page-ban-ca__cta-buttons,
.page-ban-ca__guide-steps,
.page-ban-ca__content-grid,
.page-ban-ca__faq-list {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-ban-ca__hero-image-wrapper {
    max-height: 450px;
  }
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-ban-ca__content-grid {
    grid-template-columns: 1fr;
  }
  .page-ban-ca__hero-content-wrapper {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 15px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-ban-ca__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Section general */
  .page-ban-ca__section {
    padding: 40px 15px;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }
  .page-ban-ca__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Long text gold frame area (no specific gold frame, applying to general card/section) */
  .page-ban-ca__card {
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }

  /* 游戏轮播 (Not applicable for this non-homepage page, but including structure for completeness if it were present) */
  /* If __slider-track was present, it would be: */
  /* .page-ban-ca__slider-track { display: flex !important; flex-wrap: nowrap !important; } */
  /* .page-ban-ca__game-slide { flex: 0 0 160px !important; max-width: 160px !important; } */

  /* 合作品牌六宫格 (Not applicable for this non-homepage page, but including structure for completeness if it were present) */
  /* .page-ban-ca__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; } */
  /* .page-ban-ca__banner-item img {   } */

  /* 博客卡片区 (Not directly present as masonry/slider, but general card layout) */
  .page-ban-ca__features-grid,
  .page-ban-ca__tips-grid,
  .page-ban-ca__promotions-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* 通用图片与容器 */
  .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,
  .page-ban-ca__guide-item,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-ban-ca__image-block {
    order: -1; /* Image above text on mobile */
    margin-bottom: 20px;
  }
  .page-ban-ca__content-grid {
    gap: 20px;
  }

  /* 按钮与按钮容器 */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-outline,
  .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 !important;
    padding-right: 15px !important;
  }
  .page-ban-ca__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 !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  /* FAQ */
  .page-ban-ca__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px 20px;
  }
}