/* 主页门户 · 前台样式（配色变量由 PHP 按色板写进 #nb-theme） */

.nb-body {
    --nb-gap: 16px;
    --nb-radius: 18px;
    --nb-max: 1400px;
    --nb-scroll-thumb: rgba(255, 255, 255, .22);
    --nb-scroll-thumb-hi: rgba(255, 255, 255, .4);
    margin: 0;
    min-height: 100vh;
    background: var(--nb-bg-primary);
    color: var(--nb-text-primary);
    font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .4s cubic-bezier(.4, 0, .2, 1), color .4s cubic-bezier(.4, 0, .2, 1);
}

.nb-body a { color: inherit; text-decoration: none; }
.nb-body button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.nb-body input, .nb-body select { font: inherit; color: var(--nb-text-primary); }
.nb-body [hidden] { display: none !important; }

/* ---------- 滚动条：半透明磨砂细条，轨道透明露出底下的玻璃 ---------- */
.nb-body[data-mode="light"] {
    --nb-scroll-thumb: rgba(15, 23, 42, .18);
    --nb-scroll-thumb-hi: rgba(15, 23, 42, .34);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--nb-scroll-thumb, rgba(148, 163, 184, .34));
    border: 3px solid transparent;
    border-radius: 9px;
    background-clip: padding-box;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, .18);
}
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {
    background: var(--nb-scroll-thumb-hi, rgba(148, 163, 184, .52));
}
::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
    .nb-body, .nb-body * {
        scrollbar-width: thin;
        scrollbar-color: var(--nb-scroll-thumb, rgba(148, 163, 184, .34)) transparent;
    }
}

/* ---------- 背景层 ---------- */
.nb-aurora, .nb-halo, .nb-meteors, .nb-spot { position: fixed; pointer-events: none; }
.nb-aurora {
    inset: -30% -20%;
    z-index: 0;
    background: linear-gradient(135deg,
        var(--nb-primary-dark) 0%, var(--nb-primary) 22%, #764ba2 42%,
        var(--nb-accent-light) 64%, var(--nb-accent) 80%, var(--nb-primary-dark) 100%);
    background-size: 300% 300%;
    filter: blur(120px) saturate(160%);
    opacity: .18;
    animation: nb-aurora 22s ease-in-out infinite;
}
.nb-body[data-mode="light"] .nb-aurora { opacity: .3; filter: blur(140px) saturate(130%); }
@keyframes nb-aurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.nb-halo {
    inset: 0;
    z-index: 0;
    background: var(--nb-bg-gradient);
}
.nb-spot {
    z-index: 1;
    width: 400px; height: 400px;
    margin: -200px 0 0 -200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--nb-glow) 0%, transparent 65%);
    opacity: 0;
    transition: opacity .4s ease;
}
.nb-body.nb-spot-on .nb-spot { opacity: .16; }
.nb-body[data-mode="light"].nb-spot-on .nb-spot { opacity: .1; }

.nb-meteors { inset: 0; z-index: 0; overflow: hidden; }
.nb-meteor {
    position: absolute;
    width: 120px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--nb-primary-light));
    opacity: 0;
    transform: rotate(215deg) translate3d(0, 0, 0);
}
.nb-meteor.m1 { top: 8%;  left: 78%; animation: nb-meteor 13s linear infinite; }
.nb-meteor.m2 { top: 22%; left: 92%; animation: nb-meteor 13s linear 2.6s infinite; }
.nb-meteor.m3 { top: 40%; left: 70%; animation: nb-meteor 13s linear 5.1s infinite; }
.nb-meteor.m4 { top: 12%; left: 55%; animation: nb-meteor 13s linear 7.4s infinite; }
.nb-meteor.m5 { top: 58%; left: 88%; animation: nb-meteor 13s linear 9.3s infinite; }
.nb-meteor.m6 { top: 66%; left: 60%; animation: nb-meteor 13s linear 11s infinite; }
.nb-meteor.m7 { top: 32%; left: 42%; animation: nb-meteor 13s linear 3.9s infinite; }
.nb-meteor.m8 { top: 78%; left: 76%; animation: nb-meteor 13s linear 6.6s infinite; }
@keyframes nb-meteor {
    0%, 3%   { opacity: 0; transform: rotate(215deg) translate3d(0, 0, 0); }
    6%       { opacity: .75; }
    26%      { opacity: .38; }
    34%, 100% { opacity: 0; transform: rotate(215deg) translate3d(-560px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .nb-aurora, .nb-meteor { animation: none; }
}

/* ---------- 顶栏 ---------- */
.nb-top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 24px;
    background: var(--nb-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--nb-border-light);
}
.nb-body[data-mode="light"] .nb-top { backdrop-filter: blur(40px) saturate(200%); }
.nb-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: .02em; }
.nb-logo-dot {
    width: 22px; height: 22px; border-radius: 8px;
    background: linear-gradient(135deg, var(--nb-primary), var(--nb-accent));
    box-shadow: 0 0 14px var(--nb-glow);
}
.nb-topops { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nb-iobtn { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; color: var(--nb-text-secondary);
    border: 1px solid var(--nb-glass-border); background: var(--nb-glass); transition: all .25s ease; }
.nb-iobtn svg { width: 17px; height: 17px; fill: currentColor; }
.nb-iobtn:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); transform: translateY(-1px); }
.nb-tbtn { padding: 6px 14px; border-radius: 11px; font-size: 13px;
    border: 1px solid var(--nb-glass-border); background: var(--nb-glass);
    transition: all .25s ease; }
.nb-tbtn:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); transform: translateY(-1px); }
.nb-count { font-size: 12px; color: var(--nb-text-muted); }

/* ---------- Hero ---------- */
.nb-hero { position: relative; z-index: 10; padding: 74px 24px 46px; text-align: center; }
.nb-clock {
    font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", monospace;
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
}
.nb-dateline {
    margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px;
    align-items: center; justify-content: center;
    font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--nb-text-muted);
}
.nb-lunar {
    padding: 2px 9px; border-radius: 7px; font-size: 13px; letter-spacing: normal; text-transform: none;
    background: var(--nb-bg-tertiary); color: var(--nb-text-muted);
}
.nb-lunar.fest { background: rgba(251, 146, 60, .15); color: rgb(251, 146, 60); }
.nb-wisdom {
    margin: 26px auto 28px; max-width: 760px; min-height: 2.2em;
    font-family: "Playfair Display", Georgia, "Songti SC", serif;
    font-size: clamp(15px, 2vw, 19px); color: var(--nb-text-secondary); letter-spacing: .02em;
}
.nb-wisdom-spark { color: var(--nb-accent); animation: nb-twinkle 2.4s ease-in-out infinite; display: inline-block; }
@keyframes nb-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.nb-weather {
    margin: 16px auto 0; display: inline-flex; align-items: center; gap: 12px;
    padding: 9px 16px; border-radius: 14px;
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border);
    box-shadow: var(--nb-shadow); backdrop-filter: blur(18px);
    font-size: 13px; color: var(--nb-text-secondary);
}
.nb-w-icon { font-size: 22px; line-height: 1; }
.nb-w-temp { font-size: 19px; font-weight: 600; color: var(--nb-text-primary); }
.nb-w-sep { width: 1px; height: 22px; background: var(--nb-glass-border); }
.nb-w-hum::before { content: "💧 "; }
.nb-w-wind::before { content: "🌬 "; }
.nb-w-refresh { color: var(--nb-text-muted); }
.nb-w-refresh:hover { color: var(--nb-primary-light); }
.nb-weather.is-load .nb-w-refresh { animation: nb-spin 1s linear infinite; }
@keyframes nb-spin { to { transform: rotate(360deg); } }

.nb-searchbar {
    margin-top: 22px; display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 24px; border-radius: 14px; min-width: min(520px, 88vw);
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border);
    box-shadow: var(--nb-shadow); backdrop-filter: blur(18px);
    transition: all .3s ease; color: var(--nb-text-muted);
}
.nb-searchbar:hover { border-color: var(--nb-primary); box-shadow: 0 0 28px var(--nb-glow); }
.nb-search-txt { flex: 1; text-align: left; letter-spacing: .04em; }
.nb-searchbar kbd {
    padding: 3px 8px; border-radius: 6px; font-size: 12px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-border-light); color: var(--nb-text-muted);
}

/* ---------- 主区 ---------- */
.nb-main { position: relative; z-index: 10; max-width: var(--nb-max); margin: 0 auto; padding: 0 24px 120px; }
.nb-sec { position: relative; margin-bottom: 46px; animation: nb-rise .6s ease both; }
@keyframes nb-rise { from { opacity: 0; transform: translateY(20px); } }
.nb-water {
    position: absolute; top: -34px; left: 0; z-index: 0; pointer-events: none; user-select: none;
    font-size: 118px; font-weight: 700; line-height: 1; color: var(--nb-text-muted); opacity: .04;
}
.nb-sechd { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; cursor: pointer; }
.nb-sechd h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: .03em; }
.nb-secic {
    width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; overflow: hidden; backdrop-filter: blur(6px);
}
.nb-secic img { width: 18px; height: 18px; object-fit: contain; }
.nb-secn { font-size: 13px; color: var(--nb-text-muted); }
.nb-secmore { margin-left: auto; font-size: 13px; color: var(--nb-text-muted); transition: color .2s; }
.nb-secmore:hover { color: var(--nb-primary-light); }
.nb-sechev { font-style: normal; font-size: 12px; color: var(--nb-text-muted); transition: color .2s; }
.nb-sechd:hover .nb-sechev { color: var(--nb-primary-light); }
.nb-sec.is-fold .nb-grid, .nb-sec.is-fold .nb-fold, .nb-sec.is-fold .nb-water { display: none; }
.nb-sec.is-fold .nb-sechd { margin-bottom: 2px; }

.nb-grid { position: relative; z-index: 2; display: grid; gap: var(--nb-gap); }
.nb-body[data-view="compact"] .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --nb-gap: 12px; }
.nb-body[data-view="standard"] .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --nb-gap: 16px; }
.nb-body[data-view="comfortable"] .nb-grid { grid-template-columns: 1fr; --nb-gap: 20px; }
@media (min-width: 640px) {
    .nb-body[data-view="compact"] .nb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nb-body[data-view="standard"] .nb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nb-body[data-view="comfortable"] .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .nb-body[data-view="compact"] .nb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nb-body[data-view="standard"] .nb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .nb-body[data-view="compact"] .nb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .nb-body[data-view="comfortable"] .nb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
    .nb-body[data-view="compact"] .nb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .nb-body[data-view="standard"] .nb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 卡片（同色柔和渐变底 + 白色图标块） ---------- */
.nb-card {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    padding: 16px 17px; border-radius: 16px;
    background: var(--nb-bg-secondary);
    border: 1px solid var(--nb-glass-border);
    box-shadow: var(--nb-shadow);
    background-image: linear-gradient(140deg,
        color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 15%, transparent),
        color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 3%, transparent) 58%);
    border-color: color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 22%, transparent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 10%, transparent);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1), box-shadow .26s;
}
.nb-card:hover, .nb-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 24%, transparent);
}
.nb-card.is-top { border-color: var(--nb-card-c, var(--nb-primary)); }
.nb-card.dragging { opacity: .4; }
.nb-card-hd { display: flex; align-items: flex-start; gap: 12px; }
.nb-ic {
    position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
    background: var(--nb-bg-tertiary); display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 12%, var(--nb-bg-primary));
    border: 1px solid color-mix(in srgb, var(--nb-card-c, var(--nb-primary)) 20%, transparent);
}
.nb-ic-letter { font-size: 18px; font-weight: 600; color: var(--nb-card-c, var(--nb-text-muted)); }
.nb-ic img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7px;
    box-sizing: border-box; object-fit: contain; }
.nb-card-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nb-card-name {
    font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .2s;
}
.nb-card-name:hover { color: var(--nb-primary-light); }
.nb-card-domain {
    font-size: 12px; color: var(--nb-text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nb-card-desc {
    margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--nb-text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.nb-tags span {
    padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 500; line-height: 1.5;
    border: 1px solid transparent;
}
.nb-badge {
    padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; letter-spacing: .04em;
}
.nb-badge.top { background: var(--nb-glow); color: #fff; }
.nb-badge.later { background: rgba(251, 146, 60, .18); color: rgb(251, 146, 60); }
.nb-card-go {
    margin-top: auto; padding-top: 12px; align-self: flex-end;
    font-size: 13px; color: var(--nb-text-muted); transition: color .2s, transform .2s;
}
.nb-card-go:hover { color: var(--nb-primary-light); transform: translate(2px, -2px); }

.nb-card-ops {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    display: flex; gap: 2px; padding: 3px; border-radius: 12px;
    background: var(--nb-bg-secondary); border: 1px solid var(--nb-glass-border);
    box-shadow: var(--nb-shadow); opacity: 0; transform: translateX(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.nb-card:hover .nb-card-ops, .nb-card:focus-within .nb-card-ops { opacity: 1; transform: none; }
.nb-card-ops button { padding: 5px 7px; border-radius: 8px; font-size: 13px; line-height: 1; transition: background .2s; }
.nb-card-ops button:hover { background: var(--nb-glass-hover); }
.nb-card-ops button[data-act="del"]:hover { background: rgba(239, 68, 68, .18); }

/* 紧凑视图：单行胶囊 */
.nb-body[data-view="compact"] .nb-card { padding: 10px 12px; flex-direction: row; align-items: center; }
.nb-body[data-view="compact"] .nb-card-hd { flex: 1; min-width: 0; align-items: center; gap: 9px; }
.nb-body[data-view="compact"] .nb-ic { width: 28px; height: 28px; border-radius: 9px; }
.nb-body[data-view="compact"] .nb-ic-letter { font-size: 12px; }
.nb-body[data-view="compact"] .nb-ic img { padding: 5px; }
.nb-body[data-view="compact"] .nb-card-desc,
.nb-body[data-view="compact"] .nb-tags,
.nb-body[data-view="compact"] .nb-card-go { display: none; }
.nb-body[data-view="compact"] .nb-card-name { font-size: 13px; }
.nb-body[data-view="compact"] .nb-card-domain { display: none; }
.nb-body[data-view="compact"] .nb-card-ops { top: 50%; right: 8px; transform: translateY(-50%); background: var(--nb-glass); }
.nb-body[data-view="compact"] .nb-card:hover .nb-card-ops,
.nb-body[data-view="compact"] .nb-card:focus-within .nb-card-ops { transform: translateY(-50%); }
.nb-body[data-view="compact"] .nb-card-ops button { padding: 2px 4px; font-size: 11px; }
.nb-body[data-view="compact"] .nb-badge { display: none; }

/* 舒适视图：大卡 */
.nb-body[data-view="comfortable"] .nb-card { padding: 24px; }
.nb-body[data-view="comfortable"] .nb-ic { width: 56px; height: 56px; border-radius: 14px; }
.nb-body[data-view="comfortable"] .nb-ic-letter { font-size: 21px; }
.nb-body[data-view="comfortable"] .nb-ic img { padding: 12px; }
.nb-body[data-view="comfortable"] .nb-card-name { font-size: 17px; }
.nb-body[data-view="comfortable"] .nb-card-desc { -webkit-line-clamp: 3; font-size: 14px; }
.nb-body[data-view="comfortable"] .nb-tags span { font-size: 11px; padding: 3px 9px; }

.nb-fold { display: flex; justify-content: center; margin-top: 18px; position: relative; z-index: 2; }
.nb-fold button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 12px; font-size: 13px;
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border); color: var(--nb-text-secondary);
    backdrop-filter: blur(10px); transition: all .25s ease;
}
.nb-fold button:hover { transform: scale(1.04); color: var(--nb-primary-light); }

.nb-empty { padding: 80px 0; text-align: center; color: var(--nb-text-muted); }
.nb-empty-ic { font-size: 44px; margin-bottom: 12px; }

/* ---------- 桌面骨架：左侧导轨 + 右内容 ---------- */
.nb-shell {
    position: relative; z-index: 10;
    display: flex; align-items: flex-start; gap: 20px;
    max-width: calc(var(--nb-max) + 190px); margin: 0 auto; padding: 0 24px;
}
.nb-col { flex: 1 1 auto; min-width: 0; }
.nb-shell .nb-main { max-width: none; margin: 0; padding: 0 0 24px; }

.nb-rail {
    position: sticky; top: 88px; flex: 0 0 186px; width: 186px;
    padding: 12px 10px 10px; border-radius: var(--nb-radius);
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border); box-shadow: var(--nb-shadow);
    backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
}
.nb-rail-hd { padding: 0 8px 9px; font-size: 11px; letter-spacing: .18em; color: var(--nb-text-muted); }
.nb-rail-list { display: flex; flex-direction: column; gap: 3px; }
.nb-rl { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 11px;
    font-size: 13px; color: var(--nb-text-secondary); text-align: left;
    transition: background .2s, color .2s, transform .2s; }
.nb-rl:hover { background: var(--nb-glass-hover); color: var(--nb-text-primary); transform: translateX(2px); }
.nb-rl.on { background: var(--nb-glass-hover); color: var(--nb-text-primary); }
.nb-rl-ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--nb-bg-tertiary);
    color: var(--c); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.nb-rl-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-rl-cnt { font-size: 11px; color: var(--nb-text-muted); padding: 1px 7px; border-radius: 7px; background: var(--nb-bg-tertiary); }
.nb-rail-ft { margin-top: 10px; padding: 9px 9px 0; font-size: 11px; color: var(--nb-text-muted);
    border-top: 1px solid var(--nb-border-light); }

/* ---------- 监控卡片 ---------- */
.nb-bc {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px;
    border-radius: var(--nb-radius); background: var(--nb-glass);
    border: 1px solid var(--nb-glass-border); box-shadow: var(--nb-shadow);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    animation: nb-rise .6s ease both;
}
.nb-bc-hd { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.nb-bc-hd b { font-weight: 600; }
.nb-bc-ic { width: 24px; height: 24px; border-radius: 8px; background: var(--nb-bg-tertiary);
    color: var(--nb-primary-light); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.nb-bc-src, .nb-bc-live { margin-left: auto; padding: 2px 8px; border-radius: 7px; font-style: normal;
    font-size: 10px; letter-spacing: .1em; background: var(--nb-bg-tertiary); color: var(--nb-text-muted); }
.nb-bc-src.real { color: rgb(16, 185, 129); }
.nb-bc-src.sim { color: rgb(245, 158, 11); }
.nb-bc-src.fix { color: var(--nb-primary-light); }
.nb-bc-live { color: rgb(239, 68, 68); animation: nb-twinkle 1.8s ease-in-out infinite; }

.nb-eng { display: flex; align-items: flex-start; gap: 16px; }
.nb-eng-l { flex: 1; min-width: 0; }
.nb-eng-num { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.nb-eng-num small { margin-left: 2px; font-size: 14px; font-weight: 500; color: var(--nb-text-muted); }
.nb-eng-lbl { margin-top: 4px; font-size: 11px; letter-spacing: .06em; color: var(--nb-text-muted); }
.nb-wave { display: block; width: 100%; height: 118px; margin-top: 6px; }
.nb-eng-r { display: flex; flex-direction: column; gap: 26px; padding: 4px 0 4px; }
.nb-eng-foot, .nb-pulse-foot, .nb-ident-foot, .nb-net-foot, .nb-hive-foot {
    display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px;
    font-size: 11px; color: var(--nb-text-muted); border-top: 1px solid var(--nb-border-light);
}
.nb-eng-foot b, .nb-pulse-foot b, .nb-net-foot b, .nb-hive-foot b {
    color: var(--nb-text-primary); font-weight: 600; font-variant-numeric: tabular-nums;
}
.nb-pulse-mini { display: flex; justify-content: space-between; gap: 10px; font-size: 11px;
    color: var(--nb-text-muted); letter-spacing: .04em; }
.nb-pulse-mini b { color: var(--nb-text-secondary); font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-ring { position: relative; width: 84px; height: 84px; }
.nb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nb-ring circle { fill: none; stroke-width: 7; }
.nb-ring .bg { stroke: var(--nb-border-light); }
.nb-ring .fg { stroke: var(--nb-primary); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.4, 0, .2, 1); }
.nb-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-ring i { position: absolute; left: 0; right: 0; bottom: -17px; text-align: center; font-style: normal;
    font-size: 10px; letter-spacing: .14em; color: var(--nb-text-muted); }
.nb-pulse { display: flex; justify-content: space-around; gap: 12px; padding: 8px 0 24px; }
.nb-ring.big { width: 104px; height: 104px; }
.nb-ring.big b { font-size: 17px; }

.nb-term { border-radius: 12px; overflow: hidden; background: var(--nb-bg-tertiary);
    border: 1px solid var(--nb-border-light); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.nb-term-bar { display: flex; justify-content: space-between; gap: 10px; padding: 6px 11px;
    font-size: 11px; letter-spacing: .05em; color: var(--nb-text-muted);
    background: var(--nb-bg-secondary); border-bottom: 1px solid var(--nb-border-light); }
.nb-term-bar span { color: rgb(16, 185, 129); }
.nb-term-body { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; max-height: 186px; overflow: auto; }
.nb-term.small .nb-term-body { max-height: 122px; }
.nb-tl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.nb-tl span { flex: 0 0 auto; width: 46px; color: var(--nb-text-muted); }
.nb-tl b { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-tl i { font-style: normal; }
.nb-tl i.ok { color: rgb(16, 185, 129); }
.nb-tl i.no { color: var(--nb-text-muted); opacity: .5; }
.nb-flag.on { color: rgb(16, 185, 129); }
.nb-flag.off { color: rgb(239, 68, 68); }

.nb-rate { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.nb-rate > span:first-child { flex: 0 0 64px; letter-spacing: .1em; color: var(--nb-text-muted); }
.nb-rate-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--nb-bg-tertiary); overflow: hidden; }
.nb-rate-bar i { display: block; width: 0; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--nb-primary), var(--nb-primary-light)); transition: width .5s ease; }
.nb-rate-bar.up i { background: linear-gradient(90deg, var(--nb-accent), var(--nb-accent-light)); }
.nb-rate b { flex: 0 0 82px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.nb-hive-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-hive-tabs button { padding: 4px 12px; border-radius: 9px; font-size: 12px;
    background: var(--nb-bg-tertiary); color: var(--nb-text-muted); }
.nb-hive-tabs button.on { background: var(--nb-primary); color: #fff; }
.nb-hive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 7px; }
.nb-hd { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 9px;
    font-size: 11.5px; color: var(--nb-text-muted); background: var(--nb-bg-tertiary);
    white-space: nowrap; overflow: hidden; }
.nb-hd i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: rgb(239, 68, 68); }
.nb-hd.on { color: var(--nb-text-secondary); }
.nb-hd.on i { background: rgb(16, 185, 129); box-shadow: 0 0 8px rgba(16, 185, 129, .55); }

/* ---------- 今日面板：磁吸轨道画布（边线互相对齐，横竖间距恒定） ---------- */
.nb-canvas { position: relative; z-index: 2; margin-bottom: 30px; }
.nb-canvas > .nb-pl { position: absolute; left: 0; top: 0; box-sizing: border-box; overflow: auto;
    transition: left .32s cubic-bezier(.4, 0, .2, 1), top .32s cubic-bezier(.4, 0, .2, 1),
        transform .28s cubic-bezier(.4, 0, .2, 1), box-shadow .28s; }
.nb-canvas > .nb-pl.nb-pl-on { z-index: 20; cursor: grabbing; transition: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.nb-pl-guide { position: absolute; inset: 0; z-index: 19; pointer-events: none; opacity: 0;
    transition: opacity .15s; }
.nb-pl-guide.on { opacity: 1; }
.nb-pl-guide i { position: absolute; }
.nb-pl-guide i.v { top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--nb-primary-light); }
.nb-pl-guide i.h { left: 0; right: 0; height: 0; border-top: 1px dashed var(--nb-primary-light); }

/* ---------- 单模块居中查看（双击卡片边缘打开，四周透明只留壁纸） ---------- */
.nb-solo { position: fixed; inset: 0; z-index: 72; display: none; }
.nb-solo.on { display: block; }
.nb-solo-mask { position: absolute; inset: 0; background: none; cursor: zoom-out; }
.nb-solo-bar { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: flex; gap: 8px; }
.nb-solo-bar .nb-iobtn { width: 36px; height: 36px; border-radius: 12px; }
.nb-solo-bar .nb-iobtn svg { width: 19px; height: 19px; }
.nb-body.is-solo { overflow: hidden; }
.nb-body.is-solo > :not(.nb-aurora):not(.nb-halo):not(.nb-meteors):not(.nb-spot):not(.nb-wallpaper):not(.nb-toast):not(.nb-solo) {
    visibility: hidden; }
/* 选择器带上 .nb-solo 前缀，压过 .nb-wg / .nb-bc / .nb-tile 自己的 position 与入场动画 */
.nb-solo .nb-solo-card { position: absolute; left: 50%; top: 50%; margin: 0; animation: none;
    transition: none; box-sizing: border-box; overflow: auto;
    height: auto; max-height: calc(88vh / var(--nb-solo-k, 1));
    transform: translate(-50%, -50%) scale(var(--nb-solo-k, 1)); transform-origin: 50% 50%;
    z-index: 2; box-shadow: 0 26px 64px rgba(0, 0, 0, .34); }
.nb-solo .nb-solo-card:hover { transform: translate(-50%, -50%) scale(var(--nb-solo-k, 1)); }
.nb-solo .nb-solo-card .nb-grip { display: none; }
/* 单独打开时把面板里限高的列表放开，尽量把这张卡的内容看全；装不下由卡内滚动兜住 */
.nb-solo .nb-solo-card .nb-term-body,
.nb-solo .nb-solo-card .nb-mus-list ul,
.nb-solo .nb-solo-card .nb-fx-list,
.nb-solo .nb-solo-card .nb-cr-list,
.nb-solo .nb-solo-card .nb-st-list,
.nb-solo .nb-solo-card .nb-hist-list,
.nb-solo .nb-solo-card .nb-rss-list { max-height: none; }
.nb-plhd { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
    margin: 0 0 12px; font-size: 12px; color: var(--nb-text-muted); }
.nb-plhd b { font-size: 14px; font-weight: 600; color: var(--nb-text-primary); }
.nb-plhd i { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-plhd-tip-m { display: none; }
.nb-plhd button { margin-left: auto; flex: 0 0 auto; padding: 5px 11px; border-radius: 10px; font-size: 12px;
    border: 1px solid var(--nb-glass-border); color: var(--nb-text-secondary); transition: color .2s, border-color .2s; }
.nb-plhd button + button { margin-left: 0; }
.nb-plhd button[data-act="pl-save"] { color: var(--nb-primary-light); border-color: var(--nb-primary);
    background: var(--nb-glass); font-weight: 600; }
.nb-plhd button:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-grip { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; cursor: nwse-resize;
    opacity: 0; transition: opacity .2s; }
.nb-grip::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px;
    border-right: 2px solid var(--nb-text-muted); border-bottom: 2px solid var(--nb-text-muted); border-radius: 0 0 3px 0; }
.nb-pl:hover .nb-grip { opacity: 1; }

/* ---------- 文件夹磁贴（手机桌面式九宫格） ---------- */
.nb-tile {
    position: relative; display: flex; flex-direction: column; gap: 9px;
    padding: 12px; border-radius: 18px;
    background: var(--nb-bg-secondary); border: 1px solid var(--nb-glass-border); box-shadow: var(--nb-shadow);
    background-image: linear-gradient(140deg,
        color-mix(in srgb, var(--c, var(--nb-primary)) 16%, transparent),
        color-mix(in srgb, var(--c, var(--nb-primary)) 3%, transparent) 60%);
    border-color: color-mix(in srgb, var(--c, var(--nb-primary)) 22%, transparent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--c, var(--nb-primary)) 10%, transparent);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), box-shadow .28s;
    animation: nb-rise .5s ease both;
}
.nb-tile:hover { transform: translateY(-5px); box-shadow: 0 12px 28px color-mix(in srgb, var(--c, var(--nb-primary)) 26%, transparent); }
.nb-tile-grid { display: grid; gap: 6px; }
.nb-tile-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nb-tile-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nb-tile-c2 .nb-tile-cell:nth-child(n+5) { display: none; }
.nb-tile-c3 .nb-tile-cell:nth-child(n+10) { display: none; }
.nb-tile-gridone { grid-template-columns: minmax(0, 56px); justify-content: center; }
.nb-tile-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
    background: color-mix(in srgb, var(--c, var(--nb-primary)) 13%, var(--nb-bg-primary));
    border: 1px solid color-mix(in srgb, var(--c, var(--nb-primary)) 18%, transparent);
    display: flex; align-items: center; justify-content: center; }
.nb-tile-void { background: color-mix(in srgb, var(--c, var(--nb-primary)) 5%, transparent); border-style: dashed; }
.nb-tile-cell b { font-size: 13px; font-weight: 600; font-style: normal; color: var(--c); }
.nb-tile-cell img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px;
    box-sizing: border-box; object-fit: contain; }
.nb-tile-nm { text-align: center; font-size: 12.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-tile-new { background: transparent; border-style: dashed; color: var(--nb-text-muted); }
.nb-tile-new .nb-tile-cell { background: transparent; border-style: dashed; }
.nb-tile-new .nb-tile-cell b { color: var(--nb-text-muted); font-size: 18px; }
.nb-tile-x { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 7px;
    font-size: 11px; color: var(--nb-text-muted); background: var(--nb-bg-secondary);
    opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.nb-tile:hover .nb-tile-x { opacity: 1; }
.nb-tile-x:hover { color: rgb(248, 113, 113); }

/* ---------- 站点分类总开关（默认隐藏整块） ---------- */
.nb-sitetog { position: relative; z-index: 2; margin-top: 26px; }
.nb-sitetog button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 14px;
    border-radius: 14px; font-size: 13.5px; font-weight: 500; text-align: left;
    color: var(--nb-text-secondary); background: var(--nb-glass); border: 1px solid var(--nb-glass-border);
    transition: color .2s, border-color .2s; }
.nb-sitetog button:hover { color: var(--nb-primary-light); border-color: var(--nb-primary); }
.nb-sitetog-ev { font-style: normal; font-size: 11px; color: var(--nb-text-muted); }
.nb-sites { position: relative; z-index: 2; }

/* ---------- 文件夹打开后的图标墙 ---------- */
.nb-fopen {
    position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(10px); animation: nb-fade .2s ease;
}
.nb-fopen-box {
    display: flex; flex-direction: column; width: min(1020px, 94vw); max-height: 82vh;
    border-radius: 22px; overflow: hidden; background: var(--nb-bg-secondary);
    border: 1px solid var(--nb-glass-border); box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    animation: nb-pop .25s cubic-bezier(.4, 0, .2, 1);
}
.nb-fopen-hd { display: flex; align-items: center; gap: 10px; padding: 15px 18px;
    border-bottom: 1px solid var(--nb-border-light); }
.nb-fopen-ic { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; color: var(--c);
    background: var(--nb-bg-tertiary); display: flex; align-items: center; justify-content: center; }
.nb-fopen-hd b { font-size: 16px; font-weight: 600; }
.nb-fopen-n { font-size: 12px; color: var(--nb-text-muted); }
.nb-fo-btn { margin-left: auto; padding: 6px 13px; border-radius: 11px; font-size: 12.5px;
    border: 1px solid var(--nb-glass-border); color: var(--nb-text-secondary); transition: all .2s; }
.nb-fo-btn + .nb-fo-btn { margin-left: 8px; }
.nb-fo-btn:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-fo-btn.danger { color: rgb(248, 113, 113); border-color: rgba(239, 68, 68, .3); }
.nb-fo-x { margin-left: 4px; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--nb-text-muted); }
.nb-fo-x:hover { background: var(--nb-glass-hover); }
.nb-fwall { flex: 1; overflow: auto; padding: 20px; display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
.nb-wall-i { position: relative; }
.nb-wall { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 15px 10px 12px;
    border-radius: 15px; background: var(--nb-bg-secondary); border: 1px solid var(--nb-border-light);
    transition: transform .2s, box-shadow .2s, border-color .2s; }
.nb-wall:hover { border-color: var(--nb-primary); transform: translateY(-3px); box-shadow: var(--nb-shadow-hover); }
.nb-wall-ic { position: relative; width: 46px; height: 46px; border-radius: 13px; overflow: hidden;
    background: var(--nb-bg-tertiary); display: flex; align-items: center; justify-content: center; }
.nb-wall-ic b { font-size: 18px; font-weight: 600; color: var(--nb-text-muted); }
.nb-wall-ic img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7px;
    box-sizing: border-box; object-fit: contain; }
.nb-wall-nm { max-width: 100%; font-size: 13px; font-weight: 600; text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wall-dm { max-width: 100%; font-size: 11px; color: var(--nb-text-muted); text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wall-x { position: absolute; top: 4px; right: 4px; width: 19px; height: 19px; border-radius: 7px;
    font-size: 10px; color: var(--nb-text-muted); background: var(--nb-bg-secondary);
    border: 1px solid var(--nb-border-light); opacity: 0; transition: opacity .2s; }
.nb-wall-i:hover .nb-wall-x { opacity: 1; }
.nb-wall-x:hover { color: rgb(248, 113, 113); }
.nb-fwall-none { grid-column: 1 / -1; padding: 18px 0; text-align: center; font-size: 13px; color: var(--nb-text-muted); }
.nb-wall-add { border: 1px dashed var(--nb-glass-border); background: transparent; }
.nb-wall-add:hover { border-color: var(--nb-primary); }
.nb-wall-add .nb-wall-ic b { font-size: 20px; color: var(--nb-primary-light); }
.nb-fopen-ft { padding: 11px 18px; font-size: 11.5px; color: var(--nb-text-muted);
    border-top: 1px solid var(--nb-border-light); }
.nb-body.nb-noscroll { overflow: hidden; }

/* ---------- 壁纸背景（访客本机选择，存 localStorage） ---------- */
.nb-wallpaper { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-position: center; background-size: cover; background-repeat: no-repeat; }
.nb-wallpaper::after { content: ''; position: absolute; inset: 0; background: rgba(8, 10, 22, .46); }
.nb-body[data-mode="light"] .nb-wallpaper::after { background: rgba(243, 245, 255, .6); }
.nb-body.has-wallpaper .nb-aurora { opacity: .18; }
.nb-body.has-wallpaper .nb-halo { opacity: .3; }

/* 壁纸夹的缩略图卡 */
.nb-fwall.has-shot { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.nb-wall-i.wp { display: flex; flex-direction: column; gap: 6px; }
.nb-wall-i.wp .nb-wall { align-items: stretch; gap: 6px; padding: 10px; }
.nb-wall-i.wp:hover { transform: none; }
.nb-wall-shot { display: block; width: 100%; height: 104px; border-radius: 11px;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    border: 1px solid var(--nb-border-light); }
.nb-wall-i.wp .nb-wall-nm, .nb-wall-i.wp .nb-wall-dm { text-align: left; }
.nb-wall-bg { padding: 5px 0; border-radius: 10px; font-size: 11.5px; color: var(--nb-text-secondary);
    border: 1px solid var(--nb-glass-border); transition: color .2s, border-color .2s, background .2s; }
.nb-wall-bg:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-wall-bg.on { background: var(--nb-primary); border-color: var(--nb-primary); color: #fff; }

/* ---------- 底部任务条 ---------- */
.nb-ticker {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; gap: 18px; padding: 7px 18px;
    font-size: 11.5px; color: var(--nb-text-secondary);
    background: var(--nb-glass); border-top: 1px solid var(--nb-glass-border);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.nb-tk { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nb-tk i { font-style: normal; font-size: 9.5px; letter-spacing: .16em; color: var(--nb-text-muted); }
.nb-tk b { color: var(--nb-text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-tk-meter { min-width: 128px; }
.nb-tk-bar { position: relative; width: 62px; height: 6px; border-radius: 3px;
    background: var(--nb-bg-tertiary); overflow: hidden; }
.nb-tk-bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--nb-primary), var(--nb-primary-light)); transition: width .6s ease; }
.nb-ticker > .nb-tk:nth-child(3) .nb-tk-bar b { background: linear-gradient(90deg, var(--nb-accent), var(--nb-accent-light)); }
.nb-tk-rate .sep { color: var(--nb-border-light); margin: 0 3px; }
.nb-tk-hint { margin-left: auto; color: var(--nb-text-muted); overflow: hidden; text-overflow: ellipsis; }
.nb-tk-right { gap: 10px; color: var(--nb-text-muted); }
.nb-tk-pow { gap: 6px; color: var(--nb-text-muted); text-decoration: none; }
.nb-tk-pow b { color: var(--nb-text-secondary); }
.nb-tk-pow:hover { color: var(--nb-primary-light); }
.nb-tk-pow:hover b { color: var(--nb-primary-light); }
.nb-body.has-ticker .nb-shell { padding-bottom: 44px; }
.nb-body.has-ticker .nb-dock { bottom: 48px; }

@media (max-width: 1199px) {
    .nb-rail { flex-basis: 62px; width: 62px; padding: 10px 7px; }
    .nb-rl-nm, .nb-rl-cnt, .nb-rail-hd, .nb-rail-ft { display: none; }
    .nb-rl { justify-content: center; padding: 8px 4px; }
}

/* ---------- 工具坞 ---------- */
.nb-dock { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.nb-dock-bar {
    display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 20px;
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border);
    box-shadow: var(--nb-shadow), 0 0 30px var(--nb-glow);
    backdrop-filter: blur(24px) saturate(180%);
}
.nb-dock-bar button, .nb-dock-bar a {
    width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: transform .25s cubic-bezier(.4, 0, .2, 1), background .25s;
}
.nb-dock-bar button:hover, .nb-dock-bar a:hover { background: var(--nb-glass-hover); transform: scale(1.16) translateX(-4px); }
.nb-dock-pop {
    display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 16px;
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border);
    box-shadow: var(--nb-shadow); backdrop-filter: blur(24px);
    max-height: 46vh; overflow: auto;
}
.nb-dock-pop button { padding: 7px 14px; border-radius: 10px; font-size: 13px; text-align: left; white-space: nowrap; }
.nb-dock-pop button:hover { background: var(--nb-glass-hover); }
.nb-dock-pop button.on { background: var(--nb-primary); color: #fff; }
.nb-dock-pop.wide { flex-direction: row; flex-wrap: wrap; max-width: 260px; }
.nb-dock-pop.wide button { flex: 0 0 auto; }

/* ---------- 搜索面板 ---------- */
.nb-pal {
    position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 12vh; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px);
    animation: nb-fade .2s ease;
}
.nb-body[data-mode="light"] .nb-pal { background: rgba(15, 15, 25, .28); }
@keyframes nb-fade { from { opacity: 0; } }
.nb-pal-box {
    width: min(660px, 92vw); border-radius: 20px; overflow: hidden;
    background: var(--nb-bg-secondary); border: 1px solid var(--nb-glass-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    animation: nb-pop .25s cubic-bezier(.4, 0, .2, 1);
}
@keyframes nb-pop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.nb-pal-box input {
    width: 100%; box-sizing: border-box; padding: 18px 20px; border: 0; outline: none;
    background: transparent; font-size: 16px; border-bottom: 1px solid var(--nb-border-light);
}
.nb-pal-list { max-height: 46vh; overflow: auto; padding: 6px; }
.nb-pal-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.nb-pal-item.on { background: var(--nb-glass-hover); }
.nb-pal-item .pi-t { font-size: 14px; }
.nb-pal-item .pi-d { font-size: 12px; color: var(--nb-text-muted); }
.nb-pal-item .pi-g { margin-left: auto; font-size: 11px; color: var(--nb-text-muted); padding: 2px 8px;
    border-radius: 7px; background: var(--nb-bg-tertiary); }
.nb-pal-item .pi-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--nb-bg-tertiary);
    display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.nb-pal-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 12px;
    color: var(--nb-text-muted); border-top: 1px solid var(--nb-border-light); }
.nb-pal-eng { margin-left: auto; display: flex; gap: 6px; }
.nb-pal-eng button { padding: 3px 9px; border-radius: 8px; font-size: 12px; background: var(--nb-bg-tertiary); }
.nb-pal-eng button:hover { color: var(--nb-primary-light); }
.nb-pal-none { padding: 22px; text-align: center; color: var(--nb-text-muted); font-size: 13px; }

/* ---------- 弹窗 ---------- */
.nb-modal {
    position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); animation: nb-fade .2s ease;
}
.nb-modal-box {
    width: min(520px, 92vw); padding: 24px; border-radius: 20px;
    background: var(--nb-bg-secondary); border: 1px solid var(--nb-glass-border); box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.nb-modal-box h3 { margin: 0 0 18px; font-size: 18px; font-weight: 500; }
.nb-modal-box label { display: block; margin-bottom: 13px; font-size: 13px; color: var(--nb-text-secondary); }
.nb-modal-box input, .nb-modal-box select {
    width: 100%; box-sizing: border-box; margin-top: 5px; padding: 9px 12px; border-radius: 11px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-border-light); outline: none;
}
.nb-modal-box input:focus, .nb-modal-box select:focus { border-color: var(--nb-primary); }
.nb-modal-box label input, .nb-modal-box label select { display: block; }
.nb-mini { margin-top: 6px; padding: 4px 10px; border-radius: 9px; font-size: 12px;
    border: 1px solid var(--nb-border-light); color: var(--nb-text-muted); }
.nb-modal-ops { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.nb-modal-ops input { flex: 1; }
.nb-btn { padding: 9px 20px; border-radius: 12px; font-size: 14px; }
.nb-btn.ghost { color: var(--nb-text-secondary); border: 1px solid var(--nb-glass-border); }
.nb-btn.primary { margin-left: auto; background: linear-gradient(135deg, var(--nb-primary), var(--nb-primary-dark));
    color: #fff; box-shadow: 0 0 22px var(--nb-glow); }
.nb-btn.danger { color: rgb(248, 113, 113); border: 1px solid rgba(239, 68, 68, .3); }
.nb-groups-list { max-height: 42vh; overflow: auto; display: flex; flex-direction: column; gap: 7px; }
.nb-gitem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--nb-bg-tertiary); }
.nb-gitem input { flex: 1; margin: 0; padding: 5px 9px; background: transparent; }
.nb-gitem .nb-gdot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }

.nb-toast {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 90;
    padding: 10px 20px; border-radius: 13px; font-size: 14px;
    background: var(--nb-bg-secondary); border: 1px solid var(--nb-glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    animation: nb-pop .25s ease;
}

/* ---------- 今日面板（小部件） ---------- */
.nb-wg {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 15px 17px;
    min-height: 158px; border-radius: var(--nb-radius); background: var(--nb-glass);
    border: 1px solid var(--nb-glass-border); box-shadow: var(--nb-shadow);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    animation: nb-rise .6s ease both;
}
.nb-wg-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nb-text-secondary); }
.nb-wg-hd span { font-weight: 600; letter-spacing: .04em; }
.nb-wg-hd i { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--nb-text-muted); }
.nb-wg-ft { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--nb-border-light);
    font-size: 10.5px; color: var(--nb-text-muted); }
.nb-wg-in { display: flex; gap: 6px; margin-top: auto; }
.nb-wg-in input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; font-size: 12.5px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-wg-in input:focus { border-color: var(--nb-primary); outline: none; }
.nb-wg-in button { width: 30px; flex: none; border-radius: 10px; color: var(--nb-text-secondary);
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-wg-in button:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-wg ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px;
    max-height: 158px; overflow: auto; }
.nb-wg-none { font-size: 12px; color: var(--nb-text-muted); }
.nb-wg .x { width: 18px; height: 18px; flex: none; border-radius: 6px; font-size: 10px;
    color: var(--nb-text-muted); transition: color .2s, background .2s; }
.nb-wg .x:hover { color: rgb(248, 113, 113); background: var(--nb-glass-hover); }

.nb-led { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 40px; font-weight: 700;
    line-height: 1.05; letter-spacing: .03em; color: var(--nb-primary-light);
    text-shadow: 0 0 22px var(--nb-glow); font-variant-numeric: tabular-nums; }
.nb-led-date { font-size: 11.5px; letter-spacing: .18em; color: var(--nb-text-muted);
    font-variant-numeric: tabular-nums; }

.nb-cal-top { display: grid; grid-template-columns: auto 1fr; gap: 1px 11px; align-items: center; }
.nb-cal-top b { grid-row: span 2; font-size: 36px; line-height: 1; font-weight: 700;
    color: var(--nb-primary-light); font-variant-numeric: tabular-nums; }
.nb-cal-top span { font-size: 11.5px; color: var(--nb-text-muted); }
.nb-cal-top i { font-style: normal; font-size: 11.5px; color: var(--nb-text-secondary); }
.nb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.nb-cal-grid i { font-style: normal; font-size: 10.5px; line-height: 1.95; border-radius: 6px;
    color: var(--nb-text-secondary); font-variant-numeric: tabular-nums; }
.nb-cal-grid i.wd { font-size: 9.5px; color: var(--nb-text-muted); }
.nb-cal-grid i.wd.we { color: var(--nb-primary-light); }
.nb-cal-grid i.pad { visibility: hidden; }
.nb-cal-grid i.mark { color: var(--nb-text-primary); font-weight: 600; }
.nb-cal-grid i.today { background: var(--nb-primary); color: #fff; font-weight: 700; }
.nb-cal-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px;
    border-top: 1px solid var(--nb-border-light); font-size: 10.5px; color: var(--nb-text-muted); }

.nb-wt-main { display: flex; align-items: center; gap: 10px; }
.nb-wt-main b { font-size: 38px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-wt-main span { font-size: 26px; }
.nb-wt-text { font-size: 12px; color: var(--nb-text-secondary); }
.nb-wt-row { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px;
    border-top: 1px solid var(--nb-border-light); font-size: 10.5px; color: var(--nb-text-muted); }
.nb-wt-row b { color: var(--nb-text-secondary); font-weight: 600; }

.nb-todo li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.nb-todo li > button:first-child { width: 15px; height: 15px; flex: none; border-radius: 5px;
    border: 1px solid var(--nb-glass-border); background: var(--nb-bg-tertiary);
    display: flex; align-items: center; justify-content: center; }
.nb-todo li > button:first-child i { width: 7px; height: 7px; border-radius: 2px; background: transparent; }
.nb-todo li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-todo li.done > button:first-child { border-color: var(--nb-primary); }
.nb-todo li.done > button:first-child i { background: var(--nb-primary); }
.nb-todo li.done span { color: var(--nb-text-muted); text-decoration: line-through; }
.nb-note li { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
.nb-note li span { flex: 1; min-width: 0; }
.nb-note li em { font-style: normal; font-size: 10px; color: var(--nb-text-muted); flex: none; }
.nb-cd li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.nb-cd .cd-n { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-cd .cd-d { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--nb-primary-light);
    font-variant-numeric: tabular-nums; }
.nb-cd li em { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); flex: none; }
.nb-cd-add { display: flex; gap: 6px; }
.nb-cd-add input { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 9px; font-size: 12px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-cd-add button { padding: 0 12px; border-radius: 9px; font-size: 12px; color: #fff;
    background: var(--nb-primary); }
.nb-cd-new { align-self: flex-start; margin-top: auto; padding: 6px 11px; border-radius: 10px;
    font-size: 11.5px; color: var(--nb-text-muted); border: 1px dashed var(--nb-glass-border); }
.nb-cd-new:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-wt-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.nb-wt-list .wd-city { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.nb-wt-list .wd-city i { font-style: normal; }
.nb-wt-list .wd-city em, .nb-wt-list .wd-diff { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted);
    padding: 1px 5px; border-radius: 5px; background: var(--nb-bg-tertiary); }
.nb-wt-list b { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nb-bm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; }
.nb-bm-grid span { display: flex; flex-direction: column; }
.nb-bm-grid b { font-size: 22px; line-height: 1.15; font-weight: 700; color: var(--nb-primary-light);
    font-variant-numeric: tabular-nums; }
.nb-bm-grid i { font-style: normal; font-size: 10.5px; color: var(--nb-text-muted); }
.nb-rec li a { display: flex; flex-direction: column; gap: 1px; }
.nb-rec li span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-rec li em { font-style: normal; font-size: 10px; color: var(--nb-text-muted); }
.nb-fs-num { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 42px; font-weight: 700;
    text-align: center; line-height: 1.1; color: var(--nb-primary-light); text-shadow: 0 0 22px var(--nb-glow);
    font-variant-numeric: tabular-nums; }
.nb-fs-ops { display: flex; gap: 8px; margin-top: auto; }
.nb-fs-ops .nb-btn.primary { margin-left: 0; flex: 1; padding: 7px 14px; text-align: center; }
.nb-fs-ops .nb-btn.ghost { padding: 7px 14px; }

/* ---------- 音乐卡 ---------- */
.nb-wg-mus { gap: 8px; }
.nb-mus-vis {
    position: relative; height: 64px; flex: none; overflow: hidden; border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .08));
    border: 1px solid var(--nb-border-light);
}
.nb-body[data-mode="light"] .nb-mus-vis { background: rgba(0, 0, 0, .045); }
.nb-mus-wave { display: block; width: 100%; height: 100%; }
.nb-wg-mus.is-playing .nb-mus-vis { box-shadow: inset 0 0 26px var(--nb-glow); border-color: var(--nb-primary); }
.nb-mus-meta { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.nb-mus-meta b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-mus-meta i { font-style: normal; font-size: 10.5px; color: var(--nb-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-mus-seek { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--nb-text-muted); }
.nb-mus-seek span { flex: none; font-variant-numeric: tabular-nums; }
.nb-mus-seek input, .nb-mus-vol input { flex: 1; min-width: 0; height: 3px; accent-color: var(--nb-primary-light); cursor: pointer; }
.nb-mus-ops { display: flex; align-items: center; gap: 3px; }
.nb-mus-ops > button {
    width: 30px; height: 30px; flex: none; border-radius: 9px; font-size: 13px;
    display: flex; align-items: center; justify-content: center; color: var(--nb-text-secondary);
    transition: background .2s, color .2s;
}
.nb-mus-ops > button:hover { background: var(--nb-glass-hover); color: var(--nb-text-primary); }
.nb-mus-ops > button.on { color: var(--nb-primary-light); background: var(--nb-glass-hover); }
.nb-mus-ops > .nb-mus-play {
    width: 38px; height: 38px; border-radius: 50%; margin: 0 2px; color: #fff; font-size: 13px;
    background: linear-gradient(135deg, var(--nb-primary), var(--nb-primary-dark));
    box-shadow: 0 0 18px var(--nb-glow);
}
.nb-mus-ops > .nb-mus-play:hover { color: #fff; filter: brightness(1.08); }
.nb-mus-ops > button[data-role="mus-mode"] { width: auto; min-width: 38px; padding: 0 7px; font-size: 10.5px; }
.nb-mus-vol { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--nb-text-muted); }
.nb-mus-vol b { flex: none; width: 20px; text-align: right; font-size: 10px; font-weight: 600; color: var(--nb-text-secondary); font-variant-numeric: tabular-nums; }
.nb-mus-list { display: flex; flex-direction: column; gap: 7px; padding-top: 8px; border-top: 1px solid var(--nb-border-light); }
.nb-mus-search { display: flex; gap: 5px; }
.nb-mus-search input {
    flex: 1; min-width: 0; padding: 6px 9px; border-radius: 9px; font-size: 12px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); outline: none;
}
.nb-mus-search input:focus { border-color: var(--nb-primary); }
.nb-mus-search button {
    width: 31px; flex: none; border-radius: 9px; font-size: 13px; color: var(--nb-text-secondary);
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border);
}
.nb-mus-search button:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-mus-list ul { max-height: 228px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.nb-mus-list li { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 9px; cursor: pointer; }
.nb-mus-list li:hover, .nb-mus-list li.on { background: var(--nb-glass-hover); }
.nb-mus-list li.on .mt b { color: var(--nb-primary-light); }
.nb-mus-list .mt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nb-mus-list .mt b { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-mus-list .mt em { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-mus-list .mf { flex: none; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; color: var(--nb-text-muted); }
.nb-mus-list .mf:hover { background: var(--nb-glass-hover); }
.nb-mus-list .mf.on { color: rgb(244, 114, 182); }
.nb-mus-empty { font-size: 11px; color: var(--nb-text-muted); text-align: center; padding: 10px 0; }
.nb-wg-mus.is-scanning .nb-mus-rf { color: var(--nb-primary-light); border-color: var(--nb-primary); animation: nb-hot-spin 1s linear infinite; }
.nb-mus-loc {
    height: 24px; flex: none; padding: 0 8px; border-radius: 8px;
    font-size: 11px; line-height: 1; color: var(--nb-text-muted);
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-border-light);
    transition: color .2s, border-color .2s;
}
.nb-mus-loc:hover, .nb-mus-loc.has { color: var(--nb-primary-light); border-color: var(--nb-primary); }

/* ---------- 网络热榜 ---------- */
.nb-wg-hot { gap: 8px; }
.nb-hot-rf {
    width: 24px; height: 24px; flex: none; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--nb-text-muted);
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-border-light);
    transition: color .2s, border-color .2s, transform .4s;
}
.nb-hot-rf:hover { color: var(--nb-primary-light); border-color: var(--nb-primary); transform: rotate(180deg); }
.nb-wg-hot.is-loading .nb-hot-rf { color: var(--nb-primary-light); animation: nb-hot-spin 1s linear infinite; }
@keyframes nb-hot-spin { to { transform: rotate(360deg); } }
.nb-hot-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.nb-hot-tabs button {
    padding: 4px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.4;
    color: var(--nb-text-muted); border: 1px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}
.nb-hot-tabs button:hover { color: var(--nb-text-primary); background: var(--nb-glass-hover); }
.nb-hot-tabs button.on {
    color: var(--nb-primary-light); background: var(--nb-glass-hover);
    border-color: var(--nb-primary);
}
.nb-hot-list {
    display: flex; flex-direction: column; gap: 1px; list-style: none;
    max-height: 340px; overflow: auto; margin: 0 -4px; padding: 0 4px;
}
.nb-hot-list li a {
    display: flex; align-items: center; gap: 7px; min-width: 0;
    padding: 5px; border-radius: 8px;
}
.nb-hot-list li a:hover { background: var(--nb-glass-hover); }
.nb-hot-list li b {
    flex: none; width: 17px; text-align: center; font-size: 11px; font-weight: 600;
    color: var(--nb-text-muted); font-variant-numeric: tabular-nums;
}
.nb-hot-list li:nth-child(1) b { color: #f43f5e; }
.nb-hot-list li:nth-child(2) b { color: #f97316; }
.nb-hot-list li:nth-child(3) b { color: #eab308; }
.nb-hot-list li span {
    flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45;
    color: var(--nb-text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nb-hot-list li a:hover span { color: var(--nb-text-primary); }
.nb-hot-list li em {
    flex: none; max-width: 82px; font-style: normal; font-size: 10px;
    color: var(--nb-text-muted); font-variant-numeric: tabular-nums;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nb-hot-wait { padding: 18px 0; text-align: center; font-size: 11.5px; color: var(--nb-text-muted); }
.nb-wg-hot.is-loading .nb-hot-list { opacity: .55; }
.nb-hot-ft {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 7px; border-top: 1px solid var(--nb-border-light);
    font-size: 10.5px; color: var(--nb-text-muted);
}
.nb-hot-ft a { flex: none; color: var(--nb-primary-light); }
.nb-hot-ft a:hover { text-decoration: underline; }
.nb-hot-ft span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 前台设置面板（左菜单 + 右内容） ---------- */
.nb-set { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(12px); animation: nb-fade .2s ease; }
.nb-set-box { display: flex; width: min(1040px, 95vw); height: min(660px, 88vh); overflow: hidden;
    border-radius: 22px; background: var(--nb-bg-secondary);
    border: 1px solid var(--nb-glass-border); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: nb-pop .25s cubic-bezier(.4, 0, .2, 1); }
.nb-set-nav { flex: 0 0 208px; display: flex; flex-direction: column; gap: 3px; padding: 16px 12px;
    background: var(--nb-bg-primary); border-right: 1px solid var(--nb-border-light); overflow: auto; }
.nb-set-me { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; padding: 12px 13px;
    border-radius: 14px; background: var(--nb-glass); }
.nb-set-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 15px; color: #fff;
    background: linear-gradient(135deg, var(--nb-primary), var(--nb-accent)); }
.nb-set-me b { font-size: 13px; font-weight: 600; }
.nb-set-me i { font-style: normal; font-size: 10.5px; line-height: 1.45; color: var(--nb-text-muted); }
.nb-set-nav button { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 11px;
    font-size: 13px; color: var(--nb-text-secondary); text-align: left; transition: background .2s, color .2s; }
.nb-set-nav button span { width: 16px; flex: none; text-align: center; font-size: 13px; }
.nb-set-nav button:hover { background: var(--nb-glass-hover); color: var(--nb-text-primary); }
.nb-set-nav button.on { background: var(--nb-glass); color: var(--nb-text-primary); box-shadow: var(--nb-shadow); }
.nb-set-ver { margin-top: auto; padding: 12px 13px 4px; font-size: 10.5px; color: var(--nb-text-muted); }
.nb-set-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nb-set-hd { position: relative; display: flex; align-items: center; padding: 17px 18px;
    border-bottom: 1px solid var(--nb-border-light); }
.nb-set-hd b { position: absolute; left: 50%; transform: translateX(-50%); font-size: 15px; font-weight: 600; }
.nb-set-hd .nb-fo-x { margin-left: auto; }
.nb-set-body { flex: 1; overflow: auto; padding: 20px 24px 28px; }
.nb-sp-t { margin: 4px 0 10px; font-size: 12px; letter-spacing: .06em; color: var(--nb-text-muted); }
.nb-sp-t + .nb-sp-t, .nb-set-body > div + .nb-sp-t { margin-top: 22px; }
.nb-sp-tip { margin-top: 14px; font-size: 11px; line-height: 1.7; color: var(--nb-text-muted); }
.nb-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.nb-seg button { padding: 8px 16px; border-radius: 11px; font-size: 13px; color: var(--nb-text-secondary);
    border: 1px solid var(--nb-glass-border); background: var(--nb-glass); }
.nb-seg button.on { color: #fff; border-color: var(--nb-primary);
    background: linear-gradient(135deg, var(--nb-primary), var(--nb-primary-dark)); }
.nb-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; }
.nb-picks button { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px;
    border: 1px solid var(--nb-glass-border); background: var(--nb-glass); font-size: 12px;
    color: var(--nb-text-secondary); }
.nb-picks button.on { border-color: var(--nb-primary); color: var(--nb-text-primary); }
.nb-dot3 { display: flex; flex: none; }
.nb-dot3 i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--nb-bg-secondary); }
.nb-dot3 i + i { margin-left: -5px; }
.nb-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.nb-sw + .nb-sw { background: var(--nb-glass); }
.nb-sw input { position: absolute; opacity: 0; pointer-events: none; }
.nb-sw i { width: 38px; height: 21px; flex: none; border-radius: 11px; position: relative;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); transition: background .2s; }
.nb-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
    border-radius: 50%; background: var(--nb-text-muted); transition: transform .2s, background .2s; }
.nb-sw input:checked + i { background: var(--nb-primary); border-color: var(--nb-primary); }
.nb-sw input:checked + i::after { transform: translateX(17px); background: #fff; }
.nb-sw i.rd { width: 17px; height: 17px; border-radius: 50%; }
.nb-sw i.rd::after { top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; }
.nb-sw input:checked + i.rd::after { transform: none; }
.nb-swgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.nb-swgrid .nb-sw { background: var(--nb-glass); }
.nb-swgrid .nb-sw + .nb-sw { background: var(--nb-glass); }
.nb-swgrid .nb-sw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) { .nb-swgrid { grid-template-columns: minmax(0, 1fr); } }
.nb-wpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.nb-wpicks button { padding: 0; border-radius: 12px; overflow: hidden;
    border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.nb-wpicks button:hover { transform: translateY(-2px); }
.nb-wpicks button.on { border-color: var(--nb-primary); }
.nb-wpicks span { display: block; height: 68px; background-position: center; background-size: cover;
    background-repeat: no-repeat; background-color: var(--nb-bg-tertiary); }
.nb-wp-def { display: flex !important; align-items: center; justify-content: center;
    font-size: 12px; color: var(--nb-text-muted); }
.nb-wcustom { display: flex; gap: 8px; }
.nb-wcustom input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 11px; font-size: 12.5px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-wcustom .nb-btn.primary { margin-left: 0; }
.nb-wcustom .nb-btn { padding: 8px 14px; font-size: 12.5px; }
.nb-fr { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px; }
.nb-fr + .nb-fr { background: var(--nb-glass); }
.nb-fr span { width: 26px; height: 26px; flex: none; border-radius: 9px; display: flex; align-items: center;
    justify-content: center; font-size: 13px; color: var(--c); background: var(--nb-bg-tertiary); }
.nb-fr b { font-weight: 600; }
.nb-fr em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--nb-text-muted); }
.nb-fr .nb-btn { margin-left: 10px; padding: 5px 11px; font-size: 11.5px; }
.nb-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.nb-stat span { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 13px;
    background: var(--nb-glass); border: 1px solid var(--nb-glass-border); }
.nb-stat b { font-size: 21px; font-weight: 700; color: var(--nb-primary-light); font-variant-numeric: tabular-nums; }
.nb-stat i { font-style: normal; font-size: 11px; color: var(--nb-text-muted); }
.nb-ops { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.nb-ops .nb-btn.primary { margin-left: 0; }
.nb-about p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.85; color: var(--nb-text-secondary); }

/* ---------- 本机隐藏某个组件（设置面板里关掉的） ---------- */
.nb-body.off-clock .nb-clock, .nb-body.off-clock .nb-dateline,
.nb-body.off-weather .nb-weather, .nb-body.off-wisdom .nb-wisdom,
.nb-body.off-search .nb-searchbar, .nb-body.off-panel .nb-wg,
.nb-body.off-bento .nb-bc, .nb-body.off-ticker .nb-ticker,
.nb-body.off-rail .nb-rail, .nb-body.off-dock .nb-dock,
.nb-body.off-meteor .nb-meteors, .nb-body.off-water .nb-water,
.nb-body.off-tile .nb-tile, .nb-body.off-site .nb-sitetog, .nb-body.off-site .nb-sites,
.nb-body.off-brand .nb-logo, .nb-body.off-home .nb-iobtn, .nb-body.off-count .nb-count,
.nb-body.off-aurora .nb-aurora, .nb-body.off-halo .nb-halo, .nb-body.off-spot .nb-spot { display: none !important; }
/* 单张卡片 / 单个分组在自己的开关下隐身 */
.nb-pl.nb-off, #nb-sites .nb-sec.nb-off { display: none !important; }

/* ---------- 小部件通用按钮 / 筛选 / 涨跌 ---------- */
.nb-wg-ic {
    width: 22px; height: 22px; flex: none; border-radius: 7px; font-size: 11px;
    color: var(--nb-text-muted); background: var(--nb-bg-tertiary);
    border: 1px solid var(--nb-border-light);
}
.nb-wg-ic.wide { width: auto; padding: 0 6px; font-size: 10px; }
.nb-wg-ic:hover { color: var(--nb-primary-light); border-color: var(--nb-primary); }
.nb-wg-cal .nb-wg-hd .nb-wg-ic:first-of-type { margin-left: auto; }
.nb-wg-ft { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.nb-wg-ft > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wg-ft > button, .nb-wg-ft > a { flex: none; font-size: 10.5px; color: var(--nb-primary-light); background: none; border: 0; }
.nb-wg-ft > button:hover, .nb-wg-ft > a:hover { text-decoration: underline; }
.nb-wg-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.nb-wg-tabs button {
    padding: 3px 8px; border-radius: 7px; font-size: 10.5px; line-height: 1.5;
    color: var(--nb-text-muted); border: 1px solid transparent;
}
.nb-wg-tabs button:hover { color: var(--nb-text-primary); background: var(--nb-glass-hover); }
.nb-wg-tabs button.on { color: var(--nb-primary-light); border-color: var(--nb-primary); background: var(--nb-glass-hover); }
.nb-wg-tabs button.off { opacity: .45; }
.nb-wg-tabs button em { font-style: normal; opacity: .7; }
.nb-wg.is-loading { box-shadow: inset 0 0 0 1px var(--nb-primary); }
.nb-hot-rf.spin { animation: nb-hot-spin .8s linear infinite; }
.up { color: #f43f5e !important; }
.down { color: #22c55e !important; }

/* ---------- 天气四天预报 ---------- */
.nb-wt-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    padding-top: 8px; border-top: 1px solid var(--nb-border-light); }
.nb-wt-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px;
    border-radius: 8px; background: var(--nb-bg-tertiary); }
.nb-wt-day.on { background: var(--nb-glass-hover); box-shadow: inset 0 0 0 1px var(--nb-glass-border); }
.nb-wt-day i { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); }
.nb-wt-day b { font-size: 16px; line-height: 1.2; }
.nb-wt-day em { font-style: normal; font-size: 10px; color: var(--nb-text-secondary); font-variant-numeric: tabular-nums; }
.nb-wt-day small { font-size: 9px; color: #60a5fa; min-height: 12px; }

/* ---------- 待办 / 便签 / 纪念日 / 专注 ---------- */
.nb-wg-in select { flex: none; padding: 0 4px; border-radius: 9px; font-size: 11px;
    color: var(--nb-text-secondary); background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-todo li em.pri { flex: none; width: 14px; height: 14px; border-radius: 4px; font-style: normal;
    font-size: 10px; line-height: 14px; text-align: center; color: #fff; background: #f43f5e; }
.nb-todo li.imp:not(.done) span { color: #fb7185; }
.nb-todo li.done em.pri { opacity: .5; }
.nb-note li.pin > span { color: var(--nb-primary-light); }
.nb-note li .pin { width: 18px; height: 18px; flex: none; border-radius: 6px; font-size: 11px;
    color: var(--nb-text-muted); }
.nb-note li .pin.on { color: var(--nb-primary-light); }
.nb-note li .pin:hover { background: var(--nb-glass-hover); }
.nb-cd-add { flex-wrap: wrap; }
.nb-cd-year { flex: 1 0 100%; display: flex; align-items: center; gap: 6px; font-size: 10.5px;
    color: var(--nb-text-muted); }
.nb-cd-year input { accent-color: var(--nb-primary); }
.nb-fs-lens { display: flex; gap: 5px; }
.nb-fs-lens button { flex: 1; padding: 5px 0; border-radius: 8px; font-size: 10.5px;
    color: var(--nb-text-muted); border: 1px solid var(--nb-glass-border); background: var(--nb-bg-tertiary); }
.nb-fs-lens button.on { color: var(--nb-primary-light); border-color: var(--nb-primary); }

/* ---------- 标签书签 ---------- */
.nb-tab-bar { display: flex; gap: 4px; flex-wrap: wrap; }
.nb-tab-bar button { padding: 3px 8px; border-radius: 7px; font-size: 10.5px; color: var(--nb-text-muted); }
.nb-tab-bar button:hover { color: var(--nb-text-primary); background: var(--nb-glass-hover); }
.nb-tab-bar button.on { color: var(--nb-primary-light); background: var(--nb-glass-hover); border: 1px solid var(--nb-primary); }
.nb-tab-bar em { font-style: normal; opacity: .6; }
.nb-tab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px;
    max-height: 236px; overflow: auto; }
.nb-tab { position: relative; display: flex; }
.nb-tab > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 6px 7px;
    border-radius: 10px; background: var(--nb-bg-tertiary); border: 1px solid var(--nb-border-light); }
.nb-tab > a:hover { border-color: var(--nb-primary); background: var(--nb-glass-hover); }
.nb-tab > a > i { width: 22px; height: 22px; flex: none; border-radius: 7px; display: flex;
    align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700;
    color: #fff; background: var(--c, var(--nb-primary)); }
.nb-tab > a > b { font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-tab .x, .nb-tab .e { position: absolute; top: -5px; width: 15px; height: 15px; border-radius: 50%;
    font-size: 9px; line-height: 1; display: none; align-items: center; justify-content: center;
    background: var(--nb-bg-secondary); border: 1px solid var(--nb-glass-border); color: var(--nb-text-muted); }
.nb-tab .x { right: -5px; }
.nb-tab .e { left: -5px; }
.nb-tab:hover .x, .nb-tab:hover .e { display: flex; }
.nb-tab .x:hover { color: #f43f5e; border-color: #f43f5e; }
.nb-tab .e:hover { color: var(--nb-primary-light); border-color: var(--nb-primary); }
.nb-tab-add { display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 36px; border-radius: 10px; border: 1px dashed var(--nb-glass-border);
    color: var(--nb-text-muted); }
.nb-tab-add:hover { color: var(--nb-primary-light); border-color: var(--nb-primary); }
.nb-tab-add i { font-style: normal; font-size: 14px; }
.nb-tab-add b { font-size: 10.5px; font-weight: 500; }

/* ---------- 汇率换算 ---------- */
.nb-fx-main { display: flex; align-items: baseline; gap: 7px; }
.nb-fx-main b { font-size: 28px; font-weight: 700; color: var(--nb-primary-light); font-variant-numeric: tabular-nums; }
.nb-fx-main span { font-size: 12px; color: var(--nb-text-muted); }
.nb-fx-controls { display: flex; align-items: center; gap: 5px; }
.nb-fx-controls input { width: 74px; flex: none; padding: 6px 7px; border-radius: 9px; font-size: 12px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-fx-controls select { flex: 1; min-width: 0; padding: 6px 4px; border-radius: 9px; font-size: 11px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); color: var(--nb-text-secondary); }
.nb-fx-controls i { font-style: normal; font-size: 11px; color: var(--nb-text-muted); }
.nb-fx-swap { flex: none; width: 24px; border-radius: 8px; font-size: 12px; color: var(--nb-text-secondary);
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-fx-swap:hover { border-color: var(--nb-primary); color: var(--nb-primary-light); }
.nb-fx-list { max-height: 176px; overflow: auto; }
.nb-fx-list li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 7px; cursor: pointer; }
.nb-fx-list li:hover { background: var(--nb-glass-hover); }
.nb-fx-list .fxc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--nb-text-secondary); }
.nb-fx-list .fxc i { font-style: normal; width: 18px; text-align: center; color: var(--nb-primary-light); }
.nb-fx-list b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.nb-fx-list em { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); width: 26px; text-align: right; }

/* ---------- 加密行情 ---------- */
.nb-cr-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nb-cr-top b { font-size: 26px; font-weight: 700; color: var(--nb-primary-light); font-variant-numeric: tabular-nums; }
.nb-cr-top span { font-size: 11px; font-weight: 600; }
.nb-cr-top em { margin-left: auto; font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); }
.nb-cr-list { max-height: 214px; overflow: auto; }
.nb-cr-list li a { display: flex; align-items: center; gap: 7px; padding: 4px 5px; border-radius: 7px; }
.nb-cr-list li a:hover { background: var(--nb-glass-hover); }
.nb-cr-list .cn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nb-cr-list .cn b { font-size: 12px; }
.nb-cr-list .cn i { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); }
.nb-cr-list .cp { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.nb-cr-list .cp b { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.nb-cr-list .cp i { font-style: normal; font-size: 9px; color: var(--nb-text-muted); }
.nb-cr-list .chg { flex: none; min-width: 48px; text-align: right; font-size: 10.5px; font-weight: 600; }

/* ---------- A 股行情 ---------- */
.nb-st-list { max-height: 252px; overflow: auto; }
.nb-st-list li a { display: flex; align-items: center; gap: 6px; padding: 4px 5px; border-radius: 7px; }
.nb-st-list li a:hover { background: var(--nb-glass-hover); }
.nb-st-list .sn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nb-st-list .sn b { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-st-list .sn i { font-style: normal; font-size: 9px; color: var(--nb-text-muted); }
.nb-st-list .sp { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.nb-st-list .sp b { font-size: 12px; font-variant-numeric: tabular-nums; }
.nb-st-list .sp i { font-style: normal; font-size: 9px; color: var(--nb-text-muted); }
.nb-st-list .chg { flex: none; min-width: 54px; text-align: right; font-size: 11px; font-weight: 600; }

/* ---------- 每日诗词 ---------- */
.nb-poem-text { margin: 2px 0; font-size: 14px; line-height: 1.85; letter-spacing: .06em;
    color: var(--nb-text-primary); white-space: pre-line; }
.nb-poem-meta { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.nb-poem-meta b { font-size: 11.5px; font-weight: 500; color: var(--nb-primary-light); }
.nb-poem-meta i { font-style: normal; font-size: 10px; color: var(--nb-text-muted); }

/* ---------- 历史上的今天 ---------- */
.nb-hist-list { max-height: 248px; overflow: auto; }
.nb-hist-list li a { display: flex; gap: 8px; padding: 4px 5px; border-radius: 7px; }
.nb-hist-list li a:hover { background: var(--nb-glass-hover); }
.nb-hist-list b { flex: none; font-size: 10.5px; font-weight: 600; color: var(--nb-primary-light);
    font-variant-numeric: tabular-nums; padding-top: 1px; }
.nb-hist-list span { display: flex; flex-direction: column; min-width: 0; }
.nb-hist-list strong { font-size: 11.5px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.nb-hist-list i { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 订阅快讯 ---------- */
.nb-rss-list { max-height: 236px; overflow: auto; }
.nb-rss-list li a { display: flex; flex-direction: column; gap: 1px; padding: 4px 5px; border-radius: 7px; }
.nb-rss-list li a:hover { background: var(--nb-glass-hover); }
.nb-rss-list li span { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.nb-rss-list li em { font-style: normal; font-size: 9.5px; color: var(--nb-text-muted); }

/* ---------- Bing 每日壁纸 ---------- */
.nb-wg-wall { gap: 8px; }
.nb-wall-thumb { position: relative; height: 118px; border-radius: 12px; overflow: hidden;
    background: var(--nb-bg-tertiary) center / cover no-repeat;
    border: 1px solid var(--nb-border-light); }
.nb-wall-thumb::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .5)); }
.nb-wall-date { position: absolute; left: 9px; bottom: 7px; z-index: 1; font-size: 10.5px;
    letter-spacing: .08em; color: #fff; font-variant-numeric: tabular-nums; }
.nb-wall-ops { display: flex; gap: 5px; }
.nb-wall-ops button { flex: none; padding: 5px 8px; border-radius: 8px; font-size: 10.5px;
    color: var(--nb-text-secondary); background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-wall-ops button.primary { flex: 1; color: #fff; background: var(--nb-primary); border-color: transparent; }
.nb-wall-ops button:hover { border-color: var(--nb-primary); }

/* ---------- 空气质量 ---------- */
.nb-wg-aqi { --aqi-c: var(--nb-primary); }
.nb-aqi-main { display: flex; align-items: center; gap: 12px; }
.nb-aqi-main > b { font-size: 40px; line-height: 1; font-weight: 700; color: var(--aqi-c);
    font-variant-numeric: tabular-nums; }
.nb-aqi-main div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-aqi-main strong { font-size: 13px; color: var(--aqi-c); }
.nb-aqi-main i { font-style: normal; font-size: 10px; color: var(--nb-text-muted); line-height: 1.4; }
.nb-aqi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px;
    font-size: 10.5px; color: var(--nb-text-muted); }
.nb-aqi-grid b { color: var(--nb-text-secondary); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 网络信息 ---------- */
.nb-ni-ip { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nb-ni-ip > span:first-child { font-size: 20px; line-height: 1; }
.nb-ni-ip b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px;
    letter-spacing: .02em; color: var(--nb-primary-light); }
.nb-ni-ip > span:last-child { font-size: 10.5px; color: var(--nb-text-muted); }
.nb-ni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; font-size: 10px; color: var(--nb-text-muted); }
.nb-ni-grid span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-ni-grid b { display: block; color: var(--nb-text-secondary); font-weight: 500; font-size: 10.5px;
    overflow: hidden; text-overflow: ellipsis; }
.nb-ni-q { display: flex; gap: 5px; }
.nb-ni-q input { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 9px; font-size: 11.5px;
    background: var(--nb-bg-tertiary); border: 1px solid var(--nb-glass-border); }
.nb-ni-q button { width: 36px; flex: none; border-radius: 9px; font-size: 11px; color: #fff; background: var(--nb-primary); }

/* ---------- 移动端：画布退回流式排列，不再拖拽 ---------- */
@media (max-width: 900px) {
    .nb-canvas { display: flex; flex-wrap: wrap; gap: 14px; height: auto !important; }
    .nb-canvas > .nb-pl { position: static !important; left: auto !important; top: auto !important;
        width: auto !important; flex: 1 1 250px; min-width: 0 !important; max-width: 100%; }
    .nb-canvas > .nb-tile { flex: 0 0 calc((100% - 42px) / 4); }
    .nb-tile-c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-tile-c3 .nb-tile-cell:nth-child(n+5) { display: none; }
    .nb-grip { display: none; }
    .nb-plhd button { display: none; }
    .nb-plhd-tip-d { display: none; }
    .nb-plhd-tip-m { display: inline; }
}
/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
    .nb-top { padding: 10px 14px; gap: 8px; }
    .nb-count { display: none; }
    .nb-hero { padding: 46px 16px 30px; }
    .nb-dateline { font-size: 12px; letter-spacing: .12em; }
    .nb-main { padding: 0 14px 150px; }
    .nb-water { font-size: 72px; top: -18px; }
    .nb-sechd h2 { font-size: 17px; }
    .nb-dock { right: 12px; bottom: 12px; }
    .nb-dock-bar { flex-direction: row; padding: 6px; }
    .nb-dock-bar button, .nb-dock-bar a { width: 38px; height: 38px; font-size: 15px; }
    .nb-dock-bar button:hover, .nb-dock-bar a:hover { transform: scale(1.12) translateY(-3px); }
    .nb-dock-pop { flex-direction: row; }
    .nb-body.has-ticker .nb-dock { bottom: 42px; }
    .nb-searchbar { min-width: 88vw; padding: 12px 16px; }
    .nb-shell { flex-direction: column; align-items: stretch; gap: 14px; padding: 0 14px 40px; }
    .nb-rail { position: static; width: auto; min-width: 0; flex: none; padding: 9px; }
    .nb-rail-list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
    .nb-weather { max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .nb-w-sep { display: none; }
    .nb-wg { min-height: 0; }
    .nb-set { padding: 0; }
    .nb-set-box { flex-direction: column; width: 100vw; height: 100vh; border-radius: 0; }
    .nb-set-nav { flex: none; flex-direction: row; gap: 6px; padding: 10px; overflow-x: auto;
        border-right: 0; border-bottom: 1px solid var(--nb-border-light); }
    .nb-set-nav button { flex: 0 0 auto; }
    .nb-set-me, .nb-set-ver { display: none; }
    .nb-set-body { padding: 16px 14px 26px; }
    .nb-set-hd { padding: 14px; }
    .nb-rl { flex: 0 0 auto; flex-direction: column; gap: 4px; min-width: 60px; padding: 7px 6px; }
    .nb-rl-nm { display: block; font-size: 11px; max-width: 60px; }
    .nb-rl-cnt { display: none; }
    .nb-rail-hd, .nb-rail-ft { display: none; }
    .nb-eng { flex-direction: column; align-items: stretch; }
    .nb-eng-r { flex-direction: row; justify-content: space-around; gap: 10px; }
    .nb-ticker { gap: 12px; overflow-x: auto; padding: 6px 12px; }
    .nb-tk-hint { display: none; }
    .nb-fopen { padding: 10px; }
    .nb-fwall { padding: 14px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .nb-fopen-hd { flex-wrap: wrap; }
}
