:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --border-color: #e0e0e0;
    --login-button-color: #EA7C07;
}

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

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for desktop */
    position: relative;
    overflow: hidden;
}

.page-faq__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop to fill space */
    display: block;
}

.page-faq__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-faq__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Introduction Section */
.page-faq__intro-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-light);
}

.page-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-faq__section-title--light {
    color: var(--text-light);
}

.page-faq__section-description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--text-dark);
}

.page-faq__illustration {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensures proper spacing */
    margin-left: auto;
    margin-right: auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background for this section */
    color: var(--text-light);
}

.page-faq__faq-category {
    margin-bottom: 40px;
}

.page-faq__category-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
}

/* FAQ Item (Details/Summary) */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or simply change to - */
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: rgba(255, 255, 255, 0.05); /* Lighter transparent background for answer */
    border-radius: 0 0 8px 8px;
    color: var(--text-light);
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}

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

.page-faq__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: var(--primary-color);
}

.page-faq__illustration--bottom {
    margin-top: 60px;
    margin-bottom: 0;
}

/* Call to Action Section */
.page-faq__cta-section {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}

.page-faq__flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-faq__cta-illustration {
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-content {
    max-width: 600px;
    text-align: left;
}

.page-faq__cta-content .page-faq__section-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-faq__cta-content .page-faq__section-description {
    text-align: left;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Buttons */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-faq__btn-primary:hover {
    background: #1e87b7; /* Darker primary */
    border-color: #1e87b7;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        max-width: 700px;
    }
    .page-faq__main-title {
        font-size: 42px;
    }
    .page-faq__subtitle {
        font-size: 18px;
    }
    .page-faq__section-title {
        font-size: 32px;
    }
    .page-faq__category-title {
        font-size: 26px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        font-size: 17px;
        padding: 15px 20px;
    }
    .page-faq__faq-toggle {
        font-size: 26px;
        margin-left: 15px;
        width: 25px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
    }
    .page-faq__cta-illustration {
        max-width: 400px;
    }
    .page-faq__cta-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-faq__hero-section {
        margin-bottom: 30px;
        padding-top: 10px; /* Small top padding */
    }
    .page-faq__hero-image {
        height: 300px; /* Adjust height for mobile */
    }
    .page-faq__hero-image img {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
    }
    .page-faq__hero-content {
        position: static; /* Stack content on mobile */
        transform: none;
        background: rgba(0, 0, 0, 0.7); /* Darker overlay */
        padding: 20px 15px;
        border-radius: 0;
        margin-top: -100px; /* Overlap slightly with image for design */
        width: calc(100% - 30px); /* Account for padding */
        margin-left: auto;
        margin-right: auto;
    }
    .page-faq__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Responsive font size */
        margin-bottom: 10px;
    }
}