/* ============================================ */
/* 文章列表页样式 */
/* ============================================ */

/* ========== 栏目横幅 ========== */
.page-banner {
    background-image: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    position: relative;
    height: 380px;
    background-color: #e8ecf1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 110px;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

/* Banner 卡片（毛玻璃效果） */
.page-banner-card {
    display: inline-block;
    padding: 36px 60px 30px;
    /* background: rgba(255, 255, 255, 0.18); */
    /* backdrop-filter: blur(24px); */
    /* -webkit-backdrop-filter: blur(24px); */
    /* border-radius: 16px; */
    /* border: 1px solid rgba(255, 255, 255, 0.35); */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); */
}

.page-banner-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.page-banner-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.page-banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.page-banner-breadcrumb a:hover {
    color: #fff;
}

/* ========== 主体内容 ========== */
.main-content {
    padding: 60px 0 80px;
    background: var(--color-bg-gray);
    min-height: 60vh;
}

.content-wrapper {
    display: grid;
    /* grid-template-columns: 300px 1fr; */
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 130px;
}

.sidebar-widget {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(26, 93, 156, 0.08);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(26, 93, 156, 0.12);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

/* 侧边栏导航 */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav li:last-child {
    margin-bottom: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    color: var(--color-text-secondary);
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav li a:hover {
    background: #f3f4f6;
    color: var(--color-text-primary);
}

.sidebar-nav li.active a,
.sidebar-nav li.articel_a_hover a {
    background: #e8eaed;
    color: var(--color-text-primary);
    font-weight: 600;
}

.sidebar-nav-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #bbb;
    background: transparent;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.sidebar-nav li a:hover .sidebar-nav-icon {
    border-color: #999;
}

.sidebar-nav li.active a .sidebar-nav-icon,
.sidebar-nav li.articel_a_hover a .sidebar-nav-icon {
    background: #555;
    border-color: #555;
}

/* 侧边栏联系信息 */
.sidebar-contact {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 2;
}

.sidebar-contact p {
    margin-bottom: 12px;
}

.sidebar-contact strong {
    color: var(--color-text-primary);
}

/* ========== 文章列表 ========== */
.article-list-wrapper {
    min-height: 400px;
}

.article-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(26, 93, 156, 0.08);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: 0 12px 40px rgba(26, 93, 156, 0.15);
    border-color: rgba(26, 93, 156, 0.2);
}

.article-card-link {
    display: flex;
    gap: 30px;
    padding: 24px;
}

/* 文章缩略图 */
.article-card-img {
    flex: 0 0 280px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover .article-card-img img {
    transform: scale(1.1);
}

.article-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 36, 99, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-card-img-overlay {
    opacity: 1;
}

/* 文章信息 */
.article-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    container-type: inline-size;
}

.article-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: nowrap;      /* 不换行 */
    overflow: hidden;         /* 超出隐藏 */
    text-overflow: ellipsis;  /* ... */
}

.article-card:hover .article-card-title {
    color: var(--color-primary);
}

.article-card-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    /* 关键三行 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制2行 */
    line-clamp: 2; /* 标准属性，用于兼容性 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

}

/* 文章元信息 */
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--color-text-light);
}

.article-card-date,
.article-card-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card-date svg,
.article-card-views svg {
    width: 14px;
    height: 14px;
}

.article-card-more {
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover .article-card-more {
    opacity: 1;
    transform: translateX(0);
}

/* ========== 分页 ========== */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    list-style: none;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--color-text-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* 可点击的页码 - hover */
.pagination a[href]:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(26, 93, 156, 0.06);
}

/* 当前页码 - 高亮 */
.pagination .active a {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}

/* 禁用按钮（首页/末页无链接时） */
.pagination a:not([href]) {
    opacity: 0.35;
    pointer-events: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .page-banner {
        height: 340px;
    }
    
    .page-banner-card {
        padding: 30px 48px 26px;
    }
    
    .page-banner-title {
        font-size: 38px;
        letter-spacing: 3px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 300px;
        margin-top: 70px;
    }
    
    .page-banner-card {
        padding: 26px 36px 22px;
    }
    
    .page-banner-title {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .main-content {
        padding: 40px 0 60px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-card-link {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    
    .article-card-img {
        flex: none;
        height: 200px;
    }
    
    .article-card-title {
        font-size: 18px;
    }
    
    .article-card-more {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 260px;
    }
    
    .page-banner-card {
        padding: 20px 24px 18px;
    }
    
    .page-banner-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .article-card-img {
        height: 160px;
    }
    
    .article-card-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination a {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}
