.news-page {
    min-height: 100vh;
    padding-bottom: 24px;
}

.news-page,
.news-page * {
    box-sizing: border-box;
}

.news-page a {
    color: inherit;
    text-decoration: none;
}

.news-page .ny-content-loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .42s ease, transform .42s ease;
}

.news-pagehead {
    margin-bottom: 14px;
}

.news-pagehead .ny-dashboard-page-title {
    margin: 0;
    color: var(--ny-text-1, #111827);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.news-pagehead .ny-dashboard-page-subtitle {
    margin-top: 4px;
    color: var(--ny-text-2, #475569);
    font-size: 13px;
}

.news-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 22px;
    align-items: end;
    margin-bottom: 18px;
    padding: 22px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--ny-border, #e5eaf2);
    border-radius: var(--ny-radius-card, 10px);
    box-shadow: var(--ny-shadow-soft, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.news-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: 18%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.news-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.1));
    border-radius: 38px;
    transform: rotate(18deg);
    pointer-events: none;
}

.news-hero-main,
.news-hero-search {
    position: relative;
    z-index: 1;
}

.news-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    color: var(--ny-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.news-hero-kicker i {
    font-size: 15px;
}

.news-hero-title {
    margin: 14px 0 6px;
    color: var(--ny-text-1, #111827);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.news-hero-desc {
    max-width: 620px;
    margin: 0;
    color: var(--ny-text-2, #475569);
    font-size: 13px;
    line-height: 1.7;
}

.news-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.news-search-prefix {
    position: absolute;
    left: 16px;
    color: var(--ny-text-3, #94a3b8);
    font-size: 19px;
    pointer-events: none;
}

.news-search-input {
    width: 100%;
    height: 46px;
    padding: 0 126px 0 46px;
    color: var(--ny-text-1, #111827);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    outline: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.news-search-input:focus {
    background: #fff;
    border-color: var(--ny-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08), 0 12px 26px rgba(15, 23, 42, 0.05);
}

.news-search-btn {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    color: #fff;
    background: var(--ny-primary, #2563eb);
    border: 1px solid var(--ny-primary, #2563eb);
    border-radius: 9px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-search-btn:hover {
    background: var(--ny-primary-dark, #1d4ed8);
    border-color: var(--ny-primary-dark, #1d4ed8);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.news-main,
.news-sidebar {
    min-width: 0;
}

.news-list {
    display: grid;
    gap: 12px;
}

.news-item {
    position: relative;
    display: flex;
    gap: 16px;
    min-height: 132px;
    padding: 18px 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ny-border, #e5eaf2);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.news-item::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ny-primary, #2563eb), #38bdf8);
    border-radius: 999px;
    opacity: 0;
    transform: scaleY(.55);
    transition: opacity .22s ease, transform .22s ease;
}

.news-item::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -68px;
    width: 156px;
    height: 156px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 68%);
    opacity: 0;
    transition: opacity .22s ease;
}

.news-item:hover {
    color: inherit;
    text-decoration: none;
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.news-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.news-item:hover::after {
    opacity: 1;
}

.news-item-mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    color: var(--ny-primary, #2563eb);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 15px;
}

.news-item-mark i {
    font-size: 24px;
}

.news-item-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.news-item-topline,
.news-item-foot,
.news-item-date,
.news-item-badge {
    display: flex;
    align-items: center;
}

.news-item-topline {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.news-item-badge {
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    color: var(--ny-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.news-item-date {
    gap: 5px;
    color: var(--ny-text-3, #94a3b8);
    font-size: 12px;
    white-space: nowrap;
}

.news-item-title {
    margin: 0;
    color: var(--ny-text-1, #111827);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
}

.news-item-foot {
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.news-item-hint {
    color: var(--ny-text-2, #475569);
    font-size: 12px;
    font-weight: 700;
}

.news-item-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--ny-text-3, #94a3b8);
    background: #f8fafc;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.news-item:hover .news-item-arrow {
    color: #fff;
    background: var(--ny-primary, #2563eb);
    transform: translateX(2px);
}

.news-sidebar {
    display: grid;
    gap: 14px;
}

.news-side-card {
    background: #fff;
    border: 1px solid var(--ny-border, #e5eaf2);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.news-category-card {
    position: sticky;
    top: 20px;
    padding: 20px;
}

.news-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--ny-text-1, #111827);
    font-size: 15px;
    font-weight: 800;
}

.news-side-title i {
    color: var(--ny-primary, #2563eb);
    font-size: 20px;
}

.news-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-category-item + .news-category-item {
    margin-top: 8px;
}

.news-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #334155;
    background: #f8fafc;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.news-category-link:hover {
    color: var(--ny-primary, #2563eb);
    background: #eef5ff;
    text-decoration: none;
    transform: translateX(2px);
}

.news-category-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
}

.news-category-name i {
    flex: 0 0 auto;
    color: var(--ny-primary, #2563eb);
}

.news-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    color: #fff;
    background: var(--ny-primary, #2563eb);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.news-tip-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.08)),
        #fff;
}

.news-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: var(--ny-primary, #2563eb);
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 12px;
}

.news-tip-icon i {
    font-size: 20px;
}

.news-tip-title {
    color: var(--ny-text-1, #111827);
    font-size: 14px;
    font-weight: 800;
}

.news-tip-desc {
    margin: 4px 0 0;
    color: var(--ny-text-2, #475569);
    font-size: 12px;
    line-height: 1.6;
}

.news-pagination {
    margin-top: 18px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--ny-border, #e5eaf2);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.news-pagination .table-footer,
.news-pagination .table-pagination,
.news-pagination .form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-pagination .table-footer {
    justify-content: space-between;
}

.news-pagination .table-pagination {
    margin-left: auto;
}

.news-pagination .table-pageinfo,
.news-pagination .table-pageinfo span {
    color: var(--ny-text-2, #475569);
    font-size: 12px;
}

.news-pagination .pagination {
    margin: 0;
}

.news-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid var(--ny-border, #e5eaf2);
    border-radius: 16px;
}

.news-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: var(--ny-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 22px;
}

.news-empty-icon i {
    font-size: 36px;
}

.news-empty-text {
    margin-top: 16px;
    color: var(--ny-text-1, #111827);
    font-size: 16px;
    font-weight: 800;
}

.news-empty-desc {
    margin: 6px 0 0;
    color: var(--ny-text-2, #475569);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .news-page .ny-content-loaded,
    .news-item,
    .news-search-btn,
    .news-category-link,
    .news-item::before,
    .news-item::after,
    .news-item-arrow {
        transition: none;
    }
}

@media (max-width: 1180px) {
    .news-hero,
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .news-category-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 18px;
    }

    .news-hero-title {
        font-size: 20px;
    }

    .news-sidebar {
        grid-template-columns: 1fr;
    }

    .news-item {
        gap: 12px;
        padding: 16px;
    }

    .news-item-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .news-item-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .news-pagination .table-footer,
    .news-pagination .table-pagination {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .news-search-input {
        height: 92px;
        padding: 0 14px 38px 42px;
    }

    .news-search-btn {
        right: 8px;
        bottom: 8px;
        top: auto;
    }

    .news-item {
        flex-direction: column;
    }
}
