/* news-detail.css - 新闻详情页面专用样式 */

/* 新闻详情页面 Hero 区域 */
.news-detail-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 50px;
    margin-top: 0;
}

.news-detail-hero-content h1 {
    color: white;
    font-size: 2.8rem;
    margin: 20px 0 15px;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.breadcrumb a, .breadcrumb span {
    color: #ddd;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumb span {
    color: #3498db;
    font-weight: 500;
}

.news-header {
    max-width: 900px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ddd;
}

.news-category {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.news-date, .news-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-subtitle {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.6;
    max-width: 800px;
}

/* 新闻详情主区域 */
.news-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* 新闻内容区域 */
.content-body {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-body h2 {
    color: #2c3e50;
    margin: 40px 0 20px;
    font-size: 1.6rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.content-body h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-size: 1.3rem;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body ul, .content-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-body li {
    margin-bottom: 10px;
    color: #5a6c7d;
}

.content-body strong {
    color: #2c3e50;
    font-weight: 600;
}

.news-signoff {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 4px solid #3498db;
}

.news-signoff p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* 新闻标签 */
.news-tags {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-tags h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    background-color: #3498db;
    color: white;
}

/* 社交分享 */
.social-sharing {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.social-sharing h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.share-btn.facebook {
    background-color: #f0f3f8;
    color: #3b5998;
    border: 1px solid #d8dfee;
}

.share-btn.facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-btn.twitter {
    background-color: #f0f8fb;
    color: #1da1f2;
    border: 1px solid #d1e7f5;
}

.share-btn.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background-color: #f0f7fc;
    color: #0077b5;
    border: 1px solid #cfe2f1;
}

.share-btn.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-btn.email {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.share-btn.email:hover {
    background-color: #495057;
    color: white;
}

/* 新闻侧边栏 */
.news-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 作者信息 */
.author-info {
    line-height: 1.6;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.author-bio {
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* 最近新闻 */
.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-news-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-news-title {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.recent-news-title:hover {
    color: #3498db;
}

.recent-news-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* 分类列表 */
.categories-list {
    list-style: none;
    padding-left: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    color: #5a6c7d;
    transition: color 0.3s;
    padding: 8px 0;
}

.category-link:hover {
    color: #3498db;
}

.category-count {
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* 侧边栏通讯订阅 */
.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.sidebar-newsletter-form input:focus {
    outline: none;
    border-color: #3498db;
}

.sidebar-newsletter-form .btn-primary {
    padding: 12px;
    font-weight: 600;
}

/* 新闻导航 */
.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.prev-news, .next-news, .all-news {
    display: flex;
    flex-direction: column;
    color: #495057;
    transition: color 0.3s;
    max-width: 250px;
}

.prev-news:hover, .next-news:hover, .all-news:hover {
    color: #3498db;
}

.nav-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-title {
    font-weight: 500;
    color: #2c3e50;
}

.all-news {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
}

/* 相关文章区域 */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-article {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.related-article-category {
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
}

.related-article-date {
    color: #7f8c8d;
}

.related-article h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.related-article h3 a {
    color: inherit;
    transition: color 0.3s;
}

.related-article h3 a:hover {
    color: #3498db;
}

.related-article p {
    color: #5a6c7d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-article {
    color: #3498db;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.read-article:hover {
    color: #2980b9;
}

.read-article i {
    transition: transform 0.3s;
}

.read-article:hover i {
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-sidebar {
        position: static;
    }
    
    .news-detail-hero-content h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .news-detail-hero {
        padding: 80px 0 40px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .prev-news, .next-news {
        max-width: 100%;
    }
    
    .all-news {
        order: -1;
        margin-bottom: 10px;
    }
    
    .related-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-detail-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .news-subtitle {
        font-size: 1rem;
    }
    
    .sharing-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .content-body h2 {
        font-size: 1.4rem;
    }
}