:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#293e35;background:#f5f3ec;font-synthesis:none;--green:#304c3e;--muted:#899087;--line:#dedfd5;--paper:#fbfaf6}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid var(--line);border-radius:9px;color:inherit;background:var(--paper);padding:10px 13px;transition:background .2s,transform .2s}button:hover{background:#e8ecdf}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #bc9461;outline-offset:3px}button.active{background:var(--green);border-color:var(--green);color:white}header{height:83px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line);background:var(--paper);position:relative;z-index:4}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--green);font-size:27px;font-weight:600;letter-spacing:2px}.brandmark{font-size:38px;font-weight:400}.brand small{display:block;font-size:9px;letter-spacing:2.2px;margin-top:2px}.header-note{font-size:12px;letter-spacing:2px;color:#737c70}.header-note i,.status i{display:inline-block;background:#75966b;width:6px;height:6px;border-radius:100%;margin-right:8px}.quiet{background:transparent;border:none;font-size:12px}#sidebar{width:246px;position:absolute;left:0;top:83px;bottom:0;background:var(--paper);border-right:1px solid var(--line);padding:30px 23px 14px;display:flex;flex-direction:column;z-index:3}.eyebrow{font-size:9px;letter-spacing:2px;color:#8c988a;font-weight:600}h1{font-family:"Songti SC","STSong",serif;font-weight:500;font-size:32px;line-height:1.45;letter-spacing:2px;margin:18px 0 10px}.intro{font-size:11px;color:#8b9187;margin:0 0 24px}.seg{display:flex;padding:4px;border:1px solid var(--line);background:#f0f0e8;border-radius:11px;gap:3px}.seg button{border:0;background:transparent;font-size:11px;padding:9px 11px;white-space:nowrap}.seg button.active{box-shadow:0 2px 7px #233a2914;background:var(--green)}.floors{margin-bottom:25px}.floors button{flex:1;padding:9px 4px}.side-heading{font-size:10px;letter-spacing:1px;display:flex;justify-content:space-between;color:#8d968b;margin-bottom:10px}#rooms{overflow:auto;min-height:60px;flex:1;scrollbar-width:thin;scrollbar-color:#d4d9cc transparent}#rooms button{display:flex;align-items:center;width:100%;text-align:left;border:0;border-radius:8px;padding:10px;background:transparent;margin-bottom:3px;font-size:12px;gap:10px}#rooms button span{font-size:10px;color:#a0a58e}#rooms button small{margin-left:auto;color:#b0b5a7}#rooms button.active{background:#e7ecdf;color:var(--green);font-weight:600}#rooms button:hover{background:#eff1e8}.side-footer{border-top:1px solid var(--line);padding-top:16px;margin-top:12px;font-size:10px;line-height:2;color:#707d6f}.side-footer small{font-size:8px;letter-spacing:.4px;color:#9ba194}.dot{display:inline-block;background:#d8a773;width:5px;height:5px;border-radius:50%;margin-right:5px}main{margin-left:246px;display:grid;grid-template-rows:minmax(280px,1fr) auto auto;height:calc(100dvh - 83px)}#view{position:relative;min-height:0;background:radial-gradient(ellipse at 50% 42%,#faf9f1,#e7e9dd);overflow:hidden}#canvas{display:block;width:100%;height:100%;touch-action:none}.viewtop{position:absolute;top:22px;left:26px;right:26px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.viewtop>*{pointer-events:auto}.view-switch{background:#fbfaf4e8;border-color:#e0e1d5}.topright{display:flex;gap:7px;align-items:center}.topright button{font-size:10px;background:#fbfaf4e0;padding:10px}.topright button.active{background:var(--green)}.status{position:absolute;bottom:24px;left:27px;font-size:10px;color:#788471;letter-spacing:1px}.camera-tools{position:absolute;right:24px;bottom:55px;display:flex;flex-direction:column;background:#fbfaf4ec;border:1px solid #dfe2d4;border-radius:11px;padding:4px;gap:2px}.camera-tools button{border:none;background:transparent;width:34px;height:34px;padding:3px;font-size:19px}.camera-tools button:last-child{font-size:12px}.compass{position:absolute;top:92px;right:35px;display:flex;align-items:center;flex-direction:column;color:#7b8776;gap:1px;pointer-events:none}.compass span{font-size:11px}.compass b{font-weight:300;font-size:29px;transform:rotate(4deg)}.compass small{font-size:8px;letter-spacing:1px;margin-top:4px}.hint{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);font-size:9px;color:#92998a;white-space:nowrap;pointer-events:none}.hint span{display:none}#detail{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#fbfaf6;padding:18px 28px;border-top:1px solid var(--line);min-height:99px}#detail .eyebrow{font-size:8px}#detail h2{font-size:17px;font-weight:500;letter-spacing:1px;margin:7px 0}#detail p{font-size:10px;color:#8b9386;margin:0;max-width:570px;line-height:1.6}#actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}#actions button{font-size:10px;padding:9px 12px}.life{display:flex;align-items:center;gap:12px;padding:16px 28px;background:#f4f4ec;border-top:1px solid var(--line);min-height:77px}.life-label{display:flex;gap:9px;align-items:center;font-size:11px;white-space:nowrap}.life-label>span{font-size:25px;color:#9aa789}.life-label small{display:block;font-size:9px;color:#8e9987;margin-top:5px}.life input{width:clamp(70px,16vw,220px);accent-color:var(--green);height:4px;cursor:pointer}.weather{display:flex;gap:4px;padding-right:14px;border-right:1px solid var(--line)}.weather button{padding:6px 9px;font-size:17px;border:none;background:transparent}.weather button.active{background:#e0e7d7;color:var(--green)}.people{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.people button{font-size:9px;padding:9px}#labels{position:absolute;inset:0;pointer-events:none}.room-label{position:absolute;transform:translate(-50%,-50%);border:1px solid #ffffffa0;box-shadow:0 2px 10px #43513e0a;font-size:9px;color:#52634b;background:#fbfaf0d9;padding:5px 9px;border-radius:20px;white-space:nowrap;cursor:pointer;pointer-events:auto;backdrop-filter:blur(4px)}.room-label.selected{background:#304c3ee8;color:#fff}.room-label:before{content:'';display:inline-block;width:3px;height:3px;background:#b3bd9f;border-radius:50%;margin-right:4px}#loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f0f1e7;z-index:9}#loading h2{font-size:19px;font-weight:400}#loading p{font-size:11px;color:#8d9785}.loader{width:36px;height:36px;border:2px solid #d7deca;border-top-color:#627952;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:absolute;left:50%;top:82px;transform:translateX(-50%);background:#304c3ef0;color:#fff;border-radius:30px;padding:10px 18px;font-size:11px;opacity:0;transition:opacity .2s;pointer-events:none;z-index:10}#toast.show{opacity:1}#planView{position:absolute;inset:0;z-index:1;background:#f2f3e9;padding:75px 65px 40px}#planView svg{width:100%;height:100%}.viewtop,.status,.camera-tools,.hint,.compass{z-index:2}dialog{border:1px solid #d9dfce;border-radius:18px;background:#fafaf3;color:var(--green);padding:40px;max-width:570px;width:calc(100% - 30px);box-shadow:0 24px 100px #20312630}dialog::backdrop{background:#223a3160;backdrop-filter:blur(4px)}dialog h2{font-family:"Songti SC",serif;font-size:28px;font-weight:400}dialog p{font-size:12px;line-height:1.9;color:#7d8876}dialog .close{position:absolute;right:15px;top:12px;border:0;font-size:22px;background:transparent}.source-list{border-top:1px solid #dde2d1;padding-top:18px;margin-top:20px;font-size:12px}.note{font-size:11px;line-height:1.8;padding:8px 0;border-bottom:1px solid #e6e8dc}.note span{color:#b0986e;margin-right:10px}.primary{background:var(--green);color:#fff;font-size:12px;margin-top:12px}.muted{font-size:10px!important}#menuBtn{display:none}.immersive header,.immersive #sidebar,.immersive #detail,.immersive .life,.immersive .view-switch,.immersive .topright button:not(#focusBtn),.immersive #menuBtn{display:none}.immersive main{margin:0;height:100dvh;display:block}.immersive #view{height:100%}.immersive .topright{margin-left:auto}button:disabled{opacity:.5;cursor:default}
@media(max-width:1100px){#sidebar{width:210px;padding:25px 16px}main{margin-left:210px}.life{gap:7px;padding:14px 18px}.life input{width:90px}.people button{font-size:8px;padding:8px}.life-label>span{display:none}.weather{padding-right:7px;gap:0}#detail{padding:16px 20px}.hint{left:45%;font-size:8px}header{padding:0 22px}.viewtop{left:20px;right:20px}}
@media(max-width:760px){header{height:66px;padding:0 17px}.brand{font-size:22px}.brandmark{font-size:30px}.brand small{font-size:7px}.header-note{display:none}main{margin:0;height:calc(100dvh - 66px);grid-template-rows:minmax(220px,1fr) auto auto}#sidebar{display:none;top:66px;bottom:160px;width:220px;box-shadow:10px 0 40px #32472c20;padding-top:24px}#sidebar.open{display:flex}#sidebar h1{display:none}#sidebar .intro{margin-top:12px;margin-bottom:18px}#menuBtn{display:block;position:fixed;left:16px;top:132px;z-index:4;font-size:10px;background:#fbfaf2e8;padding:10px}.viewtop{top:14px;left:16px;right:16px}.seg button{padding:9px;font-size:10px}.topright button{font-size:9px;padding:10px 8px}#detail{padding:13px 17px;gap:10px;min-height:90px}#detail h2{font-size:15px}#detail p{font-size:9px;max-width:230px}#detail .eyebrow{font-size:7px}#actions{max-width:180px;gap:4px}#actions button{font-size:9px;padding:8px}.life{padding:11px 15px max(11px,env(safe-area-inset-bottom));gap:7px;flex-wrap:wrap;min-height:110px}.life-label{font-size:10px}.life-label small{font-size:8px}.life input{flex:1;min-width:70px}.people{width:100%;justify-content:flex-end;gap:7px}.people button{font-size:10px;padding:9px 11px;min-height:36px}.weather{border:0;padding:0}.weather button{padding:5px 8px}.life #playTime{padding:8px}.camera-tools{right:15px;bottom:38px}.camera-tools button{width:30px;height:31px}.compass{right:27px;top:79px}.status{left:17px;bottom:19px;font-size:8px}.hint{display:none}.room-label{font-size:8px;padding:4px 6px}#planView{padding:70px 32px 30px}.view-switch{max-height:40px}dialog{padding:27px}.topright{gap:4px}#roofBtn{display:none}}
@media(max-height:540px) and (max-width:1000px){header{height:52px}main{height:calc(100dvh - 52px);grid-template-rows:minmax(150px,1fr) auto}#detail{display:none}.life{min-height:54px;flex-wrap:nowrap;padding:8px 14px}.people{width:auto}.people button{padding:6px;font-size:8px}.life input{width:90px;flex:0}.viewtop{top:10px}#menuBtn{top:110px}#sidebar{top:52px;bottom:54px}}

#fpHUD[hidden]{display:none}#fpHUD{position:absolute;inset:0;z-index:5;pointer-events:none}.fp-top{position:absolute;top:22px;left:24px;right:24px;display:flex;align-items:center;gap:9px}.fp-top>div{background:#fbfaf1e8;padding:12px 17px;border-radius:10px;min-width:160px;margin-right:auto}.fp-top b{font-size:13px;font-weight:500}.fp-top small{display:block;font-size:10px;color:#72826b;margin-top:5px}.fp-top button,.fp-bottom button{pointer-events:auto;background:#fbfaf1ed;min-height:44px;font-size:11px}.fp-crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:24px system-ui;color:#ffffffdd;text-shadow:0 1px 5px #2a3929}.fp-bottom{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:24px;right:24px;display:flex;align-items:flex-end;gap:18px}.fp-bottom p{font-size:11px;line-height:1.9;background:#fbfaf1dd;border-radius:8px;padding:9px 14px;margin:0;color:#6f7b67}.fp-bottom>button{margin-left:auto}.fp-pad{pointer-events:auto;text-align:center;user-select:none;touch-action:none}.fp-pad button{width:46px;height:46px;font-size:20px;margin:3px;padding:5px;touch-action:none}.fp-pad button.held{background:#304c3e;color:#fff}.firstperson header,.firstperson #sidebar,.firstperson #detail,.firstperson .life,.firstperson .viewtop,.firstperson .camera-tools,.firstperson .compass,.firstperson .status,.firstperson .hint,.firstperson #labels,.firstperson #menuBtn{display:none!important}.firstperson main{margin:0;height:100dvh;display:block}.firstperson #view{height:100%}.firstperson #toast{top:90px}.firstperson #canvas{cursor:grab}.firstperson #canvas:active{cursor:grabbing}@media(max-width:760px){.view-switch button{padding:8px 6px;font-size:9px}.viewtop{gap:4px}.fp-top{left:12px;right:12px;top:max(12px,env(safe-area-inset-top));gap:5px}.fp-top>div{min-width:100px;padding:10px}.fp-top b{font-size:11px}.fp-top small{font-size:9px}.fp-top button{font-size:9px;padding:9px}.fp-bottom{left:10px;right:10px;gap:5px}.fp-bottom p{display:none}.fp-pad button{width:44px;height:44px;margin:2px}.fp-bottom>button{font-size:10px}}

.door-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #e1e4d8;font-size:12px}.door-row button{min-width:64px;min-height:40px;font-size:11px}#doorList{max-height:55dvh;overflow:auto}#fpDoors{margin-left:auto}.fp-bottom #fpInteract{margin-left:0}@media(max-width:760px){#doorsBtn{display:none}#fpDoors{font-size:9px;padding:9px}.fp-bottom>button{max-width:95px;padding:9px 7px}.fp-bottom{gap:3px}.fp-pad button{width:40px;min-width:40px;margin:1px}}
