.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Default fallback if shared.css doesn't define */
}

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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #B71C1C; /* Deep Red background */
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px 60px;
  color: #FFF5E1; /* Text Main color */
  background: linear-gradient(180deg, rgba(183, 28, 28, 0.8) 0%, rgba(122, 14, 14, 0.9) 100%); /* Deep Red gradient */
  margin-top: -5px; /* Slight overlap with image for smooth transition */
}

.page-ban-ca__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: #FFD86A; /* Gold-like for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF5E1; /* Text Main color */
}

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

.page-ban-ca__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for contrast */
  border: 2px solid #F4D34D;
}

.page-ban-ca__btn--primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__btn--secondary {
  background: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main color */
  border: 2px solid #F2B544; /* Border color */
}

.page-ban-ca__btn--secondary:hover {
  background: #B71C1C; /* Background color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #C91F17; /* Main brand color for titles on light bg */
  line-height: 1.3;
}

.page-ban-ca__text-main {
  color: #FFF5E1; /* Text Main color for dark backgrounds */
}

.page-ban-ca__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-ban-ca__text-block strong {
  color: #C91F17; /* Highlight keywords */
}

.page-ban-ca__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-ban-ca__dark-bg {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
  padding: 60px 0;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
  color: #FFD86A; /* Gold for titles on dark bg */
}

.page-ban-ca__card {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1; /* Text Main color */
  border: 1px solid #F2B544; /* Border color */
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD86A; /* Gold for card titles */
  flex-grow: 1;
}

.page-ban-ca__card-title a {
  color: #FFD86A;
  text-decoration: none;
}

.page-ban-ca__card-title a:hover {
  text-decoration: underline;
}

.page-ban-ca__card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color */
}

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

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

.page-ban-ca__game-card .page-ban-ca__card-image {
  height: 220px;
}

.page-ban-ca__game-trial-frame {
  border: 2px solid #F2B544;
  border-radius: 8px;
  margin-top: 15px;
}

/* Tips Section */
.page-ban-ca__tips-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-ban-ca__tip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__tip-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternating layout for image and text */
}

.page-ban-ca__tip-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold for tip titles */
}

.page-ban-ca__tip-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-ban-ca__faq-item {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #FFF5E1; /* Text Main color */
  text-align: left;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background-color: #C91F17; /* Main color */
  color: #FFF5E1;
  border-bottom: 1px solid #E53935; /* Auxiliary color */
  user-select: none;
  list-style: none; /* Hide default marker for details */
}

.page-ban-ca__faq-question::-webkit-details-marker, /* Hide default marker for details */
.page-ban-ca__faq-question::marker {
  display: none;
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  line-height: 1;
  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: 16px;
  line-height: 1.7;
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1;
}

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

.page-ban-ca__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Register CTA Section */
.page-ban-ca__register-cta {
  text-align: center;
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main color */
}

.page-ban-ca__register-cta .page-ban-ca__section-title {
  color: #FFD86A; /* Gold for titles on dark bg */
}

.page-ban-ca__register-cta .page-ban-ca__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
}

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

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

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

  .page-ban-ca__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }

  .page-ban-ca__section-title {
    font-size: clamp(22px, 4.5vw, 36px);
  }

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

  .page-ban-ca__tip-title {
    font-size: 24px;
  }

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

  .page-ban-ca__faq-answer {
    padding: 12px 20px 15px;
    font-size: 15px;
  }
}

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

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

  /* 顶区标题 + 双 CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(22px, 7vw, 36px);
    margin-bottom: 10px;
  }

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

  .page-ban-ca__hero-cta {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-ban-ca__section-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 20px;
  }

  .page-ban-ca__text-block {
    font-size: 15px;
    margin-bottom: 15px;
  }

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

  .page-ban-ca__card-image {
    height: auto;
  }

  .page-ban-ca__tip-image {
    margin: 15px 0;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__game-card {
    padding: 20px;
  }

  .page-ban-ca__tip-item {
    text-align: left;
    align-items: flex-start;
  }

  .page-ban-ca__tip-item:nth-child(even) {
    flex-direction: column; /* Reset to default column for mobile */
  }

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

  /* FAQ 区块 */
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__faq-answer {
    font-size: 14px;
    padding: 10px 20px 15px;
  }

  .page-ban-ca__register-cta {
    padding: 50px 0;
  }
}