/* ============ News Page ============ */
body {
    background: linear-gradient(180deg, #eef3fc 0%, #fafafa 100%);
}

/* ============ Hero Banner ============ */
.news-hero {
    position: relative;
    margin-top: var(--nav-h);
    height: calc(100vh - var(--nav-h) - 120px);
    min-height: 460px;
    overflow: hidden;
}

.news-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: newsHeroZoom 8s ease-out forwards;
}

@keyframes newsHeroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.news-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 18, 40, 0.74) 0%, rgba(6, 18, 40, 0.46) 45%, rgba(6, 18, 40, 0.12) 100%);
}

.news-hero .hero-inner {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 620px;
    color: #fff;
}

.news-hero .hero-label {
    font-size: 14px;
    letter-spacing: 6px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(24px);
    animation: newsFadeUp 0.8s 0.2s forwards;
}

.news-hero .hero-title {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(24px);
    animation: newsFadeUp 0.8s 0.35s forwards;
}

.news-hero .hero-divider {
    width: 60px;
    height: 3px;
    background: var(--color1);
    margin-bottom: 22px;
    opacity: 0;
    animation: newsFadeUp 0.8s 0.5s forwards;
}

.news-hero .hero-desc {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    opacity: 0;
    transform: translateY(24px);
    animation: newsFadeUp 0.8s 0.65s forwards;
}

@keyframes newsFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-hero .hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    background: linear-gradient(180deg, transparent 0%, #eef3fc 100%);
    z-index: 1;
}

/* ============ Main Layout ============ */
.news-page {
    max-width: 1440px;
    margin: -100px auto 0;
    padding: 0 24px 100px;
    position: relative;
    z-index: 2;
}

/* ============ Intro Head ============ */
.news-intro-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 44px 24px;
    border-bottom: 1px solid #eef1f6;
}

.news-intro-left {
    text-align: left;
}

.news-intro-head .news-intro-deco {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.news-intro-head .deco-line {
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 86, 219, 0.55));
}

.news-intro-head .deco-line:last-child {
    background: linear-gradient(270deg, transparent, rgba(26, 86, 219, 0.55));
}

.news-intro-head .deco-diamond {
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
    border: 2px solid var(--color1);
    border-radius: 2px;
}

.news-intro-head .news-intro-label {
    display: block;
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--color1);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.news-intro-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.news-intro-head p {
    font-size: 13px;
    color: #8a94a8;
    letter-spacing: 1px;
}

.news-intro-right {
    flex-shrink: 0;
}

.news-intro-right .news-update-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(26, 86, 219, 0.18);
    border-radius: 999px;
    background: #f8fafd;
    color: #7a8699;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.news-intro-right .news-update-tag svg {
    width: 14px;
    height: 14px;
    fill: var(--color1);
}

.news-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h) - 40px);
    min-height: 560px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 16px;
    box-shadow: 0 16px 48px -16px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.news-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

/* ============ Sidebar ============ */
.news-sidebar {
    flex: 0 0 300px;
    padding: 36px 28px;
    border-right: 1px solid #eef1f6;
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
    overflow-y: auto;
}

.news-sidebar .side-head {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef1f6;
}

.news-sidebar .side-label {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--color1);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-sidebar .side-head h3 {
    font-size: 22px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 1px;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #42506a;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cat-item:hover {
    color: var(--color1);
    background: rgba(26, 86, 219, 0.05);
}

.cat-item.active {
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(26, 86, 219, 0.55);
}

.cat-item em {
    font-style: normal;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(26, 86, 219, 0.08);
    color: var(--color1);
    transition: all 0.3s;
}

.cat-item.active em {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.side-contact {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef1f6;
    text-align: center;
}

.side-contact p {
    font-size: 12px;
    color: #9aa5b8;
    letter-spacing: 1px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.side-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.side-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(26, 86, 219, 0.55);
}

.side-contact a svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ============ News List ============ */
.news-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 42px 0;
    overflow: hidden;
}

.news-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
}

/* 关键词筛选提示条 */
.kw-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid #dce6fa;
    border-radius: 10px;
    background: #f4f8ff;
    font-size: 13px;
    color: #42506a;
}

.kw-bar strong {
    color: var(--color1);
    font-weight: 600;
}

.kw-bar .kw-clear {
    color: var(--color1);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.kw-bar .kw-clear:hover {
    text-decoration: underline;
}

.news-empty {
    padding: 70px 0;
    text-align: center;
    color: #9aa5b8;
    font-size: 14px;
    letter-spacing: 1px;
}

/* 滚动条美化 */
.news-sidebar::-webkit-scrollbar,
.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-sidebar::-webkit-scrollbar-thumb,
.news-list::-webkit-scrollbar-thumb {
    background: #d8e0ec;
    border-radius: 6px;
}

.news-sidebar::-webkit-scrollbar-thumb:hover,
.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--color1);
}

/* ============ Pagination ============ */
.news-pagination {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 22px;
    margin-top: 14px;
    border-top: 1px solid #eef1f6;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fff;
    color: #42506a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--color1);
    color: var(--color1);
    background: rgba(26, 86, 219, 0.04);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(26, 86, 219, 0.5);
    cursor: default;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.news-list .news-item {
    display: block;
    transition: all 0.3s;
}

.news-list .news-item .news-item-link {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px dashed #eef1f6;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 0;
}

.news-list .news-item:last-child .news-item-link {
    border-bottom: none;
}

.news-list .news-item:hover .news-item-link {
    padding-left: 10px;
}

.news-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 126px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s;
}

.news-item:hover .news-thumb {
    transform: scale(1.04);
}

.news-txt {
    flex: 1;
    min-width: 0;
}

.news-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color1);
    background: rgba(26, 86, 219, 0.08);
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.news-txt h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-title-row h4 {
    flex: 1;
    min-width: 0;
    margin-bottom: 6px;
}

.news-txt h4 a {
    transition: color 0.3s;
}

.news-item:hover .news-txt h4 a {
    color: var(--color1);
}

.news-desc {
    font-size: 13px;
    color: #8a94a8;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #b3bdcc;
    letter-spacing: 1px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .news-hero {
        height: 460px;
        min-height: 0;
    }

    .news-hero .hero-inner {
        left: 6%;
        max-width: 88%;
    }

    .news-hero .hero-label {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .news-hero .hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .news-hero .hero-desc {
        font-size: 13px;
    }

    .news-hero .hero-fade {
        height: 110px;
    }

    .news-page {
        margin-top: -76px;
        padding: 0 16px 60px;
    }

    .news-intro-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 26px 20px 22px;
    }

    .news-intro-head h2 {
        font-size: 24px;
    }

    .news-intro-head p {
        font-size: 13px;
    }

    .news-intro-right {
        padding: 0;
    }

    .news-intro-right .news-update-tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    .news-card {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .news-card-body {
        flex-direction: column;
    }

    .news-sidebar {
        flex: none;
        width: 100%;
        padding: 22px 20px;
        border-right: none;
        border-bottom: 1px solid #eef1f6;
        overflow-y: visible;
    }

    .cat-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cat-item {
        padding: 9px 14px;
        font-size: 13px;
    }

    .cat-item em {
        padding: 1px 8px;
        font-size: 11px;
    }

    .side-contact {
        display: none;
    }

    .news-main {
        padding: 8px 16px 16px;
        overflow: visible;
    }

    .news-list {
        overflow-y: visible;
        padding-right: 0;
    }

    .news-pagination {
        margin-top: 10px;
        padding: 10px 0 4px;
    }

    .news-list .news-item {
        gap: 14px;
        padding: 14px 0;
    }

    .news-thumb {
        width: 96px;
        height: 76px;
    }

    .news-txt h4 {
        font-size: 14px;
    }

    .news-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
