/* style/faq.css */
/* 页面所有样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Ensure space for fixed header */
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #0A2463, #001A40); /* Dark blue gradient */
    color: #ffffff;
}

.page-faq__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    z-index: 1;
}

.page-faq__hero-section .page-faq__container {
    position: relative;
    z-index: 2;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Make background image subtle */
}

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__intro-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-faq__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A2463; /* Dark blue text on gold */
    border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
}

/* Content Area */
.page-faq__content-area {
    background-color: #1a1a1a; /* Dark background for content, contrasting with body #121212 */
    padding: 60px 0;
    color: #ffffff; /* Light text on dark content background */
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #e0e0e0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
    background-color: #0A2463; /* Dark blue background for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #0A2463;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #001A40; /* Slightly darker on hover */
}

.page-faq__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol */
    color: #FFD700;
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    background-color: #001A40; /* Slightly different background for answer */
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

.page-faq__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-faq__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__image-inline {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* CTA Section at the bottom */
.page-faq__cta-section {
    background-color: #0A2463;
    padding: 50px 30px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.page-faq__cta-title {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__intro-description {
        font-size: 1.2em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: calc(80px + var(--header-offset, 120px)) !important;
        min-height: 450px;
    }
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__intro-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__content-area {
        padding: 40px 0;
        overflow-x: hidden;
    }

    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__cta-section {
        padding: 40px 20px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }

    /* Images responsiveness for mobile */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}