/* 新闻中心区块 */
.news {
    padding: 5rem 5%;
    background: #f9fafb;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.news .section-title h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.news .section-title p {
    font-size: 1rem;
    color: #64748b;
}

/* 标签切换 */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.news-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.news-tab.active {
    color: var(--white);
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
}

.tab-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 新闻内容区 */
.news-content {
    display: none;
}

.news-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 新闻卡片 */
.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 58, 95, 0.12);
}

/* 新闻图片 */
.news-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

/* 日期标签 */
.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-year {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.news-day {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

/* 新闻信息 */
.news-info {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.news-category.industry-tag {
    background: rgba(201, 169, 97, 0.1);
    color: #c9a961;
}

.news-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #1e3a5f;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #c9a961;
}

/* 卡片动画延迟 */
.news-content.active .news-card:nth-child(1) { transition-delay: 0.1s; }
.news-content.active .news-card:nth-child(2) { transition-delay: 0.2s; }
.news-content.active .news-card:nth-child(3) { transition-delay: 0.3s; }

/* 查看更多按钮 */
.news-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.news-more-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
}

.news-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.35);
    background: linear-gradient(135deg, #2d5a8e 0%, #1e3a5f 100%);
}
