/* ---------- 本页独有：前缀 md-scn-，只服务于数据大屏 ---------- */

/* 大屏外框：比 .md-shell 宽一点（看板要横向摊开），但仍居中不贴边 */
.md-scn { max-width: 1560px; margin: 0 auto; padding: 18px 16px 48px;
          color: #3d2f1e; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* ---------- 顶部标题条 ---------- */
.md-scn-top { display: flex; align-items: center; justify-content: space-between;
             flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.md-scn-title { margin: 0; font-size: 1.5rem; font-weight: 800; color: #2b1f12;
                letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.md-scn-title i { color: #b08756; }
.md-scn-title::after { content: ''; width: 54px; height: 3px; border-radius: 2px;
                       background: linear-gradient(90deg, #d8ab5c, rgba(216,171,92,0)); }
.md-scn-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
               font-size: .78rem; color: #8c8273; }
.md-scn-meta span { display: inline-flex; align-items: center; gap: 5px; }
.md-scn-live { display: inline-flex; align-items: center; gap: 6px; color: #a97c43; font-weight: 700; }
.md-scn-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e;
                    box-shadow: 0 0 0 3px rgba(62,207,142,.22); animation: md-scn-pulse 1.8s infinite; }
@keyframes md-scn-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 卡片 ---------- */
.md-scn-card { height: 100%; border-radius: 20px; padding: 16px 18px 18px;
               display: flex; flex-direction: column; }
.md-scn-head { display: flex; align-items: center; justify-content: space-between;
               gap: 10px; margin-bottom: 12px; padding-bottom: 10px;
               border-bottom: 1px solid rgba(176,135,86,.18); }
.md-scn-head h2 { margin: 0; font-size: .96rem; font-weight: 800; color: #2b1f12;
                  display: flex; align-items: center; gap: 8px; }
.md-scn-head h2 i { color: #b08756; }
.md-scn-sub { font-size: .72rem; color: #a89e8c; }

/* ---------- KPI 四项 ---------- */
.md-scn-kpi { height: 100%; border-radius: 20px; padding: 18px 18px 16px;
              display: flex; align-items: center; gap: 14px; }
.md-scn-kpi-ic { flex: none; width: 52px; height: 52px; border-radius: 16px;
                 display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
                 background: linear-gradient(135deg, rgba(214,171,92,.26), rgba(176,135,86,.10));
                 border: 1px solid rgba(176,135,86,.30); color: #a97c43; }
.md-scn-kpi-bd { min-width: 0; }
.md-scn-kpi-lb { font-size: .74rem; color: #8c8273; margin-bottom: 2px; }
/* 数字与单位放同一个文本节点：既方便读，也不会把裸小数暴露成「>12.3<」那种形态 */
.md-scn-kpi-nm { font-size: 1.72rem; font-weight: 800; color: #a97c43; line-height: 1.15;
                 font-variant-numeric: tabular-nums; }
.md-scn-kpi-nm small { font-size: .78rem; font-weight: 700; color: #8c8273; margin-left: 3px; }

/* ---------- 图表容器 ---------- */
.md-scn-box { width: 100%; height: 320px; }
.md-scn-box-sm { width: 100%; height: 268px; }

/* ---------- 城市排行 ---------- */
.md-scn-rank { display: flex; flex-direction: column; gap: 11px; }
.md-scn-rank-row { display: flex; align-items: center; gap: 11px; }
.md-scn-rank-no { flex: none; width: 24px; height: 24px; border-radius: 8px; font-size: .74rem;
                  font-weight: 800; display: flex; align-items: center; justify-content: center;
                  color: #8c8273; background: rgba(176,135,86,.10); }
.md-scn-rank-row:nth-child(1) .md-scn-rank-no { color: #fff; background: linear-gradient(135deg,#d8ab5c,#a97c43); }
.md-scn-rank-row:nth-child(2) .md-scn-rank-no { color: #fff; background: linear-gradient(135deg,#cfc3ae,#a2937c); }
.md-scn-rank-row:nth-child(3) .md-scn-rank-no { color: #fff; background: linear-gradient(135deg,#c9a37a,#a3764a); }
.md-scn-rank-bd { flex: 1; min-width: 0; }
.md-scn-rank-nm { font-size: .82rem; font-weight: 700; color: #2b1f12; margin-bottom: 5px; }
.md-scn-rank-bar { height: 7px; border-radius: 4px; background: rgba(176,135,86,.14); overflow: hidden; }
.md-scn-rank-bar > i { display: block; height: 100%; border-radius: 4px; width: 0;
                       background: linear-gradient(90deg, #d8ab5c, #a97c43);
                       transition: width 1.1s cubic-bezier(.23,1,.32,1); }
.md-scn-rank-vl { flex: none; font-size: .8rem; font-weight: 800; color: #a97c43;
                  font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }

/* ---------- 明细表 ---------- */
.md-scn-tablewrap { overflow-x: auto; }
.md-scn-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 560px; }
.md-scn-table th { text-align: left; font-weight: 700; font-size: .74rem; color: #8c8273;
                   padding: 9px 12px; background: rgba(176,135,86,.08); white-space: nowrap; }
.md-scn-table th:first-child { border-radius: 10px 0 0 10px; }
.md-scn-table th:last-child { border-radius: 0 10px 10px 0; }
.md-scn-table td { padding: 11px 12px; border-bottom: 1px solid rgba(176,135,86,.12); color: #4a3a26; }
.md-scn-table tbody tr { transition: background .15s ease; }
.md-scn-table tbody tr:hover { background: rgba(176,135,86,.07); }
.md-scn-table .num { font-variant-numeric: tabular-nums; font-weight: 700; color: #a97c43; }

/* 满意度小进度条 */
.md-scn-score { display: flex; align-items: center; gap: 8px; }
.md-scn-score-bar { flex: 1; min-width: 54px; height: 6px; border-radius: 3px;
                    background: rgba(176,135,86,.14); overflow: hidden; }
.md-scn-score-bar > i { display: block; height: 100%; border-radius: 3px;
                        background: linear-gradient(90deg,#d8ab5c,#a97c43); }
.md-scn-score-bar.low > i { background: linear-gradient(90deg,#e08a7a,#c9553f); }
.md-scn-score-nm { font-size: .74rem; color: #8c8273; font-variant-numeric: tabular-nums; min-width: 30px; }

/* 状态小标签 */
.md-scn-tag { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px;
              padding: 2px 10px; white-space: nowrap; }
.md-scn-tag.ok   { color: #1f7a5c; background: rgba(62,207,142,.16); }
.md-scn-tag.warn { color: #8a6320; background: rgba(216,171,92,.20); }
.md-scn-tag.bad  { color: #a4442f; background: rgba(224,120,100,.18); }
.md-scn-tag.info { color: #2f6b96; background: rgba(100,180,255,.18); }

/* ---------- 实时动态 ---------- */
.md-scn-feed { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.md-scn-feed::-webkit-scrollbar { width: 5px; }
.md-scn-feed::-webkit-scrollbar-track { background: rgba(176,135,86,.08); border-radius: 3px; }
.md-scn-feed::-webkit-scrollbar-thumb { background: rgba(176,135,86,.32); border-radius: 3px; }
.md-scn-feed-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px;
                   border-bottom: 1px solid rgba(176,135,86,.12); }
.md-scn-feed-row:last-child { border-bottom: none; }
.md-scn-feed-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.md-scn-feed-dot.ok   { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.16); }
.md-scn-feed-dot.warn { background: #d8ab5c; box-shadow: 0 0 0 3px rgba(216,171,92,.16); }
.md-scn-feed-dot.bad  { background: #e07a68; box-shadow: 0 0 0 3px rgba(224,122,104,.16); }
.md-scn-feed-dot.info { background: #64b4ff; box-shadow: 0 0 0 3px rgba(100,180,255,.16); }
.md-scn-feed-tx { font-size: .8rem; color: #4a3a26; line-height: 1.5; }
.md-scn-feed-tm { font-size: .7rem; color: #a89e8c; margin-top: 2px; }