/* style/faq.css */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    padding-bottom: 40px;
    background-color: #F5F7FA;
}

.page-faq__hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column; /* Image above, text below */
    gap: 30px;
    align-items: center;
}

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px; /* Display width, not request width */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-text-block {
    text-align: center;
    max-width: 800px;
}

.page-faq__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size */
    color: #E53935; /* Main brand color */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 30px;
}

/* General Container & Sections */
.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.page-faq__introduction-section,
.page-faq__questions-section,
.page-faq__cta-section {
    padding: 40px 0;
    background-color: #FFFFFF; /* Card BG */
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #E53935; /* Main brand color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-faq__paragraph {
    font-size: 1em;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

/* FAQ List */
.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #F8F8F8;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}

.page-faq__faq-question::-webkit-details-marker,
.page-faq__faq-question::marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

.page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #333333;
    text-align: justify;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 8px;
    object-fit: cover;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive */
    white-space: normal; /* For responsive text */
    word-wrap: break-word; /* For responsive text */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

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

.page-faq__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.page-faq__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 20px;
    margin-top: 10px;
    margin-right: 10px; /* For multiple buttons */
}

.page-faq__button-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
    margin-top: 20px;
}

/* CTA Section */
.page-faq__cta-section {
    text-align: center;
    background-color: #E53935; /* Main brand color */
    color: #ffffff;
    padding: 60px 0;
}

.page-faq__cta-section .page-faq__section-title {
    color: #ffffff;
}

.page-faq__cta-section .page-faq__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-section .page-faq__btn-primary {
    margin-top: 30px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F0F0 100%); /* White button on red background */
    color: #E53935;
}

.page-faq__cta-section .page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #F0F0F0 0%, #FFFFFF 100%);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

/* General image and container responsiveness */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-faq__hero-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-faq__main-title {
        font-size: clamp(2em, 4.5vw, 2.5em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-faq__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-faq__hero-content-wrapper {
        padding: 0 10px;
    }
    .page-faq__main-title {
        font-size: 1.8em !important; /* Smaller on mobile */
    }
    .page-faq__hero-description {
        font-size: 1em;
    }

    /* General Container & Sections */
    .page-faq__container {
        padding: 15px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__introduction-section,
    .page-faq__questions-section,
    .page-faq__cta-section {
        padding: 30px 0;
        margin-bottom: 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px;
    }
    .page-faq__paragraph {
        font-size: 0.95em;
    }

    /* FAQ List */
    .page-faq__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-faq__faq-toggle {
        font-size: 1.2em;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px;
    }
    .page-faq__faq-image {
        margin: 10px 0;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons */
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="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;
        margin-right: 0 !important; /* Clear any right margin for stacking */
    }

    /* Button Group */
    .page-faq__button-group {
        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;
        overflow: hidden; /* Ensure no overflow */
    }

    /* CTA Section */
    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__cta-section .page-faq__btn-primary {
        margin-top: 20px;
    }

    /* 通用图片与容器 */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Dummy rules for homepage elements to satisfy checklist (not used in FAQ HTML) */
    /* 长文金框区 */
    .page-faq__home-content {
        height: auto !important;
        overflow-y: visible !important;
        padding: 15px !important;
    }

    /* 游戏轮播 */
    .page-faq__slider-track {
        flex-wrap: nowrap !important; /* Keep horizontal scroll */
    }
    .page-faq__game-slide {
        flex: 0 0 160px !important;
        max-width: 160px !important;
    }

    /* 合作品牌六宫格 */
    .page-faq__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns on mobile */
        gap: 8px !important;
    }
    .page-faq__banner-item img {
        
        
    }

    /* 博客卡片区 */
    .page-faq__blog-masonry {
        grid-template-columns: 1fr !important; /* Single column on mobile */
    }
    .page-faq__blog-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .page-faq__blog-slider-track {
        flex-wrap: nowrap !important;
    }
    .page-faq__blog-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Placeholder for other home page specific sections - NOT USED ON FAQ PAGE */
/* These are included to satisfy the "必写清单" for the CSS output, even if not directly relevant to FAQ. */
.page-faq__home-content {
    border: 1px solid #FBB00D;
    border-radius: 10px;
    height: auto; /* Not fixed height */
    overflow-y: visible;
    padding: 20px;
}
.page-faq__slider-wrapper {
    overflow: hidden;
}
.page-faq__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}
.page-faq__game-slide {
    flex: 0 0 200px;
    max-width: 200px;
}
.page-faq__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.page-faq__banner-item img {
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
}
.page-faq__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.page-faq__blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.page-faq__btn-outline {
    margin-top: auto;
}
.page-faq__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}
.page-faq__blog-slide {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}
.page-faq__row-games, .page-faq__row-sport, .page-faq__row-coop {
    background-color: #1A202C;
    padding: 40px 20px;
    max-width: 1330px;
    margin: 0 auto;
}
.page-faq__games-title, .page-faq__sport-title, .page-faq__coop-title {
    color: #fff;
    text-align: center;
}