:root {
    /* Colors from palette */
    --page-faq__primary-color: #2F6BFF;
    --page-faq__secondary-color: #6FA3FF;
    --page-faq__button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-faq__card-bg: #FFFFFF;
    --page-faq__background: #F4F7FB;
    --page-faq__text-main: #1F2D3D;
    --page-faq__text-black: #000000;
    --page-faq__border-color: #D6E2FF;
    --page-faq__glow-color: #A5C4FF;
}

.page-faq {
    background-color: var(--page-faq__background);
    color: var(--page-faq__text-main);
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-faq__container {
    max-width: 1200px; /* Aligned with "版心" requirement */
    margin: 0 auto;
    padding: 20px;
}

.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image above content */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--page-faq__primary-color);
    color: var(--page-faq__card-bg); /* White text on blue background */
    margin-bottom: 40px;
    position: relative; /* For potential glow effect */
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.page-faq__hero-image-wrapper {
    width: 100%; /* Ensure image wrapper takes full width */
    max-width: 100%;
    margin-bottom: 20px; /* Space between image and content */
}

.page-faq__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure content is above any potential background elements but not overlapping image */
}

.page-faq__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--page-faq__card-bg); /* White text */
    /* No fixed font-size, rely on clamp if needed, otherwise weight/line-height */
    font-size: clamp(2em, 4vw, 3.5em); /* Example clamp for responsive H1 */
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-faq__card-bg); /* White text */
}

.page-faq__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: var(--page-faq__button-gradient);
    color: var(--page-faq__card-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure buttons are not too small */
    min-height: 48px;
}

.page-faq__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-faq__accordion-section {
    padding: 40px 0;
    background-color: var(--page-faq__background);
}

.page-faq__section-title {
    text-align: center;
    font-size: 2.2em;
    color: var(--page-faq__text-black);
    margin-bottom: 40px;
    font-weight: 700;
}

.page-faq__accordion-list {
    background-color: var(--page-faq__card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-faq__accordion-item {
    border-bottom: 1px solid var(--page-faq__border-color);
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
}

.page-faq__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--page-faq__text-black);
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
    background-color: #F8F8F8; /* Lighter hover for contrast */
}

.page-faq__accordion-header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--page-faq__text-black);
}

.page-faq__accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--page-faq__primary-color);
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.page-faq__accordion-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
    transform: translateX(-50%) rotate(90deg); /* Rotate to hide vertical bar */
}

.page-faq__accordion-content {
    padding: 0 25px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--page-faq__text-main);
}

.page-faq__accordion-content.page-faq__accordion-content--active {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 10px;
}

.page-faq__accordion-content p {
    margin-bottom: 10px;
    color: var(--page-faq__text-main);
}

.page-faq__text-link {
    color: var(--page-faq__primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-faq__text-link:hover {
    text-decoration: underline;
}

.page-faq__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-faq__cta-section {
    background-color: var(--page-faq__primary-color);
    color: var(--page-faq__card-bg);
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.page-faq__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--page-faq__card-bg);
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-faq__card-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 30px 15px;
    }

    .page-faq__main-title {
        font-size: 2.2em; /* Adjusted for smaller screens */
    }

    .page-faq__description {
        font-size: 1em;
    }

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

    .page-faq__accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-faq__accordion-header h3 {
        font-size: 1em;
    }

    .page-faq__accordion-content {
        padding: 0 20px 15px;
    }

    .page-faq__cta-section {
        padding: 40px 15px;
    }

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

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

    /* Mobile content image constraint */
    .page-faq__container img,
    .page-faq__accordion-content img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images in content area are at least 200px */
.page-faq__container img,
.page-faq__accordion-content img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow auto width to scale with max-width */
}