﻿@charset "utf-8";

/* ===== 新闻中心页面样式 ===== */

.news-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-page-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ===== 左侧分类导航 ===== */
.news-sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-sidebar h3 {
    font-size: 18px;
    color: #fff;
    background: #c00;
    padding: 16px 20px;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.news-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
}

.news-sidebar-list li:last-child {
    border-bottom: none;
}

.news-sidebar-list li a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.news-sidebar-list li a:hover {
    background: #f5f5f5;
    color: #c00;
    padding-left: 26px;
}

.news-sidebar-list li.active a {
    background: #0066cc;
    color: #fff;
    font-weight: bold;
}

.news-sidebar-list li.active a:hover {
    background: #004999;
    color: #fff;
    padding-left: 20px;
}

/* ===== 右侧内容 ===== */
.news-content {
    flex: 1;
    min-width: 0;
}

/* 面包屑导�?*/
.news-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.news-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: #c00;
}

.news-breadcrumb span {
    color: #c00;
    font-weight: bold;
}

/* 区块标题 */
.news-section-title {
    font-size: 22px;
    color: #c00;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid #c00;
    line-height: 1.4;
}

/* ===== 视频图标标记 ===== */
.video-icon {
    display: inline-block;
    font-style: normal;
    font-size: 12px;
    color: #c00;
    background: #ffe8e8;
    padding: 0 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.6;
}

/* ===== 新闻列表 ===== */
.news-list-section {
    margin-bottom: 30px;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    border-bottom: 1px dashed #e8e8e8;
    transition: background 0.2s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-item a:hover {
    background: #fafafa;
}

.news-item-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
}

.news-item-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.news-item-tag.company {
    background: #e8f4fd;
    color: #0066cc;
    border: 1px solid #b8daf5;
}

.news-item-title {
    flex: 1;
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.news-item a:hover .news-item-title {
    color: #c00;
}

/* ===== 分页 ===== */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.news-pagination a {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 10px;
}

.news-pagination a:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.news-pagination a.active {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    font-weight: bold;
}

/* ===== 响应�?===== */
@ (max-width: 768px) {
    .news-page-wrap {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        min-width: 0;
    }

    .news-sidebar-list {
        display: flex;
        flex-wrap: wrap;
    }

    .news-sidebar-list li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        flex: 1;
        min-width: 0;
    }

    .news-sidebar-list li a {
        text-align: center;
        padding: 12px 10px;
        font-size: 13px;
    }

    .news-sidebar-list li a:hover {
        padding-left: 10px;
    }

    .news-video-grid {
        grid-template-columns: 1fr;
    }

    .news-item a {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-item-date {
        font-size: 12px;
        min-width: 60px;
    }

    .news-item-title {
        font-size: 14px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 480px) {
    .news-sidebar-list li a {
        font-size: 12px;
        padding: 10px 6px;
    }

    .news-section-title {
        font-size: 18px;
    }

    .news-item a {
        padding: 12px 10px;
    }
}
