:root {
  --brand: #56ccf2;
  --brand-deep: #2f80ed;
  --link: #0081ff;
  --menu: #404481;
  --bg: #f3f3f3;
  --line: #e1e1e1;
  --text: #333;
  --muted: gray;
  --tabbar-h: 56px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); }
body { background: #e8e8ee; }
img { -webkit-user-drag: none; user-select: none; }
button { font-family: inherit; }

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,.12);
}

.page {
  position: absolute;
  inset: 0;
  bottom: var(--tabbar-h);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  background: #fff;
  scroll-behavior: smooth;
}
.page.active { display: block; }
.page::-webkit-scrollbar { width: 0; height: 0; }

/* ===== 底部 TabBar ===== */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  z-index: 60;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: #7a7a7a;
  text-decoration: none;
  -webkit-user-select: none;
}
.tab-icon { width: 24px; height: 24px; object-fit: contain; }
.tab-item.active { color: var(--menu); font-weight: 600; }

/* ===== 子页覆盖层 ===== */
.subpage {
  position: absolute;
  inset: 0;
  background: #f3f3f3;
  z-index: 50;
  display: none;
  overflow: hidden;
  flex-direction: column;
}
.subpage.active { display: flex; }
.sub-nav {
  height: 50px;
  flex: 0 0 50px;
  background: #fff;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 5;
}
.sub-nav .back {
  width: 50px; height: 100%;
  background: none; border: 0;
  font-size: 28px; line-height: 1;
  color: #333; cursor: pointer;
}
.sub-title { font-size: 17px; font-weight: 600; }

/* ===== 通用弹窗 ===== */
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  width: 86%;
  max-height: 76%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}
.modal-body { padding: 14px 16px; overflow-y: auto; }
.modal-body img { max-width: 100%; border-radius: 8px; }
.site-modal-kicker { color: #2a8b87; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.site-modal-title { margin-top: 5px; color: #173b55; font-size: 24px; font-weight: 700; }
.site-modal-alias { margin-top: 6px; color: #6e8791; font-size: 12px; }
.site-modal-desc { margin-top: 16px; padding: 13px 14px; color: #405b66; background: #f2f8f7; border-left: 3px solid #5bb8ad; border-radius: 4px 12px 12px 4px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.voice-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 9px 14px; color: #fff; background: linear-gradient(135deg, #2a9c8e, #1f7081); border: 0; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 14px rgba(31, 112, 129, .2); }
.voice-btn span { font-size: 11px; }
.voice-btn.playing { background: linear-gradient(135deg, #e48762, #c85d5d); }
.modal-footer {
  display: flex;
  border-top: 1px solid #eee;
  flex: 0 0 auto;
}
.modal-footer .btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--link);
  cursor: pointer;
}
.modal-footer .btn + .btn { border-left: 1px solid #eee; }
.modal-footer .btn.primary { color: #fff; background: var(--brand); }
.modal-footer .btn:active { background: #f0f0f0; }

/* ===== 讲解弹窗 ===== */
.modal.explain-mode {
  width: 94%;
  max-height: 92%;
  position: relative;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.modal.explain-mode .modal-header { display: none; }
.modal.explain-mode .modal-body { padding: 0; overflow: hidden auto; scrollbar-width: thin; }
.explain-hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #dfe8ec;
}
.explain-hero .explain-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.explain-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(10,31,45,.25) 55%, rgba(9,28,42,.78) 100%);
}
.explain-head {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  z-index: 2;
}
.explain-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bff0e4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.explain-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fe0c3;
  box-shadow: 0 0 8px rgba(111,224,195,.8);
}
.explain-title {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.explain-subtitle {
  margin-top: 5px;
  font-size: 14px;
  color: rgba(255,255,255,.88);
}
.explain-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #1c3a4c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.explain-content { padding: 16px 16px 18px; }
.explain-desc { margin: 0 0 18px; color: #5e6f78; font-size: 14px; line-height: 1.85; }
.explain-process-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.explain-process-head > span:first-child { color: #173b55; font-size: 16px; font-weight: 700; }
.explain-process-head .process-en { color: #9aa9ae; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.explain-steps { display: flex; gap: 7px; align-items: center; }
.explain-step {
  flex: 1;
  min-width: 0;
  padding: 12px 10px 14px;
  background: #f5f7f9;
  border: 1px solid #e7ecef;
  border-radius: 10px;
}
.explain-step .step-num { display: block; color: #9aa9ae; font-size: 12px; font-weight: 700; }
.explain-step .step-title {
  display: block;
  margin-top: 7px;
  color: #173b55;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-arrow { flex: 0 0 auto; color: #a8b6bd; font-size: 16px; font-weight: 600; }
.voice-btn.explain-voice {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #1f7f8c, #2a9c8e);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(31,127,140,.28);
}
.voice-btn.explain-voice .voice-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  font-size: 11px;
}
.voice-btn.explain-voice .voice-en {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}
.voice-btn.explain-voice.playing { background: linear-gradient(90deg, #d05f5f, #e48762); }

/* ===== Toast ===== */
.toast {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  max-width: 78%;
  text-align: center;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* picker 风格 */
.picker {
  margin: 0 5px;
  padding: 4px 10px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  min-width: 90px;
}
.picker::after { content: "▾"; margin-left: 6px; color: #888; }

/* ===================== 地图页 ===================== */
.page-map { background: #dfe9e7; }
.map-top-card {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 20;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 22px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(24, 63, 75, .16);
  backdrop-filter: blur(14px);
}
.map-top-left { flex: 1; }
.map-field {
  display: flex;
  align-items: center;
  background: #f4f8f8;
  border: 1px solid #e1ecec;
  border-radius: 10px;
  height: 34px;
  padding: 0 10px;
}
.map-field.up { margin-bottom: 6px; }
.map-field + .map-field { border-top: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; flex: 0 0 auto; }
.dot.start { background: #07c160; }
.dot.end { background: #fa5151; }
.map-input {
  flex: 1;
  border: 0; outline: 0;
  font-size: 14px;
  color: #333;
  background: transparent;
  padding: 0;
  height: 100%;
  width: 100%;
}
.map-top-middle { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.map-exchange {
  border: 0; background: #e8f5f2; color: #238678; cursor: pointer;
  width: 34px; height: 34px; padding: 7px; border-radius: 12px;
}
.map-exchange img { width: 100%; height: 100%; object-fit: contain; }
.map-top-right { flex: 0 0 auto; }
.map-route-btn {
  background: linear-gradient(135deg, #20b486, #148a87);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 7px 14px rgba(20, 138, 135, .22);
}
.map-control {
  position: absolute;
  top: 112px; left: 12px; right: 12px;
  z-index: 18;
  background: transparent;
}
.map-campus-wrap { display: flex; justify-content: center; padding: 4px 0 6px; }
.map-campus-wrap .picker { background: rgba(255,255,255,.94); border-color: #dbe9e7; border-radius: 16px; box-shadow: 0 5px 12px rgba(36, 86, 91, .1); }
.map-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 5px 0 12px;
  scrollbar-width: none;
}
.map-categories::-webkit-scrollbar { display: none; }
.map-cat {
  flex: 0 0 auto;
  background: rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  color: #48616a;
  cursor: pointer;
  border: 1px solid rgba(214, 231, 229, .9);
  box-shadow: 0 4px 10px rgba(42, 91, 95, .08);
}
.map-cat.choose { background: linear-gradient(135deg, #236e7a, #174d68); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(23, 77, 104, .22); }

.leaflet-tooltip.points-label {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
}
.leaflet-tooltip.points-label::before { display: none; }
.points-map-label {
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  max-width: 120px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.map-modes {
  position: absolute;
  top: 112px; left: 0; right: 0;
  z-index: 18;
  display: none;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
.map-modes.show { display: flex; }
.map-modes .mode {
  flex: 0 0 auto;
  background: rgba(255,255,255,.94);
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}
.map-modes .mode.choose { background: #07c160; color: #fff; border-color: #07c160; }

#leafletMap { position: absolute; inset: 0; z-index: 1; }
.leaflet-container { background: #dfe9e7; font-family: inherit; }
/* 拖拽地图时避免贴图层反复重栅格化：交由 GPU 合成 */
.leaflet-container .leaflet-image-layer {
  will-change: transform;
  backface-visibility: hidden;
}
.leaflet-container .campus-map-overlay {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transform-origin: center center;
}
.leaflet-container .leaflet-tile {
  will-change: transform;
}

/* ===== 厂区固定引导路线箭头 ===== */
.map-route-arrow-icon {
  background: transparent;
  border: 0;
}
.map-route-arrow-icon span {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 2px #fff, 0 1px 2px rgba(120, 20, 20, .55);
  transform-origin: center;
}

/* 用户当前位置 marker（实时蓝点，收到朝向后显示箭头） */
.map-user-marker-icon {
  position: relative;
  background: transparent;
  border: 0;
}
.map-user-marker-icon .user-heading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 20px solid rgba(22, 119, 255, .9);
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s ease;
  pointer-events: none;
  z-index: 0;
}
.map-user-marker-icon .user-heading.visible {
  opacity: 1;
  visibility: visible;
}
.map-user-marker-icon .user-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #1677ff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .28), 0 2px 8px rgba(0, 0, 0, .28);
  z-index: 1;
}
.map-right-tools {
  position: absolute;
  right: 12px;
  top: 208px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-right-tools .location {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.94);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 15px rgba(26, 75, 81, .16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.map-right-tools .location img { width: 24px; height: 24px; object-fit: contain; }
.map-right-tools .orientation-permission {
  font-size: 11px;
  font-weight: 800;
  color: #216b75;
  padding: 0 4px;
}
.map-layer-toggle {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(26, 75, 81, .16);
  font-size: 11px; font-weight: 700; color: #216b75;
  cursor: pointer; line-height: 1.1; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.map-layer-toggle:active { transform: scale(.94); }
#mapRestoreBtn.hidden { display: none; }

.map-bottom {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 12px;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 16px;
  color: #31535e;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(26, 75, 81, .14);
  backdrop-filter: blur(12px);
}
.map-bottom.hidden { display: none; }
.leaflet-div-icon { background: transparent; border: 0; }

/* Leaflet 气泡 callout 模拟 */
.campus-marker {
  --marker-color: #2f80ed;
  --marker-deep: #1d5fbd;
  --marker-soft: rgba(47, 128, 237, .34);
  --marker-shadow: rgba(47, 128, 237, .3);
  position: relative;
  width: 40px;
  height: 46px;
}
.campus-marker.tone-main {
  --marker-color: #168c9a;
  --marker-deep: #08717d;
  --marker-soft: rgba(22, 140, 154, .34);
  --marker-shadow: rgba(22, 140, 154, .32);
}
.campus-marker.tone-nitrile {
  --marker-color: #3b82f6;
  --marker-deep: #245db7;
  --marker-soft: rgba(59, 130, 246, .34);
  --marker-shadow: rgba(59, 130, 246, .3);
}
.campus-marker.tone-pvc {
  --marker-color: #8b5cf6;
  --marker-deep: #6334c4;
  --marker-soft: rgba(139, 92, 246, .34);
  --marker-shadow: rgba(139, 92, 246, .3);
}
.campus-marker.tone-storage {
  --marker-color: #f59e0b;
  --marker-deep: #b96e00;
  --marker-soft: rgba(245, 158, 11, .38);
  --marker-shadow: rgba(245, 158, 11, .32);
}
.campus-marker.tone-eco {
  --marker-color: #14b8a6;
  --marker-deep: #087e72;
  --marker-soft: rgba(20, 184, 166, .36);
  --marker-shadow: rgba(20, 184, 166, .3);
}
.campus-marker.tone-life {
  --marker-color: #22c55e;
  --marker-deep: #13843d;
  --marker-soft: rgba(34, 197, 94, .36);
  --marker-shadow: rgba(34, 197, 94, .3);
}
.campus-marker .marker-pin {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--marker-color);
  background: linear-gradient(145deg, color-mix(in srgb, var(--marker-color) 86%, #fff), var(--marker-color));
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 3px 6px rgba(20, 48, 68, .24), 0 0 0 3px var(--marker-shadow);
  margin-left: 7px;
}
.campus-marker:not(.start):not(.end) .marker-pin::after {
  content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,.88); transform: rotate(45deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.campus-marker:not(.start):not(.end) .marker-label {
  color: var(--marker-deep);
  border-color: var(--marker-soft);
  box-shadow: 0 3px 8px var(--marker-shadow);
}
.campus-marker.gate .marker-pin {
  position: relative;
  width: 30px;
  height: 24px;
  margin-left: 5px;
  border-radius: 6px 6px 2px 2px;
  transform: none;
  background: linear-gradient(145deg, color-mix(in srgb, var(--marker-color) 82%, #fff), var(--marker-color));
}
.campus-marker.gate:not(.start):not(.end) .marker-pin::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  width: 20px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.95);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}
.campus-marker.gate:not(.start):not(.end) .marker-pin::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 7px;
  width: 2px;
  height: 13px;
  background: rgba(255,255,255,.95);
  box-shadow: 5px 0 rgba(255,255,255,.95), 10px 0 rgba(255,255,255,.95);
}
.campus-marker.gate .marker-label {
  top: 30px;
}
.campus-marker.start .marker-pin {
  position: relative; width: 24px; height: 24px; transform: none; border-radius: 50%; background: #07c160;
  display: flex; align-items: center; justify-content: center;
  margin-left: 8px;
}
.campus-marker.start .marker-pin::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: #07c160; transform: translateX(-50%) rotate(45deg); z-index: -1;
}
.campus-marker.start .marker-label { top: 29px; color: #087b45; border-color: rgba(7, 193, 96, .35); font-weight: 700; }
.marker-person { position: absolute; inset: 0; }
.marker-person::before {
  content: ''; position: absolute; left: 50%; top: 4px; width: 6px; height: 6px;
  transform: translateX(-50%);
  border-radius: 50%; background: #fff;
}
.marker-person::after {
  content: ''; position: absolute; left: 50%; top: 11px; width: 11px; height: 8px;
  transform: translateX(-50%);
  border-radius: 8px 8px 5px 5px; background: #fff;
}
.campus-marker.end .marker-pin { background: #fa5151; }
.campus-marker .marker-label {
  position: absolute;
  left: 20px; transform: translateX(-50%);
  top: 30px;
  white-space: nowrap;
  background: rgba(255,255,255,.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 10px;
  color: #222;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* Leaflet 控件微调 */
.leaflet-bottom.leaflet-right .leaflet-control-attribution { font-size: 9px; }

/* ===================== 地点汇总页 ===================== */
.page-site { background: #fff; }
.site-campus {
  position: absolute;
  top: 8px; right: 12px;
  z-index: 5;
}
.site-body { display: flex; height: 100%; }
.site-left {
  width: 78px;
  background: #f0f0f0;
  overflow-y: auto;
  flex: 0 0 78px;
}
.site-left .site-cat {
  height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #333;
  cursor: pointer;
  border-left: 6px solid transparent;
}
.site-left .site-cat.choose {
  border-left-color: #404481;
  background: #fff;
  font-weight: 600;
}
.site-right { flex: 1; overflow-y: auto; padding: 10px 6px 90px; }
.site-title {
  display: flex; align-items: center;
  font-size: 18px; font-weight: 600;
  margin: 2px 4px 8px;
}
.site-title img { width: 24px; height: 24px; margin-right: 6px; }
.site-content { display: flex; flex-flow: row wrap; }
.site-card {
  width: 33.33%;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 10px; cursor: pointer;
}
.site-card img {
  width: 92px; height: 92px; border-radius: 10px; object-fit: cover;
  background: #eee;
}
.site-card .site-card-name {
  margin-top: 4px; font-size: 12px; color: #333;
  display: flex; align-items: center; max-width: 96px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.site-card .site-card-name img { width: 14px; height: 14px; margin-right: 3px; }

/* ===================== 首页 ===================== */
.page-home { background: #fff; }
.home-hero { position: relative; padding-top: 8px; }
.home-hero-label {
  position: absolute; right: 12px; top: 60%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; color: #1c5874; font-size: 15px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 5px 18px 18px 18px; padding: 8px 13px 8px 11px;
  box-shadow: 0 8px 20px rgba(21, 66, 93, .16); backdrop-filter: blur(8px);
}
.home-hero-label::before {
  content: ''; width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(#f6b56c, #e47b5c);
}
.home-school-name {
  text-align: center; font-size: 22px; font-weight: 700; margin-top: 2px;
}
.home-motto { display: flex; justify-content: space-around; padding: 8px 0; }
.home-motto .badge {
  color: #fff; border-radius: 15px; padding: 2px 12px; font-size: 14px;
}
.home-motto .red { background: #ec3b2ecc; }
.home-motto .blue { background: #5fa1ec; }
.home-info {
  display: flex; justify-content: space-around; text-align: center;
  font-size: 14px; padding-bottom: 8px;
}
.home-info .col { display: flex; flex-direction: column; }
.home-banner {
  height: 36px; display: flex; align-items: center; padding-left: 10px;
  font-size: 15px;
}
.home-banner img { width: 26px; height: 26px; margin-right: 12px; object-fit: contain; }
.home-card { padding: 6px 0; }
.home-card-title {
  font-size: 17px; font-weight: 700; padding: 8px 14px 6px;
}
.home-functions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 8px;
}
.home-functions button {
  background: ghostwhite; border: 1px solid #eee; border-radius: 10px;
  padding: 8px; cursor: pointer;
}
.home-functions img { width: 100%; height: auto; border-radius: 6px; }
.home-weather-panel { margin: 0 14px 16px; padding-top: 16px; }
.weather-panel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 4px 10px;
}
.weather-title-kicker {
  display: block; color: #7d8ca5; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; line-height: 1;
}
.weather-panel-head h2 { margin: 5px 0 0; color: #26344d; font-size: 22px; line-height: 1; }
.weather-live {
  display: inline-flex; align-items: center; gap: 6px; color: #4d6b8d;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.weather-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #63d6a0;
  box-shadow: 0 0 0 4px rgba(99, 214, 160, .16);
}
.weather-card {
  min-height: 224px; margin: 0; padding: 18px 18px 16px; border-radius: 24px;
  background: linear-gradient(135deg, #162d57 0%, #245c91 55%, #41a3b2 100%);
  color: #fff; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 14px 28px rgba(36, 92, 145, .22);
}
.weather-card::before,
.weather-card::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
}
.weather-card::before {
  width: 210px; height: 210px; top: -120px; right: -42px;
  background: rgba(255, 255, 255, .13);
}
.weather-card::after {
  width: 160px; height: 160px; bottom: -112px; left: -58px;
  background: rgba(116, 235, 216, .18);
}
.weather-card-content { position: relative; z-index: 1; }
.weather-location { display: flex; flex-direction: column; gap: 4px; }
.weather-label { color: rgba(255, 255, 255, .68); font-size: 11px; letter-spacing: 1px; }
.weather-location strong { font-size: 16px; font-weight: 600; }
.weather-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.weather-temp { display: flex; align-items: flex-start; line-height: .9; }
.weather-temp span { font-size: 64px; font-weight: 300; letter-spacing: -3px; }
.weather-temp sup { margin: 5px 0 0 4px; font-size: 18px; font-weight: 600; }
.weather-condition { display: flex; align-items: center; gap: 8px; }
.weather-condition .icon { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .15)); }
.weather-empty-icon { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; color: rgba(255,255,255,.75); font-size: 24px; }
.weather-condition-copy { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.weather-condition-copy strong { font-size: 17px; font-weight: 600; }
.weather-condition-copy span { color: rgba(255,255,255,.68); font-size: 11px; }
.weather-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 19px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.22); }
.weather-metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.weather-metric span { color: rgba(255,255,255,.58); font-size: 10px; }
.weather-metric strong { overflow: hidden; color: rgba(255,255,255,.95); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.weather-wave { position: absolute; left: -4%; right: -4%; bottom: -30px; z-index: 0; width: 108%; height: 84px; opacity: .26; mix-blend-mode: screen; }
.home-footer { text-align: center; font-size: 12px; color: gray; padding: 12px 0 20px; }

/* ===================== 子页：搜索 ===================== */
.search-root { display: flex; align-items: center; gap: 8px; padding: 12px; background: #fff; }
.search-root .picker { flex: 0 0 auto; }
.search-input {
  flex: 1; height: 34px; border: 1px solid #aaa; border-radius: 17px;
  padding: 0 16px; font-size: 14px; outline: 0;
}
.search-go {
  flex: 0 0 auto; height: 30px; border-radius: 15px; border: 1px solid #aaa;
  background: #07c160; color: #fff; font-size: 15px; font-weight: 700;
  padding: 0 14px; cursor: pointer;
}
.search-history { padding: 0 30rpx; background: #fff; }
.search-history .headline {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; padding: 12px 0;
}
.search-history .headline img { width: 22px; height: 22px; }
.search-history .headline .title { flex: 1; }
.search-chunks { padding: 6px 0 12px; }
.search-chunk {
  display: inline-block; font-size: 12px; line-height: 1;
  padding: 6px 12px; background: #f5f5f5; border: 1px solid #dcdcdc;
  border-radius: 14px; color: #666; margin: 0 8px 10px 0; cursor: pointer;
}
.no-content { text-align: center; color: gray; padding: 16px; }
.search-result { margin: 12px; background: #fff; }
.search-result .headline {
  display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700;
  padding: 10px 0;
}
.search-result .headline img { width: 22px; height: 22px; }
.result-item {
  padding: 12px 4px; border-bottom: 1px solid #eee; cursor: pointer;
  display: flex; flex-direction: column;
}
.result-item .name { font-size: 15px; }
.result-item .alias { color: gray; font-size: 12px; margin-top: 2px; }
.result-empty { color: gray; font-size: 16px; padding: 20px; }

/* ===================== 子页：使用说明 ===================== */
.instruction-body { padding: 14px; background: #f3f3f3; overflow-y: auto; }
.instruction-card { background: #fff; border-radius: 10px; padding: 14px; margin: 4px 0 14px; }
.instruction-h { display: flex; align-items: center; gap: 8px; font-size: 20px; color: #73a5d6; margin-bottom: 10px; }
.instruction-h img { width: 24px; height: 24px; }
.instruction-txt { font-size: 14px; line-height: 22px; color: #444; }
.instruction-row {
  display: flex; border: 1px solid #ccc; border-top: 0; overflow: hidden; margin-top: 12px;
}
.instruction-row.top { border-top: 1px solid #ccc; }
.instruction-row .k {
  width: 50px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #333; border-right: 1px solid #ccc; background: #fafafa;
}
.instruction-row .v { flex: 1; padding: 6px 10px; font-size: 13px; line-height: 22px; color: #444; }
.instruction-btn {
  display: block; width: 200px; margin: 16px auto; padding: 9px; border: 0;
  background: var(--link); color: #fff; border-radius: 6px; font-size: 15px; cursor: pointer;
}

/* ===================== 子页：厂区简介 ===================== */
.introduction-body { background: #fff; overflow-y: auto; }
.intro-swiper { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; height: 205px; }
.intro-swiper .slide { flex: 0 0 100%; scroll-snap-align: center; }
.intro-swiper img { width: 100%; height: 100%; object-fit: cover; }
.intro-swiper-dots { display: flex; justify-content: center; gap: 5px; padding: 4px; }
.intro-swiper-dots i { width: 7px; height: 7px; border-radius: 50%; background: #888; }
.intro-swiper-dots i.on { width: 16px; border-radius: 7px; background: #888; }
.intro-nav {
  position: relative; width: 70px; height: 70px; margin: -35px 0 0 calc(100% - 80px);
}
.intro-nav img { width: 70px; height: 70px; }
.intro-title {
  position: relative; overflow: hidden; margin: 0 16px; padding: 22px 20px 18px;
  color: #173b55; border-radius: 0 0 22px 22px;
  background: linear-gradient(135deg, #f3f8f8 0%, #e5f1f2 100%);
  box-shadow: 0 10px 22px rgba(31, 82, 103, .09);
}
.intro-title::after {
  content: ''; position: absolute; width: 150px; height: 150px; right: -72px; top: -78px;
  border: 1px solid rgba(61, 148, 157, .22); border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(61, 148, 157, .05), 0 0 0 32px rgba(61, 148, 157, .04);
}
.intro-kicker { display: block; color: #5b9298; font-size: 10px; font-weight: 700; letter-spacing: 3px; }
.intro-title .cn { margin-top: 7px; font-size: 32px; font-weight: 700; letter-spacing: 2px; }
.intro-accent { width: 38px; height: 4px; margin: 12px 0 14px; border-radius: 2px; background: linear-gradient(90deg, #efaa62, #5bb8ad); }
.intro-company { display: flex; flex-direction: column; gap: 3px; color: #527083; }
.intro-company span:first-child { font-size: 15px; font-weight: 600; }
.intro-company span:last-child { font-size: 12px; letter-spacing: .5px; }
.intro-text { margin: 20px 20px 0; font-size: 15px; line-height: 25px; white-space: pre-wrap; }
.intro-footer { text-align: center; font-size: 12px; color: gray; padding: 20px; }

/* ===================== 子页：全景 ===================== */
.pano-body { position: relative; flex: 1; overflow: hidden; background: #111; }
.pano-viewport { position: absolute; inset: 0; overflow: hidden; }
.pano-img {
  position: absolute; top: 0; height: 100%;
  transition: transform .4s ease;
}
.pano-btns {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: space-around; color: #fff;
}
.pano-btn {
  width: 88px; height: 100px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; font-weight: 700;
  cursor: pointer; font-size: 13px;
}
.pano-btn img { width: 52px; height: 52px; }
.pano-hint { position: absolute; top: 16px; left: 16px; color: rgba(255,255,255,.9); font-size: 14px; }

/* ===== 首页细节修正 ===== */
.home-hero-label { top: 58%; right: 8px; }
.home-motto { flex-wrap: wrap; gap: 6px; padding: 8px 8px; }
.home-motto .badge { font-size: 13px; padding: 3px 10px; }
.home-info-sub { font-size: 12px; color: #555; margin-top: 2px; }

.home-hero-label { position: static !important; top: auto !important; right: auto !important; width: fit-content; margin: 2px 10px 0 auto; padding: 8px 13px 8px 11px; }


/* ===== 响应式与溢出修正 ===== */
.search-input { flex: 1 1 0 !important; width: 0 !important; min-width: 0 !important; }
.search-root { min-width: 0; }
.home-info { font-size: 13px; }
.home-info .col { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.home-info-sub { font-size: 12px; }
.home-motto { gap: 8px; }
.home-motto .badge { white-space: nowrap; }
.map-field { min-width: 0; }
.map-input { min-width: 0; }
.map-top-left { min-width: 0; }


/* =========================================================
   高端主题 · 医疗企业版（首页 / 地点汇总 / 全局）
   ========================================================= */
:root {
  --t-navy: #071d33;
  --t-deep: #0a3a63;
  --t-steel: #0f6a86;
  --t-teal: #12b39f;
  --t-cyan: #2f9ad0;
  --t-amber: #f4b362;
  --t-bg: #eef4fb;
  --t-card: #ffffff;
  --t-text: #10293f;
  --t-muted: #7c8da1;
  --t-line: #e8eef5;
  --t-shadow: 0 14px 34px rgba(16, 48, 84, .12);
}

html, body { font-family: 'Manrope', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* 底部栏玻璃化 */
.tabbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(16,42,63,.08);
  box-shadow: 0 -10px 30px rgba(16,42,63,.08);
}
.tab-item.active { color: #0d9e8f; }

/* 页面底色 */
.page-home, .page-site { background: var(--t-bg); }

/* =========================================================
   首页 Hero
   ========================================================= */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 28px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% -20%, rgba(64, 218, 205, .40), transparent 55%),
    radial-gradient(120% 100% at -10% 110%, rgba(37, 151, 213, .38), transparent 60%),
    linear-gradient(140deg, #07233f 0%, #0a3a63 45%, #0f6a86 78%, #128c85 100%);
  border-radius: 0 0 34px 34px;
  box-shadow: 0 18px 40px rgba(7, 35, 63, .25);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 76%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 76%);
}
.hero-orb {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(2px); opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-a { width: 180px; height: 180px; top: -70px; right: -40px; }
.orb-b { width: 150px; height: 150px; bottom: -70px; left: -40px; background: radial-gradient(circle at 30% 30%, rgba(56,205,190,.55), transparent 60%); animation-duration: 11s; animation-direction: reverse; }
.orb-c { width: 90px; height: 90px; top: 38%; left: 55%; opacity: .25; animation-duration: 7s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(10px,-12px) scale(1.08); }
}
.hero-shine {
  position: absolute; z-index: 0; top: -40%; left: -30%; width: 70%; height: 130%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent);
  transform: rotate(12deg);
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { transform: translateX(-20%) rotate(12deg); } 50% { transform: translateX(30%) rotate(12deg); } }

.hero-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.78); }
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #4fe0cb; box-shadow: 0 0 0 4px rgba(79,224,203,.18); }
.hero-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; background: rgba(255,255,255,.12);
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.hero-link:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.hero-link i { width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(#f6b56c,#e47b5c); }

.home-school-name { position: relative; z-index: 2; margin: 18px 0 2px; font-size: 30px; font-weight: 900; letter-spacing: .5px; line-height: 1.15; }
.home-english { position: relative; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: 4px; color: rgba(255,255,255,.66); text-transform: uppercase; }
.hero-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tags .tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #e8fbff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.hero-tags .tag-accent { color: #0b3247; background: linear-gradient(135deg, #4fe0cb, #2f9ad0); border-color: transparent; box-shadow: 0 8px 18px rgba(47,154,208,.35); }
.hero-quote { position: relative; z-index: 2; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.hero-quote .quote-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #4fe0cb; margin-bottom: 6px; }
.hero-quote .quote-text { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.94); }

/* ---- 首页天气 ---- */
.home-weather-panel { margin: 16px 14px 0; position: relative; z-index: 3; }
.weather-panel-head { padding: 0 4px 10px; }
.weather-title-kicker { color: #7c8da1; }
.weather-panel-head h2 { color: #10293f; }
.weather-live { color: #0d6f68; }
.weather-card { border-radius: 26px; box-shadow: 0 18px 40px rgba(36, 92, 145, .26), inset 0 1px 0 rgba(255,255,255,.2); }
.weather-card::before { background: rgba(255,255,255,.16); }

/* ---- 首页数据速览 ---- */
.home-info { display: block; text-align: left; margin: 16px 14px 0; padding: 18px 16px 16px; background: var(--t-card); border-radius: 22px; border: 1px solid var(--t-line); box-shadow: var(--t-shadow); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.quick { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quick-label { font-size: 11px; color: var(--t-muted); }
.quick strong { font-size: 15px; font-weight: 800; color: var(--t-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-addr { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e1e9f2; color: #7c8da1; font-size: 12px; line-height: 1.5; }
.quick-addr img { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---- 首页欢迎条 ---- */
.home-banner { display: flex; align-items: center; gap: 10px; margin: 14px 14px 0; padding: 11px 14px; border-radius: 16px; background: linear-gradient(90deg, #e8f6f4, #e8f2fb); color: #14506a; font-size: 13px; border: 1px solid #d9ecf0; }
.home-banner .banner-ic { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.home-banner span { line-height: 1.4; }

/* ---- 首页常用功能 ---- */
.home-card { margin: 0; }
.home-card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--t-text); padding: 16px 18px 10px; }
.title-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, #12b39f, #2f9ad0); color: #fff; font-size: 13px; box-shadow: 0 6px 14px rgba(47,154,208,.3); }
.home-functions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.home-functions .func-btn { position: relative; display: block; border: 0; margin: 0; padding: 0; background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer; aspect-ratio: 1.5 / 1; box-shadow: 0 10px 24px rgba(16,48,84,.10); transition: transform .18s ease, box-shadow .18s ease; }
.home-functions .func-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(16,48,84,.16); }
.home-functions .func-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-functions .func-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-functions .func-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3px; height: 118px; padding: 14px; border: 0; border-radius: 20px; overflow: hidden; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 12px 26px rgba(16,48,84,.14); transition: transform .18s ease, box-shadow .18s ease; }
.home-functions .func-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.30), transparent 46%); pointer-events: none; }
.home-functions .func-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16,48,84,.18); }
.func-card-icon { position: absolute; top: 12px; right: 12px; font-size: 27px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.func-card-label { position: relative; z-index: 1; font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.func-card-sub { position: relative; z-index: 1; font-size: 11px; font-weight: 500; opacity: .92; }
.home-functions .func-card.grad-orange { background: linear-gradient(135deg, #f7b267, #ef8f43); }
.home-functions .func-card.grad-teal { background: linear-gradient(135deg, #12b39f, #0f6a86); }
.home-functions .func-card.grad-blue { background: linear-gradient(135deg, #3b82f6, #1e56c8); }
.home-functions .func-card.grad-green { background: linear-gradient(135deg, #35cfa0, #1f9e6f); }
.home-functions .func-card.grad-red { background: linear-gradient(135deg, #ff7a6b, #ef463b); }

/* ---- 首页页脚 ---- */
.home-footer { text-align: center; font-size: 12px; color: #9aa7b8; padding: 22px 0 26px; }

/* =========================================================
   地点汇总页
   ========================================================= */
.site-head {
  position: relative; overflow: hidden;
  padding: 20px 18px 22px; color: #fff;
  background:
    radial-gradient(120% 100% at 90% -20%, rgba(64,218,205,.35), transparent 55%),
    radial-gradient(120% 120% at 0% 120%, rgba(37,151,213,.35), transparent 55%),
    linear-gradient(135deg, #07233f, #0f6a86 70%, #128c85);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 16px 36px rgba(7,35,63,.22);
}
.site-head-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 78%); }
.site-head-content { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.site-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 3px; color: rgba(255,255,255,.7); }
.site-head-title { margin: 6px 0 2px; font-size: 24px; font-weight: 900; letter-spacing: .5px; }
.site-head-sub { margin: 0; font-size: 12px; color: rgba(255,255,255,.72); }
.site-campus { flex: 0 0 auto; }
.site-campus .picker {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.site-campus .picker::after { color: rgba(255,255,255,.75); }

.site-body { display: flex; flex-direction: column; height: calc(100% - 118px); }
.site-left { display: flex; flex-wrap: wrap; gap: 9px; width: auto; flex: 0 0 auto; padding: 14px 16px 8px; background: transparent; }
.site-left::-webkit-scrollbar { display: none; }
.site-left .site-cat {
  display: inline-flex; align-items: center; gap: 6px; height: auto;
  flex: 0 0 auto; padding: 9px 15px; border-radius: 999px;
  border: 1px solid #e4ebf3; background: #fff; color: #41556b;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(16,48,84,.04);
  transition: all .2s ease;
}
.site-left .site-cat.choose {
  color: #fff; background: linear-gradient(135deg, #12b39f, #2f9ad0);
  border-color: transparent; box-shadow: 0 10px 20px rgba(31,162,175,.32);
  font-weight: 700;
}
.site-left .site-cat .cat-ic { font-size: 15px; line-height: 1; }
.site-right { flex: 1; overflow-y: auto; padding: 10px 16px 100px; }
.site-right::-webkit-scrollbar { width: 0; height: 0; }
.site-left::-webkit-scrollbar { width: 0; height: 0; }
.site-title { display: flex; align-items: center; gap: 8px; margin: 4px 4px 14px; font-size: 20px; font-weight: 800; color: var(--t-text); }
.site-title img { width: 22px; height: 22px; margin-right: 0; object-fit: contain; }
.site-title-name { color: var(--t-text); }
.site-title-count { margin-left: auto; font-size: 11px; font-weight: 600; color: #6f8296; background: #eaf1f8; padding: 5px 11px; border-radius: 999px; }
.site-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.site-card { position: relative; display: block; width: auto; border: 0; margin: 0; padding: 0; background: #fff; border-radius: 18px; overflow: hidden; text-align: left; cursor: pointer; box-shadow: 0 10px 24px rgba(16,48,84,.08); transition: transform .18s ease, box-shadow .18s ease; }
.site-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(16,48,84,.15); }
.site-card-media { position: relative; display: block; width: 100%; aspect-ratio: 1.35 / 1; overflow: hidden; background: #0b2b47; }
.site-card-media .site-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; background: transparent; border-radius: 0; }
.site-card:hover .site-card-img { transform: scale(1.07); }
.site-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,25,45,0) 32%, rgba(6,25,45,.78) 100%); }
.site-card-num { position: absolute; top: 9px; left: 10px; z-index: 2; font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 800; color: #fff; background: rgba(6,25,45,.32); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); padding: 2px 8px; border-radius: 999px; letter-spacing: 1px; }
.site-card-type { position: absolute; bottom: 9px; left: 10px; right: 10px; z-index: 2; font-size: 10px; color: rgba(255,255,255,.82); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.site-card-body { display: block; padding: 11px 12px 13px; }
.site-card-body .site-card-name { display: block; margin: 0; font-size: 15px; font-weight: 800; color: #12293f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card-body .site-card-alias { display: block; margin-top: 4px; font-size: 11px; color: #8296a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 窄屏适配 ===== */
@media (max-width: 360px) {
  .home-school-name { font-size: 26px; }
  .site-head-title { font-size: 21px; }
  .home-functions .func-card { height: 106px; }
  .home-hero { padding-left: 16px; padding-right: 16px; }
  .site-head { padding-left: 15px; padding-right: 15px; }
}
