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

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

.page-ban-ca__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ban-ca__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D;
}

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

.page-ban-ca__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-ban-ca__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

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

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

/* --- Buttons --- */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-ban-ca__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

.page-ban-ca__btn-text {
  background: transparent;
  color: #2F6BFF;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  text-decoration: underline;
}

.page-ban-ca__btn-text:hover {
  color: #4A8BFF;
}

/* --- Hero Section --- */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Rely on body padding-top for header offset */
  padding-bottom: 60px;
  color: #ffffff;
  overflow: hidden;
  background-color: #2F6BFF; /* Fallback for dark-bg */
}

.page-ban-ca__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-ban-ca__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  display: block;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.page-ban-ca__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

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

.page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-ban-ca__card-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #1F2D3D;
}

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

.page-ban-ca__guide-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
  color: #1F2D3D;
}

.page-ban-ca__guide-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-ban-ca__guide-item p {
  font-size: 16px;
  line-height: 1.7;
}

.page-ban-ca__center-button {
  text-align: center;
}

/* --- Strategy Section --- */
.page-ban-ca__dark-section {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-ban-ca__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__strategy-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-ban-ca__strategy-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #A5C4FF; /* Glow */
}

.page-ban-ca__strategy-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* --- Promo Section --- */
.page-ban-ca__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
  color: #2F6BFF;
}

/* --- Technology Section --- */
.page-ban-ca__tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ban-ca__tech-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
  color: #1F2D3D;
}

.page-ban-ca__tech-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  width: 300px; /* Explicit width for content image */
  height: 200px; /* Explicit height for content image */
}

.page-ban-ca__tech-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-ban-ca__tech-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* --- FAQ Section (Details/Summary based) --- */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
  color: #1F2D3D;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 18px;
}
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: #F4F7FB;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2D3D;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
  margin-bottom: 10px;
}

/* --- CTA Bottom Section --- */
.page-ban-ca__section--cta {
  padding: 80px 0;
}

.page-ban-ca__container--flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__cta-text-content {
  flex: 1;
  text-align: left;
}

.page-ban-ca__cta-text-content .page-ban-ca__section-title {
  margin-bottom: 15px;
  text-align: left;
}

.page-ban-ca__cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-ban-ca__cta-buttons-bottom {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

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

/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__hero-content {
    padding: 30px 15px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }
  .page-ban-ca__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100%;
  }
  .page-ban-ca__game-card img,
  .page-ban-ca__tech-item img {
    width: auto;
    max-width: 100%;
    height: auto;
  }
  .page-ban-ca__container--flex {
    flex-direction: column;
    text-align: center;
  }
  .page-ban-ca__cta-text-content {
    text-align: center;
  }
  .page-ban-ca__cta-text-content .page-ban-ca__section-title {
    text-align: center;
  }
  .page-ban-ca__cta-buttons-bottom {
    flex-direction: column;
    width: 100%;
  }
}

/* --- Responsive Styles (max-width: 849px) for Hero Image Contain --- */
@media (max-width: 849px) {
  .page-ban-ca__hero-image img {
    object-fit: contain !important; 
    aspect-ratio: unset !important; 
    height: auto !important;
    position: relative !important; /* Ensure it doesn't stretch */
    filter: brightness(0.8) !important;
  }
  .page-ban-ca__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Ensure 10px top padding for mobile hero */
  }
  .page-ban-ca__hero-image {
    position: relative;
    height: auto;
    width: 100%;
  }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .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;
  }
  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-ban-ca__section-description {
    font-size: 16px;
  }
  
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Fixed 10px top padding */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-image img {
    object-fit: contain !important; 
    aspect-ratio: unset !important; 
    height: auto !important;
    filter: brightness(0.8) !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 15px;
  }
  .page-ban-ca__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 产品展示图区域 */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-ban-ca__game-card {
    padding: 20px;
  }
  .page-ban-ca__game-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__text-block p {
    font-size: 16px;
  }
  .page-ban-ca__guide-steps,
  .page-ban-ca__strategy-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__tech-features {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-ban-ca__guide-item,
  .page-ban-ca__strategy-item,
  .page-ban-ca__promo-card,
  .page-ban-ca__tech-item {
    padding: 20px;
  }
  .page-ban-ca__guide-title,
  .page-ban-ca__strategy-title,
  .page-ban-ca__card-title,
  .page-ban-ca__tech-title {
    font-size: 20px;
  }
  .page-ban-ca__tech-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__cta-buttons,
  .page-ban-ca__game-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__strategy-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__tech-features {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="button"],
  .page-ban-ca a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__cta-buttons-bottom {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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