/* 
   新闻详细页面样式
   News Detail Page Styles
   蓝色系配色方案
*/

/* 新闻详细内容区域 */
.news-detail-section {
    background: #f8fafc;
    padding: 0;
}

.news-detail-section .container {
    padding-left: 15px;
    padding-right: 15px;
}

.news-detail-section .row {
    margin-left: 0;
    margin-right: 0;
}

.news-detail-section .col-lg-8,
.news-detail-section .col-lg-4 {
    padding-left: 15px;
    padding-right: 15px;
}

.news-detail-article {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* 新闻标题 */
.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 新闻元信息 */
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.news-meta-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.news-category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 新闻主图 */
.news-detail-image {
    margin-bottom: 35px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.news-detail-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.news-detail-image:hover img {
    transform: scale(1.02);
}

/* 新闻正文 */
.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 新闻正文中的图片 */
.news-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-detail-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3b82f6;
}

.news-detail-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.news-detail-content strong {
    color: #2563eb;
    font-weight: 600;
}

/* 分享按钮区域 */
.news-share-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px solid rgba(59, 130, 246, 0.15);
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.share-wechat {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
}

.share-weibo {
    background: linear-gradient(135deg, #e6162d 0%, #c41429 100%);
}

.share-qq {
    background: linear-gradient(135deg, #12b7f5 0%, #0fa3db 100%);
}

.share-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 上一篇/下一篇导航 */
.news-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.nav-prev,
.nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    transform: translateX(-5px);
}

.nav-next:hover {
    transform: translateX(5px);
}

.nav-prev i,
.nav-next i {
    font-size: 1.5rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* 侧边栏 */
.news-sidebar-detail {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sidebar-widget:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.1);
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0e7ff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 3px;
}

.widget-title i {
    color: #3b82f6;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 返回列表按钮 */
.back-to-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    border: 2px solid transparent;
}

.back-to-list-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
    border-color: #60a5fa;
}

.back-to-list-btn:active {
    transform: translateY(-1px);
}

/* 相关新闻列表 */
.related-news-list,
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.related-news-item,
.hot-news-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: #fafbff;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-news-item a,
.hot-news-item a {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.related-news-item:hover,
.hot-news-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-color: #3b82f6;
    transform: translateX(8px);
    color: #2563eb;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.related-news-item img,
.hot-news-item img,
.related-news-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-news-item:hover img,
.hot-news-item:hover img {
    transform: scale(1.05);
    border-color: #3b82f6;
    box-shadow: 0 5px 16px rgba(59, 130, 246, 0.3);
}

.related-news-info,
.hot-news-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.related-news-item h4,
.hot-news-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.related-news-item:hover h4,
.hot-news-item:hover h4 {
    color: #2563eb;
}

.related-news-date,
.hot-news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.related-news-item:hover .related-news-date,
.hot-news-item:hover .hot-news-date {
    color: #3b82f6;
}

.related-news-date::before,
.hot-news-date::before {
    content: '📅';
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .news-detail-article {
        padding: 30px 20px;
    }
    
    .news-detail-title {
        font-size: 2rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-detail-image {
        margin-bottom: 25px;
        border-radius: 10px;
    }
    
    .news-detail-image img {
        border-radius: 10px;
    }
    
    .news-navigation {
        flex-direction: column;
    }
    
    .nav-prev:hover,
    .nav-next:hover {
        transform: translateY(-3px);
    }
    
    .news-sidebar-detail {
        position: static;
        margin-top: 30px;
    }
    
    .news-share-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 767.98px) {
    .news-detail-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .news-detail-section .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }
    
    .news-detail-section .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .news-detail-section .col-lg-8,
    .news-detail-section .col-lg-4 {
        padding-left: 5px;
        padding-right: 5px;
        width: 100%;
        max-width: 100%;
    }
    
    .news-detail-article {
        padding: 20px 15px;
        border-radius: 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .news-detail-meta {
        gap: 10px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .news-meta-item {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .news-detail-image {
        margin-bottom: 20px;
        border-radius: 10px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .news-detail-image img {
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .news-detail-content {
        font-size: 0.95rem;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .news-detail-content h3 {
        font-size: 1.3rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    .news-detail-content h4 {
        font-size: 1.1rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .news-detail-content p {
        margin-bottom: 15px;
        text-align: left;
    }
    
    .news-detail-content ul,
    .news-detail-content ol {
        padding-left: 20px;
        margin-bottom: 20px;
    }
    
    .news-detail-content img {
        max-width: 100%;
        height: auto;
        margin: 15px auto;
    }
    
    .news-tags-section {
        margin-bottom: 25px;
    }
    
    .news-share-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .share-label {
        font-size: 0.95rem;
    }
    
    .share-buttons {
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .news-navigation {
        gap: 15px;
        padding-top: 25px;
    }
    
    .nav-prev,
    .nav-next {
        padding: 15px;
        gap: 12px;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .back-to-list-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* 移动端保持横向布局，但调整图片大小 */
    .related-news-item,
    .hot-news-item {
        padding: 15px;
        gap: 12px;
    }
    
    .related-news-item a,
    .hot-news-item a {
        gap: 12px;
    }
    
    .related-news-item img,
    .hot-news-item img,
    .related-news-image {
        width: 70px;
        height: 70px;
    }
    
    .related-news-item h4,
    .hot-news-item h4 {
        font-size: 0.9rem;
    }
    
    .related-news-date,
    .hot-news-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-detail-article {
        padding: 15px 10px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .news-detail-title {
        font-size: 1.3rem;
    }
    
    .news-detail-image {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }
    
    .news-detail-content {
        font-size: 0.9rem;
    }
    
    .news-detail-content h3 {
        font-size: 1.2rem;
    }
    
    .news-detail-content h4 {
        font-size: 1rem;
    }
}
