/* ===== TruckersMP 面板样式（极致动画版） ===== */

/* --- TMP 顶部提示条 --- */
.tmp-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(99,102,241,0.08));
  border: 1px solid rgba(14,165,233,0.18);
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}
.tmp-tip .tip-icon {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  color: #0ea5e9;
}
.tmp-tip .tip-strong {
  color: #0ea5e9;
  font-weight: 600;
}

/* --- 通用动画 --- */
@keyframes tmpSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tmpFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes tmpGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(14,165,233,0.08), 0 0 0 1px rgba(14,165,233,0.05); }
  50% { box-shadow: 0 4px 32px rgba(14,165,233,0.16), 0 0 0 1px rgba(14,165,233,0.12); }
}
@keyframes tmpShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes tmpStatBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes tmpCardEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 12px rgba(34,197,94,0.8); }
}

/* --- 服务器状态面板 --- */
#tmpServerStatus { display: none; }
#tmpServerStatus.show { display: block; animation: tmpSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.tmp-wrap {
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(248,250,252,0.65));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226,232,240,0.6);
  border-radius: 20px; margin-bottom: 24px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tmp-wrap:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.tmp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 50%, #f8fafc 100%);
  background-size: 200% 100%;
  animation: tmpShimmer 6s ease-in-out infinite;
  border-bottom: 1px solid rgba(186,230,253,0.4); gap: 12px;
  position: relative; overflow: hidden;
}
.tmp-top::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: tmpShimmer 3s ease-in-out infinite;
}
.tmp-top-left { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.tmp-logo {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9, #38bdf8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(14,165,233,0.3);
  animation: tmpGlow 3s ease-in-out infinite;
  transition: transform 0.3s;
}
.tmp-logo:hover { transform: rotate(-5deg) scale(1.08); }
.tmp-logo svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.tmp-top-title {
  font-size: 17px; font-weight: 800;
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}
.tmp-top-sub { font-size: 11px; color: #94a3b8; margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.tmp-top-sub .ver {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;
}
.tmp-top-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 1; }
.tmp-stat-badge {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #334155;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px; border-radius: 10px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(226,232,240,0.5); transition: all 0.3s;
}
.tmp-stat-badge:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tmp-stat-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite; box-shadow: 0 0 8px rgba(34,197,94,0.5);
}
.tmp-stat-badge strong {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800;
}
.tmp-refresh-btn {
  display: flex; align-items: center; gap: 5px; border: 1.5px solid #e2e8f0; background: #fff;
  color: #64748b; font-size: 12px; padding: 7px 16px; border-radius: 10px;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); font-weight: 600;
}
.tmp-refresh-btn:hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-color: #7dd3fc; color: #0284c7;
  box-shadow: 0 2px 12px rgba(14,165,233,0.15); transform: translateY(-1px);
}
.tmp-refresh-btn:active { transform: scale(0.94); }
.tmp-refresh-btn svg { width: 15px; height: 15px; transition: transform 0.4s; }
.tmp-refresh-btn:hover svg { transform: rotate(90deg); }

.tmp-stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0);
  border-bottom: 1px solid #e2e8f0;
}
.tmp-stats-bar .tmp-stat-cell {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(248,250,252,0.4));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 16px 18px; text-align: center; transition: all 0.3s;
}
.tmp-stats-bar .tmp-stat-cell:hover {
  background: rgba(255,255,255,0.8); animation: tmpStatBounce 0.6s ease-in-out;
}
.tmp-stat-cell .tmp-stat-val {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2;
}
.tmp-stat-cell .tmp-stat-label { font-size: 11px; color: #64748b; margin-top: 3px; font-weight: 600; letter-spacing: 0.3px; }
.tmp-stat-cell .tmp-stat-sub { font-size: 10px; color: #94a3b8; }

.tmp-body { padding: 18px 24px; animation: tmpFadeIn 0.5s 0.2s both; }
.tmp-section-title {
  font-size: 12px; font-weight: 800; color: #475569;
  margin: 18px 0 12px 0; padding-left: 2px;
  letter-spacing: 0.3px;
}

/* 城市标题 + 搜索框 */
.tmp-city-header {
  margin: 20px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.tmp-city-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.tmp-city-search {
  flex: 1;
  min-width: 180px;
}
.tmp-city-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.tmp-city-search-input:focus {
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.tmp-city-search-input::placeholder { color: #94a3b8; }

/* 国旗圆点 */
.tmp-flag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}
.tmp-section-title:first-child { margin-top: 0; }

/* 折线图 */
.tmp-chart-wrap {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(226,232,240,0.5);
  animation: tmpFadeIn 0.6s 0.3s both;
}
.tmp-chart-wrap canvas {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.tmp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px;
}
.tmp-card {
  background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.5); border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: tmpCardEnter 0.4s both;
}
.tmp-card:nth-child(1) { animation-delay: 0.05s; }
.tmp-card:nth-child(2) { animation-delay: 0.1s; }
.tmp-card:nth-child(3) { animation-delay: 0.15s; }
.tmp-card:nth-child(4) { animation-delay: 0.2s; }
.tmp-card:nth-child(5) { animation-delay: 0.25s; }
.tmp-card:nth-child(6) { animation-delay: 0.3s; }
.tmp-card:nth-child(7) { animation-delay: 0.35s; }
.tmp-card:nth-child(8) { animation-delay: 0.4s; }
.tmp-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(14,165,233,0.2);
}
.tmp-card-flag { font-size: 22px; flex-shrink: 0; transition: transform 0.3s; }
.tmp-card:hover .tmp-card-flag { transform: scale(1.2); }
.tmp-card-body { flex: 1; min-width: 0; }
.tmp-card-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.tmp-card-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.tmp-card-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.tmp-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.3px; transition: transform 0.2s; }
.tmp-tag:hover { transform: scale(1.08); }
.tmp-tag.t-purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.tmp-tag.t-red { background: rgba(220,38,38,0.1); color: #dc2626; }
.tmp-tag.t-green { background: rgba(34,197,94,0.1); color: #16a34a; }
.tmp-tag.t-amber { background: rgba(245,158,11,0.1); color: #d97706; }
.tmp-card-right { text-align: right; flex-shrink: 0; }
.tmp-card-num { font-size: 20px; font-weight: 900; color: #0f172a; line-height: 1.1; }
.tmp-card-max { font-size: 11px; color: #94a3b8; }
.tmp-card-queue { font-size: 10px; color: #f59e0b; font-weight: 600; margin-top: 3px; }
.tmp-progress { height: 4px; background: #e2e8f0; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.tmp-progress-bar {
  height: 100%; border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); position: relative;
}
.tmp-progress-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: tmpShimmer 2s ease-in-out infinite;
}
.tmp-progress-bar.low { background: linear-gradient(90deg, #22c55e, #16a34a); }
.tmp-progress-bar.mid { background: linear-gradient(90deg, #f59e0b, #d97706); }
.tmp-progress-bar.high { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* --- 玩家查询面板 --- */
#tmpPlayerSearch { display: none; }
#tmpPlayerSearch.show { display: block; animation: tmpSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.tmp-player-wrap {
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(248,250,252,0.65));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226,232,240,0.6); border-radius: 20px;
  margin-bottom: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tmp-player-wrap:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.tmp-player-header {
  padding: 14px 24px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(186,230,253,0.4); flex-wrap: wrap;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tmp-player-header .tmp-player-icon { font-size: 24px; flex-shrink: 0; color: #0ea5e9; }
.tmp-player-search { flex: 1; display: flex; gap: 8px; min-width: 200px; }
.tmp-player-search input {
  flex: 1; padding: 10px 16px; font-size: 14px;
  border: 2px solid #e2e8f0; border-radius: 12px;
  background: #fff; outline: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tmp-player-search input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1), 0 2px 8px rgba(14,165,233,0.1);
}
.tmp-player-search button {
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  color: #fff; border: none; border-radius: 12px;
  cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 2px 12px rgba(14,165,233,0.25);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tmp-player-search button:hover {
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(14,165,233,0.4);
}
.tmp-player-search button:active { transform: scale(0.94); }
.tmp-player-search button:disabled { opacity: 0.5; cursor: default; transform: none; }
.tmp-player-result { padding: 20px 24px; animation: tmpFadeIn 0.4s 0.1s both; }
.tmp-player-card { display: flex; gap: 18px; align-items: flex-start; }
.tmp-player-avatar {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tmp-player-avatar:hover { transform: scale(1.06) rotate(-2deg); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tmp-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tmp-player-info { flex: 1; min-width: 0; }
.tmp-player-name {
  font-size: 19px; font-weight: 800;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.tmp-player-group {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 8px; margin-left: 8px; vertical-align: middle;
  transition: transform 0.2s;
}
.tmp-player-group:hover { transform: scale(1.06); }
.tmp-player-meta { font-size: 12px; color: #64748b; line-height: 1.7; margin-top: 6px; }
.tmp-player-meta span { margin-right: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.tmp-player-vtc {
  margin-top: 10px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(14,165,233,0.06), rgba(6,182,212,0.04));
  border: 1px solid rgba(14,165,233,0.1); border-radius: 10px;
  font-size: 12px; color: #0369a1; transition: all 0.3s;
}
.tmp-player-vtc:hover { border-color: rgba(14,165,233,0.25); }
.tmp-player-vtc strong { font-weight: 800; }
.tmp-player-bans {
  margin-top: 10px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(220,38,38,0.05), rgba(239,68,68,0.03));
  border: 1px solid rgba(220,38,38,0.1); border-radius: 10px;
  font-size: 12px; color: #b91c1c;
}
.tmp-player-bans strong { font-weight: 800; }
.tmp-player-bans-list { margin-top: 8px; }
.tmp-ban-item {
  padding: 7px 0; border-bottom: 1px solid rgba(220,38,38,0.08);
  font-size: 11px; line-height: 1.5; transition: background 0.2s;
}
.tmp-ban-item:hover { background: rgba(220,38,38,0.03); border-radius: 4px; padding-left: 4px; }
.tmp-ban-item:last-child { border-bottom: none; }
.tmp-ban-item .ban-reason { color: #991b1b; font-weight: 700; }
.tmp-ban-item .ban-meta { color: #94a3b8; }
.tmp-player-error { padding: 32px 20px; text-align: center; color: #94a3b8; font-size: 13px; animation: tmpFadeIn 0.4s both; }

.tmp-info-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tmp-info-table td {
  padding: 8px 12px; font-size: 12px;
  border-bottom: 1px solid rgba(226,232,240,0.3); vertical-align: top;
  transition: background 0.2s;
}
.tmp-info-table tr:hover td { background: rgba(248,250,252,0.5); }
.tmp-info-table tr:last-child td { border-bottom: none; }
.tmp-info-label { color: #64748b; width: 100px; white-space: nowrap; font-weight: 600; }
.tmp-info-value { color: #0f172a; word-break: break-all; font-weight: 500; }
.tmp-info-value.t-green { color: #16a34a; font-weight: 700; }
.tmp-info-value.t-red { color: #dc2626; font-weight: 700; }
.tmp-info-value.t-amber { color: #d97706; font-weight: 700; }
.tmp-info-value.t-gray { color: #94a3b8; }
.tmp-info-section {
  padding: 12px 12px 6px 12px !important;
  font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(241,245,249,0.6));
  color: #334155;
  border-bottom: 2px solid rgba(226,232,240,0.5) !important;
  letter-spacing: 0.2px;
}

/* ===== 玩家信息行布局 ===== */
.tmp-info-grid {
  margin-top: 8px;
}
.tmp-info-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(226,232,240,0.35);
  gap: 12px;
}
.tmp-info-row:last-child { border-bottom: none; }
.tmp-info-row .row-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 80px;
  flex-shrink: 0;
}
.tmp-info-row .row-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.tmp-info-row .row-value.green { color: #16a34a; }
.tmp-info-row .row-value.red { color: #dc2626; }
.tmp-info-row .row-value.amber { color: #d97706; }
.tmp-info-row .row-value.gray { color: #94a3b8; }

/* 分组标题 */
.tmp-info-group-title {
  padding: 12px 0 6px 0;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tmp-info-group-title:first-child { padding-top: 0; margin-top: 0; }
.tmp-info-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* 封禁记录卡片 */
.tmp-ban-cards { margin-top: 6px; }
.tmp-ban-card {
  background: linear-gradient(135deg, rgba(254,242,242,0.5), rgba(254,226,226,0.3));
  border: 1px solid rgba(220,38,38,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 12px;
  transition: all 0.2s;
}
.tmp-ban-card:hover {
  background: rgba(254,242,242,0.8);
  border-color: rgba(220,38,38,0.2);
}
.tmp-ban-card .ban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.tmp-ban-card .ban-reason {
  font-weight: 700;
  color: #b91c1c;
}
.tmp-ban-card .ban-active {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tmp-ban-card .ban-meta {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

/* 响应式 */
@media (max-width: 600px) {
  .tmp-info-row .row-label { min-width: 65px; font-size: 11px; }
  .tmp-info-row .row-value { font-size: 12px; }
}

/* ===== 实时地图弹窗 ===== */
.tmp-map-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: tmpFadeIn 0.25s ease both;
}
.tmp-map-box {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 900px; max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: tmpSlideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tmp-map-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}
.tmp-map-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: 8px;
}
.tmp-map-title .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tmp-map-title .dot.online { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.tmp-map-title .dot.offline { background: #94a3b8; }
.tmp-map-info {
  font-size: 12px; color: #64748b;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tmp-map-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: none; background: #f3f4f6; color: #6b7280;
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.tmp-map-close:hover { background: #e5e7eb; color: #111827; }
.tmp-map-body {
  flex: 1; min-height: 500px; position: relative;
  background: #0d1117;
  overflow: hidden;
}
.tmp-map-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #94a3b8; font-size: 14px; gap: 8px;
}
.tmp-map-footer {
  padding: 10px 16px; border-top: 1px solid #f1f5f9;
  font-size: 11px; color: #94a3b8;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fafafa;
  flex-wrap: wrap;
}
.tmp-map-footer a { color: #0ea5e9; text-decoration: none; font-weight: 600; }
.tmp-map-footer a:hover { text-decoration: underline; }

/* 地图缩放按钮 */
.tmp-zoom-btn {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(10,22,40,0.85);
  color: #e2e8f0;
  font-size: 18px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}
.tmp-zoom-btn:hover {
  background: rgba(56,189,248,0.25);
  border-color: rgba(56,189,248,0.5);
}
.tmp-zoom-btn:active { transform: scale(0.92); }
.tmp-zoom-reset { font-size: 12px !important; }

/* 地图自动刷新按钮 */
.tmp-auto-btn {
  background: #1e293b; color: #94a3b8;
  border: 1px solid #334155; border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
  font-size: 11px; font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tmp-auto-btn:hover { background: #334155; color: #e2e8f0; }
.tmp-auto-btn.active {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.5);
  color: #22c55e;
  animation: autoPulse 2s ease-in-out infinite;
}
@keyframes autoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.tmp-refresh-btn {
  background: #1e293b; color: #94a3b8;
  border: 1px solid #334155; border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
  font-size: 11px; font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tmp-refresh-btn:hover { background: #334155; color: #e2e8f0; }

/* 官方地图链接按钮 */
.tmp-official-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; border: none; border-radius: 6px;
  padding: 4px 12px; cursor: pointer;
  font-size: 11px; font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.tmp-official-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,165,233,0.4);
}

/* ===== Leaflet 玩家标记 ===== */
.tmp-player-marker { background: none !important; border: none !important; }
.tmp-player-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  border: 3px solid #fff;
  box-shadow: 0 0 16px rgba(245,158,11,0.6), 0 0 32px rgba(245,158,11,0.3);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.tmp-player-arrow {
  width: 24px; height: 3px;
  background: #f59e0b;
  border-radius: 2px;
  position: absolute; top: 50%; left: 50%;
  transform-origin: left center;
  z-index: 1;
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
}
.tmp-player-arrow::after {
  content: '';
  position: absolute; right: -2px; top: -3px;
  width: 0; height: 0;
  border-left: 7px solid #f59e0b;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.tmp-player-tooltip {
  background: rgba(10,22,40,0.95) !important;
  border: 1px solid rgba(245,158,11,0.4) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
.tmp-player-tooltip::before { border-top-color: rgba(245,158,11,0.4) !important; }

/* 附近玩家标记 */
.tmp-nearby-player { background: none !important; border: none !important; }
.tmp-np-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 6px rgba(56,189,248,0.4);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.tmp-np-dot.has-dir {
  width: 8px; height: 8px;
}
.tmp-np-dot.has-dir::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 1.5px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
  transform-origin: left center;
  transform: translate(0, -50%) rotate(var(--dir, 0deg));
}
.tmp-np-tooltip {
  background: rgba(10,22,40,0.9) !important;
  border: 1px solid rgba(56,189,248,0.3) !important;
  border-radius: 4px !important;
  color: #e2e8f0 !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
}

/* 地图链接按钮 */
.tmp-map-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 2px 12px rgba(14,165,233,0.25);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.tmp-map-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
}
.tmp-map-link-btn:active {
  transform: scale(0.96);
}
.tmp-map-link-btn:nth-child(2) {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 2px 12px rgba(124,58,237,0.25);
}
.tmp-map-link-btn:nth-child(2):hover {
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.tmp-map-link-btn:nth-child(3) {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 2px 12px rgba(22,163,74,0.25);
}
.tmp-map-link-btn:nth-child(3):hover {
  box-shadow: 0 4px 20px rgba(22,163,74,0.4);
}

@media (max-width: 600px) {
  .tmp-map-overlay { padding: 0; align-items: flex-end; }
  .tmp-map-box { max-width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
  .tmp-map-body { min-height: 350px; }
  .tmp-map-header { padding: 10px 14px; }
  .tmp-map-title { font-size: 13px; }
  .tmp-map-info { font-size: 10px; gap: 6px; }
  .tmp-map-footer { padding: 8px 12px; font-size: 10px; gap: 6px; }
  .tmp-zoom-btn { width: 28px; height: 28px; font-size: 16px; border-radius: 6px; }
  .tmp-auto-btn, .tmp-refresh-btn { font-size: 10px; padding: 3px 8px; }
  .tmp-map-footer select { font-size: 10px; padding: 2px 6px; }
}

/* 进度条与警告 */
.upload-progress-wrap { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.upload-progress-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.upload-progress-fill {
  height: 100%; background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 3px; transition: width 0.3s ease;
}
.upload-progress-text { font-size: 11px; color: #6b7280; white-space: nowrap; min-width: 80px; text-align: right; }
.upload-progress-detail { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.upload-warning {
  margin-top: 6px; font-size: 11px; color: #f59e0b; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  animation: warningBlink 1.5s ease-in-out infinite;
}
@keyframes warningBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.upload-cancel-btn {
  margin-top: 8px; padding: 6px 16px; font-size: 12px; font-weight: 600;
  color: #dc2626; background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25); border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
}
.upload-cancel-btn:hover { background: rgba(220, 38, 38, 0.15); border-color: #dc2626; }

/* --- 响应式 --- */
@media (max-width: 600px) {
  .tmp-top { padding: 14px 16px; }
  .tmp-body { padding: 12px 16px; }
  .tmp-player-header { padding: 12px 16px; }
  .tmp-player-search { min-width: 100%; }
  .tmp-player-search input { font-size: 13px; padding: 10px 14px; }
  .tmp-player-search button { font-size: 12px; padding: 10px 14px; }
  .tmp-player-result { padding: 14px 16px; }
  .tmp-player-card { gap: 14px; }
  .tmp-player-avatar { width: 52px; height: 52px; border-radius: 14px; }
  .tmp-player-name { font-size: 16px; }
}
