/* style/ban-ca.css */

/* Base styles and common elements */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--auxiliary-color, #FFFFFF); /* Ensure consistency with body background */
}

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-ban-ca__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87bb;
  border-color: #1e87bb;
}

.page-ban-ca__btn-inline {
  margin: 10px 5px;
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container responsiveness */
  max-width: 100%; /* Ensure container responsiveness */
  box-sizing: border-box;
  overflow: hidden;
}

.page-ban-ca__button-group {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Images */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  margin-bottom: 50px;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
}

.page-ban-ca__hero-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image img {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio */
  object-fit: cover; /* Cover the area, may crop sides */
  border-radius: 10px;
}

.page-ban-ca__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 4vw, 54px); /* Responsive font size */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Dark Section styling */
.page-ban-ca__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 60px 0;
  margin-bottom: 50px;
}

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

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

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

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

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

.page-ban-ca__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__feature-card .page-ban-ca__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-ban-ca__feature-card p {
  font-size: 16px;
  color: #555555;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

.page-ban-ca__content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-ban-ca__content-area p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-ban-ca__content-area .page-ban-ca__btn-inline {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Games Showcase Section */
.page-ban-ca__games-showcase-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

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

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

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

.page-ban-ca__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 20px;
}

.page-ban-ca__game-card .page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-ban-ca__game-card p {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px;
}

.page-ban-ca__game-card .page-ban-ca__btn-inline {
  margin-bottom: 20px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

.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: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-ban-ca__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 20px;
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-ban-ca__promo-card p {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px;
}

.page-ban-ca__promo-card .page-ban-ca__btn-inline {
  margin-bottom: 20px;
}

/* Download App Section */
.page-ban-ca__download-app-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-ban-ca__download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap; /* Allow content to wrap on smaller screens */
  justify-content: center;
}

.page-ban-ca__app-image {
  flex-shrink: 0;
  width: 400px;
  height: 400px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-ban-ca__download-app-section .page-ban-ca__text-block {
  flex-grow: 1;
  max-width: 600px;
  text-align: left;
}

.page-ban-ca__app-benefits {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  font-size: 17px;
}

.page-ban-ca__app-benefits li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-ban-ca__app-benefits li::before {
  content: '✓';
  color: #FFFFFF; /* Checkmark color for dark section */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-ban-ca__download-app-section .page-ban-ca__cta-buttons {
  justify-content: flex-start;
  margin-left: -5px; /* Adjust for inline button margin */
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Ensure text color for FAQ */
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #26A9E0; /* Question title color */
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: #f5f5f5;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Answer text color */
}

/* Final CTA Section */
.page-ban-ca__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__cta-final .page-ban-ca__description {
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-image img {
    height: 560px; /* Adjust height for larger tablets */
  }
  .page-ban-ca__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-ban-ca__download-app-section .page-ban-ca__text-block {
    max-width: 100%;
    text-align: center;
  }
  .page-ban-ca__download-app-section .page-ban-ca__cta-buttons {
    justify-content: center;
  }
  .page-ban-ca__app-benefits {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
  }
}

@media (max-width: 768px) {
  /* General container and padding */
  .page-ban-ca__container,
  .page-ban-ca__content-area,
  .page-ban-ca__hero-content,
  .page-ban-ca__download-app-section .page-ban-ca__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }
  .page-ban-ca__hero-image img {
    height: auto !important; /* Auto height for mobile */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    object-fit: contain !important; /* Ensure image is fully visible, no cropping */
    border-radius: 5px;
  }
  .page-ban-ca__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-ban-ca__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Buttons and button containers */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .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: 10px 15px; /* Adjust padding for mobile buttons */
    font-size: 16px;
  }
  .page-ban-ca__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__btn-container {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__btn-inline {
    margin: 0; /* Remove inline margins */
  }

  /* Section titles and intros */
  .page-ban-ca__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-ban-ca__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-ban-ca__sub-title {
    font-size: 20px;
  }

  /* 产品展示图区域 & Feature/Promo grids */
  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
    margin-top: 20px;
  }
  .page-ban-ca__games-showcase-section {
    overflow-x: hidden; /* Prevent horizontal scroll for this section */
  }

  /* Card specific adjustments */
  .page-ban-ca__feature-card,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card {
    padding: 15px;
  }
  .page-ban-ca__feature-card img,
  .page-ban-ca__game-card img,
  .page-ban-ca__promo-card img {
     /* Adjust image height for mobile cards */
    margin-bottom: 15px;
  }
  .page-ban-ca__feature-card .page-ban-ca__card-title,
  .page-ban-ca__game-card .page-ban-ca__card-title,
  .page-ban-ca__promo-card .page-ban-ca__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-ban-ca__feature-card p,
  .page-ban-ca__game-card p,
  .page-ban-ca__promo-card p {
    font-size: 15px;
  }

  /* Download App Section */
  .page-ban-ca__download-content {
    gap: 30px;
  }
  .page-ban-ca__app-image {
    width: 250px;
    height: 250px;
    border-radius: 10px;
  }
  .page-ban-ca__app-benefits li {
    font-size: 15px;
  }
  .page-ban-ca__download-app-section .page-ban-ca__cta-buttons {
    margin-left: 0;
  }

  /* FAQ Section */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
  .page-ban-ca__faq-qtext { font-size: 16px; }
  .page-ban-ca__faq-toggle { font-size: 20px; width: 24px; }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }

  /* General content area text */
  .page-ban-ca__content-area p {
    font-size: 16px;
  }

  /* 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__hero-image,
  .page-ban-ca__feature-card,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__download-content,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Ensure no horizontal scroll for these containers */
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__section-title-wrap, /* Placeholder if such a class exists */
  .page-ban-ca__article-body, /* This is .page-ban-ca__content-area .page-ban-ca__text-block in HTML */
  .page-ban-ca__text-block, 
  .page-ban-ca__article-figure { /* Placeholder if such a class exists */
    text-align: center; /* Center align for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent overflow */
  }
  .page-ban-ca__main-title, .page-ban-ca__section-title, .page-ban-ca__sub-title {
    font-size: clamp(24px, 7vw, 32px); /* Use clamp for responsive font sizes */
    line-height: 1.3;
    word-wrap: break-word;
  }
  .page-ban-ca__content-area p {
    font-size: 16px;
    line-height: 1.6;
  }
}