/* ==========================================================================
   ct-map.css — 客户门户「集装箱全线路地图」组件样式
   - 前缀：ct-（组件根 .ct-map，避免污染 kf-client / cp-*）
   - 配色对齐 customer-route.css：brand #1E50AE / ink #102B50 / muted #52647A
   - 离线可用：无外部字体、无网络资源
   ========================================================================== */

.ct-map {
  --ct-brand: var(--brand, #1e50ae);
  --ct-brand-strong: #17408c;
  --ct-brand-soft: #eaf1fc;
  --ct-ink: var(--ink, #102b50);
  --ct-muted: var(--muted, #52647a);
  --ct-line: #d5dfec;
  --ct-line-strong: #b9cbe4;
  --ct-sea: #e9f2fb;
  --ct-sea-deep: #dbe9f7;
  --ct-land: #ffffff;
  --ct-land-line: #cfdcea;
  --ct-graticule: #cfe0f1;
  --ct-orange: #ff6a00;
  --ct-orange-soft: #fff3e9;
  --ct-done: #1e50ae;
  --ct-future: #93a9c8;
  --ct-ok: #1f7a4d;
  --ct-warn: #a7352b;
  --ct-radius: 14px;
  --ct-surface: #ffffff;
  --ct-shadow: 0 10px 28px rgba(16, 43, 80, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: var(--ct-height, 430px);
  overflow: hidden;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  background: var(--ct-sea);
  color: var(--ct-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.ct-map *,
.ct-map *::before,
.ct-map *::after { box-sizing: border-box; }
.ct-map [hidden] { display: none !important; }
.ct-map :focus-visible { outline: 2px solid var(--ct-brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- 地图画布 ---------- */
.ct-map-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ct-map-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.ct-map-svg.is-dragging { cursor: grabbing; }

.ct-ocean { pointer-events: none; }
.ct-graticule path,
.ct-graticule line { fill: none; stroke: var(--ct-graticule); stroke-width: 1; opacity: 0.55; }
.ct-land path { fill: var(--ct-land); stroke: var(--ct-land-line); stroke-width: 1; }
.ct-land path.ct-land-major { fill: var(--ct-land); }
.ct-place text {
  fill: #6d8199;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}
.ct-place text.ct-place-en { fill: #93a4b8; font-size: 8.5px; font-weight: 400; }
.ct-place.is-minor text { fill: #8496ab; }

/* ---------- 航路 ---------- */
.ct-route-halo { fill: none; stroke: rgba(255, 255, 255, 0.94); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ct-route-done { fill: none; stroke: var(--ct-done); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-route-active { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-route-future {
  fill: none;
  stroke: var(--ct-future);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 6;
  opacity: 0.62;
}
/* 当前航段中尚未走完的部分：橙色虚线（预测） */
.ct-route-future.ct-route-pending {
  stroke: var(--ct-orange);
  stroke-width: 2.2;
  opacity: 0.8;
  stroke-dasharray: 6 6;
}
.ct-route-flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  animation: ct-flow 1.6s linear infinite;
}
.ct-map.is-paused .ct-route-flow,
.ct-map.is-paused .ct-pulse,
.ct-map.is-paused .ct-vessel-ring { animation-play-state: paused; }

/* ---------- 节点 ---------- */
.ct-node { cursor: pointer; }
.ct-node-hit { fill: transparent; stroke: none; }
.ct-node .ct-node-ring { fill: #fff; stroke: var(--ct-line-strong); stroke-width: 2; }
.ct-node .ct-node-core { fill: var(--ct-future); }
.ct-node[data-state="done"] .ct-node-ring { stroke: var(--ct-done); }
.ct-node[data-state="done"] .ct-node-core { fill: var(--ct-done); }
.ct-node[data-state="current"] .ct-node-ring { stroke: var(--ct-orange); fill: #fff; }
.ct-node[data-state="current"] .ct-node-core { fill: var(--ct-orange); }
.ct-node[data-state="future"] .ct-node-ring { stroke: #b6c6da; }
.ct-node[data-state="future"] .ct-node-core { fill: #b6c6da; }
.ct-node .ct-node-pulse {
  fill: none;
  stroke: var(--ct-orange);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: ct-pulse 2.4s ease-out infinite;
}
.ct-node .ct-node-pulse.is-second { animation-delay: 1.2s; }
.ct-node.is-selected .ct-node-ring { stroke-width: 3; }
.ct-node-label text {
  font-size: 11.5px;
  font-weight: 650;
  fill: var(--ct-ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  pointer-events: none;
}
.ct-node-label .ct-node-state { font-size: 9.5px; font-weight: 500; fill: var(--ct-muted); }
.ct-node[data-state="current"] .ct-node-label text:first-child { fill: #b04b00; }
.ct-node:focus-visible .ct-node-ring { stroke-width: 3.5; filter: drop-shadow(0 0 4px rgba(30, 80, 174, 0.6)); }

/* ---------- 当前运输工具 ---------- */
.ct-vessel { pointer-events: none; }
.ct-vessel-disc { fill: #fff; stroke: var(--ct-orange); stroke-width: 2; }
.ct-vessel-glyph { fill: var(--ct-orange); }
.ct-vessel-ring {
  fill: none;
  stroke: var(--ct-orange);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: ct-pulse 2.2s ease-out infinite;
}
.ct-vessel-tag rect { fill: #fff; stroke: var(--ct-line); }
.ct-vessel-tag text { font-size: 10px; fill: var(--ct-ink); font-weight: 600; }

/* ---------- 顶部状态胶囊 / 控件 ---------- */
.ct-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 132px);
  padding: 8px 12px;
  border: 1px solid var(--ct-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(16, 43, 80, 0.1);
  backdrop-filter: blur(6px);
}
.ct-pill-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ct-pill-boxno {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ct-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-pill-meta { font-size: 11px; color: var(--ct-muted); white-space: nowrap; }
.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ct-brand-soft);
  color: var(--ct-brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ct-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ct-status.is-process { background: var(--ct-orange-soft); color: #b04b00; }
.ct-status.is-done { background: #e7f4ec; color: var(--ct-ok); }
.ct-status.is-pending { background: #eef2f8; color: var(--ct-muted); }
.ct-status.is-exception { background: #fdecea; color: var(--ct-warn); }
.ct-pill-eta { font-size: 11.5px; color: var(--ct-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-pill-progress { display: flex; align-items: center; gap: 6px; min-width: 76px; }
.ct-pill-bar { position: relative; width: 62px; height: 4px; border-radius: 999px; background: #e4ecf6; overflow: hidden; }
.ct-pill-bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--ct-done), var(--ct-orange)); }
.ct-pill-progress > span { font-size: 11px; font-weight: 650; color: var(--ct-muted); font-variant-numeric: tabular-nums; }

.ct-controls { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.ct-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ct-ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 43, 80, 0.08);
}
.ct-controls button:hover { border-color: var(--ct-brand); color: var(--ct-brand); }
.ct-controls button:active { transform: translateY(1px); }
.ct-controls .ct-control-reset { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.ct-controls .ct-ctl-icon { font-size: 15px; font-weight: 700; }

/* ---------- 图例 ---------- */
.ct-legend {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(213, 223, 236, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ct-muted);
  font-size: 11px;
  backdrop-filter: blur(4px);
}
.ct-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ct-legend i { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid var(--ct-done); }
.ct-legend .lg-active { border-top-color: var(--ct-orange); }
.ct-legend .lg-future { border-top-style: dashed; border-top-color: var(--ct-future); }
.ct-legend .lg-now { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--ct-orange); }
.ct-legend .lg-port { width: 8px; height: 8px; border: 2px solid #1a7f45; border-radius: 2px; background: #e7f6ec; transform: rotate(45deg); }

/* ---------- 沿途停靠港标记 ---------- */
.ct-portcalls { pointer-events: none; }
.ct-portcall-dot {
  fill: #e7f6ec;
  stroke: #1a7f45;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.ct-portcall.is-in-port .ct-portcall-dot { fill: #1a7f45; stroke: #fff; stroke-width: 2; }
.ct-portcall-pulse {
  fill: rgba(26, 127, 69, 0.16);
  stroke: none;
  animation: ct-portcall-pulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes ct-portcall-pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-portcall-pulse { animation: none; }
}

/* ---------- 节点信息气泡 ---------- */
.ct-bubble {
  position: absolute;
  z-index: 6;
  width: 268px;
  max-width: calc(100% - 20px);
  padding: 12px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(22, 32, 50, 0.93);
  box-shadow: 0 14px 34px rgba(8, 18, 34, 0.36);
  color: #f4f8fd;
  backdrop-filter: blur(6px);
  transform: translate(-50%, calc(-100% - 16px));
}
.ct-bubble.is-below { transform: translate(-50%, 16px); }
.ct-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 32, 50, 0.93);
  transform: rotate(45deg);
}
.ct-bubble.is-below::after { bottom: auto; top: -6px; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.16); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ct-bubble.is-center {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}
.ct-bubble.is-center::after { display: none; }
.ct-bubble-head { display: flex; align-items: flex-start; gap: 8px; }
.ct-bubble-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 750; line-height: 1.35; color: #ffffff; }
.ct-bubble-title small { display: block; margin-top: 2px; color: rgba(233, 241, 250, 0.64); font-size: 11px; font-weight: 500; }
.ct-bubble-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #eaf1fa;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ct-bubble-close:hover { background: rgba(255, 255, 255, 0.26); color: #ffffff; }
.ct-bubble-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; padding: 7px 0; border-top: 1px dashed rgba(255, 255, 255, 0.18); border-bottom: 1px dashed rgba(255, 255, 255, 0.18); font-size: 11.5px; color: rgba(233, 241, 250, 0.66); }
.ct-bubble-meta b { color: #ffffff; font-weight: 650; }
.ct-bubble-events { margin: 6px 0 0; padding: 0; list-style: none; max-height: 172px; overflow: auto; }
.ct-bubble-events li { position: relative; padding: 6px 0 6px 14px; }
.ct-bubble-events li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fb0f2;
}
.ct-bubble-events li.is-estimated::before { background: transparent; border: 1.5px solid rgba(233, 241, 250, 0.6); }
.ct-bubble-events time { display: block; font-size: 10.5px; color: rgba(233, 241, 250, 0.6); font-variant-numeric: tabular-nums; }
.ct-bubble-events .ct-event-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: #ffffff; line-height: 1.4; }
.ct-bubble-events .ct-event-desc { margin: 1px 0 0; font-size: 11.5px; color: rgba(233, 241, 250, 0.72); line-height: 1.5; overflow-wrap: anywhere; }
.ct-badge-estimated {
  flex: 0 0 auto;
  padding: 0 5px;
  border: 1px solid rgba(199, 216, 238, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #d9e6f7;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 15px;
}
.ct-bubble-empty { margin: 8px 0 0; font-size: 12px; color: rgba(233, 241, 250, 0.64); }

/* ---------- 骨架连线（无经纬度降级） ---------- */
.ct-schematic { display: none; position: absolute; inset: 0; padding: 16px; overflow: auto; background: #f7fafd; }
.ct-map.is-schematic .ct-schematic { display: block; }
.ct-map.is-schematic .ct-map-svg,
.ct-map.is-schematic .ct-legend { display: none; }
.ct-schematic-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 4px 0 8px; list-style: none; }
.ct-schematic-list li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px 10px 0; }
.ct-schematic-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 30px;
  bottom: -2px;
  border-left: 2px dashed var(--ct-future);
}
.ct-schematic-list li:last-child::before { display: none; }
.ct-schematic-dot { position: relative; z-index: 1; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; border: 2px solid var(--ct-future); border-radius: 50%; background: #fff; }
.ct-schematic-list li[data-state="done"] .ct-schematic-dot { border-color: var(--ct-done); background: var(--ct-done); }
.ct-schematic-list li[data-state="current"] .ct-schematic-dot { border-color: var(--ct-orange); background: var(--ct-orange); box-shadow: 0 0 0 4px var(--ct-orange-soft); }
.ct-schematic-body { min-width: 0; }
.ct-schematic-body b { font-size: 13px; font-weight: 700; }
.ct-schematic-body small { display: block; margin-top: 2px; color: var(--ct-muted); font-size: 11.5px; }

/* ---------- 占位 ---------- */
.ct-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(247, 250, 253, 0.96);
  text-align: center;
}
.ct-map.is-empty .ct-empty { display: flex; }
.ct-empty svg { width: 40px; height: 40px; color: var(--ct-line-strong); }
.ct-empty-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--ct-ink); }
.ct-empty-hint { margin: 0; font-size: 12px; color: var(--ct-muted); line-height: 1.6; }

/* ---------- 底部节点时间轴 ---------- */
.ct-timeline {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 78px;
  padding: 0 6px;
  border-top: 1px solid var(--ct-line);
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.ct-timeline::-webkit-scrollbar { height: 4px; }
.ct-timeline::-webkit-scrollbar-thumb { background: var(--ct-line); border-radius: 4px; }
.ct-step {
  position: relative;
  flex: 1 0 132px;
  min-width: 0;
  padding: 12px 12px 10px 14px;
  border: 0;
  border-right: 1px solid #eef3f9;
  background: transparent;
  color: var(--ct-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.ct-step:last-child { border-right: 0; }
.ct-step:hover { background: #f6f9fd; }
.ct-step[aria-current="true"] { background: var(--ct-brand-soft); }
.ct-step-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ct-step-dot { flex: 0 0 9px; width: 9px; height: 9px; border: 2px solid var(--ct-future); border-radius: 50%; background: #fff; }
.ct-step[data-state="done"] .ct-step-dot { border-color: var(--ct-done); background: var(--ct-done); }
.ct-step[data-state="current"] .ct-step-dot { border-color: var(--ct-orange); background: var(--ct-orange); box-shadow: 0 0 0 3px var(--ct-orange-soft); }
.ct-step-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.ct-step-state {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--ct-muted);
  font-size: 10px;
  font-weight: 600;
}
.ct-step[data-state="current"] .ct-step-state { color: #b04b00; }
.ct-step-eta { display: block; margin-top: 5px; color: var(--ct-muted); font-size: 10.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-step-eta .ct-eta-short { display: none; }
.ct-eta-full { display: inline; }
.ct-step-track { position: absolute; left: 12px; right: 8px; bottom: 6px; height: 2px; border-radius: 2px; background: #eef3f9; }
.ct-step[data-state="done"] .ct-step-track { background: var(--ct-done); }
.ct-step[data-state="current"] .ct-step-track { background: linear-gradient(90deg, var(--ct-done), var(--ct-orange)); }
/* 国内环节节点（收货→入库→装柜→报关→离港）：与海运节点同一条时间轴，来源来自我司系统 */
.ct-step-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  color: var(--ct-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  border-right: 1px dashed var(--ct-line-strong);
  background: linear-gradient(180deg, rgba(30, 80, 174, .035), transparent);
}
.ct-step-group.is-sea { border-right: 0; border-left: 1px dashed var(--ct-line-strong); }
.ct-step.is-domestic { flex: 1 0 112px; padding-left: 13px; background: rgba(30, 80, 174, .018); }
.ct-step.is-domestic .ct-step-name { font-weight: 600; }
.ct-step-source {
  display: block;
  margin-top: 2px;
  color: #8d9ab6;
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-step.is-domestic[data-state="done"] .ct-step-source { color: #4f8cff; }
.ct-step.is-domestic[data-state="current"] .ct-step-source { color: #b04b00; }
.ct-map.is-compact .ct-step-group { padding: 0 6px; font-size: 9px; letter-spacing: 0; }
.ct-map.is-compact .ct-step.is-domestic { flex: 0 0 96px; }
.ct-map.is-compact .ct-step-source { display: none; }

.ct-timeline-empty { display: flex; align-items: center; justify-content: center; width: 100%; color: var(--ct-muted); font-size: 12px; }
.ct-map.is-compact .ct-step-eta .ct-eta-full { display: none; }
.ct-map.is-compact .ct-step-eta .ct-eta-short { display: inline; }

/* 屏幕阅读器专用播报区（视觉隐藏；与 AIS 实时徽标 .ct-live 区分） */
.ct-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- AIS 实时船位徽标（左上状态胶囊内） ---------- */
.ct-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 132px;
  padding: 2px 7px;
  border: 1px solid #bfe4cd;
  border-radius: 999px;
  background: #e7f6ec;
  color: #1a7f45;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-live > i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ct-live-blink 2s ease-in-out infinite;
}
.ct-live.is-estimated {
  border-color: #d8e1ec;
  background: #f2f5f9;
  color: #5b6c80;
  font-weight: 600;
}
.ct-live.is-estimated > i { display: none; }
@keyframes ct-live-blink {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.ct-map.is-reduced-motion .ct-live > i { animation: none; }
.ct-map.is-compact .ct-live { max-width: 116px; padding: 1px 6px; font-size: 10px; line-height: 15px; }

/* ---------- 动画 ---------- */
@keyframes ct-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -16; } }
@keyframes ct-pulse {
  0% { opacity: 0.55; transform: scale(0.7); }
  70% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; transform: scale(1.9); }
}
.ct-map.is-reduced-motion .ct-route-flow,
.ct-map.is-reduced-motion .ct-node-pulse,
.ct-map.is-reduced-motion .ct-vessel-ring { display: none; }

/* ---------- 紧凑 / 移动端 ---------- */
.ct-map.is-compact { --ct-radius: 12px; height: var(--ct-height, 360px); }
.ct-map.is-compact .ct-pill { top: 8px; left: 8px; gap: 8px; padding: 6px 9px; max-width: calc(100% - 100px); }
.ct-map.is-compact .ct-pill-boxno { font-size: 12px; }
.ct-map.is-compact .ct-pill-eta { display: none; }
.ct-map.is-compact .ct-pill-progress { display: none; }
.ct-map.is-compact .ct-controls { top: 8px; right: 8px; gap: 5px; }
.ct-map.is-compact .ct-controls button { width: 32px; height: 32px; }
.ct-map.is-compact .ct-legend { display: none; }
.ct-map.is-compact .ct-vessel-tag { display: none; }
.ct-map.is-compact .ct-timeline { min-height: 68px; }
.ct-map.is-compact .ct-step { flex-basis: 104px; padding: 8px 8px 8px 10px; }
.ct-map.is-compact .ct-step-name { font-size: 12px; }
.ct-map.is-compact .ct-bubble { width: 250px; padding: 10px 12px 8px; }
.ct-map.is-compact .ct-bubble-events { max-height: 150px; }
.ct-map.is-compact .ct-place text.ct-place-en { display: none; }

@media (max-width: 640px) {
  .ct-map { --ct-radius: 12px; height: var(--ct-height, 360px); }
  .ct-map .ct-pill { top: 8px; left: 8px; max-width: calc(100% - 100px); }
  .ct-map .ct-pill-progress { display: none; }
  .ct-map .ct-legend { display: none; }
  .ct-map .ct-controls { top: 8px; right: 8px; }
  .ct-map .ct-controls button { width: 32px; height: 32px; }
  .ct-map .ct-timeline { min-height: 66px; }
  .ct-map .ct-step { flex-basis: 104px; padding: 8px 8px 8px 10px; }
  .ct-map .ct-vessel-tag { display: none; }
  .ct-map .ct-live { max-width: 118px; padding: 1px 6px; font-size: 10px; line-height: 15px; }
  .ct-map .ct-step-eta .ct-eta-full { display: none; }
  .ct-map .ct-step-eta .ct-eta-short { display: inline; }
  .ct-map .ct-place text.ct-place-en { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-map .ct-route-flow,
  .ct-map .ct-node-pulse,
  .ct-map .ct-vessel-ring { animation: none; display: none; }
  .ct-map .ct-live > i { animation: none; }
  .ct-map .ct-fun-bob,
  .ct-map .ct-sea-deco path { animation: none; }
}

/* =============================================================================
 * 2026-11-27 地图 UI 丰富化：沿途风情（国家小图标）/ 罗盘 / 海面波纹 / 经纬细分
 * 纯 SVG + CSS，无网络无依赖；最多 10 个图标（紧凑 5 个），不改变数据契约。
 * ========================================================================== */

/* 经纬网：30° 主网格 + 10° 细网格 + 赤道 / 南北回归线 */
.ct-graticule .ct-grid-major { fill: none; stroke: var(--ct-graticule); stroke-width: 1; opacity: 0.6; }
.ct-graticule .ct-grid-minor { fill: none; stroke: var(--ct-graticule); stroke-width: 0.8; opacity: 0.3; stroke-dasharray: 3 6; }
.ct-graticule .ct-grid-tropic { fill: none; stroke: #c6d9ee; stroke-width: 0.9; opacity: 0.55; stroke-dasharray: 2 4; }

/* 海面波纹（少量静态装饰 + 轻微呼吸动画） */
.ct-sea-deco { pointer-events: none; }
.ct-sea-deco .ct-sea-wave path { fill: none; stroke: #b9d4ec; stroke-width: 1.1; opacity: 0.4; }
.ct-sea-deco .ct-sea-wave:nth-child(3n + 1) path { animation: ct-sea-shimmer 7.5s ease-in-out infinite; }
.ct-sea-deco .ct-sea-wave:nth-child(3n + 2) path { animation: ct-sea-shimmer 9s ease-in-out infinite; animation-delay: -2.5s; }
.ct-sea-deco .ct-sea-wave:nth-child(3n) path { animation: ct-sea-shimmer 8.2s ease-in-out infinite; animation-delay: -5s; }
@keyframes ct-sea-shimmer { 0%, 100% { opacity: 0.24; } 50% { opacity: 0.6; } }

/* 沿途风情：国家小图标 + 浮动 + tooltip */
.ct-fun-layer { pointer-events: none; }
.ct-fun { pointer-events: auto; cursor: pointer; outline: none; }
.ct-fun-bob { animation: ct-fun-float 4.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ct-fun-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.2px); }
}
.ct-fun-ring { fill: none; stroke: rgba(30, 80, 174, 0.16); stroke-width: 1.1; stroke-dasharray: 2 3; }
.ct-fun-disc { fill: rgba(255, 255, 255, 0.94); stroke: #cfe0f1; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(16, 43, 80, 0.16)); }
.ct-fun-emoji {
  font-size: 16px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
  font-variant-emoji: emoji;
  pointer-events: none;
}
.ct-fun:hover .ct-fun-disc,
.ct-fun:focus-visible .ct-fun-disc { stroke: var(--ct-brand); fill: #ffffff; }
.ct-fun:focus-visible .ct-fun-ring { stroke: var(--ct-brand); stroke-dasharray: none; opacity: 0.9; }
.ct-fun-tip {
  position: absolute;
  z-index: 7;
  max-width: 232px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(22, 32, 50, 0.93);
  color: #f4f8fd;
  box-shadow: 0 8px 20px rgba(8, 18, 34, 0.3);
  font-size: 11.5px;
  line-height: 1.45;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.ct-fun-tip b { display: block; font-size: 12px; font-weight: 700; color: #ffffff; }
.ct-fun-tip span { display: block; margin-top: 1px; color: rgba(233, 241, 250, 0.78); }

/* 罗盘（右下角，纯装饰；不与左下图例/右下时间轴冲突） */
.ct-compass {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(207, 224, 241, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(16, 43, 80, 0.1);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.ct-compass span {
  position: absolute;
  font-size: 9.5px;
  font-weight: 700;
  color: #7b8ea6;
  line-height: 1;
}
.ct-compass .ct-compass-n { top: 5px; left: 50%; transform: translateX(-50%); color: #d9534f; }
.ct-compass .ct-compass-e { right: 6px; top: 50%; transform: translateY(-50%); }
.ct-compass .ct-compass-s { bottom: 5px; left: 50%; transform: translateX(-50%); }
.ct-compass .ct-compass-w { left: 6px; top: 50%; transform: translateY(-50%); }
.ct-compass-needle-n,
.ct-compass-needle-s { position: absolute; left: 50%; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; margin-left: -4px; }
.ct-compass-needle-n { top: 17px; border-bottom: 13px solid #d9534f; }
.ct-compass-needle-s { top: 30px; border-top: 13px solid #9fb3cc; }
.ct-map.is-schematic .ct-compass,
.ct-map.is-empty .ct-compass,
.ct-map.is-schematic .ct-fun-tip,
.ct-map.is-empty .ct-fun-tip { display: none; }

/* 紧凑 / 移动端：图标与罗盘缩小、海面波纹减少 */
.ct-map.is-compact .ct-fun-emoji { font-size: 13px; }
.ct-map.is-compact .ct-fun-disc { stroke-width: 1; }
.ct-map.is-compact .ct-compass { width: 44px; height: 44px; right: 8px; bottom: 10px; }
.ct-map.is-compact .ct-compass span { font-size: 8px; }
.ct-map.is-compact .ct-compass-needle-n { top: 12px; border-bottom-width: 10px; }
.ct-map.is-compact .ct-compass-needle-s { top: 22px; border-top-width: 10px; }
.ct-map.is-reduced-motion .ct-fun-bob,
.ct-map.is-reduced-motion .ct-sea-deco path { animation: none; }
@media (max-width: 640px) {
  .ct-map .ct-compass { width: 42px; height: 42px; right: 8px; bottom: 8px; }
  .ct-map .ct-compass span { font-size: 8px; }
  .ct-map .ct-compass-needle-n { top: 11px; border-bottom-width: 10px; }
  .ct-map .ct-compass-needle-s { top: 21px; border-top-width: 10px; }
  .ct-map .ct-sea-deco .ct-sea-wave:nth-child(n + 13) { display: none; }
  .ct-map .ct-fun-emoji { font-size: 13px; }
}
