:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --gradient-button: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color); /* Assuming body background is light */
    line-height: 1.6;
}

.page-faq__hero-section {
    padding-bottom: 50px; /* Padding for the whole section */
    background-color: var(--primary-color); /* Solid background for the section */
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center;
    text-align: center;
}

.page-faq__hero-section--top-padding {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Max height for the image */
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the wrapper */
    display: block;
    filter: brightness(0.7); /* Slightly darken image for overall visual balance */
}

.page-faq__hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-faq__hero-text-block {
    padding: 40px 0 0; /* Padding above the text block, not on image */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__intro-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    min-width: 180px;
}

.page-faq__btn-primary {
    background: var(--gradient-button);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-faq__btn-link {
    background: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 15px;
    max-width: 250px;
}
.page-faq__btn-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-faq__section {
    padding: 60px 0;
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-faq__container--centered {
    text-align: center;
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-faq__faq-list {
    margin-top: 30px;
}

/* FAQ Details/Summary styles */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
details.page-faq__faq-item summary.page-faq__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;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main-color);
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: #f5f5f5;
}
.page-faq__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}
details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: #555555;
    font-size: 16px;
}
details.page-faq__faq-item .page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.page-faq__game-link {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    color: var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__game-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-faq__article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

.page-faq__article-body p {
    margin-bottom: 1.5em;
}

.page-faq__article-figure {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    object-fit: cover;
}

.page-faq__description {
    font-size: 17px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-faq__hero-text-block {
        padding: 60px 0;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-faq__intro-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    .page-faq__section {
        padding: 50px 0;
    }
    .page-faq__faq-item summary.page-faq__faq-question {
        font-size: 17px;
        padding: 16px 20px;
    }
    .page-faq__faq-toggle {
        font-size: 26px;
        width: 28px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 主图区域 */
    .page-faq__hero-section--top-padding {
        padding-top: 10px;
    }
    .page-faq__hero-image-wrapper {
        max-height: 300px; /* Smaller image height on mobile */
    }
    .page-faq__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important;
        filter: brightness(0.8); /* Less dark on mobile */
    }
    .page-faq__hero-text-block {
        padding: 20px 0 0; /* Smaller top padding for text block */
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-faq__intro-description {
        font-size: 15px;
    }

    /* 2. 产品展示图区域 - Not applicable for FAQ page */

    /* 3. 装饰主标题 + 长文 SEO 区 */
    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding-bottom: 10px;
        margin-bottom: 30px;
    }
    .page-faq__section-title::after {
        width: 60px;
    }
    .page-faq__article-body {
        max-width: 100% !important;
        padding: 0 15px;
        text-align: left;
        font-size: 15px;
    }
    .page-faq__article-figure {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

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

    /* 5. 按钮与按钮容器 */
    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure internal padding */
        padding-right: 15px;
        min-width: unset; /* Remove min-width for full flexibility */
    }
    .page-faq__game-categories {
        justify-content: center;
    }
    .page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
        font-size: 14px;
    }
    .page-faq__description {
        font-size: 15px;
        padding: 0 15px;
    }
}