/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is white */
}

.page-ban-ca__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ban-ca__cta-buttons--centered {
  justify-content: center;
}

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

.page-ban-ca__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-ban-ca__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

.page-ban-ca__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b3;
}

.page-ban-ca__btn-play {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  margin-top: 15px;
}

.page-ban-ca__btn-play:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-ban-ca__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  /* Use clamp for responsive font size */
  font-size: clamp(2.2em, 5vw, 3.5em);
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
}

.page-ban-ca__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Game Types Section */
.page-ban-ca__game-types-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-ban-ca__game-types-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__game-types-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

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

.page-ban-ca__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-ban-ca__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-ban-ca__card-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
}

.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__guide-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-ban-ca__guide-list li strong {
  color: #26A9E0;
}

.page-ban-ca__guide-list li::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-ban-ca__tips-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__tips-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__tips-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-ban-ca__tips-list li strong {
  color: #FFFFFF;
}

.page-ban-ca__tips-list li::before {
  content: '★';
  color: #FFFFFF;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
}

.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__promo-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-ban-ca__promo-list li strong {
  color: #EA7C07; /* Login color for emphasis */
}

.page-ban-ca__promo-list li::before {
  content: '🎁';
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For details summary */
  position: relative;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

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

.page-ban-ca__faq-answer p {
  margin: 0;
}

/* Dark/Light Background helpers for contrast */
.page-ban-ca__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}
.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__text-block {
  color: #FFFFFF;
}

.page-ban-ca__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}
.page-ban-ca__light-bg .page-ban-ca__section-title,
.page-ban-ca__light-bg .page-ban-ca__text-block {
  color: #333333;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-ban-ca__hero-content {
    text-align: center;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }

  .page-ban-ca__hero-description {
    font-size: 1.1em;
  }

  .page-ban-ca__hero-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-ban-ca__game-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-ban-ca__section-title {
    font-size: 2em;
  }

  .page-ban-ca__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 双栏 */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px !important;
  }

  .page-ban-ca__hero-container {
    padding: 20px 15px !important;
    gap: 20px !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em) !important;
  }

  .page-ban-ca__hero-description {
    font-size: 1em !important;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* 2. 模块1 三栏正圆图 (boilerplate for general use, even if not used in current HTML) */
  .page-ban-ca__icon-box-media {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 10px !important;
  }
  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 3. 七 Tab 游戏区 (boilerplate for general use, even if not used in current HTML) */
  .page-ban-ca__game-tabs {
    flex-direction: column !important;
  }
  .page-ban-ca__tab-nav {
    flex-direction: column !important;
    width: 100% !important;
  }
  .page-ban-ca__tab-nav button {
    width: 100% !important;
    margin-bottom: 10px !important;
  }
  .page-ban-ca__game-panel {
    padding: 15px !important;
  }

  /* 4. 教程长文 / 促销 / 信任 / FAQ / blog / intro 排版 */
  .page-ban-ca__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }

  .page-ban-ca__text-block,
  .page-ban-ca__guide-list li,
  .page-ban-ca__tips-list li,
  .page-ban-ca__promo-list li,
  .page-ban-ca__faq-question,
  .page-ban-ca__faq-answer {
    font-size: 1em !important;
    line-height: 1.5 !important;
  }

  .page-ban-ca__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__game-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-ban-ca__game-card {
    padding: 20px !important;
  }

  /* 5. 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all content sections and cards adapt */
  .page-ban-ca__intro-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__faq-question {
    padding: 15px 20px !important;
  }

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px !important;
  }
}