/* 文章页面布局 */
.article-content {
    margin-top: calc(var(--header-height) + 20px);
    padding: 0 20px;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 文章主体样式 */
.article {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.article-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    margin-right: 20px;
}

/* 文章章节样式 */
.article-section {
    margin-bottom: 40px;
}

.article-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.article-section ul {
    list-style-position: inside;
    margin: 15px 0;
}

.article-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 图片容器样式 */
.image-container {
    margin: 20px 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 文章侧边栏样式 */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.article-sidebar section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.article-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-sidebar ul {
    list-style: none;
}

.article-sidebar li {
    margin-bottom: 10px;
}

.article-sidebar a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-sidebar a:hover {
    color: var(--primary-color);
}

/* 快速事实样式 */
.quick-facts {
    background-color: #f9f9f9;
}

.quick-facts li {
    padding-left: 20px;
    position: relative;
}

.quick-facts li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .article-content {
        grid-template-columns: 1fr 250px;
    }
}

@media screen and (max-width: 768px) {
    .article-content {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .article {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .article-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .article-content {
        margin-top: calc(var(--header-height) + 10px);
        padding: 0 10px;
    }

    .article {
        padding: 15px;
    }
}

/* 文章动画效果 */
.article-section {
    opacity: 1;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0.8;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为每个章节设置较短的延迟动画 */
.article-section:nth-child(1) { animation-delay: 0.05s; }
.article-section:nth-child(2) { animation-delay: 0.1s; }
.article-section:nth-child(3) { animation-delay: 0.15s; }
.article-section:nth-child(4) { animation-delay: 0.2s; }
.article-section:nth-child(5) { animation-delay: 0.25s; } 