/* 本轮本地工具的共用界面；业务逻辑留在 new-tools.js。 */
:root{--nt-bg:#f4f7fb;--nt-card:#fff;--nt-ink:#223047;--nt-muted:#687588;--nt-line:#dce4ee;--nt-brand:#5b5ce2;--nt-soft:#f1f1ff}
*{box-sizing:border-box}body{margin:0;background:var(--nt-bg);color:var(--nt-ink);font:14px/1.55 system-ui,-apple-system,"Microsoft YaHei",sans-serif;padding-top:var(--generator-nav-h,58px)}.nt-shell{max-width:1280px;margin:auto;padding:22px 18px 72px}.nt-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}.nt-head h1{margin:0;font-size:27px;letter-spacing:-.03em}.nt-head p{max-width:720px;color:var(--nt-muted);margin:7px 0 0}.nt-local{border:1px solid #c9defa;background:#edf6ff;color:#2564a8;border-radius:100px;padding:5px 10px;white-space:nowrap;font-size:12px;font-weight:700}.nt-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.nt-card{background:var(--nt-card);border:1px solid var(--nt-line);border-radius:16px;box-shadow:0 8px 26px rgba(24,44,76,.05)}.nt-stage{padding:16px;min-height:500px}.nt-stage h2,.nt-panel h2{font-size:15px;margin:0 0 10px}.nt-panel{padding:16px}.nt-panel+.nt-panel{margin-top:16px}.nt-field{display:block;margin:0 0 12px;color:#526174;font-size:12px;font-weight:700}.nt-field input,.nt-field textarea,.nt-field select{display:block;width:100%;margin-top:5px;padding:9px 10px;border:1px solid #ccd6e2;border-radius:9px;background:#fff;color:var(--nt-ink);font:14px inherit;outline:none}.nt-field textarea{min-height:105px;resize:vertical}.nt-field input:focus,.nt-field textarea:focus,.nt-field select:focus{border-color:#7778ed;box-shadow:0 0 0 3px rgba(91,92,226,.12)}.nt-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.nt-btn{appearance:none;border:1px solid #ccd6e2;background:#fff;color:#3e4c60;border-radius:9px;padding:9px 12px;font:700 13px inherit;cursor:pointer}.nt-btn:hover{border-color:#8586ec}.nt-btn.primary{color:#fff;border-color:#5b5ce2;background:linear-gradient(135deg,#595bd8,#7778eb)}.nt-btn:disabled{opacity:.55;cursor:not-allowed}.nt-drop{min-height:184px;border:1.5px dashed #b8c7dc;border-radius:13px;background:linear-gradient(135deg,#fafcff,#f3f6ff);display:grid;place-items:center;text-align:center;padding:22px;cursor:pointer}.nt-drop strong{display:block;font-size:16px}.nt-drop p{margin:4px 0;color:var(--nt-muted);font-size:12px}.nt-drop input{display:none}.nt-result{margin-top:14px;border:1px solid var(--nt-line);border-radius:12px;overflow:auto;max-height:530px}.nt-empty{color:var(--nt-muted);padding:24px;text-align:center}.nt-list{list-style:none;margin:0;padding:0}.nt-list li{padding:10px 12px;border-bottom:1px solid #edf0f5}.nt-list li:last-child{border-bottom:0}.nt-ok{color:#167047}.nt-warn{color:#ad650f}.nt-bad{color:#c13b4c}.nt-metric{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.nt-metric div{padding:10px;border-radius:10px;background:var(--nt-soft)}.nt-metric span{display:block;font-size:11px;color:var(--nt-muted)}.nt-metric b{font-size:18px}.nt-canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff;border:1px solid var(--nt-line);border-radius:8px}.nt-code-frame{display:block;width:100%;height:460px;border:1px solid var(--nt-line);border-radius:10px;background:#fff}.nt-table{border-collapse:collapse;width:100%;font-size:12px}.nt-table th,.nt-table td{padding:8px;text-align:left;border-bottom:1px solid #edf0f5}.nt-table th{color:#617085;background:#f7f9fc}.nt-pill{display:inline-block;border-radius:99px;padding:2px 7px;font-size:11px;font-weight:700;background:#edf1f7;color:#5d6a7b}.nt-note{padding:10px 11px;border-left:3px solid #7778eb;background:#f6f6ff;color:#535b78;font-size:12px;border-radius:0 8px 8px 0}.nt-seo{max-width:1280px;margin:0 auto 50px;padding:0 18px;color:#516074}.nt-seo h2{font-size:17px;color:#2e3c50}.nt-seo p{font-size:13px}.nt-toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);padding:9px 14px;background:#26354d;color:#fff;border-radius:9px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:9}.nt-toast.show{opacity:1;transform:translate(-50%,0)}
html[data-theme="dark"] body{--nt-bg:#101722;--nt-card:#172230;--nt-ink:#e7edf7;--nt-muted:#b2bdcb;--nt-line:#334357;--nt-soft:#232a48}html[data-theme="dark"] .nt-field input,html[data-theme="dark"] .nt-field textarea,html[data-theme="dark"] .nt-field select,html[data-theme="dark"] .nt-code-frame,html[data-theme="dark"] .nt-canvas{background:#101722;color:#e7edf7;border-color:#405169}html[data-theme="dark"] .nt-drop{background:linear-gradient(135deg,#172230,#111a28);border-color:#536985}html[data-theme="dark"] .nt-table th{background:#1c2939;color:#dce6f2}html[data-theme="dark"] .nt-list li,html[data-theme="dark"] .nt-table th,html[data-theme="dark"] .nt-table td{border-color:#2d3c4f}
.nt-utility{margin-top:14px;padding-top:13px;border-top:1px solid var(--nt-line)}.nt-utility h3{margin:0 0 8px;font-size:13px}.nt-utility .nt-field{margin-bottom:8px}.nt-utility .nt-actions{margin-top:7px}.nt-utility small{display:block;margin-top:7px;color:var(--nt-muted);font-size:11px}
.nt-export-estimate{margin-top:9px;padding:8px 10px;border-radius:8px;background:var(--nt-soft);color:var(--nt-muted);font-size:11px}.nt-export-estimate b{color:var(--nt-ink)}
@media(max-width:800px){.nt-grid{grid-template-columns:1fr}.nt-head{display:block}.nt-local{display:inline-block;margin-top:10px}.nt-shell{padding:14px 11px 64px}.nt-head h1{font-size:23px}}
