/* 仪表盘容器 - 纯黑背景 */
.dashboard-container {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: var(--input-container-height);
  background: #000000;
  overflow-y: auto;
  padding: 20px 16px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

/* ========== 第一行：地址 ========== */
.address-container {
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.address-value {
  font-size: 35px;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ========== 第二行：海拔和加油站 ========== */
.altitude-station-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

.altitude-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 15px 20px;
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.altitude-label {
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.altitude-value {
  font-size: 60px;
  font-family: 'Courier New', 'Monaco', monospace;
  font-weight: bold;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.gas-stations-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gas-station-item {
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.station-name {
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-distance {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', 'Monaco', monospace;
}

/* ========== 第三行：海拔和指南针 ========== */
.compass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.altitude-display {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.altitude-display .altitude-value {
  font-size: 80px;
  font-family: 'Courier New', 'Monaco', monospace;
  font-weight: bold;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 1),
    0 0 40px rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.altitude-display .altitude-unit {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 8px;
}

.compass-image-container {
  flex-shrink: 0;
}

.compass-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* ========== 第四行：天气和气压 ========== */
.weather-pressure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.weather-box {
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  min-height: 120px;
}

.pressure-box {
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  min-height: 120px;
}

.box-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.weather-icon {
  font-size: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.weather-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.weather-temp {
  font-size: 32px;
  font-family: 'Courier New', 'Monaco', monospace;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.weather-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

.pressure-value {
  font-size: 36px;
  font-family: 'Courier New', 'Monaco', monospace;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  margin: 12px 0;
}

.pressure-unit {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
}

/* ========== 第五行：经纬度 ========== */
.coordinates-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(60, 60, 60, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.coord-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.coord-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.coord-value {
  font-size: 18px;
  font-family: 'Courier New', 'Monaco', monospace;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 16px 12px;
    gap: 16px;
  }

  .address-value {
    font-size: 22px;
  }

  .altitude-container {
    padding: 32px 16px;
    min-height: 160px;
  }

  .altitude-value {
    font-size: 90px;
  }

  .compass-direction {
    font-size: 40px;
  }

  .compass-degree {
    font-size: 28px;
  }

  .compass-image {
    width: 100px;
    height: 100px;
  }

  .weather-icon {
    font-size: 40px;
  }

  .weather-temp {
    font-size: 28px;
  }

  .pressure-value {
    font-size: 32px;
  }

  .coord-value {
    font-size: 16px;
  }
}

/* ========== 加载动画 ========== */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.7;
    filter: brightness(1.2);
  }
}

.loading {
  animation: pulse-glow 2s ease-in-out infinite;
}
