/* 文章页面专用样式 */

/* 面包屑导航 */
.breadcrumb {
    margin: 20px 0;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    margin-right: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #666;
}

.breadcrumb-item a {
    color: #20b2aa;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* 文章容器 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文章头部 */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.article-author,
.article-date,
.article-category {
    display: flex;
    align-items: center;
}

.article-category {
    background-color: #20b2aa;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.article-body {
    margin-bottom: 60px;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #333;
    border-bottom: 2px solid #20b2aa;
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid #20b2aa;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body .highlight-box {
    background-color: #e8f5f4;
    border: 1px solid #20b2aa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.article-body .highlight-box h4 {
    color: #20b2aa;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 相关文章 */
.related-articles {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-article-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
}

.related-article-title a {
    color: inherit;
    text-decoration: none;
}

.related-article-title a:hover {
    color: #20b2aa;
}

.related-article-meta {
    font-size: 12px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-featured-image img {
        height: 250px;
    }
    
    .related-articles {
        padding: 20px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-featured-image img {
        height: 200px;
    }
}

