/* 内容页样式 */

/* 主内容布局 */
.main-content {
    padding: 40px 0 60px;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid #e94560;
}

.category-list,
.date-list {
    font-size: 14px;
}

.category-list li,
.date-list li {
    margin-bottom: 8px;
}

.category-list a,
.date-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s ease;
}

.category-list a:hover,
.date-list a:hover {
    background: #f5f7fa;
    color: #e94560;
}

.category-list a.active {
    background: #e94560;
    color: #fff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #f5f7fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.tag-cloud a:hover {
    background: #e94560;
    color: #fff;
}

.hot-articles li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.hot-articles li:last-child {
    border-bottom: none;
}

.hot-articles a {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.hot-articles a:hover {
    color: #e94560;
}

.article-views {
    font-size: 12px;
    color: #999;
}

/* 文章列表 */
.article-list {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.list-header h2 {
    font-size: 24px;
    color: #1a1a2e;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-thumb {
    width: 200px;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.article-category {
    background: #e94560;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.article-date {
    color: #999;
    font-size: 13px;
}

.article-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-info h3 a {
    color: #1a1a2e;
}

.article-info h3 a:hover {
    color: #e94560;
}

.article-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.article-views,
.article-comments {
    cursor: pointer;
}

.article-views:hover,
.article-comments:hover {
    color: #e94560;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

.page-link:hover:not(.disabled) {
    background: #e94560;
    color: #fff;
}

.page-link.active {
    background: #e94560;
    color: #fff;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 5px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar-section {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
    }

    .article-thumb {
        width: 100%;
        height: 200px;
    }

    .list-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
