/* 校享团平台运营大屏 · 科技蓝青主题 */
:root {
  --bg-deep: #020818;
  --bg-panel: rgba(6, 30, 60, 0.78);
  --cyan: #00e5ff;
  --cyan-dim: #00a8cc;
  --blue-glow: rgba(0, 180, 255, 0.45);
  --border-glow: rgba(0, 229, 255, 0.32);
  --text-dim: #7eb8d8;
  --accent-orange: #ff9f43;
  --accent-green: #00ff88;
  --accent-purple: #a78bfa;
}

/* ── 系统内嵌布局 ── */
body.bigscreen-mode {
  background: #020818 !important;
}
body.bigscreen-mode .main {
  background: #020818;
  overflow-x: hidden;
}
body.bigscreen-mode .sidebar { z-index: 200; }
body.bigscreen-mode .topbar {
  background: #0a1628 !important;
  border-color: #1a3a5c !important;
  color: #7eb8d8 !important;
  flex-shrink: 0;
}
body.bigscreen-mode .breadcrumb { color: #7eb8d8 !important; }
body.bigscreen-mode .topbar .user { color: #7eb8d8; }
body.bigscreen-mode .topbar .avatar {
  background: linear-gradient(135deg, #00e5ff, #0066aa) !important;
}
body.bigscreen-mode .content { padding: 0 !important; }
body.bigscreen-mode .bigscreen-embed-wrap {
  margin: 0 !important;
  min-height: calc(100vh - var(--header-height, 56px));
  padding: 0 !important;
}
body.bigscreen-mode.demo-immersive .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.bigscreen-mode.demo-immersive .main {
  margin-left: 0 !important;
  transition: margin-left 0.25s ease;
}
body.bigscreen-mode.demo-immersive .topbar { display: none !important; }
body.bigscreen-mode.demo-immersive .bigscreen,
body.bigscreen-mode.demo-immersive .bigscreen-embed-wrap { min-height: 100vh; }

/* ── 顶栏标题区 ── */
body.bigscreen-mode .screen-header {
  background: linear-gradient(180deg, rgba(0, 40, 80, 0.55) 0%, transparent 100%);
  border-bottom-color: rgba(0, 229, 255, 0.22);
}
body.bigscreen-mode:not(.demo-immersive) .screen-header { padding: 10px 14px; }
body.bigscreen-mode:not(.demo-immersive) .screen-title {
  font-size: 21px;
  letter-spacing: 4px;
}
body.bigscreen-mode:not(.demo-immersive) .header-meta {
  min-width: 110px;
  font-size: 11px;
}
body.bigscreen-mode .header-meta.right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.screen-title.platform-title {
  background: linear-gradient(90deg, #fff, #00e5ff, #ff9f43, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── KPI ── */
body.bigscreen-mode .kpi-row {
  gap: 14px;
  padding: 12px 12px 6px;
  flex-wrap: wrap;
  justify-content: center;
}
body.bigscreen-mode .hex-card {
  width: 128px;
  padding: 16px 10px 12px;
  animation: none;
}
body.bigscreen-mode .hex-card::before {
  background: linear-gradient(135deg, #00e5ff, transparent, #0066aa);
}
body.bigscreen-mode .hex-value {
  font-size: 22px;
  color: #00e5ff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}
body.bigscreen-mode .kpi-row-sub {
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 8px;
  padding-left: 12px;
  padding-right: 12px;
}
body.bigscreen-mode .kpi-row-sub .hex-card.hex-sm {
  width: auto;
  flex: 1 1 calc(16.66% - 8px);
  min-width: 84px;
  max-width: 108px;
  height: 66px;
  padding: 10px 6px;
}
body.bigscreen-mode .kpi-row-sub .hex-value { font-size: 15px; }
body.bigscreen-mode .hex-card.hex-gold .hex-value { color: var(--accent-orange); }
body.bigscreen-mode .hex-card.hex-profit .hex-value { color: var(--accent-green); }
body.bigscreen-mode #bs-huifu { color: var(--accent-orange) !important; }

/* ── 三栏网格 ── */
body.bigscreen-mode:not(.demo-immersive) .screen-body {
  grid-template-columns: minmax(210px, 25%) minmax(220px, 1fr) minmax(210px, 25%);
  gap: 10px;
  padding: 6px 10px 8px;
  min-height: 460px;
}
body.bigscreen-mode:not(.demo-immersive) .screen-bottom {
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 10px;
  padding: 0 10px 14px;
}
body.bigscreen-mode .col-left,
body.bigscreen-mode .col-right,
body.bigscreen-mode .col-center { gap: 8px; }
body.bigscreen-mode .panel {
  background: var(--bg-panel);
  border-color: var(--border-glow);
  box-shadow: 0 0 12px rgba(0, 100, 200, 0.18), inset 0 1px 0 rgba(0, 229, 255, 0.08);
}
body.bigscreen-mode .panel-head {
  padding: 8px 12px;
  font-size: 13px;
  color: #00e5ff;
  border-bottom-color: rgba(0, 229, 255, 0.22);
}
body.bigscreen-mode .panel-head::before {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}
body.bigscreen-mode .panel-body { padding: 10px 12px; }
body.bigscreen-mode .panel-scroll { max-height: 168px; }

/* ── 背景 ── */
.bg-layer.platform-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 45%, rgba(0, 100, 180, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 75% 18%, rgba(255, 159, 67, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #020818 0%, #051228 50%, #020818 100%);
}

/* ── 中心平台核心 ── */
.platform-core {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-core .core-icon {
  font-size: 56px;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6));
  animation: corePulse 2.5s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.platform-core .globe-label {
  position: absolute;
  bottom: -6px;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--blue-glow);
}
body.bigscreen-mode .map-stage { min-height: 180px; }
body.bigscreen-mode .orbit-ring { border-color: rgba(0, 229, 255, 0.22); }
body.bigscreen-mode .orbit-ring.r1 { width: 240px; height: 240px; }
body.bigscreen-mode .orbit-ring.r2 { width: 170px; height: 170px; }
body.bigscreen-mode .orbit-ring.r3 { width: 100px; height: 100px; }

/* ── 业务链路 ── */
.flow-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  font-size: 10px;
}
.flow-pipeline span {
  padding: 3px 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  color: var(--text-dim);
  white-space: nowrap;
}
.flow-pipeline .arrow {
  background: none;
  border: none;
  color: var(--accent-orange);
  padding: 0 2px;
}

/* ── 同步徽章 ── */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--border-glow);
  white-space: nowrap;
}
.sync-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: syncBlink 1.5s infinite;
}
@keyframes syncBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
#sync-status { color: var(--accent-green); font-size: 11px; }

/* ── 图表 & 组件微调 ── */
body.bigscreen-mode .mini-stat {
  background: rgba(0, 50, 90, 0.45);
  border-color: rgba(0, 229, 255, 0.18);
}
body.bigscreen-mode .chart-bar-col .bar {
  background: linear-gradient(180deg, #00e5ff, rgba(0, 100, 180, 0.35));
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}
body.bigscreen-mode .ticker-item {
  grid-template-columns: 58px 52px minmax(72px, 1fr) 56px 52px;
  background: rgba(0, 40, 80, 0.45);
}
body.bigscreen-mode .cs-item {
  background: rgba(0, 35, 70, 0.55);
  border-color: rgba(0, 229, 255, 0.14);
}
body.bigscreen-mode .rank-bar-wrap { background: rgba(0, 50, 90, 0.55); }
body.bigscreen-mode .cat-bar-wrap { background: rgba(0, 50, 90, 0.55); }
body.bigscreen-mode .pay-cell {
  background: rgba(0, 50, 90, 0.45);
  border-color: rgba(0, 229, 255, 0.18);
}
body.bigscreen-mode .return-box {
  background: rgba(0, 50, 90, 0.45);
  border-color: rgba(0, 229, 255, 0.2);
}
body.bigscreen-mode .dot-pulse {
  background: #00e5ff;
  box-shadow: 0 0 12px #00e5ff;
}
body.bigscreen-mode .dot-label {
  color: #00e5ff;
  background: rgba(2, 8, 24, 0.82);
}

.int-sync-bar {
  height: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.int-sync-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #0066aa, #00e5ff);
  border-radius: 3px;
}

.ticker-item .tk-status.ok { background: rgba(0, 255, 136, 0.15); color: var(--accent-green); }
.ticker-item .tk-status.ship { background: rgba(0, 229, 255, 0.15); color: var(--cyan); }
.ticker-item .tk-status.wait { background: rgba(255, 159, 67, 0.15); color: var(--accent-orange); }
.ticker-item .tk-status.pend { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }

@media (max-width: 1280px) {
  body.bigscreen-mode:not(.demo-immersive) .screen-body,
  body.bigscreen-mode:not(.demo-immersive) .screen-bottom {
    grid-template-columns: 1fr 1fr;
  }
  body.bigscreen-mode:not(.demo-immersive) .col-center {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 900px) {
  body.bigscreen-mode:not(.demo-immersive) .screen-body,
  body.bigscreen-mode:not(.demo-immersive) .screen-bottom {
    grid-template-columns: 1fr;
  }
  body.bigscreen-mode .kpi-row-sub .hex-card.hex-sm {
    flex: 1 1 calc(33% - 8px);
    max-width: none;
  }
}
