/* ====== 顶部状态卡片 ====== */
.track-status-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  padding: 20px;
  color: white;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
  position: relative;
  overflow: hidden;
}
.track-status-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.2);
  margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; border: 2px solid rgba(255,255,255,.4); overflow: hidden;
}
.track-status-avatar img { width: 100%; height: 100%; object-fit: cover; }
.track-status-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.track-status-now { font-size: 14px; opacity: .9; display: flex; align-items: center; justify-content: center; gap: 6px; }
.track-status-dot { width: 8px; height: 8px; background: #34C759; border-radius: 50%; box-shadow: 0 0 8px #34C759; animation: trackPulse 1.5s infinite; }
@keyframes trackPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ====== 时间轴容器 ====== */
.track-timeline-card {
  background: #fff; border-radius: 16px; padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03); position: relative; min-height: 200px;
}

/* ====== 时间轴项 ====== */
.track-item { position: relative; padding-left: 28px; padding-bottom: 24px; }
.track-item:last-child { padding-bottom: 0; }

/* 竖线 */
.track-item::before {
  content: ''; position: absolute; left: 5px; top: 16px; bottom: -8px;
  width: 2px; background: #E5E5EA; z-index: 1;
}
.track-item:last-child::before { display: none; }

/* 圆点 */
.track-dot {
  position: absolute; left: 0; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid #fff; background: #E5E5EA; z-index: 2;
}

/* --- 过去的状态 (详细) --- */
.track-item.past .track-dot { background: #007AFF; box-shadow: 0 0 0 2px rgba(0,122,255,.2); }
.track-item.past::before { background: rgba(0,122,255,.3); }
.track-time { font-size: 14px; font-weight: 700; color: #000; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.track-loc { font-size: 12px; color: #8E8E93; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.track-action { font-size: 15px; color: #333; line-height: 1.5; margin-bottom: 8px; }
.track-social {
  font-size: 13px; color: #FF9500; background: rgba(255,149,0,.08);
  padding: 8px 12px; border-radius: 10px; display: inline-block; line-height: 1.4;
  border-left: 3px solid #FF9500;
}

/* --- 当前时间分割线 --- */
.track-now-divider { position: relative; text-align: center; margin: 10px 0 24px; padding-left: 28px; }
.track-now-divider::before { content:''; position:absolute; left:28px; right:0; top:50%; border-top:1px dashed #34C759; z-index:1; }
.track-now-tag { position:relative; z-index:2; background:#fff; padding:0 10px; font-size:12px; color:#34C759; font-weight:600; display:inline-block; }

/* --- 未来的状态 (简略) --- */
.track-item.future .track-dot { background: #fff; border: 2px solid #C7C7CC; }
.track-item.future .track-time { color: #8E8E93; }
.track-item.future .track-action { color: #8E8E93; font-style: italic; font-size: 14px; margin-bottom: 0; }
.track-item.future .track-loc { opacity: 0.6; margin-bottom: 0; }

/* ====== 生成动画 ====== */
.track-loading-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,.8);
  z-index: 10; display: none; align-items: center; justify-content: center;
  border-radius: 16px; backdrop-filter: blur(2px); flex-direction: column;
}
.track-loading-overlay.show { display: flex; }
.track-spinner {
  width: 30px; height: 30px; border: 3px solid #E5E5EA; border-top-color: #007AFF;
  border-radius: 50%; animation: spin 1s linear infinite;
}
