/* ==========================================
   新闻列表样式 - News List Styles
   ========================================== */

/* 新闻布局 */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.news-main {
    min-width: 0;
}

/* 新闻分类导航 */
.news-categories {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-category-tab {
    padding: 10px 25px;
    background-color: #f8f9fa;
    color: #666;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-category-tab:hover {
    background-color: #e8f4ff;
    color: #0066cc;
}

.news-category-tab.active {
    background-color: #0066cc;
    color: #fff;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: all 0.3s ease;
}

.news-item.hidden {
    display: none;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.news-item-image {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

.news-item-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 18px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-item-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-item-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.news-item-meta i {
    margin-right: 5px;
}

.news-item-title {
    font-size: 22px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: #0066cc;
}

.news-item-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-link {
    color: #0066cc;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: fit-content;
}

.news-item-link:hover {
    gap: 12px;
}

/* 侧边栏 */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f4ff;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #0066cc;
}

.search-form button {
    padding: 12px 20px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background-color: #0052a3;
}

/* 热门新闻 */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hot-news-item:hover {
    background-color: #f8f9fa;
}

.hot-news-rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #666;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.hot-news-rank.hot {
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    color: #fff;
}

.hot-news-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-item:hover .hot-news-title {
    color: #0066cc;
}

/* 归档列表 */
.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: 12px;
}

.archive-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.archive-list a:hover {
    background-color: #f8f9fa;
    color: #0066cc;
}

.archive-list i {
    color: #0066cc;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateY(-2px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 30px 0;
    flex-wrap: wrap;
}

/* 分页状态信息 */
.pagination .page-status {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 15px;
    border: 1px solid #e0e5ec;
}

/* 分页通用按钮样式 */
.pagination span {
    display: inline-block;
}

.pagination a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #fff;
    color: #666;
    border: 2px solid #e0e5ec;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    border-color: #0066cc;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

/* 首页和尾页 */
.pagination .page-index a,
.pagination .page-last a {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    padding: 10px 20px;
}

.pagination .page-index a:hover,
.pagination .page-last a:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
}

/* 前一页和后一页 */
.pagination .page-pre a,
.pagination .page-next a {
    padding: 10px 16px;
    position: relative;
}

.pagination .page-pre a::before {
    content: "‹";
    margin-right: 5px;
    font-size: 16px;
    font-weight: bold;
}

.pagination .page-next a::after {
    content: "›";
    margin-left: 5px;
    font-size: 16px;
    font-weight: bold;
}

/* 禁用状态 */
.pagination .page-pre a[href="javascript:;"],
.pagination .page-next a[href="javascript:;"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 页码数字 */
.pagination .page-numbar {
    display: inline-flex;
    gap: 5px;
    margin: 0 5px;
}

.pagination .page-num {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

/* 当前页码高亮 */
.pagination .page-num-current {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
    color: #fff !important;
    border-color: #0066cc !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.pagination .page-num-current:hover {
    transform: translateY(-2px);
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        padding: 20px 0;
    }
    
    .pagination .page-status {
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }
    
    .pagination a {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 38px;
    }
    
    .pagination .page-index a,
    .pagination .page-last a {
        padding: 8px 16px;
    }
    
    .pagination .page-num {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .pagination a {
        padding: 7px 12px;
        font-size: 12px;
        min-width: 34px;
    }
    
    .pagination .page-num {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
    }
    
    .pagination .page-status {
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* Footer社交媒体 */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #bbb;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateY(-3px);
}

/* 响应式设计 Responsive */
@media (max-width: 1200px) {
    .news-layout {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .news-item-image {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .news-categories {
        padding: 15px;
    }

    .news-category-tab {
        padding: 8px 18px;
        font-size: 13px;
    }

    .news-item-content {
        padding: 20px;
    }

    .news-item-title {
        font-size: 18px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-item-image {
        height: 200px;
    }

    .news-item-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-item-title {
        font-size: 16px;
    }

    .news-item-excerpt {
        font-size: 14px;
    }
}

