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

/* -------------------- Base Styles -------------------- */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

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

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
}

.page-news__section-title--light {
    color: #ffffff; /* White title for dark backgrounds */
}

.page-news__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Light text */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__section-description--light {
    color: #ffffff; /* White text for dark backgrounds */
}

/* -------------------- Buttons -------------------- */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-white-outline,
.page-news__btn-white-fill {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    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 buttons don't overflow */
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 15px;
}

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__btn-white-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin-left: 15px;
}

.page-news__btn-white-outline:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-news__btn-white-fill {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-news__btn-white-fill:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
}

/* -------------------- Hero Section -------------------- */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
    color: #ffffff;
    text-align: left;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    filter: none; /* Ensure no filter changes image color */
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

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

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

.page-news__hero-button {
    font-size: 1.1em;
    padding: 15px 30px;
}

/* -------------------- Latest Articles Section -------------------- */
.page-news__latest-articles {
    background-color: #0a0a0a; /* Dark background from shared.css */
    color: #f0f0f0;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background for contrast */
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    filter: none; /* Ensure no filter changes image color */
}

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

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

.page-news__article-title a {
    color: #26A9E0; /* Brand color for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}
}