:root {
  --page-ban-ca-primary-color: #F2C14E;
  --page-ban-ca-secondary-color: #FFD36B;
  --page-ban-ca-bg-dark: #0A0A0A;
  --page-ban-ca-card-bg: #111111;
  --page-ban-ca-text-main: #FFF6D6;
  --page-ban-ca-border-color: #3A2A12;
  --page-ban-ca-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--page-ban-ca-text-main); /* Default text color for the page */
  background-color: var(--page-ban-ca-bg-dark); /* Assuming body background is dark, sections will use this or card-bg */
  line-height: 1.6;
}

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

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--page-ban-ca-primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-ban-ca__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--page-ban-ca-secondary-color);
  margin-bottom: 20px;
}

.page-ban-ca__dark-section {
  background-color: var(--page-ban-ca-bg-dark);
  color: var(--page-ban-ca-text-main);
  padding: 60px 0;
}

.page-ban-ca__card {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border-color);
  border-radius: 10px;
  padding: 25px;
  color: var(--page-ban-ca-text-main);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--page-ban-ca-secondary-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  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: var(--page-ban-ca-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--page-ban-ca-secondary-color);
  border: 2px solid var(--page-ban-ca-secondary-color);
  box-shadow: none;
}

.page-ban-ca__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 40px;
  background-color: var(--page-ban-ca-bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__hero-image {
  width: 100%;
  max-height: 675px; /* Max height for desktop */
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 30px 15px;
  position: relative; /* Ensure it stays in normal flow below image */
  z-index: 1;
}

.page-ban-ca__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-ban-ca__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--page-ban-ca-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Introduction Section */
.page-ban-ca__introduction-section p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.page-ban-ca__features-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-bg-dark);
}

.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 img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

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

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

.page-ban-ca__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
}

.page-ban-ca__step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-ban-ca__step-item p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-bg-dark);
}

.page-ban-ca__tips-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-ban-ca__tip-image {
  flex: 1;
  min-width: 300px;
}

.page-ban-ca__tip-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  display: block;
}

.page-ban-ca__tip-list {
  flex: 1;
  text-align: left;
}

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

.page-ban-ca__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD36B"><path d="M9 20.42l-6.21-6.21-1.77 1.77L9 24l15-15-1.77-1.77z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__list-highlight {
  color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__btn-read-more {
  margin-top: 20px;
}

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

.page-ban-ca__promotions-section p {
  text-align: center;
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-ban-ca__promo-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-ban-ca__center-button {
  text-align: center;
  margin-top: 20px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-bg-dark);
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-ban-ca-border-color);
  overflow: hidden;
  background: var(--page-ban-ca-card-bg);
}

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: var(--page-ban-ca-text-main);
  font-weight: 600;
}

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: rgba(var(--page-ban-ca-secondary-color), 0.05);
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-ban-ca-secondary-color);
  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: rgba(var(--page-ban-ca-secondary-color), 0.02);
  border-radius: 0 0 5px 5px;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__faq-answer p {
  font-size: 16px;
  text-align: left;
  margin-bottom: 0;
}

/* Contact CTA Section */
.page-ban-ca__contact-cta {
  padding: 60px 0;
}

.page-ban-ca__contact-cta p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Common image styles for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-ban-ca {
    font-size: 15px;
    line-height: 1.5;
  }

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

  .page-ban-ca__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-ban-ca__sub-title {
    font-size: 20px;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-ban-ca__hero-image img {
    object-fit: contain !important; /* Force contain for mobile hero */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(30px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 产品展示图区域 (features, promotions) */
  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__step-item,
  .page-ban-ca__promo-card {
    padding: 20px;
  }

  .page-ban-ca__feature-card img,
  .page-ban-ca__promo-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* 装饰主标题 + 长文 SEO 区 (tips section) */
  .page-ban-ca__tips-content {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-ban-ca__tip-image {
    min-width: unset;
    width: 100%;
  }

  .page-ban-ca__tip-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__tip-list {
    text-align: center;
  }

  .page-ban-ca__list {
    padding-left: 0;
    text-align: left;
  }

  .page-ban-ca__list li {
    font-size: 16px;
    background-size: 18px;
    padding-left: 25px;
  }

  .page-ban-ca__promotions-section p,
  .page-ban-ca__introduction-section p,
  .page-ban-ca__contact-cta p {
    font-size: 16px;
    text-align: center;
    padding: 0 10px;
  }

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

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }
  .page-ban-ca__faq-answer p {
    font-size: 15px;
  }

  .page-ban-ca__center-button {
    padding: 0 15px;
  }
}