/* 新闻详情页面样式 */

/* 主要内容区域 */
.news-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: white;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #45a049;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 文章标题区域 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.publish-date {
    color: #666;
    font-size: 14px;
}

/* 文章图片 */
.article-image {
    margin: 40px 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    text-indent: 2em; /* 首行缩进 */
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* 文章底部 */
.article-footer {
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

/* 标签 */
.tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: #e8f5e8;
    color: #4CAF50;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #4CAF50;
    color: white;
}

/* 分享 */
.share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.share-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-1px);
}

/* 返回按钮 */
.back-to-list {
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.back-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-detail {
        padding: 30px 15px 40px;
    }
    
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .breadcrumb .current {
        display: block;
        margin-top: 5px;
        font-size: 12px;
        color: #666;
    }
    
    .article-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .article-title {
        font-size: 22px;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .article-meta {
        justify-content: flex-start;
        font-size: 13px;
    }
    
    .article-image {
        margin: 30px 0;
    }
    
    .article-image img {
        border-radius: 6px;
    }
    
    .article-content p {
        font-size: 15px;
        margin-bottom: 18px;
        text-indent: 1.5em;
    }
    
    .article-footer {
        padding: 25px 0;
    }
    
    .tags {
        margin-bottom: 15px;
    }
    
    .tag {
        font-size: 11px;
        padding: 5px 10px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
    
    .share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-text {
        font-size: 13px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .back-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-detail {
        padding: 20px 10px 30px;
    }
    
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .article-header {
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .article-title {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .article-meta {
        font-size: 12px;
    }
    
    .article-image {
        margin: 25px 0;
    }
    
    .article-content p {
        font-size: 14px;
        margin-bottom: 16px;
        text-indent: 1em;
        line-height: 1.7;
    }
    
    .article-footer {
        padding: 20px 0;
    }
    
    .tags {
        margin-bottom: 12px;
    }
    
    .tag {
        font-size: 10px;
        padding: 4px 8px;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .share {
        gap: 8px;
    }
    
    .share-text {
        font-size: 12px;
    }
    
    .share-btn {
        padding: 5px 10px;
        font-size: 11px;
        margin-right: 6px;
        margin-bottom: 5px;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-detail {
    animation: fadeInUp 0.6s ease-out;
}

/* 文章内容滚动动画 */
.article-content p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.article-content p:nth-child(1) { animation-delay: 0.1s; }
.article-content p:nth-child(2) { animation-delay: 0.2s; }
.article-content p:nth-child(3) { animation-delay: 0.3s; }
.article-content p:nth-child(4) { animation-delay: 0.4s; }
.article-content p:nth-child(5) { animation-delay: 0.5s; }
.article-content p:nth-child(6) { animation-delay: 0.6s; } 