/* 新闻详情页专用样式 */
/* 页面内部Banner */
.inner-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/hr.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: right !important;
    color: #fff;
    padding-right: 100px;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
}

.inner-banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 10px;
}

.inner-banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}



/* 主体容器样式 */
.news-detail-container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 40px;
    position: relative;
}

/* 导航箭头样式 */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #007bff;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-arrow:hover {
    background-color: #007bff;
    color: #fff;
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.nav-arrow i {
    font-size: 24px;
}

.nav-arrow span {
    display: none;
    margin: 0 10px;
    white-space: nowrap;
}

.nav-arrow:hover span {
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-arrow {
        padding: 10px;
    }
    
    .nav-arrow i {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
}

/* 新闻文章样式 */
.news-content {
    width: 100%;
    margin: 0 auto;
}

/* 新闻标题 */
.news-title {
    font-size: 2.2rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
    text-align: center;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.95rem;
}

.news-meta i {
    color: #007bff;
    width: 16px;
}

.news-meta .news-date,
.news-meta .news-category {
    background: none;
}

/* 新闻正文 */
.news-body {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.news-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-body h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.news-body h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 15px 0;
}

.news-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    color: #666;
}

.news-body ul, .news-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-body li {
    margin-bottom: 8px;
}

/* 相关新闻模块 */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.related-news h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-news h3::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #007bff;
    border-radius: 2px;
}

.related-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.related-news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-content h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-date {
    font-size: 0.85rem;
    color: #666;
}

/* 分享按钮 */
.share-buttons {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.share-buttons h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.share-button-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-button:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.share-button.weibo {
    color: #e6162d;
    border-color: #e6162d;
}

.share-button.wechat {
    color: #09bb07;
    border-color: #09bb07;
}

.share-button.qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

/* 评论区域 */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.comments-header h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.comments-count {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 响应式设计 */

/* 大屏幕 (桌面) */
@media (min-width: 1200px) {
    .news-detail-container {
        padding: 50px 40px;
        max-width: 1450px;
        width: 100%;
        margin: 0 auto;
    }
    
    .news-title {
        font-size: 2.5rem;
    }
}

/* 平板电脑 */
@media (max-width: 1199px) and (min-width: 768px) {
    .news-detail-container {
        margin: 20px auto;
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-meta {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .related-news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media (max-width: 767px) {
    .news-detail-container {
        margin: 10px;
        padding: 20px 15px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .news-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .news-meta span {
        font-size: 0.9rem;
    }
    
    .news-body {
        font-size: 1rem;
    }
    
    .news-body h2 {
        font-size: 1.3rem;
    }
    
    .news-body h3 {
        font-size: 1.2rem;
    }
    
    .related-news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-news-item {
        flex-direction: row;
        gap: 10px;
    }
    
    .related-news-thumb {
        width: 80px;
        height: 60px;
    }
    
    .share-button-list {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .share-button {
        flex: 0 0 calc(50% - 5px);
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .news-detail-container {
        margin: 5px;
        padding: 15px 10px;
    }
    
    .news-title {
        font-size: 1.4rem;
    }
    
    .news-meta {
        padding: 12px;
    }
    
    .news-body {
        font-size: 0.95rem;
    }
    
    .related-news h3 {
        font-size: 1.2rem;
    }
    
    .share-button {
        flex: 0 0 100%;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 优化阅读体验 */
@media (min-width: 768px) {
    .news-body {
        line-height: 1.8;
        font-size: 1.1rem;
    }
}

/* 优化移动端字体大小 */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
}

/* 优化图片显示 */
.news-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* 优化代码块显示 */
.news-body pre {
    background-color: #f4f4f4;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* 优化引用样式 */
.news-body blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* 打印样式 */
@media print {
    .news-detail-container {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 20px 0;
    }
    
    .share-buttons,
    .comments-section {
        display: none;
    }
    
    .news-title {
        color: #000;
        border-bottom-color: #000;
    }
    
    .news-meta {
        background: none;
        border: 1px solid #ccc;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .news-detail-container {
        border: 2px solid #000;
    }
    
    .news-title {
        border-bottom-color: #000;
    }
    
    .news-meta {
        border-left-color: #000;
        background: #f0f0f0;
    }
    
    .related-news-item {
        border-color: #000;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .related-news-item,
    .share-button {
        transition: none;
    }
    
    .related-news-item:hover {
        transform: none;
    }
}