/* Base styles for the Đá Gà page */
.page-da-ga {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* General Background */
}

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

.page-da-ga__section {
    padding: 40px 0;
}

.page-da-ga__dark-section {
    background-color: #E53935; /* Main color */
    color: #ffffff;
}

.page-da-ga__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: inherit; /* Inherit from parent, e.g., white in dark sections */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-da-ga__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-da-ga__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    background-color: #E53935; /* Fallback background */
    overflow: hidden;
}

.page-da-ga__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden;
}

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

.page-da-ga__hero-content-wrapper {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    max-width: 900px;
    margin: -150px auto 0 auto; /* Overlay slightly on the image, but not covering text */
    position: relative;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3); /* Slight overlay for readability */
    border-radius: 10px;
}

.page-da-ga__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

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

.page-da-ga__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%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Buttons */
.page-da-ga__btn-primary,
.page-da-ga__btn-secondary,
.page-da-ga__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%;
    box-sizing: border-box;
}

.page-da-ga__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-da-ga__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

.page-da-ga__btn-inline {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    font-size: 0.95em;
    margin-top: 10px;
}

.page-da-ga__btn-inline:hover {
    opacity: 0.9;
}

/* Feature Cards Grid */
.page-da-ga__features-grid,
.page-da-ga__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-da-ga__feature-card,
.page-da-ga__type-card {
    background: #ffffff; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333333; /* Ensure text is dark on light card background */
}

.page-da-ga__feature-image,
.page-da-ga__type-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-da-ga__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 15px 15px 10px 15px;
    color: #E53935; /* Brand color for title */
}

.page-da-ga__card-description {
    font-size: 1em;
    padding: 0 15px;
    text-align: justify;
    flex-grow: 1; /* Allow description to take available space */
}

/* Numbered and Bullet Lists */
.page-da-ga__numbered-list,
.page-da-ga__bullet-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-da-ga__list-item {
    background: #ffffff; /* Card BG */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-da-ga__list-item:last-child {
    margin-bottom: 0;
}

.page-da-ga__list-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #E53935;
    margin-bottom: 10px;
}

.page-da-ga__promo-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
    color: #ffffff; /* Text color for dark section */
}

.page-da-ga__promo-list .page-da-ga__list-item {
    background: none;
    box-shadow: none;
    padding: 5px 0;
    color: inherit;
    margin-bottom: 5px;
}

/* Download App Section */
.page-da-ga__download-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-da-ga__download-content {
    flex: 1;
    min-width: 300px;
}

.page-da-ga__download-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-da-ga__download-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-da-ga__faq-item {
    background: #ffffff; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-da-ga__faq-item[open] {
    background: #fff; /* Keep white background when open */
}

.page-da-ga__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #E53935;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

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

.page-da-ga__faq-item[open] .page-da-ga__faq-toggle {
    transform: rotate(45deg); /* Change + to X */
}

.page-da-ga__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #333333;
    line-height: 1.6;
}

/* Conclusion Section */
.page-da-ga__conclusion-section .page-da-ga__cta-buttons {
    margin-top: 30px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-da-ga {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

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

    .page-da-ga__hero-image-wrapper {
        height: 250px; /* Adjust height for mobile */
    }

    .page-da-ga__hero-content-wrapper {
        padding: 20px 15px;
        margin-top: -80px; /* Adjust overlay for mobile */
    }

    .page-da-ga__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

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

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

    .page-da-ga__btn-primary,
    .page-da-ga__btn-secondary,
    .page-da-ga__btn-inline {
        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;
    }

    /* 通用图片与容器 */
    .page-da-ga img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-da-ga__feature-image,
    .page-da-ga__type-image {
        height: 200px; /* Adjust image height for mobile cards */
    }

    /* 卡片布局图片要求 */
    .page-da-ga__feature-card,
    .page-da-ga__type-card {
        padding-bottom: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 长文金框区 (Not applicable to this page, but general text blocks are handled) */
    .page-da-ga__text-block {
        padding: 0 5px; /* Slight padding for text blocks on mobile */
    }

    /* 游戏轮播 (Not applicable to this page) */
    /* 合作品牌六宫格 (Not applicable to this page) */
    /* 博客卡片区 (Not applicable to this page) */

    /* Feature Cards Grid */
    .page-da-ga__features-grid,
    .page-da-ga__types-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    /* Numbered and Bullet Lists */
    .page-da-ga__numbered-list,
    .page-da-ga__bullet-list {
        padding: 0;
    }

    .page-da-ga__list-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .page-da-ga__list-title {
        font-size: 1.2em;
    }

    /* Download App Section */
    .page-da-ga__download-flex {
        flex-direction: column; /* Stack download content and image */
        gap: 20px;
    }

    .page-da-ga__download-content,
    .page-da-ga__download-image-wrapper {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
    }

    /* FAQ Section */
    .page-da-ga__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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