/* 文章详情页样式 */
.article-section {
    padding: 80px 0;
}

.article-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.article-main {
    flex: 1;
    min-width: 65%;
}

.article-sidebar {
    width: 30%;
}

/* 文章标题和元数据 */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #777;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 6px;
}

/* 特色图片 */
.article-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.article-content {
    margin-bottom: 40px;
    line-height: 1.8;
}

.article-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    color: #444;
}

.article-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    font-size: 14px;
    color: #777;
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 0;
}

/* 引用样式 */
blockquote {
    border-left: 4px solid #3498db;
    padding: 20px;
    background-color: #f8f9fa;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
}

/* 文章标签 */
.article-tags {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tags-title {
    font-weight: 600;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f2f5;
    color: #555;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #3498db;
    color: #fff;
}

/* 分享按钮 */
.article-share {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.share-title {
    font-weight: 600;
    margin-right: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: #3498db;
    color: #fff;
}

/* 作者信息 */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: #555;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #3498db;
}

/* 相关文章 */
.related-articles {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #3498db;
}

.related-date {
    font-size: 13px;
    color: #777;
}

/* 侧边栏样式 */
.sidebar-widget {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #3498db;
}

/* 搜索框 */
.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    border-color: #3498db;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-form button:hover {
    color: #3498db;
}

/* 热门文章 */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
}

.post-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
}

.post-content h4 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h4 a:hover {
    color: #3498db;
}

.post-date {
    font-size: 13px;
    color: #777;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }
    
    .article-main, .article-sidebar {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}