:root { --ink: #102b49; --blue: #0968ba; --line: #d5e2ee; --soft: #f4f8fc; --muted: #63778b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); font-family: Arial, "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.map-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.map-brand, .map-back, .map-download { color: var(--ink); font-weight: 800; text-decoration: none; }
.map-brand span { color: var(--blue); }
.map-header nav { display: flex; align-items: center; gap: 18px; }
.map-back { color: var(--muted); font-size: 13px; }
.map-download { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; background: var(--blue); color: #fff; font-size: 12px; }
.map-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 64px); min-height: 640px; }
.map-sidebar { padding: 28px 22px; overflow: auto; background: #fff; border-right: 1px solid var(--line); }
.map-kicker { margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; }
.map-sidebar h1 { margin: 7px 0 8px; font-size: 32px; line-height: 1.1; }
.map-intro { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.map-search { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.map-search input { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 14px; }
.map-search input:focus-visible, .map-filters button:focus-visible, .map-result:focus-visible, a:focus-visible, .detail-close:focus-visible { outline: 3px solid #94c8f5; outline-offset: 2px; }
.map-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.map-filters button { height: 31px; padding: 0 9px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: 12px inherit; }
.map-filters button.is-active { color: #fff; background: var(--blue); border-color: var(--blue); }
.map-result-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 25px 0 10px; }
.map-result-heading strong { font-size: 14px; }.map-result-heading small { color: var(--muted); font-size: 11px; }
.map-results { display: grid; gap: 4px; }
.map-result { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 7px 0; color: var(--ink); text-align: left; background: none; border: 0; border-bottom: 1px solid #edf2f6; cursor: pointer; }
.map-result span { display: grid; width: 20px; height: 20px; place-items: center; color: var(--blue); background: #e6f2fd; border-radius: 50%; font-size: 11px; font-weight: 800; }.map-result strong { font-size: 13px; }.map-result small { color: var(--muted); font-size: 11px; }.map-result.is-selected { color: var(--blue); }
.map-main { position: relative; min-width: 0; overflow: hidden; background: #dce9f3; }.live-campus-map { position: absolute; inset: 0; }.map-view-switch{position:absolute;z-index:600;top:18px;left:18px;display:flex;padding:4px;border:1px solid #cbddea;border-radius:12px;background:#fffffff0;box-shadow:0 8px 22px #173b5a18}.map-view-switch button{height:32px;border:0;border-radius:8px;padding:0 12px;background:transparent;color:var(--muted);font:700 12px inherit;cursor:pointer}.map-view-switch button.is-active{color:#fff;background:var(--blue)}.high-res-campus-guide{position:absolute;inset:0;overflow:auto;background:#dce9f3}.high-res-guide-canvas{position:relative;width:max(1280px,100%);min-width:100%;line-height:0}.high-res-guide-canvas>img{display:block;width:100%;height:auto}.high-res-guide-markers{position:absolute;inset:0}.guide-dorm-marker{position:absolute;left:var(--x);top:var(--y);display:flex;align-items:center;gap:5px;transform:translate(-50%,-100%);border:0;border-radius:10px;padding:5px 8px;background:#0a60bd;color:#fff;box-shadow:0 4px 14px #0d477d50;font:700 11px inherit;line-height:1;cursor:pointer}.guide-dorm-marker span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff;color:#0a60bd;font-size:10px}.guide-dorm-marker.is-selected{outline:3px solid #fff;outline-offset:2px}.leaflet-control-zoom a { color: var(--ink) !important; }.leaflet-control-attribution { font-size: 10px !important; }
.campus-marker-wrap { background: transparent; border: 0; }.campus-marker { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: #0d668b; border: 2px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 3px 10px #0a315855; transform: rotate(-45deg); font-size: 11px; font-weight: 800; }.campus-marker i { font-style: normal; transform: rotate(45deg); }.campus-marker-gate { background: #c74b40; }.campus-marker-food { background: #bd7415; }.campus-marker-sports { background: #5f4bb3; }.campus-marker-scenery { background: #34835f; }.campus-marker-transport { background: #527a9c; }
.map-legend { position: absolute; z-index: 500; bottom: 18px; left: 18px; display: grid; gap: 2px; padding: 10px 12px; background: #fffffff0; border: 1px solid var(--line); box-shadow: 0 5px 16px #173b5a1a; font-size: 11px; }.map-legend span { color: var(--muted); }
.place-detail { position: fixed; z-index: 1000; right: 24px; bottom: 24px; width: min(370px, calc(100vw - 32px)); max-height: calc(100vh - 100px); padding: 23px; overflow: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 52px #163b5a30; }.place-detail > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }.place-detail > p:first-of-type { color: var(--blue); font-size: 11px; font-weight: 800; }.place-detail h2 { margin: 10px 0; font-size: 25px; }.detail-close { float: right; color: var(--muted); background: none; border: 0; cursor: pointer; }
.place-detail-figure { margin: 16px 0 12px; }.place-detail-figure img { display: block; width: 100%; max-height: 190px; object-fit: cover; }.place-detail-figure figcaption, .detail-source { margin-top: 6px !important; color: var(--muted) !important; font-size: 11px !important; }.detail-actions { display: flex; gap: 8px; margin-top: 17px; }.detail-actions a { display: inline-flex; align-items: center; min-height: 39px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); font-size: 12px; font-weight: 800; text-decoration: none; }.detail-actions a:first-child { color: #fff; background: var(--blue); border-color: var(--blue); }
@media (max-width: 800px) { .map-header { padding: 0 16px; }.map-header nav { gap: 10px; }.map-back { display: none; }.map-shell { display: block; height: calc(100vh - 64px); min-height: 0; }.map-sidebar { position: absolute; z-index: 700; right: 0; bottom: 0; left: 0; max-height: 43vh; padding: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 0; box-shadow: 0 -12px 28px #14385820; }.map-kicker, .map-sidebar h1, .map-intro { display: none; }.map-search { grid-template-columns: 58px 1fr; align-items: center; }.map-filters { flex-wrap: nowrap; margin: 12px 0; overflow: auto; }.map-filters button { flex: 0 0 auto; white-space: nowrap; }.map-result-heading { margin: 12px 0 6px; }.map-results { display: flex; gap: 8px; overflow: auto; }.map-result { flex: 0 0 146px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }.map-main { height: 100%; }.map-view-switch{top:12px;left:12px}.map-legend { bottom: calc(43vh + 12px); left: 12px; }.place-detail { right: 16px; bottom: calc(43vh + 12px); }.detail-actions { flex-wrap: wrap; }.guide-dorm-marker{padding:4px 6px;font-size:10px}.guide-dorm-marker b{display:none} }
.detail-actions{flex-wrap:wrap}.detail-actions button{display:inline-flex;align-items:center;min-height:39px;padding:0 12px;border:1px solid var(--blue);background:var(--blue);color:#fff;cursor:pointer;font:800 12px inherit}.dorm-gallery-dialog{width:min(980px,calc(100vw - 32px));max-height:90vh;padding:0;overflow:auto;border:1px solid var(--line);background:#fff;color:var(--ink);box-shadow:0 24px 72px #102b4940}.dorm-gallery-dialog::backdrop{background:#102b4980}.dorm-gallery-head{display:flex;justify-content:space-between;gap:18px;align-items:start;padding:22px 24px 16px;border-bottom:1px solid var(--line)}.dorm-gallery-head p{margin:0 0 4px;color:var(--blue);font-size:12px;font-weight:800}.dorm-gallery-head h2{margin:0;font-size:24px}.dorm-gallery-head button{height:34px;padding:0 12px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;font:700 12px inherit}.dorm-gallery-tabs{display:flex;gap:8px;overflow:auto;padding:16px 24px 4px}.dorm-gallery-tabs button{flex:0 0 auto;height:34px;padding:0 11px;color:var(--muted);border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;font:700 12px inherit}.dorm-gallery-tabs button.is-active{color:#fff;border-color:var(--blue);background:var(--blue)}.dorm-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 24px}.dorm-gallery-grid a{display:block;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#eef5fa}.dorm-gallery-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.dorm-gallery-note{margin:0;padding:0 24px 22px;color:var(--muted);font-size:12px;line-height:1.6}.dorm-gallery-dialog.is-fallback-open{position:fixed;z-index:1100;inset:16px;width:calc(100vw - 32px);height:fit-content;margin:auto}@media(max-width:800px){.dorm-gallery-head{padding:18px}.dorm-gallery-tabs{padding:14px 18px 3px}.dorm-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:16px 18px}.dorm-gallery-note{padding:0 18px 18px}.dorm-gallery-dialog.is-fallback-open{inset:10px;width:calc(100vw - 20px)}}
