/* style/da-ga.css */

/* Base styles for the page content */
.page-da-ga {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

.page-da-ga__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-da-ga__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    color: #FFFFFF; /* White text for dark background */
    background-color: #017439; /* Brand main color */
}

.page-da-ga__hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-da-ga__main-title {
    font-size: clamp(2em, 4vw, 2.5em); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-da-ga__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-da-ga__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-da-ga__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-da-ga__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-da-ga__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-da-ga__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand main color */
    border: 2px solid #017439;
}

.page-da-ga__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
}

.page-da-ga__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-da-ga__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%; /* Ensure image fits */
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

/* Content Sections */
.page-da-ga__content-section {
    padding: 40px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-da-ga__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-da-ga__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-da-ga__section-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: #017439; /* Brand main color */
}

.page-da-ga__title-white {
    color: #FFFFFF;
}

.page-da-ga__text-white {
    color: #f0f0f0;
}

.page-da-ga__sub-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Brand main color */
}

.page-da-ga p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
}

.page-da-ga__figure {
    margin: 20px 0;
    text-align: center;
}

.page-da-ga__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

.page-da-ga__figcaption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

.page-da-ga__feature-list,
.page-da-ga__step-list,
.page-da-ga__bet-types,
.page-da-ga__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-da-ga__feature-item,
.page-da-ga__step-item,
.page-da-ga__bet-item,
.page-da-ga__tip-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    line-height: 1.5;
}

.page-da-ga__step-item strong,
.page-da-ga__tip-item strong {
    color: #017439;
}

.page-da-ga__inline-link {
    color: #017439;
    text-decoration: underline;
}

.page-da-ga__promo-box {
    background-color: #f0f8f0;
    border: 1px solid #017439;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border-radius: 10px;
}

.page-da-ga__promo-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-da-ga__faq-container {
    margin-top: 30px;
}

.page-da-ga__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.page-da-ga__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand main color */
    color: #FFFFFF;
    list-style: none; /* Hide default marker for summary */
}

.page-da-ga__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-da-ga__faq-qtext {
    flex-grow: 1;
}

.page-da-ga__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-da-ga__faq-item[open] .page-da-ga__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-da-ga__faq-answer {
    padding: 15px 20px;
    background-color: #FFFFFF;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

/* Final CTA Section */
.page-da-ga__final-cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-da-ga__center-text {
    text-align: center;
}

.page-da-ga__btn-large {
    padding: 15px 35px;
    font-size: 1.2em;
}

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

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-da-ga__article-wrap {
        padding: 0 15px;
    }

    .page-da-ga__hero-section {
        padding-bottom: 30px;
    }

    .page-da-ga__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em);
    }

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

    .page-da-ga__btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-da-ga__section-title {
        font-size: 1.8em;
    }

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

    .page-da-ga__promo-box {
        padding: 25px;
    }

    .page-da-ga__promo-title {
        font-size: 1.6em;
    }

    .page-da-ga__faq-question {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .page-da-ga__faq-answer {
        padding: 12px 15px;
    }
}


/* Mobile specific styles */
@media (max-width: 768px) {
    /* 1. Top Section (Hero) - padding/间距/堆叠; 顶距约 10px 级 */
    .page-da-ga__hero-section {
        padding-top: 10px !important; /* Fixed header offset handled by body, so only small top padding here */
        padding-bottom: 20px;
    }

    .page-da-ga__hero-content {
        padding: 15px;
    }

    .page-da-ga__main-title {
        font-size: clamp(1.5em, 6vw, 2em); /* Smaller H1 on mobile */
        margin-bottom: 10px;
    }

    .page-da-ga__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* 2. 单栏长文容器 - 内边距、字号、max-width:100% */
    .page-da-ga__article-wrap {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-da-ga__content-section {
        padding: 30px 0;
    }

    .page-da-ga__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .page-da-ga__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-da-ga p,
    .page-da-ga li {
        font-size: 0.95em;
        line-height: 1.6;
    }

    /* 3. 通用图片与 figure - max-width: 100% */
    .page-da-ga img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Remove min-width for mobile flexibility */
        min-height: unset; /* Remove min-height for mobile flexibility */
    }
    
    .page-da-ga__figure {
        margin: 15px 0;
    }

    /* 4. 按钮与按钮容器 - max-width: 100%、容器宽度、flex 换行 */
    .page-da-ga__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-da-ga__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. 注册教程与 FAQ 区块 - 可读性增强 */
    .page-da-ga__feature-item,
    .page-da-ga__step-item,
    .page-da-ga__bet-item,
    .page-da-ga__tip-item {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .page-da-ga__promo-box {
        padding: 20px;
        margin: 30px 0;
    }

    .page-da-ga__promo-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .page-da-ga__faq-question {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .page-da-ga__faq-toggle {
        font-size: 1.2em;
    }

    .page-da-ga__faq-answer {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .page-da-ga__final-cta-section {
        padding: 40px 0;
    }

    .page-da-ga__btn-large {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .page-da-ga__center-text {
        padding-left: 15px;
        padding-right: 15px;
    }
}