/* News article page — not a corporate homepage */

:root {
    /* Deep navy from Black Diamond Structures hero */
    --bar: #0a1e55;
    --bar-text: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-caption: #8a8a8a;
    --line: #e8e8e8;
    --bg: #ffffff;
    --page-bg: #f5f5f5;
    --max: 720px;
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
        "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.news-page {
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.75;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Top channel bar — news media style */

.news-bar {
    background: var(--bar);
    color: var(--bar-text);
    position: sticky;
    top: 0;
    z-index: 100;
}

.news-bar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.news-bar-sep {
    opacity: 0.75;
    font-weight: 400;
}

.news-bar-channel {
    font-weight: 600;
    opacity: 0.95;
}

/* Article */

.news-article {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--bg);
    padding: 20px 18px 40px;
    min-height: 60vh;
}

.news-header {
    margin-bottom: 8px;
}

.news-time {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.news-title {
    margin: 0 0 22px;
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    letter-spacing: 0.01em;
}

.news-body {
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
    line-height: 1.9;
    color: var(--text);
    word-break: break-word;
}

.news-body p {
    margin: 0 0 1.15em;
}

.news-body p:last-child {
    margin-bottom: 0;
}

.news-body img {
    max-width: 100%;
    height: auto;
}

/* 配图紧跟正文时的间距 */
.news-body + .news-figure {
    margin-top: 1.4em;
}

.news-figure {
    margin: 1.4em 0 1.6em;
    padding: 0;
}

.news-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
    background: #f0f0f0;
}

.news-caption {
    margin: 10px 0 0;
    padding-left: 12px;
    border-left: 3px solid #90caf9;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-caption);
}

.news-meta {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-secondary);
}

.news-meta p {
    margin: 0;
}

/* Footer */

.news-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 18px 28px;
    text-align: center;
    font-size: 12px;
    color: #999;
    background: var(--page-bg);
}

.news-footer p {
    margin: 0;
}

.news-footer a {
    margin-left: 6px;
    color: #888;
}

.news-footer a:hover {
    color: var(--bar);
}

/* Back to top — common on news apps */

.back-top {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
    z-index: 50;
}

.back-top:hover,
.back-top:focus {
    background: #0d47a1;
}

.back-top[hidden] {
    display: none;
}

/* Desktop: keep readable column, not full-bleed corporate layout */

@media (min-width: 768px) {
    body.news-page {
        font-size: 17px;
    }

    .news-bar-inner {
        padding: 14px 24px;
        font-size: 16px;
    }

    .news-article {
        margin-top: 12px;
        margin-bottom: 12px;
        padding: 32px 40px 48px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .news-title {
        font-size: 1.85rem;
        margin-bottom: 28px;
    }

    .news-body p {
        font-size: 1.125rem;
        line-height: 1.95;
    }

    .news-footer {
        padding-bottom: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
