/* ============================================================
   新闻中心 · 文章详情页（news.php?slug=xxx）
   结构参照海外站 sections/main-article.liquid：
   头图 → 标题/日期/作者 → 目录 → 正文 → 分享 → 返回 → 相关阅读
   已去掉：右侧邮箱订阅栏、评论区
   ============================================================ */

.news-detail {
    padding-top: 7vw;
    background: #fff;
}

/* 详情页顶部是浅色内容：强制 header 常亮白底（base.js 会在滚动到顶部时移除 .header-change） */
.news-page header {
    background-color: #fff;
}

.news-page header .logo path {
    fill: #015380 !important;
}

.news-page header .header-content .header-links .link,
.news-page header .header-content .header-links .dropdown-trigger {
    color: #000;
}

.news-page header .header-content .header-icons .icon path {
    fill: #015380;
}

.news-page header .header-content .header-icons .shop-icon span {
    color: #000;
}

/* 面包屑 */
.news-crumb {
    padding: 1.2vw 0 0;
    font-size: 0.85vw;
    color: #9aa4ae;
}

.news-crumb a {
    color: #9aa4ae;
    transition: color 0.25s ease;
}

.news-crumb a:hover {
    color: #0e497d;
}

.news-crumb span {
    margin: 0 0.5vw;
}

/* 正文列：原站 75% 栏 + 25% 订阅栏，去掉侧栏后单栏居中 */
.news-article__wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4vw;
}

/* 头图 */
.news-article__hero {
    margin: 1.8vw 0 2.6vw;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f4f7;
}

.news-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 标题区 */
.news-article__head {
    text-align: center;
    margin-bottom: 2.6vw;
}

.news-article__head h1 {
    font-size: clamp(24px, 2.3vw, 44px);
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
}

.news-article__subtitle {
    margin-top: 1vw;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.6;
    color: #6b737b;
}

.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8vw;
    margin-top: 1.2vw;
    font-size: clamp(12px, 0.85vw, 15px);
    color: #8a9099;
}

.news-article__meta i {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c3c9d0;
}

/* 目录（原生 details，无 JS 也能用） */
.news-toc {
    margin: 0 0 3vw;
    padding: 1.6vw 2vw;
    border-radius: 10px;
    background: #fff3f3;
}

.news-toc summary {
    position: relative;
    padding-right: 2vw;
    font-size: 1.05vw;
    font-weight: 900;
    line-height: 1.4;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
}

.news-toc summary::-webkit-details-marker {
    display: none;
}

.news-toc summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6vw;
    line-height: 1;
}

.news-toc[open] summary::after {
    content: '−';
}

.news-toc ol {
    margin-top: 1vw;
}

.news-toc li {
    margin-bottom: 0.5vw;
}

.news-toc a {
    display: block;
    padding-left: 2em;
    text-indent: -2em;
    font-size: 0.9vw;
    line-height: 1.7;
    color: #3a3a3a;
    transition: color 0.25s ease;
}

.news-toc a:hover {
    color: #0e497d;
}

/* 正文排版 */
.news-article__content {
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.9;
    color: #333;
}

.news-article__content p {
    margin-bottom: 1.1em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: justify;
}

.news-article__content h2 {
    margin: 1.9em 0 0.7em;
    font-size: clamp(19px, 1.4vw, 27px);
    font-weight: 600;
    line-height: 1.4;
    color: #0e497d;
    scroll-margin-top: 120px;
}

.news-article__content h3 {
    margin: 1.5em 0 0.6em;
    font-size: clamp(17px, 1.15vw, 22px);
    font-weight: 600;
    line-height: 1.5;
    color: #1f2327;
}

.news-article__content h4 {
    margin: 1.3em 0 0.5em;
    font-size: inherit;
    font-weight: 700;
    color: #1f2327;
}

.news-article__content strong {
    font-weight: 700;
    color: #1f2327;
}

.news-article__content ul,
.news-article__content ol {
    margin: 0 0 1.1em;
    padding-left: 1.6em;
}

.news-article__content ul li,
.news-article__content ol li {
    margin-bottom: 0.4em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.news-article__content ul li {
    list-style: disc;
}

.news-article__content ol li {
    list-style: decimal;
}

.news-article__content a {
    color: #0e497d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article__content a:hover {
    color: #008a60;
}

.news-article__content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 1.6em auto;
    border-radius: 8px;
}

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

.news-article__content figcaption {
    margin-top: 0.6em;
    font-size: 0.86em;
    color: #8a9099;
    text-align: center;
}

.news-article__content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    font-size: 0.92em;
}

.news-article__content th,
.news-article__content td {
    padding: 0.6em 0.8em;
    border: 1px solid #e3e7ec;
    font-size: inherit;
    color: inherit;
    text-align: left;
}

.news-article__content th {
    background: #f5f7fa;
    font-weight: 600;
}

.news-article__content blockquote {
    margin: 1.5em 0;
    padding: 0.9em 1.2em;
    border-left: 4px solid #008a60;
    background: #f7faf9;
    color: #45525c;
    font-size: inherit;
}

/* 分享 */
.news-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8vw;
    margin-top: 3vw;
    padding-top: 2vw;
    border-top: 1px solid #eef1f4;
}

.news-share__label {
    font-size: 0.85vw;
    color: #8a9099;
}

.news-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4vw;
    padding: 0.5vw 1.1vw;
    border: 1px solid #d8dee5;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 0.85vw;
    line-height: 1.6;
    color: #5b6670;
    cursor: pointer;
    transition: all 0.25s ease;
}

.news-share__btn:hover {
    border-color: #0e497d;
    color: #0e497d;
}

/* 返回 */
.news-article__foot {
    margin-top: 2.6vw;
}

.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4vw;
    font-size: 0.95vw;
    color: #0e497d;
    transition: color 0.25s ease;
}

.news-article__back:hover {
    color: #008a60;
}

/* 相关阅读 */
.news-related {
    padding: 4.5vw 0 6vw;
    background: #f7f8fa;
}

.news-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2vw;
}

.news-related__head h2 {
    font-size: 1.6vw;
    font-weight: 900;
    color: #0e497d;
}

.news-related__head a {
    font-size: 0.9vw;
    color: #5b6670;
    transition: color 0.25s ease;
}

.news-related__head a:hover {
    color: #0e497d;
}

/* 404 */
.news-404 {
    padding: 12vw 0;
    text-align: center;
}

.news-404 h1 {
    font-size: 5vw;
    font-weight: 900;
    color: #0e497d;
}

.news-404 p {
    margin: 1vw 0 2vw;
    font-size: 1vw;
    color: #7a828a;
}

.news-404 a {
    display: inline-block;
    padding: 0.8vw 2vw;
    border-radius: 999px;
    background: #0e497d;
    font-size: 0.95vw;
    color: #fff;
}

.news-404 a:hover {
    background: #008a60;
    color: #fff;
}

/* ================= 移动端 ================= */
@media screen and (max-width: 960px) {
    .news-detail {
        padding-top: 22vw;
    }

    .news-crumb {
        padding: 4vw 0 0;
        font-size: 2.9vw;
    }

    .news-crumb span {
        margin: 0 1.4vw;
    }

    .news-article__hero {
        margin: 4vw 0 6vw;
        border-radius: 8px;
    }

    .news-article__head {
        margin-bottom: 6vw;
        text-align: left;
    }

    .news-article__head h1 {
        font-size: 6vw;
        line-height: 1.4;
    }

    .news-article__subtitle {
        margin-top: 2.4vw;
        font-size: 3.4vw;
    }

    .news-article__meta {
        gap: 2.4vw;
        margin-top: 3vw;
        font-size: 2.9vw;
    }

    .news-toc {
        margin-bottom: 6vw;
        padding: 4vw 4.5vw;
    }

    .news-toc summary {
        padding-right: 6vw;
        font-size: 3.6vw;
    }

    .news-toc summary::after {
        font-size: 5vw;
    }

    .news-toc ol {
        margin-top: 3vw;
    }

    .news-toc li {
        margin-bottom: 2vw;
    }

    .news-toc a {
        padding-left: 1.6em;
        text-indent: -1.6em;
        font-size: 3.2vw;
        line-height: 1.7;
    }

    .news-article__content {
        font-size: 3.6vw;
        line-height: 1.85;
    }

    .news-article__content p {
        text-align: left;
    }

    .news-article__content h2 {
        margin: 1.6em 0 0.6em;
        font-size: 4.6vw;
        scroll-margin-top: 20vw;
    }

    .news-article__content h3 {
        margin: 1.4em 0 0.5em;
        font-size: 4vw;
    }

    .news-share {
        gap: 2.4vw;
        margin-top: 8vw;
        padding-top: 5vw;
    }

    .news-share__label {
        font-size: 3vw;
    }

    .news-share__btn {
        padding: 1.6vw 4vw;
        font-size: 3.2vw;
    }

    .news-article__foot {
        margin-top: 8vw;
    }

    .news-article__back {
        font-size: 3.4vw;
    }

    .news-related {
        padding: 10vw 0 12vw;
    }

    .news-related__head {
        margin-bottom: 6vw;
    }

    .news-related__head h2 {
        font-size: 5vw;
    }

    .news-related__head a {
        font-size: 3.2vw;
    }

    .news-404 {
        padding: 30vw 0;
    }

    .news-404 h1 {
        font-size: 16vw;
    }

    .news-404 p {
        margin: 3vw 0 6vw;
        font-size: 3.6vw;
    }

    .news-404 a {
        padding: 2.4vw 6vw;
        font-size: 3.4vw;
    }
}
