/* 新闻页面专用样式 */

/* 新闻页面头部 */
.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.news-hero-content {
    position: relative;
    z-index: 2;
}

.news-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.news-hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* 新闻分类导航 */
.news-categories {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 新闻内容区域 */
.news-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 新闻项目 */
.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.news-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* 头条新闻 */
.news-item.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2rem;
}

.news-item.featured .news-image {
    height: 300px;
}

.news-item.featured .news-content-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item.featured h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

/* 普通新闻项目 */
.news-item:not(.featured) {
    display: flex;
    flex-direction: column;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.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;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge.update {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.news-badge.event {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.news-badge.strategy {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.news-badge.team {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.news-content-text {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content-text h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 600;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-dots {
    color: #6c757d;
    padding: 0 10px;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .news-item.featured {
        grid-template-columns: 1fr;
    }
    
    .news-item.featured .news-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 100px 0 60px;
    }
    
    .news-hero h1 {
        font-size: 2.5rem;
    }
    
    .news-hero p {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .news-content {
        padding: 2rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-item.featured .news-content-text {
        padding: 1.5rem;
    }
    
    .news-item.featured h2 {
        font-size: 1.5rem;
    }
    
    .news-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 8px 14px;
    }
    
    .news-content-text {
        padding: 1rem;
    }
    
    .news-content-text h3 {
        font-size: 1.1rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeInUp 0.6s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 滚动条样式 */
.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}

.category-tabs::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
