/* ============================================================
   Logistics Animation System – Styles v2
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --la-bg: #0a1628;
  --la-accent: #00d4aa;
  --la-accent-dim: rgba(0,212,170,0.12);
  --la-accent-mid: rgba(0,212,170,0.25);
  --la-border: rgba(0,212,170,0.12);
  --la-text: #e8edf5;
  --la-text-dim: #7a8ba8;
  --la-yellow: #f5c542;
  --la-blue: #3b9eff;
  --la-map-bg: #0d1b2a;
  --la-map-road-minor: #1e2d3d;
  --la-map-road-major: #2a3a4a;
  --la-map-road-highlight: #00d4aa;
  --la-map-water: #0a2540;
  --la-map-building: rgba(0,212,170,0.06);
  --la-map-building-border: rgba(0,212,170,0.12);
}

/* ---------- Container ---------- */
.la-container {
  position: relative;
  width: 100%;
  min-height: 580px;
  background: var(--la-bg);
  border: 1px solid var(--la-border);
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--la-text);
}

/* ---------- Viewport ---------- */
.la-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

/* ---------- Scene base ---------- */
.la-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.la-scene.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Status label ---------- */
.la-status-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 22px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 2px;
  z-index: 20;
  white-space: nowrap;
}

/* ---------- Weather overlay ---------- */
.la-weather {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.72rem;
  color: #a0b4cc;
  backdrop-filter: blur(4px);
}
.la-weather-icon {
  width: 22px;
  height: 22px;
  position: relative;
  overflow: visible;
}
/* Sun */
.la-weather-sun {
  width: 14px; height: 14px;
  background: #ffd700;
  border-radius: 50%;
  position: absolute;
  top: 4px; left: 4px;
  box-shadow: 0 0 8px rgba(255,215,0,0.5);
}
.la-weather-sun::before,
.la-weather-sun::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: rgba(255,215,0,0.3);
  border-radius: 2px;
}
.la-weather-sun::before {
  width: 22px; height: 2px;
  transform: translate(-50%,-50%);
}
.la-weather-sun::after {
  width: 2px; height: 22px;
  transform: translate(-50%,-50%);
}
/* Cloud */
.la-weather-cloud {
  width: 16px; height: 10px;
  background: #8899aa;
  border-radius: 10px;
  position: absolute;
  top: 7px; left: 3px;
}
.la-weather-cloud::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: #8899aa;
  border-radius: 50%;
  top: -6px; left: 2px;
}
.la-weather-cloud::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: #8899aa;
  border-radius: 50%;
  top: -4px; left: 8px;
}
/* Rain drops */
.la-weather-rain-drops {
  position: absolute;
  bottom: 0; left: 2px; right: 2px;
  height: 8px;
  overflow: hidden;
}
.la-weather-rain-drop {
  width: 1.5px; height: 5px;
  background: #6ba3d6;
  border-radius: 1px;
  position: absolute;
  animation: la-rain-fall 0.6s linear infinite;
}
.la-weather-rain-drop:nth-child(1) { left: 3px; animation-delay: 0s; }
.la-weather-rain-drop:nth-child(2) { left: 9px; animation-delay: 0.2s; }
.la-weather-rain-drop:nth-child(3) { left: 15px; animation-delay: 0.4s; }
@keyframes la-rain-fall {
  0% { transform: translateY(-6px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
/* Snow */
.la-weather-snow-flake {
  width: 4px; height: 4px;
  background: #dde8f0;
  border-radius: 50%;
  position: absolute;
  animation: la-snow-fall 1.5s linear infinite;
}
.la-weather-snow-flake:nth-child(1) { left: 4px; animation-delay: 0s; }
.la-weather-snow-flake:nth-child(2) { left: 11px; animation-delay: 0.5s; }
.la-weather-snow-flake:nth-child(3) { left: 17px; animation-delay: 1s; }
@keyframes la-snow-fall {
  0% { transform: translateY(-4px) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(18px) rotate(180deg); opacity: 0; }
}
/* Scene-level weather effects */
.la-scene-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 15;
  pointer-events: none;
}
.la-scene-rain-drop {
  position: absolute;
  top: -20px;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(120,180,255,0.4));
  border-radius: 0 0 2px 2px;
  animation: la-scene-rain-fall linear infinite;
}
@keyframes la-scene-rain-fall {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(560px); opacity: 0; }
}
.la-scene-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 15;
  pointer-events: none;
}
.la-scene-snow-flake {
  position: absolute;
  top: -10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: la-scene-snow-fall linear infinite;
}
@keyframes la-scene-snow-fall {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(280px) translateX(15px); }
  90% { opacity: 0.8; }
  100% { transform: translateY(560px) translateX(-10px); opacity: 0; }
}


/* ============================================================
   1. 打包中 (Pending)
   ============================================================ */
.la-pending-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #060e1a 0%, #0a1628 50%, #0e1c2e 100%);
}

.la-pending-box {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,212,170,0.04));
  border: 2px solid rgba(0,212,170,0.3);
  border-radius: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0,212,170,0.08), inset 0 0 30px rgba(0,212,170,0.03);
}
.la-pending-box::before {
  content: '';
  position: absolute;
  top: -2px; bottom: -2px; left: 50%;
  width: 3px;
  background: linear-gradient(180deg, rgba(0,212,170,0.15), rgba(0,212,170,0.35), rgba(0,212,170,0.15));
  transform: translateX(-50%);
}
.la-pending-box::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; top: 50%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,212,170,0.15), rgba(0,212,170,0.35), rgba(0,212,170,0.15));
  transform: translateY(-50%);
}
.la-pending-glow {
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  background: radial-gradient(ellipse, rgba(0,212,170,0.06), transparent 70%);
  animation: la-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes la-glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.la-pending-box-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--la-accent);
  letter-spacing: 4px;
  z-index: 1;
}

.la-pending-question {
  margin-top: 35px;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--la-accent);
  animation: la-bounce-question 1.4s cubic-bezier(0.22, 1.2, 0.36, 1) infinite;
  text-shadow: 0 0 25px rgba(0,212,170,0.35);
}
@keyframes la-bounce-question {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-20px) scale(1.06); }
  50% { transform: translateY(0) scale(0.96); }
  65% { transform: translateY(-7px) scale(1.02); }
  80% { transform: translateY(0) scale(0.99); }
}

/* ============================================================
   2. 已发货 (Shipped)
   ============================================================ */
.la-shipped-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}

/* Ground */
.la-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, #1a2d40, #0f1f30);
}
.la-ground::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,0.15), transparent);
}

/* Road */
.la-road {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  height: 40px;
  background: #1c2e40;
}
.la-road::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0, rgba(255,255,255,0.12) 30px, transparent 30px, transparent 60px);
  transform: translateY(-50%);
}

/* Person (generic) - ~40px tall, stands on ground */
.la-person {
  position: absolute;
  z-index: 5;
}
.la-person-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.la-person-hat {
  width: 20px; height: 7px;
  background: var(--la-yellow);
  border-radius: 10px 10px 0 0;
}
.la-person-head {
  width: 16px; height: 16px;
  background: #e8c9a0;
  border-radius: 50%;
}
.la-person-torso {
  width: 24px; height: 20px;
  border-radius: 4px;
  margin-top: -2px;
  position: relative;
}
.la-person-torso.civilian {
  background: #5b8def;
}
.la-person-torso.worker {
  background: var(--la-accent);
}
.la-person-torso .worker-stripe {
  position: absolute;
  top: 6px; left: 3px; right: 3px;
  height: 2px;
  background: rgba(255,255,255,0.35);
}
.la-person-legs {
  display: flex;
  gap: 5px;
}
.la-person-leg {
  width: 7px; height: 16px;
  background: #1a2a3a;
  border-radius: 0 0 3px 3px;
}
.la-person-package {
  width: 14px; height: 12px;
  background: var(--la-yellow);
  border-radius: 2px;
  margin-bottom: 2px;
}

/* Truck (side view) */
.la-truck {
  position: absolute;
  bottom: 80px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
}
.la-truck-trailer {
  width: 110px;
  height: 50px;
  border-radius: 5px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.la-truck-trailer.green {
  background: linear-gradient(135deg, #00d4aa, #00a88a);
}
.la-truck-trailer.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.la-truck-trailer-stripe {
  position: absolute;
  bottom: 10px; left: 8px; right: 8px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.la-truck-trailer-logo {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
  white-space: nowrap;
}
.la-truck-cab {
  width: 38px;
  height: 42px;
  border-radius: 0 12px 5px 0;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  margin-left: -1px;
}
.la-truck-cab.green {
  background: linear-gradient(135deg, #00eabb, #00d4aa);
}
.la-truck-cab.blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}
.la-truck-windshield {
  position: absolute;
  top: 6px; right: 5px;
  width: 18px; height: 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
.la-truck-headlight {
  position: absolute;
  bottom: 8px; right: 4px;
  width: 6px; height: 6px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.la-truck-wheels {
  display: flex;
  position: absolute;
  bottom: -10px;
  left: 10px;
}
.la-truck-wheel {
  width: 16px; height: 16px;
  background: #0a1628;
  border: 3px solid #4a5a74;
  border-radius: 50%;
  margin-right: 28px;
}
.la-truck-wheel:last-child { margin-right: 0; }
.la-truck-exhaust {
  position: absolute;
  left: -8px; bottom: 10px;
  width: 12px; height: 12px;
  background: rgba(180,180,180,0.25);
  border-radius: 50%;
  opacity: 0;
}
.la-truck-exhaust.on {
  animation: la-puff 1.2s ease-out infinite;
}
@keyframes la-puff {
  0% { transform: scale(0.4) translate(0,0); opacity: 0.5; }
  100% { transform: scale(2.5) translate(-20px,-15px); opacity: 0; }
}

/* Van (small delivery van, side view) */
.la-van {
  position: absolute;
  bottom: 80px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
}
.la-van-body {
  width: 70px;
  height: 36px;
  border-radius: 5px 5px 3px 3px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
.la-van-body.green {
  background: linear-gradient(135deg, #00d4aa, #00a88a);
}
.la-van-body.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.la-van-logo {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
  white-space: nowrap;
}
.la-van-cab {
  width: 28px;
  height: 30px;
  border-radius: 0 10px 3px 0;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  margin-left: -1px;
}
.la-van-cab.green {
  background: linear-gradient(135deg, #00eabb, #00d4aa);
}
.la-van-cab.blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}
.la-van-windshield {
  position: absolute;
  top: 5px; right: 4px;
  width: 14px; height: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
}
.la-van-wheels {
  display: flex;
  position: absolute;
  bottom: -8px;
  left: 8px;
}
.la-van-wheel {
  width: 12px; height: 12px;
  background: #0a1628;
  border: 2.5px solid #4a5a74;
  border-radius: 50%;
  margin-right: 24px;
}
.la-van-wheel:last-child { margin-right: 0; }

/* ============================================================
   3. 运输中 (Transit – Map Scene)
   ============================================================ */
.la-map-scene {
  background: var(--la-map-bg);
  overflow: hidden;
}

.la-map-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.la-map-container:active {
  cursor: grabbing;
}
.la-map-inner {
  position: absolute;
  width: 1200px;
  height: 780px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: none;
}

/* Map SVG overlay */
.la-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Map city markers */
.la-map-city {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
}
.la-map-city-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--la-accent);
  box-shadow: 0 0 10px rgba(0,212,170,0.4);
}
.la-map-city-dot.origin {
  background: #00d4aa;
  box-shadow: 0 0 14px rgba(0,212,170,0.6);
}
.la-map-city-dot.destination {
  background: #ff6b6b;
  border-color: #ff6b6b;
  box-shadow: 0 0 14px rgba(255,107,107,0.6);
}
.la-map-city-dot.waypoint {
  background: rgba(0,212,170,0.3);
  width: 8px; height: 8px;
  border-color: rgba(0,212,170,0.5);
}

#la-map-pulse {
  animation: la-map-pulse 2s ease-out infinite;
}
@keyframes la-map-pulse {
  0% { r: 8; opacity: 0.5; }
  100% { r: 20; opacity: 0; }
}

.la-map-city-label {
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,212,170,0.2);
}
.la-map-city-dot.destination + .la-map-city-label {
  color: #ff8a8a;
  border-color: rgba(255,107,107,0.2);
}

/* Map vehicle */
.la-map-vehicle {
  position: absolute;
  z-index: 10;
  transition: left 0.1s linear, top 0.1s linear;
}

/* Truck top-down (map) */
.la-truck-topdown {
  position: absolute;
  z-index: 10;
}
.la-truck-td-body {
  width: 50px;
  height: 28px;
  border-radius: 4px 8px 8px 4px;
  position: relative;
}
.la-truck-td-body.green {
  background: linear-gradient(135deg, #00d4aa, #00a88a);
  box-shadow: 0 2px 10px rgba(0,212,170,0.3);
}
.la-truck-td-body.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 10px rgba(59,130,246,0.3);
}
.la-truck-td-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.la-truck-td-cab {
  position: absolute;
  right: -14px;
  top: 3px;
  width: 14px;
  height: 22px;
  border-radius: 0 6px 6px 0;
}
.la-truck-td-cab.green { background: #00eabb; }
.la-truck-td-cab.blue { background: #60a5fa; }

/* Van top-down (map) */
.la-van-topdown {
  position: absolute;
  z-index: 10;
}
.la-van-td-body {
  width: 36px;
  height: 22px;
  border-radius: 3px 6px 6px 3px;
  position: relative;
}
.la-van-td-body.green {
  background: linear-gradient(135deg, #00d4aa, #00a88a);
  box-shadow: 0 2px 8px rgba(0,212,170,0.3);
}
.la-van-td-body.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.la-van-td-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.35rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.la-van-td-cab {
  position: absolute;
  right: -10px;
  top: 2px;
  width: 10px;
  height: 18px;
  border-radius: 0 5px 5px 0;
}
.la-van-td-cab.green { background: #00eabb; }
.la-van-td-cab.blue { background: #60a5fa; }

/* ============================================================
   4. 到达集散中心 (Distribution Center)
   ============================================================ */
.la-dist-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}

/* Transit Station (smaller than distribution center) */
.la-ts-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}
.la-ts-warehouse {
  width: 280px;
  height: 170px;
}
.la-ts-int-scene {
  background: linear-gradient(180deg, #0e1a28 0%, #121f2e 50%, #0e1a28 100%);
}
.la-ts-int-label {
  position: absolute;
  top: 15px; left: 50%; transform: translateX(-50%);
  padding: 5px 20px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 2px;
  z-index: 10;
}



/* Warehouse building (side view) - LARGE */
.la-warehouse {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 200px;
}
.la-wh-roof {
  position: absolute;
  top: -40px;
  left: -30px; right: -30px;
  height: 40px;
  background: linear-gradient(180deg, #2a3d52, #1e3045);
  clip-path: polygon(0 100%, 3% 0, 97% 0, 100% 100%);
  border-bottom: 2px solid rgba(0,212,170,0.2);
}
.la-wh-body {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #152535, #0e1c2a);
  border: 1px solid rgba(0,212,170,0.12);
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
}
.la-wh-sign {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  padding: 5px 24px;
  background: rgba(0,212,170,0.12);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 3px;
  white-space: nowrap;
}
.la-wh-windows {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}
.la-wh-win {
  width: 30px; height: 24px;
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.12);
  border-radius: 2px;
}
.la-wh-win.lit {
  background: rgba(0,212,170,0.18);
  box-shadow: 0 0 14px rgba(0,212,170,0.12);
}
.la-wh-door {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 100px;
  background: linear-gradient(180deg, rgba(0,212,170,0.08), rgba(0,0,0,0.4));
  border: 1px solid rgba(0,212,170,0.2);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* Warehouse interior (top-down) - LARGE */
.la-whi-scene {
  background: linear-gradient(180deg, #0e1a28 0%, #121f2e 50%, #0e1a28 100%);
}
.la-whi-label {
  position: absolute;
  top: 15px; left: 50%; transform: translateX(-50%);
  padding: 5px 20px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 2px;
  z-index: 10;
}
.la-whi-front-door {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-lr;
  font-size: 0.6rem;
  color: rgba(0,212,170,0.4);
  letter-spacing: 2px;
  padding: 8px 4px;
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 4px;
  background: rgba(0,212,170,0.03);
}
.la-whi-back-door {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-lr;
  font-size: 0.6rem;
  color: rgba(59,130,246,0.5);
  letter-spacing: 2px;
  padding: 8px 4px;
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 4px;
  background: rgba(59,130,246,0.03);
}

/* Warehouse floor outline (top-down) */
.la-whi-floor {
  position: absolute;
  top: 50px; bottom: 50px;
  left: 50px; right: 50px;
  border: 1px solid rgba(0,212,170,0.08);
  border-radius: 4px;
  background: rgba(0,0,0,0.15);
}

/* Conveyor belt (top-down) */
.la-conveyor {
  position: absolute;
  top: 50%; left: 70px; right: 70px;
  height: 24px;
  transform: translateY(-50%);
  background: #1a2a3a;
  border-radius: 12px;
  border: 1px solid rgba(0,212,170,0.15);
  overflow: hidden;
}
.la-conveyor-belt {
  width: 200%; height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,212,170,0.12) 0,
    rgba(0,212,170,0.12) 8px,
    transparent 8px,
    transparent 16px
  );
  animation: la-belt-move 0.8s linear infinite paused;
}
.la-conveyor.active .la-conveyor-belt {
  animation-play-state: running;
}
@keyframes la-belt-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Conveyor packages */
.la-cpkg {
  position: absolute;
  top: 50%;
  width: 18px; height: 16px;
  border-radius: 3px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s, left 2s linear;
}
.la-cpkg.visible { opacity: 1; }
.la-cpkg.moving { left: calc(100% - 90px) !important; }

/* Shelves (top-down) */
.la-shelf {
  position: absolute;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s;
}
.la-shelf.visible { opacity: 1; }
.la-shelf-unit {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.la-shelf-row {
  width: 70px; height: 22px;
  background: #1a2a3a;
  border: 1px solid rgba(0,212,170,0.1);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 5px;
}
.la-shelf-pkg {
  width: 9px; height: 9px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.la-shelf-pkg.visible { opacity: 1; }

/* Interior workers - standing NEXT TO conveyor, not on it */
.la-whi-worker {
  position: absolute;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.4s;
}
.la-whi-worker.visible { opacity: 1; }

/* ============================================================
   5. 到达网点 (Delivery Station)
   ============================================================ */
.la-station-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}

/* Small shop/storefront */
.la-shop {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 140px;
}
.la-shop-roof {
  position: absolute;
  top: -25px;
  left: -15px; right: -15px;
  height: 25px;
  background: linear-gradient(180deg, #2a3d52, #1e3045);
  clip-path: polygon(0 100%, 5% 0, 95% 0, 100% 100%);
  border-bottom: 2px solid rgba(0,212,170,0.2);
}
.la-shop-body {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #152535, #0e1c2a);
  border: 1px solid rgba(0,212,170,0.12);
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
}
.la-shop-sign {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px;
  background: rgba(0,212,170,0.12);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 2px;
  white-space: nowrap;
}
.la-shop-door {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 70px;
  background: linear-gradient(180deg, rgba(0,212,170,0.08), rgba(0,0,0,0.4));
  border: 1px solid rgba(0,212,170,0.2);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* Shop interior (top-down) */
.la-shop-int-label {
  position: absolute;
  top: 15px; left: 50%; transform: translateX(-50%);
  padding: 5px 18px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 2px;
  z-index: 10;
}

/* Station interior walls */
.la-station-wall { position: absolute; background: #152535; z-index: 1; }
.la-station-wall-top { top: 0; left: 0; right: 0; height: 50px; border-bottom: 2px solid rgba(0,212,170,0.1); }
.la-station-wall-left { top: 50px; left: 0; width: 20px; bottom: 50px; border-right: 1px solid rgba(0,212,170,0.08); }
.la-station-wall-right { top: 50px; right: 0; width: 20px; bottom: 50px; border-left: 1px solid rgba(0,212,170,0.08); }
.la-station-wall-bottom { bottom: 0; left: 0; right: 0; height: 50px; border-top: 2px solid rgba(0,212,170,0.1); }
.la-station-door { position: absolute; bottom: 0; left: calc(50% - 30px); width: 60px; height: 50px; background: #0e1a28; border: 1px solid rgba(0,212,170,0.15); border-bottom: none; border-radius: 4px 4px 0 0; z-index: 2; }
.la-station-door::after { content: '入口'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 0.5rem; color: rgba(0,212,170,0.4); letter-spacing: 2px; }
.la-station-shelf { position: absolute; z-index: 2; }
.la-station-shelf .la-shelf-unit { background: rgba(20,35,50,0.8); border: 1px solid rgba(0,212,170,0.08); border-radius: 4px; padding: 8px; }
.la-station-shelf .la-shelf-row { display: flex; gap: 4px; margin-bottom: 4px; }
.la-station-shelf .la-shelf-pkg { width: 12px; height: 10px; border-radius: 2px; }

/* ============================================================
   6. 快递柜 (Locker)
   ============================================================ */
.la-locker-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}

/* Locker cabinet (side view, standing on ground) */
.la-locker-cabinet {
  position: absolute;
  width: 180px;
  z-index: 3;
}
.la-locker-cab-top {
  height: 24px;
  background: linear-gradient(180deg, #2a3d52, #1e3045);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--la-accent);
  letter-spacing: 2px;
}
.la-locker-cab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  background: linear-gradient(180deg, #152535, #0e1c2a);
  border: 1px solid rgba(0,212,170,0.12);
  border-top: none;
  border-radius: 0 0 4px 4px;
}
.la-locker-comp {
  width: 52px;
  height: 50px;
  background: #1a2a3a;
  border: 1px solid rgba(0,212,170,0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.la-locker-comp-target {
  border-color: var(--la-accent);
  box-shadow: 0 0 8px rgba(0,212,170,0.25);
}
.la-locker-comp-door {
  position: absolute;
  inset: 2px;
  background: #1e3045;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.4s;
  transform-origin: left center;
}
.la-locker-comp-door::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(0,212,170,0.3);
  border-radius: 50%;
}
.la-locker-comp.open .la-locker-comp-door {
  transform: perspective(200px) rotateY(-80deg);
  opacity: 0.3;
}
.la-locker-comp-pkg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 16px;
  background: var(--la-yellow);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.la-locker-comp-has-pkg .la-locker-comp-pkg {
  opacity: 1;
}
.la-locker-comp-filled .la-locker-comp-door {
  background: #1a2a3a;
}

/* Locker room floor (interior) */
.la-locker-room-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, #1a2d40, #0f1f30);
}
.la-locker-room-floor::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,0.1), transparent);
}

/* ============================================================
   7. 签收 Checkmark (SVG stroke animation)
   ============================================================ */
.la-checkmark-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}
.la-checkmark-svg {
  width: 100px;
  height: 100px;
}
.la-checkmark-circle {
  fill: none;
  stroke: var(--la-accent);
  stroke-width: 3;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
}
.la-checkmark-circle.animate {
  animation: la-draw-circle 0.6s ease forwards;
}
@keyframes la-draw-circle {
  to { stroke-dashoffset: 0; }
}
.la-checkmark-check {
  fill: none;
  stroke: var(--la-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}
.la-checkmark-check.animate {
  animation: la-draw-check 0.4s 0.5s ease forwards;
}
@keyframes la-draw-check {
  to { stroke-dashoffset: 0; }
}

/* ============================================================
   8. 送货上门 (Home Delivery)
   ============================================================ */
.la-home-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}

/* House (used for home delivery & signed home) */
.la-house {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Reset any inherited positioning */
  left: auto;
  right: auto;
  bottom: 80px;
  transform: none;
  width: auto;
  height: auto;
}
.la-house-roof {
  width: 124px;
  height: 40px;
  background: linear-gradient(180deg, #2a4060, #1e3045);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  /* Roof slightly wider than body for overhang */
  margin-left: -2px;
  margin-right: -2px;
}
.la-house-body {
  width: 120px;
  height: 80px;
  background: linear-gradient(180deg, #1e3045, #162535);
  border: 1px solid rgba(0,212,170,0.12);
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}
.la-house-window {
  width: 22px; height: 22px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 2px;
}
.la-house-door {
  width: 26px; height: 40px;
  background: #0e1a28;
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 2px 2px 0 0;
  align-self: flex-end;
  margin-bottom: 0;
}
.la-home-scene {
  background: linear-gradient(180deg, #0d1b2a 0%, #162535 60%, #1a2d40 100%);
}

/* ============================================================
   Shared drive / walk / engine animations
   ============================================================ */
@keyframes la-drive-in-left {
  0% { transform: translateX(-400px); }
  100% { transform: translateX(0); }
}
@keyframes la-drive-out-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(400px); }
}
@keyframes la-drive-in-right {
  0% { transform: translateX(400px) scaleX(-1); }
  100% { transform: translateX(0) scaleX(-1); }
}
@keyframes la-drive-out-left {
  0% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(-400px) scaleX(-1); }
}
@keyframes la-walk-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}
@keyframes la-walk-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}
@keyframes la-engine-vibrate {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  75% { transform: translateY(1px); }
}
@keyframes la-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lamp posts */
.la-lamp {
  position: absolute;
  bottom: 100px;
  z-index: 1;
}
.la-lamp-arm {
  width: 26px; height: 3px;
  background: #2a3d52;
  margin-left: -13px;
}
.la-lamp-head {
  width: 16px; height: 7px;
  background: #2a3d52;
  border-radius: 3px;
  margin-left: -9px;
  position: relative;
}
.la-lamp-glow {
  position: absolute;
  top: 7px; left: 50%; transform: translateX(-50%);
  width: 55px; height: 45px;
  background: radial-gradient(ellipse, rgba(255,220,100,0.08), transparent);
  border-radius: 50%;
}
.la-lamp-pole {
  width: 3px; height: 100px;
  background: #2a3d52;
  margin: 0 auto;
}

/* Stars */
.la-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: la-twinkle 3s ease-in-out infinite;
}
@keyframes la-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.la-moon {
  position: absolute;
  width: 35px; height: 35px;
  background: radial-gradient(circle, #f5e6a3, #daa520);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(245,230,163,0.25);
}

/* Footer progress */
.la-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(0,212,170,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,212,170,0.02);
}
.la-steps {
  display: flex;
  gap: 6px;
}
.la-step-bar {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: rgba(0,212,170,0.12);
  transition: all 0.4s;
}
.la-step-bar.active {
  background: var(--la-accent);
  box-shadow: 0 0 8px rgba(0,212,170,0.5);
  width: 44px;
}
.la-step-bar.done {
  background: rgba(0,212,170,0.35);
}
.la-step-label {
  font-size: 0.82rem;
  color: #7a8ba8;
  font-weight: 500;
}


/* Map info panel */
.la-map-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10,22,40,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  z-index: 20;
  min-width: 180px;
}
.la-map-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.la-map-info-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}
.la-map-info-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00d4aa;
}
.la-map-info-hint {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,212,170,0.08);
}
/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .la-viewport { height: 420px; }
  .la-container { min-height: 480px; }
  .la-warehouse { width: 280px; height: 160px; }
  .la-locker-cabinet {
    width: 140px;
  }
  .la-locker-comp {
    width: 38px;
    height: 36px;
  }
}
