/* 工具页使用独立作用域，避免影响品牌首页的展示布局。 */
.tool-page{margin:0;background:#f8f9fb;color:var(--ink,#19222e);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}.tool-page *{box-sizing:border-box}.tool-page a{color:inherit;text-decoration:none}.tool-page button,.tool-page textarea,.tool-page select{font:inherit}.tool-page button,.tool-page select{cursor:pointer}.tool-page button{transition:background .18s,color .18s,border-color .18s}.tool-page svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.tool-sprite{position:absolute;width:0!important;height:0!important;overflow:hidden}.tool-header{height:77px;background:#fff;border-bottom:1px solid var(--line,#e7e9ed);display:flex;align-items:center;justify-content:space-between;padding:0 36px;position:relative;z-index:3}.tool-brand{display:flex;align-items:center;gap:11px;font-size:18px;letter-spacing:.65px;font-weight:760}.tool-brand .tool-logo{width:27px;height:27px;fill:var(--blue,#2862ef);stroke:none}.tool-brand-divider{height:20px;width:1px;background:#e5e7eb;margin:0 2px 0 7px}.tool-brand-tag{color:#7c8593;font-size:13px;font-weight:500;letter-spacing:0}.tool-header-right{display:flex;align-items:center;gap:28px}.tool-header-caption{font-size:12px;color:#99a0ac;letter-spacing:.6px}.tool-back{display:flex;gap:8px;align-items:center;font-size:12px;color:#626c7a!important}.tool-back svg{width:15px;height:15px}.tool-shell{display:flex;min-height:calc(100vh - 77px)}.tool-sidebar{width:222px;flex:0 0 222px;background:#fff;border-right:1px solid var(--line,#e7e9ed);padding:31px 18px 22px;display:flex;flex-direction:column}.tool-sidebar-heading{font-weight:650;font-size:14px;padding:0 14px;display:flex;align-items:center;gap:9px}.tool-sidebar-heading span{font-size:9px;letter-spacing:1.6px;color:#a6adb8;font-weight:500}.tool-nav-label{display:block;font-size:10px;color:#99a1ae;letter-spacing:1.25px;margin:31px 14px 10px}.tool-nav{display:flex;flex-direction:column;gap:4px}.tool-nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:7px;color:#657080;font-size:12px;white-space:nowrap}.tool-nav a:hover{background:#f5f7fa;color:#2862ef}.tool-nav a.is-active{background:#edf2ff;color:#2862ef;font-weight:600}.tool-nav a svg{width:17px;height:17px}.tool-active-dot{width:5px;height:5px;border-radius:50%;background:#2862ef;margin-left:auto}.tool-nav .tool-nav-label{margin-top:24px;margin-bottom:5px}.tool-sidebar-note{margin-top:auto;padding:32px 13px 22px;color:#98a0ad}.tool-sidebar-note>svg{color:#9ba8ba;width:24px;height:24px;margin-bottom:10px}.tool-sidebar-note strong{display:block;font-size:11px;color:#758091;font-weight:500}.tool-sidebar-note p{font-size:10px;line-height:1.9;margin:8px 0 11px}.tool-sidebar-note>span{font-size:7px;letter-spacing:1.3px;color:#afb6c0}.tool-sidebar-bottom{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a1a8b4!important;padding:15px 13px 0;border-top:1px solid #f0f1f4}.tool-sidebar-bottom svg{width:12px;height:12px}.tool-main{flex:1;min-width:0;padding:26px 40px 0;max-width:1560px;margin:0 auto}.tool-breadcrumb{display:flex;align-items:center;gap:11px;color:#a0a7b3;font-size:10px;margin-bottom:27px}.tool-breadcrumb svg{width:10px;height:10px;color:#bac0c9}.tool-breadcrumb>span{color:#77818f}.tool-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.tool-title-top{display:flex;align-items:center;gap:14px}.tool-title-top h1{font-size:27px;letter-spacing:-.7px;line-height:1.35;font-weight:650;margin:0}.tool-title-row p{margin:9px 0 0;color:#8b94a3;font-size:12px;letter-spacing:.1px}.tool-local-badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;padding:3px 7px;background:#edf8f2;border:1px solid #dceee4;border-radius:4px;color:#479170}.tool-local-badge>span{width:4px;height:4px;background:#4c9d76;border-radius:50%}.tool-shortcut{display:flex;align-items:center;gap:5px;color:#a6adb8;font-size:9px;white-space:nowrap;margin-top:15px}.tool-shortcut kbd{font:9px inherit;color:#8d96a4;background:#fff;border:1px solid #e6e8ed;border-radius:4px;padding:3px 5px;box-shadow:0 1px 1px #e8ebf0;margin-left:2px}.tool-workbench{background:#fff;border:1px solid #e2e5eb;border-radius:10px;box-shadow:0 4px 18px #24344c03;overflow:hidden}.tool-toolbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;border-bottom:1px solid #e8ebf0;gap:12px}.tool-actions{display:flex;align-items:center;gap:8px}.tool-button{height:32px;background:#fff;border:1px solid #e3e6ed;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 13px;color:#677180;font-size:11px!important}.tool-button:hover{background:#f6f8fc;border-color:#c8d1e2}.tool-button-primary{background:#2862ef;color:#fff;border-color:#2862ef;box-shadow:0 2px 3px #2862ef14}.tool-button-primary:hover{background:#1d52d7;border-color:#1d52d7}.tool-button svg{width:14px;height:14px}.tool-toolbar-divider{height:17px;width:1px;background:#e7eaf0;margin:0 7px}.tool-indent-label{font-size:10px;color:#8f97a5;margin-right:0}.tool-toolbar select{border:0;background:transparent;color:#737d8c;font-size:10px;outline-offset:4px;padding:4px 3px}.tool-text-button{border:0;background:none;font-size:10px!important;padding:7px;color:#8d96a4}.tool-text-button:hover{color:#2862ef}.tool-editor-grid{display:grid;grid-template-columns:1fr 1fr}.tool-editor-pane{min-width:0}.tool-input-pane{border-right:1px solid #e8ebf0}.tool-pane-heading{height:45px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f1f4;background:#fcfcfd}.tool-pane-heading>div{display:flex;align-items:center;gap:7px}.tool-pane-heading strong{font-size:10px;font-weight:550;color:#717c8b}.tool-pane-label{color:#b0b7c2;font-size:8px;letter-spacing:1px;margin-left:2px}.tool-pane-dot{width:5px;height:5px;border-radius:50%;background:#a7b0be}.tool-pane-dot-blue{background:#749cf6}.tool-pane-meta{font-size:9px;color:#a6aebb;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.tool-output-actions{gap:13px!important}.tool-output-actions button{border:0;background:none;color:#929ca9;display:flex;align-items:center;gap:4px;padding:4px 0;font-size:9px!important}.tool-output-actions button:hover{color:#2862ef}.tool-output-actions button svg{width:13px;height:13px}.tool-editor-body{height:410px;display:flex;position:relative;overflow:hidden;background:#fff;padding:20px 0}.tool-line-numbers{margin:0;padding:0 12px 0 15px;width:46px;flex:0 0 46px;color:#c1c7d0;text-align:right;line-height:24px;font-size:12px;white-space:pre;font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",monospace;user-select:none;overflow:hidden}.tool-page #json-input{margin:0;border:0;outline:0;resize:none;padding:0 18px 0 3px;min-width:0;width:100%;height:100%;background:transparent;color:#68778b;font-size:12px;line-height:24px;letter-spacing:0;font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",monospace;tab-size:2;white-space:pre;overflow:auto}.tool-page #json-input::placeholder{color:#b0b7c1}.tool-code{margin:0;overflow:auto;min-width:0;padding:0 20px 0 3px;flex:1;font-size:12px;color:#7b8594;line-height:24px;white-space:pre;font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",monospace;outline-offset:-2px;tab-size:2}.tool-code .json-key{color:#b66154}.tool-code .json-string{color:#4b8c75}.tool-code .json-number{color:#b48243}.tool-code .json-literal{color:#8474ae}.tool-statusbar{height:35px;border-top:1px solid #eef0f4;background:#fdfdfe;display:flex;align-items:center;justify-content:space-between;padding:0 19px;color:#a1a9b6;font-size:8px}.tool-status-message{display:flex;align-items:center;gap:5px;color:#78a28c}.tool-status-message svg{width:11px;height:11px}.tool-status-message.is-error{color:#d5726f}.tool-status-separator{margin:0 8px;color:#d5d9e0}.tool-under-editor{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 2px 0;font-size:9px;color:#a4acb8}.tool-under-editor>span,.tool-under-editor>a{display:flex;align-items:center;gap:6px}.tool-under-editor svg{width:12px;height:12px}.tool-under-editor>a{color:#8a9ab9}.tool-under-editor>a svg{width:11px;height:11px}.tool-under-editor>a:hover{color:#2862ef}.tool-tips{display:flex;align-items:flex-start;gap:12px;margin-top:30px;padding:21px 22px;border:1px solid #e7eaf0;border-radius:8px;background:#f7f8fb;position:relative;overflow:hidden}.tool-tips-icon{width:27px;height:27px;border-radius:7px;background:#edf1f8;display:flex;align-items:center;justify-content:center;color:#9ba9bd;flex-shrink:0}.tool-tips-icon svg{width:14px;height:14px}.tool-tips h2{margin:1px 0 6px;font-size:11px;color:#7b8798;font-weight:550}.tool-tips p{font-size:10px;color:#9aa3b1;line-height:1.8;margin:0;max-width:760px;padding-right:30px}.tool-tips-mark{position:absolute;right:24px;top:17px;font:37px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-3px;color:#e3e8f0;user-select:none}.tool-main-footer{display:flex;align-items:center;justify-content:space-between;margin:30px 0 22px;color:#b0b6c0;font-size:9px}.tool-main-footer a{color:#8d98a8;margin-left:3px;font-weight:550;font-size:8px;letter-spacing:.2px}.tool-toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:11px 18px;background:#223047;color:#fff;border-radius:7px;font-size:12px;box-shadow:0 6px 26px #1f2b4130;z-index:10}.tool-toast[hidden]{display:none}.tool-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tool-page :focus-visible{outline:2px solid #719afb;outline-offset:3px}.tool-page textarea:focus-visible{outline:none!important}.tool-input-pane:focus-within .tool-pane-heading{background:#f6f8ff}
/* 高频操作使用更易读的字号和对比度，代码区域优先保证长时间阅读体验。 */
.tool-nav a{font-size:13px}.tool-title-row p{font-size:13px;color:#778291}.tool-button{font-size:12px!important}.tool-text-button{font-size:11px!important;color:#798391}.tool-pane-heading strong{font-size:11px;color:#667487}.tool-code,.tool-page #json-input{font-size:14px;color:#586b82}.tool-line-numbers{font-size:12px;color:#a6afbc}.tool-code .json-key{color:#9a5149}.tool-code .json-string{color:#337b63}.tool-code .json-literal{color:#7960a8}.tool-statusbar{font-size:10px}.tool-under-editor{font-size:10px;color:#8390a0}.tool-tips h2{font-size:12px}.tool-tips p{font-size:11px;color:#8490a0}
/* 视窗变窄后释放侧栏空间，并将双栏编辑器自然改为上下排列。 */
@media(min-width:1600px){.tool-main{padding-top:38px;padding-left:54px;padding-right:54px}.tool-editor-body{height:480px}.tool-title-row{margin-bottom:30px}.tool-tips{margin-top:35px}}
@media(max-width:1180px){.tool-sidebar{width:194px;flex-basis:194px;padding-left:12px;padding-right:12px}.tool-main{padding-left:27px;padding-right:27px}.tool-header{padding:0 27px}.tool-shortcut{display:none}.tool-toolbar{padding:0 13px}.tool-actions{gap:5px}.tool-button{padding:0 11px}.tool-under-editor{align-items:flex-start;flex-direction:column;gap:8px}}
@media(max-width:900px){.tool-header{height:68px;padding:0 22px}.tool-header-caption{display:none}.tool-shell{display:block;min-height:calc(100vh - 68px)}.tool-sidebar{width:100%;padding:11px 20px;border-right:0;border-bottom:1px solid #e7e9ed;display:block}.tool-sidebar-heading,.tool-sidebar>.tool-nav-label,.tool-nav .tool-nav-label,.tool-sidebar-note,.tool-sidebar-bottom{display:none}.tool-nav{flex-direction:row;gap:8px}.tool-nav a{padding:9px 13px;font-size:11px}.tool-active-dot{display:none}.tool-main{padding:22px 26px 0;max-width:none}.tool-breadcrumb{margin-bottom:20px}.tool-title-row{margin-bottom:22px}.tool-editor-body{height:375px}.tool-under-editor{flex-direction:row;align-items:center}.tool-title-top h1{font-size:25px}}
@media(max-width:640px){.tool-header{padding:0 18px;height:64px}.tool-brand{font-size:16px;gap:8px}.tool-brand .tool-logo{width:24px;height:24px}.tool-brand-divider{margin-left:4px}.tool-back{font-size:10px;gap:4px}.tool-sidebar{padding:10px 12px}.tool-nav{gap:2px;justify-content:space-between}.tool-nav a{font-size:10px;gap:6px;padding:9px 10px}.tool-nav a svg{width:14px;height:14px}.tool-main{padding:21px 17px 0}.tool-title-top h1{font-size:24px}.tool-title-top{gap:10px}.tool-title-row p{font-size:10px;line-height:1.8;max-width:260px}.tool-breadcrumb{font-size:9px;margin-bottom:18px}.tool-toolbar{height:auto;min-height:92px;padding:13px 12px 8px;flex-wrap:wrap;gap:6px}.tool-actions{gap:5px}.tool-button{font-size:10px!important;padding:0 10px;height:30px}.tool-toolbar-divider{margin:0 3px}.tool-indent-label{font-size:9px}.tool-toolbar select{font-size:9px}.tool-secondary-actions{margin-left:auto;gap:10px}.tool-text-button{font-size:9px!important;padding:4px}.tool-editor-grid{grid-template-columns:1fr}.tool-input-pane{border-right:0;border-bottom:1px solid #e8ebf0}.tool-editor-body{height:285px;padding-top:15px;padding-bottom:15px}.tool-pane-heading{height:40px;padding:0 14px}.tool-statusbar{padding:0 13px;font-size:7px}.tool-under-editor{flex-direction:column;align-items:flex-start;font-size:8px;gap:9px;padding-top:13px}.tool-tips{margin-top:23px;padding:17px 14px;gap:10px}.tool-tips p{font-size:9px;padding-right:9px}.tool-tips-mark{display:none}.tool-tips h2{font-size:10px}.tool-main-footer{font-size:8px;margin-top:24px;gap:12px}.tool-main-footer a{font-size:7px}.tool-pane-heading strong{font-size:10px}.tool-pane-label{font-size:7px}.tool-local-badge{font-size:8px}.tool-code,.tool-page #json-input{font-size:13px;line-height:22px}.tool-line-numbers{font-size:10px;line-height:22px;width:39px;flex-basis:39px;padding-left:11px;padding-right:9px}}
/* 文本转换使用次级工具栏，不抢占格式化主操作，连续转换的来源在右侧说明。 */
.tool-transform-toolbar{display:flex;align-items:center;gap:14px;min-height:47px;padding:9px 19px;border-bottom:1px solid #e8ebf0;background:#fcfdff;flex-wrap:wrap}.tool-transform-label{font-size:10px;color:#8b95a4;white-space:nowrap}.tool-transform-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}.tool-transform-button{border:1px solid transparent;background:transparent;border-radius:4px;padding:5px 8px;color:#748195;font-size:11px!important;line-height:1.4;white-space:nowrap}.tool-transform-button:hover{color:#2862ef;background:#edf2ff;border-color:#e4ebff}.tool-transform-button:active{background:#e4ecff}.tool-transform-button span{color:#a0abba;margin:0 3px}.tool-transform-divider{height:14px;width:1px;background:#e2e7ef;margin:0 4px}.tool-transform-hint{margin-left:auto;font-size:9px;color:#a0a9b7;line-height:1.6}
/* 折叠控制放在结果标题行，空间不足时整组换行，避免挤压代码或撑宽页面。 */
.tool-result-heading{height:auto;min-height:45px;flex-wrap:wrap;gap:7px;padding-top:7px;padding-bottom:7px}.tool-result-heading .tool-output-actions{gap:7px!important;min-width:0;max-width:100%;margin-left:auto}.tool-result-heading .tool-output-actions button{min-width:20px;height:24px;justify-content:center;flex-shrink:0;padding:3px 2px}.tool-result-heading .tool-output-actions button svg{width:14px;height:14px}.tool-result-heading .tool-output-actions button:disabled{opacity:.35;cursor:default}.tool-result-heading select{min-width:0;max-width:87px;height:25px;font-size:10px;color:#7b8798;background:transparent;border:1px solid #e8ebf1;border-radius:4px;padding:2px 3px;cursor:pointer}.tool-output-divider{height:13px;width:1px;background:#e5e9f0;margin:0 1px}
/* 行号、折叠箭头与代码严格共享行高；收起只改变视图，不改写完整结果。 */
.tool-output-gutter{width:64px;flex-basis:64px;padding:0 7px 0 8px;white-space:normal}.tool-gutter-line{display:flex;align-items:center;justify-content:flex-end;gap:3px;height:24px;line-height:24px}.tool-gutter-line>span{min-width:19px}.tool-fold-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;width:17px;height:22px;flex:0 0 17px;border:0;border-radius:3px;background:transparent;padding:0;color:#9aa8bb;cursor:pointer}.tool-fold-toggle:before{content:"";display:block;width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:5px solid currentColor;transform:rotate(90deg);transition:transform .12s}.tool-fold-toggle.is-collapsed:before,.tool-fold-toggle[aria-expanded="false"]:before,.tool-gutter-line.is-collapsed .tool-fold-toggle:before{transform:rotate(0)}.tool-fold-toggle:hover{background:#edf2ff;color:#2862ef}.tool-fold-toggle:focus-visible{outline-offset:0}.tool-output-line{height:24px;line-height:24px;min-width:max-content;white-space:pre}.tool-output-line.is-collapsed{color:#8c9aaf}.tool-fold-summary{display:inline-block;padding:0 5px;margin-left:8px;border-radius:3px;color:#7c93b2;background:#f0f4fa;font-size:10px;line-height:18px;vertical-align:1px;user-select:none}
/* 中等宽度与手机上保留所有操作，说明与按钮自然换行，不出现页面横向溢出。 */
@media(max-width:1180px){.tool-transform-toolbar{padding-left:13px;padding-right:13px;gap:7px 10px}.tool-transform-hint{margin-left:0;width:100%;padding-left:53px}}
@media(max-width:640px){.tool-transform-toolbar{padding:9px 12px;gap:5px 8px}.tool-transform-label{width:100%;font-size:9px}.tool-transform-actions{gap:3px 2px;width:100%}.tool-transform-button{padding:5px 5px;font-size:10px!important}.tool-transform-button span{margin:0 1px}.tool-transform-divider{margin:0 2px}.tool-transform-hint{font-size:8px;padding-left:0}.tool-result-heading{min-height:42px;padding-top:7px;padding-bottom:7px;gap:4px}.tool-result-heading .tool-pane-label{display:none}.tool-result-heading .tool-output-actions{gap:5px!important}.tool-result-heading select{height:24px;font-size:9px;max-width:80px}.tool-output-gutter{width:58px;flex-basis:58px;padding-left:6px;padding-right:6px}.tool-gutter-line,.tool-output-line{height:22px;line-height:22px}.tool-gutter-line>span{min-width:16px}.tool-fold-toggle{width:17px;height:22px}.tool-fold-summary{font-size:9px;line-height:17px;margin-left:6px}}
@media(prefers-reduced-motion:reduce){.tool-fold-toggle:before{transition:none}}
