/* style/faq.css */

/* Custom properties for colors from the provided palette */
:root {
    --page-faq-primary-color: #11A84E; /* 主色调 */
    --page-faq-secondary-color: #22C768; /* 辅助色 */
    --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* 按钮 */
    --page-faq-background-color: #08160F; /* 背景 */
    --page-faq-card-bg: #11271B; /* Card BG */
    --page-faq-text-main: #F2FFF6; /* Text Main */
    --page-faq-text-secondary: #A7D9B8; /* Text Secondary */
    --page-faq-border-color: #2E7A4E; /* 边框 */
    --page-faq-gold-color: #F2C14E; /* Gold */
    --page-faq-deep-green: #0A4B2C; /* Deep Green */
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--page-faq-text-main); /* Default text color for the page */
    background-color: var(--page-faq-background-color); /* Page background */
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--page-faq-background-color);
    overflow: hidden; /* Ensure no overflow from image */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px; /* Max width for hero image */
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-faq__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--page-faq-gold-color); /* Gold color for main title */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary); /* Secondary text color */
    margin-bottom: 30px;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
}

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient);
    color: var(--page-faq-text-main); /* Main text color for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--page-faq-primary-color); /* Primary color for secondary button text */
    border: 2px solid var(--page-faq-primary-color); /* Border in primary color */
}

.page-faq__btn-secondary:hover {
    background: var(--page-faq-primary-color);
    color: var(--page-faq-text-main); /* Main text color on hover */
}

.page-faq__accordion-section {
    padding: 60px 0;
    background-color: var(--page-faq-background-color); /* Dark background */
    color: var(--page-faq-text-main); /* Light text for dark background */
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--page-faq-gold-color); /* Gold color for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-faq__section-description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary); /* Secondary text color */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg); /* Card background color */
    border: 1px solid var(--page-faq-border-color); /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-faq-text-main); /* Main text color for questions */
    cursor: pointer;
    background-color: var(--page-faq-deep-green); /* Deep green for question background */
    border-bottom: 1px solid var(--page-faq-border-color); /* Divider color */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: var(--page-faq-primary-color); /* Primary color on hover */
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-faq-gold-color); /* Gold color for toggle icon */
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--page-faq-primary-color); /* Primary color when open */
    border-bottom: none;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-faq-text-secondary); /* Secondary text color for answers */
    background-color: var(--page-faq-card-bg); /* Card background for answers */
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.page-faq__faq-answer ol {
    list-style-type: decimal;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-faq__inline-link {
    color: var(--page-faq-secondary-color); /* Secondary color for inline links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
    color: var(--page-faq-gold-color); /* Gold color on hover */
    text-decoration: underline;
}

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

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: var(--page-faq-deep-green); /* Deep green background for bottom CTA */
    border-radius: 10px;
    border: 1px solid var(--page-faq-border-color);
}

.page-faq__cta-text {
    font-size: 1.3em;
    color: var(--page-faq-text-main); /* Main text color */
    margin-bottom: 25px;
    font-weight: 600;
}

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

    .page-faq__hero-section {
        padding-bottom: 40px;
    }

    .page-faq__hero-image {
        margin-bottom: 20px;
    }

    .page-faq__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
    }

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

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 15px; /* Space between buttons if stacked */
    }

    .page-faq__accordion-section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px; /* Mobile padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-faq__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-faq__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__cta-bottom {
        margin-top: 40px;
        padding: 30px 15px;
    }

    .page-faq__cta-text {
        font-size: 1.1em;
    }

    /* Ensure all images and their containers are responsive */
    .page-faq img {
        max-width: 100% !important;
        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;
    }
}

/* Ensure no filter is used on images */
.page-faq img {
    filter: none;
}