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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.back-to-site-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: rgba(33, 33, 33, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.back-to-site-btn:hover {
  transform: translateY(-1px);
  background: rgba(33, 33, 33, 0.95);
}

.back-to-site-btn i {
  font-size: 14px;
}

.back-to-site-btn span {
  font-size: 13px;
  font-weight: 600;
}

.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: all 0.2s;
}

.map-notice-btn {
  position: relative;
  overflow: visible;
}

.map-control-btn .locate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.map-control-btn:hover {
  background: #f5f5f5;
}

.map-control-btn.active {
  background: #4CAF50;
  color: #fff;
}

.map-lock-btn.map-locked {
  background: #ff9800;
  color: #fff;
}

.layer-switcher {
  position: absolute;
  top: 10px;
  right: 62px;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 8px;
  display: none;
}

.layer-switcher.show {
  display: block;
}

.layer-option {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
}

.layer-option:hover {
  background: #f0f0f0;
}

.layer-option.active {
  background: #4CAF50;
  color: #fff;
}

/* 巡航控制按钮 */
.cruise-controls {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  gap: 10px;
}
.cruise-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.cruise-btn-start {
  background: #4CAF50;
  color: #fff;
}
.cruise-btn-start:hover {
  background: #45a049;
}
.cruise-btn-end {
  background: #f44336;
  color: #fff;
}
.cruise-btn-end:hover {
  background: #d32f2f;
}
.cruise-btn i {
  font-size: 12px;
}

/* 底部菜单切换按钮 */
.toolbar-toggle-btn {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 48px;
  height: 32px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}
.toolbar-toggle-btn i {
  font-size: 14px;
  color: #666;
  transition: transform 0.3s;
}
.toolbar-toggle-btn.collapsed i {
  transform: rotate(180deg);
}

.bottom-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.bottom-toolbar > * {
  pointer-events: auto;
}
.bottom-toolbar.hidden {
  transform: translateY(100%);
}

.toolbar-buttons {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  gap: 2px;
}

.toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 0;
  flex: 1;
  color: #666;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  color: #4CAF50;
}

.toolbar-btn.active {
  color: #4CAF50;
}

.toolbar-btn i {
  font-size: 22px;
  margin-bottom: 4px;
}

.toolbar-btn span {
  font-size: 12px;
}

.status-bar {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  background: #f8f9fa;
  font-size: 12px;
  color: #666;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-item i {
  color: #4CAF50;
}

.status-item.offline i {
  color: #f44336;
}

.panel-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 70vh;
  overflow-y: auto;
}

.panel-drawer.open {
  transform: translateY(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.panel-header h3 {
  font-size: 18px;
  color: #333;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #e0e0e0;
}

.panel-content {
  padding: 16px;
}

.import-section {
  margin-bottom: 20px;
}

.import-section h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.import-section input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.import-section button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.import-section button:hover {
  background: #45a049;
}

.file-upload-area {
  position: relative;
  display: block;
  width: 100%;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.file-upload-area:hover {
  border-color: #4CAF50;
  background: #f8fff8;
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-area p {
  color: #666;
  margin-bottom: 8px;
}

.file-upload-area .hint {
  font-size: 12px;
  color: #999;
}

.route-list {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 12px;
}

.route-item {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.route-item:hover {
  background: #f8f9fa;
  border-color: #4CAF50;
}

.route-item h5 {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.route-item p {
  font-size: 12px;
  color: #666;
}

.route-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.route-action-btn {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  background: #4CAF50;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.route-action-btn.secondary {
  background: #2196F3;
}

.track-list {
  max-height: 300px;
  overflow-y: auto;
}

.track-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
}

.track-item-info h5 {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.track-item-info p {
  font-size: 12px;
  color: #666;
}

.track-item-actions {
  display: flex;
  gap: 8px;
}

.cache-status-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.cache-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #d9e2ec;
  font-size: 14px;
  color: #333;
}

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

.cache-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.cache-actions button {
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.btn-cache-refresh {
  background: #2196F3;
}

.btn-cache-download {
  background: #4CAF50;
}

.btn-cache-clear {
  background: #f44336;
}

.cache-tip {
  margin-top: 10px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

.cache-package-list-wrap {
  margin-top: 14px;
}

.cache-package-list-wrap h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.cache-package-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cache-package-item {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cache-package-info h5 {
  font-size: 13px;
  color: #2f3f52;
  margin-bottom: 4px;
}

.cache-package-info p {
  font-size: 12px;
  color: #6a7c90;
}

.cache-package-item .btn-delete {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  background: #f44336;
  color: #fff;
}

.cache-package-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cache-package-actions .btn-view {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  background: #2196F3;
  color: #fff;
}

.cache-progress {
  margin-top: 10px;
  height: 8px;
  background: #e6eef7;
  border-radius: 999px;
  overflow: hidden;
}

.cache-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
  transition: width 0.2s ease;
}

.cache-progress-text {
  margin-top: 6px;
  font-size: 12px;
  color: #2f4f6f;
}

.track-item-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-view {
  background: #2196F3;
  color: #fff;
}

.btn-edit {
  background: #FF9800;
  color: #fff;
}

.btn-delete {
  background: #f44336;
  color: #fff;
}

.btn-toggle {
  padding: 6px 10px !important;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-show {
  background: #4CAF50;
  color: #fff;
}

.btn-hide {
  background: #9e9e9e;
  color: #fff;
}

.btn-sync {
  background: #4CAF50;
  color: #fff;
}

.edit-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.edit-tool-btn {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.edit-tool-btn:hover {
  border-color: #4CAF50;
  background: #f8fff8;
}

.edit-tool-btn i {
  font-size: 24px;
  color: #4CAF50;
  display: block;
  margin-bottom: 4px;
}

.edit-tool-btn span {
  font-size: 12px;
  color: #666;
}

.marker-popup-content {
  padding: 8px;
  min-width: 200px;
}

.marker-popup-content h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.marker-popup-content p {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.marker-popup-content button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
}

.marker-popup-content .btn-add {
  background: #4CAF50;
  color: #fff;
}

.marker-popup-content .btn-start {
  background: #2196F3;
  color: #fff;
}

.marker-popup-content .btn-nav {
  background: #FF9800;
  color: #fff;
}

.marker-popup-content .btn-delete {
  background: #f44336;
  color: #fff;
}

/* 轨迹信息 popup */
.track-info-popup {
  padding: 8px;
  font-size: 13px;
}
.track-info-popup strong {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 6px;
}
.track-info-popup span {
  color: #666;
  display: block;
  margin: 2px 0;
}

.nav-line {
  stroke-dasharray: 10, 10;
  animation: dash 1s linear infinite;
}

/* 更多工具面板 */
.more-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 0;
}
.more-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f5f7fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.more-tool-btn:hover {
  background: #e8f0fe;
}
.more-tool-btn i {
  font-size: 20px;
  color: #4CAF50;
  margin-bottom: 8px;
}
.more-tool-btn span {
  font-size: 13px;
  color: #333;
}

@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}

.recording-indicator {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #f44336;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.recording-indicator.show {
  display: flex;
}

.recording-indicator .pulse {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.hide {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  color: #666;
  font-size: 14px;
}

@media (max-width: 480px) {
  .toolbar-btn {
    padding: 6px 8px;
    min-width: 50px;
  }
  
  .toolbar-btn i {
    font-size: 18px;
  }
  
  .toolbar-btn span {
    font-size: 11px;
  }
  
  .status-bar {
    font-size: 11px;
    padding: 4px 0;
  }
}

/* 通知按钮和面板 */
.notice-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #f44336;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

.map-notice-badge {
  top: -4px;
  right: -4px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.notice-item:hover {
  background: #f0f0f0;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  margin-top: 6px;
  flex-shrink: 0;
}

.notice-dot.unread {
  background: #f44336;
  box-shadow: 0 0 6px rgba(244, 67, 54, 0.4);
}

.notice-content h5 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #333;
}

.notice-content p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.notice-time {
  font-size: 11px;
  color: #999;
}

.notice-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  word-break: break-all;
}

/* 通知详情弹窗 */
.notice-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.notice-detail-modal {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: noticeDetailIn 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes noticeDetailIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.notice-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.notice-detail-header h3 {
  margin: 0;
  font-size: 17px;
  color: #333;
  flex: 1;
  padding-right: 12px;
}

.notice-detail-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
  flex-shrink: 0;
}

.notice-detail-close:hover {
  background: #e0e0e0;
  color: #333;
}

.notice-detail-time {
  padding: 10px 20px;
  font-size: 12px;
  color: #999;
  background: #f8f9fa;
}

.notice-detail-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.notice-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

/* 地图悬浮广告 */
.map-popup-ad {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
}

.popup-ad-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 90%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  animation: popupAdIn 0.3s ease;
}

@keyframes popupAdIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-ad-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  z-index: 1;
}

.popup-ad-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* 分享定位面板 */
.share-location-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.share-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.share-panel-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px 24px;
  animation: slideUp 0.3s ease;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.share-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.share-panel-header h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.share-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.share-close-btn:hover {
  background: #eee;
  color: #333;
}

.share-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.share-panel-coords {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.share-map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.share-map-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}

.share-map-item:hover {
  background: #e9ecef;
}

.share-map-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.share-map-item span {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.share-map-item .fa-external-link {
  color: #999;
  font-size: 14px;
}

.share-copy-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #e9ecef;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.share-copy-btn:hover {
  background: #dee2e6;
}

/* 分享按钮 */
.btn-share {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #2196F3;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-share:hover {
  background: #1976D2;
}

.btn-share i {
  font-size: 14px;
}

/* 用户位置标记 */
.user-location-marker {
  background: transparent !important;
  border: none !important;
}

/* 用户方向箭头标记 */
.user-direction-marker {
  background: transparent !important;
  border: none !important;
  transition: transform 0.3s ease;
}

/* 轨迹起点标记 */
.track-start-marker {
  background: transparent !important;
  border: none !important;
}

/* 轨迹终点标记 */
.track-end-marker {
  background: transparent !important;
  border: none !important;
}

/* 标记弹出框内容 */
.marker-popup-content {
  min-width: 180px;
}

.marker-popup-content h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #333;
}

.marker-popup-content p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #666;
}

.marker-popup-content .btn-delete {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.marker-popup-content .btn-delete:hover {
  background: #d32f2f;
}

.marker-popup-content .btn-add {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.marker-popup-content .btn-add:hover {
  background: #388E3C;
}

/* 测距工具样式 */
.measure-mode-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.measure-mode-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #666;
}

.measure-mode-btn:hover {
  border-color: #4CAF50;
  color: #4CAF50;
}

.measure-mode-btn.active {
  border-color: #4CAF50;
  background: #4CAF50;
  color: #fff;
}

.measure-mode-btn i {
  margin-right: 6px;
}

.measure-help {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.measure-help p {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

.measure-help i {
  color: #4CAF50;
  margin-right: 6px;
  width: 16px;
}

.measure-result-display {
  background: #e8f5e9;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.measure-value {
  font-size: 24px;
  font-weight: 600;
  color: #4CAF50;
  margin: 8px 0;
}

.measure-result {
  text-align: center;
  padding: 8px;
}

.measure-label {
  font-size: 16px;
  margin: 8px 0;
}

.measure-label strong {
  font-size: 24px;
  color: #4CAF50;
}

.btn-clear-measure {
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.btn-clear-measure:hover {
  background: #d32f2f;
}

/* 海拔剖面样式 */
.elevation-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.elevation-stat {
  text-align: center;
}

.elevation-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.elevation-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #4CAF50;
}

#elevation-chart {
  width: 100%;
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
}

.elevation-track-selector {
  margin-top: 12px;
}

.elevation-track-selector select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

/* 轨迹对比样式 */
.compare-track-list {
  margin-bottom: 16px;
}

.compare-track-item {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
}

.compare-track-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.compare-track-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.compare-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.compare-table th,
.compare-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.compare-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.compare-table td {
  color: #666;
}

.compare-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.btn-compare:hover {
  background: #388E3C !important;
}

.btn-clear-compare:hover {
  background: #d32f2f !important;
}

/* 状态栏网络状态增强 */
#network-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

#network-status.offline i {
  color: #f44336;
}

#network-status.offline #network-text {
  color: #f44336;
}

#network-status i {
  color: #4CAF50;
}

/* 离线定位指示器 */
.gps-satellite-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 12px;
  font-size: 11px;
  color: #4CAF50;
}

.gps-satellite-indicator.weak {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.gps-satellite-indicator.no-signal {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

/* 标记添加备注样式 */
.marker-add-notes input,
.marker-add-notes textarea {
  font-family: inherit;
}

.marker-media-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.btn-photo,
.btn-voice {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.btn-photo:hover {
  border-color: #2196F3;
  color: #2196F3;
}

.btn-voice:hover {
  border-color: #f44336;
  color: #f44336;
}

.btn-photo i,
.btn-voice i {
  margin-right: 6px;
}

.camera-popup video,
.voice-popup {
  border-radius: 8px;
}

.btn-capture:hover {
  background: #388E3C !important;
}

.btn-stop-voice:hover {
  background: #d32f2f !important;
}

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

/* 同步面板样式 */
.sync-status-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
  margin-bottom: 16px;
}

.sync-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #d9e2ec;
  font-size: 14px;
  color: #333;
}

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

.sync-status-row strong {
  color: #4CAF50;
}

.sync-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.sync-actions button {
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.sync-actions button i {
  margin-right: 6px;
}

.btn-sync-check {
  background: #2196F3;
}

.btn-sync-check:hover {
  background: #1976D2;
}

.btn-sync-all {
  background: #4CAF50;
}

.btn-sync-all:hover {
  background: #388E3C;
}

.btn-sync-selected {
  background: #FF9800;
}

.btn-sync-selected:hover {
  background: #F57C00;
}

.sync-progress {
  margin: 16px 0;
}

.sync-progress-bar {
  height: 8px;
  background: #e6eef7;
  border-radius: 999px;
  overflow: hidden;
  transition: width 0.2s ease;
}

.sync-progress-bar > div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
  transition: width 0.2s ease;
}

.sync-progress-text {
  margin-top: 6px;
  font-size: 12px;
  color: #2f4f6f;
  text-align: center;
}

.sync-route-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 12px;
}

.sync-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.sync-route-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.sync-route-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.sync-route-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.sync-route-info {
  flex: 1;
}

.sync-route-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.sync-route-meta {
  font-size: 12px;
  color: #999;
}

.sync-route-meta i {
  margin-right: 4px;
}

.btn-download-single {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #2196F3;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-download-single:hover {
  background: #1976D2;
}

/* 微信引导遮罩 */
.guide-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.guide-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.guide-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.guide-content h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

.guide-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.guide-steps {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #2196F3;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  margin-right: 12px;
  font-weight: bold;
}

.step i {
  margin-left: 8px;
  color: #2196F3;
}

.guide-btn {
  width: 100%;
  padding: 14px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.guide-btn:active {
  transform: scale(0.98);
}

/* 浏览器收藏提示 */
.browser-tip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  max-width: 400px;
  width: calc(100% - 40px);
  overflow: hidden;
}

.browser-tip-content {
  padding: 20px;
}

.browser-tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.browser-tip-header i {
  font-size: 24px;
  color: #FFC107;
  margin-right: 8px;
}

.browser-tip-header h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  color: #333;
}

.browser-tip-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-tip-close:hover {
  color: #333;
}

.browser-tip-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.shortcut-key {
  display: inline-block;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.shortcut-plus {
  font-size: 20px;
  color: #666;
  font-weight: bold;
}

.tip-header {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-header i {
  font-size: 16px;
}

.tip-body {
  padding: 16px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 8px;
}

.tip-item:last-child {
  margin-bottom: 0;
}

.tip-item i {
  font-size: 24px;
  color: #2196F3;
  flex-shrink: 0;
}

.tip-text {
  flex: 1;
}

.tip-text strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.tip-text p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.tip-text kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #e0e0e0;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  margin: 0 2px;
}

.tip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tip-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

/* 清除缓存按钮 */
.clear-cache-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
}

.clear-cache-btn:hover {
  background: #f44336;
  color: #fff;
}

/* 清除缓存确认对话框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i {
  color: #f44336;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-body p {
  font-size: 14px;
  color: #333;
  margin: 0 0 16px;
}

.cache-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.cache-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #f5f5f5;
}

.cache-list li:last-child {
  border-bottom: none;
}

.cache-list li i {
  color: #4CAF50;
}

.warning-text {
  background: #fff3e0;
  padding: 12px;
  border-radius: 8px;
  color: #e65100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.warning-text i {
  color: #ff9800;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
}

.modal-footer .btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-footer .btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-footer .btn-cancel:hover {
  background: #e0e0e0;
}

.modal-footer .btn-confirm {
  background: #f44336;
  color: #fff;
}

.modal-footer .btn-confirm:hover {
  background: #d32f2f;
}
