/* ==========================================================
   景View JINGVIEW · 实时监测大屏（独立样式，作用域仅限 /screen）
   设计：深空蓝黑底 + 琉璃金 + 数据青，全屏 16:9 控制台
   ========================================================== */
:root {
  --scr-bg: #03070e;
  --scr-panel: rgba(11, 26, 45, .62);
  --scr-line: rgba(90, 160, 220, .20);
  --scr-line-strong: rgba(201, 168, 106, .38);
  --scr-gold: #c9a86a;
  --scr-gold-light: #ecd7a8;
  --scr-cyan: #58c8e8;
  --scr-text: #dae6f4;
  --scr-sub: #7f96b3;
  --scr-dim: #4c6180;
  --scr-red: #d8604a;
  --scr-green: #5fb98a;
  --scr-serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --scr-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --scr-num: "DIN Alternate", "Bahnschrift", "Helvetica Neue", sans-serif;
}

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

html, body {
  height: auto;
  background: var(--scr-bg);
  color: var(--scr-text);
  font-family: var(--scr-sans);
  overflow: auto;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 舞台 ---------------- */
.scr {
  position: relative;
  display: grid;
  grid-template-rows: 74px auto auto;
  gap: 12px;
  padding: 0 22px 14px;
  min-height: 100vh;
  align-content: start;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(30, 92, 158, .30), transparent 68%),
    radial-gradient(760px 520px at 2% 102%, rgba(201, 168, 106, .10), transparent 70%),
    radial-gradient(700px 480px at 98% 100%, rgba(40, 110, 170, .12), transparent 70%),
    var(--scr-bg);
}

/* 经纬网格底纹 */
.scr::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70, 130, 190, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 130, 190, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 82%);
}

/* ---------------- 顶栏 ---------------- */
.scr-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 6px 0;
  z-index: 2;
}

.scr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--scr-serif);
}
.scr-seal {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--scr-line-strong);
  color: var(--scr-gold);
  font-size: 19px;
  background: rgba(201, 168, 106, .07);
  box-shadow: inset 0 0 18px rgba(201, 168, 106, .12);
}
.scr-brand b { font-size: 19px; letter-spacing: .06em; color: #f2f6fb; font-weight: 600; }
.scr-brand span { display: block; font-family: var(--scr-sans); font-size: 10px; letter-spacing: .24em; color: var(--scr-sub); margin-top: 2px; }

.scr-title { text-align: center; }
.scr-title h1 {
  font-family: var(--scr-serif);
  font-size: clamp(20px, 1.5vw, 30px);
  font-weight: 600;
  letter-spacing: .14em;
  color: #f4f8fd;
  text-shadow: 0 0 26px rgba(88, 200, 232, .28);
}
.scr-title div {
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: .3em;
  color: var(--scr-sub);
  text-transform: uppercase;
}
.scr-title::after {
  content: "";
  display: block;
  width: min(520px, 60%);
  height: 1px;
  margin: 6px auto 0;
  background: linear-gradient(90deg, transparent, var(--scr-gold) 50%, transparent);
  opacity: .7;
}

.scr-meta { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.clock { font-family: var(--scr-num); font-size: 26px; letter-spacing: .06em; color: var(--scr-gold-light); line-height: 1; }
.clock small { font-size: 11px; letter-spacing: .18em; color: var(--scr-sub); display: block; text-align: right; margin-top: 4px; }
.live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(95, 185, 138, .35);
  background: rgba(95, 185, 138, .08);
  color: var(--scr-green);
  font-size: 10px; letter-spacing: .16em;
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--scr-green); box-shadow: 0 0 10px var(--scr-green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* ---------------- 三栏布局 ---------------- */
.scr-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 340px);
  gap: 14px;
  min-height: 0;
  align-items: stretch;
  z-index: 2;
}
.scr-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.scr-col .panel { flex: 1 1 0; min-height: 0; }
.scr-main { display: grid; grid-template-rows: repeat(4, auto); gap: 14px; min-height: 0; align-items: stretch; }
.scr-main .panel { min-height: 0; }

/* ---------------- 面板 ---------------- */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 10px;
  background:
    linear-gradient(180deg, rgba(16, 36, 62, .70), rgba(6, 15, 28, .52));
  border: 1px solid var(--scr-line);
  box-shadow: inset 0 0 40px rgba(30, 90, 150, .10), 0 10px 30px rgba(0, 0, 0, .35);
  flex: 1 1 auto;
}
/* 四角刻线 */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--scr-gold);
  opacity: .55;
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel { transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.panel:hover {
  border-color: rgba(201, 168, 106, .42);
  box-shadow: inset 0 0 40px rgba(30, 90, 150, .12), 0 14px 36px rgba(0, 0, 0, .45), 0 0 0 1px rgba(201, 168, 106, .12);
  transform: translateY(-2px);
}
.panel-full, .panel-full:hover { transform: none; }

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(90, 160, 220, .16);
  flex: none;
}
.panel-head em {
  width: 3px; height: 12px;
  background: linear-gradient(180deg, var(--scr-gold-light), var(--scr-gold));
  box-shadow: 0 0 8px rgba(201, 168, 106, .55);
  font-style: normal;
  align-self: center;
}
.panel-head h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #eaf2fb; font-family: var(--scr-sans); }
.panel-head span { font-size: 9px; letter-spacing: .18em; color: var(--scr-dim); text-transform: uppercase; }
.panel-head .tag {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--scr-cyan);
  border: 1px solid rgba(88, 200, 232, .25);
  padding: 2px 6px;
}
.chart { flex: 1 1 auto; min-height: 220px; width: 100%; height: auto; }

/* ---------------- 顶栏指标条 ---------------- */
.panel-hero { padding: 10px 16px 12px; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi-cell {
  position: relative;
  padding: 10px 12px 11px;
  border-left: 1px solid rgba(201, 168, 106, .28);
  background: linear-gradient(90deg, rgba(201, 168, 106, .06), transparent 70%);
}
.kpi-cell:first-child { border-left: 0; background: none; }
.kpi-cell label { display: block; font-size: 10px; letter-spacing: .12em; color: var(--scr-sub); margin-bottom: 6px; }
.kpi-cell .v { font-family: var(--scr-num); font-size: 30px; line-height: 1; color: var(--scr-gold-light); letter-spacing: .02em; }
.kpi-cell .v small { font-family: var(--scr-sans); font-size: 11px; color: var(--scr-sub); margin-left: 4px; letter-spacing: .06em; }
.kpi-cell .d { margin-top: 6px; font-size: 9.5px; letter-spacing: .08em; color: var(--scr-dim); }
.kpi-cell .d b { color: var(--scr-green); font-weight: 500; }
.kpi-cell .d b.down { color: var(--scr-red); }

/* 中央强调数字 */
.kpi-cell.accent .v { color: #ffffff; text-shadow: 0 0 22px rgba(88, 200, 232, .45); }

/* ---------------- 实时播报 ---------------- */
.feed { flex: 1 1 auto; height: auto; min-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.feed-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 6px 7px;
  border-left: 2px solid rgba(201, 168, 106, .35);
  background: linear-gradient(90deg, rgba(201, 168, 106, .07), transparent);
  animation: feedIn .45s ease both;
}
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed-item em { font-family: var(--scr-num); font-size: 10px; color: var(--scr-dim); font-style: normal; padding-top: 2px; }
.feed-item p { font-size: 11.5px; line-height: 1.5; color: #cfdceb; }
.feed-item p b { color: var(--scr-gold-light); font-weight: 600; }
.feed-item p i { font-style: normal; color: var(--scr-cyan); font-family: var(--scr-num); }
.feed-item.hot { border-left-color: var(--scr-red); }

/* ---------------- 3D 立体柱阵 ---------------- */
.scene3d {
  flex: 1 1 auto;
  height: auto;
  min-height: 240px;
  position: relative;
  perspective: 1100px;
  perspective-origin: 50% 30%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}
.iso-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.iso-wrap svg { width: 100%; height: 100%; overflow: visible; }
.scene3d:hover .iso-wrap { transform: translateZ(24px) rotateX(-2deg); }

/* ---------------- 底栏 ---------------- */
.scr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--scr-dim);
  border-top: 1px solid rgba(90, 160, 220, .14);
  padding-top: 7px;
  z-index: 2;
}
.scr-foot a { color: var(--scr-gold); border-bottom: 1px solid rgba(201, 168, 106, .4); }
.scr-foot a:hover { color: var(--scr-gold-light); }

/* 滚动公告里的刻度线 */
.scr-foot .sep { color: rgba(90, 160, 220, .4); margin: 0 10px; }

/* ---------------- 中屏适配 ---------------- */
@media (max-width: 1280px) {
  .scr-grid { grid-template-columns: minmax(0, 270px) minmax(0, 1fr) minmax(0, 270px); }
  .kpi-cell .v { font-size: 24px; }
  .clock { font-size: 20px; }
}

@media (max-width: 1080px) {
  html, body { overflow: auto; }
  .scr {
    position: static;
    min-height: 100vh;
    height: auto;
    grid-template-rows: auto auto auto;
    padding: 0 14px 14px;
  }
  .scr-head { grid-template-columns: 1fr; gap: 12px; text-align: center; padding-top: 14px; }
  .scr-brand, .scr-meta { justify-content: center; }
  .scr-grid { grid-template-columns: 1fr; }
  .scr-col { min-height: auto; }
  .scr-main { grid-template-rows: repeat(4, auto); }
  .scr-col .panel, .scr-main .panel { flex: none; min-height: 0; }
  .chart { height: 240px; min-height: 0; flex: none; }
  .feed { height: 240px; min-height: 0; flex: none; }
  .scene3d { height: 260px; min-height: 0; flex: none; }
  .map-chart { height: 360px; min-height: 0; flex: none; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .scr-foot { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ---------------- 中间地图 + 景点弹窗 ---------------- */
.map-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin: 2px 0 4px; font-size: 11px; letter-spacing: .8px; color: var(--scr-sub);
}
.map-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; box-shadow: 0 0 6px rgba(255,255,255,.25);
}
.map-legend .map-note { margin-left: auto; color: var(--scr-dim); font-size: 10.5px; letter-spacing: .4px; }
.map-chart { flex: 1 1 auto; height: auto; min-height: 380px; width: 100%; }

.spot-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3,8,15,.74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.spot-modal[hidden] { display: none; }
.sm-box {
  position: relative; width: 720px; max-width: 94vw; max-height: 88vh; overflow: auto;
  background: linear-gradient(170deg, #0e1b2e, #08111d 72%);
  border: 1px solid var(--scr-line-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.95);
  animation: smIn .35s ease both;
}
@keyframes smIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.sm-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border: 1px solid var(--scr-line-strong);
  background: rgba(8,17,29,.7); color: var(--scr-gold-light);
  font-size: 18px; line-height: 1; cursor: pointer; transition: background .25s, color .25s;
}
.sm-close:hover { background: rgba(201,168,106,.18); color: #fff; }
.sm-photo { position: relative; height: 300px; overflow: hidden; background: #0a1422; }
.sm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-photo-tag {
  position: absolute; left: 14px; bottom: 12px;
  padding: 5px 11px; border-left: 2px solid var(--scr-gold);
  background: rgba(5,11,19,.78);
  font-size: 11px; letter-spacing: 1.4px; color: var(--scr-gold-light);
}
.sm-body { padding: 22px 26px 26px; }
.sm-body h3 {
  font-family: var(--scr-serif); font-size: 24px; font-weight: 500;
  letter-spacing: 2px; margin: 0 0 14px; color: #eef3fa;
}
.sm-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sm-meta span {
  min-width: 86px; padding: 9px 12px;
  border: 1px solid var(--scr-line); background: rgba(255,255,255,.02);
  font-size: 10.5px; color: var(--scr-dim); letter-spacing: .8px;
}
.sm-meta b { display: block; font-family: var(--scr-num); font-size: 16px; color: var(--scr-gold-light); margin-bottom: 2px; }
.sm-intro { font-size: 12.5px; line-height: 2; color: var(--scr-sub); letter-spacing: .5px; margin: 0; }

@media (max-width: 760px) {
  .map-chart { height: 360px; }
  .map-legend .map-note { margin-left: 0; width: 100%; }
  .sm-photo { height: 220px; }
  .sm-body { padding: 18px 18px 22px; }
  .sm-body h3 { font-size: 20px; }
}

/* ---------------- 模块撑满屏幕 ---------------- */
.pn-zoom {
  margin-left: auto;
  width: 26px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--scr-line);
  background: rgba(255,255,255,.02);
  color: var(--scr-sub);
  cursor: pointer;
  align-self: center;
  transition: color .25s, border-color .25s, background .25s;
}
.pn-zoom:hover { color: var(--scr-gold-light); border-color: var(--scr-line-strong); background: rgba(201,168,106,.08); }
.pn-zoom.is-on { color: #fff; border-color: var(--scr-gold); background: rgba(201,168,106,.18); }
body.panel-lock { overflow: hidden; }

.panel-full {
  position: fixed !important;
  inset: 16px !important;
  z-index: 80;
  display: flex;
  flex-direction: column;
  flex: none !important;
  background: linear-gradient(170deg, #0e1b2e, #070f1a 76%);
  border: 1px solid rgba(201,168,106,.45);
  box-shadow: 0 0 0 100vmax rgba(3,8,15,.84), 0 40px 90px -30px rgba(0,0,0,.9);
  overflow: hidden;
}
.panel-full .panel-head { flex: 0 0 auto; margin-bottom: 12px; align-self: stretch; }
.panel-full .chart,
.panel-full .map-chart { flex: 1; height: auto; min-height: 0; }
.panel-full .map-legend { flex: 0 0 auto; }
.panel-full .scene3d { flex: 1; height: auto; min-height: 0; }
.panel-full .iso-wrap { height: 100%; }
.panel-full .kpi-strip { flex: 1; align-content: center; gap: 22px 28px; }
.panel-full .feed { flex: 1; overflow: auto; }

@media (max-width: 760px) {
  .panel-full { inset: 10px !important; }
}
