/* ============ 设备全国分布 (scoped to .home-map) ============ */
.home-map {
  --hm-bg: #0f2233;
  --hm-ink: #f2f6f8;
  --hm-muted: #9fb3c0;
  --hm-line: rgba(255, 255, 255, .1);
  --hm-land: #26405a;
  --hm-land-on: #2f5878;
  --hm-land-focus: #3c6d93;
  --hm-edge: #47657f;
  --hm-red: #e2382b;
  --hm-blue: #6bbefe;
  --hm-ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(16px, 3vw, 64px);
  background:
    radial-gradient(70% 90% at 72% 40%, rgba(60, 120, 170, .22), transparent 70%),
    linear-gradient(180deg, #0d1e2e, var(--hm-bg) 40%, #0c1c2b);
  color: var(--hm-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.home-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(80% 80% at 70% 50%, #000 20%, transparent 75%);
}
.home-map * { box-sizing: border-box; }
.home-map .hm-wrap { max-width: 1680px; margin: 0 auto; display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center; }

/* 左侧文案 */
.home-map .hm-copy { min-width: 0; }
.home-map .hm-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--hm-blue); font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.home-map .hm-kicker::before { content: ""; width: 26px; height: 1px; background: var(--hm-red); }
.home-map h2 { margin: 0; color: var(--hm-ink); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; text-align: left; }
.home-map .hm-lede { max-width: 36em; margin: 18px 0 0; color: var(--hm-muted); font-size: 15px; line-height: 1.9; }
.home-map .hm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--hm-line); }
.home-map .hm-stat { padding: 18px 0 16px; border-bottom: 1px solid var(--hm-line); }
.home-map .hm-stat:nth-child(odd) { padding-right: 18px; }
.home-map .hm-stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hm-line); }
.home-map .hm-stat[hidden] { display: none; }
.home-map .hm-stat dt { color: var(--hm-muted); font-size: 13px; letter-spacing: .04em; }
.home-map .hm-stat dd { margin: 6px 0 0; color: #fff; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-map .hm-stat sup { margin-left: 4px; color: var(--hm-muted); font-size: 14px; font-weight: 500; vertical-align: top; position: relative; top: 4px; }

/* 颜色图例 */
.home-map .hm-legend { margin: 24px 0 0; }
.home-map .hm-legend-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; }
.home-map .hm-legend-bar i { flex: 1; }
.home-map .hm-legend-bar i[data-heat="1"] { background: #1b3c52; }
.home-map .hm-legend-bar i[data-heat="2"] { background: #1d5673; }
.home-map .hm-legend-bar i[data-heat="3"] { background: #1f7493; }
.home-map .hm-legend-bar i[data-heat="4"] { background: #2694ad; }
.home-map .hm-legend-bar i[data-heat="5"] { background: #cc5c2c; }
.home-map .hm-legend-bar i[data-heat="6"] { background: #e2382b; }
.home-map .hm-legend-cap { display: flex; justify-content: space-between; margin-top: 7px; color: var(--hm-muted); font-size: 12px; }
.home-map.is-empty .hm-legend { display: none; }

/* 地图 */
.home-map .hm-stage { position: relative; min-width: 0; }
.home-map .hm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.home-map .hm-prov { fill: #1b3045; stroke: #41607c; stroke-width: .7; stroke-linejoin: round; transition: fill .5s ease; }
/* 数量越多颜色越深，六级 */
.home-map .hm-prov[data-heat="1"] { fill: #1b3c52; }
.home-map .hm-prov[data-heat="2"] { fill: #1d5673; }
.home-map .hm-prov[data-heat="3"] { fill: #1f7493; }
.home-map .hm-prov[data-heat="4"] { fill: #2694ad; }
.home-map .hm-prov[data-heat="5"] { fill: #cc5c2c; }
.home-map .hm-prov[data-heat="6"] { fill: #e2382b; }
.home-map .hm-prov.is-on { cursor: pointer; }
.home-map .hm-prov.is-focus { stroke: #fff; stroke-width: 1.6; filter: brightness(1.25); }
.home-map .hm-prov:focus-visible { outline: none; stroke: #fff; stroke-width: 1.6; }
.home-map .hm-land { opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s var(--hm-ease); }
.home-map.is-in .hm-land { opacity: 1; transform: none; }
.home-map .hm-inset { opacity: 0; transition: opacity .9s ease .3s; }
.home-map.is-in .hm-inset { opacity: 1; }
.home-map .hm-inset-box { fill: rgba(15, 34, 51, .6); stroke: var(--hm-edge); stroke-width: .8; }
.home-map .hm-jd { fill: none; stroke: #7f9bb3; stroke-width: 1.2; stroke-linecap: round; }
.home-map .hm-inset-label { fill: var(--hm-muted); font-size: 11px; text-anchor: end; }

/* 总部标记 */
.home-map .hm-pin { pointer-events: none; opacity: 0; transition: opacity .6s ease .5s; }
.home-map.is-in .hm-pin { opacity: 1; }
.home-map .hm-mark { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.home-map .hm-ring { fill: none; stroke: #fff; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.home-map.is-in .hm-ring { animation: hm-ring 2.8s ease-out infinite; }
@keyframes hm-ring { 0% { transform: scale(.5); opacity: .9; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.home-map .hm-note { margin: 6px 0 0; color: rgba(159, 179, 192, .55); font-size: 11px; text-align: right; }

/* 地图上的悬浮提示 */
.home-map .hm-stage { position: relative; }
.home-map .hm-tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  min-width: 104px; max-width: 190px;
  padding: 8px 12px 9px;
  border: 1px solid rgba(107, 190, 254, .35); border-radius: 8px;
  background: rgba(10, 24, 37, .86);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .75);
  transform: translate(-50%, calc(-100% - 14px));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, left .4s var(--hm-ease), top .4s var(--hm-ease);
}
.home-map .hm-tip.is-on { opacity: 1; visibility: visible; }
.home-map .hm-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 9px; height: 9px; margin-left: -5px;
  border-right: 1px solid rgba(107, 190, 254, .35); border-bottom: 1px solid rgba(107, 190, 254, .35);
  background: rgba(10, 24, 37, .94); transform: rotate(45deg);
}
.home-map .hm-tip.is-left { transform: translate(calc(-100% + 18px), calc(-100% - 20px)); }
.home-map .hm-tip.is-left::after { left: auto; right: 13px; margin-left: 0; }
.home-map .hm-tip.is-below { transform: translate(-50%, 22px); }
.home-map .hm-tip.is-below::after { top: -5px; bottom: auto; border: 0; border-left: 1px solid rgba(107, 190, 254, .35); border-top: 1px solid rgba(107, 190, 254, .35); }
.home-map .hm-tip.is-left.is-below { transform: translate(calc(-100% + 18px), 22px); }
.home-map .hm-tip-name { display: block; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.home-map .hm-tip-num { display: block; margin-top: 3px; color: var(--hm-muted); font-size: 12.5px; }
.home-map .hm-tip-num b { color: #ff8276; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 3px; }

@media (max-width: 1023px) {
  .home-map .hm-wrap { grid-template-columns: 1fr; }
  .home-map .hm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-map .hm-stat:nth-child(n) { padding: 16px 12px 14px; border-left: 1px solid var(--hm-line); }
  .home-map .hm-stat:first-child { padding-left: 0; border-left: 0; }
  .home-map .hm-stage { order: 2; }
}
@media (max-width: 640px) {
  .home-map .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-map .hm-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-map .hm-land, .home-map .hm-inset, .home-map .hm-pin, .home-map .hm-prov, .home-map .hm-tip { transition: none; }
  .home-map .hm-ring { animation: none; }
}
