.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
  background-color: #2F6BFF; /* Main color as background */
  color: #ffffff; /* White text for dark background */
}

.page-ban-ca__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain hero image width */
  height: auto;
  display: block;
  margin-bottom: 20px; /* Space between image and text */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1; /* Ensure content is above any background effects */
  max-width: 900px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
}

.page-ban-ca__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

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

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__btn--small {
  padding: 10px 20px;
  font-size: 1rem;
  min-width: auto;
}

.page-ban-ca__btn--large {
  padding: 16px 40px;
  font-size: 1.2rem;
  min-width: 220px;
}

/* General Section Styles */
.page-ban-ca__section {
  padding: 60px 0;
}

.page-ban-ca__section--light {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-ban-ca__section--dark {
  background-color: #2F6BFF; /* Main color */
  color: #ffffff;
}

.page-ban-ca__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D; /* Text Main */
}

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

.page-ban-ca__text-block {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__text-block--white {
  color: #f0f0f0;
}

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

.page-ban-ca__feature-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-ban-ca__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image is block for proper spacing */
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF; /* Main color for titles */
}

.page-ban-ca__feature-description {
  font-size: 1rem;
  color: #1F2D3D;
}

/* How to Play Steps */
.page-ban-ca__how-to-play-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__step-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  color: #1F2D3D;
  position: relative;
}

.page-ban-ca__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #6FA3FF; /* Auxiliary color */
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-ban-ca__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF; /* Main color */
}

.page-ban-ca__step-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-ban-ca__step-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Tips Grid */
.page-ban-ca__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-ban-ca__tip-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #1F2D3D;
}

.page-ban-ca__tip-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF; /* Main color */
}

.page-ban-ca__tip-description {
  font-size: 1rem;
  color: #1F2D3D;
}

.page-ban-ca__strategy-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__game-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
}

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

.page-ban-ca__game-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF; /* Main color */
}

.page-ban-ca__game-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #1F2D3D;
}

/* Promotions Section */
.page-ban-ca__section--promo {
  padding-bottom: 60px;
}

.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: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
}

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

.page-ban-ca__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF; /* Main color */
}

.page-ban-ca__promo-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #1F2D3D;
}

.page-ban-ca__final-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px dashed #D6E2FF; /* Border color */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__article-wrap {
    padding: 30px 15px;
  }

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

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

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

  .page-ban-ca__btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-ban-ca__btn--large {
    padding: 14px 30px;
    font-size: 1.1rem;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__how-to-play-steps,
  .page-ban-ca__tips-grid,
  .page-ban-ca__game-showcase,
  .page-ban-ca__promo-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

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

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

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

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    margin-top: 20px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-ban-ca__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important; /* Adjust padding for full width */
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-ban-ca__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 5px; /* Slight horizontal padding */
  }

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

  .page-ban-ca__hero-image,
  .page-ban-ca__feature-image,
  .page-ban-ca__step-image,
  .page-ban-ca__strategy-image,
  .page-ban-ca__game-image {
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover; /* Ensure images fill space */
  }

  /* 4. 按钮与按钮容器 (already covered in top section, but re-emphasize for general) */
  .page-ban-ca__btn-container,
  .page-ban-ca__button-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Specific card/grid items */
  .page-ban-ca__feature-card,
  .page-ban-ca__step-card,
  .page-ban-ca__tip-item,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card {
    padding: 20px !important;
    margin-bottom: 15px; /* Add some vertical spacing between stacked cards */
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__how-to-play-steps,
  .page-ban-ca__tips-grid,
  .page-ban-ca__game-showcase,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr !important; /* Stack columns on mobile */
    gap: 15px !important;
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__step-title,
  .page-ban-ca__tip-title,
  .page-ban-ca__game-title,
  .page-ban-ca__promo-title {
    font-size: 1.2rem !important;
  }

  .page-ban-ca__feature-description,
  .page-ban-ca__step-description,
  .page-ban-ca__tip-description,
  .page-ban-ca__game-description,
  .page-ban-ca__promo-description {
    font-size: 0.9rem !important;
  }

  .page-ban-ca__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .page-ban-ca__final-cta {
    padding: 30px 15px;
  }
}