/* ========== 文章列表页面独立样式 ========== */

/* 主容器布局 */
.article-list-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* 左侧选项卡导航 */
.article-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    flex-shrink: 0;
    padding: 1rem;
}

.article-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-nav-item {
    margin-bottom: 0.5rem;
}

.article-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    position: relative;
}

.article-nav-link:hover {
    background: #f0f8ff;
    color: #007bff;
    text-decoration: none;
    border-color: #007bff;
}

.article-nav-link.active {
    background: #007bff;
    color: white;
    font-weight: 500;
    border-color: #007bff;
}

.article-nav-link::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('../images/arrow-dark.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: all 0.2s ease;
}

.article-nav-link.active::after {
    background-image: url('../images/arrow-light.png');
}

/* 右侧内容区域 */
.article-content {
    flex: 1;
    padding: 1.5rem;
    background: white;
}

.article-content-header {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    /*margin-bottom: 1.5rem;*/
}

.article-content-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.article-list-item:hover {
    background: #f8f9fa;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-item-content {
    flex: 1;
    margin-right: 1rem;
}

.article-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0;
    text-decoration: none;
    display: block;
}

.article-item-title:hover {
    color: #007bff;
    text-decoration: none;
}

.article-item-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.article-item-date {
    color: #999;
    font-size: 0.8rem;
    font-weight: normal;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 分页样式 */
.article-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-top: 2rem;*/
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    text-decoration: none;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn.disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-list-container {
        flex-direction: column;
        margin: 1rem;
        border-radius: 4px;
    }
    
    .article-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 0.5rem;
    }
    
    .article-nav-list {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
        gap: 0.5rem;
    }
    
    .article-nav-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .article-nav-link {
        padding: 0.5rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
        border-radius: 15px;
        justify-content: center;
    }
    
    .article-nav-link::after {
        display: none;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-content-title {
        font-size: 1.1rem;
    }
    
    .article-list-item {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-item-content {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .article-item-title {
        font-size: 0.9rem;
    }
    
    .article-item-date {
        align-self: flex-start;
        margin-top: 0.25rem;
    }
    
    .article-item-meta {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .article-nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 12px;
        justify-content: center;
    }
    
    .article-nav-link::after {
        display: none;
    }
    
    .article-content {
        padding: 0.75rem;
    }
    
    .article-item-content {
        margin-right: 0;
    }
    
    .article-item-title {
        font-size: 0.85rem;
    }
    
    .article-item-date {
        font-size: 0.75rem;
    }
}
