
:root {
  --bg: #f4fbf7;
  --panel: rgba(255,255,255,.94);
  --panel2: #f8fffb;
  --line: #d5eadf;
  --text: #173a2c;
  --muted: #668678;
  --green: #1f9d64;
  --green2: #50c878;
  --blue: #3fa7d6;
  --gold: #f3b63f;
  --coral: #f47b64;
  --shadow: 0 18px 45px rgba(41,112,79,.14);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
body.page-enter main {
  animation: fadeInUp 0.6s ease-out forwards;
}
body.page-enter .topbar {
  animation: slideInLeft 0.5s ease-out 0.1s forwards;
  opacity: 0;
}
body.page-enter .sidebar {
  animation: slideInRight 0.5s ease-out 0.15s forwards;
  opacity: 0;
}
body.page-enter .map-container, body.page-enter .dash-grid {
  animation: scaleIn 0.6s ease-out 0.25s forwards;
  opacity: 0;
}
body.page-enter .entry-carousel-container {
  animation: fadeInUp 0.7s ease-out 0.2s forwards;
  opacity: 0;
}
body.page-enter .entry-header {
  animation: fadeInUp 0.6s ease-out forwards;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 9%, rgba(80,200,120,.23), transparent 26%),
    radial-gradient(circle at 93% 8%, rgba(63,167,214,.18), transparent 25%),
    linear-gradient(135deg, #f9fff9 0%, #edf9f2 48%, #f6fbff 100%);
}
body.map-page { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.shell { min-height: 100vh; padding: 22px; display: grid; gap: 16px; }
.map-page .shell { height: 100vh; min-height: 0; grid-template-rows: auto minmax(0,1fr); gap: 14px; padding: 16px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: linear-gradient(120deg,#fff,rgba(236,249,241,.95));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.header-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.header-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.topbar .brand, .topbar .nav { position: relative; z-index: 1; }
.brand h1 { margin: 0; color: #0f5b3a; font-size: clamp(28px,3.6vw,48px); line-height: 1.08; }
.brand p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.map-page .brand h1 { font-size: clamp(24px,2.6vw,36px); }
.map-page .brand p { margin-top: 6px; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .btn, button {
  border: 1px solid #bfe6d0; background: #f2fff7; color: #11653f;
  padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.nav a.primary, .btn.primary { background: linear-gradient(120deg,#1f9d64,#50c878); color: #fff; border-color: transparent; }
.grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; min-height: calc(100vh - 138px); }
.map-page .grid { height: 100%; min-height: 0; grid-template-columns: 360px minmax(0,1fr); }
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sidebar { padding: 16px; display: grid; grid-template-rows: auto auto 1fr; gap: 0; min-height: 0; }
.map-page .sidebar { min-height: 0; overflow: hidden; }
.sidebar-bg-tree { background: linear-gradient(rgba(255,255,255,0.80), rgba(248,252,249,0.84)), url('目录栏插图/第一图层.png') center/cover no-repeat; }
.sidebar-bg-forest { background: linear-gradient(rgba(255,255,255,0.80), rgba(248,252,249,0.84)), url('目录栏插图/第二图层.png') center/cover no-repeat; }
.sidebar-bg-food { background: linear-gradient(rgba(255,255,255,0.80), rgba(248,252,249,0.84)), url('目录栏插图/第三图层.jpg') center/cover no-repeat; }
.sidebar-bg-tour { background: linear-gradient(rgba(255,255,255,0.80), rgba(248,252,249,0.84)), url('目录栏插图/第四图层.jpg') center/cover no-repeat; }
.sidebar-bg-feiyi { background: linear-gradient(rgba(255,255,255,0.80), rgba(248,252,249,0.84)), url('目录栏插图/第五图层.jpg') center/cover no-repeat; }
.search { width: 100%; border: 1px solid var(--line); padding: 12px; font-size: 14px; background: #fff; color: var(--text); }
.layers { display: flex; flex-direction: column; gap: 0; }
.layer {
  padding: 8px 12px;
  border: 1px solid #dceee5;
  background: #fff;
  color: #315849;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px 4px 0 0;
  position: relative;
  margin-bottom: -1px;
}
.layer[data-layer="tree"] { grid-column: span 2; }
.layer[data-layer="tree"]::before { content: "★ "; color: #f3b63f; }
.layer:hover {
  border-color: #a8dfbf;
  background: #f4fff9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,157,100,.1);
}
.layer.active {
  background: linear-gradient(135deg, #1f9d64, #50c878);
  color: #fff;
  border-color: #1f9d64;
  box-shadow: 0 4px 14px rgba(31,157,100,.25);
}
.layer.active:hover { transform: translateY(0); }
/* 示例图层激活时使用各自配色 */
.layer[data-layer="forest"].active { background: linear-gradient(135deg, #2a8c3a, #4cae50); border-color: #2a8c3a; box-shadow: 0 4px 14px rgba(42,140,58,.25); }
.layer[data-layer="agri"].active   { background: linear-gradient(135deg, #e0a020, #f3b63f); border-color: #e0a020; box-shadow: 0 4px 14px rgba(224,160,32,.25); }
.layer[data-layer="tour"].active   { background: linear-gradient(135deg, #2b8db8, #3fa7d6); border-color: #2b8db8; box-shadow: 0 4px 14px rgba(43,141,184,.25); }
.layer[data-layer="plan"].active   { background: linear-gradient(135deg, #6770b8, #7b88d1); border-color: #6770b8; box-shadow: 0 4px 14px rgba(103,112,184,.25); }
/* 图层图例 */
.layer-legend {
  display: grid; gap: 4px; margin-top: 8px; padding: 8px 10px;
  background: #f8fffb; border: 1px dashed #dceee5; border-radius: 6px;
  font-size: 11px; color: #517565;
}
.layer-legend div { display: flex; align-items: center; gap: 6px; }
.layer-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.list { overflow-y: auto; overflow-x: hidden; display: grid; gap: 4px; padding-right: 4px; margin-top: -4px; }
.map-page .list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#foodIndex { max-height: 200px; }
.scroll-list { overflow-y: auto; max-height: 200px; display: grid; gap: 2px; padding-right: 4px; }
.item { padding: 8px 10px; border: 1px solid #e2efe8; border-radius: 4px; background: #fff; cursor: pointer; font-size: 12px; }
.item:hover, .item.active { border-color: #50c878; background: #f3fff8; }
.item strong { display: block; color: #164f37; font-size: 13px; margin-bottom: 2px; }
.item span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.feiyi-detail { padding: 12px; border: 2px solid #164f37; border-top: none; background: #fafffe; margin-bottom: 4px; }
.feiyi-detail .detail-tags { display: flex; gap: 8px; margin-bottom: 10px; }
.feiyi-detail .detail-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e2efe8; font-size: 13px; }
.feiyi-detail .detail-label { color: var(--muted); }
.feiyi-detail .detail-desc b { display: block; color: #164f37; margin-bottom: 6px; font-size: 13px; }
.feiyi-detail .detail-desc p { color: #4a5568; font-size: 13px; line-height: 1.6; margin: 0; }
.group { margin-bottom: 0; }
.group-header { padding: 10px 12px; border: 1px solid #dceee5; border-bottom: none; background: #f8fffb; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.group-header:hover { background: #f0fff4; }
.group-icon { font-size: 10px; color: #50c878; transition: transform 0.2s; }
.group-header strong { color: #164f37; font-size: 14px; }
.group-count { font-size: 12px; color: #50c878; font-weight: 600; }
.group-items { display: none; }
.group-items.visible { display: block; }
.group-items .item { border-top: 1px solid #e2efe8; border-left: none; border-right: none; padding-left: 36px; }
.map-wrap { position: relative; min-height: 620px; overflow: hidden; }
#map { width: 100%; height: 100%; min-height: 620px; background: #e8f6ef; }
.map-page .map-wrap { height: 100%; min-height: 0; }
.map-page #map { height: 100%; min-height: 0; }
.fallback-map {
  position: absolute; inset: 0; display: none; background:
    linear-gradient(115deg, rgba(80,200,120,.12), transparent 48%),
    linear-gradient(0deg, rgba(31,157,100,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,157,100,.06) 1px, transparent 1px), #fbfffd;
  background-size: auto, 42px 42px, 42px 42px;
}
.fallback-map.visible { display: block; }
.fallback-region { position: absolute; inset: 13% 16% 14% 12%; border: 3px solid rgba(31,157,100,.25); border-radius: 48% 52% 44% 56%; transform: rotate(-12deg); background: rgba(223,247,234,.45); }
.dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(243,182,63,.16), 0 8px 16px rgba(137,96,9,.2); cursor: pointer; z-index: 2; }
.dot.grade-1 { background: var(--coral); box-shadow: 0 0 0 6px rgba(244,123,100,.16), 0 8px 16px rgba(137,58,27,.2); }
.dot.grade-2 { background: var(--gold); }
.dot.grade-3 { background: var(--green); box-shadow: 0 0 0 6px rgba(31,157,100,.16), 0 8px 16px rgba(22,94,58,.2); }
.dot.active { width: 18px; height: 18px; transform: translate(-3px,-3px); z-index: 5; }
/* fallback 模式浮动弹窗：跟随点位图标，定位图标与介绍同步在一起 */
.fallback-popup {
  position: absolute;
  z-index: 30;
  display: none;
  width: min(320px, 70%);
  max-height: 55%;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(24,72,50,.28);
  transform: translate(-50%, calc(-100% - 16px));
  pointer-events: auto;
}
.fallback-popup.visible { display: block; }
.fallback-popup::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  filter: drop-shadow(0 2px 2px rgba(24,72,50,.12));
}
/* 弹窗内复用 .popup 样式，但去掉外层阴影 */
.fallback-popup .popup { box-shadow: none; max-height: none; }
.fallback-popup .popup-close {
  position: absolute; top: 6px; right: 8px; z-index: 5;
  width: 24px; height: 24px; border: none; border-radius: 50%;
  background: #f0f5f2; color: #517565; font-size: 16px; line-height: 1;
  cursor: pointer; transition: all 0.2s;
}
.fallback-popup .popup-close:hover { background: #e0ebe5; color: #1f9d64; }
/* 点位在顶部时弹窗翻转到下方 */
.fallback-popup.flip-below { transform: translate(-50%, 16px); }
.fallback-popup.flip-below::after { top: -9px; bottom: auto; border-top: 0; border-bottom: 9px solid #fff; }
.status { position: absolute; left: 16px; top: 16px; z-index: 3; max-width: 420px; background: rgba(255,255,255,.92); border: 1px solid var(--line); padding: 10px 12px; color: #315849; font-size: 13px; box-shadow: var(--shadow); }
.center-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1f9d64, #50c878);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31,157,100,.25);
  transition: all 0.25s ease;
}
.center-btn:hover {
  background: linear-gradient(135deg, #1a8554, #40b068);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31,157,100,.3);
}
.home-btn {
  position: absolute;
  right: 16px;
  top: 62px;
  z-index: 3;
  padding: 10px 16px;
  background: #fff;
  color: #1f9d64;
  border: 1px solid #bfe6d0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31,157,100,.12);
  transition: all 0.25s ease;
}
.home-btn:hover {
  background: #f4fff9;
  border-color: #1f9d64;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31,157,100,.2);
}
.tree-marker {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 7px;
  transform: rotate(-45deg);
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(24,72,50,.28);
  cursor: pointer;
}
.tree-marker.grade-1 { background: var(--coral); }
.tree-marker.grade-2 { background: var(--gold); }
.tree-marker.grade-3 { background: var(--green); }
.tree-marker.is-active {
  width: 36px;
  height: 36px;
  z-index: 5;
  box-shadow: 0 0 0 8px rgba(244,123,100,.18), 0 14px 30px rgba(24,72,50,.32);
}
.tree-marker span {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 900;
}
/* ============ 示例图层 marker（高德地图模式） ============ */
.layer-marker {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 6px 16px rgba(24,72,50,.22);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.layer-marker span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.layer-marker:hover { transform: scale(1.15); z-index: 5; transition: transform 0.2s; }
/* ============ 示例图层点位（fallback 模式） ============ */
.layer-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(24,72,50,.25);
  cursor: pointer;
  z-index: 2;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.layer-dot:hover { transform: translate(-50%, -50%) scale(1.2); z-index: 5; }
/* 示例图层弹窗的标签 */
.popup-tags .tag-sample {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffe07a;
}
/* ============ 弹窗样式 ============ */
.popup {
  width: 380px;
  max-width: min(380px, calc(100vw - 42px));
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #173a2c;
  background: #fff;
  padding: 4px 2px;
  box-sizing: border-box;
}
.popup::-webkit-scrollbar { width: 6px; }
.popup::-webkit-scrollbar-thumb { background: #bfe6d0; border-radius: 3px; }
.popup::-webkit-scrollbar-track { background: transparent; }
.popup-head { padding: 0 4px 8px; border-bottom: 1px dashed #e2efe8; margin-bottom: 10px; }
.popup h3 { margin: 4px 0 8px; color: #0f5b3a; font-size: 19px; line-height: 1.25; word-break: break-word; }
.popup p { margin: 6px 0; color: #496b5d; font-size: 13px; line-height: 1.55; }
.popup-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.popup-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.popup-tags span {
  padding: 3px 8px; border-radius: 999px;
  background: #edf8f2; color: #11653f;
  font-size: 11px; font-weight: 700;
}
.popup-tags .tag-grade-1 { background: #ffe6df; color: #8a3c2c; }
.popup-tags .tag-grade-2 { background: #fff3d6; color: #7a5311; }
.popup-tags .tag-grade-3 { background: #edf8f2; color: #11653f; }
.popup-tags .tag-growth { background: #e8f1f8; color: #1f4e79; }
.popup-tags .tag-env { background: #f0eef9; color: #4a3d8a; }
.popup-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 10px;
}
.popup-facts > div {
  padding: 8px 9px;
  background: #f8fffb;
  border: 1px solid #dceee5;
  border-radius: 4px;
  min-height: 50px;
}
.popup-facts > div.fact-location,
.popup-facts > div.fact-morph {
  grid-column: span 2;
}
.popup-facts b { display: block; margin-bottom: 3px; color: #668678; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.popup-facts span { color: #173a2c; font-size: 12.5px; line-height: 1.45; word-break: break-word; }
.popup-story {
  margin: 8px 0;
  padding: 9px 11px;
  background: #fffaf0;
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.popup-story b { display: block; color: #7a5311; font-size: 12px; margin-bottom: 4px; font-weight: 700; }
.popup-story p { margin: 0; color: #604817; font-size: 12.5px; line-height: 1.6; max-height: 120px; overflow-y: auto; }
.popup-note { padding: 7px 10px; background: #fff5f2; border: 1px solid #ffd7cc; border-radius: 4px; color: #8a3c2c !important; font-size: 12px; margin: 6px 0; }
.popup-source { color: #789184 !important; font-size: 11px !important; margin: 6px 0 0; padding: 0 4px; }
.popup .actions { display: flex; gap: 6px; margin-top: 10px; padding: 0 4px 4px; }
.popup a {
  display: inline-block; flex: 1; text-align: center;
  padding: 9px 6px; background: #1f9d64; color: #fff;
  font-weight: 700; font-size: 13px;
  border-radius: 4px; transition: background 0.2s;
}
.popup a:hover { background: #177a4d; }
.popup a.secondary { background: #f2fff7; color: #11653f; border: 1px solid #bfe6d0; }
.popup a.secondary:hover { background: #e2f6ec; }
.dash-grid { display: grid; grid-template-rows: auto auto min-content auto; gap: 16px; min-height: 100vh; padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; }
.kpi { min-height: 88px; padding: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.kpi::after { content: ""; position: absolute; right: -20px; bottom: -24px; width: 68px; height: 68px; border-radius: 50%; background: rgba(80,200,120,.13); }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi .value { margin-top: 8px; color: #147447; font-size: clamp(20px,2.5vw,32px); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.kpi .unit { color: var(--muted); font-size: 12px; margin-left: 3px; }
.dash-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; min-height: 0; align-items: stretch; }
.col { display: grid; gap: 16px; min-height: 0; }
.col > .card:last-child { flex-grow: 1; display: flex; flex-direction: column; }
.col > .card:last-child > * { flex-shrink: 0; }
.col > .card:last-child > .bar-list,
.col > .card:last-child > .list,
.col > .card:last-child > .donuts,
.col > .card:last-child > .facts,
.col > .card:last-child > #detailContent { flex-grow: 1; overflow-y: auto; min-height: 0; }
.card { padding: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.card h2 { margin: 0 0 12px; color: #144d35; font-size: 16px; }
.bar-list { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(70px,100px) 1fr 36px; align-items: center; gap: 8px; font-size: 12px; }
.bar-name { color: #315849; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bar-track { height: 9px; background: #eef6f1; border: 1px solid #e0efe7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--green2),var(--blue)); }
.bar-value { text-align: right; color: #127449; font-weight: 900; font-variant-numeric: tabular-nums; }
.mini-map { position: relative; height: 320px; border: 1px solid #cce9da; background: linear-gradient(115deg,rgba(80,200,120,.12),transparent 48%), linear-gradient(0deg,rgba(31,157,100,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(31,157,100,.06) 1px,transparent 1px), #fbfffd; background-size: auto,32px 32px,32px 32px; overflow: hidden; }
.mini-map::before { content: ""; position: absolute; inset: 8% 10% 9% 8%; border: 2px solid rgba(31,157,100,.24); border-radius: 48% 52% 44% 56%; background: rgba(223,247,234,.35); }
.town-group { position: absolute; transform: translate(-50%, -50%); text-align: center; cursor: pointer; }
.town-label { display: block; font-size: 11px; color: #144d35; white-space: nowrap; margin-top: 4px; font-weight: 600; }
.town-count { display: block; font-size: 10px; color: #1f9d64; font-weight: 700; }
.mini-map .dot { position: static; display: inline-block; }
.mini-group { position: absolute; transform: translate(-50%, -50%); text-align: center; cursor: pointer; z-index: 2; }
.mini-group .mini-label { display: block; font-size: 10px; color: #144d35; white-space: nowrap; margin-top: 3px; font-weight: 500; opacity: 0.65; transition: all .2s; }
.mini-group:hover .mini-label { opacity: 1; color: #b45309; }
.mini-group.active { z-index: 5; }
.mini-group.active .mini-label { font-size: 12px; font-weight: 700; color: #b45309; opacity: 1; }
.mini-group.active .dot { width: 16px; height: 16px; }
.mini-group.label-up .mini-label { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; margin-top: 0; }
.mini-group.label-left .mini-label { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 6px; margin-top: 0; }
.mini-group.label-right .mini-label { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 6px; margin-top: 0; }
/* 多项共用同一点位：纵向滚轮列表 */
.mini-group-multi { z-index: 3; --h-shift: 0px; }
.mini-group-multi.active { z-index: 8; }
.mini-multi-list {
  position: absolute;
  left: calc(50% + var(--h-shift));
  top: 100%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: #fff;
  border: 1px solid #bfe6d0;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(24,72,50,.22);
  padding: 4px;
  max-height: 90px;
  overflow-y: auto;
  min-width: 120px;
  max-width: 170px;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: #bfe6d0 transparent;
}
/* 列表翻到点的上方 */
.mini-group-multi.list-up .mini-multi-list {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}
/* 列表放到点的右侧 */
.mini-group-multi.list-side-right .mini-multi-list {
  top: 50%;
  bottom: auto;
  left: calc(100% + 10px);
  margin: 0;
  transform: translateY(-50%);
}
/* 列表放到点的左侧 */
.mini-group-multi.list-side-left .mini-multi-list {
  top: 50%;
  bottom: auto;
  right: calc(100% + 10px);
  left: auto;
  margin: 0;
  transform: translateY(-50%);
}
.mini-multi-list::-webkit-scrollbar { width: 4px; }
.mini-multi-list::-webkit-scrollbar-thumb { background: #bfe6d0; border-radius: 2px; }
.mini-multi-list::-webkit-scrollbar-track { background: transparent; }
.mini-multi-title {
  font-size: 10px;
  color: #668678;
  text-align: center;
  padding: 2px 0 4px;
  border-bottom: 1px dashed #e2efe8;
  margin-bottom: 2px;
  font-weight: 700;
}
.mini-multi-item {
  font-size: 11px;
  color: #144d35;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
  text-align: left;
}
.mini-multi-item:hover { background: #f0fff4; color: #1f9d64; }
.mini-multi-item.active {
  background: linear-gradient(135deg, #1f9d64, #50c878);
  color: #fff;
  font-weight: 700;
}
.dash-select { width: 100%; padding: 8px; border: 1px solid #d5eadf; border-radius: 8px; background: #fff; color: #144d35; font-size: 13px; margin-bottom: 12px; }
.detail-card { background: linear-gradient(120deg,#fffaf0,#ffffff); border-color: #f1dca7; }
.detail-card h2 { color: #7a5311; }
.detail-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.detail-title strong { font-size: 18px; color: #7a5311; }
.detail-title span { font-size: 24px; font-weight: 900; color: #c78008; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.fact { padding: 8px; background: rgba(255,255,255,.72); border: 1px solid rgba(241,220,167,.8); }
.fact b { display: block; color: #80601f; font-size: 11px; margin-bottom: 3px; }
.fact span { color: #3b3322; font-size: 13px; line-height: 1.3; }
.story { margin-top: 8px; color: #675632; font-size: 13px; line-height: 1.5; }
.donuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.donut-card { min-height: 140px; display: grid; place-items: center; gap: 8px; padding: 12px; background: linear-gradient(180deg,#fff,#f5fbf7); border: 1px solid #e0efe7; }
.donut { width: 80px; height: 80px; border-radius: 50%; position: relative; background: conic-gradient(var(--green) 0 40%, var(--blue) 40% 70%, var(--gold) 70% 100%); }
.donut::after { content: ""; position: absolute; inset: 18px; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px #e2efe8; }
.legend { display: grid; gap: 6px; width: 100%; color: #517565; font-size: 12px; }
.legend-row { display: flex; justify-content: space-between; gap: 8px; }
.legend-row strong { color: #164f37; }
.footer { display: flex; justify-content: space-between; gap: 14px; color: #668678; font-size: 11px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); }
@media (max-width: 1180px) {
  .grid,.dash-layout { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.map-page { overflow: auto; }
  .map-page .shell { height: auto; min-height: 100vh; }
  .map-page .grid { height: auto; }
  .map-page .sidebar { max-height: 42vh; }
  .map-page .map-wrap { height: 58vh; min-height: 420px; }
}
@media (max-width: 720px) { .shell,.dash-grid { padding: 14px; } .topbar { flex-direction: column; align-items: flex-start; } .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } .facts,.donuts { grid-template-columns: 1fr; } }

/* ============ 入口页面 ============ */
body.entry-page {
  background:
    linear-gradient(rgba(255,255,255,0.40), rgba(255,255,255,0.40)),
    url('主页图片/虚化背景.png') center/cover no-repeat fixed,
    radial-gradient(circle at 20% 30%, rgba(31,157,100,.10), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(63,167,214,.08), transparent 50%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 60px;
}
.entry-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1280px, 96vw);
  margin: 0 auto;
  padding: 40px 0 20px;
}
.entry-header {
  text-align: center;
  margin-bottom: 30px;
}
.entry-header h1 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(32px, 4.5vw, 50px);
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.2;
}
.entry-header h1 span { font-family: 'Ma Shan Zheng', cursive; color: #064526; text-shadow: 0 1px 3px rgba(255,255,255,0.85), 0 0 2px rgba(255,255,255,0.6); }
.entry-header p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.entry-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(41,112,79,.12);
}
.entry-carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-card {
  flex: 0 0 100%;
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  min-height: 500px;
}
.carousel-card:hover {
  box-shadow: 0 15px 50px rgba(41,112,79,.2);
}
.card-image {
  width: 60%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  position: relative;
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.card-bg-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 0;
}
.card-content h3, .card-content p {
  position: relative;
  z-index: 1;
}
.card-content h3 {
  margin: 0 0 14px;
  font-size: 36px;
  color: #0a5c36;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,92,54,0.2), 0 1px 2px rgba(0,92,54,0.15);
  letter-spacing: 2px;
}
.card-content p {
  margin: 0;
  font-size: 18px;
  color: #0a5c36;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,92,54,0.2), 0 1px 2px rgba(0,92,54,0.15);
}
.card-content .card-desc {
  font-size: 15px;
  color: #064526;
  font-weight: 400;
  margin-top: 12px;
  opacity: 0.9;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.carousel-prev:hover, .carousel-next:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }
.carousel-prev::before {
  content: '';
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid var(--text);
}
.carousel-next::before {
  content: '';
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--text);
}
.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(31,157,100,.3);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  background: var(--green);
  transform: scale(1.3);
}
.entry-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.entry-brand {
  position: fixed;
  top: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  opacity: 0.85;
}
.entry-brand .brand-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
}
.entry-brand .brand-text {
  font-size: 32px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* ============ 手机端全面适配 (≤768px) ============ */
@media (max-width: 768px) {
  /* 入口页 - 标题、队徽、内容从上到下自然排列 */
  body.entry-page {
    padding-top: 12px;
    background-attachment: scroll;
  }
  .entry-header {
    text-align: center;
    margin: 0 0 4px;
    padding: 0 16px;
    width: 100%;
  }
  .entry-header h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    margin: 0;
    line-height: 1.3;
  }
  .entry-brand {
    position: static;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; opacity: 1;
    padding: 8px 16px 0;
    width: 100%;
  }
  .entry-brand .brand-logo {
    width: 36px; height: 36px;
  }
  .entry-brand .brand-text {
    font-size: 13px;
  }
  .entry-shell {
    padding: 8px 0 20px;
    width: 96vw;
  }
  .entry-carousel-container { border-radius: 12px; }
  .carousel-card {
    flex-direction: column;
    min-height: auto;
  }
  .card-image { width: 100%; height: 160px; }
  .card-content { padding: 14px; }
  .card-content h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: 1px; }
  .card-content p { font-size: 13px; line-height: 1.5; }
  .card-content .card-desc { font-size: 11px; margin-top: 4px; }
  .carousel-prev, .carousel-next {
    width: 28px; height: 28px;
    font-size: 12px;
  }
  .carousel-prev { left: 2px; }
  .carousel-next { right: 2px; }

  /* 地图页整体布局 */
  body.map-page { overflow: hidden; }
  .map-page .shell {
    height: 100vh; height: 100dvh;
    padding: 0; gap: 0;
    grid-template-rows: auto 1fr;
  }

  /* 顶部栏紧凑化 */
  .topbar {
    padding: 8px 12px;
    flex-direction: row; align-items: center;
    gap: 8px; flex-wrap: nowrap;
  }
  .topbar .header-bg { display: none; }
  .topbar .brand { flex: 1; min-width: 0; }
  .topbar .brand h1 {
    font-size: 15px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar .brand p { display: none; }
  .topbar .nav { gap: 4px; flex-shrink: 0; }
  .topbar .nav a {
    padding: 5px 8px; font-size: 11px;
    white-space: nowrap;
  }

  /* 网格布局：侧边栏+地图 */
  .map-page .grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(80px, 30vh) 1fr;
    height: 100%; min-height: 0; gap: 0;
    overflow: hidden;
  }

  /* 侧边栏紧凑化 */
  .map-page .sidebar {
    max-height: none; overflow-y: auto;
    padding: 8px 10px; border-radius: 0;
    border-left: none; border-right: none;
    grid-template-rows: auto auto 1fr;
  }
  .sidebar .search { padding: 8px 10px; font-size: 13px; }
  .sidebar .layers { gap: 0; }
  .sidebar .layer { padding: 6px 10px; font-size: 12px; }
  .sidebar .list { font-size: 13px; }

  /* 地图容器 - 确保可见 */
  .map-page .map-wrap {
    height: auto; min-height: 0;
    flex: 1; position: relative;
  }
  .map-page .map-wrap #map {
    width: 100%; height: 100%;
    position: absolute; inset: 0;
  }

  /* 地图控件 */
  .center-btn {
    top: auto; bottom: 10px; right: 10px;
    padding: 4px 8px; font-size: 11px;
    border-radius: 6px; line-height: 1.2;
  }
  .status { font-size: 11px; padding: 5px 8px; }

  /* 弹窗紧凑化 */
  .popup { max-width: 260px; font-size: 12px; }
  .popup h3 { font-size: 14px; }

  /* 大屏页 */
  .dash-grid { padding: 10px; gap: 10px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .facts, .donuts { grid-template-columns: 1fr; }
  .topbar .brand h1 { font-size: 15px; }
}
