/* 文章页面专用样式 */
.articles-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.articles-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* 左侧文章列表 */
.articles-sidebar {
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.articles-list {
    list-style: none;
}

.article-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.article-item:hover {
    background: var(--bg-color);
    border-left-color: var(--secondary-color);
}

.article-item.active {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
    border-left-color: var(--secondary-color);
    font-weight: 500;
}

.article-item-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-item-title {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.article-item.active .article-item-title {
    color: var(--secondary-color);
}

/* 右侧文章内容 */
.article-content {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    min-height: 600px;
}

.article-detail {
    animation: fadeIn 0.5s ease-in;
}

.article-detail.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-detail-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-detail-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 700;
}

.article-detail-body {
    line-height: 1.8;
    color: var(--text-color);
}

.article-detail-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-body h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-detail-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.article-detail-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-detail-body li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.article-detail-body li strong {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .articles-container {
        flex-direction: column;
    }

    .articles-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .article-content {
        padding: 2rem;
    }

    .article-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .articles-main {
        padding: 1rem 0;
    }

    .articles-container {
        padding: 0 10px;
    }

    .articles-sidebar {
        padding: 1.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-detail-title {
        font-size: 1.5rem;
    }

    .article-detail-body h2 {
        font-size: 1.4rem;
    }

    .article-detail-body h3 {
        font-size: 1.2rem;
    }
}

/* 滚动条样式 */
.articles-sidebar::-webkit-scrollbar {
    width: 6px;
}

.articles-sidebar::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.articles-sidebar::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 3px;
}

.articles-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

