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

.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Adjust to slightly overlap the image for visual flow */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.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;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

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

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

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-ban-ca__section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

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

.page-ban-ca__introduction p,
.page-ban-ca__guide p,
.page-ban-ca__promotions p,
.page-ban-ca__why-choose p,
.page-ban-ca__conclusion p {
  font-size: 1.05em;
  margin-bottom: 1.2em;
  color: #444444;
}

.page-ban-ca__introduction strong,
.page-ban-ca__guide strong,
.page-ban-ca__promotions strong,
.page-ban-ca__why-choose strong,
.page-ban-ca__conclusion strong {
  color: #017439;
}

.page-ban-ca__figure {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
}

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

.page-ban-ca__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

.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: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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 {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__game-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 25px;
  line-height: 1.5;
}

.page-ban-ca__btn-play {
  display: inline-block;
  background-color: #017439;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-ban-ca__btn-play:hover {
  background-color: #005a2e;
}

.page-ban-ca__more-games {
  text-align: center;
  margin-top: 30px;
  font-size: 1.05em;
}

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

.page-ban-ca__step-item {
  background-color: #f0fdf5;
  border-left: 5px solid #017439;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__step-item p {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
}

.page-ban-ca__guide-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

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

.page-ban-ca__strategy-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

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

.page-ban-ca__strategy-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__strategy-card p {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-ban-ca__strategy-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-ban-ca__promotions {
  background-color: #017439; /* Brand color as background */
  color: #ffffff; /* White text for dark background */
}

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

.page-ban-ca__promotions p {
  color: #f0f0f0;
}

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

.page-ban-ca__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.page-ban-ca__promo-title {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__promo-card p {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 25px;
  line-height: 1.5;
}

.page-ban-ca__btn-view-promo {
  display: inline-block;
  background-color: #FFFF00; /* Custom color for register/login font, used as accent here */
  color: #017439;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-ban-ca__btn-view-promo:hover {
  background-color: #e6e600;
}

.page-ban-ca__promo-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-ban-ca__why-choose .page-ban-ca__reason-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__why-choose .page-ban-ca__reason-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.page-ban-ca__why-choose .page-ban-ca__reason-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-ban-ca__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0fdf5;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For <details> tag */
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <details> tag */
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #017439;
  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: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  background-color: #ffffff;
}

.page-ban-ca__conclusion .page-ban-ca__cta-buttons--bottom {
  margin-top: 40px;
}

/* General link styling */
.page-ban-ca a {
  color: #017439;
  text-decoration: none;
}

.page-ban-ca a:hover {
  text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

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

  .page-ban-ca__description {
    font-size: 1em;
  }

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

  .page-ban-ca__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-ban-ca__game-list,
  .page-ban-ca__steps,
  .page-ban-ca__strategy-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__why-choose .page-ban-ca__reason-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }
  .page-ban-ca__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .page-ban-ca__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-ban-ca__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  /* 2. 单栏长文容器 */
  .page-ban-ca__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-ban-ca__section-title {
    font-size: 1.8em !important;
    margin-bottom: 25px;
  }

  .page-ban-ca__introduction p,
  .page-ban-ca__guide p,
  .page-ban-ca__promotions p,
  .page-ban-ca__why-choose p,
  .page-ban-ca__conclusion p {
    font-size: 0.95em;
  }

  /* 3. 通用图片与 figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__figure {
    margin: 30px auto;
  }

  .page-ban-ca__figcaption {
    font-size: 0.85em;
  }

  .page-ban-ca__game-list,
  .page-ban-ca__steps,
  .page-ban-ca__strategy-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__why-choose .page-ban-ca__reason-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__game-card,
  .page-ban-ca__step-item,
  .page-ban-ca__strategy-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__why-choose .page-ban-ca__reason-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-ban-ca__game-title,
  .page-ban-ca__step-title,
  .page-ban-ca__strategy-title,
  .page-ban-ca__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-ban-ca__game-description,
  .page-ban-ca__promo-card p {
    font-size: 0.9em;
  }

  .page-ban-ca__btn-play,
  .page-ban-ca__btn-view-promo {
    padding: 8px 20px;
    font-size: 0.95em;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-ban-ca__faq-qtext {
    font-size: 1em;
  }

  .page-ban-ca__faq-toggle {
    font-size: 1.2em;
  }

  .page-ban-ca__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
}