/* 默认夜间样式 */
:root {
  --bg: #05070d;
  --panel: #0d111a;
  --card: #101725;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --text: #e8eefc;
  --muted: #9fb0ce;
  --border: #1d2433;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --grid-color: rgba(255, 255, 255, 0.06);
  --overlay-bg: rgba(5, 7, 13, 0.75);
  --overlay-light: rgba(5, 7, 13, 0.35);
  --overlay-lighter: rgba(5, 7, 13, 0.1);
  --gradient-accent-1: rgba(110, 231, 255, 0.08);
  --gradient-accent-2: rgba(167, 139, 250, 0.08);
  --hover-bg: rgba(110, 231, 255, 0.12);
  --hover-border: rgba(110, 231, 255, 0.6);
  --card-hover-bg: rgba(110, 231, 255, 0.04);
  --card-hover-border: rgba(110, 231, 255, 0.4);
  --modal-overlay: rgba(5, 7, 13, 0.95);
  --topbar-bg-start: rgba(5, 7, 13, 0.92);
  --topbar-bg-end: rgba(5, 7, 13, 0.2);
  --hero-overlay-start: rgba(5, 7, 13, 0.75);
  --hero-overlay-mid: rgba(5, 7, 13, 0.35);
  --hero-overlay-end: rgba(5, 7, 13, 0.1);
  --hero-gradient-1: rgba(110, 231, 255, 0.14);
  --hero-gradient-2: rgba(167, 139, 250, 0.18);
  --map-bg-start: rgba(13, 17, 26, 0.7);
  --map-bg-end: rgba(13, 17, 26, 0.95);
  --list-bg-start: rgba(5, 7, 13, 0.95);
  --list-bg-end: rgba(5, 7, 13, 0.9);
  --button-ghost-bg: rgba(255, 255, 255, 0.04);
  --edge-arrow-bg: rgba(5, 7, 13, 0.7);
  --marker-label-bg: rgba(10, 13, 20, 0.9);
  --badge-bg: rgba(255, 255, 255, 0.03);
  --list-meta-bg: rgba(255, 255, 255, 0.03);
  --rules-footer-bg: rgba(255, 255, 255, 0.02);
  --close-hover-bg: rgba(255, 255, 255, 0.1);
  --status-online: #0de37d;
  --status-offline: #f87171;
  --status-online-border: rgba(13, 227, 125, 0.3);
  --status-offline-border: rgba(248, 113, 113, 0.35);
  --marker-border: #04101d;
  --marker-shadow: rgba(110, 231, 255, 0.08);
  --marker-shadow-active: rgba(110, 231, 255, 0.18);
  --marker-shadow-active-small: rgba(110, 231, 255, 0.16);
  --offline-gradient-start: #f87171;
  --offline-gradient-end: #ef4444;
  --offline-shadow: rgba(248, 113, 113, 0.12);
  --button-primary-bg: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --button-primary-text: #0a0c12;
}

/* 日间样式 */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --card: #f8f9fb;
    --accent: #0066cc;
    --accent-2: #7c3aed;
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    --grid-color: rgba(0, 0, 0, 0.04);
    --overlay-bg: rgba(245, 247, 250, 0.9);
    --overlay-light: rgba(245, 247, 250, 0.6);
    --overlay-lighter: rgba(245, 247, 250, 0.3);
    --gradient-accent-1: rgba(0, 102, 204, 0.06);
    --gradient-accent-2: rgba(124, 58, 237, 0.06);
    --hover-bg: rgba(0, 102, 204, 0.1);
    --hover-border: rgba(0, 102, 204, 0.5);
    --card-hover-bg: rgba(0, 102, 204, 0.05);
    --card-hover-border: rgba(0, 102, 204, 0.3);
    --modal-overlay: rgba(245, 247, 250, 0.95);
    --topbar-bg-start: rgba(255, 255, 255, 0.95);
    --topbar-bg-end: rgba(255, 255, 255, 0.8);
    --hero-overlay-start: rgba(255, 255, 255, 0.7);
    --hero-overlay-mid: rgba(255, 255, 255, 0.5);
    --hero-overlay-end: rgba(255, 255, 255, 0.2);
    --hero-gradient-1: rgba(0, 102, 204, 0.1);
    --hero-gradient-2: rgba(124, 58, 237, 0.12);
    --map-bg-start: rgba(255, 255, 255, 0.9);
    --map-bg-end: rgba(248, 249, 251, 0.98);
    --list-bg-start: rgba(255, 255, 255, 0.98);
    --list-bg-end: rgba(245, 247, 250, 0.95);
    --button-ghost-bg: rgba(0, 0, 0, 0.04);
    --edge-arrow-bg: rgba(255, 255, 255, 0.9);
    --marker-label-bg: rgba(255, 255, 255, 0.95);
    --badge-bg: rgba(0, 0, 0, 0.03);
    --list-meta-bg: rgba(0, 0, 0, 0.02);
    --rules-footer-bg: rgba(0, 0, 0, 0.02);
    --close-hover-bg: rgba(0, 0, 0, 0.05);
    --status-online: #059669;
    --status-offline: #dc2626;
    --status-online-border: rgba(5, 150, 105, 0.3);
    --status-offline-border: rgba(220, 38, 38, 0.35);
    --marker-border: #ffffff;
    --marker-shadow: rgba(0, 102, 204, 0.1);
    --marker-shadow-active: rgba(0, 102, 204, 0.2);
    --marker-shadow-active-small: rgba(0, 102, 204, 0.18);
    --offline-gradient-start: #dc2626;
    --offline-gradient-end: #b91c1c;
    --offline-shadow: rgba(220, 38, 38, 0.15);
    --button-primary-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --button-primary-text: #ffffff;
  }
}

/* 夜间样式（明确指定，确保覆盖） */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070d;
    --panel: #0d111a;
    --card: #101725;
    --accent: #6ee7ff;
    --accent-2: #a78bfa;
    --text: #e8eefc;
    --muted: #9fb0ce;
    --border: #1d2433;
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    --grid-color: rgba(255, 255, 255, 0.06);
    --overlay-bg: rgba(5, 7, 13, 0.75);
    --overlay-light: rgba(5, 7, 13, 0.35);
    --overlay-lighter: rgba(5, 7, 13, 0.1);
    --gradient-accent-1: rgba(110, 231, 255, 0.08);
    --gradient-accent-2: rgba(167, 139, 250, 0.08);
    --hover-bg: rgba(110, 231, 255, 0.12);
    --hover-border: rgba(110, 231, 255, 0.6);
    --card-hover-bg: rgba(110, 231, 255, 0.04);
    --card-hover-border: rgba(110, 231, 255, 0.4);
    --modal-overlay: rgba(5, 7, 13, 0.95);
    --topbar-bg-start: rgba(5, 7, 13, 0.92);
    --topbar-bg-end: rgba(5, 7, 13, 0.2);
    --hero-overlay-start: rgba(5, 7, 13, 0.75);
    --hero-overlay-mid: rgba(5, 7, 13, 0.35);
    --hero-overlay-end: rgba(5, 7, 13, 0.1);
    --hero-gradient-1: rgba(110, 231, 255, 0.14);
    --hero-gradient-2: rgba(167, 139, 250, 0.18);
    --map-bg-start: rgba(13, 17, 26, 0.7);
    --map-bg-end: rgba(13, 17, 26, 0.95);
    --list-bg-start: rgba(5, 7, 13, 0.95);
    --list-bg-end: rgba(5, 7, 13, 0.9);
    --button-ghost-bg: rgba(255, 255, 255, 0.04);
    --edge-arrow-bg: rgba(5, 7, 13, 0.7);
    --marker-label-bg: rgba(10, 13, 20, 0.9);
    --badge-bg: rgba(255, 255, 255, 0.03);
    --list-meta-bg: rgba(255, 255, 255, 0.03);
    --rules-footer-bg: rgba(255, 255, 255, 0.02);
    --close-hover-bg: rgba(255, 255, 255, 0.1);
    --status-online: #0de37d;
    --status-offline: #f87171;
    --status-online-border: rgba(13, 227, 125, 0.3);
    --status-offline-border: rgba(248, 113, 113, 0.35);
    --marker-border: #04101d;
    --marker-shadow: rgba(110, 231, 255, 0.08);
    --marker-shadow-active: rgba(110, 231, 255, 0.18);
    --marker-shadow-active-small: rgba(110, 231, 255, 0.16);
    --offline-gradient-start: #f87171;
    --offline-gradient-end: #ef4444;
    --offline-shadow: rgba(248, 113, 113, 0.12);
    --button-primary-bg: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    --button-primary-text: #0a0c12;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, var(--gradient-accent-1), transparent 25%), radial-gradient(circle at 80% 0%, var(--gradient-accent-2), transparent 30%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw; /* 明确设置为视口宽度，不受 slider 影响 */
  max-width: 100vw; /* 确保不超过视口宽度 */
  box-sizing: border-box; /* 包含 padding 在内 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  z-index: 10;
  background: linear-gradient(180deg, var(--topbar-bg-start), var(--topbar-bg-end));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

/* 移动设备上调整顶部栏 */
@media (max-width: 768px) {
  header.topbar {
    padding: 12px 16px;
  }
  
  .brand {
    font-size: 14px;
  }
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--hover-bg);
  color: var(--text);
}

main {
  margin-top: 64px;
}

.slider {
  display: flex;
  width: 200vw;
  transform: translateX(0);
  transition: transform 0.8s ease;
  touch-action: pan-y;
}

.slider[data-view="0"] {
  transform: translateX(0);
}

.slider[data-view="1"] {
  transform: translateX(-100vw);
}

.panel {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 64px); /* 减去顶部导航高度，避免首屏超高 */
  overflow: hidden;
}

.hero {
  display: grid;
  align-items: center;
  padding: 96px 12vw 72px;
  color: var(--text);
  background: linear-gradient(135deg, var(--hero-gradient-1), transparent 45%), linear-gradient(220deg, var(--hero-gradient-2), transparent 55%), url("../images/bg.webp") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 45%, var(--hero-overlay-end) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 4px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--button-primary-bg, linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%));
  border-color: transparent;
  color: var(--button-primary-text, #0a0c12);
}

.btn.ghost {
  background: var(--button-ghost-bg);
}

.edge-arrow {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--edge-arrow-bg);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.edge-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: var(--hover-bg);
  border-color: var(--hover-border);
}

.map-panel {
  position: relative;
  padding: 5vh 5vw;
  background: linear-gradient(180deg, var(--map-bg-start), var(--map-bg-end));
}

.map-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-layout {
  height: 100%;
}

.map-canvas {
  position: relative;
  min-height: 100%;
  background: #03060c;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-grid {
  display: none;
}

.map-canvas::after {
  display: none;
}

.map-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--marker-border);
  background: var(--status-online);
  box-shadow: 0 0 0 8px var(--status-online-border);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.map-dot.online {
  background: var(--status-online);
  box-shadow: 0 0 0 8px var(--status-online-border);
}

.map-dot.warn {
  background: linear-gradient(135deg, #f5c451, #f59e0b);
  box-shadow: 0 0 0 8px rgba(245, 196, 81, 0.12);
}

.map-dot.offline {
  background: var(--status-offline);
  box-shadow: 0 0 0 8px var(--status-offline-border);
}

.map-dot.is-active {
  transform: scale(1.15);
}

.map-dot.online.is-active {
  box-shadow: 0 0 0 12px var(--status-online-border);
}

.map-dot.offline.is-active {
  box-shadow: 0 0 0 12px var(--status-offline-border);
}

.marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--marker-border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px var(--marker-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.marker:hover,
.marker.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 10px var(--marker-shadow-active-small);
}

.marker-label {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--marker-label-bg);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.marker:hover .marker-label,
.marker.is-active .marker-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.site-card {
  background: var(--card-hover-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  background: var(--card-hover-bg);
}

.site-card.is-active {
  transform: translateY(-3px);
  border-color: var(--hover-border);
  background: var(--card-hover-bg);
  box-shadow: 0 4px 12px var(--hover-bg);
}

.site-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge.online {
  color: var(--status-online);
  border-color: var(--status-online-border);
}

.badge.warn {
  color: #f5c451;
  border-color: rgba(245, 196, 81, 0.35);
}

.badge.offline {
  color: var(--status-offline);
  border-color: var(--status-offline-border);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 24px;
}

.site-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.list-section {
  position: relative;
  width: 100vw; /* 固定视口宽度 */
  max-width: 100vw; /* 确保不超过视口宽度 */
  box-sizing: border-box; /* 包含 padding 在内 */
  padding: 72px 6vw 96px;
  background: linear-gradient(180deg, var(--list-bg-start), var(--list-bg-end));
  border-top: 1px solid var(--border);
  overflow-x: hidden; /* 禁止水平滚动 */
  overflow-y: visible; /* 允许垂直滚动 */
  touch-action: pan-y; /* 只允许垂直滚动 */
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .slider {
    width: 200vw;
  }

  .panel {
    width: 100vw;
  }

  .hero {
    padding: 120px 7vw 80px;
  }

  .edge-arrow {
    display: none;
  }

  .map-panel {
    padding: 5vh 4vw;
  }

  .map-shell {
    padding: 0;
    border-radius: 16px;
    height: 100%;
  }

  .map-canvas {
    min-height: 100%;
  }

  .list-section {
    padding: 60px 5vw 72px;
  }
}

@media (max-width: 680px) {
  header.topbar {
    padding: 12px 16px;
  }

  .hero {
    padding: 110px 6vw 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .map-panel {
    padding: 4vh 4vw;
  }

  .map-shell {
    padding: 0;
    border-radius: 14px;
    height: 100%;
  }

  .map-canvas {
    min-height: 100%;
    border-radius: 12px;
  }

  .list-section {
    padding: 48px 5vw 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider,
  .btn,
  .edge-arrow,
  .map-card,
  .site-card,
  .marker {
    transition: none;
  }
}

/* 使用守则弹框 */
.rules-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-overlay);
  backdrop-filter: blur(10px);
  z-index: 1000;
  overflow-y: auto;
}

.rules-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  margin: 5vh auto;
  overflow: hidden;
  min-height: 0;
}

.rules-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.rules-header h2 {
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

.rules-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.rules-close:hover {
  background: var(--close-hover-bg);
  color: var(--accent);
}

.rules-body {
  flex: 1;
  min-height: 0;
  padding: 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rules-text {
  color: var(--text);
  line-height: 1.8;
}

.rules-text h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 20px;
}

.rules-text p {
  margin: 16px 0;
  color: var(--muted);
}

.rules-text ol,
.rules-text ul {
  margin: 16px 0;
  padding-left: 24px;
}

.rules-text li {
  margin: 12px 0;
  color: var(--text);
}

.rules-text h4 {
  margin: 20px 0 12px;
  color: var(--accent);
  font-size: 16px;
}

.rules-text a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rules-text a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.rules-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--rules-footer-bg);
}

.rules-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: 14px;
}

.rules-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.rules-checkbox-label span {
  flex: 1;
}

@media (max-width: 680px) {
  .rules-modal-content {
    margin: 0;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .rules-header {
    padding: 20px 24px;
    flex-shrink: 0;
  }

  .rules-header h2 {
    font-size: 24px;
  }

  .rules-body {
    padding: 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .rules-footer {
    padding: 20px 24px;
    flex-shrink: 0;
  }
}

/* Footer 区域 */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 6vw;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-content a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .site-footer {
    padding: 24px 5vw;
  }

  .footer-content p {
    font-size: 12px;
  }
}

/* 高德地图信息窗口样式 */
.amap-info {
  border: none !important;
  background: transparent !important;
}

.amap-info-content {
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif !important;
  box-shadow: var(--shadow) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* 确保高德地图信息窗口内部元素也有背景 */
.amap-info-content > div {
  background: var(--panel) !important;
}

.amap-info-content * {
  box-sizing: border-box;
}

.amap-info-content .info-window-wrapper {
  min-width: 180px;
  padding: 12px;
  background: transparent;
}

.amap-info-content .info-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.amap-info-content .info-window-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.amap-info-content .info-window-title span {
  color: inherit;
}

.amap-info-content .info-window-title a {
  color: var(--text) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-block;
}

.amap-info-content .info-window-title a:hover {
  color: var(--accent) !important;
}

.amap-info-content .info-window-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  white-space: nowrap;
  flex-shrink: 0;
}

.amap-info-content .info-window-badge.online {
  color: var(--status-online) !important;
  border-color: var(--status-online-border) !important;
}

.amap-info-content .info-window-badge.offline {
  color: var(--status-offline) !important;
  border-color: var(--status-offline-border) !important;
}

.amap-info-content .info-window-meta {
  font-size: 12px;
  color: var(--muted) !important;
  margin-top: 6px;
  line-height: 1.5;
}

.amap-info-content .info-window-meta:first-of-type {
  margin-top: 0;
}

/* 高德地图信息窗口关闭按钮 */
.amap-info-close {
  color: var(--text) !important;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
  background: transparent !important;
  border: none !important;
}

.amap-info-close:hover {
  opacity: 1;
  color: var(--accent) !important;
}

/* 隐藏高德地图Logo */
.BMap_cpyCtrl {
  display: none;
}
.anchorBL {
  display: none;
}
.amap-logo img{
  display: none;
}
.amap-copyright {
  opacity:0;
}

/* APRS 导航按钮样式 */
.nav-links a.nav-aprs-btn {
  position: relative;
}

.nav-links a.nav-aprs-btn.active {
  color: var(--accent);
  background: var(--gradient-accent-1);
  border-color: var(--accent);
}

.nav-links a.nav-aprs-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* 移动设备样式：隐藏桌面导航按钮，只保留 APRS */
@media (max-width: 768px) {
  .nav-links a.nav-link-desktop {
    display: none !important;
  }
  
  .nav-links {
    gap: 0;
  }
  
  /* 移动设备上 APRS 按钮必须显示 */
  .nav-links a.nav-aprs-btn {
    display: flex !important;
    margin-left: auto;
    visibility: visible !important;
    opacity: 1 !important;
  }
}