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

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #F4F7FB 0%, #E0E7F5 100%); /* Light gradient background */
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-faq__hero-title {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    color: #1F2D3D;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.15rem;
    color: #1F2D3D;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-faq__btn-secondary {
    background-color: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
    background-color: #e0e7f5;
    color: #2F6BFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-faq__btn-link {
    background: none;
    color: #2F6BFF;
    border: 1px solid #D6E2FF;
    padding: 8px 15px;
    font-size: 0.95rem;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-faq__btn-link:hover {
    background-color: #e0e7f5;
    border-color: #2F6BFF;
}

/* Section Titles */
.page-faq__section-title {
    font-size: 2.2rem;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    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-color: #2F6BFF;
    border-radius: 2px;
}

/* Overview Section */
.page-faq__overview-section,
.page-faq__conclusion-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #D6E2FF;
}

.page-faq__overview-content,
.page-faq__conclusion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.page-faq__overview-content p,
.page-faq__conclusion-content p {
    max-width: 800px;
    font-size: 1.05rem;
    color: #1F2D3D;
}

.page-faq__overview-image,
.page-faq__conclusion-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Accordion Section */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #F4F7FB;
}

.page-faq__accordion-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: #ffffff;
    border: 1px solid #D6E2FF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.15rem;
    color: #1F2D3D;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-left: 15px;
    color: #2F6BFF;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #1F2D3D;
    border-top: 1px solid #D6E2FF;
    margin-top: -1px;
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.page-faq__btn-full-width {
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: clamp(1.8rem, 5vw + 1rem, 3rem);
    }
    .page-faq__section-title {
        font-size: 2rem;
    }
    .page-faq__faq-item summary {
        font-size: 1.1rem;
    }
    .page-faq__overview-image,
    .page-faq__conclusion-image {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* HERO 主图区域 */
    .page-faq__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }
    .page-faq__hero-content {
        padding: 0 15px !important;
    }
    .page-faq__hero-title {
        font-size: clamp(1.5rem, 6vw + 1rem, 2.5rem) !important;
    }
    .page-faq__hero-description {
        font-size: 1rem !important;
    }
    .page-faq__hero-cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }

    /* 通用图片与容器 */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }
    .page-faq__container,
    .page-faq__overview-section,
    .page-faq__accordion-section,
    .page-faq__conclusion-section,
    .page-faq__overview-content,
    .page-faq__conclusion-content,
    .page-faq__accordion-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }
    .page-faq__overview-image,
    .page-faq__conclusion-image {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 按钮与按钮容器 */
    .page-faq__cta-button,
    .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 !important;
        padding-right: 15px !important;
    }
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container,
    .page-faq__game-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    .page-faq__game-links {
        flex-direction: row !important;
        justify-content: center !important;
    }
    .page-faq__game-links .page-faq__btn-link {
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }
    .page-faq__btn-full-width {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 其他内容模块 */
    .page-faq__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
    .page-faq__faq-item summary {
        font-size: 1rem !important;
        padding: 15px !important;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px !important;
    }
    .page-faq__overview-section,
    .page-faq__accordion-section,
    .page-faq__conclusion-section {
        padding: 40px 0 !important;
    }
    .page-faq__overview-content p,
    .page-faq__conclusion-content p {
        font-size: 0.95rem !important;
    }
}