/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: #fff;
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header .article-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-header .article-meta {
    color: #666;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: #6e8efb;
}

/* 文章封面图 */
.article-cover {
    margin: 2rem -1rem;
    height: 400px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content a {
    color: #6e8efb;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid #6e8efb;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content code {
    font-family: monospace;
    font-size: 0.9em;
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* 文章标签 */
.article-tags {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-tags i {
    color: #6e8efb;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(110,142,251,0.1);
    border-radius: 20px;
    color: #6e8efb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #6e8efb;
    color: white;
}

/* 分享按钮 */
.article-share {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-btn {
    color: #666;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: #6e8efb;
    transform: translateY(-2px);
}

/* 文章导航 */
.article-navigation {
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.prev-article,
.next-article {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.next-article {
    justify-content: flex-end;
    text-align: right;
}

.prev-article:hover,
.next-article:hover {
    color: #6e8efb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-header .article-title {
        font-size: 1.6rem;
    }

    .article-cover {
        height: 250px;
    }

    .article-meta {
        font-size: 0.9rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-navigation {
        flex-direction: column;
    }

    .next-article {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .article-header .article-title {
        font-size: 1.4rem;
    }

    .article-cover {
        height: 200px;
    }

    .article-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }
} 