/* 新闻详情页样式 */
:root {
    --primary-color: #2c5aa0;
    --primary-gradient: linear-gradient(135deg, #2c5aa0, #4a90e2);
    --secondary-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --accent-color: #ff6b35;
    --accent-gradient: linear-gradient(135deg, #ff6b35, #f7931e);
    --highlight-color: #ffd700;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-lighter: #f9fafb;
    --white: #ffffff;
    --transition-standard: all 0.3s ease;
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 页面头部横幅 */
.news-detail-hero {
    position: relative;
    background: var(--primary-gradient);
    padding: 60px 0 30px;
    overflow: hidden;
    color: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles,
.hero-dna-helix,
.hero-molecules {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 粒子动画 */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
}

/* DNA螺旋 */
.dna-rung {
    position: absolute;
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    right: 10%;
    transform-origin: center;
    animation: dnaRotate 8s infinite linear;
}

@keyframes dnaRotate {
    0% {
        transform: rotate(0deg) translateX(0);
        opacity: 0.1;
    }
    50% {
        transform: rotate(180deg) translateX(30px);
        opacity: 0.4;
    }
    100% {
        transform: rotate(360deg) translateX(0);
        opacity: 0.1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-standard);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb .current {
    color: var(--white);
    font-weight: 500;
}

/* 新闻详情内容区 */
.news-detail-content {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* 主内容区 */
.news-detail-main {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
}

.news-detail-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-medium);
}

.news-category {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.news-date, .news-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm1-13h-2v6l5.2 3.2.8-1.3-4-2.4V7z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.news-views::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M12 4.5C7 4.5 2.7 7.6 1 12c1.7 4.4 6 7.5 11 7.5s9.3-3.1 11-7.5c-1.7-4.4-6-7.5-11-7.5zm0 12.5c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zm0-8c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.news-detail-title {
    font-size: 28px;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0 0 20px;
    font-weight: 700;
}

.news-detail-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 14px;
    color: var(--text-medium);
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-medium);
    transition: var(--transition-standard);
}

.share-icon:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
}

/* 特色图片 */
.news-detail-featured-image {
    width: 100%;
    position: relative;
}

.detail-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.image-caption {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 14px;
    padding: 10px 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* 新闻正文内容 */
.news-detail-body {
    padding: 30px;
    color: var(--text-dark);
    line-height: 1.7;
}

.news-detail-body h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.news-detail-body h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body ul, .news-detail-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-detail-body li {
    margin-bottom: 10px;
}

.news-detail-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    background-color: var(--bg-lighter);
    margin: 25px 0;
    font-style: italic;
}

.news-detail-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-medium);
    font-style: normal;
}
.news-detail-body img {
    width: 100%;
}
.news-detail-body table{
    width: 100% !important;
}

.highlight-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 0 0 30px;
}

/* 新闻底部信息 */
.news-detail-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tags-label {
    font-size: 14px;
    color: var(--text-medium);
}

.news-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition-standard);
}

.news-tag:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: var(--text-medium);
}

/* 侧边栏 */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
    padding: 25px;
}

.widget-title {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* 新闻分类 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-standard);
    background: var(--bg-light);
}

.category-item a:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

.category-item.active a {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 500;
}

/* 相关新闻 */
.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-news-item {
    display: flex;
    gap: 12px;
}

.related-news-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-content {
    flex: 1;
}

.related-title {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-standard);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-title:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 下载区域 */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-item {
    margin-bottom: 12px;
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-standard);
}

.download-link:hover {
    background: var(--accent-gradient);
    color: var(--white);
    transform: translateY(-2px);
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-text {
    flex: 1;
    font-size: 14px;
}

/* 相关产品区域 */
.related-products {
    padding: 50px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    transition: var(--transition-standard);
}

.product-card:hover {
    box-shadow: var(--box-shadow-medium);
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.product-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-standard);
}

.product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 淡入动画 */
.news-detail-content, 
.news-detail-sidebar {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.news-detail-content.visible, 
.news-detail-sidebar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .news-detail-hero {
        padding: 40px 0 20px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-detail-content {
        padding: 30px 0;
    }
    
    .news-detail-header {
        padding: 20px 20px 15px;
    }
    
    .news-detail-body {
        padding: 20px;
    }
    
    .news-detail-footer {
        padding: 15px 20px 20px;
    }
    
    .news-detail-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .highlight-text {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-detail-share {
        margin-top: 15px;
    }
    
    .news-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-avatar {
        margin-bottom: 10px;
    }
} 
/* 上一篇/下一篇导航样式 */
.news-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-item {
    flex: 0 0 48%;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 80px; /* 固定高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden; /* 防止内容溢出 */
}

.nav-item.prev {
    border-left: 4px solid #4a90e2;
}

.nav-item.next {
    border-right: 4px solid #4a90e2;
    text-align: right;
}

.nav-item span {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.nav-item a {
    font-weight: 600;
    color: #343a40;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%; /* 确保文本不会溢出 */
}

.nav-item a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-item {
        flex: 0 0 100%;
        height: auto; /* 移动端自适应高度 */
        min-height: 70px;
        margin-bottom: 10px;
    }
    
    .nav-item.next {
        text-align: left;
        border-right: none;
        border-left: 4px solid #4a90e2;
    }
}
/* 技术支持区域 */
.tech-support-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 80px 0;
}

.support-header {
    text-align: center;
    margin-bottom: 60px;
}

.support-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.support-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.support-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

.support-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.support-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-item p {
    opacity: 0.9;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}