/* ============================================================
   不落阁导航 v2 —— 参照「笔点」的三栏布局
   作用域：.nv2-page 内部，避免影响站点其它页面
   ============================================================ */
:root {
    --nv2-bg: #f6f7f9;
    --nv2-card: #ffffff;
    --nv2-border: #eef0f3;
    --nv2-text: #1f2329;
    --nv2-text-2: #8a919f;
    --nv2-text-3: #b4b9c2;
    --nv2-primary: #2f6fed;
    --nv2-primary-50: #eef4ff;
    --nv2-radius: 10px;
    --nv2-shadow: 0 1px 3px rgba(16, 24, 40, .05);
    --nv2-header-h: 56px;
}

body.dark-mode {
    --nv2-bg: #111316;
    --nv2-card: #191c21;
    --nv2-border: #262a30;
    --nv2-text: #e6e8eb;
    --nv2-text-2: #9aa1ad;
    --nv2-text-3: #6b7280;
    --nv2-primary: #5b8cff;
    --nv2-primary-50: #1a2333;
    --nv2-shadow: none;
}

.nv2-page {
    background: var(--nv2-bg);
    color: var(--nv2-text);
    min-height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.nv2-page * { box-sizing: border-box; }
.nv2-page a { color: inherit; text-decoration: none; }

/* ---------------- Header ---------------- */
.nv2-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nv2-card);
    border-bottom: 1px solid var(--nv2-border);
}
.nv2-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: var(--nv2-header-h);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.nv2-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nv2-brand-logo {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #5b8cff, #2f6fed);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.nv2-brand-name { font-size: 18px; font-weight: 600; letter-spacing: .5px; }

.nv2-topnav { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.nv2-topnav a { color: var(--nv2-text-2); font-size: 14px; transition: color .2s; }
.nv2-topnav a:hover, .nv2-topnav a.active { color: var(--nv2-text); font-weight: 500; }
/* 热榜入口：与实时热榜页排名前三的强调色保持一致 */
.nv2-topnav a.nv2-topnav-hot { color: #f1403c; }
.nv2-topnav a.nv2-topnav-hot i { margin-right: 4px; }
.nv2-topnav a.nv2-topnav-hot:hover { color: #d9342f; font-weight: 500; }

.nv2-header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nv2-meta { color: var(--nv2-text-2); font-size: 12px; white-space: nowrap; }
.nv2-meta b { color: var(--nv2-text); font-weight: 500; }

.nv2-search {
    display: flex; align-items: center;
    background: var(--nv2-bg);
    border: 1px solid var(--nv2-border);
    border-radius: 8px;
    height: 34px;
    padding: 0 4px 0 8px;
}
.nv2-search select {
    border: 0; background: transparent; color: var(--nv2-text-2);
    font-size: 12px; outline: none; cursor: pointer; max-width: 76px;
}
.nv2-search input {
    border: 0; background: transparent; outline: none;
    color: var(--nv2-text); font-size: 13px; width: 150px; padding: 0 6px;
}
.nv2-search button {
    border: 0; background: transparent; color: var(--nv2-text-2);
    cursor: pointer; width: 28px; height: 26px; border-radius: 6px;
}
.nv2-search button:hover { background: var(--nv2-primary-50); color: var(--nv2-primary); }

.nv2-icon-btn {
    border: 0; background: transparent; color: var(--nv2-text-2);
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.nv2-icon-btn:hover { background: var(--nv2-bg); color: var(--nv2-text); }
.nv2-login-btn {
    border: 0; border-radius: 8px; height: 32px; padding: 0 14px;
    background: var(--nv2-primary); color: #fff; cursor: pointer; font-size: 13px;
}
.nv2-login-btn:hover { opacity: .9; }

/* ---------------- Tab bar ---------------- */
.nv2-tabbar {
    background: var(--nv2-card);
    border-bottom: 1px solid var(--nv2-border);
    position: sticky;
    top: var(--nv2-header-h);
    z-index: 99;
}
.nv2-tabbar-inner {
    max-width: 1440px; margin: 0 auto; padding: 0 24px;
    height: 48px; display: flex; align-items: center; gap: 8px;
}
.nv2-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.nv2-tab {
    border: 0; background: transparent; color: var(--nv2-text-2);
    height: 32px; padding: 0 14px; border-radius: 8px; cursor: pointer;
    font-size: 14px; white-space: nowrap;
}
.nv2-tab:hover { color: var(--nv2-text); background: var(--nv2-bg); }
.nv2-tab.active { color: var(--nv2-primary); background: var(--nv2-primary-50); font-weight: 500; }

.nv2-tab-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nv2-btn {
    border: 1px solid var(--nv2-border); background: var(--nv2-card);
    color: var(--nv2-text-2); height: 30px; padding: 0 12px;
    border-radius: 8px; cursor: pointer; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
}
.nv2-btn:hover { color: var(--nv2-text); border-color: var(--nv2-text-3); }
.nv2-btn.primary { background: var(--nv2-primary); border-color: var(--nv2-primary); color: #fff; }
.nv2-btn.primary:hover { opacity: .92; }

/* ---------------- Layout ---------------- */
.nv2-layout {
    max-width: 1440px; margin: 0 auto; padding: 16px 24px 40px;
    display: grid; grid-template-columns: 168px minmax(0, 1fr) 288px; gap: 16px;
    align-items: start; grid-template-areas: "side main aside";
}
.nv2-sidebar { grid-area: side; }
.nv2-main { grid-area: main; }
.nv2-aside { grid-area: aside; }

/* 侧边栏位置 / 隐藏 */
body.nv2-sidebar-right .nv2-layout { grid-template-areas: "main side aside"; grid-template-columns: minmax(0, 1fr) 168px 288px; }
body.nv2-no-sidebar .nv2-layout { grid-template-areas: "main aside"; grid-template-columns: minmax(0, 1fr) 288px; }
body.nv2-no-sidebar .nv2-sidebar { display: none; }

/* 页面宽度 */
body.nv2-width-fixed .nv2-header-inner,
body.nv2-width-fixed .nv2-tabbar-inner,
body.nv2-width-fixed .nv2-hero-inner,
body.nv2-width-fixed .nv2-common,
body.nv2-width-fixed .nv2-layout { max-width: 1200px; }
body.nv2-width-auto .nv2-header-inner,
body.nv2-width-auto .nv2-tabbar-inner,
body.nv2-width-auto .nv2-hero-inner,
body.nv2-width-auto .nv2-common,
body.nv2-width-auto .nv2-layout { max-width: none; }

/* ---------------- Sidebar ---------------- */
.nv2-sidebar {
    position: sticky; top: calc(var(--nv2-header-h) + 48px + 16px);
    background: var(--nv2-card); border: 1px solid var(--nv2-border);
    border-radius: var(--nv2-radius); padding: 10px 8px;
    max-height: calc(100vh - var(--nv2-header-h) - 48px - 32px);
    overflow-y: auto;
}
.nv2-side-title {
    font-size: 11px; color: var(--nv2-text-3); padding: 8px 10px 6px;
    letter-spacing: 1px;
}
.nv2-side-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 8px; color: var(--nv2-text-2);
    font-size: 13px; cursor: pointer; white-space: nowrap;
}
.nv2-side-item i { width: 16px; text-align: center; font-size: 13px; }
.nv2-side-item:hover { background: var(--nv2-bg); color: var(--nv2-text); }
.nv2-side-item.active { background: var(--nv2-primary-50); color: var(--nv2-primary); }
.nv2-side-item .count { margin-left: auto; font-size: 11px; color: var(--nv2-text-3); }

/* ---------------- Main ---------------- */
.nv2-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nv2-cat { display: none; flex-direction: column; gap: 14px; }
.nv2-cat.active { display: flex; }

.nv2-group {
    background: var(--nv2-card); border: 1px solid var(--nv2-border);
    border-radius: var(--nv2-radius); padding: 14px 16px 16px;
    box-shadow: var(--nv2-shadow);
}
.nv2-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nv2-group-title { font-size: 13px; font-weight: 600; color: var(--nv2-text-2); letter-spacing: .5px; }
.nv2-group-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nv2-primary); }

.nv2-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 10px;
}
.nv2-tile {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 8px; border-radius: 8px; min-width: 0;
    transition: background .15s;
}
.nv2-tile:hover { background: var(--nv2-bg); }
.nv2-logo {
    width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--nv2-primary-50); color: var(--nv2-primary);
    font-size: 12px; font-weight: 600; overflow: hidden;
}
.nv2-logo img { width: 100%; height: 100%; object-fit: contain; }
.nv2-name {
    font-size: 13px; color: var(--nv2-text); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.nv2-tile:hover .nv2-name { color: var(--nv2-primary); }
.nv2-fav {
    display: none; margin-left: auto; flex-shrink: 0;
    color: var(--nv2-text-3); font-size: 11px; padding: 0 2px;
}
.nv2-tile:hover .nv2-fav { display: inline-flex; }
.nv2-fav:hover { color: #f5a623; }
.nv2-fav.active { display: inline-flex; color: #f5a623; }

.nv2-empty {
    padding: 40px; text-align: center; color: var(--nv2-text-3);
    background: var(--nv2-card); border: 1px dashed var(--nv2-border); border-radius: var(--nv2-radius);
}

/* 六种布局模式（列数/密度/容器宽度均有区分） */
body.nv2-layout-classic .nv2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px; }
body.nv2-layout-classic .nv2-tile { padding: 10px 12px; }
body.nv2-layout-default .nv2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; }
body.nv2-layout-compact .nv2-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px 6px; }
body.nv2-layout-compact .nv2-tile { padding: 5px 6px; }
body.nv2-layout-mini .nv2-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px 4px; }
body.nv2-layout-mini .nv2-tile { padding: 4px; gap: 6px; }
body.nv2-layout-mini .nv2-logo { width: 20px; height: 20px; }
body.nv2-layout-mini .nv2-name { font-size: 12px; }
body.nv2-layout-large .nv2-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 14px; }
body.nv2-layout-large .nv2-tile { padding: 9px 10px; }
body.nv2-layout-minimal .nv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
body.nv2-layout-minimal .nv2-aside, body.nv2-layout-minimal .nv2-sidebar { display: none; }
body.nv2-layout-minimal .nv2-layout { grid-template-columns: 1fr; grid-template-areas: "main"; }

/* ---------------- Aside ---------------- */
.nv2-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--nv2-header-h) + 48px + 16px); }

.nv2-widget {
    background: var(--nv2-card); border: 1px solid var(--nv2-border);
    border-radius: var(--nv2-radius); padding: 14px;
}
.nv2-widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nv2-widget-title { font-size: 13px; font-weight: 600; color: var(--nv2-text); display: flex; align-items: center; gap: 6px; }
.nv2-widget-title i { color: var(--nv2-primary); }
.nv2-widget-btn { border: 0; background: transparent; color: var(--nv2-text-3); cursor: pointer; font-size: 12px; }
.nv2-widget-btn:hover { color: var(--nv2-primary); }

/* 日历 */
.nv2-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nv2-cal-month { font-size: 13px; font-weight: 600; }
.nv2-cal-nav button { border: 0; background: transparent; color: var(--nv2-text-2); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; }
.nv2-cal-nav button:hover { background: var(--nv2-bg); color: var(--nv2-text); }
.nv2-cal-week, .nv2-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.nv2-cal-week span { font-size: 11px; color: var(--nv2-text-3); padding: 4px 0; }
.nv2-cal-days span {
    font-size: 12px; color: var(--nv2-text-2); padding: 5px 0;
    border-radius: 6px; cursor: default;
}
.nv2-cal-days span.other { color: var(--nv2-text-3); opacity: .45; }
.nv2-cal-days span.today { background: var(--nv2-primary); color: #fff; font-weight: 600; }

/* 热词榜 */
.nv2-hot-sub { font-size: 11px; color: var(--nv2-text-3); margin-bottom: 8px; }
.nv2-hot-list { display: flex; flex-direction: column; gap: 2px; }
.nv2-hot-item { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; }
.nv2-hot-item:hover { background: var(--nv2-bg); }
.nv2-hot-rank {
    width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--nv2-text-3); background: var(--nv2-bg);
}
.nv2-hot-item.top .nv2-hot-rank { background: linear-gradient(135deg, #ff7a45, #f5222d); color: #fff; }
.nv2-hot-name { flex: 1; font-size: 12px; color: var(--nv2-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv2-hot-item:hover .nv2-hot-name { color: var(--nv2-primary); }
.nv2-hot-heat { font-size: 11px; color: var(--nv2-text-3); flex-shrink: 0; }

/* 便签/快捷链接 */
.nv2-note { background: #fffbe6; border: 1px solid #fff1b8; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; color: #614700; position: relative; }
body.dark-mode .nv2-note { background: #2a2716; border-color: #4a4320; color: #e6d9a8; }
.nv2-note .del { position: absolute; top: 4px; right: 6px; cursor: pointer; color: #b8a86a; opacity: 0; }
.nv2-note:hover .del { opacity: 1; }
.nv2-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.nv2-quick a {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px;
    border-radius: 6px; background: var(--nv2-bg); font-size: 12px; color: var(--nv2-text-2);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.nv2-quick a:hover { color: var(--nv2-primary); }

/* 返回顶部 */
.nv2-backtop {
    position: fixed; right: 24px; bottom: 28px; width: 38px; height: 38px;
    border-radius: 10px; border: 1px solid var(--nv2-border);
    background: var(--nv2-card); color: var(--nv2-text-2); cursor: pointer;
    display: none; align-items: center; justify-content: center; z-index: 200;
    box-shadow: var(--nv2-shadow);
}
.nv2-backtop.show { display: flex; }
.nv2-backtop:hover { color: var(--nv2-primary); }

/* ---------------- Modal ---------------- */
.nv2-modal-mask {
    position: fixed; inset: 0; background: rgba(15, 18, 22, .45);
    z-index: 1000; display: none; align-items: center; justify-content: center;
}
.nv2-modal-mask.show { display: flex; }
.nv2-modal {
    width: 380px; max-width: 92vw; background: var(--nv2-card);
    border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.nv2-modal-head { padding: 14px 18px; border-bottom: 1px solid var(--nv2-border); display: flex; align-items: center; justify-content: space-between; }
.nv2-modal-title { font-size: 15px; font-weight: 600; }
.nv2-modal-close { border: 0; background: transparent; color: var(--nv2-text-3); font-size: 20px; cursor: pointer; line-height: 1; }
.nv2-modal-body { padding: 16px 18px; }
.nv2-field { margin-bottom: 12px; }
.nv2-field label { display: block; font-size: 12px; color: var(--nv2-text-2); margin-bottom: 5px; }
.nv2-field input, .nv2-field select {
    width: 100%; height: 36px; border: 1px solid var(--nv2-border); border-radius: 8px;
    background: var(--nv2-card); color: var(--nv2-text); padding: 0 10px; outline: none; font-size: 13px;
}
.nv2-field input:focus, .nv2-field select:focus { border-color: var(--nv2-primary); }
.nv2-modal-footer { display: flex; gap: 10px; margin-top: 6px; }
.nv2-modal-footer .nv2-btn { flex: 1; justify-content: center; height: 36px; }
.nv2-switch-line { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.nv2-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.nv2-swatch { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.nv2-swatch.active { border-color: var(--nv2-text); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
    .nv2-layout { grid-template-columns: 150px minmax(0, 1fr); grid-template-areas: "side main"; }
    .nv2-aside { display: none; }
    body.nv2-sidebar-right .nv2-layout { grid-template-areas: "main side"; grid-template-columns: minmax(0, 1fr) 150px; }
    body.nv2-no-sidebar .nv2-layout { grid-template-areas: "main"; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .nv2-layout { grid-template-columns: 1fr; grid-template-areas: "main"; }
    .nv2-sidebar { display: none; }
    .nv2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nv2-topnav { display: none; }
    .nv2-search input { width: 110px; }
}
@media (max-width: 600px) {
    .nv2-header-inner, .nv2-tabbar-inner, .nv2-layout { padding-left: 12px; padding-right: 12px; }
    .nv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nv2-meta { display: none; }
}

/* ============================================================
   Hero 壁纸区 / 常用网址 / 设置抽屉
   ============================================================ */
.nv2-hero { position: relative; overflow: hidden; background: #dfe6f2; }
.nv2-hero-small { height: 120px; }
.nv2-hero-medium { height: 180px; }
.nv2-hero-large { height: 240px; }
.nv2-hero-bg {
    position: absolute; inset: -24px;
    background-image: linear-gradient(135deg, #6f9fd8, #b7c9e2);
    background-size: cover; background-position: var(--nv2-wall-pos, center);
    filter: blur(var(--nv2-blur, 0px)); transition: filter .2s;
}
.nv2-hero-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, var(--nv2-mask, 0)); }
.nv2-hero-inner {
    position: relative; z-index: 2; max-width: 1440px; margin: 0 auto;
    padding: 0 24px; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 10px;
}
.nv2-engine-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nv2-engine-tags button {
    border: 0; background: rgba(255, 255, 255, .28); color: #fff;
    height: 26px; padding: 0 12px; border-radius: 13px; cursor: pointer;
    font-size: 12px; backdrop-filter: blur(4px);
}
.nv2-engine-tags button.active, .nv2-engine-tags button:hover { background: rgba(255, 255, 255, .92); color: #2f6fed; }
.nv2-hero-search {
    display: flex; width: min(640px, 92%); background: #fff;
    border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}
.nv2-hero-search input { flex: 1; border: 0; outline: none; height: 42px; padding: 0 16px; font-size: 14px; color: #1f2329; }
.nv2-hero-search button { border: 0; background: var(--nv2-primary); color: #fff; width: 84px; cursor: pointer; font-size: 14px; }
.nv2-hero-search button:hover { opacity: .92; }

/* 常用网址 */
.nv2-common { max-width: 1440px; margin: 14px auto 16px; padding: 0 24px; }
.nv2-common-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nv2-common-title { font-size: 13px; font-weight: 600; color: var(--nv2-text-2); display: flex; align-items: center; gap: 6px; }
.nv2-common-title i { color: var(--nv2-primary); }
.nv2-common-add-btn { border: 0; background: transparent; color: var(--nv2-text-3); cursor: pointer; font-size: 12px; }
.nv2-common-add-btn:hover { color: var(--nv2-primary); }
.nv2-common-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    background: color-mix(in srgb, var(--nv2-card) var(--nv2-panel-opacity, 100%), transparent);
    border: 1px solid var(--nv2-border); border-radius: 10px; padding: 10px 12px;
}
.nv2-common-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; min-width: 0; }
.nv2-common-item:hover { background: var(--nv2-bg); }
.nv2-common-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv2-common-add { border: 1px dashed var(--nv2-border); color: var(--nv2-text-3); justify-content: center; gap: 6px; }
.nv2-onlyme { margin-top: 6px; font-size: 11px; color: var(--nv2-text-3); display: flex; align-items: center; gap: 4px; }

/* 面板半透明（不透明度设置） */
.nv2-widget, .nv2-group, .nv2-sidebar, .nv2-common-grid {
    background: color-mix(in srgb, var(--nv2-card) var(--nv2-panel-opacity, 100%), transparent);
}

/* 设置抽屉 */
.nv2-drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 900; display: none; }
.nv2-drawer-mask.show { display: block; }
.nv2-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 92vw;
    background: var(--nv2-card); border-left: 1px solid var(--nv2-border);
    z-index: 901; transform: translateX(100%); transition: transform .25s ease;
    display: flex; flex-direction: column;
}
.nv2-drawer.show { transform: translateX(0); }
.nv2-drawer-head {
    height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--nv2-border); font-size: 15px; font-weight: 600;
}
.nv2-drawer-close { border: 0; background: transparent; font-size: 22px; color: var(--nv2-text-3); cursor: pointer; line-height: 1; }
.nv2-drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; }
.nv2-login-tip {
    background: #fff7e6; color: #b7791f; border-radius: 8px; padding: 8px 10px;
    font-size: 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
body.dark-mode .nv2-login-tip { background: #2a2416; color: #e0b872; }
.nv2-set-title { font-size: 12px; color: var(--nv2-text-3); margin: 16px 0 8px; }
.nv2-layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nv2-layout-btn {
    border: 1px solid var(--nv2-border); background: var(--nv2-card); border-radius: 8px;
    padding: 10px 4px; cursor: pointer; color: var(--nv2-text-2);
    display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px;
}
.nv2-layout-btn i { font-size: 16px; }
.nv2-layout-btn.active { border-color: var(--nv2-primary); color: var(--nv2-primary); background: var(--nv2-primary-50); }
.nv2-skin-preview {
    height: 70px; border-radius: 8px; border: 1px dashed var(--nv2-border);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    color: var(--nv2-text-3); font-size: 12px; cursor: pointer;
    background-size: cover; background-position: center; margin-bottom: 8px;
}
.nv2-skin-row { display: flex; gap: 6px; }
.nv2-skin-row input[type=text] {
    flex: 1; height: 30px; border: 1px solid var(--nv2-border); border-radius: 6px;
    background: var(--nv2-card); color: var(--nv2-text); padding: 0 8px; font-size: 12px; outline: none;
}
.nv2-skin-row .nv2-btn { height: 30px; padding: 0 10px; font-size: 12px; }
.nv2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nv2-chip {
    border: 1px solid var(--nv2-border); background: var(--nv2-card); color: var(--nv2-text-2);
    height: 28px; padding: 0 12px; border-radius: 14px; cursor: pointer; font-size: 12px;
}
.nv2-chip.active { border-color: var(--nv2-primary); color: var(--nv2-primary); background: var(--nv2-primary-50); }
.nv2-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nv2-swatch { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.nv2-swatch.active { border-color: var(--nv2-text); }
.nv2-swatch-custom { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; border: 1px solid var(--nv2-border); cursor: pointer; }
.nv2-swatch-custom input { width: 200%; height: 200%; margin: -50%; cursor: pointer; border: 0; padding: 0; }
.nv2-set-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; gap: 10px; }
.nv2-set-row input[type=range] { width: 150px; accent-color: var(--nv2-primary); }
.nv2-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.nv2-switch input { opacity: 0; width: 0; height: 0; }
.nv2-switch span { position: absolute; inset: 0; background: #d5d9e0; border-radius: 11px; transition: .2s; cursor: pointer; }
.nv2-switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.nv2-switch input:checked + span { background: var(--nv2-primary); }
.nv2-switch input:checked + span::before { transform: translateX(16px); }
.nv2-hint {
    margin-top: 18px; background: #fff7e6; color: #b7791f; border-radius: 8px;
    padding: 10px 12px; font-size: 12px; line-height: 1.6; display: flex; gap: 8px;
}
body.dark-mode .nv2-hint { background: #2a2416; color: #e0b872; }

@media (max-width: 900px) {
    .nv2-common-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   登录态：会员侧边栏 / 功能页 / 角标 / 字体行距
   ============================================================ */
.nv2-side-member { display: none; }
body.nv2-no-module-links .nv2-side-cats { display: none; }

/* 会员头像 + 独立可折叠侧栏 */
.nv2-avatar-btn { display: none; border: 0; background: transparent; padding: 0; cursor: pointer; align-items: center; }
body.nv2-logged-in .nv2-avatar-btn { display: inline-flex; }
.nv2-avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--nv2-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.nv2-member-sidebar {
    position: fixed; left: 0; top: var(--nv2-header-h); bottom: 0; width: 210px;
    background: var(--nv2-card); border-right: 1px solid var(--nv2-border);
    z-index: 120; transform: translateX(-100%); transition: transform .25s ease;
    overflow-y: auto; padding: 10px 8px 20px; box-shadow: 4px 0 16px rgba(0, 0, 0, .06);
}
.nv2-member-sidebar.show { transform: translateX(0); }
.nv2-member-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; }
.nv2-member-head .nv2-side-username { flex: 1; }
.nv2-member-collapse { border: 0; background: transparent; color: var(--nv2-text-3); cursor: pointer; width: 24px; height: 24px; border-radius: 6px; }
.nv2-member-collapse:hover { background: var(--nv2-bg); color: var(--nv2-text); }
.nv2-side-divider { height: 1px; background: var(--nv2-border); margin: 8px 6px; }
.nv2-side-item .dot { margin-left: auto; font-size: 11px; color: var(--nv2-text-3); }

/* 会员功能页 */
.nv2-view { display: none; }
.nv2-view.active { display: block; }
.nv2-panel {
    background: color-mix(in srgb, var(--nv2-card) var(--nv2-panel-opacity, 100%), transparent);
    border: 1px solid var(--nv2-border); border-radius: 10px; padding: 18px 20px;
}
.nv2-panel h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.nv2-panel .sub { color: var(--nv2-text-2); font-size: 13px; margin-bottom: 14px; }
.nv2-stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.nv2-stat { background: var(--nv2-bg); border-radius: 8px; padding: 12px 16px; min-width: 120px; }
.nv2-stat b { font-size: 20px; display: block; }
.nv2-stat span { font-size: 12px; color: var(--nv2-text-2); }
.nv2-fav-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nv2-fav-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; }
.nv2-fav-item:hover { background: var(--nv2-bg); }

/* 我的主页（私有书签层） */
.nv2-board-login { display: flex; align-items: center; gap: 10px; background: var(--nv2-bg); border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--nv2-text-2); }
.nv2-board-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.nv2-board-tools .nv2-btn { height: 30px; padding: 0 12px; font-size: 12px; }
.nv2-board-group { margin-bottom: 14px; }
.nv2-board-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nv2-text-2); margin-bottom: 6px; }
.nv2-board-head span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv2-board-head i[data-act], .nv2-board-divider i[data-act] { cursor: pointer; font-size: 12px; color: var(--nv2-text-3); padding: 2px 4px; }
.nv2-board-head i[data-act]:hover, .nv2-board-divider i[data-act]:hover { color: var(--nv2-primary); }
.nv2-board-tile { position: relative; border: 1px dashed transparent; }
.nv2-board-tile[draggable="true"] { cursor: grab; }
.nv2-board-tile:hover { border-color: var(--nv2-border); }
.nv2-board-acts { display: none; position: absolute; top: 2px; right: 4px; gap: 4px; background: var(--nv2-card); border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); padding: 1px 4px; }
.nv2-fav-item:hover .nv2-board-acts, .nv2-board-tile:hover .nv2-board-acts { display: inline-flex; }
.nv2-board-acts i { cursor: pointer; font-size: 12px; color: var(--nv2-text-3); }
.nv2-board-acts i:hover { color: var(--nv2-primary); }
.nv2-board-blank { grid-column: 1 / -1; border: 1px dashed var(--nv2-border); border-radius: 8px; padding: 10px; font-size: 12px; color: var(--nv2-text-3); text-align: center; }
.nv2-board-divider { position: relative; display: flex; align-items: center; margin: 10px 0; }
.nv2-board-divider::before { content: ""; flex: 1; border-top: 1px dashed var(--nv2-border); }
.nv2-board-divider i[data-act] { margin-left: 8px; }

/* 书签角标 */
.nv2-name { flex: 1; }
.nv2-url-badge, .nv2-file-badge {
    display: none; flex-shrink: 0; font-size: 10px; color: var(--nv2-text-3);
    background: var(--nv2-bg); border-radius: 4px; padding: 1px 4px; max-width: 72px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv2-tile.show-url .nv2-url-badge { display: inline-block; }
.nv2-tile.show-file .nv2-file-badge { display: inline-block; }

/* 文件夹悬停下拉 */
.nv2-group-head { position: relative; }
.nv2-group-dropdown {
    position: absolute; top: 100%; left: 0; z-index: 30; display: none;
    background: var(--nv2-card); border: 1px solid var(--nv2-border);
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 6px; min-width: 170px; max-height: 320px; overflow-y: auto;
}
.nv2-group.folder-open .nv2-group-dropdown { display: block; }
.nv2-group-dropdown a { display: block; padding: 5px 8px; border-radius: 6px; font-size: 12px; color: var(--nv2-text-2); }
.nv2-group-dropdown a:hover { background: var(--nv2-bg); color: var(--nv2-primary); }

/* 字体大小（整体缩放） */
body.nv2-font-xsmall .nv2-page { zoom: .90; }
body.nv2-font-small .nv2-page { zoom: .95; }
body.nv2-font-default .nv2-page { zoom: 1; }
body.nv2-font-large .nv2-page { zoom: 1.05; }
body.nv2-font-xlarge .nv2-page { zoom: 1.10; }
body.nv2-font-xxlarge .nv2-page { zoom: 1.15; }

/* 书签行间距 */
body.nv2-spacing-small .nv2-grid { gap: 2px 8px; }
body.nv2-spacing-small .nv2-tile { padding: 4px 8px; }
body.nv2-spacing-medium .nv2-grid { gap: 4px 10px; }
body.nv2-spacing-medium .nv2-tile { padding: 6px 8px; }
body.nv2-spacing-default .nv2-grid { gap: 4px 10px; }
body.nv2-spacing-default .nv2-tile { padding: 7px 8px; }

/* 右侧模块链接（分类） */
.nv2-aside-cats { display: none; }
body.nv2-module-right .nv2-aside-cats { display: block; }
body.nv2-module-right .nv2-side-cats { display: none; }
body.nv2-module-none .nv2-side-cats, body.nv2-module-none .nv2-aside-cats { display: none; }

/* 会员侧栏头部 */
.nv2-side-user { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; }
.nv2-side-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: var(--nv2-primary); color: #fff; display: flex;
    align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.nv2-side-username { font-size: 13px; font-weight: 600; color: var(--nv2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

