/* Base styles for the page */
.page-da-ga {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main */
    background: #0D0E12; /* Background */
    line-height: 1.6;
}

/* Ensure images are responsive by default */
.page-da-ga img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* General section styling */
.page-da-ga__section {
    padding: 60px 0;
}

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

.page-da-ga__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FF8C1A; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-da-ga__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    text-align: justify;
}

.page-da-ga__article-body p {
    margin-bottom: 15px;
}

.page-da-ga__article-body h3 {
    color: #FFA53A; /* Secondary color for sub-titles */
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

.page-da-ga__article-figure {
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 0 20px rgba(255, 176, 77, 0.2); /* Glow */
}

/* Buttons */
.page-da-ga__btn-primary,
.page-da-ga__btn-secondary,
.page-da-ga__card-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons are responsive */
}

.page-da-ga__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-da-ga__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

.page-da-ga__btn-secondary {
    background: #17191F; /* Card BG */
    color: #FF8C1A; /* Primary color */
    border: 2px solid #FF8C1A;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.2);
}

.page-da-ga__btn-secondary:hover {
    background: #FF8C1A;
    color: #FFF3E6;
    border-color: #FFA53A;
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.4);
}

.page-da-ga__btn-center {
    display: block;
    margin: 40px auto 0;
    max-width: 280px;
}

/* Hero Section */
.page-da-ga__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    background: #0D0E12; /* Background */
    color: #FFF3E6;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-da-ga__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-da-ga__hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Hero image usually full width, no rounded corners */
}

.page-da-ga__hero-content {
    max-width: 900px;
    padding: 0 20px 60px;
    z-index: 1;
}

.page-da-ga__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
    color: #FF8C1A;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-da-ga__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-da-ga__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Why Choose Section */
.page-da-ga__section--why-choose .page-da-ga__article-body {
    text-align: center;
}

.page-da-ga__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-da-ga__feature-item {
    background: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-da-ga__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-da-ga__feature-title {
    color: #FFA53A; /* Secondary color */
    font-size: 20px;
    margin-bottom: 15px;
}

/* Game Types / Card Section */
.page-da-ga__game-cards,
.page-da-ga__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-da-ga__card {
    background: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-da-ga__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-da-ga__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 0; /* Cards have rounded corners on the container, not image */
    margin-bottom: 15px;
}

.page-da-ga__card-title {
    color: #FFA53A; /* Secondary color */
    font-size: 22px;
    padding: 0 20px;
    margin-bottom: 10px;
    text-align: center;
}

.page-da-ga__card-text {
    font-size: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text take available space */
    text-align: justify;
}

.page-da-ga__card-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    text-align: center;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-da-ga__card-btn:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

/* Guide Section */
.page-da-ga__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-da-ga__guide-item {
    background: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: justify;
}

.page-da-ga__guide-title {
    color: #FF8C1A; /* Primary color */
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

/* Tips Section */
.page-da-ga__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-da-ga__tips-item {
    background: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: justify;
}

.page-da-ga__tips-title {
    color: #FFA53A; /* Secondary color */
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

/* Promotions Section */
.page-da-ga__promo-note {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
}

.page-da-ga__promo-note a {
    color: #FF8C1A;
    text-decoration: none;
    font-weight: 600;
}

.page-da-ga__promo-note a:hover {
    text-decoration: underline;
}

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

details.page-da-ga__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border */
    overflow: hidden;
    background: #17191F; /* Card BG */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

details.page-da-ga__faq-item summary.page-da-ga__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFF3E6;
}

details.page-da-ga__faq-item summary.page-da-ga__faq-question::-webkit-details-marker {
    display: none;
}

details.page-da-ga__faq-item summary.page-da-ga__faq-question:hover {
    background: #252831; /* Slightly lighter Card BG on hover */
}

.page-da-ga__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFA53A; /* Secondary color */
}

.page-da-ga__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FF8C1A; /* Primary color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-da-ga__faq-item .page-da-ga__faq-answer {
    padding: 0 25px 25px;
    background: #0D0E12; /* Background */
    border-top: 1px solid #A84F0C;
    border-radius: 0 0 12px 12px;
    color: #FFF3E6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-da-ga__section {
        padding: 40px 0;
    }

    .page-da-ga__container {
        padding: 0 15px;
    }

    .page-da-ga__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-da-ga__article-body {
        font-size: 16px;
        padding: 0 10px; /* Adjust padding for text content */
    }

    .page-da-ga__article-body h3 {
        font-size: 20px;
    }

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

    .page-da-ga__hero-image {
        max-height: 300px;
        margin-bottom: 15px;
    }
    .page-da-ga__hero-image img {
        object-fit: contain !important; /* Prevent cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        height: auto !important; /* Ensure height adjusts */
    }

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

    .page-da-ga__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }

    .page-da-ga__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-da-ga__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100%;
        padding: 0 15px; /* Add padding to button container */
        box-sizing: border-box;
    }

    .page-da-ga__btn-primary,
    .page-da-ga__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .page-da-ga__btn-center {
        max-width: 100%;
        padding: 0 15px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 通用图片与容器 */
    .page-da-ga img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-da-ga__section,
    .page-da-ga__card,
    .page-da-ga__container,
    .page-da-ga__article-body,
    .page-da-ga__feature-list,
    .page-da-ga__game-cards,
    .page-da-ga__promo-cards,
    .page-da-ga__guide-list,
    .page-da-ga__tips-list,
    .page-da-ga__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Card Section */
    .page-da-ga__game-cards,
    .page-da-ga__promo-cards {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-da-ga__card {
        padding: 0;
    }

    .page-da-ga__card img {
         /* Slightly smaller fixed height for mobile cards */
    }

    .page-da-ga__card-title {
        font-size: 20px;
        padding: 0 15px;
    }

    .page-da-ga__card-text {
        font-size: 14px;
        padding: 0 15px;
    }

    .page-da-ga__card-btn {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 10px;
        font-size: 14px;
    }

    /* Feature List / Guide List / Tips List */
    .page-da-ga__feature-list,
    .page-da-ga__guide-list,
    .page-da-ga__tips-list {
        gap: 20px;
    }

    .page-da-ga__feature-item,
    .page-da-ga__guide-item,
    .page-da-ga__tips-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-da-ga__feature-title,
    .page-da-ga__guide-title,
    .page-da-ga__tips-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* FAQ Section */
    details.page-da-ga__faq-item summary.page-da-ga__faq-question {
        padding: 15px 20px;
    }

    .page-da-ga__faq-qtext {
        font-size: 16px;
    }

    .page-da-ga__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }

    details.page-da-ga__faq-item .page-da-ga__faq-answer {
        padding: 0 20px 20px;
    }
}