﻿/* ==========================================================================
   NewFeed · 卡片流科技感样式
   作用域：/Home/Index（今日更新）、/Home/History（历史内容）
   ========================================================================== */

/* 设计令牌：提升到 :root，使 .site-card / .nf-subnav 等脱离 .nf-page 也能取色 */
:root {
    --nf-ink: #0f172a;
    --nf-sub: #64748b;
    --nf-line: rgba(15, 42, 92, .10);
    --nf-brand: #1d6bff;
    --nf-cyan: #06c2d8;
    --nf-violet: #7b5cff;
    --nf-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.nf-page {
    --nf-ink: #0f172a;
    --nf-sub: #64748b;
    --nf-line: rgba(15, 42, 92, .10);
    --nf-brand: #1d6bff;
    --nf-cyan: #06c2d8;
    --nf-violet: #7b5cff;
    --nf-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    padding: .25rem 0 .5rem;
}

/* ---------- Hero ---------- */
.nf-hero {
    position: relative;
    overflow: hidden;
    margin: .5rem 0 1.5rem;
    padding: 1.75rem 1.75rem 1.25rem;
    border-radius: 18px;
    color: #e6f0ff;
    background: linear-gradient(135deg, #08162c 0%, #0d2a53 48%, #0a3f74 100%);
    box-shadow: 0 24px 50px -32px rgba(8, 30, 66, .95), inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.nf-hero-violet {
    background: linear-gradient(135deg, #0d1030 0%, #23205c 48%, #10305e 100%);
}

.nf-hero-cyan {
    background: linear-gradient(135deg, #06202b 0%, #0b3a52 48%, #0d2f5c 100%);
}

/* 站点详情头部（Home/Site） */
.nf-site-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .75rem;
}

.nf-site-logo {
    flex: none;
    width: 62px;
    height: 62px;
    padding: 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
}

.nf-site-logo img {
    max-width: 100%;
    max-height: 100%;
}

.nf-site-main {
    min-width: 0;
    flex: 1;
}

.nf-site-head .nf-h1 {
    margin: 0 0 .3rem;
    font-size: 1.7rem;
}

.nf-site-head .nf-h1 a {
    color: inherit;
    text-decoration: none;
    -webkit-text-fill-color: transparent;
}

.nf-site-head .nf-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-site-act {
    flex: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* 站点元信息：最近更新 / RSS 源 / 解析类型 */
.nf-site-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .7rem;
}

.nf-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    color: rgba(214, 231, 255, .78);
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.nf-chip .nf-dot {
    width: 5px;
    height: 5px;
}

.nf-chip-link {
    text-decoration: none;
    color: #7ee7fa;
}

.nf-chip-link:hover {
    color: #bff1ff;
    background: rgba(126, 231, 250, .14);
}

.nf-chip-ghost {
    color: rgba(214, 231, 255, .55);
}

/* 次按钮：访问原站（幽灵样式） */
.nf-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #dbe9ff;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
    transition: background .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}

.nf-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .32);
    transform: translateY(-1px);
}

.nf-btn {
    padding: .45rem 1.15rem;
    border: none;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: #061a33;
    background: linear-gradient(92deg, #7ee7fa, #b3c9ff);
    box-shadow: 0 8px 20px -10px rgba(126, 231, 250, .95);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.nf-btn:hover { transform: translateY(-1px); }

.nf-btn.is-faved {
    color: #d3e6fb;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
}

/* 站点导航页（浅色背景）的订阅按钮：已订阅态走次级样式 */
.btn.is-faved {
    color: #5a6b85;
    background: #fff;
    border-color: rgba(15, 42, 92, .18);
}

/* 分段子导航（我的订阅 / 订阅站点） */
.nf-subnav {
    display: inline-flex;
    gap: .25rem;
    margin: 0 0 1rem;
    padding: .25rem;
    border-radius: 13px;
    background: rgba(15, 42, 92, .045);
}

.nf-subnav a {
    padding: .35rem .95rem;
    border-radius: 10px;
    font-size: .85rem;
    color: #5a6b85;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nf-subnav a:hover { color: var(--nf-brand); }

.nf-subnav a.active {
    color: var(--nf-brand);
    font-weight: 600;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 42, 92, .06), 0 8px 16px -12px rgba(15, 42, 92, .8);
}

/* 网格底纹 + 光斑 */
.nf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140, 200, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 200, 255, .07) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 18% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 18% 0%, #000 0%, transparent 72%);
    pointer-events: none;
}

.nf-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nf-glow {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(6px);
}

.nf-glow-a {
    width: 380px;
    height: 380px;
    right: -110px;
    top: -190px;
    background: radial-gradient(circle, rgba(6, 194, 216, .40), transparent 65%);
}

.nf-glow-b {
    width: 300px;
    height: 300px;
    left: -120px;
    bottom: -190px;
    background: radial-gradient(circle, rgba(123, 92, 255, .38), transparent 65%);
}

.nf-hero-body {
    position: relative;
    z-index: 2;
}

.nf-eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(198, 224, 255, .68);
}

.nf-eyebrow-tag {
    font-family: var(--nf-mono);
    color: #7ee7fa;
}

.nf-eyebrow-sep {
    opacity: .4;
}

.nf-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #37f5c8;
    flex: none;
    animation: nf-pulse 1.8s ease-out infinite;
}

@keyframes nf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(55, 245, 200, .55); }
    70% { box-shadow: 0 0 0 9px rgba(55, 245, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(55, 245, 200, 0); }
}

.nf-h1 {
    margin: .55rem 0 .35rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: linear-gradient(94deg, #ffffff 0%, #96dbff 46%, #a99bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nf-sub {
    margin: 0;
    font-size: .875rem;
    color: rgba(214, 231, 255, .72);
}

.nf-last {
    margin-left: .35rem;
}

.nf-live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 1px 9px;
    border-radius: 999px;
    font-family: var(--nf-mono);
    font-size: .72rem;
    color: #b9f2ea;
    background: rgba(55, 245, 200, .10);
    box-shadow: inset 0 0 0 1px rgba(55, 245, 200, .22);
}

.nf-sub a {
    color: rgba(214, 231, 255, .72);
    text-decoration: underline;
    font-size: .8rem;
}

.nf-sub a:hover { color: #fff; }

/* 胶囊导航 */
.nf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.35rem;
}

.nf-tab {
    padding: .4rem 1.05rem;
    border-radius: 999px;
    font-size: .875rem;
    text-decoration: none;
    color: rgba(224, 238, 255, .78);
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.nf-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.nf-tab.active {
    color: #061a33;
    font-weight: 600;
    background: linear-gradient(92deg, #7ee7fa, #b3c9ff);
    box-shadow: 0 8px 20px -10px rgba(126, 231, 250, .95);
}

/* ---------- 卡片网格 ---------- */
.nf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
    gap: 1rem;
}

.nf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.15rem .85rem;
    border: 1px solid var(--nf-line);
    border-radius: 14px;
    background-image:
        radial-gradient(120% 100% at 100% 0%, rgba(29, 107, 255, .05), transparent 58%),
        linear-gradient(165deg, #ffffff, #f6fafe);
    box-shadow: 0 1px 2px rgba(15, 42, 92, .04), 0 10px 24px -20px rgba(15, 42, 92, .55);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease;
    animation: nf-rise .5s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 38ms);
}

@keyframes nf-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* hover 外发光 */
.nf-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    box-shadow: 0 0 0 1px rgba(29, 107, 255, .32), 0 22px 44px -26px rgba(29, 107, 255, .75);
}

.nf-card:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 107, 255, .28);
    box-shadow: 0 1px 2px rgba(15, 42, 92, .05), 0 24px 48px -28px rgba(15, 42, 92, .5);
}

.nf-card:hover::after { opacity: 1; }

/* 整卡点击热区 */
.nf-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
}

.nf-card-hit:focus-visible {
    outline: 2px solid var(--nf-brand);
    outline-offset: -3px;
}

.nf-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.nf-seq {
    font-family: var(--nf-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    color: #9aa8bd;
}

.nf-time {
    font-family: var(--nf-mono);
    font-size: .7rem;
    color: #6b7c94;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .13);
}

.nf-title {
    margin: 0 0 .5rem;
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--nf-ink);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .22s ease;
}

.nf-card:hover .nf-title { color: var(--nf-brand); }

.nf-summary {
    flex: 1;
    margin: 0 0 .85rem;
    font-size: .845rem;
    line-height: 1.72;
    color: var(--nf-sub);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-top: .65rem;
    border-top: 1px dashed rgba(15, 42, 92, .12);
}

.nf-meta.only-star { justify-content: flex-end; }

.nf-source {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    max-width: 78%;
    font-size: .78rem;
    color: #4b5c74;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.nf-source:hover { color: var(--nf-brand); }

.nf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    background: var(--nf-cyan);
    box-shadow: 0 0 0 3px rgba(6, 194, 216, .15);
}

.nf-fav {
    width: 19px;
    height: 19px;
    flex: none;
    cursor: pointer;
    opacity: .32;
    transition: opacity .2s ease, transform .2s ease;
}

.nf-fav:hover { opacity: .85; transform: scale(1.18); }
.nf-fav.on { opacity: 1; }

/* ---------- 空状态 ---------- */
.nf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1rem;
    border: 1px dashed rgba(15, 42, 92, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f7fafe);
}

.nf-empty-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(29, 107, 255, .28), 0 0 0 8px rgba(29, 107, 255, .05);
}

.nf-empty-ring span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nf-brand);
    animation: nf-pulse 1.8s ease-out infinite;
}

.nf-empty-title {
    margin: 1rem 0 .25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #33415c;
}

.nf-empty-desc {
    margin: 0;
    font-size: .82rem;
    color: #8895a8;
}

/* ---------- 分页 ---------- */
.nf-pager {
    margin: 2rem 0 .5rem;
}

.nf-pager .page-link {
    min-width: 38px;
    margin: 0 3px;
    text-align: center;
    border: none;
    border-radius: 10px;
    color: #5a6b85;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 42, 92, .10);
    transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}

.nf-pager .page-link:hover {
    color: var(--nf-brand);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(29, 107, 255, .35), 0 8px 18px -12px rgba(29, 107, 255, .8);
}

.nf-pager .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(92deg, var(--nf-brand), var(--nf-violet));
    box-shadow: 0 10px 20px -12px rgba(29, 107, 255, .95);
}

.nf-pager .page-item.disabled .page-link {
    opacity: .42;
    box-shadow: inset 0 0 0 1px rgba(15, 42, 92, .08);
}

/* ---------- 顶栏 / 页脚（科技深色框） ---------- */
.nf-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    margin: 0;
    padding: .25rem 0;
    background: linear-gradient(120deg, #07142a 0%, #0c2a52 55%, #082c54 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -30px rgba(8, 30, 66, .9);
}

.nf-topbar .navbar-brand.nf-brand {
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 1.25rem;
    background: linear-gradient(94deg, #ffffff 0%, #7ee7fa 60%, #a99bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nf-topbar .navbar-nav .nav-link {
    color: rgba(214, 231, 255, .82);
    font-size: .9rem;
    transition: color .2s ease;
}

.nf-topbar .navbar-nav .nav-link:hover { color: #7ee7fa; }

.nf-topbar .navbar-toggler { border-color: rgba(255, 255, 255, .25); }

.nf-topbar .navbar-collapse.show,
.nf-topbar .navbar-collapse.collapsing {
    background: linear-gradient(180deg, #0b2647, #0a2444);
    margin: .4rem -.75rem -0.5rem;
    padding: .5rem .75rem 1rem;
    border-radius: 0 0 14px 14px;
}

.nf-foot {
    margin-top: 2.75rem;
    padding: 1.1rem 0;
    background: linear-gradient(120deg, #07142a 0%, #0c2a52 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: rgba(214, 231, 255, .6);
    font-size: .82rem;
}

.nf-foot .container { padding: 0; }

/* ---------- 站点导航卡片（站点列表 / 我的订阅，复用 .site-card） ---------- */
.site-card {
    display: flex;
    flex-direction: column;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem .9rem;
    border: 1px solid var(--nf-line);
    border-radius: 14px;
    background-image:
        radial-gradient(120% 100% at 100% 0%, rgba(6, 194, 216, .06), transparent 58%),
        linear-gradient(165deg, #ffffff, #f6fafe);
    box-shadow: 0 1px 2px rgba(15, 42, 92, .04), 0 10px 24px -20px rgba(15, 42, 92, .55);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 194, 216, .30);
    box-shadow: 0 1px 2px rgba(15, 42, 92, .05), 0 24px 48px -28px rgba(15, 42, 92, .5);
}

.site-card .site-logo {
    flex: none;
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(15, 42, 92, .06);
    overflow: hidden;
}

.site-card .site-logo img { max-width: 100%; max-height: 100%; }

.site-card .site-name {
    padding-left: .85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--nf-ink);
    min-width: 0;
}

.site-card .site-name a {
    color: var(--nf-ink);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.site-card .site-name a:hover { color: var(--nf-brand); }

.site-card .site-desc {
    margin: .55rem 0 .8rem;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--nf-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card .btn { border-radius: 999px; }

.site-card .btn-primary {
    --bs-btn-color: #061a33;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    background: linear-gradient(92deg, #7ee7fa, #b3c9ff);
    box-shadow: 0 8px 20px -10px rgba(126, 231, 250, .95);
}

.site-card .btn-primary.is-faved {
    color: #5a6b85;
    background: #fff;
    border: 1px solid rgba(15, 42, 92, .18);
    box-shadow: none;
}

/* ---------- 摘要页（正文 Content + 阅读原文） ---------- */
.nf-hero-teal {
    background: linear-gradient(135deg, #04241f 0%, #0a4038 48%, #0b3552 100%);
}

/* 正文为主的页面：列宽加大，便于长文阅读 */
.nf-grid-text {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.nf-body {
    flex: 1;
    margin: 0 0 .85rem;
    font-size: .875rem;
    line-height: 1.8;
    color: #45566e;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-card-act {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.nf-origin {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--nf-brand);
    text-decoration: none;
    background: rgba(29, 107, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(29, 107, 255, .18);
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nf-origin:hover {
    color: #fff;
    background: var(--nf-brand);
    box-shadow: 0 8px 18px -12px rgba(29, 107, 255, .95);
    transform: translateY(-1px);
}

/* ---------- 响应式 & 无障碍 ---------- */
@media (max-width: 576px) {
    .nf-hero {
        padding: 1.4rem 1.1rem 1rem;
        border-radius: 14px;
    }
    .nf-h1 { font-size: 1.55rem; }
    .nf-grid { grid-template-columns: 1fr; }
    .nf-grid-text { grid-template-columns: 1fr; }
    .nf-eyebrow { font-size: .66rem; }
    .nf-site-head { flex-wrap: wrap; gap: .75rem; }
    .nf-site-act { width: 100%; }
    .nf-site-act .nf-btn, .nf-site-act .nf-btn-ghost { flex: 1; justify-content: center; }
    .nf-site-head .nf-h1 { font-size: 1.3rem; }
    .nf-subnav { display: flex; width: 100%; }
    .nf-subnav a { flex: 1; text-align: center; }
}

/* ---------- 文章详情页（/Home/Detail/{id}） ---------- */
/* 与其他页面保持同样的全宽（沿用 .container 宽度），不再单独收窄 */
.nf-detail {
    max-width: none;
}

/* Hero 内的文章标题：允许长标题换行并略缩字号，避免顶破 Hero */
.nf-hero .nf-detail-title {
    margin: .55rem 0 .35rem;
    font-size: 1.7rem;
    overflow-wrap: anywhere;
}

/* 文章容器（Hero 之下） */
.nf-article {
    position: relative;
    margin-top: 1.25rem;
    padding: 1.5rem 1.6rem 1.75rem;
    border: 1px solid var(--nf-line);
    border-radius: 18px;
    background-image:
        radial-gradient(120% 90% at 100% 0%, rgba(29, 107, 255, .05), transparent 58%),
        linear-gradient(165deg, #ffffff, #f7fafe);
    box-shadow: 0 1px 2px rgba(15, 42, 92, .04), 0 24px 50px -34px rgba(15, 42, 92, .55);
}

/* 文章顶部操作条：阅读原文 + 收藏 */
.nf-article-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(15, 42, 92, .10);
}

.nf-article-act {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.nf-article-act .nf-fav {
    width: 20px;
    height: 20px;
}

/* 正文 */
.nf-article-body {
    margin: 1.4rem 0;
    font-size: 1rem;
    line-height: 1.9;
    color: #36465e;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nf-article-body p {
    margin: 0 0 1.1rem;
}

.nf-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: .5rem 0;
    box-shadow: 0 8px 22px -16px rgba(15, 42, 92, .8);
}

.nf-article-body a {
    color: var(--nf-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nf-article-body h1,
.nf-article-body h2,
.nf-article-body h3,
.nf-article-body h4 {
    margin: 1.4rem 0 .8rem;
    line-height: 1.4;
    color: var(--nf-ink);
}

.nf-article-body pre,
.nf-article-body code {
    font-family: var(--nf-mono);
    background: rgba(15, 42, 92, .05);
    border-radius: 8px;
}

.nf-article-body pre {
    padding: .9rem 1rem;
    overflow-x: auto;
    line-height: 1.6;
}

.nf-article-body blockquote {
    margin: 1rem 0;
    padding: .4rem 1rem;
    border-left: 3px solid var(--nf-cyan);
    color: #5a6b85;
    background: rgba(6, 194, 216, .05);
}

.nf-article-empty {
    color: #8895a8;
}

/* 底部操作 */
.nf-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(15, 42, 92, .12);
}

.nf-link-back {
    font-size: .85rem;
    color: #5a6b85;
    text-decoration: none;
    transition: color .2s ease;
}

.nf-link-back:hover { color: var(--nf-brand); }

@media (max-width: 576px) {
    .nf-hero .nf-detail-title { font-size: 1.4rem; }
    .nf-article { padding: 1.15rem 1.1rem 1.4rem; border-radius: 14px; }
    .nf-article-body { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
    .nf-card { animation: none; }
    .nf-card:hover { transform: none; }
    .nf-pulse, .nf-empty-ring span { animation: none; }
}
