/* ========================================
   新闻及媒体页面样式
   ======================================== */

/* 新闻页面主容器 */
.news-page {
    padding-top: 100px;
    background: #ffffff;
    min-height: 100vh;
}

.news-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* 特色新闻区域 */
.featured-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: #ffffff;
    align-items: center;
}

.featured-news-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.featured-news-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

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

.featured-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.news-date {
    display: inline-block;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.featured-news-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-news-link:hover {
    gap: 0.75rem;
    color: #059669;
}

.featured-news-link i {
    transition: transform 0.3s ease;
}

.featured-news-link:hover i {
    transform: translateX(4px);
}

/* 选项卡 */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: #10b981;
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: #10b981;
    font-weight: 600;
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.tab-btn:hover {
    color: #10b981;
}

.tab-btn:hover:not(.active)::after {
    transform: translateX(-50%) scaleX(0.5);
}

/* 新闻网格区域 */
.news-grid-section {
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 新闻卡片 */
.news-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.news-card-link-wrapper {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

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

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

.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #10b981;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-date {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 400;
}

.news-card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-arrow {
    background: #059669;
    transform: scale(1.1);
}

.news-card-arrow i {
    font-size: 0.75rem;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more .btn {
    padding: 1rem 3rem;
    font-size: 1rem;
}

/* ========================================
   响应式设计
   ======================================== */

/* 响应式设计 */
@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-news-image img {
        height: 300px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-page .container {
        padding: 1.5rem 1rem;
    }

    .featured-news {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .featured-news-image img {
        height: 250px;
    }

    .featured-news-content {
        padding: 0;
    }

    .featured-news-title {
        font-size: 1.5rem;
    }

    .featured-news-desc {
        font-size: 0.9375rem;
    }

    .news-tabs {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .tab-btn {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .news-grid {
        gap: 1.25rem;
    }

    .news-card-link-wrapper {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .news-card-image {
        width: 100px;
        height: 100px;
    }

    .news-card-title {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .featured-news-title {
        font-size: 1.25rem;
    }

    .news-tabs {
        gap: 1.5rem;
    }

    .tab-btn {
        font-size: 0.9375rem;
    }

    .news-card-image {
        height: 180px;
    }
}

