/* ============================================
   DIYRTK 官网 - 深色科技风（赛博/卫星主题）
   ============================================ */

:root {
  /* 背景层 */
  --bg-deepest: #060816;
  --bg-deep: #0a0e1a;
  --bg-card: #0f1424;
  --bg-card-hover: #131a2e;

  /* 主色 */
  --cyan: #00e5ff;
  --green: #00ff88;
  --purple: #7c4dff;
  --amber: #ffb300;

  /* 文字 */
  --text-primary: #e0e6f0;
  --text-secondary: #7a8499;
  --text-muted: #4a5468;

  /* 边框 */
  --border: rgba(0, 229, 255, 0.15);
  --border-bright: rgba(0, 229, 255, 0.45);

  /* 字体 */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 阴影 */
  --shadow-glow: 0 0 24px rgba(0, 229, 255, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 双层网格背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(124, 77, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  z-index: -2;
  pointer-events: none;
}

/* 顶部辉光渐变 */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ============= 导航栏 ============= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(6, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg { height: 32px; width: auto; }

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: 48px;
  flex: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.06); }

.nav-link.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
}

.nav-link.active::before {
  content: '>';
  margin-right: 6px;
  color: var(--green);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.status-dot.offline { background: #ff4d6d; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============= 通用 section ============= */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 48px;
}

/* ============= Hero ============= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 32px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .glitch {
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--bg-deepest);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.55);
}

.btn-secondary {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ============= 特性卡片 ============= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 22px;
}

.feature-card:hover .feature-icon {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============= 技术规格表 ============= */
.spec-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 880px) {
  .spec-container { grid-template-columns: 1fr; }
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.spec-card-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(122, 132, 153, 0.15);
  font-size: 14px;
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.spec-value {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.spec-value .tag {
  display: inline-block;
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin: 2px 4px 2px 0;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* ============= 下载区 ============= */
.download-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 880px) {
  .download-container { grid-template-columns: 1fr; }
}

.download-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(124, 77, 255, 0.05));
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.download-version {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.download-version-name {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.download-meta-item {
  display: flex;
  flex-direction: column;
}

.download-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.download-meta-value {
  font-size: 14px;
  color: var(--text-primary);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--bg-deepest);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.4);
  transition: all 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0, 229, 255, 0.6);
}

.changelog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.changelog-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.changelog-content {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  font-family: var(--font-mono);
  line-height: 1.7;
}

.changelog-loading {
  color: var(--text-muted);
  font-style: italic;
}

/* ============= NTRIP 状态面板 ============= */
.status-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.status-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.status-summary .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.badge-online {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-offline {
  background: rgba(255, 77, 109, 0.1);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.3);
}

.badge-stale {
  background: rgba(255, 179, 0, 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.status-refresh {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mounts-list {
  display: grid;
  gap: 16px;
}

.mount-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: all 0.2s;
}

.mount-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.mount-status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mount-status-icon.online {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

.mount-status-icon.offline { background: var(--text-muted); }

.mount-info { min-width: 0; }

.mount-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.mount-detail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.mount-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
  text-align: right;
}

@media (max-width: 680px) {
  .mount-card {
    grid-template-columns: auto 1fr;
  }
  .mount-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
  }
}

.mount-stat-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.mount-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.status-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ============= 页脚 ============= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-deep);
}

.footer a {
  color: var(--cyan);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

.footer-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-meta { display: flex; gap: 16px; flex-wrap: wrap; }

.footer-record {
  max-width: 1200px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(122, 132, 153, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-record a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-record a:hover { color: var(--cyan); }

.footer-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============= 响应式 ============= */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .section { padding: 64px 16px; }
  .hero { padding: 0 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-title { font-size: 28px; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deepest); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.4); }

/* 选中文字 */
::selection {
  background: rgba(0, 229, 255, 0.3);
  color: var(--text-primary);
}

/* ============= 基站位置地图 ============= */
.map-panel {
  margin-top: 24px;
  padding: 20px;
  background: rgba(8, 12, 28, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.map-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.map-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.map-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.map-max-btn {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan);
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}
.map-max-btn:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}
.map-max-btn.is-fullscreen {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--cyan);
  font-size: 22px;
}
.map-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.legend-online {
  background: #7affd4;
  box-shadow: 0 0 8px #7affd4;
}
.legend-dot.legend-offline {
  background: #666;
  border: 1px solid #888;
}
.legend-dot.legend-unknown {
  background: transparent;
  border: 1px dashed #888;
}
.map-container {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(127, 255, 212, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
#ntrip-map {
  width: 100%;
  height: 580px;
  background: #0a0e1a;
  z-index: 1;
}
.map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}
.map-empty .status-empty-icon {
  font-size: 36px;
  opacity: 0.5;
}
.map-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* ============= Leaflet 暗色主题覆盖 ============= */
.leaflet-container {
  background: #0a0e1a !important;
  font-family: var(--font-mono) !important;
}
.leaflet-control-zoom a {
  background: rgba(15, 20, 36, 0.9) !important;
  color: var(--cyan) !important;
  border-color: rgba(0, 229, 255, 0.2) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(0, 229, 255, 0.15) !important;
  color: var(--green) !important;
}
.leaflet-control-attribution {
  background: rgba(8, 12, 28, 0.85) !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: var(--text-secondary) !important;
}

/* 省份名称标签（鼠标悬停显示） */
.leaflet-tooltip.province-label {
  background: rgba(8, 12, 28, 0.92) !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  color: var(--cyan) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px);
}
.leaflet-tooltip.province-label::before {
  display: none;
}

/* ============= 基站 marker 样式 ============= */
.station-div-icon {
  background: transparent !important;
  border: none !important;
}
.station-marker {
  position: relative;
  width: 12px;
  height: 12px;
}
.station-marker .station-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
  box-shadow: 0 0 12px currentColor;
  z-index: 2;
}
.station-marker.online .station-dot {
  box-shadow: 0 0 16px #7affd4, 0 0 4px #7affd4;
}
.station-marker .station-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7affd4;
  animation: station-pulse 2.5s ease-out infinite;
  z-index: 1;
}
@keyframes station-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(4); opacity: 0; }
}
.station-marker .station-label {
  position: absolute;
  left: 18px;
  top: -8px;
  white-space: nowrap;
  background: rgba(8, 12, 28, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.station-marker .station-name {
  font-size: 13px;
  font-weight: 700;
  color: #7affd4;
  letter-spacing: 0.5px;
}
.station-marker.offline .station-name {
  color: #888;
}
.station-marker .station-region {
  font-size: 11px;
  color: var(--cyan);
  margin-top: 2px;
  opacity: 0.9;
}
.station-marker.offline .station-region {
  color: #888;
}
.station-marker .station-coord {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}
@media (max-width: 720px) {
  .map-panel { padding: 14px; }
  .map-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map-header-right { flex-wrap: wrap; gap: 10px; }
  .map-legend { font-size: 11px; gap: 10px; }
  #ntrip-map { height: 360px; }
}

/* ============= 地图全屏模式 ============= */
.map-panel.is-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 16px 20px 20px;
  border-radius: 0;
  z-index: 9999;
  background: var(--bg-deepest);
  display: flex;
  flex-direction: column;
}
.map-panel.is-fullscreen::before {
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08), transparent 70%);
}
.map-panel.is-fullscreen .map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.map-panel.is-fullscreen #ntrip-map {
  height: 100%;
  flex: 1;
}
.map-panel.is-fullscreen .map-hint {
  margin-bottom: 4px;
}

