@font-face{font-family:system-local;src:local("Microsoft YaHei")}
:root{--paper:#f8f6f1;--ink:#343b34;--muted:#8a8d82;--line:#e5e4da;--green:#4d6150;--warm:#eee9df;--shadow:0 9px 35px #39412a0c;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,a,label{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #77997d;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.app{display:flex;height:100dvh;min-height:580px;overflow:hidden}.sidebar{width:254px;flex-shrink:0;padding:34px 26px 20px;display:flex;flex-direction:column;background:#faf9f5;z-index:3;border-right:1px solid #e8e6de}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:23px;letter-spacing:3px;font-weight:650}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:400;color:var(--muted);margin-top:8px}.brand-icon{display:grid;place-items:center;width:43px;height:43px;background:var(--green);color:white;font-size:32px;line-height:1;border-radius:13px}.intro{margin:47px 0 30px}.eyebrow{font-size:9px;letter-spacing:2px;color:#9d9d8f}.intro h1{font-size:22px;font-weight:500;letter-spacing:1px;margin:17px 0 14px}.intro p{font-size:12px;line-height:2;color:var(--muted);margin:0}.section-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.5px;margin:5px 0 14px}.muted{color:var(--muted)}.rooms{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto}.room-button{display:flex;align-items:center;text-align:left;gap:11px;border-radius:8px;padding:11px 9px;background:transparent;min-height:45px}.room-button .room-index{font-size:9px;color:#a7aa9f;font-variant-numeric:tabular-nums}.room-button strong{font-size:12px;display:block;font-weight:500}.room-button small{font-size:9px;display:none;margin-top:5px;color:#7b8679}.room-button .arrow{margin-left:auto;opacity:0;font-size:15px}.room-button:hover,.room-button.active{background:#e9ede5}.room-button.active small{display:block}.room-button.active .arrow{opacity:1}.side-footer{margin-top:auto;padding-top:20px;font-size:10px;color:#838877;line-height:1.7;letter-spacing:.5px}.color-dot{display:inline-block;width:7px;height:7px;background:#c7b392;border-radius:50%;margin-right:6px}.version{display:block;margin-left:13px;font-size:9px;color:#a2a596}.viewer{position:relative;flex:1;min-width:0;background:var(--warm);overflow:hidden}.canvas-host{position:absolute;inset:0;outline:none;touch-action:none}.canvas-host canvas{display:block;width:100%;height:100%;touch-action:none}.topbar{position:absolute;top:26px;left:30px;right:30px;display:flex;justify-content:space-between;align-items:center;gap:10px;z-index:4;pointer-events:none}.topbar>*{pointer-events:auto}.mode-switch{display:flex;gap:4px;border:1px solid #ffffff80;background:#ffffff9e;border-radius:30px;padding:5px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}.mode{font-size:12px;padding:10px 17px;border-radius:24px;background:none;white-space:nowrap}.mode span{margin-right:4px}.mode.active{background:var(--green);color:#fff}.top-actions{display:flex;gap:8px;align-items:center}.icon-button{width:34px;height:34px;border-radius:50%;font-size:18px;background:#ffffffb8;display:grid;place-items:center}.soft-button{font-size:11px;padding:11px 15px;background:#ffffffb8;border-radius:24px}.soft-button span{padding-left:6px}.scene-label{position:absolute;top:111px;left:37px;pointer-events:none;font-size:12px;letter-spacing:.6px;z-index:1}.scene-label small{display:block;margin:9px 0 0 14px;font-size:10px;letter-spacing:.3px;color:#8d9387}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#799879;margin-right:8px}.map-card{position:absolute;right:30px;top:108px;width:158px;padding:13px 11px 9px;background:#fafaf5aa;border:1px solid #ffffffb3;box-shadow:var(--shadow);backdrop-filter:blur(10px);border-radius:12px;transition:opacity .2s}.map-heading,.map-foot{display:flex;justify-content:space-between;font-size:8px;color:#898e80}.map-heading span:first-child{color:#626d5f}.map-foot{margin-top:-3px}.map-card svg{display:block;width:100%;height:auto;margin-top:6px}.map-room{cursor:pointer;outline:none}.map-room circle{fill:#f6f8ef;stroke:#9ea994;stroke-width:1.2}.map-room text{font-size:9px;fill:#737e6c;pointer-events:none}.map-room:hover circle,.map-room.active circle{fill:#4d6150;stroke:#4d6150}.map-room.active text{fill:#394c39;font-weight:600}.orbit-tools,.walk-tools{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:9px 14px;border:1px solid #ffffff99;background:#ffffffae;backdrop-filter:blur(12px);border-radius:30px;box-shadow:var(--shadow);white-space:nowrap}.toggle{display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer}.toggle input{position:absolute;opacity:0}.toggle-track{display:inline-block;position:relative;width:28px;height:16px;border-radius:9px;background:#b7bcb0}.toggle-track:after{content:"";position:absolute;left:3px;top:3px;width:10px;height:10px;background:white;border-radius:50%;transition:transform .15s}.toggle input:checked+.toggle-track{background:#637b60}.toggle input:checked+.toggle-track:after{transform:translateX(12px)}.divider{width:1px;height:16px;background:#d4d8ce}.plain-button{background:none;padding:5px 3px;font-size:10px}.bottom-bar{position:absolute;bottom:25px;left:30px;right:30px;display:flex;justify-content:space-between;gap:14px;align-items:center;pointer-events:none}.bottom-bar>*{pointer-events:auto}.control-hint{font-size:10px;color:#85907d;display:flex;align-items:center;gap:7px}.key{background:#ffffff83;border:1px solid #ffffff9e;border-radius:4px;padding:5px 6px;font-size:9px;margin-left:7px}.key:first-child{margin-left:0}.primary{display:inline-flex;align-items:center;justify-content:center;gap:24px;padding:14px 20px;font-size:12px;background:var(--green);color:#fff;border-radius:7px;box-shadow:0 6px 20px #30402c16}.primary span{font-size:17px}.height-tag{font-size:10px;color:#86917d;padding-right:8px;border-right:1px solid #d5d8ce}.loading{position:absolute;inset:0;z-index:2;background:#ece8de;display:flex;justify-content:center;align-items:center}.loading>img{width:100%;height:100%;object-fit:cover;opacity:.3;filter:blur(2px)}.loading-card{position:absolute;background:#faf9f0ed;border:1px solid #fff;border-radius:15px;padding:28px 40px;display:flex;flex-direction:column;align-items:center;box-shadow:var(--shadow)}.loading-card strong{font-weight:500;font-size:16px;margin:17px 0 7px}.loading-card p{font-size:11px;color:#8e9485;margin:0 0 14px}.loading-card progress{width:180px;height:4px;accent-color:var(--green)}.loader{width:25px;height:25px;border:2px solid #d1d8c9;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:absolute;bottom:155px;left:50%;transform:translateX(-50%);border-radius:24px;background:#354331e8;color:#fff;font-size:11px;padding:10px 18px;opacity:0;transition:opacity .2s;pointer-events:none;z-index:5;max-width:90%;white-space:nowrap}.toast.show{opacity:1}.crosshair{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;border:1px solid white;background:#53664b;pointer-events:none}.joystick{position:absolute;bottom:100px;left:28px;width:100px;height:100px;border-radius:50%;background:#ffffff65;border:1px solid #ffffffc9;touch-action:none;z-index:5;display:grid;place-items:center}.joystick span{width:42px;height:42px;border-radius:50%;background:#62775bcc;border:1px solid white;pointer-events:none}.joystick small{position:absolute;bottom:-21px;font-size:10px;color:#6f7b65;pointer-events:none}dialog{border:1px solid #eeeade;border-radius:14px;background:#faf9f4;color:var(--ink);padding:24px;max-height:92dvh;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#252d25a8;backdrop-filter:blur(5px)}.gallery{width:min(1040px,94vw)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.dialog-heading h2{font-size:20px;font-weight:500;margin:5px 0}.gallery nav{display:flex;gap:6px;overflow:auto;padding:2px 0 14px}.gallery nav button{background:#eeeede;padding:8px 12px;border-radius:20px;font-size:10px;white-space:nowrap}.gallery nav button.active{background:var(--green);color:white}.gallery figure{margin:0}.gallery figure img{width:100%;height:min(62dvh,650px);object-fit:contain;display:block;background:#ece9df;border-radius:8px}.gallery figcaption{font-size:11px;margin:12px 0;color:#858e7b}.fine{font-size:10px;line-height:1.8;color:#8e9484}.help{width:min(650px,92vw);padding:30px}.help p{font-size:12px;line-height:1.9;color:#7c8774}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0}.help-grid span{font-size:10px;color:#8c967e}.help-grid h3{font-size:16px;font-weight:500}.help .fine{font-size:10px}.walking .scene-label{top:103px}.walking .scene-label small{max-width:220px}
@media(max-height:790px) and (min-width:800px){.sidebar{padding-top:25px}.intro{margin:28px 0 18px}.intro p{display:none}.room-button{padding:9px 8px;min-height:39px}.side-footer{padding-top:8px}.scene-label{top:100px}}
@media(max-width:1050px){.sidebar{width:216px;padding-left:18px;padding-right:18px}.topbar{left:20px;right:20px}.map-card{width:133px;right:20px}.bottom-bar{left:20px;right:20px}.control-hint .desktop{display:none}.primary{gap:14px;padding:13px 15px}.scene-label{left:25px}.intro h1{font-size:20px}}
@media(max-width:760px){.app{display:block;min-height:500px}.sidebar{position:absolute;top:0;left:0;right:0;width:100%;height:62px;padding:0 16px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid #e1e2d9}.brand{font-size:18px;letter-spacing:2px;gap:9px}.brand-icon{width:32px;height:32px;font-size:25px;border-radius:10px}.brand small{font-size:8px;margin-top:3px;letter-spacing:1px}.intro,.section-label,.side-footer{display:none}.rooms{position:fixed;left:0;right:0;top:62px;z-index:10;display:flex;flex-direction:row;gap:4px;padding:9px 12px;background:#faf9f5f2;border-bottom:1px solid #e7e6dd}.room-button{white-space:nowrap;min-height:29px;padding:6px 11px;border-radius:20px;gap:5px}.room-button strong{font-size:10px}.room-button small,.room-button.active small,.room-button .arrow{display:none}.room-index{font-size:8px!important}.viewer{height:calc(100dvh - 108px);top:108px;min-height:390px}.topbar{top:15px;left:12px;right:12px;gap:5px}.mode-switch{padding:3px;gap:2px}.mode{font-size:10px;padding:8px 10px}.mode span{display:none}.top-actions{gap:5px}.icon-button{width:30px;height:30px;font-size:16px}.soft-button{font-size:9px;padding:9px 11px}.scene-label,.walking .scene-label{top:72px;left:16px;font-size:10px}.scene-label small{font-size:8px;max-width:150px;line-height:1.6;margin-top:6px}.map-card{top:78px;right:12px;width:100px;padding:9px 7px;border-radius:8px}.map-heading,.map-foot{font-size:6px}.map-card svg{margin-top:4px}.bottom-bar{left:16px;right:16px;bottom:20px;align-items:end}.control-hint{font-size:8px;gap:4px;flex-wrap:wrap;max-width:150px}.key{font-size:7px;padding:4px;margin-left:0}.primary{font-size:10px;padding:12px;gap:7px}.primary span{font-size:14px}.orbit-tools,.walk-tools{bottom:82px;gap:10px;padding:9px 12px}.walking .bottom-bar{pointer-events:none}.walking .bottom-bar .control-hint{max-width:220px;background:#fff9;padding:9px;border-radius:8px}.walking .walk-tools{left:auto;right:14px;transform:none;bottom:88px;flex-direction:column;gap:7px;border-radius:12px}.walking .height-tag{border:0;padding:0}.joystick{left:20px;bottom:92px;width:88px;height:88px}.joystick span{width:36px;height:36px}.walking .toast{bottom:220px;white-space:normal;text-align:center;width:80%}.help{padding:20px}.help-grid{grid-template-columns:1fr;gap:10px;padding:18px 0}.help-grid h3{margin:8px 0}.gallery{padding:16px}.gallery figure img{height:55dvh}.gallery nav{padding-bottom:10px}.gallery figcaption{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.loader{animation:none}}

/* 房间导航保留横向滑动，隐藏占用窄屏高度的桌面滚动条。 */
.rooms{scrollbar-width:none}.rooms::-webkit-scrollbar{display:none}

/* 房门操作贴近漫游工具，窄屏使用居中浮动按钮，避开摇杆和右侧工具。 */
.nearby-door{position:absolute;bottom:148px;left:50%;transform:translateX(-50%);padding:11px 17px;background:#4d6150ed;color:#fff;border:1px solid #ffffff8c;border-radius:24px;font-size:12px;box-shadow:var(--shadow);white-space:nowrap;z-index:3}
.doors-dialog{width:min(460px,94vw);padding:25px}.door-intro{font-size:12px;color:#7c8774;line-height:1.8;margin:0 0 12px}.door-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-top:1px solid var(--line)}.door-row strong{display:block;font-size:14px;font-weight:500}.door-row small{display:block;margin-top:5px;color:#8a8d82;font-size:10px}.door-switch{min-width:78px;padding:10px 14px;border-radius:22px;background:#e7e8e0;font-size:12px;color:#66705f}.door-switch[aria-checked=true]{background:var(--green);color:white}.door-switch[aria-checked=true]::before{content:'●';font-size:8px;margin-right:7px}.doors-dialog .fine{margin-bottom:0}
.door-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.door-view{background:none;font-size:11px;color:var(--green);padding:10px 3px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.nearby-door{bottom:225px;font-size:11px;max-width:90%}.doors-dialog{padding:20px}.door-row{padding:13px 0}.door-row strong{font-size:13px}.walking .walk-tools{min-width:98px}}
