/* 新闻文章列表页样式（/article） */

body.article-page {
    background: radial-gradient(circle at top left, #f0f4ff 0%, #f7f8fc 40%, #eef1f8 100%);
    padding-top: 80px; /* 给固定头部留位置 */
}

.page-hero-section {
    padding: 70px 0 45px;
    background: linear-gradient(135deg, #4f8df5 0%, #6c63ff 50%, #5b8def 100%);
    color: #fff;
    text-align: left;
}

.page-hero-section .page-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero-section .page-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.article-main {
    padding: 30px 0 50px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* 左侧文章列表区域 */
.article-list-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-filter {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.article-filter .layui-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.article-item-content {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.article-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

.article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.article-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #667eea;
}

.article-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 15px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
}

.article-meta i {
    font-size: 14px;
    margin-right: 4px;
}

.article-cate {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 12px;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-tags {
    display: flex;
    align-items: center;
}

.article-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.article-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.article-empty p {
    font-size: 14px;
    margin: 0;
}

/* 分页 */
.article-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

/* ThinkPHP 默认分页样式 */
.article-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.article-pagination li {
    display: inline-block;
}

.article-pagination a,
.article-pagination span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
    line-height: 1.5;
}

.article-pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.article-pagination .current,
.article-pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.article-pagination .disabled,
.article-pagination .disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.article-pagination .disabled:hover,
.article-pagination .disabled a:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* Layui 分页样式（如果使用） */
.article-pagination .layui-laypage {
    margin: 0;
    display: inline-block;
}

.article-pagination .layui-laypage a,
.article-pagination .layui-laypage span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
}

.article-pagination .layui-laypage a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.article-pagination .layui-laypage .layui-laypage-curr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.article-pagination .layui-laypage .layui-laypage-curr em {
    background: transparent;
    color: #fff;
    font-style: normal;
}

.article-pagination .layui-laypage .layui-laypage-prev,
.article-pagination .layui-laypage .layui-laypage-next {
    font-weight: 600;
}

.article-pagination .layui-laypage .layui-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.article-pagination .layui-laypage .layui-disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* 右侧分类列表 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 18px;
    opacity: 0.95;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.sidebar-body {
    padding: 16px;
}

.cate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cate-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

.cate-item:last-child {
    border-bottom: none;
}

.cate-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.cate-link:hover {
    background: #f7f8fc;
    padding-left: 8px;
    color: #667eea;
}

.cate-link.active {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.05);
    padding-left: 8px;
}

.cate-name {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.cate-desc {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.cate-item-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-item-content {
        flex-direction: column;
    }

    .article-thumb {
        width: 100%;
        height: 200px;
    }

    .article-sidebar {
        order: -1;
    }
}

