/* 文章页面专用样式 */
.articlepage {
    background-color: #f8f9fa;
}

.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 面包屑导航增强 */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: #009688;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00796b;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #666;
    font-weight: 500;
}

/* 单篇文章样式增强 */
.single-article {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    position: relative;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-header .article-category {
    display: inline-block;
    background: linear-gradient(135deg, #009688, #4DB6AC);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 150, 136, 0.3);
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-meta i {
    color: #009688;
    margin-right: 5px;
}

.views {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
}

/* 文章特色图增强 */
.article-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    padding: 0 20px;
}

/* 文章内容样式增强 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-top: 30px;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.article-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #444;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #555;
}

.article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-content a {
    color: #009688;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.article-content a:hover {
    color: #00796b;
    border-bottom-color: #00796b;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid #009688;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.article-content thead {
    background: linear-gradient(135deg, #009688, #4DB6AC);
    color: white;
}

.article-content th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content th:last-child {
    border-right: none;
}

.article-content td {
    padding: 12px 15px;
    border: 1px solid #eee;
}

.article-content tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.article-content tbody tr:hover {
    background-color: #f0f0f0;
}

/* 文章页脚样式 */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.article-tags {
    margin-bottom: 30px;
}

.article-tags h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-tags h3 i {
    color: #009688;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tags-list .tag:hover {
    background: #009688;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
    border-color: #009688;
}

/* 分享按钮样式增强 */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
}

.share-buttons span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.share-social-icons {
    display: flex;
    gap: 10px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-buttons a.facebook:hover { background: #1877f2; color: white; }
.share-buttons a.twitter:hover { background: #1da1f2; color: white; }
.share-buttons a.linkedin:hover { background: #0077b5; color: white; }
.share-buttons a.email:hover { background: #ea4335; color: white; }
.share-buttons a.copy:hover { background: #6c757d; color: white; }

.share-buttons a .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.share-buttons a:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 推荐文章样式增强 */
.related-articles {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.related-articles h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.related-articles h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #009688, #4DB6AC);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-article {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-article a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content time {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 作者信息框 */
.author-box {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #009688;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.author-title {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        padding: 0 15px;
    }
    
    .single-article {
        padding: 25px;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .meta-left, .meta-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-content h2 {
        font-size: 1.8rem;
    }
    
    .article-content h3 {
        font-size: 1.4rem;
    }
    
    .related-articles {
        padding: 25px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-social-icons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .related-articles h2 {
        font-size: 1.5rem;
    }
}