/* 文章详情页样式 */

/* 面包屑导航 */
.breadcrumb-section {
    background: var(--gray-50);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--gray-500);
}

/* 文章详情区域 */
.article-detail-section {
    padding: 40px 0 80px;
    background: white;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 主内容区 */
.article-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-100);
}

/* 文章封面图片 */
.article-cover {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.article-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-cover:hover img {
    transform: scale(1.05);
}

.article-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1.1rem;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.article-summary {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--gray-600);
}

.article-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.article-content h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 文章标签 */
.article-tags {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.article-tags h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 文章导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-item {
    background: var(--gray-50);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.nav-icon {
    font-size: 1.2rem;
    margin: 0 15px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-item:hover .nav-icon {
    color: white;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.nav-item:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.nav-item:hover .nav-title {
    color: white;
}

/* 分享功能 */
.article-share {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid var(--gray-200);
}

.article-share h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-btn.wechat {
    background: #1aad19;
}

.share-btn.weibo {
    background: #e6162d;
}

.share-btn.qq {
    background: #12b7f5;
}

.share-btn.copy {
    background: var(--gray-600);
}

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

/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--secondary-color);
}

/* 关键词提示 */
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.keyword:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* 相关文章 */
.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-article {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-article:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.article-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
}

.article-info h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.article-info h4 a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info h4 a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* 热门文章 */
.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-article {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popular-article:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.popular-article .rank {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.popular-article .article-content {
    flex: 1;
}

.popular-article h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.popular-article h4 a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-article h4 a:hover {
    color: var(--primary-color);
}

/* 联系我们 */
.contact-info {
    text-align: center;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .article-detail-section {
        padding: 20px 0 60px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-link {
        padding: 15px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-article {
        flex-direction: column;
        text-align: center;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .popular-article {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-article .rank {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .keywords-list {
        justify-content: center;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
