/* Base Styles for page-game-bai */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

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

.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 36px);
  color: #F4D34D; /* Gold */
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-bai__content-area p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}

.page-game-bai__content-area p strong {
  color: #FFD86A;
}

.page-game-bai__content-area a {
  color: #FFD86A;
  text-decoration: underline;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-game-bai__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.page-game-bai__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-game-bai__tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-action {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-game-bai__btn-secondary {
  background: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #FFD86A; /* Gold */
  box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-game-bai__btn-secondary:hover {
  transform: translateY(-3px);
  background: #E53935; /* Accent Color */
  box-shadow: 0 6px 20px rgba(201, 31, 23, 0.6);
}

/* About Section */
.page-game-bai__about-section {
  background-color: #B71C1C; /* Background */
}

.page-game-bai__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Games List Section */
.page-game-bai__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__game-card {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-bai__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-game-bai__game-title {
  font-size: 22px;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-bai__game-title a {
  color: #FFD86A;
  text-decoration: none;
}

.page-game-bai__game-title a:hover {
  text-decoration: underline;
}

.page-game-bai__game-description {
  font-size: 15px;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  align-self: flex-start;
}

.page-game-bai__btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.6);
}

/* Benefits Section */
.page-game-bai__benefits-section {
  background: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
}

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

.page-game-bai__benefit-item {
  background: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-game-bai__benefit-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__benefit-title {
  font-size: 24px;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__benefit-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* Guide Section */
.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-item {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
  padding-top: 80px;
}

.page-game-bai__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-game-bai__step-title {
  font-size: 22px;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__step-item p {
  font-size: 16px;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-game-bai__btn-action {
  background: #E53935; /* Accent Color */
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border */
  padding: 10px 20px;
  font-size: 16px;
}

.page-game-bai__btn-action:hover {
  background: #C91F17; /* Main Color */
  transform: translateY(-2px);
}

/* Strategy Section */
.page-game-bai__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__strategy-item {
  background: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-game-bai__strategy-title {
  font-size: 20px;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-bai__strategy-item p {
  font-size: 16px;
  color: #FFF5E1;
}

.page-game-bai__cta-bottom {
  margin-top: 60px;
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
}
details.page-game-bai__faq-item summary.page-game-bai__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-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #E53935; /* Accent Color */
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 5px 5px;
  text-align: left;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer p {
  color: #FFF5E1;
  font-size: 16px;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  background-color: #B71C1C; /* Background */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 0 15px;
  }
  .page-game-bai__section {
    padding: 40px 0;
  }
  .page-game-bai__main-title {
    font-size: clamp(28px, 4.5vw, 40px);
  }
  .page-game-bai__tagline {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-game-bai__games-grid,
  .page-game-bai__benefits-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-game-bai__hero-image img {
    object-fit: cover; /* Still cover on tablets */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    min-height: unset;
  }
  .page-game-bai__hero-image img {
    object-fit: contain !important; /* Contain for mobile */
    aspect-ratio: unset !important;
    height: auto !important;
    max-height: 300px; /* Limit height for mobile */
  }
  .page-game-bai__hero-content {
    padding: 20px 15px;
    margin-top: 20px; /* Space between image and text */
  }
  .page-game-bai__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-game-bai__tagline {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-play,
  .page-game-bai__btn-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  /* 产品展示图区域 */
  .page-game-bai__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
  }
  .page-game-bai__products-section {
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  /* 装饰主标题 + 长文 SEO 区 */
  .page-game-bai__section-title {
    font-size: clamp(24px, 6vw, 30px);
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-game-bai__content-area {
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-game-bai__content-area p {
    font-size: 15px;
    text-align: left;
  }
  .page-game-bai__image-content {
    margin: 20px auto;
  }
  /* 通用图片与容器 */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__section,
  .page-game-bai__container,
  .page-game-bai__game-card,
  .page-game-bai__benefit-item,
  .page-game-bai__step-item,
  .page-game-bai__strategy-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* FAQ */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px;
  }
  .page-game-bai__faq-qtext {
    font-size: 16px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
  }
  .page-game-bai__faq-answer p {
    font-size: 15px;
  }
  .page-game-bai__step-item {
    padding-top: 60px;
  }
  .page-game-bai__step-number {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 15px;
    left: 15px;
  }
  .page-game-bai__step-title {
    font-size: 20px;
  }
}