/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Default text color for the page, assuming a dark body background from shared.css */
    background-color: transparent; /* Rely on shared.css for body background */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-faq__hero-content {
    position: relative; /* Not absolutely positioned over image */
    z-index: 2;
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #FFD86A; /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.1rem;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit width of button group */
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small,
.page-faq__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    border: 2px solid #F2B544; /* Gold border */
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: #C91F17; /* Main brand color */
    color: #FFF5E1; /* Text Main color */
    border: 2px solid #E53935; /* Auxiliary color border */
    box-shadow: 0 4px 10px rgba(201, 31, 23, 0.3);
}

.page-faq__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
    transform: translateY(-2px);
}

.page-faq__btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin-top: 15px;
    background: linear-gradient(180deg, #F4D34D 0%, #E6B800 100%);
    color: #7A0E0E;
    border: 1px solid #F2B544;
    transition: all 0.3s ease;
}
.page-faq__btn-small:hover {
    background: linear-gradient(180deg, #E6B800 0%, #F4D34D 100%);
    transform: translateY(-1px);
}

.page-faq__btn-link {
    background: transparent;
    color: #F4D34D; /* Gold text */
    border: 1px solid #F4D34D;
    padding: 8px 18px;
    font-size: 0.95rem;
    border-radius: 6px;
    margin-top: 15px;
}
.page-faq__btn-link:hover {
    background: #F4D34D;
    color: #7A0E0E;
}


/* General Section Styling */
.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__intro-section,
.page-faq__faq-section,
.page-faq__related-articles-section,
.page-faq__contact-promo-section {
    padding: 60px 0;
}

.page-faq__intro-section {
    background-color: #B71C1C; /* Background color */
    color: #FFF5E1; /* Text Main */
    text-align: center;
}

.page-faq__intro-heading {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #FFD86A; /* Gold */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__intro-text {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-faq__section-heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #FFD86A; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* FAQ List */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #7A0E0E; /* Deep Red border */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFF5E1; /* Text Main */
    cursor: pointer;
    background-color: #C91F17; /* Main brand color */
    border-bottom: 1px solid #E53935; /* Auxiliary color */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}
.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}
.page-faq__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #E53935; /* Auxiliary color when open */
    border-bottom: 1px solid #FFD86A; /* Gold border when open */
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD86A; /* Gold */
    margin-left: 15px;
    line-height: 1;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
    background-color: #D32F2F; /* Card BG */
}

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

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

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

/* Related Articles Section */
.page-faq__related-articles-section {
    background-color: #7A0E0E; /* Deep Red */
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-faq__blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-faq__blog-card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #C91F17; /* Main brand color border */
}

.page-faq__blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-faq__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-faq__blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-faq__blog-card-title a {
    color: #FFD86A; /* Gold for title links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__blog-card-title a:hover {
    color: #F4D34D; /* Slightly darker gold on hover */
}

.page-faq__blog-card-meta {
    font-size: 0.9rem;
    color: #F2B544; /* Border color for meta info */
    margin-bottom: 10px;
}

.page-faq__blog-card-description {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-faq__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Contact Promo Section */
.page-faq__contact-promo-section {
    background-color: #B71C1C; /* Background color */
    text-align: center;
    color: #FFF5E1; /* Text Main */
}

.page-faq__promo-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* General Image Styles (for inline images in answers) */
.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);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-faq__intro-heading {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }

    .page-faq__section-heading {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }

    .page-faq__blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 30px;
    }
    .page-faq__hero-image-wrapper {
        max-height: 300px;
    }
    .page-faq__hero-content {
        margin-top: 15px;
        padding: 0 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-faq__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-small,
    .page-faq__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
    }

    /* 深色导语区 */
    .page-faq__intro-section {
        padding: 40px 0;
    }
    .page-faq__intro-heading {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    /* FAQ Section */
    .page-faq__faq-section {
        padding: 40px 0;
    }
    .page-faq__section-heading {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-faq__faq-list {
        gap: 10px;
        padding: 0 15px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* 博客网格 (Related Articles) */
    .page-faq__related-articles-section {
        padding: 40px 0;
    }
    .page-faq__blog-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    .page-faq__blog-card-image {
        height: 180px;
    }
    .page-faq__blog-card-title {
        font-size: 1.1rem;
    }
    .page-faq__blog-card-description {
        font-size: 0.9rem;
    }
    .page-faq__view-all-button-wrapper {
        margin-top: 30px;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-faq__container,
    .page-faq__section,
    .page-faq__card,
    .page-faq__blog-card,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Contact Promo Section */
    .page-faq__contact-promo-section {
        padding: 40px 0;
    }
    .page-faq__promo-text {
        font-size: 0.95rem;
        padding: 0 15px;
    }
}

@media (max-width: 549px) {
    .page-faq__blog-grid {
        grid-template-columns: 1fr;
    }
}