/* 新闻资讯页面专用样式 */

/* 新闻分类 */
.news-categories {
    padding: 30px 0;
    background: #f7fafc;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 2px solid #002FA7;
    background: transparent;
    color: #002FA7;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 47, 167, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.tab-btn:hover:before,
.tab-btn.active:before {
    width: 100%;
    height: 100%;
}

.tab-btn:hover,
.tab-btn.active {
    background: #002FA7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 47, 167, 0.3);
}

/* 新闻列表 */
.news-list {
    padding: 50px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 47, 167, 0.15);
    border-top-color: #002FA7;
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-source-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.news-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-image:after {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.news-tag {
    background: #e6f0ff;
    color: #002FA7;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    transition: color 0.3s;
}

.news-card:hover h3 {
    color: #002FA7;
}

.news-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more {
    color: #002FA7;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.read-more:hover {
    color: #a42227;
}

.read-more:hover:after {
    margin-left: 10px;
}

.news-note {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 30px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.page-btn:hover,
.page-btn.active {
    background: #002FA7;
    color: #fff;
    border-color: #002FA7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 47, 167, 0.3);
}

.page-btn.next {
    padding: 10px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
    }
}
