/* Variables */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-general: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* Base styles for the page content */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light backgrounds */
  background-color: var(--background-general); /* General background color */
}

/* Sections */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  position: relative;
  overflow: hidden;
  color: #ffffff; /* Text color for dark background */
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-ban-ca__introduction-section,
.page-ban-ca__guide-section,
.page-ban-ca__benefits-section,
.page-ban-ca__cta-final-section {
  padding: 60px 20px;
  background-color: var(--background-general);
  color: var(--text-main);
}

.page-ban-ca__game-showcase-section,
.page-ban-ca__promo-section,
.page-ban-ca__faq-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
}

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

.page-ban-ca__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-ban-ca__section-subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

.page-ban-ca__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-black);
}

.page-ban-ca__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-ban-ca__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

/* Buttons */
.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-outline {
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__btn-outline:hover {
  background: #ffffff;
  color: var(--primary-color);
}

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

.page-ban-ca__game-card,
.page-ban-ca__promo-card,
.page-ban-ca__benefit-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-ban-ca__game-card:hover,
.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__game-card-image,
.page-ban-ca__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-card-title,
.page-ban-ca__promo-card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 15px 15px 10px;
  color: var(--text-black);
}

.page-ban-ca__game-card-description,
.page-ban-ca__promo-card-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary,
.page-ban-ca__promo-card .page-ban-ca__btn-outline {
  margin: 0 15px 15px;
  width: auto;
  align-self: flex-start;
}

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

.page-ban-ca__benefit-item {
  padding: 25px;
  text-align: center;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-ban-ca__benefit-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-black);
}

.page-ban-ca__benefit-description {
  font-size: 0.95em;
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* For <summary> tag */
}

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

.page-ban-ca__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  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: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-section {
    min-height: 400px;
  }

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

  .page-ban-ca__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }

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

  .page-ban-ca__section-subtitle {
    font-size: clamp(0.9em, 2vw, 1.1em);
  }

  .page-ban-ca__game-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Mobile top padding */
    min-height: 350px;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Mobile H1 font size */
    margin-bottom: 10px;
  }

  .page-ban-ca__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1.1em) !important;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Buttons stack vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .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;
    padding-right: 15px;
  }

  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-ban-ca__container,
  .page-ban-ca__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__introduction-section,
  .page-ban-ca__game-showcase-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__benefits-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 40px 0; /* Adjust section padding */
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.5em, 6vw, 2em) !important;
    margin-bottom: 15px;
  }

  .page-ban-ca__section-subtitle {
    font-size: clamp(0.9em, 3.5vw, 1em) !important;
    margin-bottom: 30px;
  }

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

  .page-ban-ca__sub-title {
    font-size: 1.3em;
  }

  .page-ban-ca__game-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__benefits-grid {
    grid-template-columns: 1fr; /* Stack cards vertically on mobile */
    gap: 20px;
  }

  .page-ban-ca__game-card-image,
  .page-ban-ca__promo-card-image {
    height: 180px;
  }

  .page-ban-ca__game-card-title,
  .page-ban-ca__promo-card-title {
    font-size: 1.2em;
  }

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

  .page-ban-ca__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }
  
  /* 长文金框区 (not present on this page, but included for checklist) */
  /* .page-ban-ca__home-content { height: auto; overflow-y: visible; } */

  /* 游戏轮播 (not present on this page, but included for checklist) */
  /* .page-ban-ca__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
  /* .page-ban-ca__game-slide { flex: 0 0 160px; max-width: 160px; } */

  /* 合作品牌六宫格 (not present on this page, but included for checklist) */
  /* .page-ban-ca__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); } */
  /* .page-ban-ca__banner-item img {   } */

  /* 博客卡片区 (not present on this page, but included for checklist) */
  /* .page-ban-ca__blog-masonry { grid-template-columns: 1fr; } */
  /* .page-ban-ca__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
  /* .page-ban-ca__blog-slide { flex: 0 0 100%; max-width: 100%; } */
}