/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* #F3F8FF */
  background-color: var(--deep-navy-color); /* #08162B */
}

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

.page-ban-ca__section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__section-title {
  font-size: 2.8em;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary-color); /* #AFC4E8 */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-navy-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed, but maintain aspect ratio */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.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-top: -100px; /* Pull content up over the image slightly */
  background: linear-gradient(180deg, rgba(8, 22, 43, 0) 0%, var(--deep-navy-color) 40%);
  width: 100%;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-ban-ca__intro-text {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: var(--text-main-color); /* #F3F8FF */
  border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.4);
}

.page-ban-ca__btn-secondary {
  background: var(--card-bg-color); /* #10233F */
  color: var(--gold-color); /* #F2C14E */
  border: 2px solid var(--gold-color); /* #F2C14E */
}

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--gold-color);
  color: var(--deep-navy-color); /* #08162B */
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__cta-center {
  margin-top: 40px;
}

.page-ban-ca__games-section,
.page-ban-ca__guide-section,
.page-ban-ca__strategy-section,
.page-ban-ca__promo-section,
.page-ban-ca__security-section,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  background-color: var(--deep-navy-color);
}

.page-ban-ca__game-grid,
.page-ban-ca__steps-grid,
.page-ban-ca__feature-grid,
.page-ban-ca__promo-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__step-card,
.page-ban-ca__feature-card,
.page-ban-ca__promo-card {
  background-color: var(--card-bg-color); /* #10233F */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color); /* #244D84 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-ban-ca__game-card:hover,
.page-ban-ca__feature-card:hover,
.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-ban-ca__game-title,
.page-ban-ca__step-title,
.page-ban-ca__feature-title,
.page-ban-ca__promo-title {
  font-size: 1.6em;
  color: var(--text-main-color); /* #F3F8FF */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__game-description,
.page-ban-ca__step-description,
.page-ban-ca__feature-description,
.page-ban-ca__promo-description {
  font-size: 0.95em;
  color: var(--text-secondary-color); /* #AFC4E8 */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-ban-ca__btn-text {
  color: var(--gold-color); /* #F2C14E */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: 10px;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-text:hover {
  color: var(--glow-color); /* #4FA8FF */
}

.page-ban-ca__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-ban-ca__security-item {
  background-color: var(--card-bg-color); /* #10233F */
  border: 1px solid var(--border-color); /* #244D84 */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--text-secondary-color); /* #AFC4E8 */
  position: relative;
  padding-left: 40px;
}

.page-ban-ca__security-item::before {
  content: '✔';
  color: var(--gold-color); /* #F2C14E */
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

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

.page-ban-ca__faq-item {
  background-color: var(--card-bg-color); /* #10233F */
  border: 1px solid var(--border-color); /* #244D84 */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main-color); /* #F3F8FF */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-ban-ca__faq-question:hover {
  background-color: rgba(29, 95, 209, 0.1);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  background-color: rgba(29, 95, 209, 0.2);
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color); /* #F2C14E */
  margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '−';
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary-color); /* #AFC4E8 */
  line-height: 1.7;
}

/* Details element specific styling */
.page-ban-ca__faq-item summary {
  list-style: none;
}

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

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

  .page-ban-ca__section-title {
    font-size: 2.2em;
  }

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

  .page-ban-ca__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

  .page-ban-ca__section {
    padding: 40px 0;
  }

  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-ban-ca__hero-content {
    margin-top: -50px; /* Adjust for smaller screens */
    padding: 20px 15px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-ban-ca__intro-text {
    font-size: 1.05em;
    margin-bottom: 30px;
  }

  /* 按钮与按钮容器 */
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

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

  .page-ban-ca__cta-center .page-ban-ca__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

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

  .page-ban-ca__hero-image {
    height: auto;
    max-height: 400px; /* Limit hero image height on mobile */
  }

  .page-ban-ca__game-image,
  .page-ban-ca__feature-image,
  .page-ban-ca__promo-image {
    height: 150px; /* Smaller height for card images on mobile */
  }

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

  /* 博客网格 (if any - here used for game/feature/promo grid) */
  .page-ban-ca__game-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__feature-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 15px;
  }

  /* FAQ */
  .page-ban-ca__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
  }

  .page-ban-ca__security-list {
    margin: 20px auto;
    padding: 0 15px;
  }

  .page-ban-ca__security-item {
    padding: 12px 15px 12px 35px;
    font-size: 0.95em;
  }

  .page-ban-ca__security-item::before {
    left: 10px;
    top: 12px;
  }
}

@media (max-width: 549px) {
  .page-ban-ca__game-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__feature-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
  }
}