/* ========================================
   新闻列表页样式 - 外部CSS文件
   ======================================== */

/* 页面标题区 - 简洁样式，无背景图 */
.page-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 48px 20px;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.page-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.page-header-subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

/* 主内容区 */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 子栏目切换 */
.category-tabs {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 12px 24px;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.category-tab:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.category-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.news-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.news-thumbnail {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

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

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

.news-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

.news-item:hover .news-number {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    text-decoration: none;
}

.news-category-tag svg {
    width: 14px;
    height: 14px;
}

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

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

.news-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta svg {
    width: 14px;
    height: 14px;
}

.news-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news-item:hover .news-arrow {
    background: #2563eb;
    transform: translateX(4px);
}

.news-arrow svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.3s;
}

.news-item:hover .news-arrow svg {
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 8px;
}

.empty-state p {
    color: #94a3b8;
    font-size: 14px;
}

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

.pagination2 a,
.pagination2>span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination2 a:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.page-status,
.page-count {
    background: transparent;
    border: none;
    color: #64748b;
}

.page-count {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination2 .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination2 svg {
    width: 18px;
    height: 18px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        padding: 32px 16px;
    }

    .page-header-title {
        font-size: 26px;
    }

    .page-header-subtitle {
        font-size: 14px;
    }

    .main-container {
        padding: 20px 16px;
    }

    .category-tabs {
        gap: 6px;
        padding: 6px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .news-item {
        padding: 16px;
    }

    .news-row {
        flex-direction: column;
        gap: 12px;
    }

    .news-thumbnail {
        width: 100%;
        height: 180px;
        order: -1;
    }

    .news-number {
        display: none;
    }

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

    .news-arrow {
        display: none;
    }

    .pagination2 {
        gap: 6px;
    }

    .pagination2 a,
    .pagination2 span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 8px;
    }
}
