html,
body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}
#container {
  width: 100%;
  height: 100%;
  background: #fff;
}
#container:before,
#container:after {
  content: '';
  display: block;
  position: absolute;
  background-color: rgb(204, 0, 0);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
}
#container:before {
  width: 100px;
  height: 1px;
  margin-left: -50px;
}
#container:after {
  width: 1px;
  height: 50px;
  margin-top: -25px;
}
#warning {
  position: absolute;
  z-index: 160;
  right: 5px;
  bottom: 5px;
  color: #C00;
  font-size:12px;
  background: rgba(204, 0, 0, .8);
  color: #FFF;
  border-radius: 3px;
  padding: 3px 10px;
}
#loading {
  position: absolute;
  left: 0;
  top: 0;
  background: #c00;
  padding: 5px 10px;
  font-size: 12px;
  color: #fff;
  border-radius: 0 0 5px 0;
}
body.add {
  background-color: #f0f0f0;
}
body.add form {
  width: 500px;
  background-color: #fff;
  padding: 10px 30px;
  border: 1px solid #CCC;
  border-radius: 5px;
  position: absolute;
  left: 50%;
  top: 20%;
  margin-left: -280px;
}
body.add form h1 {
  text-align: center;
  font-size: 18px;
  margin: 10px 0;
  padding: 5px;
  font-weight: normal;
  background-color: #f0f0f0;
}
body.add form label,
body.add form .label {
  display: block;
  padding: 5px 0;
}
body.add form strong {
  font-weight: normal;
  display: inline-block;
  width: 5.5em;
  text-align: right;
}
body.add form strong:after {
  content: '：';
}
body.add form input {
  height: 20px;
  line-height: 20px;
  outline: none;
  box-sizing: content-box;
  text-align: center;
}
body.add form select {
  height: 20px;
  width: 100px;
  outline: none;
  box-sizing: content-box;
}
body.add form .control {
  text-align: center;
  margin: 10px auto;
}
body.add form button {
  outline: none;
  display: inline-block;
  margin: 0 10px;
  width: 120px;
  height: 40px;
  line-height: 40px;
  border: none;
  background-color: #666;
  color: #FFF;
  border-radius: 3px;
  cursor: pointer;
}
body.add form button[type="submit"] {
  background-color: #C00;
}
body.add form #distpicker select {
  width: 120px;
}
body.add form .unit {
  color: #CCC;
}
body.add form .freq-t {
  color: #CCC;
}
body.add form .freq-t:before {
  content: '，上行频率：';
  color: #CCC
}
#tooltip {
  position: absolute;
  z-index: 10000;
  white-space: nowrap;
  background: #F5F5F5;
  text-align: left;
  padding: 3px;
  border-radius: 3px;
  border: solid 1px #CCC;
  box-shadow: 2px 2px 2px #A2A2A2;
  font-size: 12px;
}
.amap-info-sharp {
  display: none; // 气泡的小三角指示（不能控制样式，所以藏起来再做一个）
}
.amap-info-content {
  font-size: 12px;
  padding: 0;
  overflow: initial;
  background: none;
}
.amap-marker-label {
  border: none;
  padding: 0;
  margin-top: -5px;
  background: none;
}
.amap-info-content .amap-info-close {
  right: 0 !important;
  top: 0;
}
.point-tip {
  padding: 5px;
  background: #fff;
  color: #000;
  position: relative;
  border-radius: 3px;
  border: solid 1px #fff;
  white-space: nowrap;
}
.point-tip.single {
  padding: 8px 12px;
  color: #111;
  font-size: 14px;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}
.point-tip:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border: solid 6px #fff;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.point-tip.analog {
  background: #3d93fd;
  color: #FFF;
}
.point-tip.analog:after {
  border-top-color: #3d93fd;
}
.point-tip.digit {
  background: #f34234;
  color: #FFF;
}
.point-tip.digit:after {
  border-top-color: #f34234;
}
.point-tip.other {
  background: #fb7512;
  color: #FFF;
}
.point-tip.other:after {
  border-top-color: #fb7512;
}

.plugins {
  position: absolute;
  left: 5px;
  top: 48px;
}
.plugins a {
  display: block;
  font-size: 12px;
  padding: 3px 5px;
  background: rgba(255,255,255,.8);
  border: solid 1px #CCC;
  border-radius: 3px;
  margin-bottom: 4px;
}
.bearing-result {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  line-height: 20px;
  padding: 0 6px;
  background: rgba(255,255,255,.92);
  color: #111;
  border: 1px solid #888;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  font-weight: bold;
}
.user-position {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1890ff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(24,144,255,.35);
}
#repeater-detail {
  position: absolute;
  z-index: 180;
  right: 10px;
  top: 70px;
  bottom: 16px;
  width: 390px;
  max-width: calc(100vw - 20px);
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transform: translateX(calc(100% + 24px));
  transition: transform .18s ease;
  overflow: auto;
}
#repeater-detail.open {
  transform: translateX(0);
}
.detail-close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 1;
  width: 28px;
  height: 28px;
  margin: 8px 8px 0 0;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.detail-body {
  padding: 18px 18px 22px;
  color: #222;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}
.detail-body h1 {
  margin: 0 34px 14px 0;
  font-size: 24px;
  line-height: 1.25;
  color: #000;
}
.freq-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.mode-pill {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #e4f4ff;
  color: #1296db;
  font-weight: bold;
}
.freq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f5f7fa;
  border-radius: 6px;
}
.freq-grid > div {
  padding: 18px 8px;
  text-align: center;
}
.freq-grid > div + div {
  border-left: 1px solid #e0e3e8;
}
.freq-grid p {
  margin: 0 0 8px;
  color: #333;
  font-size: 15px;
}
.freq-grid strong {
  color: #1597d3;
  font-family: Consolas, monospace;
  font-size: 25px;
  letter-spacing: 0;
}
.freq-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
  font-size: 16px;
}
.updated {
  margin-top: 12px;
  color: #444;
  text-align: center;
}
.note-box {
  margin-top: 14px;
  padding: 14px;
  min-height: 52px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
  line-height: 1.7;
  color: #333;
  word-break: break-word;
}
.detail-section h2 {
  margin: 18px 0 8px;
  font-size: 20px;
  color: #000;
}
.detail-metrics {
  margin-bottom: 10px;
  color: #444;
  text-align: right;
}
.metric-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px 1px 10px;
  background: #43b34a;
}
.metric-muted {
  color: #888;
}
.location-metrics {
  float: right;
  margin-top: 2px;
  font-size: 15px;
  font-weight: normal;
  color: #555;
}
.mini-map-card {
  min-height: 110px;
  padding: 26px 12px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    #dceef8;
  background-size: 24px 24px;
  text-align: center;
  line-height: 1.7;
  border: 1px solid #ddd;
}
#toolbox {
  position: absolute;
  left: 8px;
  top: 6px;
  z-index: 190;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}
#toolbox-toggle {
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  color: #111;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
#toolbox-panel {
  display: none;
  width: 560px;
  max-width: calc(100vw - 18px);
  max-height: calc(100vh - 64px);
  margin-top: 8px;
  padding: 14px;
  overflow: auto;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#toolbox.open #toolbox-panel {
  display: grid;
}
#toolbox-panel section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4e4e4;
  border-radius: 5px;
  background: #fafafa;
}
#toolbox-panel h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #111;
}
#toolbox-panel a {
  display: inline-block;
  margin: 0 6px 7px 0;
  padding: 5px 8px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #1f5d88;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}
#toolbox-panel a:hover {
  border-color: #1597d3;
  color: #0f7fb4;
}
@media (max-width: 640px) {
  #toolbox-panel {
    width: calc(100vw - 18px);
    grid-template-columns: 1fr;
  }
  #repeater-detail {
    left: 6px;
    right: 6px;
    top: auto;
    bottom: 6px;
    width: auto;
    max-height: 70vh;
    transform: translateY(calc(100% + 16px));
  }
  #repeater-detail.open {
    transform: translateY(0);
  }
  .detail-body h1 {
    font-size: 21px;
  }
  .freq-grid strong {
    font-size: 22px;
  }
}
