/* style/faq.css */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color */
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: #0A0A0A;
}

.page-faq__hero-image-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

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

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

.page-faq__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #F2C14E; /* Primary color for title */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.page-faq__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 400px; /* Limit max width for button group */
    margin: 0 auto;
}

/* --- General Buttons --- */
.page-faq__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Important for responsiveness */
    box-sizing: border-box; /* Important for responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-faq__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
}

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

.page-faq__btn--secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow color */
    border: 2px solid #FFD36B; /* Glow color border */
}

.page-faq__btn--secondary:hover {
    background: #FFD36B;
    color: #111111;
    transform: translateY(-2px);
}

/* --- Main Content Area --- */
.page-faq__main-content {
    padding: 40px 0;
    background-color: #0A0A0A;
}

.page-faq__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-faq__intro-text {
    font-size: 1.05em;
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    list-style: none; /* Remove default marker */
}

.page-faq__faq-item summary {
    list-style: none; /* Remove default marker */
    display: block; /* Ensure it behaves like a block */
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2C14E;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
    border-bottom: 1px solid #3A2A12; /* Border color */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: #FFF6D6; /* Ensure text is visible */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFD36B; /* Glow color */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #FFF6D6;
    border-top: 1px solid #3A2A12; /* Border color */
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: #FFF6D6; /* Ensure text color */
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #FFF6D6; /* Ensure list item text color */
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
    color: #FFF6D6; /* Ensure list item text color */
}

.page-faq__faq-answer strong {
    color: #F2C14E; /* Highlight strong text */
}

/* --- Figure and Image Styling within content --- */
.page-faq__figure {
    margin: 20px 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-faq__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.page-faq__figcaption {
    font-size: 0.9em;
    color: #FFD36B;
    margin-top: 10px;
}

/* --- Call to Action Section at bottom --- */
.page-faq__cta-section {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 50px;
}

.page-faq__cta-title {
    font-size: 2em;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.5em;
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-faq__faq-answer {
        padding: 18px 20px;
    }

    .page-faq__cta-title {
        font-size: 1.8em;
    }
}

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

    /* 1. 顶区标题 + 双 CTA */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-faq__hero-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

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

    .page-faq__hero-cta {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. 单栏长文容器 */
    .page-faq__article-wrap {
        padding: 0 15px;
    }

    .page-faq__main-content {
        padding: 30px 0;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-faq__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
        text-align: left;
    }

    /* FAQ items */
    .page-faq__faq-item {
        margin-bottom: 10px;
    }

    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
        text-align: left;
    }

    .page-faq__faq-qtext {
        padding-right: 10px;
    }

    .page-faq__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-faq__faq-answer p,
    .page-faq__faq-answer ul,
    .page-faq__faq-answer ol,
    .page-faq__faq-answer li {
        font-size: 0.95em;
        margin-left: 20px;
    }

    /* 3. 通用图片与 figure */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-faq__hero-image-wrap,
    .page-faq__figure {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-faq__figcaption {
        font-size: 0.85em;
        padding: 0 15px;
    }

    /* 4. 按钮与按钮容器 */
    .page-faq__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;
    }
    
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 10px;
    }

    /* 5. 注册教程与 FAQ 区块 (FAQ is covered above, no separate registration tutorial here) */
    .page-faq__cta-section {
        padding: 30px 15px;
        margin-top: 30px;
    }

    .page-faq__cta-title {
        font-size: 1.5em;
    }

    .page-faq__cta-description {
        font-size: 1em;
    }
}