/* ===== 简化的新闻页面样式 ===== */
.news-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* 侧边栏分类 */
.news-categories {
    width: 240px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.news-categories h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #EB6630;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin: 8px 0;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.category-list a:hover {
    background: #f8f9fa;
    color: #EB6630;
}

.category-list a.active {
    background: #EB6630;
    color: white;
}

/* 新闻列表容器 */
.news-list-container {
    flex: 1;
}

.news-list-wrapper {
    display: grid;
    gap: 20px;
}

/* 新闻项目 */
.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-link {
    display: flex;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

/* 新闻缩略图 */
.news-thumbnail {
    flex: 0 0 200px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

/* 新闻信息 */
.news-info {
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-title {
    color: #EB6630;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
    gap: 15px;
}

.read-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-count i {
    color: #EB6630;
}

.news-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #EB6630;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.news-item:hover .read-more i {
    transform: translateX(3px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 8px;
}

.page-prev,
.page-next,
.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.page-prev:hover,
.page-next:hover,
.page-number:hover {
    border-color: #EB6630;
    color: #EB6630;
    background: #fff5f3;
}

.page-number.active {
    background: #EB6630;
    color: white;
    border-color: #EB6630;
}

/* 无文章提示 */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }

    .news-container {
        flex-direction: column;
        margin-top: 20px;
        padding: 0 15px;
        gap: 20px;
    }

    .news-categories {
        width: 100%;
        position: static;
        padding: 15px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-list li {
        margin: 0;
    }

    .category-list a {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .news-link {
        flex-direction: column;
        padding: 15px;
    }

    .news-thumbnail {
        flex: none;
        margin: 0 0 12px 0;
        width: 100%;
    }

    .news-thumbnail img {
        height: 160px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-meta {
        font-size: 12px;
    }

    .news-summary {
        font-size: 13px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-prev,
    .page-next,
    .page-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px !important;
    }

    .news-container {
        padding: 0 12px;
    }

    .news-categories {
        padding: 12px;
    }

    .news-link {
        padding: 12px;
    }

    .news-thumbnail img {
        height: 140px;
    }

    .news-title {
        font-size: 15px;
    }
}
