/* 新闻详情页面样式 - 修复版 */
:root {
    --primary-bg: #0a0f1a;
    --secondary-bg: #111827;
    --card-bg: #1a2332;
    --card-hover-bg: #2d3748;
    --border-color: #374151;
    --text-primary: #ffffff;
    --text-secondary: #c0c8e7;
    --text-muted: #8a94a6;
    --accent-color: #4d9eff;
    --accent-hover: #3d8eef;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-radius: 16px;
    --shadow-primary: 0 8px 32px rgba(77, 158, 255, 0.15);
    --shadow-secondary: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 新闻详情页面容器 */
.news-detail-section {
    background: var(--primary-bg);
    min-height: 100vh;
    padding: 100px 0 40px 0; /* 大幅增加顶部内边距，确保不被主导航遮住 */
    margin-top: 20px; /* 额外增加顶部外边距 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 25px 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
    font-size: 15px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100; /* 大幅提高层级 */
    margin-top: 20px; /* 额外增加顶部外边距 */
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
    background: rgba(77, 158, 255, 0.1);
    transform: translateY(-2px);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(77, 158, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
}

.breadcrumb i {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 5px;
}

/* 新闻详情主体 */
.news-detail-content {
    margin-bottom: 80px;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
    align-items: stretch; /* 改为stretch，让两列高度一致 */
}

/* 新闻主要内容 */
.news-main {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    height: fit-content; /* 让主内容区域适应内容高度 */
    display: flex;
    flex-direction: column;
}

.news-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #6bb6ff, var(--accent-color));
    animation: shimmer 3s ease-in-out infinite;
}

.news-article {
    padding: 50px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 15px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(77, 158, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(77, 158, 255, 0.2);
    transition: var(--transition);
}

.meta-item:hover {
    background: rgba(77, 158, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.meta-item i {
    color: var(--accent-color);
    font-size: 16px;
}

.article-image {
    margin: 40px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    position: relative;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-summary {
    margin: 40px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(77, 158, 255, 0.1), rgba(77, 158, 255, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.article-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(77, 158, 255, 0.1), transparent);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.article-summary p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 16px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.article-content {
    margin: 40px 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
    position: relative;
    overflow: hidden;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #6bb6ff);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-primary);
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.article-content h1::before,
.article-content h2::before,
.article-content h3::before,
.article-content h4::before,
.article-content h5::before,
.article-content h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: var(--shadow-secondary);
}

.article-content blockquote {
    margin: 25px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(77, 158, 255, 0.1), rgba(77, 158, 255, 0.05));
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    color: rgba(77, 158, 255, 0.3);
    font-family: serif;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    position: relative;
}

.article-content ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.article-footer {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tags-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
}

.tag {
    padding: 8px 16px;
    background: rgba(77, 158, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-hover-bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    font-size: 18px;
}

.share-btn:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

/* 新闻侧边栏 */
.news-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content; /* 让侧边栏适应内容高度 */
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
    margin-bottom: 35px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #6bb6ff);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding: 25px;
    background: rgba(77, 158, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.info-list {
    padding: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(77, 158, 255, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.quick-nav {
    padding: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.nav-link:last-child {
    margin-bottom: 0;
}

.nav-link:hover {
    background: rgba(77, 158, 255, 0.1);
    color: var(--accent-color);
    transform: translateX(8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-primary);
}

.nav-link i {
    font-size: 20px;
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

/* 相关新闻 */
.related-news {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.view-more {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(77, 158, 255, 0.1);
    border-radius: 25px;
    border: 1px solid var(--accent-color);
}

.view-more:hover {
    color: var(--text-primary);
    background: var(--accent-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #6bb6ff);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.news-card a {
    text-decoration: none;
    color: inherit;
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-content .news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.news-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-views i {
    color: var(--accent-color);
    font-size: 14px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 80px 20px;
    color: var(--error-color);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.error-icon {
    font-size: 60px;
    margin-bottom: 25px;
    color: var(--error-color);
}

.error h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.error p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 16px;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-style: italic;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* 暂无内容样式 */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-content i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.no-content p:first-of-type {
    font-weight: 600;
    color: var(--text-secondary);
}

/* 暂无标签样式 */
.no-tags {
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 16px;
    background: rgba(77, 158, 255, 0.05);
    border-radius: 20px;
    border: 1px dashed var(--border-color);
}

/* 动画效果 */
@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* 响应式设计调整 */
@media (max-width: 1200px) {
    .news-detail-section {
        padding: 50px 0 30px 0; /* 调整顶部内边距 */
    }
    
    .news-detail-layout {
        gap: 40px;
        grid-template-columns: 2fr 1fr;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .news-article {
        padding: 40px;
    }
    
    .article-content {
        padding: 30px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .news-detail-section {
        padding: 40px 0 20px 0; /* 移动端调整顶部内边距 */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .breadcrumb {
        padding: 20px;
        margin-bottom: 30px;
        font-size: 14px;
        gap: 10px;
    }
    
    .news-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-sidebar {
        position: static;
        height: auto; /* 移动端取消固定高度 */
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .news-article {
        padding: 30px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .news-detail-section {
        padding: 30px 0 15px 0; /* 小屏幕进一步调整顶部内边距 */
    }
    
    .breadcrumb {
        font-size: 13px;
        gap: 8px;
        margin-bottom: 25px;
        padding: 15px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .news-article {
        padding: 25px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .meta-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
