

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

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

.inews-hero-inner {
    display: flex;
    flex-direction: column;
    /* 首屏文案按设计稿定位：标题墨迹顶 212（设计稿 1920 画布），减去行盒内上留白 11px；
       高度是 auto + min-height，所以不能用 justify-content: center 居中（会失效，文案贴顶） */
    justify-content: flex-start;
    padding-top: 201px;
}

.inews-hero h1 {
    margin: 0;
    padding-left: 33px; /* 设计稿标题左沿 395，容器内容左沿 360 × 缩放 */
    font-family: var(--font-bold);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 6px 24px rgba(9, 53, 130, .18);
}

.inews-hero p {
    margin: 48px 0 0;
    padding-left: 33px;
    font-family: var(--font-medium);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, .97);
    letter-spacing: 1px;
}

.inews-main {
    padding: 76px 0 96px;
    background: #fff;
}

.inews-title {
    margin: 0 0 44px;
    font-family: var(--font-bold);
    font-size: clamp(30px, 2.083vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    text-align: center;
    letter-spacing: 1px;
}

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

.inews-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;
}

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

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

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

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

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

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

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

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

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

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

.inews-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;
}

.inews-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.inews-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 7px;
    border: 1px solid #c9dcf5;
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-medium);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #2f6fdc;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

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

.inews-page.is-active {
    border-color: #2f6fdc;
    background: #2f6fdc;
    font-weight: 600;
    color: #fff;
}

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

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

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

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

.inews-detail-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

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

.inews-detail-hero-desc {
    max-width: 580px;
    margin: 26px 0 0;
    font-family: var(--font-regular);
    font-size: clamp(16px, 1.042vw, 20px);
    line-height: 2;
    color: rgba(255, 255, 255, .96);
}

.inews-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 214px;
    height: 55px;
    margin-top: 40px;
    border-radius: 9px;
    background: linear-gradient(90deg, #1c4ede 0%, #20a3ff 100%);
    font-family: var(--font-medium);
    font-size: 20px;
    font-weight: 600;
    color: #fefeff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.inews-detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(20, 82, 210, .28);
}

.inews-article {
    position: relative;
    padding: 76px 0 76px;
}

.inews-article > .container {
    position: relative;
    z-index: 1;
}

.inews-article-title {
    margin: 0 0 40px;
    font-family: var(--font-bold);
    font-size: clamp(26px, 1.77vw, 34px);
    font-weight: 700;
    line-height: 1.5;
    color: #1f2733;
}

.inews-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 363px;
    gap: 56px;
    align-items: start;
}

.inews-article-layout.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.inews-content {
    min-width: 0;
    font-family: var(--font-regular);
    font-size: 20px;
    line-height: 2;
    color: #414c5c;
    word-break: break-word;
}

.inews-content p {
    margin: 0 0 26px;
}

.inews-content h2 {
    margin: 38px 0 16px;
    font-family: var(--font-bold);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2733;
}

.inews-content h3 {
    margin: 30px 0 12px;
    font-family: var(--font-bold);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2733;
}

.inews-content ul,
.inews-content ol {
    margin: 0 0 26px;
    padding-left: 26px;
}

.inews-content li {
    margin-bottom: 6px;
}

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

.inews-content img {
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border-radius: 6px;
}

.inews-content blockquote {
    margin: 0 0 26px;
    padding: 14px 20px;
    border-left: 3px solid #9dc0f5;
    background: #f6faff;
    color: #4b5563;
}

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

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

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

.inews-aside {
    min-width: 0;
}

.inews-gallery {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: #c6d9ef transparent;
    cursor: grab;
}

.inews-gallery.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.inews-gallery::-webkit-scrollbar {
    width: 5px;
}

.inews-gallery::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #c6d9ef;
}

.inews-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.inews-gallery-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inews-shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #eef4fb;
    cursor: zoom-in;
    line-height: 0;
}

.inews-shot img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .35s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.inews-shot:hover img {
    transform: scale(1.015);
}

.inews-gallery.is-dragging .inews-shot {
    cursor: grabbing;
}

.inews-brand-pill-wrap {
    position: absolute;
    right: 0;
    bottom: 74px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    pointer-events: none;
}

.inews-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 72px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 86, 180, .14);
    font-family: var(--font-medium);
    font-size: clamp(22px, 1.77vw, 34px);
    font-weight: 600;
    line-height: 1.2;
    color: #1f2a3a;
    letter-spacing: .5px;
    white-space: nowrap;
    pointer-events: auto;
}

body.is-lightbox-open {
    overflow: hidden;
}

.inews-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
}

.inews-lightbox[hidden] {
    display: none;
}

.inews-lightbox-mask {
    position: absolute;
    inset: 0;
    background: rgba(5, 17, 34, .9);
}

.inews-lightbox-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    max-height: 100%;
}

.inews-lightbox-img {
    display: block;
    width: min(880px, 86vw);
    height: auto;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 6px;
    background: #0b1220;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.inews-lightbox-caption {
    max-width: 900px;
    font-family: var(--font-regular);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
    text-align: center;
}

.inews-lightbox-count {
    font-family: var(--font-medium);
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    letter-spacing: 1px;
}

.inews-lightbox-close {
    position: absolute;
    z-index: 3;
    top: -14px;
    right: -14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: 24px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

.inews-lightbox-close:hover {
    background: rgba(255, 255, 255, .28);
}

.inews-lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 32px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.inews-lightbox-nav:hover {
    background: rgba(255, 255, 255, .26);
}

.inews-lightbox-prev {
    left: 24px;
}

.inews-lightbox-next {
    right: 24px;
}

@media (max-width: 1200px) {
    .inews-body {
        padding: 16px 24px;
    }

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

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

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

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

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

    .inews-article-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
    }
}

@media (max-width: 1080px) {
    .inews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .inews-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .inews-aside {
        order: 2;
    }

    .inews-gallery {
        height: auto !important;
        overflow: visible;
        cursor: default;
    }

    .inews-gallery-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .inews-article {
        padding-bottom: 280px;
        background-size: 130% auto;
        background-position: right bottom;
    }
}

@media (max-width: 720px) {
    .inews-main {
        padding: 52px 0 64px;
    }

    .inews-title {
        margin-bottom: 28px;
    }

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

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

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

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

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

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

    .inews-page {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .inews-detail-hero {
        position: relative;
        height: 420px;
    }

    .inews-detail-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(19, 89, 190, .62) 0%, rgba(35, 113, 216, .34) 58%, rgba(45, 130, 235, .1) 100%);
    }

    .inews-detail-hero-inner {
        position: relative;
        z-index: 1;
    }

    .inews-detail-hero-desc {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.9;
    }

    .inews-detail-btn {
        width: 180px;
        height: 48px;
        margin-top: 26px;
        font-size: 17px;
    }

    .inews-article {
        padding: 44px 0 240px;
        background-size: 165% auto;
        background-position: right bottom;
    }

    .inews-article-title {
        margin-bottom: 26px;
        font-size: 23px;
        line-height: 1.55;
    }

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

    .inews-content p {
        margin-bottom: 20px;
    }

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

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

    .inews-gallery-track {
        gap: 10px;
    }

    .inews-brand-pill-wrap {
        bottom: 46px;
    }

    .inews-brand-pill {
        padding: 16px 26px;
        font-size: 18px;
        letter-spacing: 0;
    }

    .inews-lightbox {
        padding: 56px 16px 24px;
    }

    .inews-lightbox-close {
        top: -48px;
        right: 0;
    }

    .inews-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .inews-lightbox-prev {
        left: 8px;
    }

    .inews-lightbox-next {
        right: 8px;
    }

    .inews-lightbox-img {
        max-height: 66vh;
    }
}

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

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