/* style/da-ga.css */
.page-da-ga {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

.page-da-ga__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-da-ga__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-da-ga__light-bg {
    background-color: #ffffff; /* Auxiliary color / default light background */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-da-ga__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-da-ga__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
}

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

.page-da-ga__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

.page-da-ga__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439; /* Brand color for H1 on light background */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-da-ga__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
}

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

.page-da-ga__btn-primary,
.page-da-ga__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.page-da-ga__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-da-ga__btn-primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

.page-da-ga__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-da-ga__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-da-ga__introduction-section,
.page-da-ga__features-section,
.page-da-ga__how-to-play-section,
.page-da-ga__promotions-section,
.page-da-ga__faq-section,
.page-da-ga__call-to-action {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-da-ga__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-da-ga__dark-bg .page-da-ga__section-title {
    color: #ffffff;
}

.page-da-ga__light-bg .page-da-ga__section-title {
    color: #017439;
}

.page-da-ga__text-block {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.page-da-ga__features-grid,
.page-da-ga__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-da-ga__feature-card,
.page-da-ga__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-da-ga__feature-card:hover,
.page-da-ga__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-da-ga__feature-image,
.page-da-ga__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-da-ga__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 15px;
}

.page-da-ga__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
    text-align: center;
}

/* How-To-Play Section */
.page-da-ga__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-da-ga__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-da-ga__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #017439;
    background-color: #e6f7ed; /* Lighter shade of brand color */
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid #017439;
}

.page-da-ga__cta-buttons--centered {
    margin-top: 50px;
}

/* FAQ Section */
.page-da-ga__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-da-ga__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-da-ga__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #017439;
    border-bottom: 1px solid #e0e0e0;
}

.page-da-ga__faq-item.active .page-da-ga__faq-question {
    border-bottom: 1px solid transparent;
}

.page-da-ga__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-da-ga__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-da-ga__faq-item.active .page-da-ga__faq-toggle {
    transform: rotate(45deg);
}

.page-da-ga__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 25px;
    color: #555555;
}

.page-da-ga__faq-item.active .page-da-ga__faq-answer {
    max-height: 2000px; /* Large enough to accommodate content */
    padding-bottom: 20px;
}

.page-da-ga__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Call to Action Section */
.page-da-ga__call-to-action {
    text-align: center;
    padding: 80px 0;
}

.page-da-ga__cta-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-da-ga__container {
        padding: 20px 30px;
    }

    .page-da-ga__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }

    .page-da-ga__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-da-ga__hero-description {
        font-size: 1em;
    }

    .page-da-ga__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }

    .page-da-ga__features-grid,
    .page-da-ga__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-da-ga__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }

    .page-da-ga__feature-image,
    .page-da-ga__promo-image {
        height: 180px;
    }

    .page-da-ga__card-title {
        font-size: 1.3em;
    }
}

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
    .page-da-ga {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-da-ga__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* HERO 主图区域 */
    .page-da-ga__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 20px;
    }

    .page-da-ga__hero-image-wrapper {
        max-height: 300px;
    }

    .page-da-ga__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-da-ga__hero-content {
        margin-top: -40px; /* Reduced overlap for mobile */
        padding: 25px 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .page-da-ga__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 font size for mobile */
        margin-bottom: 15px;
    }

    .page-da-ga__hero-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-da-ga__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-da-ga__btn-primary,
    .page-da-ga__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
}