/* 新闻资讯页样式 */

.page-news {
    background: #ffffff;
    /* 为固定导航预留高度 */
    padding-top: var(--header-height);
}

.page-news .container {
    /* 不限制 max-width，左右固定留白 120px，与产品/方案页一致 */
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 120px;
    padding-right: 120px;
    box-sizing: border-box;
}

/* ========== 白底导航 ========== */
.site-header--light {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.site-header--light.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.site-header--light .nav-list a {
    color: #1a1a1a;
}

.site-header--light .nav-list a::after {
    background: #0162e4;
    opacity: 0;
}

.site-header--light .nav-list a:hover::after,
.site-header--light .nav-list a.is-active::after {
    opacity: 1;
}

.site-header--light .logo img {
    /* logo_white 为蓝字透明底，适配白底导航 */
    filter: none;
}

.site-header--light .header-login {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.22);
    background: transparent;
}

.site-header--light .header-login:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ========== Banner：1920x640 ========== */
.news-hero {
    position: relative;
    width: 100%;
    /* 按素材比例 640/1920 ≈ 33.33vw */
    height: clamp(360px, 33.33vw, 640px);
    overflow: hidden;
    background-color: #0a3d8f;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 40, 100, 0.35) 0%,
        rgba(6, 40, 100, 0.2) 50%,
        rgba(6, 40, 100, 0.4) 100%
    );
    pointer-events: none;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    color: #ffffff;
}

.news-hero-title {
    margin: 0;
    font-size: clamp(40px, 4.2vw, 50px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.news-hero-en {
    margin: 12px 0 0;
    font-size: clamp(16px, 1.4vw, 24px);
    font-weight: 500;
    letter-spacing: 0.28em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

.news-hero-line {
    display: block;
    width: 32px;
    height: 4px;
    margin: 20px 0;
    background: #ffffff;
}

.news-hero-desc {
    margin: 0;
    font-size: clamp(14px, 1.1vw, 24px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.04em;
}

/* ========== 行业资讯区 ========== */
.news-section {
    background: #f5f7fa;
    padding: 72px 0 80px;
}

.news-section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.news-section-en {
    margin: 0;
    font-size: clamp(28px, 2.5vw, 50px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    color: #222222;
    text-transform: uppercase;
}

.news-section-cn {
    position: relative;
    display: inline-block;
    margin: 10px 0 0;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: #003680;
}

.news-section-cn::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -0;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    background: #0162e4;
    border-radius: 2px;
}

/* ========== 新闻卡片列表 ========== */
.news-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(10, 40, 100, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-sizing: border-box;
    transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
    box-shadow: 0 10px 32px rgba(1, 98, 228, 0.12);
    transform: translateY(-2px);
}

/* 缩略图：素材 480x320，列表展示按比例缩放 */
.news-card-media {
    flex: 0 0 240px;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    background: #e8eef6;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-card-media img {
    transform: scale(1.04);
}

/* 日期块：104x148，左距图 120px、右距正文 60px */
.news-card-date {
    flex: 0 0 104px;
    width: 104px;
    height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 60px 0 120px;
    padding: 0;
    opacity: 1;
    background: #ffffff;
    box-sizing: border-box;
    border: 1px solid rgba(1, 98, 228, 0.3);
    align-self: center;
}

.news-card-day {
    font-family: 'Alibaba PuHuiTi 3.0', 'Alibaba PuHuiTi', 'PingFang SC',
        'Microsoft YaHei', sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #003680;
    font-variant-numeric: tabular-nums;
}

.news-card-ym {
    margin-top: 8px;
    font-family: 'Alibaba PuHuiTi 3.0', 'Alibaba PuHuiTi', 'PingFang SC',
        'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #003680;
}

/* 正文区 */
.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.news-card-title {
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #222222;
}

.news-card-title a {
    color: inherit;
    transition: color var(--transition);
}

.news-card-title a:hover {
    color: #0162e4;
}

.news-card-summary {
    margin: 12px 0 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #333333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
    margin-top: auto;
    padding-top: 16px;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 26px;
    font-weight: normal;
    line-height: normal;
    text-align: justify;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #0162e4;
    transition: opacity var(--transition), transform var(--transition);
}

.news-card-more img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.news-card-more:hover {
    opacity: 0.85;
}

.news-card-more:hover img {
    transform: translateX(4px);
}

/* ========== 分页 ========== */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

/* 圆形分页项公共样式 */
.news-page-btn,
.news-page-num,
.news-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #999999;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
        border-color var(--transition), box-shadow var(--transition);
}

.news-page-btn {
    flex-shrink: 0;
}

.news-page-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.news-page-btn:hover:not(:disabled),
.news-page-num:hover {
    border-color: #0162e4;
    color: #0162e4;
    background: #f5f9ff;
}

.news-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.news-page-num.is-active {
    background: #0162e4;
    border-color: #0162e4;
    color: #ffffff;
    font-weight: 500;
    cursor: default;
}

.news-page-num.is-active:hover {
    background: #0162e4;
    border-color: #0162e4;
    color: #ffffff;
}

.news-page-ellipsis {
    cursor: default;
    letter-spacing: 0.08em;
    pointer-events: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .page-news .container {
        padding-left: 48px;
        padding-right: 48px;
    }

    .news-card-date {
        margin: 0 32px 0 48px;
    }

    .news-card-title {
        font-size: 24px;
    }

    .news-card-summary {
        font-size: 16px;
        line-height: 28px;
    }

    .news-card-more {
        font-size: 20px;
    }
}

@media (max-width: 960px) {
    .page-news .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .news-card {
        flex-wrap: wrap;
        gap: 16px;
        padding: 24px;
    }

    .news-card-media {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 480 / 320;
    }

    .news-card-date {
        flex: 0 0 104px;
        width: 104px;
        height: 148px;
        margin: 0 24px 0 0;
    }

    .news-card-day {
        font-size: 36px;
    }

    .news-card-ym {
        font-size: 18px;
    }

    .news-card-body {
        flex: 1 1 calc(100% - 140px);
        margin-left: 0;
        padding-left: 0;
    }

    .news-card-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .news-section {
        padding: 48px 0 56px;
    }

    .news-section-head {
        margin-bottom: 32px;
    }

    .news-hero-line {
        margin: 14px 0;
    }

    .news-card {
        flex-direction: column;
        padding: 20px;
    }

    .news-card-date {
        flex-direction: row;
        align-items: baseline;
        justify-content: center;
        gap: 10px;
        width: auto;
        height: auto;
        min-height: auto;
        padding: 12px 20px;
        margin: 0;
        align-self: flex-start;
    }

    .news-card-day {
        font-size: 32px;
    }

    .news-card-ym {
        margin-top: 0;
        font-size: 16px;
    }

    .news-card-body {
        flex: 1 1 auto;
        width: 100%;
        padding-left: 0;
        border-left: none;
    }

    .news-card-title {
        font-size: 20px;
    }

    .news-card-summary {
        font-size: 15px;
        line-height: 26px;
    }

    .news-card-more {
        font-size: 18px;
    }

    .news-pagination {
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 36px;
    }

    .news-page-num,
    .news-page-btn,
    .news-page-ellipsis {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .news-page-btn img {
        width: 14px;
        height: 14px;
    }
}
