/* The map on 「你的家乡在荣耀榜中吗？」 (fx/homemap.js). Swiss sheet: flat tints of the logo blues, no borders, no cards. */
.hm { position: absolute; display: flex; flex-direction: column; justify-content: flex-start; opacity: 0; pointer-events: none; transition: opacity .45s ease; --hm-land: #e3e8ec; --hm-on: #9ccce4; --hm-line: #f4f3ef; --hm-dot: #0e2233; --hm-ring: #306c90; --hm-note: #5d6b77; }
html[data-theme="dark"] .hm { --hm-land: rgba(230, 237, 242, .1); --hm-on: #2a5f80; --hm-line: #0b1622; --hm-dot: #e4b448; --hm-ring: #e4b448; --hm-note: #93a3b0; }
.hm.on { opacity: 1; pointer-events: auto; }
.hm-map { position: relative; flex: 0 1 auto; min-height: 0; }
.hm-map svg { display: block; width: 100%; height: 100%; max-height: 100%; overflow: hidden; }   /* the islands south of the sheet are in the inset */
.hm-provs path { fill: var(--hm-land); stroke: var(--hm-line); stroke-width: 1; stroke-linejoin: round; opacity: 0; transition: opacity .7s ease, fill .9s ease; }
.hm.in .hm-provs path { opacity: 1; }
.hm.in .hm-provs path.on { fill: var(--hm-on); }
.hm-jd { fill: none; stroke: #8fa3b3; stroke-width: 1.6px; vector-effect: non-scaling-stroke; opacity: .7; }
.hm-isl { fill: #8fa3b3; stroke: #8fa3b3; stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.hm-inbg { fill: var(--hm-line); }
.hm-infr { fill: none; stroke: #b9c4cc; stroke-width: 1; }
.hm-inlb { font: 500 13px/1 Inter, "Noto Sans SC", sans-serif; fill: var(--hm-note); }
.hm-pin { opacity: 0; }
.hm.in .hm-pin { animation: hmDrop .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hmDrop { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
.hm-pin .dot { fill: var(--hm-dot); stroke: var(--hm-line); stroke-width: 2.5; transition: transform .2s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: center; }
.hm-pin.hot .dot { transform: scale(1.35); }
.hm-pin .ping { fill: none; stroke: var(--hm-ring); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hm.in .hm-pin .ping { animation: hmPing 3s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes hmPing { 0% { transform: scale(.6); opacity: .6; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
.hm-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); padding: 5px 9px; background: #0e2233; color: #f4f3ef; font: 500 12.5px/1.3 Inter, "Noto Sans SC", sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hm-tip.below { transform: translate(-50%, 16px); }
.hm-tip.show { opacity: 1; }
html[data-theme="dark"] .hm-tip { background: #f4f3ef; color: #0e2233; }
.hm-note { flex: none; margin: 14px 0 0; max-width: 34em; font: 400 12.5px/1.6 Inter, "Noto Sans SC", sans-serif; color: var(--hm-note); }
.hm.phone .hm-note { font-size: 12px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .hm.in .hm-pin, .hm.in .hm-pin .ping { animation: none; opacity: 1; } .hm-pin .ping { display: none; } }
