/* ================= 总览大屏布局 ================= */
.ov-header {
  flex: none; height: 64px;
  display: flex; align-items: center;
  padding: 0 26px;
  position: relative;
  background: linear-gradient(180deg, rgba(10, 26, 52, .9), rgba(5, 11, 24, .4));
  border-bottom: 1px solid var(--line);
}
.ov-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--cyan) 70%, transparent);
  opacity: .5;
}
.header-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.header-title h1 {
  font-size: 28px; font-weight: 700; letter-spacing: 4px; color: var(--text-hi);
  text-shadow: 0 0 18px rgba(0, 229, 255, .45), 0 2px 4px rgba(0, 0, 0, .6);
  white-space: nowrap;
}
.title-underline {
  margin: 5px auto 0; width: 560px; height: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, .55), transparent 70%),
    linear-gradient(90deg, transparent, var(--cyan), transparent);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, .8));
}
.header-deco { display: flex; align-items: center; gap: 14px; z-index: 1; }
.header-deco.right { margin-left: auto; }
.deco-tag {
  font-family: var(--num-font); font-size: 13px; letter-spacing: 3px;
  color: var(--gold-bright); border: 1px solid rgba(255, 197, 61, .45);
  padding: 3px 10px; border-radius: 3px; background: rgba(255, 197, 61, .06);
}
.deco-sub { font-size: 12px; letter-spacing: 4px; color: var(--text-dim); }
.clock { text-align: right; }
.clock-time {
  font-family: var(--num-font); font-size: 30px; font-weight: 600; letter-spacing: 2px;
  color: var(--cyan); text-shadow: 0 0 12px rgba(0, 229, 255, .5); line-height: 1;
}
.clock-date { margin-top: 4px; font-size: 12.5px; color: var(--text-dim); letter-spacing: 2px; }

/* ---------- 主体三行：经营指标 / 四拍流程 / 求解器+世界地图+三厂 ---------- */
.ov-main {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px; padding: 10px 12px 12px;
}
.ov-row { display: grid; gap: 10px; min-height: 0; }
.ov-row-main { grid-template-columns: 620px minmax(0, 1fr) 450px; }
.col-factories { min-width: 0; min-height: 0; display: flex; }
.col-factories > .panel { flex: 1; min-width: 0; }

/* ---------- 指标卡 ---------- */
.metrics-grid {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr);
  gap: 8px; padding: 10px 12px;
}
.metric-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 8px 12px;
  background: linear-gradient(150deg, rgba(0, 229, 255, .06), rgba(0, 20, 40, .35) 60%);
  border: 1px solid rgba(0, 229, 255, .16);
  border-radius: 4px;
}
.metric-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 255, .15));
}
.metric-card.gold::after { background: linear-gradient(180deg, var(--gold), rgba(255, 197, 61, .15)); }
.metric-name { font-size: 12.5px; color: var(--text-dim); letter-spacing: .5px; white-space: nowrap; }
.metric-val { display: flex; align-items: baseline; gap: 4px; }
.metric-num {
  font-family: var(--num-font); font-size: 23px; font-weight: 700; letter-spacing: .5px;
  color: var(--text-hi); text-shadow: 0 0 10px rgba(0, 229, 255, .35); line-height: 1;
}
.metric-card.gold .metric-num { color: var(--gold-bright); text-shadow: 0 0 10px rgba(255, 197, 61, .4); }
.metric-unit { font-size: 12px; color: var(--text-dim); }
.metric-trend { display: flex; gap: 10px; font-size: 12px; }
.metric-trend .lb { color: var(--text-dim); }

/* ---------- 自研求解器 ---------- */
.solver-body { display: flex; flex-direction: column; min-height: 0; }
.solver-center {
  flex: 1.05; min-height: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 18px 4px;
}
.solver-engine {
  position: relative; flex: none;
  width: 190px; height: 190px;
  display: flex; align-items: center; justify-content: center;
}
.engine-core {
  position: relative; z-index: 3; width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(0, 229, 255, .5), rgba(0, 60, 110, .85) 65%),
    radial-gradient(circle at 50% 50%, rgba(0, 20, 45, .9), rgba(0, 45, 85, .95));
  border: 2px solid rgba(0, 229, 255, .75);
  /* 呼吸光晕不再逐帧改 box-shadow（无法合成加速、每帧重绘）：
     静态定格中等光晕 + ::after 覆盖层承载强光晕做 opacity 呼吸（合成器直接处理，零重绘） */
  box-shadow: 0 0 33px rgba(0, 229, 255, .6), inset 0 0 25px rgba(0, 229, 255, .45);
}
.engine-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 44px rgba(0, 229, 255, .8), inset 0 0 30px rgba(0, 229, 255, .6);
  animation: coreBreath 2.6s ease-in-out infinite;
}
.core-label {
  font-size: 19px; font-weight: 700; letter-spacing: 3px; line-height: 1.35;
  color: #eafcff; text-shadow: 0 0 10px rgba(0, 229, 255, .9);
}
@keyframes coreBreath {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-a {
  width: 132px; height: 132px;
  border: 1px dashed rgba(0, 229, 255, .65);
  animation: spinCW 9s linear infinite;
}
.ring-b {
  width: 158px; height: 158px;
  border: 2px solid transparent;
  border-top-color: var(--gold); border-right-color: rgba(255, 197, 61, .35);
  animation: spinCCW 6s linear infinite;
}
.ring-c {
  width: 184px; height: 184px;
  border: 1px solid transparent;
  border-left-color: rgba(0, 229, 255, .8);
  animation: spinCW 14s linear infinite;
}
@keyframes spinCW { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinCCW { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.pulse {
  position: absolute; left: 50%; top: 50%;
  width: 96px; height: 96px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(0, 229, 255, .7);
  animation: pulseOut 3s ease-out infinite;
  opacity: 0;
}
.pulse.p2 { animation-delay: 1s; }
.pulse.p3 { animation-delay: 2s; }
/* 扩散圈不再逐帧改 width/height（每帧布局+重绘），改 transform 缩放（合成器处理，零布局） */
@keyframes pulseOut {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .85; }
  100% { transform: translate(-50%, -50%) scale(1.98); opacity: 0; }
}

.solver-headline { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.headline-main {
  font-size: 21px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-hi); line-height: 1.35;
}
.headline-main em {
  font-style: normal; color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(255, 197, 61, .55);
}
.headline-sub {
  font-size: 14px; letter-spacing: .5px; color: var(--text); line-height: 1.45;
}
.headline-sub em {
  font-style: normal; color: var(--gold-bright);
}
.headline-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 3px 12px; font-size: 13px; letter-spacing: 2px; color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .45); border-radius: 3px;
  background: rgba(0, 229, 255, .07);
}
.tag:nth-child(2) { color: var(--gold-bright); border-color: rgba(255, 197, 61, .45); background: rgba(255, 197, 61, .07); }
.tag:nth-child(4) { color: var(--gold-bright); border-color: rgba(255, 197, 61, .45); background: rgba(255, 197, 61, .07); }
.headline-diff {
  position: relative; padding: 8px 12px 8px 26px;
  font-size: 13.5px; line-height: 1.65; color: var(--text);
  background: linear-gradient(90deg, rgba(255, 197, 61, .1), rgba(255, 197, 61, .02));
  border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0;
}
.headline-diff b { color: var(--gold-bright); }

/* ---------- 过去 vs 未来 对比条 ---------- */
.compare-strip {
  flex: none; display: flex; align-items: stretch; gap: 10px;
  margin: 4px 12px 2px; padding: 6px 12px 8px;
  background: rgba(4, 12, 26, .5);
  border: 1px solid rgba(0, 229, 255, .12); border-radius: 5px;
}
.cmp-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cmp-hd {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px;
}
.cmp-hd i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cmp-col.past .cmp-hd { color: #ffa38f; }
.cmp-col.past .cmp-hd i { background: var(--red); box-shadow: 0 0 6px var(--red); }
.cmp-col.future .cmp-hd { color: var(--cyan); }
.cmp-col.future .cmp-hd i { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.cmp-items { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.cmp-items span {
  padding: 1px 7px; font-size: 11px; letter-spacing: .3px;
  border-radius: 3px; white-space: nowrap; line-height: 1.5;
}
.cmp-col.past .cmp-items span {
  color: #eba895; border: 1px solid rgba(255, 98, 114, .32);
  background: rgba(255, 98, 114, .07);
  text-decoration: line-through; text-decoration-color: rgba(255, 98, 114, .6);
}
.cmp-col.future .cmp-items span {
  color: #9ef2ff; border: 1px solid rgba(0, 229, 255, .38);
  background: rgba(0, 229, 255, .08);
  box-shadow: inset 0 0 8px rgba(0, 229, 255, .05);
}
.cmp-badge {
  flex: none; width: 128px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid rgba(255, 197, 61, .5); border-radius: 5px;
  background: linear-gradient(160deg, rgba(255, 197, 61, .18), rgba(255, 197, 61, .04));
  box-shadow: inset 0 0 14px rgba(255, 197, 61, .12), 0 0 12px rgba(255, 197, 61, .15);
}
.cmp-badge-top {
  font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 197, 61, .6);
}
.cmp-badge-ones { display: flex; align-items: center; gap: 3px; }
.cmp-badge-ones i {
  font-style: normal; font-size: 10px; letter-spacing: 1px; color: var(--gold-bright);
  padding: 1px 4px; border: 1px solid rgba(255, 197, 61, .42); border-radius: 3px;
  background: rgba(255, 197, 61, .08); white-space: nowrap;
}
.cmp-badge-ones b { color: var(--gold); font-size: 11px; font-family: var(--num-font); }
.cmp-badge-fml {
  font-family: var(--num-font); font-size: 17px; font-weight: 700; color: #fff4d6;
  text-shadow: 0 0 12px rgba(255, 197, 61, .85);
}

.solver-bottom {
  flex: 0.95; min-height: 0;
  display: flex; align-items: stretch; gap: 6px;
  padding: 2px 12px 10px;
}
/* ---------- 求解器自我进化（曲线 + 指标） ---------- */
.evo-left { flex: 1.15; min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.evo-hd {
  flex: none; display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-hi);
  padding: 0 2px 4px;
}
.evo-hd span { font-size: 10.5px; font-weight: 400; letter-spacing: .5px; color: var(--text-dim); }
.evo-left .chart { flex: 1; min-height: 0; }
.evo-kpis {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr;
  gap: 7px; align-content: center;
}
.evo-kpi {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-width: 0; overflow: hidden;
  padding: 6px 12px;
  background: linear-gradient(150deg, rgba(0, 229, 255, .06), rgba(0, 20, 40, .3));
  border: 1px solid rgba(0, 229, 255, .16); border-radius: 4px;
}
.evo-kpi .v {
  font-family: var(--num-font); font-size: 20px; font-weight: 700; line-height: 1.1;
  color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, .35);
}
.evo-kpi:nth-child(even) .v { color: var(--gold-bright); text-shadow: 0 0 10px rgba(255, 197, 61, .4); }
.evo-kpi .v span { font-size: 11px; font-weight: 400; color: var(--text-dim); margin-left: 3px; }
.evo-kpi .l { font-size: 11.5px; color: var(--text); letter-spacing: .5px; white-space: nowrap; }
.evo-kpi .d { font-size: 10.5px; color: var(--green); font-family: var(--num-font); white-space: normal; }

/* ---------- 世界地图 ---------- */
.world-body { display: flex; flex-direction: column; min-height: 0; position: relative; }
.world-body .chart { flex: 1; min-height: 0; }

/* 货流类型图例（小图面板 / 大图弹层共用，absolute 浮于地图左上角空旷海区） */
.wm-legend {
  position: absolute; top: 8px; left: 8px; z-index: 6;
  display: flex; align-items: center; gap: 12px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(3, 10, 24, .62); border: 1px solid rgba(0, 229, 255, .14);
  pointer-events: none;   /* 纯展示，不挡地图交互 */
}
.wm-legend span { display: flex; align-items: center; gap: 5px; color: rgba(220, 235, 246, .85); font-size: 10.5px; white-space: nowrap; }
.wm-legend i { display: inline-block; width: 22px; height: 0; }
.wm-legend .lg-sea { border-top: 2px solid #ffc53d; }
.wm-legend .lg-rx { border-top: 2px dashed #b48cff; }
.wm-legend .lg-dom { border-top: 2px dotted #3ee6a0; }
.world-info {
  flex: none; height: 138px;   /* 118→138：4 条到货行完整显示（81px 容器装不下 4 行约 90px 需求，末行被裁半） */
  border-top: 1px solid rgba(0, 229, 255, .14);
  padding: 7px 12px 6px;
  display: flex; flex-direction: column;
  background: rgba(4, 12, 26, .55);
}
.world-info-hd {
  font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--gold-bright);
  margin-bottom: 6px; display: flex; align-items: center; gap: 7px;
}
.world-info-hd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); animation: blink 1.6s infinite; }
.arrivals { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.arrival-item {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 10px; font-size: 12.5px;
  background: rgba(0, 229, 255, .04);
  border: 1px solid rgba(0, 229, 255, .12); border-radius: 3px;
  white-space: nowrap;
}
.arrival-item .ship { color: var(--cyan); font-weight: 600; min-width: 96px; }
.arrival-item .route { color: var(--text); min-width: 118px; }
.arrival-item .qty { color: var(--gold-bright); font-family: var(--num-font); min-width: 70px; }
.arrival-item .eta { margin-left: auto; color: var(--green); font-family: var(--num-font); }

/* ---------- 四拍流程 ---------- */
.beats-body { display: flex; flex-direction: column; padding: 8px 16px 12px; gap: 4px; }
.beat-metronome { flex: none; display: flex; gap: 6px; padding-left: 4px; }
.beat-metronome i {
  width: 34px; height: 4px; border-radius: 2px;
  background: rgba(0, 229, 255, .18);
  position: relative; overflow: hidden;
}
.beat-metronome i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform-origin: left; transform: scaleX(0);
  animation: metroFill 4s linear infinite;
}
.beat-metronome i:nth-child(2)::after { animation-delay: 1s; }
.beat-metronome i:nth-child(3)::after { animation-delay: 2s; }
.beat-metronome i:nth-child(4)::after { animation-delay: 3s; }
@keyframes metroFill {
  0% { transform: scaleX(0); }
  18% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

.beats-flow { flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 0; }
.beat-node {
  flex: 1; min-width: 0; position: relative; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 8px 18px 8px 58px;
  background: linear-gradient(150deg, rgba(0, 229, 255, .07), rgba(5, 16, 34, .5) 65%);
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 6px;
  transition: all .25s;
  /* 节拍高亮不再逐帧改 box-shadow/border-color（每帧重绘大块区域）：
     ::after 覆盖层静态承载高亮态描边+光晕，opacity 起伏呼吸（合成器处理，零重绘） */
}
.beat-node::after {
  content: ""; position: absolute; inset: -1px; border-radius: 6px;
  pointer-events: none;
  border: 1px solid rgba(0, 229, 255, .75);
  box-shadow: 0 0 22px rgba(0, 229, 255, .4), inset 0 0 14px rgba(0, 229, 255, .12);
  opacity: 0;
  animation: beatGlow 4s ease-in-out infinite;
}
.beat-node:nth-child(1)::after { animation-delay: 0s; }
.beat-node:nth-child(3)::after { animation-delay: 1s; }
.beat-node:nth-child(5)::after { animation-delay: 2s; }
.beat-node:nth-child(7)::after { animation-delay: 3s; }
@keyframes beatGlow {
  0%, 24%, 100% { opacity: 0; }
  8% { opacity: 1; }
}
.beat-node:hover {
  background: linear-gradient(150deg, rgba(0, 229, 255, .16), rgba(10, 30, 60, .6) 65%);
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 229, 255, .35), inset 0 0 16px rgba(0, 229, 255, .1);
  transform: translateY(-2px);
}
.beat-idx {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--num-font); font-size: 34px; font-weight: 700;
  color: rgba(0, 229, 255, .28);
}
.beat-node:hover .beat-idx { color: var(--gold); text-shadow: 0 0 12px rgba(255, 197, 61, .6); }
.beat-name {
  font-size: 17.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-hi);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.beat-name .en { font-family: var(--num-font); font-size: 10.5px; font-weight: 400; letter-spacing: 2px; color: var(--text-dim); }
.beat-kpis { display: flex; gap: 14px; }
.beat-kpis .bk { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.beat-kpis .bk b {
  font-family: var(--num-font); font-size: 16px; font-weight: 700;
  color: var(--gold-bright); text-shadow: 0 0 8px rgba(255, 197, 61, .35);
}
.beat-kpis .bk:nth-child(2) b { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, .35); }
.beat-kpis .bk span { font-size: 11px; color: var(--text-dim); letter-spacing: .5px; }
.beat-desc {
  font-size: 12px; line-height: 1.55; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.beat-go {
  margin-top: 2px; font-size: 12.5px; letter-spacing: 2px; color: var(--cyan);
  opacity: .85; white-space: nowrap;
}
.beat-node:hover .beat-go { color: var(--gold-bright); }
.beat-link {
  flex: none; width: 46px; display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 26px; font-family: var(--num-font);
  text-shadow: 0 0 10px rgba(0, 229, 255, .6);
}
.beat-link::before { content: "➤"; animation: linkFlow 1.2s ease-in-out infinite; }
@keyframes linkFlow { 0%,100% { opacity: .45; transform: translateX(-2px); } 50% { opacity: 1; transform: translateX(2px); } }

/* ---------- 三厂城市地图（营口 / 唐山 / 漳州） ---------- */
.city-maps-panel .panel-bd { padding: 4px 8px 8px; }
.city-maps-wrap { display: flex; flex-direction: column; }
.city-legend {
  flex: none; display: flex; align-items: center; gap: 14px;
  padding: 0 4px 4px;
}
.city-legend span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--text-dim); letter-spacing: .5px; white-space: nowrap;
}
.city-legend i {
  width: 7px; height: 7px; border-radius: 2px;
  box-shadow: 0 0 5px currentColor;
}
.city-legend .lg-tip { margin-left: auto; color: rgba(0, 229, 255, .75); }
.city-maps {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.city-cell {
  position: relative; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(0, 229, 255, .05), rgba(0, 18, 36, .35));
  border: 1px solid rgba(0, 229, 255, .16); border-radius: 4px;
  overflow: hidden;
}
.cell-main { flex: 1; min-height: 0; display: flex; }
.city-chart { flex: 1.3; min-width: 0; }
.fck-list {
  flex: none; width: 134px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 2px 10px 2px 4px;
  border-left: 1px dashed rgba(0, 229, 255, .12);
}
.fck { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.fck span { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; letter-spacing: .5px; }
.fck b {
  font-family: var(--num-font); font-size: 15px; font-weight: 700; line-height: 1;
  color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, .3);
}
.fck b i { font-style: normal; font-size: 9.5px; font-weight: 400; color: var(--text-dim); margin-left: 2px; }
.fck:nth-child(1) b { color: var(--gold-bright); text-shadow: 0 0 8px rgba(255, 197, 61, .35); }
.city-hd {
  flex: none; display: flex; align-items: baseline; gap: 8px;
  padding: 4px 10px 1px;
  border-bottom: 1px dashed rgba(0, 229, 255, .12);
}
.city-name { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-bright); }
.city-sub { font-size: 10.5px; color: var(--text-dim); letter-spacing: .5px; white-space: nowrap; }
.city-cell.clickable { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.city-cell.clickable:hover {
  border-color: rgba(0, 229, 255, .5);
  box-shadow: 0 0 16px rgba(0, 229, 255, .16), inset 0 0 14px rgba(0, 229, 255, .06);
}
.city-cell.clickable:hover .city-name { color: #ffe6a8; }

/* ---------- 世界地图面板：可点击放大 ---------- */
.col-world.clickable { cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.col-world.clickable:hover {
  border-color: rgba(0, 229, 255, .55);
  box-shadow: 0 0 24px rgba(0, 229, 255, .18), inset 0 0 24px rgba(0, 229, 255, .08);
}
.col-world.clickable:hover .panel-hd em { color: var(--cyan); }

/* ---------- 世界地图放大弹层 ---------- */
.world-modal {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
}
.world-modal[hidden] { display: none; }
.wm-mask {
  position: absolute; inset: 0;
  /* 不用 backdrop-filter：遮罩下是被弹层完全遮挡但仍在逐帧重绘的图表画布，
     模糊需每帧重新合成整屏（弱机 GPU 大户），加浓底色达到相近的压暗效果 */
  background: rgba(2, 6, 14, .88);
  animation: wmFade .25s ease both;
}
@keyframes wmFade { from { opacity: 0; } to { opacity: 1; } }
.wm-body {
  position: relative; z-index: 1;
  width: 1660px; height: 916px;
  animation: wmIn .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes wmIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
.wm-close {
  margin-left: 12px; flex: none; width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; color: var(--cyan); cursor: pointer;
  background: rgba(0, 229, 255, .08); border: 1px solid var(--line-strong); border-radius: 4px;
  transition: all .2s; font-family: var(--num-font);
}
.wm-close:hover {
  color: #fff; background: rgba(255, 98, 114, .28); border-color: var(--red);
  box-shadow: 0 0 12px rgba(255, 98, 114, .45);
}
.wm-main { flex: 1; min-height: 0; display: flex; }
.wm-map { flex: 1; min-width: 0; padding: 2px 0 4px 4px; }
.wm-side {
  flex: none; width: 430px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 12px; border-left: 1px solid rgba(0, 229, 255, .14);
}
.wm-block {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: rgba(4, 12, 26, .45);
  border: 1px solid rgba(0, 229, 255, .12); border-radius: 4px;
  overflow: hidden;
}
.wm-block-hd {
  flex: none; padding: 7px 10px 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--gold-bright);
  border-bottom: 1px solid rgba(0, 229, 255, .1);
  display: flex; align-items: baseline; gap: 8px;
}
.wm-block-hd span { margin-left: auto; font-size: 10.5px; font-weight: 400; letter-spacing: .5px; color: var(--text-dim); }
.wm-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: auto; }
.wm-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.wm-scroll::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, .28); border-radius: 3px; }
.wm-scroll::-webkit-scrollbar-track { background: transparent; }
.wm-scroll table.tbl { font-size: 12px; }
.wm-scroll table.tbl th { padding: 6px 7px; font-size: 12px; background: rgba(7, 20, 40, .98); }
.wm-scroll table.tbl td { padding: 5px 7px; font-size: 12.5px; }
/* 大屏（430px 侧栏）三表不出横向滚动条完整展示：文本列（.txt）放开换行，
   在空格 / 箭头 / CJK 字符间自然折行；数值列维持基础 nowrap（数字无断点，
   且防止"12-05"这类带连字符的短值被拆行）。内容确实超出时仍走上面的
   overflow-x:auto 横向滚动兜底（小屏 / 极端长内容场景） */
.wm-scroll table.tbl td.txt { white-space: normal; }
.wm-scroll table.tbl tr.grp td {
  padding: 3.5px 8px; font-size: 11px; letter-spacing: 1.5px; color: var(--gold-bright);
  background: rgba(255, 197, 61, .07); border-top: 1px solid rgba(255, 197, 61, .22);
}
/* 国内二次加工采购分组头：绿色系，与跨境海运（金）组头及地图绿色点线同色系呼应 */
.wm-scroll table.tbl tr.grp.grp-dom td {
  color: #3ee6a0; background: rgba(62, 230, 160, .07); border-top-color: rgba(62, 230, 160, .22);
}
/* 精炼成品复出口分组头：紫色系，与地图复出口虚线同色系呼应 */
.wm-scroll table.tbl tr.grp.grp-rx td {
  color: #b48cff; background: rgba(180, 140, 255, .07); border-top-color: rgba(180, 140, 255, .22);
}
.wm-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px;
  vertical-align: -1px; box-shadow: 0 0 5px currentColor;
}

/* ---------- 三厂港区物流详情弹层 ---------- */
.fm-body { width: 1560px; height: 820px; }
.fm-main { flex: 1; min-height: 0; display: flex; }
.fm-map { flex: 1.55; min-width: 0; padding: 8px 4px 10px 12px; }
.fm-side {
  /* 440px：物流环节表「环节/方式/距离/备注」四列（备注含"日发运 3,200 吨"等长文本）完整显示不再横向滚动，地图区 flex 自动让位 */
  flex: none; width: 440px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 12px; border-left: 1px solid rgba(0, 229, 255, .14);
}
.fm-block {
  min-height: 0; display: flex; flex-direction: column;
  background: rgba(4, 12, 26, .45);
  border: 1px solid rgba(0, 229, 255, .12); border-radius: 4px;
  overflow: hidden;
}
.fm-block:first-child { flex: .92; }
.fm-block:last-child { flex: 1.08; }
.fm-block-hd {
  flex: none; padding: 7px 10px 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--gold-bright);
  border-bottom: 1px solid rgba(0, 229, 255, .1);
}
.fm-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.fm-scroll::-webkit-scrollbar { width: 5px; }
.fm-scroll::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, .28); border-radius: 3px; }
.fm-scroll::-webkit-scrollbar-track { background: transparent; }
.fm-scroll table.tbl { font-size: 12px; }
.fm-scroll table.tbl th { padding: 6px 8px; font-size: 12px; background: rgba(7, 20, 40, .98); }
.fm-scroll table.tbl td { padding: 5.5px 8px; font-size: 12.5px; }
.fm-info-row { display: flex; gap: 10px; padding: 7px 10px; border-bottom: 1px dashed rgba(0, 229, 255, .08); }
.fm-info-row:last-child { border-bottom: none; }
.fm-info-k { flex: none; width: 66px; font-size: 11.5px; color: var(--gold-bright); letter-spacing: 1px; padding-top: 1px; }
.fm-info-v { flex: 1; font-size: 12px; color: var(--text); line-height: 1.55; }

/* ---- 世界地图弹层：航线聚焦联动（表格行 ↔ 地图双向联动） ---- */
.wm-map { position: relative; }
.wm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 1px 0 8px; }
.wm-chip { padding: 2px 10px; border: 1px solid rgba(0, 229, 255, .28); border-radius: 11px; font-size: 11px; letter-spacing: .5px; color: var(--text-dim); cursor: pointer; user-select: none; transition: all .15s; }
.wm-chip:hover { color: var(--cyan); border-color: rgba(0, 229, 255, .6); }
.wm-chip.on { color: #03121f; background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
/* 业务分类 chips：与地图货流组同色系（原糖进口金 / 二次加工绿 / 复出口紫） */
.wm-chip.imp { border-color: rgba(255, 197, 61, .4); color: #ffd97a; }
.wm-chip.imp:hover { color: #ffc53d; border-color: rgba(255, 197, 61, .7); }
.wm-chip.imp.on { color: #231400; background: #ffc53d; border-color: #ffc53d; font-weight: 600; }
.wm-chip.proc { border-color: rgba(62, 230, 160, .35); color: #8ff2c2; }
.wm-chip.proc:hover { color: #3ee6a0; border-color: rgba(62, 230, 160, .65); }
.wm-chip.proc.on { color: #03121f; background: #3ee6a0; border-color: #3ee6a0; font-weight: 600; }
.wm-chip.rexp { border-color: rgba(180, 140, 255, .38); color: #cbb2ff; }
.wm-chip.rexp:hover { color: #b48cff; border-color: rgba(180, 140, 255, .68); }
.wm-chip.rexp.on { color: #170a2e; background: #b48cff; border-color: #b48cff; font-weight: 600; }
.wm-scroll table.tbl tr.rt-row { cursor: pointer; transition: background .15s, opacity .15s; }
.wm-scroll table.tbl tr.rt-row:hover { background: rgba(0, 229, 255, .08); }
.wm-scroll table.tbl tr.rt-row.focused { background: rgba(0, 229, 255, .14); box-shadow: inset 2px 0 0 var(--cyan); }
.wm-scroll table.tbl tr.rt-row.dimmed { opacity: .35; }
.wm-scroll table.tbl tr.grp td .grp-tip { margin-left: 8px; font-size: 10.5px; font-weight: 400; color: var(--text-dim); letter-spacing: .5px; }
.wm-focus-bar { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 9px; max-width: 70%; padding: 6px 12px; background: rgba(4, 15, 30, .94); border: 1px solid rgba(0, 229, 255, .4); border-radius: 4px; font-size: 12px; color: #9ef2ff; box-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.wm-focus-bar[hidden] { display: none; }
.wm-focus-bar b { color: #ffd97a; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-focus-bar .ff-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }
.wm-focus-x { cursor: pointer; color: #ff6272; font-weight: 700; padding: 0 3px; font-size: 13px; flex: none; }
.wm-focus-x:hover { text-shadow: 0 0 8px rgba(255, 98, 114, .8); }
