/* ==========================================
   News Page Styles (新闻动态 & 详情页) - 生产级原生适配版
   ========================================== */

/* --- 基础与共用样式 --- */
body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2f3338;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: #ff3010 !important;
}

/* --- Hero 头图区 --- */
.news-hero {
    position: relative;
    height: 350px;
    margin-top: 60px; /* 适配固定的 Header */
    background-image: url("https://sld2025.oss-cn-shanghai.aliyuncs.com/gw/new.png"); /* 请替换为真实相对路径 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.news-hero-content {
    position: relative;
    z-index: 2;
}

.news-hero-content h1 {
    font-size: 40px;
    font-weight: bold;
    margin: 0 0 16px 0;
}

.news-hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* --- 新闻列表区 --- */
.news-section {
    padding: 60px 0;
    background: #fff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    display: flex;
    background: #f4f6f8; /* 贴合V2的浅灰底色 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.news-img-box {
    width: 25%;
    min-width: 280px;
    flex-shrink: 0;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 16px 0;
    color: #2f3338;
    transition: color 0.3s;
}

.news-card:hover .news-info h3 {
    color: #ff3010;
}

.news-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: #ff3010;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.news-read-more i {
    margin-left: 6px;
}

/* --- 新闻详情页 --- */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #6d7888;
    margin-top: 60px; /* 规避固定导航 */
}

.breadcrumb a {
    color: #6d7888;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff3010;
}

.breadcrumb span.separator {
    margin: 0 10px;
}

.news-detail-section {
    padding-bottom: 80px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2f3338;
    margin: 0 0 20px 0;
}

.news-detail-meta {
    font-size: 14px;
    color: #999;
}

.news-detail-content {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
    margin-bottom: 40px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

/* 详情图片网格 */
.news-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.news-image-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-image-grid.single-image img {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

/* 标签与上下文导航 */
.news-tags {
    padding: 20px 0;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 40px;
}

.news-tags span.label {
    color: #666;
    margin-right: 12px;
}

.news-tag-item {
    display: inline-block;
    background: rgba(255, 48, 16, 0.08);
    color: #ff3010;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.news-tag-item:hover {
    background: #ff3010;
    color: #fff;
}

.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-box {
    display: flex;
    align-items: center;
    padding: 24px;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.nav-box:hover {
    border-color: #ff3010;
    background: rgba(255, 48, 16, 0.02);
}

.nav-box i {
    font-size: 24px;
    color: #ff3010;
}

.nav-box.prev i { margin-right: 16px; }
.nav-box.next { justify-content: flex-end; text-align: right; }
.nav-box.next i { margin-left: 16px; }

.nav-box-content .nav-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.nav-box-content .nav-title {
    font-size: 16px;
    color: #2f3338;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}


/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }
    .news-img-box {
        width: 100%;
        height: 220px;
    }
    .news-image-grid {
        grid-template-columns: 1fr;
    }
    .news-image-grid img {
        height: 250px;
    }
    .news-navigation {
        grid-template-columns: 1fr;
    }
    .news-detail-title {
        font-size: 24px;
    }
    .news-detail-content {
        font-size: 16px;
    }
}