/* style/news.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
}

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

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

/* HERO Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.page-news__hero-content-wrapper {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
    margin-top: 30px;
}

.page-news__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-main-color);
}

.page-news__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Article Grid */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__article-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 20px;
}

.page-news__article-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
}

.page-news__article-date {
    font-size: 0.85em;
    color: #888888;
}

/* Updates Section */
.page-news__updates-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-news__updates-section .page-news__section-title,
.page-news__updates-section .page-news__section-description {
    color: #ffffff;
}

.page-news__updates-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-news__update-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    transition: background-color 0.3s ease;
}

.page-news__update-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-news__update-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #f0f0f0;
}

.page-news__update-category {
    background-color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #ffffff;
}

.page-news__update-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-news__update-text {
    font-size: 1em;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.page-news__read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #ffffff;
}

/* CTA Section */
.page-news__cta-section {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-news__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    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;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-news__view-all-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

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

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

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

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

    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 20px;
    }
    
    .page-news__hero-image-wrapper {
        max-height: 300px;
    }

    .page-news__hero-content-wrapper {
        margin-top: 20px;
        padding: 15px;
    }

    .page-news__main-title {
        font-size: 2em; /* Smaller font size for mobile H1 */
        margin-bottom: 10px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__container,
    .page-news__latest-section,
    .page-news__updates-section,
    .page-news__industry-news-section,
    .page-news__cta-section,
    .page-news__article-card,
    .page-news__update-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__section-title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    .page-news__article-title {
        font-size: 1.1em;
    }

    .page-news__update-item {
        padding: 15px;
    }

    .page-news__update-title {
        font-size: 1.2em;
    }

    /* 按钮与按钮容器 */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-news__updates-section,
    .page-news__cta-section {
        padding: 40px 0;
    }
}