/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #1F2D3D;
  background: #F4F7FB;
  line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 40px;
  background-color: #F4F7FB;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

.page-ban-ca__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3em);
  color: #000000;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 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;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
}

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

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

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

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-ban-ca__introduction-section {
  background-color: #F4F7FB;
}

.page-ban-ca__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-ban-ca__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__text-block strong {
  color: #2F6BFF;
}

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

.page-ban-ca__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Ensure cards have consistent height */
}

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

.page-ban-ca__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__card-title {
  font-size: 1.4em;
  color: #000000;
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-ban-ca__card-description {
  font-size: 0.95em;
  color: #1F2D3D;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__card-button {
  display: inline-block;
  padding: 10px 25px;
  margin: 0 15px 20px;
  border-radius: 5px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: calc(100% - 30px);
}

.page-ban-ca__card-button:hover {
  opacity: 0.9;
}

/* Guide and Tips Section */
.page-ban-ca__guide-section,
.page-ban-ca__tips-section {
  background-color: #ffffff;
}

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

.page-ban-ca__article-body p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-ban-ca__article-subtitle {
  font-size: 1.6em;
  color: #2F6BFF;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-ban-ca__ordered-list li {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
}

.page-ban-ca__ordered-list li strong {
  color: #000000;
}

.page-ban-ca__image-block {
  margin: 30px 0;
  text-align: center;
}

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

/* Benefits Section */
.page-ban-ca__benefits-section {
  background: #2F6BFF;
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-ban-ca__benefit-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__benefit-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__benefit-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: #F4F7FB;
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
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;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #1F2D3D;
}

.page-ban-ca__faq-answer p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
}

.page-ban-ca__faq-answer a {
  color: #2F6BFF;
  text-decoration: underline;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  background: linear-gradient(135deg, #2F6BFF, #6FA3FF);
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-ban-ca__cta-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page-ban-ca__cta-final-section .page-ban-ca__cta-buttons .page-ban-ca__btn-primary {
  background: #ffffff;
  color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__cta-final-section .page-ban-ca__cta-buttons .page-ban-ca__btn-primary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
}

.page-ban-ca__cta-final-section .page-ban-ca__cta-buttons .page-ban-ca__btn-secondary {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.page-ban-ca__cta-final-section .page-ban-ca__cta-buttons .page-ban-ca__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    padding: 0 15px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__game-card {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  /* General mobile container/section padding */
  .page-ban-ca__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-image-wrapper {
    border-radius: 0;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Allow aspect ratio to adjust */
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 产品展示图区域 */
  .page-ban-ca__game-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 20px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-ban-ca__game-card {
    min-height: 380px; /* Adjust card height for mobile */
  }
  .page-ban-ca__card-image {
    height: 150px !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }
  .page-ban-ca__card-button {
    max-width: calc(100% - 30px) !important;
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }
  .page-ban-ca__text-block,
  .page-ban-ca__article-body p,
  .page-ban-ca__ordered-list li {
    font-size: 0.95em !important;
    line-height: 1.6 !important;
    padding: 0 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__article-subtitle {
    font-size: 1.4em !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-ban-ca__ordered-list {
    margin-left: 20px;
  }
  .page-ban-ca__image-block {
    margin: 20px 0;
  }
  .page-ban-ca__content-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .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,
  .page-ban-ca__text-block,
  .page-ban-ca__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* FAQ specific mobile styles */
  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; }

  /* Benefits Section */
  .page-ban-ca__benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Final CTA */
  .page-ban-ca__cta-text {
    font-size: 1em;
  }
}

/* Ensuring content area images are at least 200px */
.page-ban-ca__content-image, .page-ban-ca__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter for image color changes */
.page-ban-ca img {
  filter: none; /* Ensure no CSS filter is applied */
}

/* Button minimum size on desktop to prevent them from being too small */
.page-ban-ca__btn-primary, .page-ban-ca__btn-secondary, .page-ban-ca__card-button {
  min-width: 150px;
  min-height: 40px;
}