






.mc-page { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: #eef1f5; overflow: hidden; }

#mcMap { position: absolute; inset: 0; z-index: 0; }


.mc-panel {
  position: absolute; top: 16px; bottom: 48px; z-index: 500;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2e6ed; border-radius: 4px;
  transition: transform .2s ease, width .2s ease;
}
.mc-left { left: 16px; width: 260px; }
.mc-right { right: 16px; width: 300px; bottom: 16px; }
.mc-left.is-folded { transform: translateX(calc(-100% - 20px)); }
.mc-right.is-folded { transform: translateX(calc(100% + 20px)); }
.mc-panel-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5; flex-shrink: 0;
}
.mc-panel-title { flex: 1; min-width: 0; font-size: 15px; color: #1F2329; }
.mc-fold {
  width: 28px; height: 28px; border: 0; background: transparent; color: #8a94a6;
  border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.mc-fold:hover { background: #f2f4f7; color: #1F2329; }
.mc-left .mc-fold .iconfont { transform: rotate(180deg); display: inline-block; }


.mc-tab {
  position: absolute; top: 16px; z-index: 499; display: none;
  padding: 10px 6px; writing-mode: vertical-rl; letter-spacing: 2px;
  background: #fff; border: 1px solid #e2e6ed; color: #1A4FBE; font-size: 13px; cursor: pointer;
}
.mc-tab:hover { background: #f4f7fc; }
.mc-tab-left { left: 0; border-left: 0; border-radius: 0 4px 4px 0; }
.mc-tab-right { right: 0; border-right: 0; border-radius: 4px 0 0 4px; }
.mc-left.is-folded ~ .mc-tab-left, .mc-right.is-folded ~ .mc-tab-right { display: block; }


.mc-search { padding: 10px 12px 6px; flex-shrink: 0; }
.mc-search input {
  width: 100%; box-sizing: border-box; height: 32px; padding: 0 10px; font-size: 13px;
  border: 1px solid #e2e6ed; border-radius: 4px; outline: none; color: #1F2329;
}
.mc-search input:focus { border-color: #9cbcec; }
.mc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; }
.mc-group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 6px; border: 0; background: transparent; color: #4A5568; font-size: 13px; cursor: pointer;
}
.mc-group-head:hover { color: #1F2329; }
.mc-group-head .iconfont { font-size: 12px; color: #a3acba; transition: transform .15s; }
.mc-group.is-open .mc-group-head .iconfont { transform: rotate(180deg); }
.mc-group-body { list-style: none; margin: 0; padding: 0 0 4px; display: none; }
.mc-group.is-open .mc-group-body { display: block; }
.mc-ind {
  width: 100%; text-align: left; padding: 6px 10px; border: 0; background: transparent;
  font-size: 13px; color: #333; border-radius: 4px; cursor: pointer; line-height: 1.5;
}
.mc-ind:hover { background: #f2f4f7; }
.mc-ind.is-active { background: #eaf0fb; color: #1A4FBE; }
.mc-vip { margin-left: 4px; font-size: 12px; color: #c8912d; }
.mc-empty { padding: 24px 8px; text-align: center; color: #a3acba; font-size: 13px; }



.mc-table-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 0px 4px 8px; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mc-table th { position: sticky; top: 0; background: #fff; color: #8a94a6; font-weight: normal; font-size: 12px; text-align: center; padding: 6px 8px; white-space: nowrap; }
.mc-table td { text-align: center; padding: 10px 8px; border-top: 1px solid #f3f4f7; color: #333; }
.mc-table tr[data-id] { cursor: pointer; }
.mc-table tr[data-id]:hover td, .mc-table tr.is-active td { background: #f4f7fc; }
.mc-table .rk { width: 50px; color: #8a94a6; }
.mc-table .vl { text-align: right; white-space: nowrap; color: #555; }

.mc-table .nm { width: 100%; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-table .vl em { margin-left: 4px; font-style: normal; font-size: 11px; color: #a3acba; }   
.mc-table th.mc-sort { cursor: pointer; white-space: nowrap; }
.mc-table th.mc-sort:hover { color: #1A4FBE; }
.mc-table th.mc-sort .iconfont { font-size: 10px; margin-left: 2px; display: inline-block; transition: transform .15s; }
.mc-table th.mc-sort.is-asc .iconfont { transform: rotate(180deg); }
.mc-table .go { width: 20px; color: #a3acba; text-align: right; }
.mc-table .go:hover { color: #1A4FBE; }
.mc-na { color: #a3acba; }


.mc-top {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 501;
  display: flex; align-items: center; gap: 14px; padding: 6px 12px; max-width: calc(100% - 640px);
  background: #fff; border: 1px solid #e2e6ed; border-radius: 4px; font-size: 13px; white-space: nowrap;
}
.mc-crumb { display: flex; align-items: center; gap: 4px; color: #1F2329; min-width: 0; overflow: hidden; }
.mc-crumb a { color: #1A4FBE; cursor: pointer; text-decoration: none; }
.mc-crumb a:hover { color: #1240A0; }
.mc-crumb .iconfont { font-size: 11px; color: #a3acba; }
.mc-check { display: inline-flex; align-items: center; gap: 4px; color: #4A5568; font-size: 12px; cursor: pointer; }
.mc-check input { accent-color: #1A4FBE; margin: 0; }

.mc-check[hidden] { display: none; }


.mc-legend {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 500;
  display: flex; align-items: center; gap: 10px; padding: 5px 10px; white-space: nowrap;
  background: rgba(255,255,255,.94); border: 1px solid #e2e6ed; border-radius: 4px; font-size: 11px; color: #8a94a6;
}
.mc-legend-bar { display: flex; width: 150px; height: 8px; }
.mc-legend-bar span { flex: 1; }
.mc-legend-scale { display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.mc-legend-scale span + span::before { content: '—'; margin-right: 6px; color: #c7cdd6; }


.mc-years {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 500;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  width: clamp(300px, 36vw, 540px); box-sizing: border-box;
  background: #fff; border: 1px solid #e2e6ed; border-radius: 4px; font-size: 12px; color: #8a94a6;
}
.mc-play {
  width: 28px; height: 28px; flex-shrink: 0; border: 1px solid #d5deee; border-radius: 50%;
  background: #f4f7fc; color: #1A4FBE; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.mc-play:hover { background: #e9effa; }
.mc-play svg { width: 12px; height: 12px; fill: currentColor; }
.mc-play .ic-pause, .mc-play.is-playing .ic-play { display: none; }
.mc-play.is-playing .ic-pause { display: block; }
.mc-years input[type=range] { flex: 1; min-width: 0; accent-color: #1A4FBE; }
.mc-year-label { min-width: 52px; text-align: center; color: #1F2329; font-size: 13px; font-variant-numeric: tabular-nums; }
.mc-latest { border: 1px solid #e2e6ed; background: #fff; color: #4A5568; font-size: 12px; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.mc-latest.is-active { border-color: #9cbcec; color: #1A4FBE; background: #f4f7fc; }


.mc-tip {
  position: absolute; z-index: 600; pointer-events: none; min-width: 120px;
  background: #fff; border: 1px solid #e2e6ed; border-radius: 4px; padding: 8px 12px; font-size: 12px; line-height: 18px;
}
.mc-tip-name, .mc-card .mc-tip-name { color: #8a94a6; }
.mc-tip-val { font-size: 14px; color: #1F2329; font-variant-numeric: tabular-nums; }
.mc-tip-rank { color: #4A5568; }
.mc-tip-hint { margin-top: 4px; color: #a3acba; }
.mc-card {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 620;
  min-width: 220px; background: #fff; border: 1px solid #e2e6ed; border-radius: 4px; padding: 12px 14px; font-size: 13px;
}
.mc-card-acts { display: flex; gap: 8px; margin-top: 10px; }
.mc-notice {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); z-index: 610;
  min-width: 260px; text-align: center; background: #fff; border: 1px solid #e2e6ed; border-radius: 4px;
  padding: 20px 24px; font-size: 14px; color: #1F2329;
}
.mc-notice p { margin: 0 0 14px; }
.mc-loading {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 612;
  padding: 4px 12px; background: #1F2329; color: #fff; font-size: 12px; border-radius: 4px; opacity: .85;
}
.mc-btn {
  display: inline-block; margin: 0 4px; padding: 6px 16px; font-size: 13px; border-radius: 4px; cursor: pointer;
  border: 1px solid #d5deee; background: #fff; color: #1A4FBE; text-decoration: none;
}
.mc-btn:hover { background: #f4f7fc; }
.mc-btn-primary { background: #1A4FBE; border-color: #1A4FBE; color: #fff; }
.mc-btn-primary:hover { background: #1240A0; color: #fff; }


.mc-page .tdt-label { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }

.tdt-bub {
  position: absolute; transform: translate(-50%, -50%); border-radius: 50%; cursor: pointer;
  border: 1px solid #1A4FBE; opacity: .9; box-sizing: border-box;
}
.tdt-bub:hover { opacity: 1; filter: brightness(.92); }
.tdt-bub.is-active { opacity: 1; border: 2px solid #1F2329; }


.tdt-val {
  --halo: #fff;
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 14px; line-height: 1; color: #1F2329;
  pointer-events: none; font-variant-numeric: tabular-nums;
  text-shadow: 1px 0 0 var(--halo), -1px 0 0 var(--halo), 0 1px 0 var(--halo), 0 -1px 0 var(--halo),
    1px 1px 0 var(--halo), -1px -1px 0 var(--halo), 1px -1px 0 var(--halo), -1px 1px 0 var(--halo);
}
.tdt-val.is-dark { color: #fff; --halo: #1F2329; }

.mc-mask, .mc-mbar, .mc-close { display: none; }


.mc-mobile.mc-page { top: 48px; display: flex; flex-direction: column; }
.mc-mobile #mcMap { position: relative; inset: auto; flex: 1; min-height: 0; }
.mc-mobile .mc-panel {
  left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 62vh; z-index: 700;
  border-radius: 4px 4px 0 0; border-bottom: 0; transform: translateY(100%);
}
.mc-mobile .mc-panel.is-open { transform: translateY(0); }
.mc-mobile .mc-fold, .mc-mobile .mc-tab { display: none !important; }
.mc-mobile .mc-close { display: inline-flex; width: 28px; height: 28px; border: 0; background: transparent; color: #8a94a6; align-items: center; justify-content: center; }
.mc-mobile .mc-mask { display: block; position: fixed; inset: 0; z-index: 690; background: rgba(0,0,0,.35); }
.mc-mobile .mc-mask[hidden] { display: none; }
.mc-mobile .mc-top { top: 10px; max-width: calc(100% - 20px); gap: 8px; padding: 5px 8px; }
.mc-mobile .mc-legend { top: 52px; gap: 8px; }
.mc-mobile .mc-legend-bar { width: 90px; }

.mc-mobile .mc-years { bottom: 78px; width: calc(100% - 20px); }
.mc-mobile .mc-card { bottom: 132px; width: calc(100% - 32px); box-sizing: border-box; }
.mc-mobile .mc-mbar { display: flex; flex-shrink: 0; height: 52px; background: #fff; border-top: 1px solid #e2e6ed; }
.mc-mobile .mc-mbar button {
  flex: 1; border: 0; background: transparent; color: #4A5568; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.mc-mobile .mc-mbar button + button { border-left: 1px solid #f0f2f5; }
.mc-mobile .mc-mbar button:active { background: #f4f7fc; }

