:root{--bg-body: #f4f3ee;--bg-surface: rgba(250, 249, 246, .86);--bg-surface-solid: #faf9f6;--bg-surface-hover: #eeeade;--text-primary: #2b2a27;--text-secondary: #737373;--text-tertiary: #9a9489;--border-color: #e5e3d8;--border-active: #c15f3c;--accent-orange: #c15f3c;--accent-orange-hover: #a95134;--shadow-sm: 0 8px 28px rgba(43, 42, 39, .05);--shadow-md: 0 18px 58px rgba(43, 42, 39, .08);--radius-sm: 8px;--radius-md: 12px;--transition: .25s ease-in-out;font-family:"Noto Serif SC",Microsoft YaHei,serif;color:var(--text-primary);background:var(--bg-body);font-synthesis:none;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.theme-dark,.app-shell.theme-dark,.portal-shell.theme-dark{--bg-body: #22211f;--bg-surface: rgba(49, 48, 44, .92);--bg-surface-solid: #31302c;--bg-surface-hover: #3a3833;--text-primary: #eae8e0;--text-secondary: #c9c3b7;--text-tertiary: #9f988c;--border-color: #47443d;--border-active: #d17658;--accent-orange: #d17658;--accent-orange-hover: #bd684d;--shadow-sm: 0 8px 30px rgba(0, 0, 0, .22);--shadow-md: 0 18px 58px rgba(0, 0, 0, .28)}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input{font-family:Microsoft YaHei,system-ui,sans-serif}button{color:inherit}.portal-shell{width:100%;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:auto;background:linear-gradient(rgba(43,42,39,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(43,42,39,.03) 1px,transparent 1px),var(--bg-body);background-size:36px 36px;color:var(--text-primary)}.portal-hero{position:relative;z-index:3;display:flex;align-items:flex-end;justify-content:flex-start;gap:32px;padding:clamp(24px,3vw,42px) clamp(28px,5vw,72px) 18px;border-top:none}.portal-copy{max-width:760px}.portal-copy h1{margin-bottom:12px;font-size:clamp(44px,6vw,78px);line-height:1.02;font-weight:700;letter-spacing:0}.portal-copy p:not(.eyebrow){max-width:560px;color:var(--text-secondary);font-size:14px;line-height:1.8}.portal-board{position:relative;z-index:1;display:grid;align-content:start;gap:clamp(18px,2.4vw,30px);padding:8px clamp(18px,4vw,54px) clamp(32px,5vw,72px);border-top:none}.portal-row{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:clamp(18px,3vw,34px)}.portal-row.row-1,.portal-row.row-3{animation:slideFromLeft .9s cubic-bezier(.2,.9,.2,1) both}.portal-row.row-2{animation:slideFromRight .9s cubic-bezier(.2,.9,.2,1) both;animation-delay:.12s}.portal-card{position:relative;min-height:clamp(150px,18vh,230px);display:grid;align-content:space-between;gap:12px;padding:clamp(18px,2vw,26px);border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background:var(--bg-surface-solid);color:var(--text-primary);font-family:"Noto Serif SC",Georgia,serif;text-align:left;cursor:default;box-shadow:var(--shadow-md);transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease}.portal-card:nth-child(2){margin-top:16px}.portal-card:nth-child(3){margin-top:32px}.portal-card:before{position:absolute;inset:0;z-index:0;background:linear-gradient(135deg,#ffffff47,#fff0 48%),repeating-linear-gradient(90deg,rgba(43,42,39,.035) 0 1px,transparent 1px 18px);content:"";pointer-events:none}.portal-card>*{position:relative;z-index:1}.portal-card span{color:var(--text-tertiary);font-size:11px;font-weight:800;letter-spacing:1.8px}.portal-card strong{max-width:11ch;font-size:clamp(28px,3.4vw,56px);line-height:.9;font-weight:800;letter-spacing:0}.portal-card p{max-width:320px;color:var(--text-secondary);font-size:13px;line-height:1.65}.portal-card em{justify-self:start;padding:6px 10px;border:1px solid currentColor;border-radius:999px;font-size:12px;font-style:normal;font-weight:700}.portal-card.active{cursor:pointer;background:linear-gradient(135deg,rgba(193,95,60,.12),transparent 48%),var(--bg-surface-solid)}.portal-card.active strong{max-width:9ch}.portal-card.active:hover{border-color:var(--accent-orange);box-shadow:0 18px 58px #c15f3c29;transform:translateY(-6px)}.portal-card.placeholder:nth-child(2){background:#f0e6d7}.portal-card.placeholder:nth-child(3){background:#e7e4d8;color:var(--text-primary)}.portal-row.row-2 .portal-card:nth-child(1){background:#dfd7c8;color:var(--text-primary)}.portal-row.row-2 .portal-card:nth-child(1) p,.portal-row.row-2 .portal-card:nth-child(1) span{color:var(--text-secondary)}.portal-row.row-3 .portal-card:nth-child(1){background:#e8ece8}.portal-row.row-3 .portal-card:nth-child(2){background:#ead8cf}.portal-row.row-3 .portal-card:nth-child(3){background:#dcd8cc;color:var(--text-primary)}.portal-row.row-3 .portal-card:nth-child(3) p,.portal-row.row-3 .portal-card:nth-child(3) span{color:var(--text-secondary)}.app-shell{width:100%;height:100%;display:grid;grid-template-columns:292px minmax(0,1fr) 332px;background:var(--bg-body);transition:background var(--transition),color var(--transition)}.toolbox-shell{width:100%;height:100%;display:grid;grid-template-rows:66px minmax(0,1fr);overflow:hidden;background:linear-gradient(rgba(43,42,39,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(43,42,39,.03) 1px,transparent 1px),var(--bg-body);background-size:36px 36px;color:var(--text-primary)}.theme-dark.toolbox-shell{background:linear-gradient(rgba(245,245,245,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(245,245,245,.045) 1px,transparent 1px),var(--bg-body)}.toolbox-topbar{position:relative;z-index:10;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid var(--border-color);background:var(--bg-surface);backdrop-filter:blur(10px)}.toolbox-title{min-width:0;text-align:center}.toolbox-title h1{overflow:hidden;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.toolbox-stage{min-width:0;min-height:0;padding:0;border:none}.toolbox-frame{width:100%;height:100%;display:block;border:0;background:transparent}.sidebar{min-height:0;padding:20px 16px;overflow:auto;background:var(--bg-surface);border-color:var(--border-color);backdrop-filter:blur(10px)}.left-panel{border-right:1px solid var(--border-color)}.right-panel{border-left:1px solid var(--border-color)}.brand-block{display:flex;align-items:center;gap:12px;padding:8px 0 20px}.brand-mark{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--border-active);border-radius:var(--radius-sm);background:var(--accent-orange);color:#fff}.eyebrow{margin:0 0 4px;color:var(--text-secondary);font-size:11px;letter-spacing:2px}h1,h2,p{margin:0}h1{font-size:22px;line-height:1.1;font-weight:600}h2{font-size:18px;font-weight:600}section{padding:16px 0;border-top:1px solid var(--border-color)}.fold-section,.config-panel,.inventory-panel,.model-list,.selection-card{display:grid;gap:10px}.collapse-header,.panel-title{display:flex;align-items:center;gap:8px;color:var(--text-primary);font-size:13px;font-weight:600}.collapse-header{width:100%;justify-content:space-between;padding:0;border:none;background:transparent;cursor:pointer}.collapse-header span{display:flex;align-items:center;gap:8px}.collapse-header small{color:var(--text-tertiary);font-size:11px;font-weight:400}.panel-title{margin-bottom:12px}.reveal,.selection-card{animation:tabReveal .28s cubic-bezier(.22,1,.36,1)}.import-button,.back-button,.theme-toggle,.icon-button,.color-chip,.focal-chip,.model-row,.model-row>button,.model-select input,.numeric-grid input,.dimension-grid input,.action-row button{border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--bg-surface-hover);transition:var(--transition)}.import-button:hover,.back-button:hover,.theme-toggle:hover,.icon-button:hover,.color-chip:hover,.focal-chip:hover,.model-row:hover,.model-row>button:hover,.action-row button:hover{border-color:var(--border-active)}.import-button{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;gap:10px;border:none;background:var(--accent-orange);color:#fffaf4;cursor:pointer;font-size:14px;font-weight:600;letter-spacing:1px}.import-button.secondary{border:1px solid var(--border-color);background:transparent;color:var(--text-primary)}.import-button:hover{background:var(--accent-orange-hover)}.back-button{min-height:38px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;background:transparent;color:var(--text-primary);cursor:pointer;font-family:Microsoft YaHei,system-ui,sans-serif;font-size:13px;font-weight:600;white-space:nowrap}.back-button:hover{background:var(--bg-surface-hover)}.theme-toggle{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 14px;background:var(--bg-surface-solid);color:var(--text-primary);cursor:pointer;font-family:Microsoft YaHei,system-ui,sans-serif;font-size:13px;font-weight:700;white-space:nowrap}.theme-toggle:hover{background:var(--bg-surface-hover)}.theme-toggle[aria-pressed=true]{border-color:var(--accent-orange);background:var(--accent-orange);color:#fffaf4}.theme-toggle.compact{min-height:38px;padding:0 12px}.hidden-file{display:none}.upload-box,.info-box,.empty-selection,.tips-panel p{padding:12px 14px;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--bg-surface-hover);color:var(--text-secondary);font-size:12px;line-height:1.7;box-shadow:none}.upload-box{display:grid;place-items:center;gap:6px;min-height:136px;border-style:dashed;text-align:center}.upload-box svg{color:var(--accent-orange)}.upload-box strong{color:var(--text-primary);font-size:15px;font-weight:500}.empty-text{color:var(--text-secondary);font-size:12px;line-height:1.6}.model-row{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;gap:6px;padding:6px;background:var(--bg-surface)}.model-row.active{border-color:var(--accent-orange);box-shadow:0 0 0 1px var(--accent-orange)}.model-row>button{min-width:0;min-height:34px;display:grid;place-items:center;padding:0 8px;cursor:pointer}.model-row>button:first-child{place-items:center start;text-align:left}.model-row span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-select input{width:100%;min-height:28px;padding:0 8px;color:var(--text-primary);font-size:12px;font-weight:600}.model-select input:focus{border-color:var(--border-active);background:var(--bg-surface-solid);box-shadow:0 0 0 1px var(--border-active);outline:none}.model-row span{color:var(--text-secondary);font-size:11px}.studio-stage{min-width:0;min-height:0;display:grid;grid-template-rows:66px minmax(0,1fr)}.topbar{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--border-color);background:var(--bg-surface);backdrop-filter:blur(10px)}.tool-group{display:flex;align-items:center;gap:8px;flex:0 0 auto}.segmented{gap:2px;padding:2px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--bg-surface-hover)}.icon-button{position:relative;width:38px;height:38px;display:grid;place-items:center;cursor:pointer;color:var(--text-primary);overflow:visible}.icon-button:after{position:absolute;left:50%;top:calc(100% + 12px);z-index:1000;min-width:max-content;max-width:180px;padding:6px 8px;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--text-primary);color:var(--bg-body);box-shadow:var(--shadow-md);content:attr(data-tooltip);font-size:11px;line-height:1.4;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .18s ease,transform .18s ease}.icon-button:before{position:absolute;left:50%;top:calc(100% + 5px);z-index:1001;width:8px;height:8px;background:var(--text-primary);content:"";opacity:0;pointer-events:none;transform:translate(-50%,4px) rotate(45deg);transition:opacity .18s ease,transform .18s ease}.icon-button:hover:after,.icon-button:hover:before{opacity:1;transform:translate(-50%)}.icon-button:hover:before{transform:translate(-50%) rotate(45deg)}.segmented .icon-button{border-color:transparent;background:transparent}.icon-button.active,.color-chip.active,.focal-chip.active{border-color:var(--accent-orange);background:var(--accent-orange);color:#fffaf4;box-shadow:var(--shadow-sm)}.theme-dark .icon-button,.theme-dark .segmented .icon-button{color:var(--text-primary)}.theme-dark .segmented .icon-button:not(.active){background:var(--bg-surface-solid);border-color:var(--border-color)}.theme-dark .segmented .icon-button:not(.active):hover,.theme-dark .icon-button:not(.active):hover{background:var(--bg-surface-hover);border-color:var(--border-active)}.theme-dark .icon-button.active{color:#fffaf4}.theme-dark .sidebar,.theme-dark .topbar{background:var(--bg-surface)}.theme-dark .brand-block h1,.theme-dark .panel-title,.theme-dark .collapse-header,.theme-dark .collapse-header small,.theme-dark .time-control,.theme-dark .time-control span{color:var(--text-primary)}.theme-dark .time-control{background:var(--bg-surface-solid);border-color:var(--border-color)}.theme-dark .model-row span,.theme-dark .empty-text,.theme-dark .selection-card p,.theme-dark .numeric-grid label,.theme-dark .dimension-grid label,.theme-dark .ruler-badge,.theme-dark .hud strong,.theme-dark .eyebrow,.theme-dark .upload-box span,.theme-dark .info-box,.theme-dark .empty-selection,.theme-dark .tips-panel p{color:var(--text-secondary)}.theme-dark .upload-box,.theme-dark .info-box,.theme-dark .empty-selection,.theme-dark .model-row,.theme-dark .hud,.theme-dark .ruler-badge{background:var(--bg-surface-solid);border-color:var(--border-color)}.theme-dark .model-row>button,.theme-dark .color-chip,.theme-dark .focal-chip,.theme-dark .action-row button,.theme-dark .numeric-grid input,.theme-dark .dimension-grid input,.theme-dark .model-select input{background:var(--bg-surface-solid);border-color:var(--border-color);color:var(--text-primary)}.theme-dark .model-select input::selection,.theme-dark .numeric-grid input::selection,.theme-dark .dimension-grid input::selection{background:var(--accent-orange);color:#fff}.theme-dark .model-row>button:hover,.theme-dark .color-chip:hover,.theme-dark .focal-chip:hover,.theme-dark .action-row button:hover{background:var(--bg-surface-hover);border-color:var(--border-active)}.theme-dark .color-chip span,.theme-dark .focal-chip{color:var(--text-primary)}.theme-dark .color-chip:not(.active),.theme-dark .focal-chip:not(.active){opacity:1;box-shadow:inset 0 0 0 1px #ffffff0a}.theme-dark .color-chip:not(.active) span:last-child{color:var(--text-secondary);font-weight:600}.theme-dark .color-chip.active,.theme-dark .focal-chip.active,.theme-dark .icon-button.active{background:var(--accent-orange);border-color:var(--accent-orange);color:#fffaf4}.theme-dark .import-button.secondary{background:transparent;color:var(--text-primary)}.theme-dark .swatch{border-color:#e8eaee73}.theme-dark .time-control input[type=range]::-webkit-slider-runnable-track{border-color:#424955;background:linear-gradient(to right,var(--accent-orange) 0%,var(--accent-orange) calc((var(--slider-value, 14) / 23) * 100%),var(--bg-surface-hover) calc((var(--slider-value, 14) / 23) * 100%),var(--bg-surface-hover) 100%)}.time-control{min-width:300px;max-width:520px;display:grid;grid-template-columns:auto 56px minmax(120px,1fr);align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--bg-surface-hover);color:var(--text-primary)}.time-control span{font-size:13px;font-weight:600}.time-control input{width:100%;height:18px;cursor:pointer;accent-color:var(--accent-orange)}.time-control input[type=range]{appearance:none;background:transparent}.time-control input[type=range]::-webkit-slider-runnable-track{height:6px;border:1px solid var(--border-color);border-radius:999px;background:linear-gradient(to right,var(--accent-orange) 0%,var(--accent-orange) calc((var(--slider-value, 14) / 23) * 100%),var(--bg-surface-solid) calc((var(--slider-value, 14) / 23) * 100%),var(--bg-surface-solid) 100%)}.time-control input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;margin-top:-6px;border:2px solid var(--accent-orange);border-radius:50%;background:var(--accent-orange);box-shadow:var(--shadow-sm)}.time-control input[type=range]::-moz-range-track{height:6px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-surface-solid)}.time-control input[type=range]::-moz-range-progress{height:6px;border-radius:999px;background:var(--accent-orange)}.time-control input[type=range]::-moz-range-thumb{width:14px;height:14px;border:2px solid var(--accent-orange);border-radius:50%;background:var(--accent-orange)}.viewport-wrap{position:relative;min-width:0;min-height:0;overflow:hidden;background:linear-gradient(rgba(17,17,17,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(17,17,17,.045) 1px,transparent 1px),var(--bg-body);background-size:42px 42px}.theme-dark .viewport-wrap{background:linear-gradient(rgba(245,245,245,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(245,245,245,.045) 1px,transparent 1px),var(--bg-body)}.three-mount{width:100%;height:100%}.three-mount canvas{display:block;width:100%;height:100%}.hud,.ruler-badge{position:absolute;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--bg-surface);box-shadow:var(--shadow-sm);backdrop-filter:blur(14px)}.hud{left:18px;bottom:18px;max-width:min(660px,calc(100% - 36px));display:flex;align-items:center;gap:10px;padding:10px 12px}.hud span{padding:4px 8px;border-radius:var(--radius-sm);background:var(--accent-orange);color:#fff;font-size:11px;font-weight:600}.hud strong{overflow:hidden;color:var(--text-primary);font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ruler-badge{right:18px;bottom:18px;padding:8px 10px;color:var(--text-secondary);font-size:12px}.drop-overlay{position:absolute;inset:16px;z-index:5;display:grid;place-content:center;gap:10px;border:2px dashed var(--accent-orange);border-radius:var(--radius-md);background:#ff4f0014;color:var(--accent-orange);text-align:center;transform:scale(1.01)}.selection-card p{color:var(--text-secondary);font-size:12px;line-height:1.7}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-row button{min-height:36px;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;color:var(--text-primary)}.numeric-grid,.dimension-grid{display:grid;gap:8px}.numeric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dimension-grid{grid-template-columns:1fr}.numeric-grid label,.dimension-grid label{display:grid;gap:5px;color:var(--text-secondary);font-size:11px;font-weight:500}.numeric-grid input,.dimension-grid input{width:100%;min-height:34px;padding:0 8px;color:var(--text-primary)}.numeric-grid input,.dimension-grid input,.model-select input{background:var(--bg-surface-solid)}.numeric-grid input:focus,.dimension-grid input:focus{border-color:var(--border-active);background:var(--bg-surface-solid);box-shadow:0 0 0 1px var(--border-active);outline:none}.color-list{display:grid;gap:8px}.three-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.color-chip{min-height:38px;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:10px;padding:0 10px;cursor:pointer;text-align:left;min-width:0}.color-chip span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.focal-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.focal-chip{min-height:38px;padding:0 6px;color:var(--text-primary);cursor:pointer;font-size:12px;font-weight:600}.swatch{width:22px;height:22px;border:1px solid rgba(0,0,0,.18);border-radius:4px}@keyframes tabReveal{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideFromLeft{0%{opacity:0;transform:translate(-18vw)}to{opacity:1;transform:translate(0)}}@keyframes slideFromRight{0%{opacity:0;transform:translate(18vw)}to{opacity:1;transform:translate(0)}}@media(max-width:1180px){.app-shell{grid-template-columns:252px minmax(0,1fr) 292px}.time-control{min-width:230px}}@media(max-width:980px){.portal-shell{overflow:auto}.portal-hero{align-items:flex-start;flex-direction:column}.portal-board{transform:none}.portal-row{grid-template-columns:1fr}.toolbox-topbar{grid-template-columns:auto 1fr}.toolbox-topbar .theme-toggle{justify-self:end;grid-column:2;grid-row:1}.toolbox-title{display:none}}
