/* 页面标题 */
.news-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/beijing-1.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.news-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: "STXingkai", "华文行楷", serif;
}

.news-header h1 i {
    margin-right: 15px;
}

.news-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容 */
.news-container {
    padding: 40px 0;
    background: #f8f9fa;
}

/* 分类导航 */
.news-nav {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-pills .nav-link {
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* 新闻列表 */
.news-list {
    margin-bottom: 30px;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.category {
    color: var(--primary-color);
    font-weight: 500;
}

.date {
    color: #666;
}

.views {
    color: #666;
}

.views i {
    margin-right: 5px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-read {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: var(--primary-dark);
    color: white;
}

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background: none;
}

/* 右侧边栏 */
.news-search {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-search .form-control {
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 6px 0 0 6px;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 6px 6px 0;
}

.btn-search:hover {
    background: var(--primary-dark);
    color: white;
}

.news-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 热门资讯 */
.hot-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hot-item {
    display: flex;
    gap: 15px;
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hot-content {
    flex: 1;
}

.hot-content h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.hot-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* 最新发布 */
.latest-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-item {
    display: flex;
    gap: 15px;
}

.latest-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.latest-content {
    flex: 1;
}

.latest-content h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.latest-meta {
    font-size: 0.9rem;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2rem;
    }

    .news-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
    }

    .nav-pills {
        flex-wrap: nowrap;
    }

    .news-image {
        height: 200px;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .latest-item img {
        width: 60px;
        height: 45px;
    }
} 