/* style/faq.css */
.page-faq {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #f5f5f5; /* Light background for the content section, assuming shared.css leaves body as white or light */
}

.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    background-color: #08162B; /* Deep Navy background for hero section */
    color: #F3F8FF; /* Text Main for hero section */
    text-align: center;
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(28px, 3.5vw, 48px); /* Responsive font size for H1 */
    font-weight: bold;
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 18px;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-faq__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF; /* Text Main */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-secondary {
    background-color: transparent;
    color: #F3F8FF; /* Text Main */
    border: 2px solid #2B73F6;
}

.page-faq__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(43, 115, 246, 0.1);
}

.page-faq__btn-small {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 15px;
}

.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: #ffffff; /* White background for the main FAQ list */
}

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

.page-faq__section-title {
    font-size: clamp(24px, 3vw, 38px);
    color: #113B7A; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__faq-category {
    margin-bottom: 50px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    background-color: #FDFDFD;
}

.page-faq__category-title {
    font-size: clamp(20px, 2.5vw, 32px);
    color: #08162B; /* Deep Navy */
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1B3357; /* Divider */
    text-align: center;
}

.page-faq__faq-item {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-item[open] {
    background-color: #f9f9f9;
}

.page-faq__faq-question {
    display: flex; /* Make summary a flex container */
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #113B7A; /* Main color */
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

/* Hide the default details marker for WebKit browsers */
.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1; /* Allow text to take available space */
    margin-right: 15px; /* Space between text and toggle icon */
}

.page-faq__faq-toggle {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #1D5FD1; /* Auxiliary color */
    color: #F3F8FF;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 20px;
    font-weight: normal;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0; /* Prevent toggle from shrinking */
}

/* Initial state for the toggle icon (plus sign) */
.page-faq__faq-toggle::before {
    content: '+';
}

/* When details is open, change to minus sign */
.page-faq__faq-item[open] .page-faq__faq-toggle::before {
    content: '−'; /* Unicode minus sign */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    background-color: #113B7A; /* Change background when open */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #333333;
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__faq-answer a {
    color: #1D5FD1; /* Auxiliary color for links */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #113B7A;
}

.page-faq__image-wrapper {
    margin: 30px auto;
    max-width: 680px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-faq__image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.page-faq__image-caption {
    background-color: #10233F; /* Card BG */
    color: #AFC4E8; /* Text Secondary */
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
}

.page-faq__promo-box {
    background-color: #10233F; /* Card BG */
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #F3F8FF; /* Text Main */
}

.page-faq__promo-title {
    font-size: clamp(22px, 2.8vw, 36px);
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-faq__promo-text {
    font-size: 18px;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 0 15px;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq__faq-category {
        padding: 20px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 17px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }
    .page-faq__promo-box {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-faq__main-title {
        font-size: 32px !important;
    }
    .page-faq__description {
        font-size: 16px !important;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .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 !important;
        padding-right: 15px !important;
    }
    .page-faq__btn-small {
        width: auto !important;
        max-width: fit-content !important;
    }
    .page-faq__cta-buttons .page-faq__btn-small {
        margin: 0 auto !important;
    }

    /* 2. 单栏长文容器 */
    .page-faq__container {
        padding: 0 15px !important;
    }
    .page-faq__faq-list-section {
        padding: 40px 0;
    }
    .page-faq__faq-category {
        padding: 15px;
        margin-bottom: 30px;
    }
}