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

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

.page-game-bai__top-section {
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding-top: 10px; /* Adhering to the 10px rule for top section */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-bai__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;
  transition: all 0.3s ease;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-game-bai__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #4A8BFF;
}

.page-game-bai__section {
  padding: 60px 0;
}

.page-game-bai__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 20px;
}

.page-game-bai__section-description {
  font-size: 1.05rem;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-game-bai__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-bai__game-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-game-bai__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__card-title a {
  color: #000000; /* Custom Color_1776249996415 */
  text-decoration: none;
}

.page-game-bai__card-title a:hover {
  color: #2F6BFF;
}

.page-game-bai__card-text {
  font-size: 0.95rem;
  color: #1F2D3D;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-game-bai__card-btn {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.page-game-bai__card-btn:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-game-bai__button-group {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
  flex-wrap: wrap;
}

.page-game-bai__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-game-bai__feature-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-bai__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
}

.page-game-bai__feature-text {
  font-size: 0.95rem;
  color: #1F2D3D;
}

.page-game-bai__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-bai__promo-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-game-bai__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-bai__step-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid #D6E2FF; /* Border */
  position: relative;
  padding-top: 60px;
}

.page-game-bai__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2F6BFF;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 4px solid #F4F7FB;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-game-bai__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
}

.page-game-bai__step-text {
  font-size: 0.95rem;
  color: #1F2D3D;
}

.page-game-bai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-bai__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-game-bai__faq-item[open] {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default marker */
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Make clicking on text also toggle */
}

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2F6BFF;
  transition: transform 0.3s ease;
  pointer-events: none; /* Make clicking on toggle also toggle */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #1F2D3D;
  line-height: 1.7;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General image responsiveness */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
  .page-game-bai__description {
    font-size: 1.1rem;
  }
  .page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  }
  .page-game-bai__game-cards, .page-game-bai__features, .page-game-bai__promo-cards, .page-game-bai__steps {
    gap: 25px;
  }
  .page-game-bai__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-game-bai__top-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-game-bai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }
  .page-game-bai__description {
    font-size: 1rem !important;
    margin-bottom: 30px;
  }
  .page-game-bai__top-cta {
    flex-direction: column !important;
    gap: 10px;
  }
  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  /* 2. 单栏长文容器 */
  .page-game-bai__section {
    padding: 40px 0 !important;
  }
  .page-game-bai__section-title {
    font-size: 2rem !important;
    margin-bottom: 15px;
  }
  .page-game-bai__section-description {
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
  }
  .page-game-bai__game-cards, .page-game-bai__features, .page-game-bai__promo-cards, .page-game-bai__steps {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
  }
  .page-game-bai__game-card, .page-game-bai__feature-item, .page-game-bai__promo-card, .page-game-bai__step-item {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* 3. 通用图片与 figure */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__card-image {
    height: auto !important;
    max-height: 250px;
  }
  .page-game-bai__feature-icon {
    width: 60px !important;
    height: 60px !important;
  }

  /* 4. 按钮与按钮容器 */
  .page-game-bai__button-group {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-game-bai__card-btn {
    width: auto !important; /* Allow card buttons to be smaller than full width */
    max-width: 100% !important;
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }

  /* 5. FAQ 区块 */
  .page-game-bai__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }
  .page-game-bai__faq-answer {
    padding: 0 20px 15px 20px !important;
    font-size: 0.95rem !important;
  }
  .page-game-bai__faq-toggle {
    font-size: 1.3rem !important;
  }

  /* Step items adjustments for mobile */
  .page-game-bai__step-item {
    padding-top: 50px !important;
  }
  .page-game-bai__step-number {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.6rem !important;
    top: -22px !important;
    border-width: 3px !important;
  }
}