/* articles-v2.css - 资讯中心 (内容站风格) */

/* ========== 二级频道页头 ========== */
.channel-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #495057;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb span {
    color: #adb5bd;
}

.channel-title-wrap {
    text-align: center;
}

.channel-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.channel-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.channel-subtitle {
    font-size: 16px;
    color: #6c757d;
}

/* ========== 频道容器布局 ========== */
.channel-container {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.channel-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ========== 侧边栏 ========== */
.channel-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #2563eb;
}

.nav-item.active {
    background: #e7f3ff;
    color: #2563eb;
    border-left-color: #2563eb;
}

.nav-icon {
    font-size: 18px;
    margin-right: 10px;
    width: 30px;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-size: 14px;
}

.nav-arrow {
    font-size: 14px;
    color: #adb5bd;
}

.nav-item.active .nav-arrow {
    color: #2563eb;
}

/* 侧边栏小工具 */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

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

.article-list li {
    border-bottom: 1px solid #f0f0f0;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}

.article-list li a:hover {
    color: #2563eb;
}

.article-list .article-title {
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-list .view-count,
.article-list .article-date {
    font-size: 12px;
    color: #adb5bd;
    margin-left: 10px;
    flex-shrink: 0;
}

/* ========== 内容区域 ========== */
.channel-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px;
    min-height: 600px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.content-desc {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    flex: 1;
}

.content-count {
    font-size: 14px;
    color: #adb5bd;
    flex-shrink: 0;
    margin-left: 20px;
}

/* ========== 文章网格 ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.article-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-image {
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.article-content {
    padding: 20px;
}

.article-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #2563eb;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

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

.article-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #adb5bd;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    background: white;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f8f9fa;
    color: #2563eb;
    border-color: #2563eb;
}

.page-link.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #212529;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .channel-layout {
        grid-template-columns: 1fr;
    }
    
    .channel-sidebar {
        position: static;
        order: 2;
    }
    
    .channel-content {
        order: 1;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .channel-title {
        font-size: 24px;
    }
    
    .channel-content {
        padding: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-count {
        margin-left: 0;
        margin-top: 10px;
    }
}
