/* style/ban-ca.css */

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

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

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

.page-ban-ca__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

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

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

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-ban-ca__hero-content {
  max-width: 900px;
  padding: 30px 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #017439;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.page-ban-ca__description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

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

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

.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;
  border-color: #005a2e;
}

.page-ban-ca__btn-link {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-ban-ca__btn-link:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-ban-ca__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

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

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

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

.page-ban-ca__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
  text-align: justify;
}

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

.page-ban-ca__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__step-card h3 {
  color: #FFFF00; /* Register/Login font color */
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-ban-ca__step-card p {
  font-size: 1em;
  margin-bottom: 20px;
}

/* Content Image */
.page-ban-ca__content-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Minimum height for content images */
  object-fit: cover;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 800px; /* Example max-width for content images */
}

/* List styles */
.page-ban-ca__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

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

.page-ban-ca__list li {
  margin-bottom: 10px;
}

/* Promo Section */
.page-ban-ca__promo-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-ban-ca__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__promo-card h3 {
  color: #FFFF00; /* Register/Login font color */
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-ban-ca__promo-card p {
  font-size: 1em;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 30px;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 700;
  color: #017439;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  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 20px 15px;
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-ban-ca__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__text-block {
  color: #ffffff;
}

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

/* Global image reset for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__hero-content {
    padding: 20px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-ban-ca__description {
    font-size: 1.1em;
  }
  .page-ban-ca__game-list,
  .page-ban-ca__steps-grid,
  .page-ban-ca__promo-grid {
    gap: 20px;
  }
}

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

  /* 1. 顶区标题 + 双 CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-ban-ca__hero-content {
    padding: 15px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-ban-ca__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  /* 2. 单栏长文容器 */
  .page-ban-ca__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__section {
    padding: 25px 0;
    margin-bottom: 15px;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-ban-ca__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }

  /* 3. 通用图片与 figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-ban-ca__hero-image-wrapper,
  .page-ban-ca__game-image,
  .page-ban-ca__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. 按钮与按钮容器 (already covered in top-cta and general btn styles) */
  .page-ban-ca__btn-link,
  .page-ban-ca__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__cta-buttons,
  .page-ban-ca__game-card .page-ban-ca__btn-link,
  .page-ban-ca__step-card .page-ban-ca__btn-link,
  .page-ban-ca__promo-card .page-ban-ca__btn-link,
  .page-ban-ca__faq-answer .page-ban-ca__btn-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-ban-ca__game-list,
  .page-ban-ca__steps-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__game-card,
  .page-ban-ca__step-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__faq-item {
    padding: 20px 15px;
  }
  .page-ban-ca__game-title,
  .page-ban-ca__step-card h3,
  .page-ban-ca__promo-card h3 {
    font-size: 1.3em;
  }
  .page-ban-ca__list {
    font-size: 1em;
    margin-left: 15px;
  }
  .page-ban-ca__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-ban-ca__faq-answer {
    padding: 0 15px 12px;
    font-size: 0.95em;
  }
}