/* ═══════════════════════════════════════════════════════════
   跨境物流 · 登录页背景动画 HUD 样式（商务版）
   配合 logistics-animation.js 使用
   配色：深藏蓝 + 金色 · 大字号商务风
   ═══════════════════════════════════════════════════════════ */
.logi-root {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
}

/* ---- 顶部状态条 ---- */
.logi-status {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(7, 16, 30, 0.86);
  border: 1px solid rgba(217, 168, 60, 0.4);
  border-radius: 8px;
  padding: 8px 22px;
  color: #e8d9a8;
  font-size: 13px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(217, 168, 60, 0.05);
  white-space: nowrap;
  animation: logiFadeInC 0.9s ease-out both;
}
.logi-status .logi-brand {
  font-weight: 700;
  color: #f0c96b;
  font-size: 14px;
  letter-spacing: 1px;
}
.logi-status .logi-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(217, 168, 60, 0.5);
  box-shadow: 0 0 8px rgba(240, 201, 107, 0.35);
}
.logi-status .logi-slogan {
  color: rgba(232, 217, 168, 0.55);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 1px;
}
.logi-status .logi-sub {
  color: rgba(232, 217, 168, 0.35);
  font-size: 9px;
  margin-left: 3px;
  letter-spacing: 1px;
}
.logi-status .logi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35c27c;
  box-shadow: 0 0 8px #35c27c;
  animation: logiBlink 2s ease-in-out infinite;
}
.logi-status .logi-sep { color: rgba(232, 217, 168, 0.2); }
.logi-status .logi-k { color: rgba(232, 217, 168, 0.55); font-size: 11px; }
.logi-status .logi-v { color: #f0c96b; font-weight: 700; }
@keyframes logiBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 四地时钟 */
.logi-clocks {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.lc-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(217, 168, 60, 0.1);
  border: 1px solid rgba(217, 168, 60, 0.25);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.3;
}
.lc-item b { color: #f0c96b; font-weight: 700; }
.lc-item i { color: rgba(232, 217, 168, 0.6); font-style: normal; }
.lc-item u {
  color: #fff;
  text-decoration: none;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---- 通用小面板 ---- */
.logi-box {
  position: relative;
  background: rgba(7, 16, 30, 0.86);
  border: 1px solid rgba(217, 168, 60, 0.35);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(217, 168, 60, 0.04);
  color: #e8d9a8;
}
/* 四角刻度角标 */
.logi-box::before, .logi-box::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 3;
}
.logi-box::before {
  top: -1px; left: -1px;
  border-top: 2px solid #f0c96b;
  border-left: 2px solid #f0c96b;
}
.logi-box::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid #f0c96b;
  border-right: 2px solid #f0c96b;
}
/* 面板浮现动画 */
.logi-data, .logi-minimap {
  animation: logiFadeIn 0.9s ease-out both;
}
@keyframes logiFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 右上角：物流数据 + 系统状态 ---- */
.logi-data {
  position: fixed;
  right: 16px;
  top: 64px;
  z-index: 30;
  width: 240px;
  padding: 12px 16px;
  font-size: 13px;
}
.logi-data .ld-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #f0c96b;
  border-bottom: 1px solid rgba(217, 168, 60, 0.2);
  padding-bottom: 6px;
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logi-data .ld-title .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #f0c96b;
  box-shadow: 0 0 6px #f0c96b;
}
.logi-data .ld-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}
.logi-data .ld-row .k { color: rgba(232, 217, 168, 0.6); font-size: 11px; letter-spacing: 0.5px; }
.logi-data .ld-row .v { color: #f0c96b; font-weight: 700; font-size: 14px; }
.logi-data .ld-row .delta {
  color: rgba(232, 217, 168, 0.5);
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-left: auto;
  padding-left: 6px;
}
.logi-data .ld-row .delta.up { color: #35c27c; }

.logi-data .ld-sys {
  border-top: 1px solid rgba(217, 168, 60, 0.2);
  margin-top: 7px;
  padding-top: 7px;
}
.logi-data .ld-sys-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 11px;
}
.logi-data .ld-sys-row .k { color: rgba(232, 217, 168, 0.55); }
.logi-data .ld-sys-row .st {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 7px; border-radius: 3px;
}
.logi-st-ok   { color: #35c27c; background: rgba(53, 194, 124, 0.12); }
.logi-st-run  { color: #f0c96b; background: rgba(240, 201, 107, 0.12); }
.logi-st-idle { color: rgba(232, 217, 168, 0.45); background: rgba(232, 217, 168, 0.06); }
.logi-st-warn { color: #e05b4c; background: rgba(224, 91, 76, 0.12); animation: logiBlink 1.2s infinite; }

/* 资质数据墙 */
.logi-data .ld-qual {
  border-top: 1px solid rgba(217, 168, 60, 0.2);
  margin-top: 7px;
  padding-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(232, 217, 168, 0.55);
  letter-spacing: 0.5px;
}
.logi-data .ld-qual b { color: #f0c96b; font-size: 11px; }
.logi-data .ld-qual i { color: rgba(217, 168, 60, 0.35); font-style: normal; }

/* ---- 右下角：航线小地图 ---- */
.logi-minimap {
  position: fixed;
  right: 16px;
  bottom: 64px;
  z-index: 30;
  width: 226px;
  padding: 6px;
}
.logi-minimap canvas {
  display: block;
  width: 100%;
  border-radius: 4px;
}

/* ---- 底部：物流阶段进度条 ---- */
.logi-progress {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(720px, 62vw);
  padding: 10px 16px 8px;
  animation: logiFadeInC 0.9s ease-out 0.15s both;
}
@keyframes logiFadeInC {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.logi-progress .lp-track {
  display: flex;
  height: 9px;
  border: 1px solid rgba(217, 168, 60, 0.35);
  border-radius: 5px;
  overflow: hidden;
}
.logi-progress .lp-seg {
  height: 100%;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.logi-progress .lp-seg.done { opacity: 0.9; }
.logi-progress .lp-seg.cur { opacity: 1; box-shadow: inset 0 0 10px rgba(255,255,255,0.2); }
.logi-progress .lp-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: rgba(232, 217, 168, 0.5);
  letter-spacing: 1px;
}
.logi-progress .lp-name {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #f0c96b;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(240, 201, 107, 0.4);
  white-space: nowrap;
  font-weight: 700;
}

/* ---- 节点说明气泡 ---- */
.logi-tip {
  position: fixed;
  z-index: 40;
  max-width: 250px;
  background: rgba(10, 20, 38, 0.96);
  border: 1px solid #f0c96b;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(240, 201, 107, 0.15);
  pointer-events: none;
  display: none;
}
.logi-tip .tip-en {
  font-size: 12px;
  font-weight: 700;
  color: #f0c96b;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.logi-tip .tip-cn { color: rgba(232, 217, 168, 0.8); font-size: 11px; line-height: 1.6; }

/* ---- 扫描线（淡） ---- */
.logi-scanlines {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(217, 168, 60, 0.012) 0px,
    rgba(217, 168, 60, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---- 大扫描线（周期扫过全屏） ---- */
.logi-sweep {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 130px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(240, 201, 107, 0.05),
    rgba(240, 201, 107, 0.12),
    rgba(240, 201, 107, 0.05),
    transparent
  );
  animation: logiSweep 8s linear infinite;
}
@keyframes logiSweep {
  0%   { transform: translateY(-150px); }
  100% { transform: translateY(calc(100vh + 150px)); }
}

/* ---- 运单滚动流 ---- */
.logi-ticker {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-size: 12px;
  color: rgba(240, 201, 107, 0.85);
  letter-spacing: 1px;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(240, 201, 107, 0.3);
  transition: opacity 0.5s ease;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
}

/* ---- 城市聚焦详情卡 ---- */
.logi-citycard {
  position: fixed;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(7, 16, 30, 0.92);
  border: 1px solid #f0c96b;
  border-radius: 8px;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 22px rgba(240, 201, 107, 0.15);
  transition: opacity 0.4s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logi-citycard .cc-en { color: #f0c96b; font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.logi-citycard .cc-cn { color: rgba(232, 217, 168, 0.85); margin-top: 3px; font-size: 12px; }

/* ---- 小屏适配 ---- */
@media (max-width: 1100px) {
  .logi-data, .logi-minimap { display: none; }
  .logi-progress { width: 88vw; bottom: 48px; }
  .logi-status { font-size: 11px; padding: 6px 14px; }
  .logi-ticker { font-size: 10px; top: 62px; }
}

/* ---- 浅色模式（跟随系统 prefers-color-scheme: light） ---- */
body.logi-light .logi-box {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(180, 145, 60, 0.45);
  box-shadow: 0 4px 18px rgba(30, 60, 100, 0.12), inset 0 0 20px rgba(217, 168, 60, 0.05);
  color: #3a4a60;
}
body.logi-light .logi-status {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(180, 145, 60, 0.45);
  color: #3a4a60;
}
body.logi-light .logi-status .logi-brand { color: #a88420; }
body.logi-light .logi-status .logi-slogan,
body.logi-light .logi-status .logi-k,
body.logi-light .logi-status .logi-sep,
body.logi-light .logi-status .logi-sub { color: rgba(58, 74, 96, 0.6); }
body.logi-light .logi-status .logi-v { color: #a88420; }
body.logi-light .logi-data .ld-row .k,
body.logi-light .logi-data .ld-sys-row .k,
body.logi-light .logi-data .ld-qual { color: rgba(58, 74, 96, 0.65); }
body.logi-light .logi-data .ld-row .v { color: #a88420; }
body.logi-light .logi-data .ld-qual b { color: #a88420; }
body.logi-light .lc-item { background: rgba(217, 168, 60, 0.1); border-color: rgba(180, 145, 60, 0.35); }
body.logi-light .lc-item b { color: #a88420; }
body.logi-light .lc-item i { color: rgba(58, 74, 96, 0.6); }
body.logi-light .logi-data .ld-sys,
body.logi-light .logi-data .ld-qual { border-top-color: rgba(180, 145, 60, 0.3); }
body.logi-light .logi-st-idle { color: rgba(58, 74, 96, 0.55); background: rgba(58, 74, 96, 0.08); }
body.logi-light .logi-tip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(180, 145, 60, 0.5);
  color: #3a4a60;
}
body.logi-light .logi-tip .tip-en { color: #a88420; }
body.logi-light .logi-tip .tip-cn { color: rgba(58, 74, 96, 0.8); }
body.logi-light .logi-citycard {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(180, 145, 60, 0.6);
}
body.logi-light .logi-citycard .cc-en { color: #a88420; }
body.logi-light .logi-citycard .cc-cn { color: rgba(58, 74, 96, 0.85); }
body.logi-light .logi-ticker { color: #3a4a60; }
