@charset "UTF-8";

/* ==========================================================================
   Navone — 网址导航模板样式
   依赖 header.php 注入的 --nv-accent / --nv-accent-soft / --nv-accent-soft-2 / --nv-accent-line
   ========================================================================== */

/* ---------- 1. 主题变量 ---------- */
:root {
    --nv-accent: #2563eb;
    --nv-accent-soft: rgba(37, 99, 235, .10);
    --nv-accent-soft-2: rgba(37, 99, 235, .18);
    --nv-accent-line: rgba(37, 99, 235, .32);
    /* 主色作为文字色时用这个变量：深色主题下由 header.php 换成提亮版 */
    --nv-accent-ink: var(--nv-accent);

    --nv-bg: #f5f7fb;
    --nv-surface: #ffffff;
    --nv-surface-2: #f1f4f9;
    --nv-text: #0f172a;
    --nv-text-2: #55637a;
    --nv-text-3: #8b98ab;
    --nv-line: #e5eaf2;
    --nv-line-soft: #eef2f8;
    --nv-header-bg: rgba(255, 255, 255, .86);

    --nv-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --nv-shadow: 0 8px 24px -12px rgba(15, 23, 42, .18);
    --nv-shadow-lg: 0 20px 48px -24px rgba(15, 23, 42, .32);

    --nv-radius: 14px;
    --nv-radius-lg: 20px;
    --nv-wrap: 1180px;
    --nv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, Helvetica, Arial, sans-serif;
    --nv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
    --nv-bg: #0b1220;
    --nv-surface: #111c2e;
    --nv-surface-2: #17233a;
    --nv-text: #e8eef9;
    --nv-text-2: #a9b6cb;
    --nv-text-3: #7d8ba1;
    --nv-line: #22304b;
    --nv-line-soft: #1b2740;
    --nv-header-bg: rgba(11, 18, 32, .84);

    --nv-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --nv-shadow: 0 10px 28px -14px rgba(0, 0, 0, .7);
    --nv-shadow-lg: 0 24px 52px -26px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --nv-bg: #0b1220;
        --nv-surface: #111c2e;
        --nv-surface-2: #17233a;
        --nv-text: #e8eef9;
        --nv-text-2: #a9b6cb;
        --nv-text-3: #7d8ba1;
        --nv-line: #22304b;
        --nv-line-soft: #1b2740;
        --nv-header-bg: rgba(11, 18, 32, .84);

        --nv-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --nv-shadow: 0 10px 28px -14px rgba(0, 0, 0, .7);
        --nv-shadow-lg: 0 24px 52px -26px rgba(0, 0, 0, .8);
        color-scheme: dark;
    }
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.nv-body {
    margin: 0;
    font-family: var(--nv-font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--nv-text);
    background: var(--nv-bg);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

.nv-body img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* 全局链接色刻意用 :where() 包裹，把特异性降到 0（等价于纯 a 选择器）。
   否则 .nv-body a（0,2,0）会压过 .nv-nav-link / .nv-card / .nv-tab 这些组件类（0,1,0），
   导致导航项、卡片标题全部被染成主色蓝。 */
:where(.nv-body) a {
    color: var(--nv-accent-ink);
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}

:where(.nv-body) a:hover {
    color: var(--nv-accent-ink);
    opacity: .82;
}

.nv-body button {
    font-family: inherit;
}

.nv-wrap {
    width: 100%;
    max-width: var(--nv-wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.nv-main {
    display: block;
    min-height: 46vh;
}

.nv-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 10px 16px;
    background: var(--nv-accent);
    color: #fff;
    border-radius: 0 0 10px 0;
    z-index: 99;
}

.nv-skip:focus {
    left: 0;
    color: #fff;
}

/* ---------- 3. 顶部导航 ---------- */
.nv-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--nv-header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--nv-line);
}

.nv-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 62px;
}

.nv-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--nv-text);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .2px;
}

.nv-logo:hover {
    color: var(--nv-text);
    opacity: 1;
}

.nv-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--nv-accent-soft);
    color: var(--nv-accent-ink);
    overflow: hidden;
}

.nv-logo-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nv-logo-text {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.nv-nav-link {
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--nv-text-2);
    white-space: nowrap;
}

.nv-nav-link:hover {
    background: var(--nv-surface-2);
    color: var(--nv-text);
    opacity: 1;
}

.nv-nav-link.is-active {
    color: var(--nv-accent-ink);
    background: var(--nv-accent-soft);
    font-weight: 600;
}

.nv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.nv-btn:active {
    transform: translateY(1px);
}

.nv-btn-accent {
    background: var(--nv-accent);
    color: #fff;
    box-shadow: 0 6px 16px -8px var(--nv-accent-line);
}

.nv-btn-accent:hover {
    color: #fff;
    opacity: 1;
    filter: brightness(1.06);
}

.nv-btn-ghost {
    background: transparent;
    border-color: var(--nv-line);
    color: var(--nv-text-2);
}

.nv-btn-ghost:hover {
    background: var(--nv-surface-2);
    color: var(--nv-text);
    opacity: 1;
}

.nv-btn-light {
    background: #fff;
    color: #0f172a;
    box-shadow: var(--nv-shadow);
}

.nv-btn-light:hover {
    color: #0f172a;
    opacity: 1;
    transform: translateY(-1px);
}

.nv-header-submit {
    flex: 0 0 auto;
}

/* 顶部搜索框 */
.nv-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 300px;
    min-width: 180px;
    height: 38px;
    padding: 0 4px 0 34px;
    background: var(--nv-surface-2);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color .2s ease, background .2s ease;
}

.nv-search:focus-within {
    background: var(--nv-surface);
    border-color: var(--nv-accent-line);
}

.nv-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nv-text-3);
    pointer-events: none;
}

.nv-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--nv-text);
    font-size: 13.5px;
    outline: none;
}

.nv-search input::placeholder {
    color: var(--nv-text-3);
}

.nv-search button {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--nv-accent);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* 汉堡按钮 */
.nv-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0 8px;
    background: var(--nv-surface-2);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.nv-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--nv-text-2);
}

/* ---------- 4. 首页 Hero ---------- */
.nv-hero {
    padding: 54px 0 34px;
    background:
        radial-gradient(760px 320px at 50% -60px, var(--nv-accent-soft-2), transparent 70%),
        radial-gradient(520px 240px at 88% 0, var(--nv-accent-soft), transparent 72%);
    border-bottom: 1px solid var(--nv-line-soft);
    text-align: center;
}

.nv-hero.is-compact {
    padding: 34px 0 24px;
}

.nv-hero-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.4px;
}

.nv-hero-title-sm {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.nv-hero-sub {
    margin: 0 0 24px;
    color: var(--nv-text-2);
    font-size: 15px;
}

.nv-hero-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 6px 6px 6px 44px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: 14px;
    box-shadow: var(--nv-shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.nv-hero-search:focus-within {
    border-color: var(--nv-accent-line);
    box-shadow: 0 10px 30px -14px var(--nv-accent-line);
}

.nv-hero-search > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nv-text-3);
}

.nv-hero-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nv-text);
    font-size: 15px;
    outline: none;
}

.nv-hero-search input::placeholder {
    color: var(--nv-text-3);
}

.nv-hero-search button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--nv-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s ease;
}

.nv-hero-search button:hover {
    filter: brightness(1.07);
}

.nv-hero-stat {
    margin: 16px 0 0;
    color: var(--nv-text-3);
    font-size: 13px;
}

.nv-hero-stat .nv-dot {
    margin: 0 6px;
}

/* ---------- 5. 提示 / 分类胶囊 / 排序 ---------- */
.nv-notice {
    margin: 24px 0;
    padding: 18px 20px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-left: 3px solid var(--nv-accent);
    border-radius: 12px;
    box-shadow: var(--nv-shadow-sm);
}

.nv-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.nv-notice p {
    margin: 0;
    color: var(--nv-text-2);
    font-size: 13.5px;
}

.nv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 26px 0 4px;
}

.nv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: 999px;
    color: var(--nv-text-2);
    font-size: 13.5px;
    line-height: 1.4;
    transition: all .18s ease;
}

.nv-chip:hover {
    border-color: var(--nv-accent-line);
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-chip i {
    font-style: normal;
    font-size: 11.5px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--nv-surface-2);
    color: var(--nv-text-3);
}

.nv-chip.is-active {
    background: var(--nv-accent);
    border-color: var(--nv-accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px -10px var(--nv-accent-line);
}

.nv-chip.is-active i {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.nv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nv-line-soft);
}

.nv-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: var(--nv-surface-2);
    border-radius: 11px;
}

.nv-tab {
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--nv-text-2);
}

.nv-tab:hover {
    color: var(--nv-text);
    opacity: 1;
}

.nv-tab.is-active {
    background: var(--nv-surface);
    color: var(--nv-accent-ink);
    font-weight: 600;
    box-shadow: var(--nv-shadow-sm);
}

.nv-toolbar-count {
    color: var(--nv-text-3);
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- 6. 站点卡片网格 ---------- */
.nv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 14px;
    padding-bottom: 8px;
}

.nv-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius);
    color: var(--nv-text);
    transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}

.nv-card:hover {
    color: var(--nv-text);
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--nv-accent-line);
    box-shadow: var(--nv-shadow);
}

.nv-card-icon {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--nv-surface-2);
    overflow: hidden;
}

.nv-card-letter {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--nv-letter, #64748b);
    text-transform: uppercase;
}

.nv-card-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
    background: var(--nv-surface);
    border-radius: 12px;
}

.nv-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.nv-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.nv-card-title b {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-flag {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 5px;
    background: var(--nv-accent-soft-2);
    color: var(--nv-accent-ink);
}

.nv-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: var(--nv-text-2);
    font-size: 12.5px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.nv-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nv-text-3);
    font-size: 11.5px;
}

/* 域名可省略，点击数必须整块不换行，否则窄列会断成「1,530 次點/擊」 */
.nv-card-host {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-card-hits {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nv-card-hits::before {
    content: "·";
    margin-right: 6px;
}

/* ---------- 7. 分页 / 空状态 ---------- */
.nv-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 0 8px;
}

.nv-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: 10px;
    color: var(--nv-text-2);
    font-size: 13.5px;
    transition: all .18s ease;
}

.nv-pager-btn:hover {
    border-color: var(--nv-accent-line);
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-pager-btn.is-nav {
    padding: 0 14px;
}

.nv-pager-btn.is-active {
    background: var(--nv-accent);
    border-color: var(--nv-accent);
    color: #fff;
    font-weight: 600;
}

.nv-pager-btn.is-active:hover {
    color: #fff;
}

.nv-pager-dot {
    color: var(--nv-text-3);
    padding: 0 2px;
}

.nv-empty {
    padding: 64px 20px;
    text-align: center;
    color: var(--nv-text-3);
}

.nv-empty svg {
    color: var(--nv-line);
    margin-bottom: 12px;
}

.nv-empty p {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--nv-text-2);
}

/* ---------- 8. 首页区块 / 文章卡片 / CTA ---------- */
.nv-section {
    padding: 44px 0 8px;
    margin-top: 44px;
    border-top: 1px solid var(--nv-line-soft);
}

.nv-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.nv-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.nv-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.nv-post-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius);
    transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}

.nv-post-card:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--nv-accent-line);
    box-shadow: var(--nv-shadow);
}

.nv-post-card-date {
    color: var(--nv-text-3);
    font-size: 11.5px;
    letter-spacing: .3px;
}

.nv-post-card-title {
    color: var(--nv-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-post-card-desc {
    color: var(--nv-text-2);
    font-size: 12.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-cta {
    margin-top: 56px;
    padding: 38px 0;
    background:
        linear-gradient(120deg, var(--nv-accent), color-mix(in srgb, var(--nv-accent) 62%, #111827));
    background-color: var(--nv-accent);
}

.nv-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.nv-cta-text h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.nv-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13.5px;
}

/* ---------- 9. 内容两栏 / 文章列表 ---------- */
.nv-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 56px;
    align-items: start;
}

.nv-column-main {
    min-width: 0;
}

.nv-page-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nv-line-soft);
}

.nv-page-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.nv-page-head p {
    margin: 8px 0 0;
    color: var(--nv-text-2);
    font-size: 13.5px;
}

.nv-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nv-post {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius);
    transition: border-color .18s ease, box-shadow .22s ease;
}

.nv-post:hover {
    border-color: var(--nv-accent-line);
    box-shadow: var(--nv-shadow);
}

.nv-post-thumb {
    flex: 0 0 148px;
    width: 148px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--nv-surface-2);
}

.nv-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.nv-post:hover .nv-post-thumb img {
    transform: scale(1.04);
}

.nv-post-main {
    flex: 1 1 auto;
    min-width: 0;
}

.nv-post-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.nv-post-title a {
    color: var(--nv-text);
}

.nv-post-title a:hover {
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-post-desc {
    margin: 0 0 10px;
    color: var(--nv-text-2);
    font-size: 13.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--nv-text-3);
    font-size: 12px;
}

.nv-pagination {
    margin-top: 26px;
    text-align: center;
    font-size: 13.5px;
    color: var(--nv-text-3);
}

.nv-pagination a,
.nv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0 3px 6px;
    padding: 0 10px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: 9px;
    color: var(--nv-text-2);
    font-size: 13px;
}

.nv-pagination a:hover {
    border-color: var(--nv-accent-line);
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-pagination em {
    font-style: normal;
    color: var(--nv-text-3);
    margin: 0 3px;
}

/* ---------- 10. 文章页 ---------- */
.nv-article {
    padding: 28px 30px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius-lg);
    box-shadow: var(--nv-shadow-sm);
}

.nv-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--nv-text-3);
    font-size: 12.5px;
}

.nv-crumbs a {
    color: var(--nv-text-2);
}

.nv-crumbs em {
    font-style: normal;
    color: var(--nv-text-3);
}

.nv-article-title {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -.4px;
}

.nv-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--nv-line-soft);
    color: var(--nv-text-3);
    font-size: 12.5px;
}

.nv-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--nv-line-soft);
}

.nv-article-tags a {
    padding: 5px 11px;
    background: var(--nv-surface-2);
    border-radius: 999px;
    color: var(--nv-text-2);
    font-size: 12.5px;
}

.nv-article-tags a:hover {
    background: var(--nv-accent-soft);
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-neighbor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.nv-neighbor-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 15px;
    background: var(--nv-surface-2);
    border-radius: 12px;
    transition: background .18s ease;
}

.nv-neighbor-item:hover {
    background: var(--nv-accent-soft);
    opacity: 1;
}

.nv-neighbor-item span {
    color: var(--nv-text-3);
    font-size: 11.5px;
}

.nv-neighbor-item b {
    color: var(--nv-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-neighbor-item.is-next {
    text-align: right;
    align-items: flex-end;
}

/* 正文排版 */
.nv-prose {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--nv-text);
    word-break: break-word;
}

.nv-prose > *:first-child {
    margin-top: 0;
}

.nv-prose > *:last-child {
    margin-bottom: 0;
}

.nv-prose p {
    margin: 0 0 1.1em;
}

.nv-prose h2,
.nv-prose h3,
.nv-prose h4 {
    margin: 1.7em 0 .7em;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.2px;
}

.nv-prose h2 {
    font-size: 21px;
    padding-left: 12px;
    border-left: 3px solid var(--nv-accent);
}

.nv-prose h3 {
    font-size: 18px;
}

.nv-prose h4 {
    font-size: 16px;
}

.nv-prose a {
    border-bottom: 1px solid var(--nv-accent-line);
}

.nv-prose ul,
.nv-prose ol {
    margin: 0 0 1.1em;
    padding-left: 1.5em;
}

.nv-prose li {
    margin: .35em 0;
}

.nv-prose img {
    display: block;
    margin: 1.4em auto;
    border-radius: 12px;
}

.nv-prose blockquote {
    margin: 1.4em 0;
    padding: 12px 18px;
    background: var(--nv-surface-2);
    border-left: 3px solid var(--nv-accent-line);
    border-radius: 0 10px 10px 0;
    color: var(--nv-text-2);
}

.nv-prose blockquote p:last-child {
    margin-bottom: 0;
}

.nv-prose pre {
    margin: 1.3em 0;
    padding: 16px 18px;
    overflow-x: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
}

.nv-prose code {
    font-family: var(--nv-mono);
    font-size: .92em;
    padding: 2px 6px;
    background: var(--nv-surface-2);
    border-radius: 6px;
}

.nv-prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.nv-prose table {
    width: 100%;
    margin: 1.3em 0;
    border-collapse: collapse;
    font-size: 14px;
}

.nv-prose th,
.nv-prose td {
    padding: 9px 12px;
    border: 1px solid var(--nv-line);
    text-align: left;
}

.nv-prose th {
    background: var(--nv-surface-2);
    font-weight: 600;
}

.nv-prose hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--nv-line);
}

/* ---------- 11. 评论 ---------- */
.nv-comment-area {
    margin-top: 24px;
    padding: 26px 30px 30px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius-lg);
}

.nv-comment-closed {
    margin: 0;
    padding: 14px 16px;
    background: var(--nv-surface-2);
    border-radius: 10px;
    color: var(--nv-text-2);
    font-size: 13.5px;
    text-align: center;
}

.nv-comment-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nv-comment-form textarea,
.nv-comment-fields input {
    width: 100%;
    padding: 11px 14px;
    background: var(--nv-surface-2);
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--nv-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    transition: border-color .18s ease, background .18s ease;
}

.nv-comment-form textarea:focus,
.nv-comment-fields input:focus {
    background: var(--nv-surface);
    border-color: var(--nv-accent-line);
}

.nv-comment-form textarea {
    resize: vertical;
    min-height: 108px;
}

.nv-comment-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nv-comment-captcha img {
    border-radius: 8px;
    cursor: pointer;
}

.nv-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nv-comments-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 30px 0 16px;
    font-size: 17px;
    font-weight: 700;
}

.nv-comments-title span {
    color: var(--nv-text-3);
    font-size: 12.5px;
    font-weight: 400;
}

.nv-comment-list,
.nv-comment-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nv-comment-children {
    margin-top: 14px;
    padding-left: 14px;
    border-left: 1px dashed var(--nv-line);
}

.nv-comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--nv-line-soft);
}

.nv-comment-list > .nv-comment:first-child {
    border-top: 0;
}

.nv-comment-empty {
    padding: 22px 0;
    color: var(--nv-text-3);
    font-size: 13.5px;
    text-align: center;
}

.nv-comment-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--nv-surface-2);
    object-fit: cover;
}

.nv-comment-body {
    flex: 1 1 auto;
    min-width: 0;
}

.nv-comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.nv-comment-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nv-text);
}

.nv-comment-time {
    color: var(--nv-text-3);
    font-size: 11.5px;
}

.nv-comment-reply {
    margin-left: auto;
    padding: 2px 9px;
    background: transparent;
    border: 1px solid var(--nv-line);
    border-radius: 7px;
    color: var(--nv-text-3);
    font-size: 11.5px;
    cursor: pointer;
    transition: all .18s ease;
}

.nv-comment-reply:hover {
    border-color: var(--nv-accent-line);
    color: var(--nv-accent-ink);
}

.nv-comment-text {
    color: var(--nv-text-2);
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
}

.nv-comment-text p {
    margin: 0 0 .6em;
}

.nv-comment-text p:last-child {
    margin-bottom: 0;
}

.nv-comment .nv-comment-form {
    margin-top: 12px;
}

/* ---------- 12. 侧边栏 ---------- */
.nv-column-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.nv-widget {
    padding: 18px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius);
}

.nv-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
}

.nv-widget-title::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--nv-accent);
}

.nv-widget-body {
    font-size: 13.5px;
    color: var(--nv-text-2);
}

.nv-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nv-widget-list li a {
    display: block;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    color: var(--nv-text-2);
    font-size: 13.5px;
    line-height: 1.55;
    transition: background .16s ease, color .16s ease;
}

.nv-widget-list li a:hover {
    background: var(--nv-surface-2);
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-widget-sub {
    list-style: none;
    margin: 0 0 4px;
    padding: 0 0 0 12px;
    border-left: 1px dashed var(--nv-line);
}

.nv-widget-sub li a {
    font-size: 12.5px;
    color: var(--nv-text-3);
}

.nv-widget-chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.nv-widget-chips li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 5px 10px;
    background: var(--nv-surface-2);
    border-radius: 999px;
    font-size: 12.5px;
}

.nv-widget-chips li a i {
    font-style: normal;
    font-size: 11px;
    color: var(--nv-text-3);
}

.nv-widget-posts li a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-widget-comments li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--nv-line-soft);
}

.nv-widget-comments li:last-child {
    border-bottom: 0;
}

.nv-widget-comments li a {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--nv-text-2);
}

.nv-widget-comments li a:hover {
    background: transparent;
}

.nv-widget-comments li span {
    display: block;
    margin-top: 2px;
    color: var(--nv-text-3);
    font-size: 11.5px;
}

.nv-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nv-widget-tags a {
    padding: 4px 10px;
    background: var(--nv-surface-2);
    border-radius: 999px;
    color: var(--nv-text-2);
    font-size: 12.5px;
}

.nv-widget-tags a:hover {
    background: var(--nv-accent-soft);
    color: var(--nv-accent-ink);
    opacity: 1;
}

.nv-widget-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--nv-surface-2);
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--nv-text-2);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.nv-widget-search {
    display: flex;
    gap: 6px;
}

.nv-widget-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    background: var(--nv-surface-2);
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--nv-text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.nv-widget-search input:focus {
    border-color: var(--nv-accent-line);
}

.nv-widget-search button {
    flex: 0 0 auto;
    padding: 0 14px;
    background: var(--nv-accent);
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.nv-widget-links li {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
}

.nv-widget-links img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: contain;
}

.nv-widget-links li a {
    margin: 0;
    padding: 0;
    display: inline;
}

.nv-widget-links li a:hover {
    background: transparent;
}

.nv-widget-custom {
    color: var(--nv-text-2);
    font-size: 13px;
    line-height: 1.8;
}

.nv-widget-custom img {
    border-radius: 10px;
}

/* 侧边栏热门站点排行 */
.nv-widget-rank {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: nvrank;
}

.nv-widget-rank-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--nv-line-soft);
}

.nv-widget-rank-item:last-child {
    border-bottom: 0;
}

.nv-widget-rank-num {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--nv-surface-2);
    color: var(--nv-text-3);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
}

.nv-widget-rank-item:nth-child(1) .nv-widget-rank-num {
    background: var(--nv-accent-soft-2);
    color: var(--nv-accent-ink);
}

.nv-widget-rank-item:nth-child(2) .nv-widget-rank-num,
.nv-widget-rank-item:nth-child(3) .nv-widget-rank-num {
    background: var(--nv-accent-soft);
    color: var(--nv-accent-ink);
}

.nv-widget-rank-item a {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--nv-text-2);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-widget-rank-item span {
    flex: 0 0 auto;
    color: var(--nv-text-3);
    font-size: 11px;
}

/* 博主卡片 */
.nv-widget-blogger .nv-blogger {
    text-align: center;
}

.nv-blogger-avatar {
    display: inline-block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--nv-surface-2);
    margin-bottom: 8px;
}

.nv-blogger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-blogger-name {
    display: block;
    font-size: 14px;
    color: var(--nv-text);
}

.nv-blogger-desc {
    margin: 6px 0 0;
    color: var(--nv-text-3);
    font-size: 12.5px;
    line-height: 1.7;
}

/* ---------- 13. 页脚 ---------- */
.nv-footer {
    margin-top: 20px;
    padding: 44px 0 0;
    background: var(--nv-surface);
    border-top: 1px solid var(--nv-line);
}

.nv-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.nv-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nv-text);
    font-size: 15px;
    margin-bottom: 10px;
}

.nv-footer-logo:hover {
    color: var(--nv-text);
    opacity: 1;
}

.nv-footer-logo .nv-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.nv-footer-desc {
    margin: 0 0 8px;
    color: var(--nv-text-2);
    font-size: 13px;
    line-height: 1.75;
}

.nv-footer-stat {
    margin: 0;
    color: var(--nv-text-3);
    font-size: 12.5px;
}

.nv-footer-col h4 {
    margin: 0 0 12px;
    color: var(--nv-text);
    font-size: 13.5px;
    font-weight: 700;
}

.nv-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nv-footer-col li a {
    color: var(--nv-text-2);
    font-size: 13px;
}

.nv-footer-col li a:hover {
    color: var(--nv-accent-ink);
}

.nv-copy {
    padding: 16px 20px 22px;
    border-top: 1px solid var(--nv-line-soft);
}

.nv-copy p {
    margin: 0;
    color: var(--nv-text-3);
    font-size: 12.5px;
    line-height: 1.9;
    text-align: center;
}

.nv-copy a {
    color: var(--nv-text-2);
}

.nv-copy-sep {
    margin: 0 7px;
    color: var(--nv-line);
}

.nv-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 50;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: 12px;
    color: var(--nv-text-2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    box-shadow: var(--nv-shadow);
    transition: all .24s ease;
}

.nv-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nv-top:hover {
    color: var(--nv-accent-ink);
    border-color: var(--nv-accent-line);
}

/* ---------- 14. 404 ---------- */
.nv-404 {
    padding: 70px 20px 90px;
    text-align: center;
}

.nv-404-code {
    margin: 0;
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(160deg, var(--nv-accent), var(--nv-accent-line) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .9;
}

.nv-404-title {
    margin: 10px 0 8px;
    font-size: 23px;
    font-weight: 700;
}

.nv-404-desc {
    margin: 0 0 26px;
    color: var(--nv-text-2);
    font-size: 14px;
}

.nv-404-search {
    margin-bottom: 22px;
}

.nv-404-chips {
    justify-content: center;
    padding: 0 0 6px;
}

.nv-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ---------- 14.1 加密文章：密码输入页 ---------- */
.nv-pw {
    max-width: 460px;
    margin: 0 auto;
    padding: 64px 22px 96px;
    text-align: center;
}

.nv-pw-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: var(--nv-accent-soft);
    color: var(--nv-accent-ink);
}

.nv-pw-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--nv-text);
}

.nv-pw-article {
    margin: 0 0 10px;
    color: var(--nv-text-3);
    font-size: 13px;
    word-break: break-word;
}

.nv-pw-desc {
    margin: 0 0 24px;
    color: var(--nv-text-2);
    font-size: 14px;
    line-height: 1.7;
}

.nv-pw-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: var(--nv-surface);
    border: 1px solid var(--nv-line);
    border-radius: 14px;
    box-shadow: var(--nv-shadow);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.nv-pw-form:focus-within {
    border-color: var(--nv-accent-line);
    box-shadow: 0 10px 30px -14px var(--nv-accent-line);
}

.nv-pw-form input[type="password"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--nv-text);
    font-size: 15px;
    outline: none;
}

.nv-pw-form input::placeholder {
    color: var(--nv-text-3);
}

.nv-pw-form .nv-btn {
    flex: 0 0 auto;
    height: 42px;
}

.nv-pw-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ---------- 15. 「提交网址」插件页的暗色适配 ---------- */
/* 插件的内联样式把配色收在 --navs-* 变量里（默认浅色），这里只换变量值，
   整页背景/输入框/侧栏/按钮就会一起跟着变，不必逐个元素覆盖。
   只有两处语义色（错误提示、成功图标）需要单独处理。 */
html[data-theme="dark"] .navs-page {
    --navs-bg: #111c2e;
    --navs-bg-2: #121e33;
    --navs-border: #2a3a58;
    --navs-text: #e8eef9;
    --navs-mute: #9aa8bf;
}

html[data-theme="dark"] .navs-page .navs-alert {
    background: #2b1416;
    border-color: #5b1f24;
    color: #fca5a5;
}

html[data-theme="dark"] .navs-page .navs-done .navs-icon {
    background: #0f2a22;
    color: #34d399;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .navs-page {
        --navs-bg: #111c2e;
        --navs-bg-2: #121e33;
        --navs-border: #2a3a58;
        --navs-text: #e8eef9;
        --navs-mute: #9aa8bf;
    }

    html[data-theme="auto"] .navs-page .navs-alert {
        background: #2b1416;
        border-color: #5b1f24;
        color: #fca5a5;
    }

    html[data-theme="auto"] .navs-page .navs-done .navs-icon {
        background: #0f2a22;
        color: #34d399;
    }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1024px) {
    .nv-columns {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 22px;
    }

    .nv-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .nv-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .nv-burger {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .nv-nav {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        padding: 0 20px;
        overflow: hidden;
        background: var(--nv-surface);
        border-bottom: 1px solid transparent;
        transition: max-height .28s ease, padding .28s ease;
    }

    .nv-nav.is-open {
        max-height: 70vh;
        padding: 10px 20px 16px;
        overflow-y: auto;
        border-bottom-color: var(--nv-line);
        box-shadow: var(--nv-shadow);
    }

    .nv-nav-link {
        padding: 10px 8px;
        border-radius: 8px;
        font-size: 14.5px;
    }

    .nv-search {
        order: 3;
        flex: 0 0 200px;
        min-width: 0;
    }

    .nv-header-submit {
        order: 4;
    }

    .nv-header-inner {
        gap: 10px;
    }

    .nv-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-column-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nv-column-side > .nv-widget {
        flex: 1 1 260px;
    }
}

@media (max-width: 760px) {
    body.nv-body {
        font-size: 14.5px;
    }

    .nv-wrap {
        padding: 0 15px;
    }

    .nv-header-inner {
        height: 56px;
    }

    .nv-logo-text {
        max-width: 120px;
        font-size: 15.5px;
    }

    .nv-search {
        display: none;
    }

    .nv-nav {
        top: 56px;
    }

    .nv-header-submit span {
        display: none;
    }

    .nv-header-submit {
        padding: 9px 11px;
    }

    .nv-hero {
        padding: 34px 0 24px;
    }

    .nv-hero-title {
        font-size: 25px;
    }

    .nv-hero-sub {
        font-size: 13.5px;
        margin-bottom: 18px;
    }

    .nv-hero-search {
        padding: 5px 5px 5px 38px;
        border-radius: 12px;
    }

    .nv-hero-search > svg {
        left: 12px;
        width: 17px;
        height: 17px;
    }

    .nv-hero-search input[type="search"] {
        height: 38px;
        font-size: 14px;
    }

    .nv-hero-search button {
        height: 38px;
        padding: 0 15px;
        font-size: 13px;
    }

    .nv-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 18px 0 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nv-chips::-webkit-scrollbar {
        display: none;
    }

    .nv-chip {
        flex: 0 0 auto;
    }

    .nv-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nv-tabs {
        width: 100%;
    }

    .nv-tab {
        flex: 1 1 0;
        text-align: center;
    }

    .nv-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .nv-card {
        flex-direction: column;
        gap: 9px;
        padding: 13px;
    }

    .nv-card-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .nv-card-desc {
        -webkit-line-clamp: 2;
        font-size: 12px;
    }

    .nv-card-meta {
        font-size: 11px;
    }

    .nv-post {
        flex-direction: column;
        padding: 15px;
    }

    .nv-post-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
    }

    .nv-post-title {
        font-size: 16px;
    }

    .nv-article,
    .nv-comment-area {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .nv-article-title {
        font-size: 21px;
    }

    .nv-prose {
        font-size: 15px;
    }

    .nv-prose h2 {
        font-size: 18px;
    }

    .nv-prose h3 {
        font-size: 16.5px;
    }

    .nv-neighbor {
        grid-template-columns: 1fr;
    }

    .nv-neighbor-item.is-next {
        text-align: left;
        align-items: flex-start;
    }

    .nv-comment-fields {
        grid-template-columns: 1fr;
    }

    .nv-cta {
        padding: 28px 0;
    }

    .nv-cta-text h2 {
        font-size: 18px;
    }

    .nv-section {
        padding-top: 32px;
        margin-top: 32px;
    }

    .nv-section-head h2 {
        font-size: 17px;
    }

    .nv-post-grid {
        grid-template-columns: 1fr;
    }

    .nv-footer {
        padding-top: 30px;
    }

    .nv-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nv-top {
        right: 14px;
        bottom: 18px;
    }

    .nv-404 {
        padding: 46px 10px 60px;
    }

    .nv-404-code {
        font-size: 72px;
    }

    .nv-404-title {
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .nv-logo-text {
        display: none;
    }

    .nv-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- 17. 辅助与打印 ---------- */
@media print {

    .nv-header,
    .nv-footer,
    .nv-top,
    .nv-column-side,
    .nv-comment-area {
        display: none !important;
    }

    body.nv-body {
        background: #fff;
        color: #000;
    }
}
