/* =========================================================================
 * 城东区零工市场数字化大屏 —— 视觉样式（重构版）
 * 设计语言：深空科技蓝 · 青→紫→品红张力渐变 · 玻璃分层 · 霓虹刻度
 * ========================================================================= */

:root {
  /* 背景 */
  --bg-deep:   #02060f;
  --bg-mid:    #06122e;
  /* 主色（张力渐变链） */
  --cyan:      #19e6ff;
  --blue:      #3d8bff;
  --deep-blue: #0066ff;
  --violet:    #9b5cff;
  --magenta:   #ff5c9d;
  --pink:      #ff6b9d;
  --rose:      #ff2e63;
  --gold:      #ffc24b;
  --green:     #3df0b0;
  /* 文本 */
  --text:      #eef7ff;
  --text-dim:  #93b6e3;
  --text-faint:#5f80ad;
  /* 线条 */
  --line:        rgba(0, 216, 255, 0.20);
  --line-strong: rgba(0, 232, 255, 0.65);
  /* 面板玻璃 */
  --panel-1: rgba(10, 28, 64, 0.66);
  --panel-2: rgba(4, 13, 36, 0.82);
  /* 张力主渐变（标题/强调通用） */
  --grad-accent: linear-gradient(120deg, #19e6ff 0%, #3d8bff 38%, #9b5cff 72%, #ff5c9d 100%);
  --grad-cyan:   linear-gradient(180deg, #ffffff 0%, #8fe4ff 52%, #19b6ff 100%);

  --font-num: 'DIN Alternate', 'Bahnschrift', 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-ui:  'Microsoft YaHei', 'PingFang SC', 'HarmonyOS Sans SC', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-ui);
  overflow: hidden;
}

body {
  background:
    radial-gradient(ellipse 64% 46% at 50% -8%, rgba(20, 120, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 44% 38% at 6% 26%, rgba(25, 230, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 46% 40% at 96% 78%, rgba(155, 92, 255, 0.14), transparent 72%),
    radial-gradient(ellipse 40% 36% at 88% 8%, rgba(255, 92, 157, 0.08), transparent 70%),
    linear-gradient(180deg, #061233 0%, #030a1c 52%, #01040c 100%);
  background-attachment: fixed;
}

/* ---------- 背景层 ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(0, 190, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 190, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(640px) rotateX(58deg) translateY(10%);
  animation: gridMove 24s linear infinite;
  opacity: .62;
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, transparent 92%);
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 48px; } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-scan {
  position: absolute; left: 0; right: 0; height: 200px;
  background: linear-gradient(180deg, transparent, rgba(0, 232, 255, 0.06), transparent);
  animation: scanDown 9s linear infinite;
}
@keyframes scanDown { 0% { top: -200px; } 100% { top: 100%; } }

/* ---------- 布局骨架 ---------- */
.stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 12px 20px 16px;
  min-height: 100vh;
}

/* 大屏电视全屏适配：.stage 占满整个视口，内部 .stage-scale 按实际视口非等比缩放铺满，无黑边 */
body.fit-mode { overflow: hidden; }
body.fit-mode .stage {
  position: fixed;
  inset: 0;
  padding: 0;
  overflow: hidden;
}
body.fit-mode .stage-scale {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.fit-mode .stage-inner {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 16px;
}

/* ---------- 顶部标题 ---------- */
.header {
  position: relative; height: 92px; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8, 60, 130, 0.46) 0%, rgba(2, 12, 34, 0.04) 100%);
  border-bottom: 1px solid rgba(0, 232, 255, 0.18);
  overflow: hidden;
}
.header::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, #fff 50%, var(--cyan) 78%, transparent);
  filter: drop-shadow(0 0 8px var(--cyan));
}
.header::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; width: 360px; height: 70px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at bottom, rgba(0, 232, 255, 0.30), transparent 70%);
  pointer-events: none;
}
.header-deco { position: absolute; inset: 0; pointer-events: none; }
.header-deco span {
  position: absolute; top: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 232, 255, 0.6), transparent);
  animation: flyLine 3.4s ease-in-out infinite;
}
@keyframes flyLine {
  0% { transform: translateY(-100%); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.header-title {
  font-size: clamp(24px, 2.5vw, 44px); font-weight: 800; letter-spacing: .18em;
  background: linear-gradient(180deg, #ffffff 6%, #bfeeff 46%, #2fb6ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 200, 255, 0.6));
  white-space: nowrap;
}
.header-subtitle {
  margin-top: 7px; font-size: clamp(11px, .82vw, 15px); letter-spacing: .42em;
  color: rgba(150, 215, 255, 0.82); padding-left: .42em;
}
.header-side {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-dim); letter-spacing: .08em;
}
.header-side.left  { left: 20px; }
.header-side.right { right: 20px; }
.header-side .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: pulseDot 1.6s ease-in-out infinite;
}
.header-side .dot.live { background: var(--green); box-shadow: 0 0 10px var(--green); }
.header-side .dot.offline { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: none; opacity: .92; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.header-side #clock { font-family: var(--font-num); font-size: 15px; color: #cbe9ff; letter-spacing: .06em; }
.admin-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 4px;
  border: 1px solid var(--line); background: rgba(0, 120, 200, 0.16);
  color: #a8dcff; text-decoration: none; font-size: 12px; transition: .25s;
}
.admin-link:hover { border-color: var(--line-strong); background: rgba(0, 180, 255, 0.28); color: #fff; box-shadow: 0 0 14px rgba(0, 200, 255, 0.35); }

/* ---------- 指标卡片 ---------- */
.stats {
  flex: 0 0 auto; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.stat-card {
  position: relative; padding: 15px 14px 14px; text-align: center; overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(155deg, rgba(0, 96, 185, .32), rgba(3, 14, 40, .82) 60%);
  border: 1px solid rgba(0, 200, 255, .22);
  box-shadow: 0 6px 22px rgba(0, 20, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: fadeUp .7s both, cardGlow 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * .08s), 0s;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .85;
}
.stat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .10) 50%, transparent 58%);
  transform: translateX(-120%); animation: sheen 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * .55s);
}
@keyframes sheen { 0%,72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 60, 130, .55), 0 0 26px rgba(0, 190, 255, .3);
}
.stat-value {
  font-family: var(--font-num); font-size: clamp(26px, 2.6vw, 48px); font-weight: 700;
  line-height: 1.05; letter-spacing: .02em;
  background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, .5));
}
.stat-card.accent .stat-value {
  background: linear-gradient(180deg, #ffffff, #ffb3cd 55%, #ff4f86);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 90, 150, .5));
}
.stat-label {
  margin-top: 7px; font-size: clamp(11px, .78vw, 14px);
  color: var(--text-dim); letter-spacing: .14em;
}
.stat-label::before {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px;
  transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 6px var(--cyan); vertical-align: middle;
}
.stat-card.accent .stat-label::before { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.stat-bar {
  margin: 10px auto 0; width: 60%; height: 2px; position: relative; overflow: hidden;
  background: rgba(0, 200, 255, .16);
}
.stat-bar i {
  position: absolute; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: barRun 2.6s linear infinite; animation-delay: calc(var(--i) * .3s);
}
@keyframes barRun { to { left: 100%; } }

/* ---------- 主体：12 列栅格 + 视觉层级 ---------- */
.main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1.1fr 1fr 0.95fr;
  gap: 12px; min-height: 0;
}
.area-l1  { grid-column: 1 / 4;  grid-row: 1; }
.area-l2  { grid-column: 1 / 4;  grid-row: 2; }
.area-l3  { grid-column: 1 / 4;  grid-row: 3; }
.area-hero{ grid-column: 4 / 10; grid-row: 1; }
.area-c2l { grid-column: 4 / 7;  grid-row: 2; }
.area-c2r { grid-column: 7 / 10; grid-row: 2; }
.area-c3a { grid-column: 4 / 6;  grid-row: 3; }
.area-c3b { grid-column: 6 / 8;  grid-row: 3; }
.area-c3c { grid-column: 8 / 10; grid-row: 3; }
.area-r1  { grid-column: 10 / 13; grid-row: 1; }
.area-r2  { grid-column: 10 / 13; grid-row: 2; }
.area-r3  { grid-column: 10 / 13; grid-row: 3; }

/* ---------- 面板（玻璃分层 + 张力边） ---------- */
.panel {
  position: relative; flex: 1 1 0; min-height: 190px;
  display: flex; flex-direction: column;
  padding: 9px 13px 11px;
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border: 1px solid rgba(0, 200, 255, .18);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  box-shadow:
    0 8px 26px rgba(0, 12, 40, .55),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 0 26px rgba(0, 120, 220, .05);
  animation: fadeUp .8s both, panelGlow 6.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * .07s + .1s), 0s;
  overflow: hidden;
}
.panel:hover {
  border-color: rgba(0, 220, 255, .45);
  box-shadow:
    0 12px 34px rgba(0, 30, 80, .6),
    0 0 26px rgba(0, 190, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}
/* 顶部张力渐变条 */
.panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: var(--grad-accent); opacity: .9;
  box-shadow: 0 0 12px rgba(0, 200, 255, .5);
}
/* 角标 */
.panel .corner-tr, .panel .corner-bl { position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 4; }
.panel .corner-tr { top: 5px; right: 5px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.panel .corner-bl { bottom: 5px; left: 5px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes panelGlow {
  0%,100% { box-shadow: 0 8px 26px rgba(0, 12, 40, .55), inset 0 0 22px rgba(0, 120, 220, .05); }
  50%     { box-shadow: 0 8px 30px rgba(0, 20, 55, .6), 0 0 26px rgba(0, 180, 255, .18), inset 0 0 34px rgba(0, 150, 255, .11); }
}

/* 面板标题：左对齐 + 霓虹刻度 */
.panel-title {
  position: relative; z-index: 1; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 9px;
  height: 30px; padding-left: 9px;
  font-size: clamp(13px, .95vw, 17px); font-weight: 700; letter-spacing: .12em;
  color: #e6f6ff; text-shadow: 0 0 12px rgba(0, 200, 255, .45);
}
.panel-title .tdeco { display: none; }
.panel-title::before {
  content: ''; width: 4px; height: 15px; border-radius: 2px; flex: 0 0 auto;
  background: var(--grad-accent); box-shadow: 0 0 8px rgba(0, 200, 255, .7);
}
.panel-title::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(0, 232, 255, .7), transparent);
}
.panel-body { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; }
.chart { width: 100%; height: 100%; min-height: 130px; }

/* 城东就业公众平台粉丝数（大数字指标） */
.platform-fans {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; text-align: center;
}
.pf-num {
  font-family: var(--font-num); font-weight: 700; line-height: 1; letter-spacing: .02em;
  font-size: clamp(30px, 3.2vw, 50px);
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 16px rgba(25, 182, 255, .55));
}
.pf-unit { font-size: clamp(12px, .85vw, 15px); color: var(--text-dim); letter-spacing: .3em; margin-top: 2px; }
.pf-bar {
  margin: 10px auto 0; width: 70%; height: 2px; position: relative; overflow: hidden;
  background: rgba(0, 200, 255, .16);
}
.pf-bar i {
  position: absolute; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: barRun 2.6s linear infinite;
}
.pf-sub { margin-top: 10px; font-size: clamp(11px, .78vw, 13px); color: var(--text-faint); letter-spacing: .12em; }

/* hero 强调 */
.panel--hero {
  box-shadow:
    0 0 30px rgba(0, 180, 255, .22),
    inset 0 0 36px rgba(0, 150, 255, .12),
    0 8px 26px rgba(0, 12, 40, .55);
}
.panel--hero::before { height: 3px; opacity: 1; box-shadow: 0 0 18px rgba(0, 200, 255, .8); }
.panel--hero .panel-title { font-size: clamp(14px, 1.05vw, 19px); letter-spacing: .14em; }

/* ---------- 性别卡片（双环进度） ---------- */
.gender-wrap { height: 100%; display: flex; align-items: center; justify-content: space-around; gap: 10px; }
.gender-card {
  position: relative; flex: 1 1 0; max-width: 46%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 22px rgba(0, 140, 255, .06);
}
.gender-ring { position: relative; width: clamp(58px, 5.4vw, 88px); aspect-ratio: 1; }
.gender-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gender-ring .icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gender-ring .icon svg { width: 46%; height: 46%; transform: none; }
.gender-num { font-family: var(--font-num); font-size: clamp(20px, 1.9vw, 34px); font-weight: 700; line-height: 1; }
.gender-lab { font-size: clamp(11px, .8vw, 14px); letter-spacing: .16em; }
.male-card  .gender-num { color: #63c6ff; text-shadow: 0 0 16px rgba(0, 140, 255, .6); }
.male-card  .gender-lab { color: #4d9eff; }
.female-card .gender-num { color: #ff9dc0; text-shadow: 0 0 16px rgba(255, 90, 150, .6); }
.female-card .gender-lab { color: #ff6b9d; }
.gender-pct { font-size: 11px; color: var(--text-dim); letter-spacing: .08em; }

/* ---------- 球形词云 ---------- */
.sphere-wrap { position: relative; height: 100%; }
#sphereCanvas {
  position: absolute; left: 0; top: 0; right: 0; bottom: 26px;
  width: 100%; height: calc(100% - 26px); cursor: grab; display: block; touch-action: none;
}
#sphereCanvas:active { cursor: grabbing; }
.sphere-controls { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.sphere-btn {
  padding: 3px 12px; font-size: 11px; letter-spacing: .08em;
  color: #a8dcff; background: rgba(0, 120, 200, .16);
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer; transition: .2s; font-family: inherit;
}
.sphere-btn:hover, .sphere-btn.active { color: #fff; border-color: var(--line-strong); background: rgba(0, 180, 255, .3); box-shadow: 0 0 12px rgba(0, 200, 255, .35); }

/* ---------- 收入指标卡 ---------- */
.income-wrap { height: 100%; display: flex; align-items: center; }
.metric-grid { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.metric-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(120deg, rgba(0, 110, 200, .18), rgba(0, 40, 90, .06));
  border: 1px solid rgba(0, 200, 255, .18);
  box-shadow: inset 0 0 18px rgba(0, 140, 255, .06);
  overflow: hidden;
}
.metric-tile.primary {
  background: linear-gradient(120deg, rgba(255, 176, 32, .16), rgba(120, 70, 0, .08));
  border-color: rgba(255, 194, 75, .3);
}
.metric-ico {
  flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--cyan);
  background: rgba(0, 180, 255, .12); border: 1px solid rgba(0, 200, 255, .3);
  box-shadow: inset 0 0 12px rgba(0, 200, 255, .18);
}
.metric-ico svg { width: 20px; height: 20px; }
.metric-tile.primary .metric-ico { color: var(--gold); background: rgba(255, 194, 75, .14); border-color: rgba(255, 194, 75, .35); box-shadow: inset 0 0 12px rgba(255, 194, 75, .2); }
.metric-name { flex: 1 1 auto; font-size: clamp(12px, .86vw, 15px); color: #cfe8ff; letter-spacing: .08em; }
.metric-val {
  flex: 0 0 auto; font-family: var(--font-num); font-size: clamp(18px, 1.6vw, 30px); font-weight: 700;
  color: var(--cyan); text-shadow: 0 0 14px rgba(0, 200, 255, .5);
}
.metric-tile.primary .metric-val { color: var(--gold); text-shadow: 0 0 14px rgba(255, 194, 75, .5); }
.metric-bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; overflow: hidden;
  background: rgba(0, 200, 255, .1);
}
.metric-tile.primary .metric-bar { background: rgba(255, 194, 75, .12); }
.metric-bar i {
  position: absolute; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: barRun 2.8s linear infinite;
}
.metric-tile.primary .metric-bar i { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* 招聘服务成效（双指标大数字） */
.achv-wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 4px 2px; overflow: visible; }
.area-r1 .panel { overflow: visible; }
.achv-item {
  position: relative; text-align: center; padding: 10px 10px 12px; border-radius: 10px;
  background: linear-gradient(120deg, rgba(0, 110, 200, .16), rgba(0, 40, 90, .04));
  border: 1px solid rgba(0, 200, 255, .16);
  box-shadow: inset 0 0 20px rgba(0, 140, 255, .06);
  overflow: visible;
  flex: 0 0 auto;
}
.achv-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-accent); opacity: .8;
}
.achv-num {
  font-family: var(--font-num); font-weight: 700; line-height: 1; letter-spacing: .02em;
  font-size: clamp(20px, 2.2vw, 36px);
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 12px rgba(25, 182, 255, .5));
}
.achv-label { margin-top: 6px; font-size: clamp(11px, .9vw, 15px); font-weight: 600; color: #e8f6ff; letter-spacing: .03em; line-height: 1.25; white-space: nowrap; text-shadow: 0 0 8px rgba(0,160,255,.35); }
.achv-unit { margin-left: 6px; font-size: .6em; color: #9fc9e8; letter-spacing: .3em; }
.achv-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; overflow: hidden; background: rgba(0, 200, 255, .1); }
.achv-bar i { position: absolute; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: barRun 2.8s linear infinite; }

/* 面板注脚（户籍分布省外来源说明） */
.panel-body.with-note { display: flex; flex-direction: column; }
.panel-body.with-note .chart { flex: 1 1 auto; min-height: 0; height: auto; }
.panel-note {
  flex: 0 0 auto; margin-top: 8px; text-align: center;
  font-size: clamp(10px, .72vw, 13px); color: var(--text-dim); letter-spacing: .04em;
}
.panel-note span { color: #cfe8ff; margin-right: 6px; }

/* 用工岗位分布（大数字 + 横向条形图） */
.region-wrap { height: 100%; display: flex; flex-direction: column; padding: 6px 4px 4px; }
.region-head { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.region-num {
  font-family: var(--font-num); font-weight: 700; line-height: 1; letter-spacing: .02em;
  font-size: clamp(28px, 3vw, 46px);
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(25, 182, 255, .5));
}
.region-unit { font-size: clamp(12px, .9vw, 15px); color: #cfe8ff; letter-spacing: .08em; }
.region-chart { flex: 1 1 auto; min-height: 0; height: auto; }
.panel-note span::before {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px;
  border-radius: 1px; background: var(--grad-accent); vertical-align: middle;
}

/* =========================================================================
 * 增强特效层（流光边框 / HUD / 扫描 / 辉光 / 启动序列）
 * ========================================================================= */

/* 流光旋转边框 */
.panel-flow {
  position: absolute; inset: 0; border-radius: 6px; pointer-events: none; z-index: 0; padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panel-flow::before {
  content: ''; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg,
     rgba(0,232,255,0)   0deg,
     rgba(0,232,255,.95) 55deg,
     rgba(125,184,255,.65) 135deg,
     rgba(255,92,157,.95) 215deg,
     rgba(0,232,255,0)   340deg);
  animation: flowSpin 6.5s linear infinite;
}
@keyframes flowSpin { to { transform: rotate(360deg); } }
.panel:hover .panel-flow::before { animation-duration: 2.6s; }

/* 指标卡片霓虹呼吸 */
@keyframes cardGlow {
  0%,100% { box-shadow: 0 6px 22px rgba(0, 20, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 10px rgba(0, 160, 255, .12); }
  50%     { box-shadow: 0 6px 22px rgba(0, 20, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(0, 210, 255, .32); }
}

/* 数字落定脉冲 */
.num-pulse { animation: numPulse 1s ease-out; }
@keyframes numPulse {
  0%   { filter: drop-shadow(0 0 6px rgba(0, 200, 255, .2)); }
  30%  { filter: drop-shadow(0 0 20px rgba(0, 230, 255, .95)); }
  100% { filter: drop-shadow(0 0 12px rgba(0, 200, 255, .45)); }
}
.stat-card.accent .num-pulse { animation: numPulsePink 1s ease-out; }
@keyframes numPulsePink {
  0%   { filter: drop-shadow(0 0 6px rgba(255, 90, 150, .2)); }
  30%  { filter: drop-shadow(0 0 20px rgba(255, 90, 150, .95)); }
  100% { filter: drop-shadow(0 0 12px rgba(255, 90, 150, .45)); }
}

/* 背景极光 / 第二扫描 */
.bg-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(0, 130, 255, .12), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(155, 92, 255, .14), transparent 42%),
    radial-gradient(circle at 60% 12%, rgba(0, 232, 255, .08), transparent 38%);
  mix-blend-mode: screen; animation: auroraMove 19s ease-in-out infinite alternate;
}
@keyframes auroraMove { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(4%, -3%) scale(1.12); } }
.bg-scan--2 { height: 260px; background: linear-gradient(180deg, transparent, rgba(120, 180, 255, .05), transparent); animation-duration: 13s; animation-delay: -5s; opacity: .7; }

/* 纵向扫描光 */
.sweep-x {
  position: fixed; top: 0; bottom: 0; width: 170px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 255, .05) 38%, rgba(150, 205, 255, .14) 50%, rgba(0, 232, 255, .05) 62%, transparent);
  filter: blur(2px); animation: sweepX 11s ease-in-out infinite;
}
@keyframes sweepX { 0% { transform: translateX(-30vw); } 100% { transform: translateX(110vw); } }

/* HUD 边角框 */
.hud-frame { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hud-corner { position: absolute; width: 46px; height: 46px; animation: hudPulse 3.6s ease-in-out infinite; }
.hud-corner.tl { top: 10px;  left: 10px;  border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud-corner.tr { top: 10px;  right: 10px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.hud-corner.bl { bottom: 10px; left: 10px;  border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.hud-corner::after { content: ''; position: absolute; width: 7px; height: 7px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hud-corner.tl::after { top: -4px; left: -4px; }
.hud-corner.tr::after { top: -4px; right: -4px; }
.hud-corner.bl::after { bottom: -4px; left: -4px; }
.hud-corner.br::after { bottom: -4px; right: -4px; }
@keyframes hudPulse { 0%,100% { filter: drop-shadow(0 0 4px rgba(0, 232, 255, .5)); } 50% { filter: drop-shadow(0 0 12px rgba(0, 232, 255, .95)); } }
.hud-edge { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(0, 232, 255, .45) 20%, rgba(0, 232, 255, .7) 50%, rgba(0, 232, 255, .45) 80%, transparent); opacity: .6; }
.hud-edge.top { top: 6px; }
.hud-edge.bottom { bottom: 6px; }

/* 启动进度条 */
.boot-bar { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 60; background: rgba(0, 40, 80, .5); overflow: hidden; transition: opacity .6s ease 1.3s; }
.boot-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--cyan), #a0c8ff, var(--magenta)); box-shadow: 0 0 14px var(--cyan); animation: bootFill 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
.boot-txt { position: absolute; right: 16px; top: 9px; font-size: 11px; letter-spacing: .32em; color: var(--cyan); opacity: .85; text-shadow: 0 0 8px rgba(0, 232, 255, .6); }
@keyframes bootFill { 0% { width: 0; } 100% { width: 100%; } }
body.boot-done .boot-bar { opacity: 0; pointer-events: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1500px) { .panel { min-height: 176px; } }
@media (max-width: 760px) {
  .main { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header { height: auto; padding: 52px 12px 16px; }
  .header-side.left { top: 14px; left: 12px; transform: none; }
  .header-side.right { top: 14px; right: 12px; transform: none; }
  .header-title { white-space: normal; text-align: center; letter-spacing: .08em; }
  .panel { min-height: 230px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .header-side #clock { display: none; }
}
@media (min-width: 2400px) {
  .stage { padding: 22px 28px 28px; gap: 20px; }
  .stats, .main { gap: 20px; }
  .header { height: 118px; }
}

/* 移动端隐藏 HUD 长边 */
@media (max-width: 760px) {
  .hud-edge { display: none; }
  .hud-corner { width: 30px; height: 30px; }
}

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  .panel-flow::before, .sweep-x, .bg-aurora, .bg-scan, .bg-scan--2, .hud-corner, .panel, .stat-card,
  .stat-card::after, .header-deco span, .stat-bar i, .metric-bar i, .panel::before { animation: none !important; }
  /* 禁用动画后必须恢复最终状态，否则 fadeUp 的 from 值会让面板不可见 */
  .panel, .stat-card { opacity: 1 !important; transform: none !important; }
}

/* 全屏按钮（大屏展示用，低调常驻） */
.fs-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,232,255,.35);
  background: rgba(4,16,38,.55); color: #9fe8ff;
  border-radius: 9px; font-size: 20px; line-height: 1; cursor: pointer;
  opacity: .22; transition: opacity .2s, box-shadow .2s, background .2s;
  backdrop-filter: blur(4px);
}
.fs-btn:hover { opacity: 1; background: rgba(4,16,38,.85); box-shadow: 0 0 16px rgba(0,232,255,.5); }
.fs-btn:active { transform: scale(.94); }

/* 无障碍 / 打印 */
@media print {
  .bg-layer, .admin-link, .hud-frame, .sweep-x, .boot-bar, .fs-btn { display: none; }
}
