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

/* General page styling */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Body background color from shared.css */
}

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

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff; /* Default for dark sections */
    font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    box-sizing: border-box;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Overlay for text readability */
    filter: none; /* Ensure no CSS filter */
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
    border-radius: 10px;
    margin: 20px;
}

.page-news__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: #C30808; /* '注册' color */
    color: #FFFF00; /* '注册和登录字体' color */
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #a30606; /* Darker shade */
    border-color: #a30606;
}

.page-news__btn-secondary {
    background-color: #C30808; /* '登录' color */
    color: #FFFF00; /* '注册和登录字体' color */
    border: 2px solid #C30808;
}

.page-news__btn-secondary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-news__read-more-btn {
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-news__read-more-btn:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-news__latest-articles .page-news__section-title {
    color: #333333; /* Dark text for light background */
}

.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__article-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filter */
}

.page-news__article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__view-all-btn-container {
    text-align: center;
    margin-top: 50px;
}

/* Industry Analysis Section */
.page-news__industry-analysis {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-news__industry-analysis .page-news__section-title {
    color: #ffffff;
}

.page-news__analysis-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-news__analysis-text {
    flex: 1;
}

.page-news__analysis-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-news__analysis-image {
    flex: 0 0 500px; /* Fixed width for desktop */
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure no extra space below image */
    filter: none; /* Ensure no CSS filter */
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-news__faq-section .page-news__section-title {
    color: #333333;
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.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: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #e5e5e5;
}

.page-news__faq-question-title {
    margin: 0;
    font-size: 1.1em;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-news__faq-answer a {
    color: #017439;
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-news__cta-section .page-news__section-title {
    color: #ffffff;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__analysis-content {
        flex-direction: column;
        text-align: center;
    }
    .page-news__analysis-image {
        flex: none;
        width: 100%;
        max-width: 600px; /* Constrain image on medium screens */
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-cta,
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__read-more-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__latest-articles,
    .page-news__industry-analysis,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: auto; /* Allow height to adjust for mobile */
    }
    .page-news__analysis-content {
        gap: 20px;
        flex-direction: column;
    }
    .page-news__analysis-image {
        width: 100%;
        height: auto;
    }
    .page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px 20px;
    }
    
    /* Mobile image and container responsiveness */
    .page-news img {
        max-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 handled by .page-news__container for overall sections */
    }
    .page-news__analysis-text,
    .page-news__article-content {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure images in content area are not too small */
/* This rule targets any img within the .page-news main content area */
.page-news img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
    /* For specific images, width/height attributes will determine display size,
       but this ensures a minimum if not explicitly set by content.
       The max-width: 100%; height: auto; in mobile media query will override
       for responsiveness, allowing images to shrink while maintaining aspect ratio. */
}
.page-news img[width]:not([width="1920"]):not([width="1600"]):not([width="1200"]):not([width="1000"]):not([width="800"]):not([width="600"]):not([width="500"]):not([width="400"]) {
    min-width: 200px;
    min-height: 200px;
}