/* ==========================================
   NewsDetail 页面模块样式
   ========================================== */

:root {
    --newsdetail-primary: #003d95;
    --newsdetail-primary-soft: rgba(0, 61, 149, 0.08);
    --newsdetail-accent: #00b01d;
    --newsdetail-text: #1a2a44;
    --newsdetail-text-secondary: #5a6b82;
    --newsdetail-text-muted: #8a94a6;
    --newsdetail-border: #edf2f7;
    --newsdetail-footer-bg: #11479d;
    --newsdetail-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.newsdetail-page {
    margin-top: 0;
    background: #ffffff;
    color: var(--newsdetail-text);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.newsdetail-page > main {
    margin-top: 0;
}

.newsdetail-main {
    background: #ffffff;
}

.newsdetail-hero {
    position: relative;
    min-height: 414px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfbfc 0%, #eceef1 28%, #c8ccd3 100%);
}

.newsdetail-hero-media,
.newsdetail-hero-overlay {
    position: absolute;
    inset: 0;
}

.newsdetail-hero-media {
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.88) 18%, rgba(255, 255, 255, 0) 52%),
        radial-gradient(circle at 70% -6%, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 242, 245, 0.85) 25%, rgba(195, 199, 208, 0.8) 100%);
}

.newsdetail-hero-overlay {
    background: linear-gradient(180deg, rgba(4, 12, 32, 0) 0%, rgba(4, 12, 32, 0.08) 58%, rgba(4, 12, 32, 0.18) 100%);
}

.newsdetail-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    min-height: 414px;
    margin: 0 auto;
    padding: 0 56px 48px;
    display: flex;
    align-items: flex-end;
}

.newsdetail-hero-copy {
    padding: 0 80px;
    width: 100%;
}

.newsdetail-title {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 0.37px;
}

.newsdetail-meta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #ffffff;
}

.newsdetail-meta img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.newsdetail-content {
    padding: 56px 0 88px;
}

.newsdetail-shell {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
    font-size: 14px;
    line-height: 22.75px;
    letter-spacing: -0.15px;
}

.newsdetail-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--newsdetail-primary);
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.newsdetail-back-icon-wrap {
    width: 32px;
    height: 32px;
    line-height: 22px;
    letter-spacing: 0;
    background: rgba(0, 61, 136, 0.04);
    border: 1px solid rgba(0, 61, 136, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.newsdetail-back-icon-wrap img {
    width: 14px;
    height: 14px;
}

.newsdetail-article {
    width: min(860px, 100%);
    margin: 88px auto 0;
}

.newsdetail-lead {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--newsdetail-border);
    color: var(--newsdetail-primary);
    font-size: 13px;
    line-height: 25.5px;
    letter-spacing: 0;
}

.newsdetail-body {
    padding-top: 20px;
}

.newsdetail-body p {
    color: var(--newsdetail-text-secondary);
    font-size: 13px;
    line-height: 28px;
    letter-spacing: 0.52px;
}

.newsdetail-body p + p {
    margin-top: 12px;
}

.newsdetail-figure {
    margin: 38px 0 0;
}

.newsdetail-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--newsdetail-shadow);
}

.newsdetail-back-button:hover,
.newsdetail-back-button:focus-visible {
    outline: none;
    opacity: 0.9;
}

.newsdetail-back-button:hover .newsdetail-back-icon-wrap,
.newsdetail-back-button:focus-visible .newsdetail-back-icon-wrap {
    transform: translateY(-1px);
}

@media (max-width: 968px) {
    .newsdetail-hero,
    .newsdetail-hero-container {
        min-height: 340px;
    }

    .newsdetail-hero-container {
        padding: 0 28px 36px;
    }

    .newsdetail-title {
        font-size: 30px;
        letter-spacing: 1.6px;
    }

    .newsdetail-shell {
        padding: 0 24px;
    }

    .newsdetail-back-button {
        margin-left: 0;
    }

    .newsdetail-article {
        margin-top: 52px;
    }

}

@media (max-width: 750px) {
    .newsdetail-hero,
    .newsdetail-hero-container {
        min-height: 280px;
    }

    .newsdetail-hero-container {
        padding: 0 16px 24px;
    }

    .newsdetail-title {
        font-size: 28px;
        line-height: 1.35;
        letter-spacing: 1px;
    }

    .newsdetail-content {
        padding: 32px 0 56px;
    }

    .newsdetail-shell {
        padding: 0 16px;
    }

    .newsdetail-back-button {
        font-size: 13px;
    }

    .newsdetail-lead,
    .newsdetail-body p {
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 0.2px;
    }

    .newsdetail-figure {
        margin-top: 28px;
    }
}

@media (min-width: 969px) {
    .newsdetail-hero-container,
    .newsdetail-shell {
        width: min(1328px, calc(100% - 296px));
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .newsdetail-back-button {
        margin-left: 0;
    }
}

.newsdetail-adjacent {
    width: min(860px, 100%);
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.newsdetail-adjacent-card {
    padding: 20px 22px;
    border: 1px solid var(--newsdetail-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--newsdetail-shadow);
}

.newsdetail-adjacent-card.is-empty {
    background: #f8fafc;
    box-shadow: none;
}

.newsdetail-adjacent-label {
    color: var(--newsdetail-text-muted);
    font-size: 12px;
    line-height: 18px;
}

.newsdetail-adjacent-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    color: inherit;
    text-decoration: none;
}

.newsdetail-adjacent-title {
    color: var(--newsdetail-text);
    font-size: 15px;
    line-height: 1.7;
}

.newsdetail-adjacent-meta,
.newsdetail-adjacent-empty {
    color: var(--newsdetail-text-muted);
    font-size: 12px;
    line-height: 18px;
}

.newsdetail-adjacent-link:hover,
.newsdetail-adjacent-link:focus-visible {
    outline: none;
    opacity: 0.88;
}

@media (max-width: 750px) {
    .newsdetail-adjacent {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }
}

@media (min-width: 1025px) {
    .newsdetail-hero {
        min-height: 0;
        height: auto;
        aspect-ratio: 1920 / 675;
        box-sizing: border-box;
    }

    .newsdetail-hero-container {
        min-height: 100%;
        height: 100%;
        box-sizing: border-box;
    }
}