/* General styles for the page-ban-ca scope */
.page-ban-ca {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Main text color for dark backgrounds */
    background-color: #B71C1C; /* Custom background color */
}

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

/* Section specific backgrounds and text colors for contrast */
.page-ban-ca__dark-bg {
    background-color: #B71C1C;
    color: #FFF5E1;
}

.page-ban-ca__light-bg {
    background-color: #f8f8f8; /* A light background for contrast */
    color: #333333;
}

.page-ban-ca__background-pattern {
    background-color: #7A0E0E; /* Deep Red for a section */
    color: #FFF5E1;
}

.page-ban-ca__section-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    color: #FFD86A; /* Gold color for titles on dark backgrounds */
}
.page-ban-ca__light-bg .page-ban-ca__section-title {
    color: #C91F17; /* Main brand color for titles on light backgrounds */
}

.page-ban-ca__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}
.page-ban-ca__light-bg .page-ban-ca__text-block {
    color: #333333;
}
.page-ban-ca__dark-bg .page-ban-ca__text-block,
.page-ban-ca__background-pattern .page-ban-ca__text-block {
    color: #FFF5E1;
}

.page-ban-ca__highlight {
    color: #FFCC66; /* Glow color for highlights */
    font-weight: bold;
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Adjust as needed */
    padding-top: 10px; /* Small top padding, assuming body has header offset */
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-ban-ca__hero-content {
    text-align: center;
    padding: 30px 15px;
    position: relative;
    z-index: 1;
}

.page-ban-ca__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #FFD86A; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1;
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box;
    padding: 0 15px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-ban-ca__btn-primary,
.page-ban-ca__card-button {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red text for gold button */
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-ban-ca__btn-primary:hover,
.page-ban-ca__card-button:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
    background-color: #C91F17; /* Main brand color */
    color: #FFF5E1;
    border: 2px solid #F2B544; /* Gold border */
    box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-ban-ca__btn-secondary:hover {
    background-color: #E53935; /* Accent color on hover */
    box-shadow: 0 6px 20px rgba(201, 31, 23, 0.6);
    transform: translateY(-2px);
}

/* Game Grid 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-color: #D32F2F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid #F2B544; /* Gold border */
    color: #FFF5E1;
}

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

.page-ban-ca__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD86A; /* Gold color */
    padding: 0 15px;
}

.page-ban-ca__card-description {
    font-size: 16px;
    color: #FFF5E1;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* How to Play Section */
.page-ban-ca__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ban-ca__step-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #C91F17; /* Main color accent */
    color: #333333;
}

.page-ban-ca__step-title {
    font-size: 20px;
    font-weight: 600;
    color: #C91F17;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-ban-ca__step-item p {
    font-size: 16px;
    color: #555555;
}
.page-ban-ca__step-item a {
    color: #E53935; /* Accent color for links */
    text-decoration: none;
    font-weight: 600;
}
.page-ban-ca__step-item a:hover {
    text-decoration: underline;
}

/* Tips Section */
.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-ban-ca__tip-item {
    background-color: #D32F2F; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Gold border */
    color: #FFF5E1;
}

.page-ban-ca__tip-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFD86A; /* Gold color */
    margin-top: 0;
    margin-bottom: 10px;
}

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

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

.page-ban-ca__advantage-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-ban-ca__advantage-icon {
    width: 100%;
    max-width: 100px; /* Small icon size, but image is larger for content */
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__advantage-title {
    font-size: 20px;
    font-weight: 700;
    color: #C91F17;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-ban-ca__advantage-item p {
    font-size: 15px;
    color: #555555;
}

/* Promotions Section */
.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-ban-ca__promo-item {
    background-color: #D32F2F; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Gold border */
    color: #FFF5E1;
}

.page-ban-ca__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFD86A; /* Gold color */
    margin-top: 0;
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 30px;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Gold border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1;
}
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: #E53935; /* Accent color on hover */
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold for question text */
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1;
  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: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
}
.page-ban-ca__faq-answer p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-ban-ca__final-cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
    .page-ban-ca__hero-section {
        max-height: none;
    }
    .page-ban-ca__hero-image-wrapper {
        max-height: 400px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-ban-ca__hero-description {
        font-size: clamp(16px, 2.2vw, 20px);
    }
    .page-ban-ca__game-grid,
    .page-ban-ca__tips-list,
    .page-ban-ca__advantage-grid,
    .page-ban-ca__promo-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-ban-ca__section-title {
        font-size: clamp(22px, 3.5vw, 34px);
        padding-top: 30px;
    }
    .page-ban-ca__card-title,
    .page-ban-ca__tip-title,
    .page-ban-ca__advantage-title,
    .page-ban-ca__promo-title {
        font-size: 20px;
    }
    .page-ban-ca__faq-qtext {
        font-size: 17px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* 1. top-text 首块顶距约 10px */
    .page-ban-ca__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    /* 2. 落地页双栏模块 (game-grid, tips-list, advantage-grid, promo-list) 在 768px 下单列堆叠 */
    .page-ban-ca__game-grid,
    .page-ban-ca__tips-list,
    .page-ban-ca__advantage-grid,
    .page-ban-ca__promo-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-ban-ca__hero-image-wrapper {
        max-height: 300px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(26px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-ban-ca__hero-description {
        font-size: clamp(15px, 4vw, 18px);
        margin-bottom: 25px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 20px; /* Add horizontal padding to button container */
    }

    /* 4. 按钮: start-btn, reg-button 在 768px 下 max-width:100%, 可换行 */
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__card-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-ban-ca__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* 3. 通用图片与容器: .page-ban-ca img 及内容区 max-width: 100% */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__container,
    .page-ban-ca__game-card,
    .page-ban-ca__step-item,
    .page-ban-ca__tip-item,
    .page-ban-ca__advantage-item,
    .page-ban-ca__promo-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__game-card,
    .page-ban-ca__tip-item,
    .page-ban-ca__advantage-item,
    .page-ban-ca__promo-item {
        padding: 20px 15px;
    }
    .page-ban-ca__section-title {
        font-size: clamp(20px, 6vw, 28px);
        padding-top: 25px;
        margin-bottom: 20px;
    }
    .page-ban-ca__text-block {
        font-size: 16px;
    }
    .page-ban-ca__card-title,
    .page-ban-ca__step-title,
    .page-ban-ca__tip-title,
    .page-ban-ca__advantage-title,
    .page-ban-ca__promo-title {
        font-size: 18px;
    }
}