

/* 首屏 banner：宽度始终 100vw，按 1920 × 634 设计比例，内容等比缩放；
   字号在桌面/平板上按档位放大后，盒子允许长高，保证文案不被裁切 */
.cnews-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    container-type: inline-size;
    min-height: calc(100vw * 634 / 1920);
    height: auto;
    background: #dbeafe url("../images/list-hero-bg.jpg") center center / cover no-repeat;
}

.cnews-hero > * {
    --cqw-length: 100cqw; /* 先按容器宽度解析成 px 再进 atan2，避免部分浏览器跨单位返回 0 */
    --hero-scale: tan(atan2(var(--cqw-length), 1920px)); /* hero 实际宽度 / 1920 */
    zoom: var(--hero-scale);
}

.cnews-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding-top: 202px;
    padding-left: 54px;
}

.cnews-hero h1 {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #000;
}

.cnews-hero p {
    margin: 44px 0 0;
    font-family: var(--font-regular);
    font-size: 29px;
    line-height: 1.4;
    letter-spacing: .5px;
    color: #333;
}

.cnews-main {
    padding: 84px 0 115px;
    background: #fff;
}

.cnews-section-title {
    margin: 0 0 67px;
    font-family: var(--font-bold);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 1px;
    color: #333;
    text-align: center;
}

.cnews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 15px;
}

.cnews-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid #e6f0fb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 102, 229, .05);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.cnews-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(31, 102, 229, .12);
}

.cnews-card--media {
    min-height: 369px;
    background: linear-gradient(180deg, #f7fbff 0%, #fff 38%);
}

.cnews-media {
    position: relative;
    width: 100%;
    aspect-ratio: 386 / 207;
    overflow: hidden;
    background: #eaf2ff;
}

.cnews-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.cnews-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 32px 14px;
}

.cnews-date {
    display: flex;
    align-items: baseline;
    height: 32px;
    color: #333;
}

.cnews-date-day {
    font-family: var(--font-medium);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    color: #333;
}

.cnews-date-sep {
    margin: 0 7px;
    font-family: var(--font-medium);
    font-size: 20px;
    line-height: 1;
    color: #b9c7d9;
}

.cnews-date-month {
    font-family: var(--font-medium);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: #333;
}

.cnews-date-year {
    margin-left: auto;
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1;
    color: #9aa9bd;
}

.cnews-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    font-family: var(--font-medium);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
    color: #333;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cnews-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    font-family: var(--font-regular);
    font-size: 15px;
    line-height: 1.4;
}

.cnews-comments {
    color: #9aa9bd;
}

.cnews-more {
    color: #2f6fdc;
    transition: color .2s ease;
}

.cnews-more i {
    font-style: normal;
    margin-left: 2px;
}

.cnews-card--text {
    min-height: 172px;
    background: linear-gradient(180deg, #f7fbff 0%, #fff 62%);
}

.cnews-card--text .cnews-body {
    padding: 26px 32px 22px;
}

.cnews-card--text .cnews-card-title {
    margin-top: 8px;
}

.cnews-arrow {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
}

.cnews-arrow img {
    display: block;
    width: 34px;
    height: 10px;
    transition: filter .2s ease, transform .2s ease;
}

.cnews-card--text:hover .cnews-arrow img {
    transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
    .cnews-card--media:hover,
    .cnews-card--text:hover {
        background: linear-gradient(160deg, #2f80ea 0%, #1c5bd1 100%);
        border-color: #1c5bd1;
        box-shadow: 0 18px 40px rgba(28, 91, 209, .28);
    }

    .cnews-card--media:hover .cnews-media {
        position: absolute;
        inset: 0;
        z-index: 0;
        height: 100%;
        aspect-ratio: auto;
        opacity: .16;
    }

    .cnews-card--media:hover .cnews-media img {
        height: 100%;
        transform: scale(1.04);
    }

    .cnews-card--media:hover .cnews-body {
        padding-top: 32px;
    }

    .cnews-card--media:hover .cnews-card-title {
        color: #fff;
        -webkit-line-clamp: 3;
    }

    .cnews-card--text:hover .cnews-card-title {
        color: #fff;
    }

    .cnews-card--media:hover .cnews-date-day,
    .cnews-card--media:hover .cnews-date-month,
    .cnews-card--text:hover .cnews-date-day,
    .cnews-card--text:hover .cnews-date-month {
        color: #fff;
    }

    .cnews-card--media:hover .cnews-date-sep,
    .cnews-card--text:hover .cnews-date-sep {
        color: rgba(255, 255, 255, .6);
    }

    .cnews-card--media:hover .cnews-date-year,
    .cnews-card--text:hover .cnews-date-year {
        color: rgba(255, 255, 255, .72);
    }

    .cnews-card--media:hover .cnews-comments,
    .cnews-card--media:hover .cnews-more {
        color: rgba(255, 255, 255, .9);
    }

    .cnews-card--text:hover .cnews-arrow img {
        filter: brightness(0) invert(1);
    }
}

.cnews-empty {
    padding: 90px 24px;
    border: 1px dashed #d6e6fa;
    border-radius: 12px;
    background: #f8fbff;
    font-size: 15px;
    color: #8a94a6;
    text-align: center;
}

.cnews-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 80px;
}

.cnews-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
    padding: 0 6px;
    border: 1px solid #9bc0e8;
    border-radius: 3px;
    background: #fff;
    font-family: var(--font-medium);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #3d7fd9;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.cnews-page:hover {
    border-color: #2f6fdc;
    background: #f2f8ff;
}

.cnews-page.is-active {
    border-color: #2f6fdc;
    background: #2f6fdc;
    color: #fff;
}

.cnews-page.is-arrow {
    font-size: 15px;
}

.cnews-page.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.cnews-gap {
    min-width: 24px;
    font-size: 15px;
    color: #9aa9bd;
    text-align: center;
}

.cnews-detail-hero {
    height: clamp(420px, 33.02vw, 634px);
    background: #4d9aff url("../images/detail-hero-bg.jpg") center center / cover no-repeat;
}

.cnews-detail-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding-top: clamp(70px, 5.208vw, 100px);
    padding-left: 64px;
}

.cnews-brand {
    margin: 0;
    font-family: var(--font-bold);
    font-size: clamp(36px, 3.125vw, 60px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 8px 26px rgba(9, 53, 130, .16);
}

.cnews-brand-desc {
    max-width: 560px;
    margin: 14px 0 0;
    font-family: var(--font-regular);
    font-size: clamp(16px, 1.042vw, 20px);
    line-height: 1.62;
    color: rgba(255, 255, 255, .96);
}

.cnews-brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 214px;
    height: 46px;
    margin-top: 30px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1c4ede 0%, #20a3ff 100%);
    box-shadow: 0 8px 22px rgba(18, 78, 200, .22);
    font-family: var(--font-medium);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cnews-brand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(18, 78, 200, .3);
    color: #fff;
}

.cnews-detail {
    padding: 80px 0 120px;
    background: #fff;
}

.cnews-detail-inner {
    max-width: 1105px;
    margin: 0 0 0 40px;
}

.cnews-detail-title {
    margin: 0 0 65px;
    font-family: var(--font-bold);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .5px;
    color: #333;
    text-align: center;
}

.cnews-content {
    font-family: var(--font-regular);
    font-size: 20px;
    line-height: 1.7;
    color: #4a4a4a;
    word-break: break-word;
}

.cnews-content::after {
    content: "";
    display: block;
    clear: both;
}

.cnews-content p {
    margin: 0 0 16px;
}

.cnews-content h2 {
    margin: 40px 0 18px;
    font-family: var(--font-bold);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

.cnews-content h3 {
    margin: 32px 0 14px;
    font-family: var(--font-bold);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

.cnews-content ul,
.cnews-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.cnews-content li {
    margin-bottom: 8px;
}

.cnews-content a {
    color: #1f66e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cnews-content img {
    float: right;
    width: 305px;
    max-width: 42%;
    height: auto;
    margin: -22px 0 24px 80px;
    border-radius: 4px;
}

.cnews-content blockquote {
    margin: 0 0 24px;
    padding: 16px 22px;
    border-left: 3px solid #9dc0f5;
    background: #f6faff;
    color: #4b5563;
}

.cnews-content table {
    width: 100%;
    margin: 0 0 24px;
    border-collapse: collapse;
    font-size: 16px;
}

.cnews-content th,
.cnews-content td {
    padding: 8px 12px;
    border: 1px solid #e5eaf2;
}

.cnews-content th {
    background: #f7fafd;
    text-align: left;
}

.cnews-next {
    margin-top: 44px;
    text-align: right;
}

.cnews-next a {
    font-family: var(--font-medium);
    font-size: 18px;
    font-weight: 500;
    color: #2f6fdc;
    transition: color .2s ease;
}

.cnews-next a:hover {
    color: #1557cf;
}

.cnews-next i {
    font-style: normal;
    margin-left: 4px;
}

@media (max-width: 1440px) {
    .cnews-main {
        padding-top: 64px;
    }

    .cnews-section-title {
        margin-bottom: 48px;
    }

    .cnews-body {
        padding: 16px 24px;
    }

    .cnews-card--text .cnews-body {
        padding: 22px 24px 18px;
    }

    .cnews-card-title {
        font-size: 17px;
    }

    .cnews-date-day {
        font-size: 27px;
    }

    .cnews-date-month {
        font-size: 20px;
    }

    .cnews-date-year {
        font-size: 16px;
    }

    .cnews-detail-inner {
        max-width: 940px;
        margin: 0 auto;
    }
}

@media (max-width: 1080px) {
    .cnews-detail-hero-inner {
        padding-left: 40px;
    }

    .cnews-detail-hero {
        background-position: 25% center;
    }

    .cnews-brand-desc {
        max-width: 460px;
    }

    .cnews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cnews-main {
        padding: 56px 0 80px;
    }

    .cnews-pager {
        margin-top: 50px;
    }

    .cnews-detail-inner {
        max-width: 100%;
        margin: 0 auto;
    }

    .cnews-content img {
        width: 280px;
    }
}

@media (max-width: 720px) {
    .cnews-main {
        padding: 44px 0 60px;
    }

    .cnews-section-title {
        margin-bottom: 28px;
        font-size: 26px;
    }

    .cnews-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .cnews-card {
        margin-bottom: 16px;
    }

    .cnews-card--media {
        min-height: 0;
    }

    .cnews-card--media .cnews-body {
        padding-top: 18px;
    }

    .cnews-card-title {
        font-size: 17px;
    }

    .cnews-pager {
        margin-top: 34px;
        gap: 6px;
    }

    .cnews-page {
        min-width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .cnews-detail-hero {
        position: relative;
        height: 420px;
        background-position: 70% center;
    }

    .cnews-detail-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(16, 79, 176, .72) 0%, rgba(28, 100, 202, .42) 62%, rgba(40, 122, 222, .1) 100%);
    }

    .cnews-detail-hero-inner {
        position: relative;
        z-index: 1;
        padding-top: 72px;
        padding-left: 24px;
    }

    .cnews-brand {
        font-size: 32px;
    }

    .cnews-brand-desc {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.9;
    }

    .cnews-brand-btn {
        width: 170px;
        height: 42px;
        margin-top: 22px;
        font-size: 16px;
    }

    .cnews-detail {
        padding: 44px 0 64px;
    }

    .cnews-detail-title {
        margin-bottom: 28px;
        font-size: 23px;
        line-height: 1.55;
    }

    .cnews-content {
        font-size: 16px;
        line-height: 1.95;
    }

    .cnews-content p {
        margin-bottom: 18px;
    }

    .cnews-content h2 {
        margin-top: 30px;
        font-size: 21px;
    }

    .cnews-content h3 {
        font-size: 18px;
    }

    .cnews-content img {
        float: none;
        display: block;
        width: auto;
        max-width: 100%;
        margin: 20px auto;
    }

    .cnews-next {
        margin-top: 34px;
    }

    .cnews-next a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cnews-body {
        padding: 14px 20px;

    }

    .cnews-card--text .cnews-body {
        padding: 20px 20px 16px;
    }

    .cnews-date-day {
        font-size: 25px;
    }

    .cnews-date-year {
        font-size: 15px;
    }

    .cnews-card-title {
        font-size: 16px;
    }
}

/* 桌面/平板：首屏文案比例系数 = max(--hero-typo 断点档位, 首屏缩放比)。
   视口 ≤ 1920 时取断点档位（小屏字号比设计值略大，避免字太小）；
   > 1920（宽屏 / 浏览器缩小页面）时跟着首屏等比放大，滚轮缩放时比例保持不变。 */
@media (min-width: 1024px) {
    .cnews-hero h1 {
        font-size: calc(60px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }

    .cnews-hero p {
        font-size: calc(29px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }
}