:root{--brand:#005e50;--brand-bright:#007a61;--ink:#092f32;--muted:#6a8085;--paper:#faf9f5;--line:#e3e8e5;--orange:#ff873f;--green:#14935a;--shadow:0 3px 14px #102c2412;--safe-bottom:env(safe-area-inset-bottom,0px);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none;background:#eceeea}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{touch-action:manipulation}button{border:0;background:none}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #60ac96;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}a{color:var(--brand)}.icon{width:22px;height:22px;flex:none;display:block;stroke-width:1.8}.app-shell{width:100%;max-width:520px;height:100dvh;min-height:360px;margin:auto;position:relative;background:var(--paper);overflow:hidden;box-shadow:0 0 70px #12372b0c}.primary,.secondary{display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;padding:12px 20px;border-radius:25px;font-size:16px;font-weight:600;text-decoration:none;transition:background .15s,transform .12s}.primary{background:var(--brand);color:white;border:1px solid var(--brand)}.primary:hover{background:#004c40}.secondary{border:1px solid var(--line);background:white;color:var(--brand)}.primary:active,.secondary:active,.round-button:active,.category:active span{transform:scale(.97)}.full{width:100%}.round-button,.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none}.round-button{background:white;border:1px solid var(--line);border-radius:50%;box-shadow:var(--shadow);color:var(--brand)}.round-button.ghost{box-shadow:none;border:0;background:#f4f6f3;color:var(--ink)}.quiet-button,.text-button{font-size:13px;min-height:44px;color:var(--brand);font-weight:500}.rotate{transform:rotate(180deg)}.muted{color:var(--muted)}
.entry{height:100%;overflow:auto;overscroll-behavior:contain;padding-top:env(safe-area-inset-top,0px);background:var(--paper)}.entry-brand{display:flex;align-items:center;gap:10px;margin:36px 24px 14px;min-height:40px}.entry-brand>.icon{color:var(--orange);width:28px;height:28px}.entry-brand>strong{font-size:24px;letter-spacing:-.6px}.cancel-origin{margin-left:auto}.campus-hero{width:100%;height:160px;object-fit:cover;display:block;mix-blend-mode:multiply}.entry-content{padding:24px}.entry h1{font-size:24px;line-height:1.45;letter-spacing:-.4px}.lead{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.6}.field-label{display:block;margin:22px 0 8px;font-size:14px;color:var(--muted)}.select-shell{position:relative;border:1px solid #d9e2dd;border-radius:14px;background:white;height:52px;width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 16px;text-align:left;font-size:16px}.select-shell select{appearance:none;-webkit-appearance:none;background:transparent;border:0;width:100%;height:100%;padding-right:30px;font-weight:500}.select-shell>.icon{width:18px;height:18px}.select-shell select+.icon{pointer-events:none;position:absolute;right:16px}.select-shell[aria-expanded=true]{border-color:var(--brand);box-shadow:0 0 0 2px #005e5007}.field-note{font-size:12px;color:var(--muted);margin-top:14px;line-height:1.65}.entry-submit{width:100%;margin-top:30px}.entry-reassurance{font-size:12px;color:var(--muted);margin-top:18px;text-align:center}.entry-footer{font-size:12px;color:var(--muted);text-align:center;padding:18px 16px calc(24px + var(--safe-bottom));line-height:1.7}.entry-footer span{padding:0 6px}.dorm-field{position:relative}#dorm-popup{position:absolute;top:60px;left:0;right:0;z-index:80;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px #12342820;overflow:hidden}.dropdown-tools{height:52px;padding:4px 8px;display:flex;gap:5px;align-items:center;border-bottom:1px solid var(--line)}.dorm-search{min-width:0;flex:1;display:flex;align-items:center;gap:6px}.dorm-search>.icon{width:18px;height:18px;color:var(--muted)}.dorm-search input{width:100%;min-width:0;border:0;background:transparent;height:42px;font-size:14px;outline-offset:-3px}.dropdown-tools .text-button{padding:0 7px;white-space:nowrap}#dorm-results{max-height:min(29dvh,248px);overflow:auto;overscroll-behavior:contain;padding:6px;scroll-padding:38px}.phase-label{position:sticky;top:-6px;background:#f5f7f3;color:var(--muted);font-size:12px;line-height:32px;padding:0 10px;z-index:1}.dorm-option{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:8px 12px;font-size:15px;text-align:left;border-radius:9px}.dorm-option:hover{background:#f4f7f4}.dorm-option.is-selected{background:#e8f4ef;color:var(--brand);font-weight:600}.empty-inline{padding:18px 10px;font-size:14px;color:var(--muted)}
.map-screen{position:absolute;inset:0;background:#eef2ec}#map-canvas{position:absolute;inset:0;z-index:1}#map-labels{position:absolute;inset:0;z-index:12;pointer-events:none}#map-ui{position:absolute;inset:0;z-index:20;pointer-events:none;--tools-bottom:280px}#map-ui button,#map-ui a,#map-ui input,#map-ui .bottom-sheet{pointer-events:auto}.map-header{position:absolute;top:0;left:0;right:0;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 2px;background:#fffefbf5;box-shadow:0 2px 8px #20352b06;z-index:25}.map-top{display:flex;gap:10px;align-items:center}.context-button{flex:1;min-width:0;display:flex;gap:8px;align-items:center;justify-content:space-between;padding:0 14px;height:44px;border:1px solid var(--line);border-radius:24px;background:white;box-shadow:var(--shadow)}.context-button strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-button strong span{padding:0 3px;color:var(--muted)}.context-button .icon{width:18px;height:18px}.categories{display:flex;gap:8px;margin-top:4px;justify-content:space-between}.category{height:44px;min-width:0;flex:1;display:flex;align-items:center;padding:0}.category span{height:32px;display:flex;align-items:center;justify-content:center;width:100%;border-radius:18px;border:1px solid #e6e9e5;background:#f4f5f2;font-size:14px;white-space:nowrap;transition:background .18s,color .18s,transform .12s}.category.active span{background:var(--brand);border-color:var(--brand);color:white}.map-tools{position:absolute;right:16px;bottom:var(--tools-bottom);display:flex;flex-direction:column;gap:10px;transition:bottom .25s ease;z-index:21}.map-tools .round-button{box-shadow:0 3px 16px #26392e24}.shared-banner{position:absolute;top:calc(114px + env(safe-area-inset-top,0px));left:16px;right:16px;min-height:48px;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#ffffffed;border-radius:14px;padding:7px 12px;box-shadow:var(--shadow);z-index:22}.shared-banner span{display:flex;flex-direction:column;min-width:0}.shared-banner small{font-size:11px;color:var(--muted)}.shared-banner strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-banner button{color:var(--brand);font-size:12px;min-height:44px;flex:none}
.badge{display:inline-flex;justify-content:center;align-items:center;width:38px;height:38px;border-radius:50%;background:var(--green);color:white;flex:none}.badge .icon{width:21px;height:21px}.food .badge,.class .badge{background:var(--orange)}.amap-logo{bottom:4px!important}.amap-copyright{font-size:9px!important}.map-error{position:absolute;top:150px;left:24px;right:24px;background:white;padding:20px;border-radius:18px;box-shadow:var(--shadow);pointer-events:auto}.map-error p{font-size:14px;color:var(--muted);line-height:1.6;margin:8px 0}.map-error button{color:var(--brand);min-height:44px;font-weight:600}.route-loading{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);background:#fffffff2;border-radius:18px;padding:18px;display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:14px;box-shadow:var(--shadow)}
.bottom-sheet{position:absolute;bottom:0;left:0;right:0;height:calc(224px + var(--safe-bottom));max-height:calc(100% - 114px);border-radius:26px 26px 0 0;background:white;box-shadow:0 -4px 24px #123c2510;z-index:30;display:flex;flex-direction:column;transition:height .28s cubic-bezier(.2,.75,.25,1);overflow:hidden}.bottom-sheet.collapsed{height:calc(100px + var(--safe-bottom))}.bottom-sheet.expanded{height:calc(100% - 140px)}.bottom-sheet.detail{height:auto}.bottom-sheet.dragging{transition:none}.sheet-handle{position:absolute;left:calc(50% - 42px);top:0;width:84px;height:24px;display:flex;justify-content:center;align-items:center;touch-action:none;z-index:3}.sheet-handle span{width:44px;height:4px;background:#d5dfd8;border-radius:3px}.sheet-body{padding:22px 16px calc(16px + var(--safe-bottom));min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;flex:1}.bottom-sheet h2{font-size:19px;line-height:1.4;letter-spacing:-.35px}.peek-heading{display:flex;gap:4px;align-items:center;height:44px;min-height:44px;margin-bottom:7px}.peek-heading>span{flex:1;min-width:0}.peek-heading h2{font-size:18px}.peek-heading small{font-size:11px;color:var(--muted)}.peek-heading .text-button{flex:none;font-size:12px;white-space:nowrap;padding:0 5px}.peek-heading .icon-button{width:38px}.peek-rows{display:flex;flex-direction:column;gap:7px}.place-row{width:100%;min-height:61px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;padding:10px;text-align:left;background:white;flex:none;transition:background .12s}.place-row:hover{background:#f8faf7}.place-row:active{background:#eff6f1}.place-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.place-name strong{font-size:15px;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.place-name small{font-size:12px;color:var(--muted)}.place-time{font-size:15px;white-space:nowrap;flex:none}.place-row .chevron{width:16px;height:16px;color:var(--muted)}.panel-note{text-align:center;margin-top:5px}.panel-note button{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:3px;min-height:28px}.panel-note .icon{width:13px;height:13px}.collapsed-open{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;width:100%;min-height:55px}.collapsed-open>span{display:flex;flex-direction:column;gap:4px}.collapsed-open strong{font-size:17px}.collapsed-open small{font-size:12px;color:var(--muted)}.list-title,.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:40px;flex:none}.place-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:24px;background:#f4f6f3;min-height:46px;padding:0 14px;margin-top:8px;flex:none}.place-search .icon{color:var(--muted);width:20px;height:20px}.place-search input{width:100%;background:transparent;border:0;font-size:16px;height:44px;min-width:0;outline-offset:-3px}.list-meta{color:var(--muted);font-size:12px;margin:10px 0}.place-list{overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;min-height:0;flex:1;padding-bottom:4px}.empty-results{text-align:center;padding:28px 12px;color:var(--muted)}.empty-results>.icon{margin:0 auto 12px;width:30px;height:30px}.empty-results h3{font-size:17px;color:var(--ink);margin-bottom:8px}.empty-results p{font-size:14px;line-height:1.6;margin-bottom:14px}.empty-results .secondary{max-width:230px;margin:auto}.detail-heading h2{font-size:19px}.route-metrics{display:flex;align-items:baseline;gap:8px;margin:4px 0}.route-metrics>strong{font-size:42px;line-height:1.15;letter-spacing:-1px}.route-metrics span{font-size:17px;font-weight:600}.route-metrics i{width:1px;height:32px;background:var(--line);align-self:center;margin:0 7px}.route-metrics b{font-size:29px;letter-spacing:-.7px}.detail-origin{font-size:13px;color:var(--muted);margin:5px 0 12px}.detail-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px;min-height:44px}.detail-foot>span{font-size:11px;color:var(--muted)}.detail-foot button{min-height:44px;display:flex;align-items:center;color:var(--brand);font-size:12px}.detail-foot .icon{width:14px;height:14px}.coverage-note{font-size:15px;line-height:1.7;color:var(--muted);margin:18px 0}.bottom-sheet:has(.empty-results){min-height:220px}
dialog{border:0;padding:30px 24px 24px;width:min(calc(100% - 24px),460px);max-height:calc(100dvh - 40px);border-radius:26px;box-shadow:0 15px 90px #002d2733;color:var(--ink);background:#fff;overscroll-behavior:contain}dialog::backdrop{background:#102c244d;backdrop-filter:blur(3px)}dialog h2{font-size:22px;line-height:1.4;padding-right:35px}.modal-close{position:absolute;right:14px;top:14px;border:0;box-shadow:none;background:#f4f6f3;width:38px;height:38px}.modal-lead{font-size:14px;color:var(--muted);line-height:1.6;margin:10px 0 18px}.share-card{background:var(--paper);border-radius:20px;padding:14px;margin-bottom:18px}.share-card>svg{width:100%;max-height:225px;display:block;border-radius:14px}.share-card h3{font-size:17px;line-height:1.5;margin-top:12px}.share-card p{font-size:14px;color:var(--brand);margin-top:5px}dialog .full+.full{margin-top:10px}.preview-link{display:flex;align-items:center;justify-content:center;gap:4px;font-size:13px;min-height:44px;text-decoration:none;margin-top:8px}.preview-link .icon{width:16px;height:16px}.local-note{font-size:12px;color:var(--muted);line-height:1.6;text-align:center;margin-top:8px}.copy-fallback{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:12px}fieldset{border:0;padding:0;margin:0}legend{font-size:15px;font-weight:600;margin-bottom:10px}.issue-option{display:flex;align-items:center;gap:9px;border:1px solid var(--line);padding:10px 14px;min-height:46px;border-radius:13px;margin-bottom:7px;font-size:14px}.issue-option:has(input:checked){background:#edf6f1;border-color:#91c4b4}.issue-option input{accent-color:var(--brand)}textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px;font-size:16px;line-height:1.6;resize:vertical;min-height:110px;max-height:230px}.form-error{min-height:20px;color:#ab3e28;font-size:12px;margin:5px 0}.about-content h3{font-size:16px;margin:20px 0 8px}.about-content p{font-size:14px;line-height:1.8;color:var(--muted)}.about-content{margin-bottom:18px}#toast{position:absolute;bottom:calc(32px + var(--safe-bottom));left:50%;transform:translate(-50%,12px);background:#173f35f5;color:white;box-shadow:var(--shadow);border-radius:14px;padding:12px 18px;z-index:1000;font-size:14px;max-width:90%;width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}.boot{padding:70px 24px;display:flex;align-items:center;flex-direction:column;gap:16px;text-align:center}.boot h1{font-size:22px}.loading-ring{width:20px;height:20px;border:2px solid #d9e6e0;border-top-color:var(--brand);border-radius:50%;display:inline-block;flex:none;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:360px){.entry-content{padding:20px}.entry-brand{margin-left:20px;margin-right:20px}.entry-brand>strong{font-size:22px}.categories{gap:5px}.map-header{padding-left:12px;padding-right:12px}.context-button strong{font-size:14px}.sheet-body{padding-left:12px;padding-right:12px}.peek-heading .icon-button{width:34px}.place-row{gap:7px;padding:9px}.place-time{font-size:14px}.place-name strong{font-size:14px}.badge{width:34px;height:34px}.route-metrics>strong{font-size:38px}.route-metrics b{font-size:26px}}
@media(min-width:700px){.app-shell{max-width:480px;border-left:1px solid #dde4dd;border-right:1px solid #dde4dd}body:before{content:"从宿舍出发";position:fixed;left:calc(50% - 410px);top:48px;color:#234d4070;font-size:16px;font-weight:600;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.amap-logo,.amap-copyright{bottom:var(--map-bottom,264px)!important}.amap-scalecontrol{bottom:calc(var(--map-bottom,264px) + 24px)!important}.skeleton-row{height:60px;margin:10px 0;border-radius:16px;background:#f0f3ef}
.origin-pin{width:30px;height:30px;padding:0;border:0;background:transparent;box-shadow:none;transform:translateY(2px)}.origin-pin>.icon{width:30px;height:30px;filter:drop-shadow(0 1px 2px #6b432e44)}.origin-map-label{position:absolute;top:0;left:0;width:76px;height:30px;display:flex;align-items:center;justify-content:center;background:white;color:var(--ink);border-radius:11px;box-shadow:var(--shadow);border:1px solid #f3dfd2;font-size:12px;font-weight:600}.peek-heading .icon-button{width:44px}
@media(max-height:740px){.entry-brand{margin-top:20px;margin-bottom:10px}.campus-hero{height:112px}.entry-content{padding-top:18px}.entry-submit{margin-top:24px}.entry .field-label{margin-top:18px}.entry-footer{padding-top:8px}}
#map-ui:has(.bottom-sheet.expanded) .map-tools{display:none}.place-search:focus-within,.select-shell:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #005e5010}.place-search input:focus-visible,.select-shell select:focus-visible{outline:none}.dorm-search:focus-within{border-radius:8px;box-shadow:0 0 0 2px #005e5020}.dorm-search input:focus-visible{outline:none}

/* Campus skin over Dingding's marker and four-way speech-bubble component. */
#map-canvas.amap-container{background:#fbfbf8}
.campus-marker{--marker-color:#157965;width:44px;height:44px}
.campus-marker::before{width:8px;height:8px;box-shadow:0 1px 3px #214e381a}
.campus-marker:has(.map-project-marker-label):not(.label-hidden)::before{width:10px;height:10px}
.campus-marker .map-project-marker-label{width:var(--map-label-width);border-color:#e1e9e3;background:#fff;color:var(--ink);box-shadow:0 3px 12px #123c2512}
.campus-marker .map-project-marker-label::before{border-color:#e1e9e3;background:#fff}
.campus-marker .map-project-marker-label strong{font-size:11px}
.campus-marker .map-project-marker-label small{color:#45685f}
.campus-marker.selected .map-project-marker-label{border-color:#a9cfc0;box-shadow:0 3px 14px #0c584224}
.campus-marker.selected .map-project-marker-label::before{border-color:#a9cfc0}
.campus-marker.selected::before{background:var(--brand)}
.campus-marker.dimmed{opacity:.4}
.campus-marker:focus-visible{outline:3px solid #60ac96;outline-offset:1px}
.map-header{background:#fffefbf5;box-shadow:0 1px 5px #213d2d04}
.context-button{box-shadow:0 2px 10px #123c2508}
.map-tools .round-button{box-shadow:0 2px 12px #26392e12}
.origin-pin{display:flex;align-items:center;justify-content:center}
.origin-pin>.icon{color:#fff;filter:drop-shadow(0 1px 3px #ac604b35)}
.bottom-sheet.peek .sheet-body{padding-top:20px;padding-bottom:calc(10px + var(--safe-bottom))}
.peek-rows{gap:0}
.peek-rows .place-row{min-height:50px;padding:7px 0;border:0;border-radius:0;border-bottom:1px solid #edf0ed;gap:10px}
.peek-rows .badge{width:24px;height:24px;background:none;color:var(--brand);border-radius:0}
.peek-rows .badge .icon{width:22px;height:22px}
.peek-rows .place-name small{display:none}
.peek-rows .place-name strong,.peek-rows .place-time{font-size:14px}
.peek-rows .place-time{font-weight:500}
.dropdown-tools .text-button{padding:0 5px;font-size:12px}

.bottom-sheet.detail .sheet-body{flex:0 1 auto;padding:18px 16px calc(8px + var(--safe-bottom))}
.bottom-sheet.detail .detail-heading h2{font-size:17px;line-height:1.4}
.bottom-sheet.detail .route-metrics{margin:2px 0;gap:6px}
.bottom-sheet.detail .route-metrics>strong{font-size:32px;line-height:1.15}
.bottom-sheet.detail .route-metrics b{font-size:24px}
.bottom-sheet.detail .route-metrics span{font-size:14px}
.bottom-sheet.detail .route-metrics i{height:24px;margin:0 6px}
.bottom-sheet.detail .detail-origin{font-size:12px;line-height:18px;margin:2px 0 0}
.bottom-sheet.detail .detail-foot{margin-top:0}
