.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
}

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f9f9f9;
    padding-bottom: 40px;
}

.page-game-bai__hero-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-game-bai__hero-content {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
    padding: 0 20px;
}

.page-game-bai__main-title {
    font-size: 48px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-game-bai__description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-game-bai__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-game-bai__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-game-bai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C30808;
    border-radius: 2px;
}

.page-game-bai__section-title--white {
    color: #FFFFFF;
}
.page-game-bai__section-title--white::after {
    background-color: #FFFF00;
}

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

.page-game-bai__text-block {
    font-size: 17px;
    color: #555555;
    text-align: justify;
    margin-bottom: 20px;
}
.page-game-bai__text-block--white {
    color: #f0f0f0;
}

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Popular Games Section */
.page-game-bai__popular-games-section {
    padding: 60px 0;
    background-color: #017439; /* Main brand color for dark section */
    color: #ffffff;
}

.page-game-bai__games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-game-bai__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-bai__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin: 20px 20px 10px;
    line-height: 1.3;
}
.page-game-bai__card-title a {
    color: inherit;
    text-decoration: none;
}
.page-game-bai__card-title a:hover {
    text-decoration: underline;
}

.page-game-bai__card-description {
    font-size: 15px;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__btn-play {
    background-color: #C30808;
    color: #FFFF00;
    border: none;
    border-radius: 0 0 10px 10px;
    width: 100%;
    padding: 15px 0;
    font-size: 17px;
    text-align: center;
}

.page-game-bai__btn-play:hover {
    background-color: #a30606;
}

/* Advantages Section */
.page-game-bai__advantages-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-game-bai__features-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-bai__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
    transform: translateY(-5px);
}

.page-game-bai__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: inline-block;
    object-fit: contain;
}

.page-game-bai__feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 10px;
}

.page-game-bai__feature-description {
    font-size: 15px;
    color: #666666;
}

/* How to Start Section */
.page-game-bai__how-to-start-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-game-bai__steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-bai__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-game-bai__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #C30808;
    color: #FFFF00;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.page-game-bai__step-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-game-bai__step-description {
    font-size: 15px;
    color: #f0f0f0;
}

.page-game-bai__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-game-bai__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text color for question */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-game-bai__faq-answer p {
    color: #555555;
    font-size: 15px;
}


/* Final CTA Section */
.page-game-bai__cta-final-section {
    padding: 60px 0;
    background-color: #017439;
    text-align: center;
    color: #ffffff;
}
.page-game-bai__cta-final-section .page-game-bai__cta-buttons {
    margin-top: 40px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-content {
        margin-top: 30px;
    }
    .page-game-bai__main-title {
        font-size: 42px;
    }
    .page-game-bai__description {
        font-size: 17px;
    }
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-game-bai__section-title {
        font-size: 32px;
    }
    .page-game-bai__games-grid,
    .page-game-bai__features-list,
    .page-game-bai__steps-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-game-bai__game-card img {
        
    }
    .page-game-bai__card-title {
        font-size: 20px;
    }
    .page-game-bai__feature-title,
    .page-game-bai__step-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-game-bai__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-game-bai__hero-image img {
        object-fit: contain !important; /* 禁止 cover 裁切两侧 */
        aspect-ratio: unset !important; /* 移除固定比例 */
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }
    .page-game-bai__main-title {
        font-size: clamp(30px, 8vw, 40px); /* H1 字号 clamp */
        margin-bottom: 15px;
    }
    .page-game-bai__description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    /* 按钮与按钮容器 */
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai__btn-play {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__section-title {
        font-size: clamp(26px, 7vw, 30px); /* 装饰主标题字号 clamp */
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-game-bai__section-title::after {
        width: 60px;
    }
    .page-game-bai__container {
        padding: 0 15px; /* 通用容器左右内边距 */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Ensure no horizontal scroll */
    }
    .page-game-bai__text-block {
        font-size: 15px;
        text-align: left; /* Align text left on mobile for readability */
    }

    /* 产品展示图区域 */
    .page-game-bai__games-grid {
        grid-template-columns: 1fr; /* Single column for games */
        gap: 20px;
        margin-top: 30px;
        overflow-x: hidden;
    }
    .page-game-bai__game-card img {
        
    }
    .page-game-bai__card-title {
        font-size: 18px;
        margin: 15px 15px 8px;
    }
    .page-game-bai__card-description {
        font-size: 14px;
        padding: 0 15px;
    }
    .page-game-bai__btn-play {
        padding: 12px 0;
        font-size: 15px;
    }

    .page-game-bai__features-list,
    .page-game-bai__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-game-bai__feature-item,
    .page-game-bai__step-item {
        padding: 25px;
    }
    .page-game-bai__feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    .page-game-bai__feature-title,
    .page-game-bai__step-title {
        font-size: 17px;
    }
    .page-game-bai__feature-description,
    .page-game-bai__step-description {
        font-size: 14px;
    }
    .page-game-bai__step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    .page-game-bai__cta-bottom {
        margin-top: 40px;
    }
    .page-game-bai__faq-list {
        margin-top: 30px;
        padding: 0 15px;
    }
    details.page-game-bai__faq-item summary.page-game-bai__faq-question { padding: 15px; }
    .page-game-bai__faq-qtext { font-size: 15px; }
    .page-game-bai__faq-toggle { font-size: 20px; width: 24px; }
    details.page-game-bai__faq-item .page-game-bai__faq-answer {
        padding: 0 15px 15px;
    }

    /* 通用图片与容器 */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai__article-body { /* For potential future long-form content areas */
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
}