/* MSFuture 集团运营全景大屏。
 * 固定 1920×1000 画布，由脚本按窗口尺寸整体缩放，保证在任何投影上比例一致。
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; height: 100%; }

body.panorama-body {
  background: #020d1d;
  color: #dbe9ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(28, 92, 168, .35), transparent 70%),
    radial-gradient(900px 500px at 8% 108%, rgba(18, 70, 140, .25), transparent 70%),
    #020d1d;
}

.dashboard {
  --bg: #020d1d;
  --panel: rgba(9, 30, 56, .74);
  --panel-2: rgba(7, 22, 42, .9);
  --accent: #20c5ff;
  --accent-2: #4d7bff;
  --accent-3: #7ef9c9;
  --text: #dbe9ff;
  --muted: #7f9ab8;
  --line: rgba(32, 197, 255, .18);
  --line-strong: rgba(32, 197, 255, .42);
  --cut: 16px;

  position: relative;
  width: 1920px;
  height: 1000px;
  padding: 22px 30px 16px;
  transform-origin: top left;
  background:
    linear-gradient(180deg, rgba(4, 20, 40, .96), rgba(2, 12, 26, .98)),
    var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

/* 背景网格与光晕 */
.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 197, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 197, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(1200px 700px at 50% 40%, #000 40%, transparent 100%);
}
.dashboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 50% 0%, rgba(32, 197, 255, .12), transparent 70%);
  pointer-events: none;
}

/* ------------------------------------------------------------- 顶部导航 */
.mast {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 4px;
  z-index: 2;
}
.mast::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}
.brand { display: flex; align-items: center; gap: 16px; }
.emblem {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(32, 197, 255, .22), rgba(77, 123, 255, .12));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 26px rgba(32, 197, 255, .22) inset;
}
.emblem span { font-weight: 800; letter-spacing: 1px; color: var(--accent); font-size: 19px; }
.brand-text h1 {
  font-size: 27px;
  letter-spacing: 3px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text p { color: var(--muted); font-size: 12px; letter-spacing: 4px; margin-top: 5px; }

.variants { display: flex; gap: 8px; }
.variants button {
  min-width: 74px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.variants button:hover { color: var(--text); border-color: var(--line-strong); }
.variants button.active {
  color: #04121f;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(32, 197, 255, .45);
}

.mast-right { display: flex; align-items: center; gap: 20px; }
.clock { text-align: right; }
.clock #ctime { display: block; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--accent); font-variant-numeric: tabular-nums; }
.clock #cdate { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.back {
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all .2s ease;
}
.back:hover { color: var(--accent); border-color: var(--line-strong); }

/* ------------------------------------------------------------- 指标行 */
.metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  height: 118px;
  z-index: 2;
}
.metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: linear-gradient(160deg, rgba(12, 40, 74, .78), rgba(5, 18, 36, .62));
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.metric-icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(32, 197, 255, .3), rgba(32, 197, 255, .04));
  border: 1px solid var(--line);
}
.metric-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.metric-body { min-width: 0; }
.metric-value {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  white-space: nowrap;
}
.metric-value small { font-size: 14px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.metric-label { margin-top: 5px; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); white-space: nowrap; }
.metric-value.accent { color: var(--accent); text-shadow: 0 0 18px rgba(32, 197, 255, .55); }

/* ------------------------------------------------------------- 主体布局 */
.layout {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 470px 1fr 470px;
  gap: 16px;
  z-index: 2;
}
.col { display: grid; gap: 14px; min-height: 0; }
.col-left { grid-template-rows: 1.06fr .94fr 1fr; }
.col-center { grid-template-rows: 1fr 1.1fr; }
.col-right { grid-template-rows: .92fr 1.08fr; }

.panel {
  position: relative;
  min-height: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(32, 197, 255, .14), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  flex: none;
  padding-left: 12px;
  position: relative;
  margin-bottom: 8px;
}
.panel header::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 15px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(32, 197, 255, .6);
}
.panel h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #eaf5ff;
}
.tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: rgba(32, 197, 255, .05);
  white-space: nowrap;
}
.panel-body { flex: 1; min-height: 0; }

/* ------------------------------------------------------------- 环形图 */
.stage-wrap { flex: 1; min-height: 0; display: flex; align-items: center; gap: 10px; }
#stage-donut { width: 210px; height: 100%; display: grid; place-items: center; }
#stage-donut svg { width: 190px; height: 190px; }
.donut-center { fill: #fff; font-size: 30px; font-weight: 700; text-anchor: middle; }
.donut-sub { fill: #7f9ab8; font-size: 11px; letter-spacing: 2px; text-anchor: middle; }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #b9cfe8; }
.legend-row i { width: 9px; height: 9px; flex: none; box-shadow: 0 0 8px currentColor; }
.legend-row b { margin-left: auto; color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.legend-row span { flex: none; }

/* ------------------------------------------------------------- 排行条 */
.ranking { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; }
.rank-index {
  font-size: 12px; font-weight: 700; color: var(--muted);
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.rank-row:nth-child(1) .rank-index { color: #04121f; background: linear-gradient(135deg, #ffe08a, #ffb020); border-color: transparent; }
.rank-row:nth-child(2) .rank-index { color: #04121f; background: linear-gradient(135deg, #eaf6ff, #9fc4e8); border-color: transparent; }
.rank-row:nth-child(3) .rank-index { color: #04121f; background: linear-gradient(135deg, #ffc7a1, #e58b4e); border-color: transparent; }
.rank-main { min-width: 0; }
.rank-name { font-size: 13px; color: #dbe9ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 6px; margin-top: 6px; background: rgba(32, 197, 255, .1); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px rgba(32, 197, 255, .5); }
.rank-meta { text-align: right; }
.rank-meta b { display: block; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-meta span { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------- 归档轮播 */
.carousel { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.carousel-inner { display: flex; flex-direction: column; gap: 8px; transition: transform .6s ease; }
.archive-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(32, 197, 255, .045);
  border: 1px solid rgba(32, 197, 255, .12);
  border-left: 2px solid var(--accent);
}
.archive-card .code { font-size: 11px; color: var(--accent); letter-spacing: .5px; word-break: break-all; }
.archive-card .title { font-size: 13px; color: #eaf5ff; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-card .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------- 趋势图 */
.trend { flex: 1; min-height: 0; display: grid; place-items: center; }
.trend svg { width: 100%; height: 100%; }
.trend-legend { flex: none; display: flex; justify-content: center; align-items: center; gap: 22px; font-size: 12px; color: var(--muted); padding-top: 6px; }
.trend-legend .dot { width: 18px; height: 3px; display: inline-block; margin-right: 7px; vertical-align: middle; }
.trend-legend .billed { background: var(--accent); }
.trend-legend .collected { background: var(--accent-3); }
.trend-legend .tokens { background: rgba(255, 255, 255, .35); }

/* ------------------------------------------------------------- 项目看板 */
.board { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.board-row {
  display: grid;
  grid-template-columns: 1.35fr 88px 1.1fr 1fr 86px 96px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(90deg, rgba(12, 40, 74, .55), rgba(8, 24, 44, .25));
  border: 1px solid rgba(32, 197, 255, .1);
  font-size: 13px;
}
.board-row.head { background: transparent; border: none; color: var(--muted); font-size: 11px; letter-spacing: 1.5px; padding: 4px 12px; }
.board-name { min-width: 0; }
.board-name b { display: block; color: #eaf5ff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name span { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.board-stage { font-size: 11px; letter-spacing: 1px; padding: 3px 8px; text-align: center; border: 1px solid var(--line); color: var(--accent-3); }
.board-stage.operate { color: var(--accent); }
.board-stage.maintain { color: #ffcf7a; }
.board-stage.archived { color: #ff8f9a; }
.board-owner, .board-products { color: #b9cfe8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-num { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.board-num.money { color: #ffd98a; }

/* ------------------------------------------------------------- 分类条 */
.bars { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 30px; align-items: center; gap: 10px; font-size: 12px; color: #b9cfe8; }
.bar-track { height: 9px; background: rgba(32, 197, 255, .08); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 10px rgba(32, 197, 255, .5); }
.bar-row b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- 动态列表 */
.events { flex: 1; min-height: 0; list-style: none; overflow: hidden; display: flex; flex-direction: column; justify-content: space-around; }
.events li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 8px 0 8px 12px;
  position: relative;
  font-size: 12.5px;
}
.events li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.events li::after {
  content: "";
  position: absolute;
  left: 2px; top: calc(50% + 6px); bottom: -6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}
.events li:last-child::after { display: none; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; }
.events b { color: #eaf5ff; font-weight: 600; }
.events p { color: #8fa9c6; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------- 底部滚动条 */
.ticker {
  flex: none;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(32, 197, 255, .04);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-move 42s linear infinite;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9fb8d4;
}
.ticker-track span b { color: var(--accent); }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker.reverse .ticker-track { animation-direction: reverse; }

/* ------------------------------------------------------------- 登录门 */
.gate {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: rgba(1, 6, 15, .88);
  backdrop-filter: blur(6px);
}
.gate[hidden] { display: none; }
.gate-card { position: relative; z-index: 2; text-align: center; max-width: 460px; padding: 40px 44px; border: 1px solid var(--line-strong); background: var(--panel-2); }
.gate-card h2 { font-size: 22px; letter-spacing: 2px; margin-bottom: 12px; color: #fff; }
.gate-card p { color: var(--muted); line-height: 1.8; font-size: 13px; }
.gate-hint { margin-top: 14px; font-size: 12px; letter-spacing: .5px; opacity: .75; }
.gate-btn {
  position: relative;
  z-index: 3;
  cursor: pointer;
  display: inline-block;
  margin-top: 22px;
  padding: 10px 26px;
  color: #04121f;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ------------------------------------------------------------- 明细弹窗（参考站点的 dialog） */
.pano-dialog {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(1, 6, 15, .72);
  backdrop-filter: blur(4px);
}
.pano-dialog[hidden] { display: none; }
.pano-dialog-card {
  width: 720px;
  max-height: 76%;
  overflow: auto;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(9, 32, 60, .98), rgba(3, 14, 27, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.pano-dialog-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pano-dialog-card h2 { font-size: 20px; letter-spacing: 1px; color: #fff; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; }
.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(32, 197, 255, .12);
  font-size: 13px;
}
.detail-row span { color: var(--muted); }
.detail-row b { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.dialog-link { color: var(--accent); }
.dialog-note { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dialog-actions .fs-btn { text-decoration: none; line-height: 32px; }
.board-row[data-project-id] { cursor: pointer; }
.board-row[data-project-id]:hover { background: rgba(32, 197, 255, .07); }
.board-row[data-project-id]:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.archive-card[data-archive-code] { cursor: pointer; }
.archive-card[data-archive-code]:hover { border-color: var(--line-strong); }

/* ------------------------------------------------------------- 主题变体 */
.v-photon { --accent: #56e8ff; --accent-2: #2f6bff; --accent-3: #8cf9e6; --panel: rgba(8, 34, 66, .8); }
.v-photon .panel { box-shadow: 0 0 30px rgba(32, 197, 255, .07); }
.v-photon .metric-value.accent { text-shadow: 0 0 26px rgba(86, 232, 255, .8); }

.v-spatial {
  --bg: #060a1e;
  --accent: #b48cff;
  --accent-2: #5f6dff;
  --accent-3: #7ee0ff;
  --panel: rgba(22, 20, 56, .72);
  --panel-2: rgba(10, 10, 32, .9);
  --line: rgba(180, 140, 255, .2);
  --line-strong: rgba(180, 140, 255, .45);
  background:
    radial-gradient(900px 500px at 18% 8%, rgba(120, 70, 255, .28), transparent 70%),
    radial-gradient(800px 500px at 88% 92%, rgba(60, 220, 255, .2), transparent 70%),
    linear-gradient(180deg, #070a20, #040617);
}
.v-spatial .panel { border-color: rgba(180, 140, 255, .22); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.v-spatial .metric { border-color: rgba(180, 140, 255, .22); }
.v-spatial .dashboard::before { opacity: .5; }

.v-network {
  --bg: #01130e;
  --accent: #22e0a1;
  --accent-2: #0f8f7a;
  --accent-3: #9cffcf;
  --panel: rgba(6, 38, 30, .74);
  --panel-2: rgba(3, 20, 16, .92);
  --line: rgba(34, 224, 161, .2);
  --line-strong: rgba(34, 224, 161, .45);
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(34, 224, 161, .18), transparent 70%),
    linear-gradient(180deg, #02140f, #010a07);
}
.v-network .dashboard::before { background-size: 34px 34px; opacity: .9; }
.v-network .panel header::before { background: linear-gradient(180deg, #22e0a1, #0f8f7a); }

.v-spectrum {
  --bg: #0d0714;
  --accent: #ff9a3d;
  --accent-2: #ff4d8d;
  --accent-3: #ffd166;
  --panel: rgba(46, 22, 40, .74);
  --panel-2: rgba(22, 10, 22, .92);
  --line: rgba(255, 122, 120, .2);
  --line-strong: rgba(255, 122, 120, .45);
  background:
    radial-gradient(900px 480px at 10% 0%, rgba(255, 77, 141, .22), transparent 70%),
    radial-gradient(900px 480px at 92% 100%, rgba(255, 154, 61, .2), transparent 70%),
    linear-gradient(180deg, #0d0714, #07030a);
}
.v-spectrum .rank-bar i, .v-spectrum .bar-track i { background: linear-gradient(90deg, #ff4d8d, #ff9a3d); }
.v-spectrum .emblem { background: linear-gradient(145deg, rgba(255, 154, 61, .3), rgba(255, 77, 141, .18)); }

/* ------------------------------------------------------------- 第二轮的细节打磨 */
.metric {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.metric:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 26px rgba(32, 197, 255, .10) inset;
}
.metric::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.metric:last-child::after { display: none; }
.metric-icon { width: 50px; height: 50px; }
.metric-icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(32, 197, 255, .45)); }

.clock .updated {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .8px;
  color: var(--muted);
}
.fs-btn {
  height: 32px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: all .2s ease;
}
.fs-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.fs-btn:active { transform: scale(.96); }

.board-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }

.panel { transition: border-color .25s ease; }
.panel:hover { border-color: var(--line-strong); }
.panel h2 { font-size: 16px; }
.ticker-track span { opacity: .92; }
.gate-btn:hover { filter: brightness(1.08); }

#variants button:active,
.back:active { transform: scale(.96); }
#variants button:focus-visible,
.back:focus-visible,
.fs-btn:focus-visible,
.gate-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ------------------------------------------------- 参考站点的边框与高亮细节 */
#stage::before,
#stage::after {
  content: "";
  position: fixed;
  width: 132px;
  height: 132px;
  pointer-events: none;
  z-index: 3;
  border-color: rgba(32, 197, 255, .16);
  border-style: solid;
}
#stage::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
#stage::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }

.panel header::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -5px;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(32, 197, 255, .7), transparent);
}

.metric-value {
  font-size: 38px;
  background: linear-gradient(180deg, #ffffff 20%, #b9ecff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-value.accent {
  background: linear-gradient(180deg, #c9f7ff 10%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-value small {
  -webkit-text-fill-color: var(--muted);
  background: none;
}

/* ============================================================================
   自适应覆盖：取消 1920×1000 整体缩放，宽度自适应 + 逐级折叠
   （此前窄窗口下整块画布被缩到不可读，故改为文档流布局）
   ========================================================================== */

html, body { height: auto; }
body.panorama-body { overflow: auto; min-height: 100vh; }

#stage {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  display: block;
  overflow: visible;
  padding: 0;
}

.dashboard {
  width: 100%;
  max-width: 1920px;
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px clamp(14px, 2vw, 30px) 18px;
  transform: none !important;
  overflow: visible;
}

.mast { height: auto; min-height: 76px; flex-wrap: wrap; gap: 12px 20px; padding: 4px 4px 12px; }
.brand-text h1 { font-size: clamp(18px, 1.9vw, 27px); }
.mast-right { flex-wrap: wrap; gap: 10px 14px; margin-left: auto; }

/* 功能入口导航条 */
.module-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px;
  position: relative;
  z-index: 2;
}
.module-nav a {
  padding: 8px 15px;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  color: #bfe3f7;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(7, 34, 57, .55);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.module-nav a:hover, .module-nav a:focus-visible {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(32, 197, 255, .14);
  outline: none;
}
.module-nav a.primary {
  margin-left: auto;
  color: var(--accent);
  border-color: var(--line-strong);
  background: rgba(32, 197, 255, .1);
}

/* 面板“查看 →”入口 */
.panel-more {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.panel-more:hover { text-shadow: 0 0 10px rgba(32, 197, 255, .8); }
.panel header { gap: 10px; }

.metrics { height: auto; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric { padding: 13px 15px; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.metric:hover { border-color: var(--line-strong); background: rgba(32, 197, 255, .07); }
.metric:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.metric-value { font-size: clamp(20px, 1.75vw, 36px); }
.metric-icon { width: 44px; height: 44px; }
.metric-icon svg { width: 23px; height: 23px; }
.metric-label { white-space: normal; line-height: 1.35; }

.layout {
  flex: none;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
}
.col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.col-left, .col-center, .col-right { grid-template-rows: none; }
.panel { flex: 1; }
.panel header { min-height: 30px; height: auto; flex-wrap: wrap; row-gap: 4px; }

.stage-wrap { min-height: 200px; }
#stage-donut { width: 46%; height: auto; min-width: 130px; }
#stage-donut svg { width: 100%; height: auto; max-width: 200px; }
.legend { gap: 8px; }
.ranking { min-height: 200px; justify-content: flex-start; }
.carousel { min-height: 200px; }
.trend { min-height: 280px; }
.board { min-height: 340px; }
.bars { min-height: 200px; }
.events { min-height: 200px; }
.board-row { grid-template-columns: minmax(0, 1.35fr) 82px minmax(0, 1fr) minmax(0, .9fr) 76px 84px; }

@media (max-width: 1500px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1360px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .col-right { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-right { grid-template-columns: minmax(0, 1fr); }
  .board-row { grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 1fr); }
  .board-row .board-products, .board-row .board-owner { display: none; }
}

@media (max-width: 640px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast-right .clock { display: none; }
  .module-nav a { padding: 7px 11px; font-size: 12px; }
  .panel h2 { letter-spacing: 1px; }
}
