/* 新闻详情页面样式 */

.main-container {
    max-width: 1500px;
    width: 1500px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f8f9fa;
}

.news-detail-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
    color: #0d5e30;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 12px;
    color: #999;
}

.news-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.news-title {
    font-size: 32px;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #777;
    font-size: 14px;
}

.news-date {
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-share {
    display: flex;
    gap: 15px;
    align-items: center;
}

.news-share-text {
    margin-right: 5px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.weixin:hover {
    background-color: #2aae67;
    color: #fff;
}

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

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

.share-btn.email:hover {
    background-color: #0072c6;
    color: #fff;
}

.news-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.news-featured-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
    margin-bottom: 40px;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content h2 {
    font-size: 24px;
    color: #333;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 15px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

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

.news-content li {
    margin-bottom: 10px;
}

.news-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

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

.tag {
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

.news-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn i {
    margin-right: 5px;
    font-size: 18px;
}

.action-btn:hover {
    color: var(--primary-color);
}

.related-news {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    font-weight: 600;
}

.related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.related-item:hover {
    background-color: #f0f7f3;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item:hover .related-item-title {
    color: var(--primary-color);
}

.related-item-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.related-item-date i {
    margin-right: 5px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-radius: 30px;
    color: #666;
    transition: all 0.3s;
    max-width: 45%;
}

.nav-button:hover {
    background-color: #e8f4ee;
    color: var(--primary-color);
}

.nav-button.prev i {
    margin-right: 8px;
}

.nav-button.next i {
    margin-left: 8px;
}

.nav-button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-to-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #f0f0f0;
    border-radius: 30px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
}

.back-to-list:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.back-to-list i {
    margin-right: 8px;
}

@media (max-width: 1200px) {
    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }
    
    .news-detail-container {
        padding: 25px 20px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-button {
        max-width: 100%;
    }
    
    .back-to-list {
        order: -1;
        margin-bottom: 15px;
        width: 100%;
    }
} 