/* 仅展示页布局；以下组件覆盖均在 README 中列明来源。 */
html,body{height:auto;min-height:100%;overflow:auto}*{scrollbar-width:none}*::-webkit-scrollbar{display:none;width:0} [hidden]{display:none!important}
.demo{display:block;width:min(1040px,100%);padding:32px 24px;margin:auto;height:auto;overflow:visible}.demo h1{font-size:20px;margin:0 0 8px}.demo h2{font-size:16px;margin:0 0 20px}.demo section{display:block;padding:24px;background:#fff;border:1px solid #dce4ed;border-radius:6px;margin-top:20px;overflow:visible}.demo p{line-height:1.7}.note{font-size:12px;color:#738195}.row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:12px 0}.palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px}.palette span,.palette code{display:block;font-size:12px;line-height:1.8}.color-chip{height:48px;border:1px solid #dce4ed;margin-bottom:8px}.button-sample.dimension-card{position:static;transform:none;width:auto;max-width:none;padding:0;border:0;box-shadow:none}.button-sample .dimension-apply{width:auto;margin:0;padding:0 16px}.button-sample .dimension-multipliers{display:flex;gap:8px}.button-sample .dimension-multipliers button{min-width:64px}.demo .tracing-modal-footer{justify-content:flex-start}.demo .view-turn{position:static;display:flex;transform:none}.demo .tracing-actions{margin:0}.demo .tracing-actions button{height:24px;width:24px}.demo .connection-size-options{width:240px}.connection-size-options button{height:28px}.demo .model-size-dropdown{max-width:260px}.demo h3{margin-top:22px}.checkbox-host{position:static;display:block;height:auto;padding:0;background:none;border:0;box-shadow:none}.checkbox-host .dimension-menu{position:static}.demo .color-picker{margin:0}.demo .swatches{display:flex;flex-wrap:wrap;gap:10px}.tip-host{height:55px;position:relative}.tip-host .tracing-scale-handle{top:0;left:0}.slider-sample{max-width:320px}.slider-sample>span{white-space:nowrap}
/* 图 1：在内部增加聚焦步进区，原输入框尺寸及外观不改。 */
.number-field{display:inline-flex!important;position:relative;gap:0!important;align-items:center}.number-field input{appearance:textfield;-moz-appearance:textfield}.number-field input::-webkit-inner-spin-button,.number-field input::-webkit-outer-spin-button{appearance:none;margin:0}.number-field:focus-within input{border-color:#2688f7;outline:none}.number-field .steppers{display:none;position:absolute;right:1px;top:1px;bottom:1px;width:21px;border-left:1px solid #dce4ed;flex-direction:column}.number-field:focus-within .steppers{display:flex}.number-field .steppers button{height:50%;width:100%;min-width:0;min-height:0;padding:0;gap:0;border:0;border-radius:0;color:#9ba7b4;background:transparent}.number-field .steppers button+button{border-top:1px solid #edf0f4}.number-field .steppers svg{width:10px;height:6px}.number-field:focus-within input{padding-right:23px}.demo .custom-size{width:auto;display:inline-flex;align-items:center;gap:6px}.demo .custom-size input{width:90px}.demo .tracing-color-count{margin:0}.number-field:has(input[aria-label="模型长度"]){width:104px}
/* 图 2 优先于原版尾部全局 range !important；14px 为待确认演示值。 */
.slider-sample input[type=range]{height:16px!important;border:0!important;border-radius:0!important;background:transparent!important}.slider-sample input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,#2688f7 0 var(--opacity-progress),#dce4ec var(--opacity-progress) 100%)}.slider-sample input[type=range]::-webkit-slider-thumb{width:14px!important;height:14px!important;margin-top:-5px;border:1px solid #fff!important;box-shadow:0 0 0 1px #2688f722}.slider-sample input[type=range]::-moz-range-track{height:4px;background:#dce4ec}.slider-sample input[type=range]::-moz-range-progress{height:4px;background:#2688f7}.slider-sample input[type=range]::-moz-range-thumb{width:14px!important;height:14px!important}
/* 文档明确更改顶部及生命周期，其余保持 .app-toast 原值。 */
.app-toast{top:180px;animation:none;transition:opacity 200ms;max-width:min(556px,calc(100vw - 32px));white-space:normal}.app-toast svg{color:var(--status-color)}.app-toast.fading{opacity:0}.toast-spinner{animation:demo-spin 1s linear infinite}@keyframes demo-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.demo{padding:20px 12px}.demo section{padding:18px}.row{gap:12px}}
.demo .view-turn{opacity:1;pointer-events:auto;left:auto;right:auto;top:auto}.demo .dimension-multipliers{margin-top:0}
/* 本轮用户明确覆盖：苹方字体、白底线框、浅色菜单、统一弹窗表头。 */
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font-family:inherit}
body input:not([type=checkbox]):not([type=range]):not([type=color]),body select{height:32px!important;box-sizing:border-box;background:#fff!important;border:1px solid #d5dfe9!important;border-radius:5px!important;padding:0 8px;color:#283441;outline:none!important;box-shadow:none!important;transition:border-color .15s}
body input[data-input-height="28"]{height:28px!important}body input[data-input-height="36"]{height:36px!important}
body input:not([type=checkbox]):not([type=range]):not([type=color]):hover,body input:not([type=checkbox]):not([type=range]):not([type=color]):focus,body select:hover,body select:focus{border-color:#2688f7!important;outline:none!important;box-shadow:none!important}
body .number-field input{padding-right:23px!important}body .custom-size{background:transparent;padding:0}.demo .save-success{min-width:260px}.demo .save-success label{display:flex;align-items:center;gap:10px}.demo .hex-label input{height:28px!important}.number-field:focus-within input{outline:none!important}
.tracing-modal-footer button:not(.primary),.generation-footer button:not(.primary){background:#fff;border:1px solid #dce4ed;color:#536477}.tracing-modal-footer button:not(.primary):hover,.generation-footer button:not(.primary):hover{background:#fff;border-color:#2688f7;color:#2688f7}
header .dimension-menu .dimension-toggle input{border-radius:3px}header .dimension-menu .dimension-toggle input:checked:after{width:4px;height:7px;left:5px;top:2px;border-width:0 1.5px 1.5px 0}
.demo-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.generation-modal .demo-modal-header h2{margin:0;font-size:16px;font-weight:600}.modal-close{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:4px;color:#738195}.modal-close:hover{background:#f4f7fa;color:#283441}
.demo-select{position:relative;width:260px;max-width:100%;margin:12px 0}.select-trigger{display:flex;justify-content:space-between;width:100%;height:32px;padding:0 10px;border:1px solid #d5dfe9;border-radius:5px;background:#fff;color:#283441;font-size:13px}.select-trigger:hover,.select-trigger:focus-visible,.select-trigger[aria-expanded=true]{border-color:#2688f7;outline:none}.select-trigger svg{color:#738195}.demo-select-menu{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:50;padding:8px;background:#fff;border:1px solid #edf0f4;border-radius:12px;box-shadow:0 8px 28px #20334415}.demo-select-menu button{display:flex;justify-content:flex-start;width:100%;height:32px;padding:0 12px;font-size:13px;border-radius:5px;color:#283441;background:#fff}.demo-select-menu button:hover,.demo-select-menu button[aria-selected=true]{background:#edf5ff;color:#2688f7}.demo-icon-toolbar{display:flex;flex-wrap:wrap;gap:8px}.demo-icon-toolbar button{display:flex;flex-direction:column;gap:6px;min-width:64px;padding:8px 10px;border-radius:4px;color:#283441}.demo-icon-toolbar button.selected,.demo-icon-toolbar button:hover{color:#2688f7;background:#edf5ff}.demo-icon-toolbar span{font-size:12px}
body input[data-input-height="28"]:not([type=checkbox]):not([type=range]):not([type=color]){height:28px!important}body input[data-input-height="36"]:not([type=checkbox]):not([type=range]):not([type=color]){height:36px!important}body .hex-label input:not([type=checkbox]):not([type=range]):not([type=color]){height:28px!important}.checkbox-host .dimension-menu .dimension-toggle{justify-content:flex-start;gap:8px;width:max-content}.demo-select .select-trigger{background:#fff}.demo-select .select-trigger:hover{background:#fff}
