/* 新闻资讯页面专用样式 */

/* 新闻资讯头部 */
.news-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.news-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 导航标签 */
.news-tabs {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.tabs-container {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid #e0e0e0;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    color: #007bff;
    background: #f8f9fa;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

/* 新闻内容区域 */
.news-content {
    background: white;
    padding: 60px 0;
    min-height: 60vh;
}

.news-list {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px;
}

/* 新闻项目 */
.news-item {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    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-text {
    flex: 1;
    padding: 25px;
    position: relative;
}

.news-date {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

.news-text .news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 10px 15px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.page-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.page-dots {
    color: #999;
    font-size: 0.9rem;
    padding: 0 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-header {
        height: 200px;
    }
    
    .news-title {
        font-size: 2.5rem;
    }
    
    .tabs-container {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 1rem;
        flex: 1;
        min-width: 120px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .news-text {
        padding: 20px;
    }
    
    .news-date {
        position: static;
        margin-bottom: 10px;
        text-align: right;
    }
    
    .news-text .news-title {
        font-size: 1.2rem;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-header {
        height: 150px;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .news-content {
        padding: 40px 0;
    }
    
    .news-text {
        padding: 15px;
    }
    
    .news-text .news-title {
        font-size: 1.1rem;
    }
    
    .news-description {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .page-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}
