/* ==========================================
   News 页面模块样式
   ========================================== */

:root {
    --news-primary: #003d95;
    --news-primary-dark: #003884;
    --news-accent: #00b01d;
    --news-bg: #f4f7fb;
    --news-text: #1a2a44;
    --news-text-secondary: #5a6b82;
    --news-text-tertiary: #8a94a6;
    --news-border: #ebf0f5;
    --news-shadow: 0 4px 24px rgba(0, 61, 136, 0.04);
}

body.news-page {
    margin-top: 0;
    background: #ffffff;
    color: var(--news-text);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.news-page header.news-header {
    background: #0092d8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.news-page .news-header-container {
    max-width: 1856px;
    height: 62px;
    padding: 14px 32px 0;
    gap: 1.5rem;
}

.news-header-logo {
    min-width: 184px;
}

.news-logo-image {
    height: 44px;
    width: auto;
    display: block;
}

.news-header-nav {
    gap: 4px;
}

.news-nav-link {
    color: #ffffff;
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: -0.08px;
    padding: 8px 16px;
    border-radius: 8px;
}

.news-nav-link:hover,
.news-nav-link.active {
    color: #ffffff;
    background: transparent;
    opacity: 0.92;
}

.news-nav-link-with-icon img {
    width: 16px;
    height: 16px;
}

.news-header-actions {
    gap: 12px;
}

.news-search-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.news-search-btn img {
    width: 18px;
    height: 18px;
}

.news-lang-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
}

.news-lang-entry img {
    width: 16px;
    height: 16px;
}

.news-mobile-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.news-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    margin: 4px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.news-mobile-toggle.is-active span:nth-child(1),
.news-mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.news-mobile-toggle.is-active span:nth-child(2),
.news-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.news-mobile-toggle.is-active span:nth-child(3),
.news-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.news-hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    background: #0f1930;
}

.news-hero-media,
.news-hero-overlay {
    position: absolute;
    inset: 0;
}

.news-hero-media {
    background:
        radial-gradient(circle at 12% 46%, rgba(125, 196, 255, 0.35) 0, rgba(125, 196, 255, 0) 8%),
        radial-gradient(circle at 78% 24%, rgba(255, 207, 158, 0.26) 0, rgba(255, 207, 158, 0) 19%),
        linear-gradient(115deg, rgba(33, 22, 18, 0.96) 10%, rgba(65, 39, 29, 0.78) 52%, rgba(155, 109, 83, 0.64) 100%),
        repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 14px);
    transform: scale(1.02);
}

.news-hero-media::before,
.news-hero-media::after {
    content: "";
    position: absolute;
    inset: auto;
}

.news-hero-media::before {
    right: 9%;
    top: 2%;
    width: 43%;
    height: 86%;
    background:
        linear-gradient(6deg, rgba(255, 241, 216, 0.28), rgba(255, 241, 216, 0.18)),
        repeating-linear-gradient(0deg, rgba(68, 53, 45, 0.35) 0, rgba(68, 53, 45, 0.35) 1px, transparent 1px, transparent 11px),
        repeating-linear-gradient(90deg, rgba(68, 53, 45, 0.1) 0, rgba(68, 53, 45, 0.1) 1px, transparent 1px, transparent 52px);
    border-radius: 4px;
    transform: perspective(900px) rotateY(-18deg) rotateZ(5deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.26);
    opacity: 0.95;
}

.news-hero-media::after {
    left: 65%;
    top: 11%;
    width: 18%;
    height: 10%;
    background: linear-gradient(90deg, rgba(22, 13, 10, 0.4), rgba(22, 13, 10, 0));
    filter: blur(10px);
}

.news-hero-overlay {
    background: linear-gradient(90deg, rgba(4, 14, 40, 0.72) 0%, rgba(4, 14, 40, 0.45) 60%, rgba(4, 14, 40, 0.18) 100%);
}

.news-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    height: 450px;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
}

.news-hero-copy {
    max-width: 560px;
}

.news-hero-tag,
.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 25px;
    padding: 0 14px;
    border-radius: 22px;
    background: rgba(0, 176, 29, 0.18);
    border: 1px solid rgba(0, 176, 29, 0.35);
    color: #00830f;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.news-hero-tag-dot,
.news-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #00b01d;
}

.news-hero-title {
    margin: 17px 0 18px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 0.37px;
}

.news-hero-divider {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #00b01d 0%, #003d88 100%);
}

.news-hero-desc {
    max-width: 470px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
}

.news-content {
    position: relative;
    background: var(--news-bg);
    padding: 66px 0 84px;
    overflow: hidden;
}

.news-content-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 61, 136, 0.035) 0%, rgba(0, 0, 0, 0) 35%);
}

.news-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-featured-card,
.news-card {
    background: #ffffff;
    border: 1px solid var(--news-border);
    border-radius: 16px;
    box-shadow: var(--news-shadow);
}

.news-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    overflow: hidden;
}

.news-featured-media img,
.news-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-featured-media {
    min-height: 313px;
}

.news-featured-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #b0bdcc;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.news-meta-featured {
    margin-top: 16px;
    color: #9aaabf;
    font-size: 14px;
}

.news-meta img {
    width: 10px;
    height: 10px;
}

.news-featured-title {
    margin: 14px 0 14px;
    color: var(--news-text);
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 0.2px;
}

.news-featured-desc {
    color: var(--news-text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.news-card {
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.news-card:hover,
.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 61, 136, 0.08);
    border-color: rgba(0, 61, 149, 0.16);
}

.news-card-media {
    height: 196px;
    overflow: hidden;
}

.news-card-media-blank {
    position: relative;
    background:
        linear-gradient(135deg, rgba(0, 61, 149, 0.05), rgba(0, 176, 29, 0.03)),
        radial-gradient(circle at 30% 32%, rgba(0, 61, 149, 0.08) 0, rgba(0, 61, 149, 0) 28%),
        #ffffff;
}

.news-card-media-blank::before {
    content: "";
    position: absolute;
    inset: 26px 22px;
    border: 1px dashed rgba(0, 61, 149, 0.18);
    border-radius: 14px;
}

.news-card-visual-tag {
    position: absolute;
    left: 22px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 61, 149, 0.08);
    color: var(--news-primary);
    font-size: 12px;
    letter-spacing: 1.2px;
}

.news-card-body {
    padding: 18px 22px 18px;
}

.news-card-title {
    min-height: 44px;
    margin: 14px 0 10px;
    color: var(--news-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.news-card-desc {
    min-height: 60px;
    color: var(--news-text-secondary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--news-primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.news-readmore img {
    width: 10px;
    height: 10px;
    transition: transform 0.25s ease;
}

.news-readmore:hover img {
    transform: translateX(2px);
}

.news-readmore-featured {
    margin-top: auto;
    font-size: 12px;
}

.news-readmore-featured img {
    width: 13px;
    height: 13px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
}

.news-page-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0, 61, 136, 0.12);
    background: #ffffff;
    color: #4a5568;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.news-page-btn.is-active {
    background: var(--news-primary);
    border-color: var(--news-primary-dark);
    color: #ffffff;
}

.news-page-btn:hover:not(.is-active) {
    border-color: rgba(0, 61, 149, 0.2);
    background: rgba(0, 61, 149, 0.04);
}

.news-page-btn.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.news-page-ellipsis {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.news-page-btn-last {
    width: auto;
    min-width: 72px;
    padding: 0 14px;
}

.news-page-arrow img {
    width: 15px;
    height: 15px;
}

.news-empty-state {
    margin-top: 36px;
    padding: 48px 24px;
    border: 1px dashed rgba(0, 61, 149, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--news-text-secondary);
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}

.news-footer {
    margin-top: 0;
    background: linear-gradient(167.53deg, #101828 0%, #1e2939 50%, #101828 100%);
    color: #ffffff;
}

.news-footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 64px 48px 0;
}

.news-footer-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
    min-height: 228px;
    padding-bottom: 64px;
}

.news-footer-logo img {
    width: 158px;
    height: auto;
    display: block;
}

.news-footer-desc {
    margin-top: 24px;
    max-width: 421px;
    color: #99a1af;
    font-size: 14px;
    line-height: 22.75px;
    letter-spacing: -0.15px;
}

.news-footer-brand-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.news-footer-brand-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #364153;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.news-footer-brand-social img {
    width: 16px;
    height: 16px;
}

.news-footer-links-col h3,
.news-footer-contact-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.31px;
}

.news-footer-links-col ul,
.news-footer-contact-list {
    margin-top: 24px;
    list-style: none;
}

.news-footer-links-col li + li {
    margin-top: 12px;
}

.news-footer-links-col a {
    position: relative;
    padding-left: 12px;
    color: #99a1af;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.news-footer-links-col a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4caf50;
}

.news-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-footer-contact-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #99a1af;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.news-footer-contact-row-address {
    align-items: flex-start;
}

.news-footer-contact-row-address div p + p {
    margin-top: 0;
}

.news-footer-contact-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.news-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 69px;
    padding: 24px 0;
    border-top: 1px solid #364153;
}

.news-footer-bottom p,
.news-footer-bottom-links a {
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
    text-decoration: none;
}

.news-footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.news-footer a:hover,
.news-footer a:focus-visible,
.news-readmore:hover,
.news-readmore:focus-visible,
.news-nav-link:focus-visible,
.news-page-btn:focus-visible,
.news-search-btn:focus-visible,
.news-lang-entry:focus-visible,
.news-mobile-toggle:focus-visible {
    outline: none;
    opacity: 0.92;
}

@media (max-width: 968px) {
    body.news-page {
        margin-top: 64px;
    }

    .news-page .news-header-container {
        height: 64px;
        padding: 12px 24px;
        flex-wrap: wrap;
    }

    .news-mobile-toggle {
        display: inline-block;
    }

    .news-header-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 24px;
        right: 24px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 12px 32px rgba(0, 61, 136, 0.1);
        border: 1px solid rgba(0, 61, 136, 0.08);
    }

    .news-header-nav.is-open,
    .news-header-nav.mobile-active,
    .news-header-nav.active {
        display: flex;
    }

    .news-nav-link {
        justify-content: space-between;
        color: #3a4558;
        font-size: 14px;
        padding: 10px 12px;
    }

    .news-nav-link:hover,
    .news-nav-link.active {
        color: var(--news-primary);
        background: rgba(0, 61, 149, 0.05);
    }

    .news-hero,
    .news-hero-container {
        min-height: 380px;
        height: 380px;
    }

    .news-hero-container {
        padding: 0 28px;
    }

    .news-hero-title {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: 0.2px;
    }

    .news-featured-card {
        grid-template-columns: 1fr;
    }

    .news-featured-media {
        min-height: 320px;
    }

    .news-featured-title {
        font-size: 24px;
        line-height: 32px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-footer-container {
        padding: 48px 24px 0;
    }

    .news-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        padding-bottom: 40px;
    }
}

@media (max-width: 750px) {
    .news-page .news-header-container {
        padding: 12px 16px;
    }

    .news-header-actions {
        gap: 10px;
    }

    .news-search-btn,
    .news-mobile-toggle {
        flex-shrink: 0;
    }

    .news-lang-entry {
        margin-right: 4px;
    }

    .news-logo-image {
        height: 38px;
    }

    .news-header-nav {
        left: 16px;
        right: 16px;
    }

    .news-hero,
    .news-hero-container {
        min-height: 320px;
        height: 320px;
    }

    .news-hero-container {
        padding: 0 16px;
    }

    .news-hero-title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
    }

    .news-hero-desc {
        max-width: 100%;
        font-size: 14px;
        line-height: 22px;
    }

    .news-content {
        padding: 36px 0 64px;
    }

    .news-shell {
        padding: 0 16px;
    }

    .news-featured-body {
        padding: 24px 18px;
    }

    .news-featured-media {
        min-height: 220px;
    }

    .news-featured-title {
        font-size: 24px;
        line-height: 32px;
    }

    .news-featured-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .news-card-media,
    .news-card-media-blank {
        height: 180px;
    }

    .news-card-body {
        padding: 16px;
    }

    .news-card-title,
    .news-card-desc {
        min-height: 0;
    }

    .news-pagination {
        margin-top: 28px;
        gap: 4px;
    }

    .news-page-btn {
        width: 34px;
        height: 34px;
    }

    .news-footer-container {
        padding: 40px 16px 0;
    }

    .news-footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .news-footer-desc {
        max-width: none;
    }

    .news-footer-bottom p,
    .news-footer-bottom-links a,
    .news-footer-links-col a,
    .news-footer-contact-row {
        font-size: 13px;
    }

    .news-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .news-footer-bottom-links {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (min-width: 969px) {
    .news-hero-container {
        width: min(1328px, calc(100% - 296px));
        max-width: none;
        padding: 0;
    }

    .news-shell {
        width: min(1240px, calc(100% - 296px));
        max-width: none;
        padding: 0;
    }
}

@media (min-width: 1025px) {
    .news-hero {
        min-height: 0;
        height: auto;
        aspect-ratio: 1920 / 675;
        box-sizing: border-box;
    }

    .news-hero-container {
        min-height: 100%;
        height: 100%;
        box-sizing: border-box;
    }
}
