/* style/news.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background (#FFFFFF) */
    background-color: #ffffff; /* Explicitly setting for safety, though body background is already white */
}

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

/* Sections */
.page-news__section {
    padding: 60px 0;
    text-align: center;
}

.page-news__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-news__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-news__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff; /* Ensuring white text on hero */
}

.page-news__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-news__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
}

/* Content Typography */
.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from section for contrast */
}

.page-news__subsection-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section for contrast */
}

.page-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
}

.page-news__highlight {
    font-weight: bold;
    color: #017439; /* Brand primary color for highlights */
}
.page-news__dark-bg .page-news__highlight {
    color: #FFFF00; /* Yellow highlight on dark background */
}

.page-news a {
    color: #017439; /* Brand primary color for links */
    text-decoration: underline;
}
.page-news__dark-bg a {
    color: #FFFF00; /* Yellow links on dark background */
}
.page-news a:hover {
    text-decoration: none;
}


/* Images */
.page-news__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Feature Grid (for cards) */
.page-news__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333333; /* Dark text for light card background */
}

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for card titles */
}

.page-news__card-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-news__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Video Section */
.page-news__video-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Use shared offset */
    padding-bottom: 60px;
    background-color: #017439; /* Dark background for video section */
    color: #ffffff;
}

.page-news__video-container {
    max-width: 1000px; /* Max width for video container */
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #000; /* Black background for video area */
    border-radius: 8px;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickability */
}

.page-news__video-caption {
    font-style: italic;
    font-size: 0.9em;
    margin-top: 10px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 30px;
    text-align: left;
}

.page-news__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439; /* Brand primary color for questions */
    list-style: none; /* For details/summary */
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-news__faq-item summary {
    list-style: none;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-news__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #333333;
    /* max-height: 0; */ /* Only for JS based FAQ, native details handles it */
    /* overflow: hidden; */ /* Only for JS based FAQ */
    /* transition: max-height 0.3s ease-out; */ /* Only for JS based FAQ */
}

/* Details element specific styling */
.page-news__faq-item[open] .page-news__faq-answer {
    max-height: fit-content; /* For native details element */
    max-height: 1000px; /* Fallback for older browsers or if JS is used */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.5em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }

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

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__section {
        padding: 40px 0;
    }

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

    .page-news__subsection-title {
        font-size: 1.4em;
    }

    .page-news__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-news__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Images responsive on mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsive on mobile */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
}