
    /* ---------- 小工具外壳（标题 / 描述 / 背景 / 间距） ---------- */
    .nex-nsw{
        position:relative;box-sizing:border-box;
        width:100%;padding:28px 0;
        text-align:center;overflow:visible;
        --nsw-text:#e8f0fb;--nsw-muted:rgba(180,198,220,.62);
    }
    .nex-nsw.is-pad-compact{padding:12px 0}
    .nex-nsw.is-pad-normal{padding:28px 0}
    .nex-nsw.is-pad-relaxed{padding:48px 0}
    .nex-nsw.has-bg{background-size:cover;background-position:center;background-repeat:no-repeat}
    .nex-nsw-overlay{
        position:absolute;inset:0;z-index:0;pointer-events:none;
        background:linear-gradient(180deg,rgba(8,14,24,.62),rgba(8,14,24,.78));
    }
    .nex-nsw-inner{position:relative;z-index:1}
    .nex-nsw-head{margin:0 auto 22px;max-width:820px;padding:0 16px}
    .nex-nsw.is-pad-compact .nex-nsw-head{margin-bottom:14px}
    .nex-nsw-title{
        margin:0 0 10px;color:var(--nsw-text);
        font-size:34px;font-weight:800;line-height:1.25;letter-spacing:-.02em;
        text-shadow:0 2px 18px rgba(4,10,20,.5);
    }
    .nex-nsw-desc{
        margin:0;color:var(--nsw-muted);
        font-size:14.5px;line-height:1.7;
        text-shadow:0 1px 10px rgba(4,10,20,.45);
    }
    html[data-bs-theme="light"] .nex-nsw,
    html[data-nex-theme="light"] .nex-nsw{--nsw-text:#16213a;--nsw-muted:rgba(60,84,116,.66)}
    html[data-bs-theme="light"] .nex-nsw-title,
    html[data-bs-theme="light"] .nex-nsw-desc,
    html[data-nex-theme="light"] .nex-nsw-title,
    html[data-nex-theme="light"] .nex-nsw-desc{text-shadow:none}
    html[data-bs-theme="light"] .nex-nsw-overlay,
    html[data-nex-theme="light"] .nex-nsw-overlay{background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.86))}
    @media (max-width:782px){
        .nex-nsw{padding:20px 0}
        .nex-nsw.is-pad-relaxed{padding:32px 0}
        .nex-nsw-title{font-size:24px}
        .nex-nsw-desc{font-size:13.5px}
        .nex-nsw-head{margin-bottom:16px}
    }

    /* ---------- 搜索框 ---------- */
    .nex-search{
        position:relative;box-sizing:border-box;
        width:820px;max-width:calc(100% - 32px);
        margin:0 auto;
        font-family:inherit;
        --ns-line:rgba(100,150,210,.18);
        --ns-line-hi:rgba(100,150,210,.34);
        --ns-accent:#2f7bff;
        --ns-accent-soft:rgba(47,123,255,.55);
        --ns-text:#e8f0fb;
        --ns-muted:rgba(180,198,220,.58);
        --ns-bg:rgba(16,23,35,.76);
        --ns-bg-hi:rgba(18,27,42,.86);
        --ns-panel:rgba(14,20,32,.94);
        --ns-hover:rgba(255,255,255,.055);
    }
    .nex-search *{box-sizing:border-box}

    /* 微弱呼吸光：垫在框体后面，不抢焦点态 */
    .nex-search-glow{
        position:absolute;left:7%;right:7%;top:4px;bottom:4px;z-index:0;
        border-radius:22px;pointer-events:none;
        background:radial-gradient(60% 110% at 50% 50%,rgba(47,123,255,.30),transparent 72%);
        filter:blur(16px);
        opacity:.42;
        animation:nex-search-breathe 5s ease-in-out infinite;
    }
    @keyframes nex-search-breathe{
        0%,100%{opacity:.26}
        50%{opacity:.68}
    }

    .nex-search-box{
        position:relative;z-index:1;
        display:flex;align-items:center;gap:12px;
        height:60px;padding:0 8px 0 18px;
        border:1px solid var(--ns-line);border-radius:16px;
        background:var(--ns-bg);
        -webkit-backdrop-filter:blur(14px) saturate(140%);
        backdrop-filter:blur(14px) saturate(140%);
        box-shadow:0 8px 26px rgba(6,12,24,.28);
        transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
    }
    .nex-search-box::after{
        content:"";position:absolute;left:16%;right:16%;bottom:-1px;height:1px;
        background:linear-gradient(90deg,transparent,var(--ns-accent-soft),transparent);
        opacity:0;transition:opacity .22s ease;pointer-events:none;
    }
    .nex-search-box:hover{background:var(--ns-bg-hi);border-color:var(--ns-line-hi)}
    .nex-search-box:focus-within{
        background:var(--ns-bg-hi);
        border-color:rgba(47,123,255,.52);
        box-shadow:0 8px 26px rgba(6,12,24,.34),0 0 0 1px rgba(47,123,255,.16);
    }
    .nex-search-box:focus-within::after{opacity:1}

    .nex-search-icon{flex:0 0 auto;display:grid;place-items:center;width:20px;height:20px;color:var(--ns-muted);transition:color .2s ease}
    .nex-search-icon svg{width:20px;height:20px}
    .nex-search-box:focus-within .nex-search-icon{color:var(--ns-accent)}

    .nex-search-input{
        flex:1 1 auto;min-width:0;height:100%;
        border:0;outline:none;background:transparent;
        color:var(--ns-text);font:inherit;font-size:15px;line-height:1.4;
        -webkit-appearance:none;appearance:none;
    }
    .nex-search-input::placeholder{color:var(--ns-muted);opacity:1}
    .nex-search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}

    .nex-search-kbd{
        flex:0 0 auto;padding:4px 8px;border-radius:6px;
        border:1px solid var(--ns-line);
        background:rgba(255,255,255,.05);
        color:var(--ns-muted);
        font-family:inherit;font-size:11px;letter-spacing:.04em;line-height:1.4;
        white-space:nowrap;transition:opacity .2s ease;
    }
    .nex-search-box:focus-within .nex-search-kbd{opacity:.45}

    .nex-search-submit{
        flex:0 0 auto;position:relative;
        display:grid;place-items:center;
        width:44px;height:44px;padding:0;
        border:0;border-radius:50%;
        background:linear-gradient(120deg,#0f6fe0,#2f9bff);
        color:#fff;cursor:pointer;
        transition:filter .2s ease,transform .2s ease;
    }
    .nex-search-submit svg{width:19px;height:19px}
    .nex-search-submit:hover{filter:brightness(1.08)}
    .nex-search-submit:active{transform:scale(.96)}
    .nex-search-submit:focus-visible{outline:2px solid var(--ns-accent);outline-offset:2px}
    .nex-search-box.is-loading .nex-search-submit svg{opacity:.35}
    .nex-search-box.is-loading .nex-search-submit::after{
        content:"";position:absolute;width:16px;height:16px;
        border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;
        animation:nex-search-spin .7s linear infinite;
    }
    @keyframes nex-search-spin{to{transform:rotate(360deg)}}

    /* ---------- 热门词 ---------- */
    .nex-search-hot{
        display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;
        margin:13px 2px 0;
        font-size:12.5px;line-height:1.9;
        color:var(--ns-muted);
    }
    .nex-search-hot-label{color:var(--ns-muted)}
    .nex-search-hot-sep{margin:0 6px;opacity:.5}
    .nex-search-hot .nex-search-hot-word{
        padding:0;border:0;background:none;cursor:pointer;
        color:inherit;font:inherit;line-height:inherit;
        transition:color .18s ease;
    }
    .nex-search-hot .nex-search-hot-word:hover{color:var(--ns-accent);text-decoration:none}
    .nex-search-hot .nex-search-hot-word:focus-visible{outline:2px solid var(--ns-accent);outline-offset:2px;border-radius:3px}

    /* ---------- 结果面板 ---------- */
    .nex-search-panel{
        position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:60;
        max-height:min(70vh,520px);overflow-y:auto;
        border:1px solid var(--ns-line);border-radius:16px;
        background:var(--ns-panel);
        -webkit-backdrop-filter:blur(18px) saturate(150%);
        backdrop-filter:blur(18px) saturate(150%);
        box-shadow:0 24px 56px rgba(4,8,16,.55);
        opacity:0;transform:translateY(-4px);
        transition:opacity .18s ease,transform .18s ease;
        overscroll-behavior:contain;text-align:left;
    }
    .nex-search-panel.is-open{opacity:1;transform:translateY(0)}
    .nex-search-panel[hidden]{display:none}

    .nex-search-group+.nex-search-group{border-top:1px solid rgba(100,150,210,.12)}
    .nex-search-group-title{padding:11px 16px 5px;color:var(--ns-muted);font-size:11px;font-weight:600;letter-spacing:.08em}
    .nex-search-item{
        display:flex;align-items:center;gap:12px;
        min-height:56px;padding:7px 16px;
        text-decoration:none;transition:background .15s ease;
    }
    .nex-search-item:hover,.nex-search-item.is-active{background:var(--ns-hover)}
    .nex-search-item:focus-visible{outline:2px solid var(--ns-accent);outline-offset:-2px}
    .nex-search-thumb{flex:0 0 auto;width:48px;height:48px;border-radius:8px;object-fit:cover;background:rgba(255,255,255,.06)}
    .nex-search-body{min-width:0;display:flex;flex-direction:column;gap:2px}
    .nex-search-item-title{
        color:var(--ns-text);font-size:14px;font-weight:600;line-height:1.45;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s ease;
    }
    .nex-search-item:hover .nex-search-item-title,
    .nex-search-item.is-active .nex-search-item-title{color:#7ab6ff}
    .nex-search-item-sub{color:var(--ns-muted);font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .nex-search-more{
        display:block;padding:13px 16px;text-align:center;
        border-top:1px solid rgba(100,150,210,.12);
        color:#7ab6ff;font-size:13px;font-weight:600;text-decoration:none;
        transition:background .15s ease;
    }
    .nex-search-more:hover{background:var(--ns-hover);color:#9ac8ff}
    .nex-search-empty{padding:26px 16px;text-align:center;color:var(--ns-muted);font-size:13px;line-height:1.8}
    .nex-search-empty strong{display:block;color:var(--ns-text);font-size:14px;margin-bottom:4px}

    /* ---------- 浅色主题 ---------- */
    html[data-bs-theme="light"] .nex-search,
    html[data-nex-theme="light"] .nex-search{
        --ns-line:rgba(24,60,110,.14);
        --ns-line-hi:rgba(24,60,110,.26);
        --ns-text:#16213a;
        --ns-muted:rgba(60,84,116,.62);
        --ns-bg:rgba(255,255,255,.78);
        --ns-bg-hi:rgba(255,255,255,.92);
        --ns-panel:rgba(255,255,255,.96);
        --ns-hover:rgba(16,40,80,.045);
    }
    html[data-bs-theme="light"] .nex-search-box,
    html[data-nex-theme="light"] .nex-search-box{box-shadow:0 8px 24px rgba(16,32,64,.10)}
    html[data-bs-theme="light"] .nex-search-glow,
    html[data-nex-theme="light"] .nex-search-glow{opacity:.22}
    html[data-bs-theme="light"] .nex-search-kbd,
    html[data-nex-theme="light"] .nex-search-kbd{background:rgba(16,40,80,.05)}
    html[data-bs-theme="light"] .nex-search-panel,
    html[data-nex-theme="light"] .nex-search-panel{box-shadow:0 24px 56px rgba(16,32,64,.18)}
    html[data-bs-theme="light"] .nex-search-thumb,
    html[data-nex-theme="light"] .nex-search-thumb{background:rgba(16,40,80,.06)}

    /* ---------- 移动端 ---------- */
    @media (max-width:782px){
        .nex-search{max-width:calc(100% - 32px)}
        .nex-search-box{height:56px;padding:0 7px 0 15px;gap:10px;border-radius:14px}
        .nex-search-input{font-size:15px}
        .nex-search-submit{width:42px;height:42px}
        .nex-search-kbd{display:none}
        .nex-search-hot{
            flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;
            -webkit-overflow-scrolling:touch;scrollbar-width:none;
            margin-top:11px;padding:0 2px;
        }
        .nex-search-hot::-webkit-scrollbar{display:none}
        .nex-search-hot-label{flex:0 0 auto}
        .nex-search-hot .nex-search-hot-word{flex:0 0 auto;white-space:nowrap}
        .nex-search-panel{max-height:70vh;top:calc(100% + 8px);border-radius:14px}
        .nex-search-item{min-height:54px;padding:7px 13px;gap:10px}
        .nex-search-thumb{width:44px;height:44px}
        .nex-search-item-title{font-size:13.5px}
    }
    @media (prefers-reduced-motion:reduce){
        .nex-search-box,.nex-search-panel,.nex-search-item,.nex-search-item-title,
        .nex-search-hot .nex-search-hot-word,.nex-search-submit{transition:none}
        .nex-search-glow{animation:none;opacity:.34}
        .nex-search-box.is-loading .nex-search-submit::after{animation-duration:1.4s}
    }
    