/* 新闻列表页专用样式 */

/* 新闻页面头部横幅 */
.news-hero {
    position: relative;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero-dna-helix {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"><path d="M20,10 Q50,30 80,10 Q50,50 20,70 Q50,90 80,70 Q50,130 20,150 Q50,170 80,150 Q50,190 20,190" stroke="white" stroke-width="2" fill="none"/><path d="M80,10 Q50,30 20,10 Q50,50 80,70 Q50,90 20,70 Q50,130 80,150 Q50,170 20,150 Q50,190 80,190" stroke="white" stroke-width="2" fill="none"/></svg>') no-repeat center;
    background-size: contain;
    animation: dnaRotate 15s linear infinite;
}

@keyframes dnaRotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.separator {
    margin: 0 10px;
    opacity: 0.6;
}

.current {
    color: #ffd700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* 新闻内容区域 */
.news-content {
    background: #f8f9fa;
    padding: 20px;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.news-main {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.news-grid {
    display: grid;
    gap: 40px;
}

/* 新闻项目样式 */
.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44,90,160,0.15);
    border-color: #2c5aa0;
}

.news-item:hover::before {
    transform: scaleY(1);
}

/* 特色新闻 */
.news-item.featured {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, rgba(44,90,160,0.02), rgba(74,144,226,0.02));
    border: 2px solid #2c5aa0;
    position: relative;
}

.news-item.featured .news-image {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

.news-item.featured .news-title {
    font-size: 1.8rem;
    color: #2c5aa0;
}

.news-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 230px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-content-right{
    background: #f8f9fa;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-category {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.news-date {
    color: #666;
}

.news-views {
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #2c5aa0;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边栏样式 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.widget-title {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(44,90,160,0.1);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
}

/* 热门新闻 */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.hot-news-item:hover {
    background: rgba(44,90,160,0.05);
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-content {
    flex: 1;
}

.hot-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.hot-title:hover {
    color: #2c5aa0;
}

.hot-views {
    font-size: 12px;
    color: #999;
}

/* 新闻分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

.category-item:hover a {
    color: #2c5aa0;
    padding-left: 25px;
}

.category-item.active {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
}

.category-item.active a {
    color: #ffffff;
    font-weight: 600;
}

/* 导航栏活跃状态 */
.nav-menu > li.active > a {
    color: #2c5aa0;
}

.nav-menu > li.active > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-item {
        grid-template-columns: 250px 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .filter-tabs {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .news-filter .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .news-main {
        padding: 20px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-item.featured .news-image {
        height: 250px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .hot-news-item {
        padding: 10px;
    }
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        display: inline-block;
    }
    .news-title{ margin:0 3px 0 7px;}
    .news-category{ margin-left: 8px;}
    .news-date{ float: right; margin-right: 8px;}
    .news-excerpt{ padding: 0 3px 0 7px;}
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .news-content,.news-content-right {
        padding: 20px 0;
    }
    
    .news-main {
        padding: 15px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        display: inline-block;
    }
    .news-title{ margin:0 3px 0 7px;}
    .news-category{ margin-left: 8px;}
    .news-date{ float: right; margin-right: 8px;}
    .news-excerpt{ padding: 0 3px 0 7px;}
} 