/* =========================================================
   网址导航插件样式 · 完整版
   - 全部使用 --mn-* 主题变量（§11.7），fallback = 浅色主题目标色
   - 前后台通用，暗夜星辰自动适配
   ========================================================= */

/* =========================================================
   0. 通用变量与基础
   ========================================================= */
.nh-page {
    --nh-radius-sm: 6px;
    --nh-radius: 10px;
    --nh-radius-lg: 14px;
    --nh-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --nh-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    --nh-shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);
    --nh-shadow-primary: 0 4px 12px rgba(99, 91, 255, .25);
    --nh-transition: all .18s cubic-bezier(.4, 0, .2, 1);

    padding: 24px 28px 40px;
    color: var(--mn-text, #222);
    font-size: 14px;
    line-height: 1.55;
}

.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--nh-radius-sm, 6px);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--nh-transition);
    font-family: inherit;
    white-space: nowrap;
    user-select: none;
}
.nh-btn:focus-visible {
    outline: 2px solid var(--mn-primary, #635bff);
    outline-offset: 2px;
}
.nh-btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 5px; }
.nh-btn-lg { padding: 11px 22px; font-size: 14px; }
.nh-btn-primary {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff) 0%,
        var(--mn-primary-hover, #7c6cff) 100%);
    color: #fff;
    box-shadow: var(--nh-shadow-primary, 0 4px 12px rgba(99, 91, 255, .25));
}
.nh-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 91, 255, .35);
    color: #fff;
}
.nh-btn-primary:active { transform: translateY(0); }
.nh-btn-ghost {
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text-secondary, #555);
    border-color: var(--mn-border, #e5e7eb);
}
.nh-btn-ghost:hover {
    background: var(--mn-bg-soft, #f6f7f9);
    border-color: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
}

/* =========================================================
   1. Hero 区
   ========================================================= */
.nh-hero {
    position: relative;
    padding: 20px 0 28px;
    text-align: center;
}
.nh-hero::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    margin: 22px auto 0;
    opacity: .8;
}
.nh-hero-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    color: var(--mn-text, #222);
    background: linear-gradient(135deg,
        var(--mn-text, #222) 0%,
        var(--mn-text-secondary, #555) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nh-hero-sub {
    font-size: 14px;
    color: var(--mn-text-muted, #888);
    margin: 0 0 22px;
    letter-spacing: .01em;
}

.nh-search {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
}
.nh-search-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--mn-border, #e5e7eb);
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #222);
    font-size: 14px;
    outline: none;
    min-width: 0;
    font-family: inherit;
    transition: var(--nh-transition);
    box-shadow: var(--nh-shadow-sm);
}
.nh-search-input::placeholder { color: var(--mn-text-muted, #aaa); }
.nh-search-input:hover { border-color: var(--mn-primary-subtle, #e6e4ff); }
.nh-search-input:focus {
    border-color: var(--mn-primary, #635bff);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .12);
}
.nh-search .nh-btn {
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
}

/* =========================================================
   2. 分类导航
   ========================================================= */
.nh-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mn-border-light, #eef0f2);
}
.nh-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mn-text-secondary, #555);
    background: var(--mn-bg-soft, #f6f7f9);
    border: 1px solid transparent;
    text-decoration: none;
    transition: var(--nh-transition);
    white-space: nowrap;
}
.nh-cat-link:hover {
    background: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
    border-color: var(--mn-primary-subtle, #e6e4ff);
    transform: translateY(-1px);
}
.nh-cat-link.active {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    color: #fff;
    box-shadow: 0 3px 10px rgba(99, 91, 255, .28);
    border-color: transparent;
}

/* =========================================================
   3. 排序条
   ========================================================= */
.nh-sort-nav {
    display: flex;
    gap: 4px;
    margin: 8px 0 20px;
    font-size: 13px;
    align-items: center;
    padding: 4px;
    border-radius: 8px;
    background: var(--mn-bg-soft, #f6f7f9);
    width: fit-content;
}
.nh-sort-link {
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--mn-text-muted, #888);
    text-decoration: none;
    font-weight: 500;
    transition: var(--nh-transition);
}
.nh-sort-link:hover { color: var(--mn-primary, #635bff); }
.nh-sort-link.active {
    color: var(--mn-primary, #635bff);
    background: var(--mn-bg-card, #fff);
    box-shadow: var(--nh-shadow-sm);
    font-weight: 600;
}

.nh-filter-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--mn-text-muted, #888);
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--mn-primary-subtle, #e6e4ff);
}
.nh-clear {
    margin-left: 4px;
    color: var(--mn-primary, #635bff);
    text-decoration: none;
    font-weight: 500;
}
.nh-clear:hover { text-decoration: underline; }

/* =========================================================
   4. 卡片网格
   ========================================================= */
.nh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.nh-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    text-align: center;
    color: var(--mn-text-muted, #888);
    font-size: 14px;
    background: var(--mn-bg-card, #fff);
    border: 1.5px dashed var(--mn-border, #e5e7eb);
    border-radius: var(--nh-radius-lg, 14px);
}
.nh-empty::before {
    content: "🗂";
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    opacity: .5;
}

.nh-card {
    position: relative;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--nh-radius, 10px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--nh-transition);
    overflow: hidden;
}
.nh-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    opacity: 0;
    transition: opacity .2s;
}
.nh-card:hover {
    box-shadow: var(--nh-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--mn-primary-subtle, #e6e4ff);
}
.nh-card:hover::before { opacity: 1; }

.nh-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nh-card-name {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mn-text, #222);
    min-width: 0;
    flex: 1;
}
.nh-card-title {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s;
}
.nh-card:hover .nh-card-title { color: var(--mn-primary, #635bff); }

.nh-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--nh-shadow-sm);
}
.nh-card-icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--mn-primary-subtle, #e6e4ff) 0%,
        rgba(124, 108, 255, .15) 100%);
    color: var(--mn-primary, #635bff);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

.nh-badge-featured {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .3);
}

.nh-card-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--mn-text-secondary, #555);
    margin: 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nh-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nh-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: var(--mn-bg-soft, #f3f4f6);
    color: var(--mn-text-muted, #888);
    transition: var(--nh-transition);
    text-decoration: none;
}
a.nh-tag:hover {
    background: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
}

.nh-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--mn-text-muted, #999);
    padding-top: 2px;
}
.nh-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.nh-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.nh-card-actions .nh-btn { flex: 1; }

/* =========================================================
   5. 详情页
   ========================================================= */
.nh-breadcrumb {
    font-size: 13px;
    color: var(--mn-text-muted, #888);
    padding: 4px 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nh-breadcrumb a {
    color: var(--mn-primary, #635bff);
    text-decoration: none;
    font-weight: 500;
}
.nh-breadcrumb a:hover { text-decoration: underline; }
.nh-breadcrumb span { color: var(--mn-text-muted, #bbb); }

.nh-detail-head {
    padding: 24px;
    border-radius: var(--nh-radius-lg, 14px);
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    box-shadow: var(--nh-shadow-sm);
    margin-bottom: 28px;
}
.nh-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.nh-detail-title .nh-card-icon,
.nh-detail-title .nh-card-icon-text {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
}
.nh-detail-title h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--mn-text, #222);
}
.nh-detail-url {
    font-size: 13px;
    color: var(--mn-text-muted, #888);
    word-break: break-all;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--mn-bg-soft, #f6f7f9);
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.nh-detail-desc {
    font-size: 14px;
    color: var(--mn-text-secondary, #555);
    line-height: 1.7;
    margin: 0 0 14px;
}
.nh-detail-head .nh-card-meta {
    justify-content: flex-start;
    gap: 20px;
    margin: 14px 0;
    padding: 12px 0;
    border-top: 1px solid var(--mn-border-light, #eef0f2);
    border-bottom: 1px solid var(--mn-border-light, #eef0f2);
}
.nh-detail-head .nh-card-actions { gap: 10px; padding-top: 0; }
.nh-detail-head .nh-card-actions .nh-btn { flex: initial; padding: 10px 24px; }

.nh-related { margin-top: 36px; }
.nh-related-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--mn-text, #222);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nh-related-title::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
}

/* =========================================================
   6. 前台 Tabs
   ========================================================= */
.nh-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 8px 0 20px;
    padding: 4px;
    border-radius: 8px;
    background: var(--mn-bg-soft, #f6f7f9);
}
.nh-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--mn-text-secondary, #555);
    border-radius: 6px;
    transition: var(--nh-transition);
}
.nh-tab:hover { color: var(--mn-primary, #635bff); }
.nh-tab.active {
    color: var(--mn-primary, #635bff);
    background: var(--mn-bg-card, #fff);
    box-shadow: var(--nh-shadow-sm);
    font-weight: 600;
}

/* =========================================================
   7. 状态徽章
   ========================================================= */
.nh-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.nh-status-pending { background: rgba(245, 158, 11, .15); color: #d97706; }
.nh-status-approved { background: rgba(22, 163, 74, .13); color: #16a34a; }
.nh-status-rejected { background: rgba(239, 68, 68, .13); color: #dc2626; }
.nh-reject-reason {
    font-size: 12px;
    color: var(--mn-error, #ef4444);
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(239, 68, 68, .08);
}

/* =========================================================
   8. 分页
   ========================================================= */
.nh-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0;
    justify-content: center;
}
.nh-page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    color: var(--mn-text-secondary, #555);
    text-decoration: none;
    transition: var(--nh-transition);
}
.nh-page-link:hover {
    border-color: var(--mn-primary, #635bff);
    color: var(--mn-primary, #635bff);
    transform: translateY(-1px);
}
.nh-page-link.active {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(99, 91, 255, .28);
}

/* =========================================================
   9. 前台表单
   ========================================================= */
.nh-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nh-field { display: flex; flex-direction: column; gap: 6px; }
.nh-field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--mn-text-secondary, #555);
}
.nh-input {
    padding: 10px 14px;
    border-radius: var(--nh-radius-sm, 6px);
    border: 1px solid var(--mn-border, #e5e7eb);
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #222);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: var(--nh-transition);
}
.nh-input:hover { border-color: var(--mn-primary-subtle, #e6e4ff); }
.nh-input:focus {
    border-color: var(--mn-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}
.nh-textarea { resize: vertical; min-height: 90px; }
.nh-form-actions { display: flex; gap: 10px; margin-top: 8px; }
.nh-form-msg {
    padding: 12px 16px;
    border-radius: var(--nh-radius-sm, 6px);
    font-size: 13px;
    background: var(--mn-comp-alert-success-bg, #f0fdf4);
    color: var(--mn-comp-alert-success-text, #166534);
    border: 1px solid var(--mn-comp-alert-success-border, #bbf7d0);
}
.nh-form-msg.is-error {
    background: var(--mn-comp-alert-error-bg, #fef2f2);
    color: var(--mn-comp-alert-error-text, #991b1b);
    border-color: var(--mn-comp-alert-error-border, #fecaca);
}
.nh-field-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mn-text-muted, #999);
    margin-top: 2px;
    line-height: 1.5;
}
.nh-field-hint::before {
    content: "ⓘ";
    font-size: 13px;
    opacity: .55;
    flex-shrink: 0;
}

/* =========================================================
   10. Flash 提示
   ========================================================= */
.nh-flash {
    padding: 12px 16px;
    border-radius: var(--nh-radius-sm, 6px);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: nh-flash-in .3s cubic-bezier(.4, 0, .2, 1);
}
.nh-flash-ok {
    background: var(--mn-comp-alert-success-bg, #f0fdf4);
    border: 1px solid var(--mn-comp-alert-success-border, #bbf7d0);
    color: var(--mn-comp-alert-success-text, #166534);
}
.nh-flash-ok::before { content: "✓"; font-weight: 700; }
.nh-flash-err {
    background: var(--mn-comp-alert-error-bg, #fef2f2);
    border: 1px solid var(--mn-comp-alert-error-border, #fecaca);
    color: var(--mn-comp-alert-error-text, #991b1b);
}
.nh-flash-err::before { content: "!"; font-weight: 700; }
@keyframes nh-flash-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   11. 后台标题
   ========================================================= */
.nh-admin-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--mn-text, #222);
    letter-spacing: -.01em;
}

/* =========================================================
   12. 后台标签导航（统一美化版）
   ========================================================= */
.nh-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 22px;
    padding: 6px;
    background: var(--mn-bg-soft, #f6f7f9);
    border-radius: 12px;
    border: 1px solid var(--mn-border-light, #eef0f2);
}
.nh-admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--mn-text-secondary, #555);
    white-space: nowrap;
    transition: all .15s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}
.nh-admin-tab:hover {
    background: var(--mn-bg-card, #fff);
    color: var(--mn-primary, #635bff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.nh-admin-tab.active {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff) 0%,
        var(--mn-primary-hover, #7c6cff) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 91, 255, .28);
    font-weight: 600;
}
.nh-tab-icon { font-size: 14px; line-height: 1; }
.nh-tab-label { line-height: 1; }
.nh-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
    animation: nh-badge-pulse 2s ease-in-out infinite;
}
.nh-admin-tab.active .nh-tab-badge {
    background: #fff;
    color: var(--mn-primary, #635bff);
}
@keyframes nh-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* =========================================================
   13. 后台统计卡
   ========================================================= */
.nh-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.nh-stat-card {
    position: relative;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--nh-radius, 10px);
    padding: 20px;
    text-align: center;
    transition: var(--nh-transition);
    overflow: hidden;
}
.nh-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    opacity: .8;
}
.nh-stat-card:hover {
    box-shadow: var(--nh-shadow-lg);
    transform: translateY(-2px);
}
.nh-stat-num {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.nh-stat-label {
    font-size: 12.5px;
    color: var(--mn-text-muted, #888);
    margin-top: 6px;
    font-weight: 500;
}
.nh-admin-sub {
    font-size: 16px;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--mn-text, #222);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nh-admin-sub::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
}

/* =========================================================
   14. 后台表格
   ========================================================= */
.nh-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--nh-radius, 10px);
    overflow: hidden;
    font-size: 13px;
    box-shadow: var(--nh-shadow-sm);
}
.nh-table th,
.nh-table td {
    padding: 12px 14px;
    text-align: left;
    color: var(--mn-text, #222);
    border-bottom: 1px solid var(--mn-border-light, #eef0f2);
}
.nh-table th {
    background: var(--mn-bg-soft, #f8f9fb);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--mn-text-secondary, #555);
    white-space: nowrap;
}
.nh-table tr:last-child td { border-bottom: none; }
.nh-table tbody tr { transition: background-color .12s; }
.nh-table tbody tr:hover td { background: var(--mn-bg-soft, #fafbfc); }
.nh-table a {
    color: var(--mn-primary, #635bff);
    text-decoration: none;
    font-weight: 500;
}
.nh-table a:hover { text-decoration: underline; }
.nh-table-child td {
    background: var(--mn-bg-soft, #fafbfc);
    font-size: 12.5px;
}
.nh-table-empty {
    text-align: center;
    padding: 48px 20px !important;
    color: var(--mn-text-muted, #888);
    font-size: 13px;
}
.nh-table-actions { white-space: nowrap; }
.nh-table-actions > * { vertical-align: middle; }
.nh-table-actions .btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    min-width: 0;
}
.nh-inline-form { display: inline-block; margin: 0 0 0 4px; }

/* =========================================================
   15. 后台筛选栏
   ========================================================= */
.nh-admin-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    align-items: center;
    padding: 14px 16px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--nh-radius, 10px);
    box-shadow: var(--nh-shadow-sm);
}
.nh-admin-filters .form-input {
    width: auto;
    min-width: 150px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid var(--mn-border, #e5e7eb);
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #222);
    font-size: 13px;
    outline: none;
    transition: var(--nh-transition);
    font-family: inherit;
}
.nh-admin-filters .form-input:focus {
    border-color: var(--mn-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}
.nh-admin-filters .btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s;
    font-family: inherit;
}
.nh-admin-filters .btn-primary {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff) 0%,
        var(--mn-primary-hover, #7c6cff) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 91, 255, .22);
}
.nh-admin-filters .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 91, 255, .32);
}
.nh-admin-filters .btn-secondary {
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text-secondary, #555);
    border-color: var(--mn-border, #e5e7eb);
}
.nh-admin-filters .btn-secondary:hover {
    background: var(--mn-bg-soft, #f6f7f9);
    border-color: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
}

/* =========================================================
   16. 后台弹窗
   ========================================================= */
.fl-modal[hidden] { display: none; }
.fl-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nh-modal-fade .2s ease;
}
@keyframes nh-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.fl-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 24, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.fl-modal-body {
    position: relative;
    z-index: 1;
    background: var(--mn-bg-card, #fff);
    border-radius: var(--nh-radius-lg, 14px);
    padding: 24px;
    width: min(540px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    animation: nh-modal-slide .25s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid var(--mn-border, #e5e7eb);
}
@keyframes nh-modal-slide {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fl-modal-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--mn-text, #222);
    display: flex;
    align-items: center;
    gap: 10px;
}
.fl-modal-title::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
}
.fl-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mn-border-light, #eef0f2);
}
.fl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.fl-field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--mn-text-secondary, #555);
}

/* =========================================================
   17. 关键修正：自包含控件样式
   —— 不依赖核心后台 .btn / .form-input，避免弹窗裸奔
   ========================================================= */
.nh-page .btn,
.fl-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
    box-sizing: border-box;
}
.nh-page .btn:focus-visible,
.fl-modal .btn:focus-visible {
    outline: 2px solid var(--mn-primary, #635bff);
    outline-offset: 2px;
}
.nh-page .btn-primary,
.fl-modal .btn-primary {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff) 0%,
        var(--mn-primary-hover, #7c6cff) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 91, 255, .25);
}
.nh-page .btn-primary:hover,
.fl-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 91, 255, .35);
    color: #fff;
}
.nh-page .btn-primary:active,
.fl-modal .btn-primary:active { transform: translateY(0); }
.nh-page .btn-secondary,
.fl-modal .btn-secondary {
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text-secondary, #555);
    border-color: var(--mn-border, #e5e7eb);
}
.nh-page .btn-secondary:hover,
.fl-modal .btn-secondary:hover {
    background: var(--mn-bg-soft, #f6f7f9);
    border-color: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
    transform: translateY(-1px);
}
.nh-page .btn.c-danger,
.fl-modal .btn.c-danger {
    color: var(--mn-error, #ef4444);
    background: transparent;
    border-color: rgba(239, 68, 68, .35);
}
.nh-page .btn.c-danger:hover,
.fl-modal .btn.c-danger:hover {
    background: rgba(239, 68, 68, .08);
    border-color: var(--mn-error, #ef4444);
    color: var(--mn-error, #ef4444);
}

.nh-page .form-input,
.fl-modal .form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--mn-border, #e5e7eb);
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #222);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    line-height: 1.5;
}
.nh-page .form-input::placeholder,
.fl-modal .form-input::placeholder { color: var(--mn-text-muted, #aaa); }
.nh-page .form-input:hover,
.fl-modal .form-input:hover { border-color: var(--mn-primary-subtle, #e6e4ff); }
.nh-page .form-input:focus,
.fl-modal .form-input:focus {
    border-color: var(--mn-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}
.nh-page select.form-input,
.fl-modal select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}
.nh-page textarea.form-input,
.fl-modal textarea.form-input {
    resize: vertical;
    min-height: 84px;
    line-height: 1.6;
}
.nh-page .checkbox-inline,
.fl-modal .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mn-text, #222);
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--mn-bg-soft, #f6f7f9);
    border: 1px solid var(--mn-border-light, #eef0f2);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
    user-select: none;
    margin: 0;
}
.nh-page .checkbox-inline:hover,
.fl-modal .checkbox-inline:hover {
    background: var(--mn-primary-subtle, #e6e4ff);
    border-color: var(--mn-primary-subtle, #e6e4ff);
}
.nh-page .checkbox-inline input[type="checkbox"],
.fl-modal .checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--mn-primary, #635bff);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* =========================================================
   18. 后台设置页：表单卡片化
   ========================================================= */
.nh-page > .nh-form {
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.nh-page > .nh-form .fl-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.nh-page > .nh-form .fl-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-text, #222);
}
.nh-page > .nh-form .nh-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--mn-border-light, #eef0f2);
}
.nh-page > .nh-form .nh-form-actions .btn {
    padding: 11px 28px;
    font-size: 14px;
}
.fl-modal .fl-modal-actions .btn {
    padding: 10px 22px;
    font-size: 13.5px;
    min-width: 88px;
}
.fl-modal-body::-webkit-scrollbar { width: 8px; }
.fl-modal-body::-webkit-scrollbar-thumb {
    background: var(--mn-border, #e5e7eb);
    border-radius: 4px;
}
.fl-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--mn-primary-subtle, #e6e4ff);
}

/* =========================================================
   19. 批量导入页
   ========================================================= */
.nh-import-intro,
.nh-import-errors {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 28px;
}
.nh-import-cats {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.nh-import-cats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--mn-bg-soft, #f6f7f9);
    border-radius: 8px;
    font-size: 13px;
}
.nh-import-cat-name { color: var(--mn-text, #222); font-weight: 500; }
.nh-import-cat-count { color: var(--mn-primary, #635bff); font-weight: 600; font-size: 12px; }
.nh-import-hint {
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-text-secondary, #555);
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.nh-import-errors ul {
    padding-left: 20px;
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--mn-error, #ef4444);
}
.nh-import-errors li { margin-bottom: 4px; }

/* =========================================================
   20. 首页热门推荐条
   ========================================================= */
.nh-hot-strip {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        var(--mn-primary-subtle, #e6e4ff) 0%,
        rgba(124, 108, 255, .08) 100%);
    border: 1px solid var(--mn-primary-subtle, #e6e4ff);
}
.nh-hot-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--mn-text, #222);
    margin: 0 0 12px;
    letter-spacing: .01em;
}
.nh-hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.nh-hot-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--mn-bg-card, #fff);
    border-radius: 8px;
    text-decoration: none;
    color: var(--mn-text, #222);
    font-size: 13px;
    transition: all .18s;
    border: 1px solid transparent;
}
.nh-hot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 91, 255, .15);
    border-color: var(--mn-primary, #635bff);
}
.nh-hot-card .nh-card-icon-text {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 12px;
}
.nh-hot-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.nh-hot-count {
    font-size: 11px;
    color: var(--mn-text-muted, #888);
}

/* =========================================================
   21. 后台批量操作栏
   ========================================================= */
.nh-batch-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.nh-batch-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mn-text, #222);
    cursor: pointer;
    user-select: none;
}
.nh-batch-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--mn-primary, #635bff);
    cursor: pointer;
    margin: 0;
}
.nh-batch-count {
    font-size: 13px;
    color: var(--mn-text-secondary, #555);
}
.nh-batch-count strong {
    color: var(--mn-primary, #635bff);
    font-weight: 700;
    margin: 0 2px;
}
.nh-batch-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.nh-batch-actions .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================================
   22. 标签云页
   ========================================================= */
.nh-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    align-items: baseline;
}
.nh-tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--mn-text-secondary, #555);
    background: var(--mn-bg-soft, #f6f7f9);
    text-decoration: none;
    transition: all .18s;
    font-weight: 500;
    line-height: 1.4;
}
.nh-tag-cloud-item:hover {
    background: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
    transform: translateY(-1px);
}
.nh-tag-cloud-item.active {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff),
        var(--mn-primary-hover, #7c6cff));
    color: #fff;
    box-shadow: 0 3px 10px rgba(99, 91, 255, .28);
}
.nh-tag-cloud-count {
    display: inline-block;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    min-width: 16px;
    text-align: center;
    background: rgba(0, 0, 0, .06);
    color: inherit;
    opacity: .8;
}
.nh-tag-cloud-item.active .nh-tag-cloud-count {
    background: rgba(255, 255, 255, .25);
}

/* =========================================================
   23. 排行榜页
   ========================================================= */
.nh-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.nh-rank-panel {
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.nh-rank-panel .nh-admin-sub {
    margin: 0 0 14px;
    font-size: 15px;
}
.nh-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nh-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    transition: background-color .15s;
}
.nh-rank-item:hover { background: var(--mn-bg-soft, #f6f7f9); }
.nh-rank-item + .nh-rank-item { border-top: 1px solid var(--mn-border-light, #eef0f2); }
.nh-rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: var(--mn-bg-soft, #f0f1f3);
    color: var(--mn-text-muted, #888);
    flex-shrink: 0;
}
.nh-rank-top-1 .nh-rank-no {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .35);
}
.nh-rank-top-2 .nh-rank-no {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}
.nh-rank-top-3 .nh-rank-no {
    background: linear-gradient(135deg, #d97757, #b45309);
    color: #fff;
}
.nh-rank-name {
    flex: 1;
    color: var(--mn-text, #222);
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.nh-rank-name:hover {
    color: var(--mn-primary, #635bff);
    text-decoration: underline;
}
.nh-rank-count {
    font-size: 12px;
    color: var(--mn-text-muted, #888);
    font-weight: 600;
    flex-shrink: 0;
}

/* =========================================================
   24. 健康检查徽章
   ========================================================= */
.nh-health-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.nh-health-ok {
    background: rgba(22, 163, 74, .13);
    color: #16a34a;
}
.nh-health-bad {
    background: rgba(239, 68, 68, .13);
    color: #dc2626;
}
.nh-health-error {
    background: rgba(245, 158, 11, .15);
    color: #d97706;
}
.nh-health-none {
    background: var(--mn-bg-soft, #f0f1f3);
    color: var(--mn-text-muted, #888);
}

/* =========================================================
   25. 每日精选推荐位
   ========================================================= */
.nh-daily-picks {
    margin: 0 0 24px;
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg,
        var(--mn-primary-subtle, #e6e4ff) 0%,
        rgba(124, 108, 255, .06) 100%);
    border: 1px solid var(--mn-primary-subtle, #e6e4ff);
}
.nh-daily-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mn-text, #222);
    margin: 0 0 14px;
    letter-spacing: .01em;
}
.nh-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.nh-daily-card {
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all .18s cubic-bezier(.4, 0, .2, 1);
}
.nh-daily-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 91, 255, .12);
    border-color: var(--mn-primary, #635bff);
}
.nh-daily-head {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mn-text, #222);
    min-width: 0;
}
.nh-daily-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.nh-daily-name {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nh-daily-desc {
    font-size: 12.5px;
    color: var(--mn-text-secondary, #555);
    line-height: 1.55;
    margin: 0;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nh-daily-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.nh-daily-actions .nh-btn {
    flex: 1;
}

/* =========================================================
   26. CSV 页栅格
   ========================================================= */
.nh-csv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

/* =========================================================
   27. 评论区（前台详情页）
   ========================================================= */
.nh-comments-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--mn-border-light, #eef0f2);
}
.nh-comment-form-wrap {
    margin-bottom: 20px;
}
.nh-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nh-comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--mn-border, #e5e7eb);
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #222);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    min-height: 84px;
}
.nh-comment-form textarea:focus {
    border-color: var(--mn-primary, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}
.nh-comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.nh-comment-hint {
    font-size: 12px;
    color: var(--mn-text-muted, #888);
}
.nh-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nh-comment-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border-light, #eef0f2);
    transition: box-shadow .15s;
}
.nh-comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.nh-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.nh-comment-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-primary, #635bff);
}
.nh-comment-time {
    font-size: 12px;
    color: var(--mn-text-muted, #999);
}
.nh-comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mn-text, #222);
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.nh-my-comments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nh-my-comments .nh-comment-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.nh-my-comments .nh-comment-site {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-primary, #635bff);
    text-decoration: none;
}
.nh-my-comments .nh-comment-site:hover {
    text-decoration: underline;
}

/* =========================================================
   28. 快捷入口横条（nav_hub 所有前台页面顶部）
   ========================================================= */
.nh-quickbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg,
        var(--mn-primary-subtle, #e6e4ff) 0%,
        rgba(124, 108, 255, .06) 100%);
    border: 1px solid var(--mn-primary-subtle, #e6e4ff);
}
.nh-quickbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #222);
    font-size: 13px;
    font-weight: 600;
    transition: all .18s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.nh-quickbar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 91, 255, .18);
    border-color: var(--mn-primary, #635bff);
    color: var(--mn-primary, #635bff);
}
.nh-quickbar-item.active {
    background: linear-gradient(135deg,
        var(--mn-primary, #635bff) 0%,
        var(--mn-primary-hover, #7c6cff) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99, 91, 255, .32);
    border-color: transparent;
}
.nh-quickbar-item.active .nh-quickbar-emoji {
    transform: scale(1.1);
}
.nh-quickbar-emoji {
    font-size: 22px;
    line-height: 1;
    transition: transform .18s;
}
.nh-quickbar-label {
    font-size: 13px;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* =========================================================
   29. 仪表盘增强
   ========================================================= */
.nh-dashboard-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
.nh-dashboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .18s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.nh-dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: currentColor;
    opacity: .85;
}
.nh-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}
.nh-dc-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    background: var(--mn-bg-soft, #f6f7f9);
    flex-shrink: 0;
}
.nh-dc-body { flex: 1; min-width: 0; }
.nh-dc-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--mn-text, #222);
    letter-spacing: -.02em;
}
.nh-dc-label {
    font-size: 12.5px;
    color: var(--mn-text-muted, #888);
    margin-top: 4px;
    font-weight: 500;
}
.nh-dc-primary::before  { color: var(--mn-primary, #635bff); }
.nh-dc-primary .nh-dc-icon { background: rgba(99, 91, 255, .12); }
.nh-dc-primary .nh-dc-num  { color: var(--mn-primary, #635bff); }
.nh-dc-warning::before  { color: #f59e0b; }
.nh-dc-warning .nh-dc-icon { background: rgba(245, 158, 11, .14); }
.nh-dc-warning .nh-dc-num  { color: #d97706; }
.nh-dc-info::before     { color: #3b82f6; }
.nh-dc-info .nh-dc-icon  { background: rgba(59, 130, 246, .12); }
.nh-dc-info .nh-dc-num   { color: #2563eb; }
.nh-dc-success::before  { color: #16a34a; }
.nh-dc-success .nh-dc-icon { background: rgba(22, 163, 74, .12); }
.nh-dc-success .nh-dc-num  { color: #16a34a; }

.nh-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.nh-dashboard-panel {
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    padding: 18px 20px;
}
.nh-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--mn-border-light, #eef0f2);
}
.nh-stat-row:last-child { border-bottom: none; }
.nh-stat-row-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--mn-border, #e5e7eb);
    border-bottom: none;
    font-weight: 600;
}
.nh-stat-row-label { color: var(--mn-text-secondary, #555); }
.nh-stat-row-value { font-weight: 700; color: var(--mn-text, #222); }

/* =========================================================
   30. 移动端适配
   ========================================================= */
@media (max-width: 768px) {
    .nh-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    .nh-rank-grid { grid-template-columns: 1fr; }
    .nh-rank-panel { padding: 14px; }
    .nh-rank-item { padding: 8px 10px; }
}
@media (max-width: 640px) {
    .nh-page { padding: 16px 14px 32px; }
    .nh-grid { grid-template-columns: 1fr; }
    .nh-hero { padding: 12px 0 20px; }
    .nh-hero-title { font-size: 22px; }
    .nh-search { flex-direction: column; }
    .nh-search .nh-btn { width: 100%; }
    .nh-cat-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .nh-cat-nav::-webkit-scrollbar { display: none; }
    .nh-cat-link { flex-shrink: 0; }

    .nh-admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 5px;
        scrollbar-width: none;
    }
    .nh-admin-tabs::-webkit-scrollbar { display: none; }
    .nh-admin-tab {
        padding: 8px 12px;
        font-size: 12.5px;
        flex-shrink: 0;
    }
    .nh-tab-icon { font-size: 13px; }

    .nh-detail-head { padding: 18px; }
    .nh-detail-title h1 { font-size: 18px; }
    .nh-detail-head .nh-card-actions { flex-direction: column; }
    .nh-detail-head .nh-card-actions .nh-btn { width: 100%; }
    .nh-form { max-width: none; }
    .nh-table { font-size: 12.5px; }
    .nh-table th, .nh-table td { padding: 10px 8px; }
    .nh-admin-filters { padding: 12px; }
    .nh-admin-filters .form-input { min-width: 120px; flex: 1; }
    .fl-modal-body { padding: 20px; width: 92vw; }

    .nh-batch-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }
    .nh-batch-actions {
        margin-left: 0;
        width: 100%;
    }
    .nh-batch-actions .btn { flex: 1; }

    .nh-tag-cloud { padding: 14px 16px; }
    .nh-tag-cloud-item { font-size: 12px !important; }

    .nh-daily-picks { padding: 16px; }
    .nh-daily-grid { grid-template-columns: 1fr; }
    .nh-csv-grid { grid-template-columns: 1fr; }

    .nh-quickbar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    .nh-quickbar-item {
        padding: 12px 8px;
        gap: 4px;
    }
    .nh-quickbar-emoji { font-size: 18px; }
    .nh-quickbar-label { font-size: 12px; }

    .nh-dashboard-card { padding: 16px; }
    .nh-dc-icon { width: 40px; height: 40px; font-size: 18px; }
    .nh-dc-num { font-size: 22px; }
}

/* =========================================================
   31. 点击量隐藏后的布局微调
   ========================================================= */
.nh-card-meta {
    /* 只有收藏数时靠右展示 */
    justify-content: flex-end;
}
.nh-detail-head .nh-card-meta {
    /* 详情页保留左对齐 */
    justify-content: flex-start;
}
.nh-hot-card {
    /* 热门卡片现在只有图标+名称，让它更紧凑 */
    justify-content: flex-start;
}

/* =========================================================
   32. 标签管理页专用
   ========================================================= */
.nh-merge-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: var(--mn-bg-soft, #f6f7f9);
    border-radius: 8px;
    min-height: 40px;
    align-items: center;
}
.nh-merge-preview-item {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
    font-size: 12px;
    font-weight: 500;
}

.nh-merge-suggestions {
    margin-top: 8px;
    margin-bottom: 6px;
}
.nh-merge-suggest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px;
}
.nh-merge-suggest-item {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--mn-bg-soft, #f6f7f9);
    color: var(--mn-text-secondary, #555);
    font-size: 12px;
    border: 1px solid var(--mn-border-light, #eef0f2);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.nh-merge-suggest-item:hover {
    background: var(--mn-primary-subtle, #e6e4ff);
    color: var(--mn-primary, #635bff);
    border-color: var(--mn-primary, #635bff);
}

@media (max-width: 640px) {
    .nh-table th, .nh-table td {
        font-size: 12px;
        padding: 8px 6px;
    }
    .nh-table-actions .btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-bottom: 2px;
    }
}