/* ニュースルーム (news) CSS */
.news-hero {
    height: 480px;
    background-image: url('/images/news/img-news-banner.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.news-hero h1 {
    font-size: 60px;
    font-weight: 500;
    color: #ffffff;
}

.main {
    background-color: #f2f7fb;
    padding-top: 80px;
    padding-bottom: 132px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    text-decoration: none;
    padding: 24px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 24px; /* 代替 gap-24 */
}

/* 渐变装饰条 */
.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 4px;
    background: #ffffff; 
    transition: background 0.3s ease;
}

.news-item:hover::before,
.news-item.active::before {
    background: linear-gradient(265deg, #1892EE 5.11%, #0032D6 93.64%);
}

.news-item:hover .news-title {
    color: #0032D6;
}

.news-img-box {
    width: 224px;
    aspect-ratio: 16 / 9;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #E6E8EB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    line-height: 16px;
    font-size: 12px;
    color: #4A4D56;
}

.news-date {
    flex-shrink: 0;
    color: inherit;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #051243;
    line-height: 28px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 56px; /* 强制 2 行高度，防止位置错位 */
}

.news-location {
    flex-shrink: 0;
    text-align: right;
    color: inherit;
}

/* Pagination 下方分页组件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    gap: 20px;
}

.page-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-btn img {
    width: 48px;
    height: 48px;
}

.page-btn:hover {
    opacity: 0.8;
}

.page-num {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #7C8190;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.page-num:hover,
.page-num.active {
    color: #0032D6;
}

.rotate-180-y {
    transform: scaleX(-1);
}

/* =========================================
   Responsive Design (响应式)
   ========================================= */
@media screen and (max-width: 768px) {
    .news-hero {
        height: 200px;
        display: flex;
        align-items: center;
    }

    .news-hero h1 {
        font-size: 32px;
        padding: 0 16px;
    }

    .main {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .news-list {
        gap: 8px;
    }

    .news-item {
        padding: 12px;
        gap: 12px;
    }

    .news-img-box {
        width: 120px;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .news-content {
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 16px;
    }

    .news-meta {
        font-size: 11px;
        line-height: 16px;
        gap: 8px;
    }

    .news-title {
        font-size: 14px;
        line-height: 20px;
        min-height: 40px; /* 手机端 2 行高度 */
    }

    .pagination {
        margin-top: 32px;
        gap: 12px;
    }

    .page-btn, .page-btn img {
        width: 36px;
        height: 36px;
    }

    .page-num {
        font-size: 16px;
    }
}
