/* ============================================================
   赢标通 · 数据大屏（深色科技风）
   ============================================================ */
:root {
  --sc-bg: #060d1f;
  --sc-panel: rgba(13, 27, 57, .78);
  --sc-border: rgba(46, 90, 168, .35);
  --sc-primary: #37a6ff;
  --sc-primary-2: #6fe3ff;
  --sc-text: #d8e6ff;
  --sc-text-2: #7d9ac4;
  --sc-num: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--sc-bg);
  color: var(--sc-text);
  overflow: hidden;
}

/* ---------- 登录页 ---------- */
.sc-login-body { overflow: auto; }
.sc-login-bg { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(1200px 700px at 20% 10%, rgba(24, 80, 170, .35), transparent 60%),
  radial-gradient(900px 600px at 85% 85%, rgba(16, 120, 190, .25), transparent 60%),
  #060d1f; }
.sc-login-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.sc-glow-1 { width: 420px; height: 420px; left: -120px; top: -120px; background: #0e4c9e; }
.sc-glow-2 { width: 520px; height: 520px; right: -160px; bottom: -180px; background: #0b6fae; }
.sc-login-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sc-login-card {
  width: 100%; max-width: 400px; padding: 40px 36px 28px; border-radius: 16px;
  background: rgba(10, 22, 45, .92); border: 1px solid rgba(80, 140, 220, .35);
  box-shadow: 0 30px 80px rgba(0, 10, 30, .6); text-align: center;
}
.sc-login-logo {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; font-size: 30px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1877f2, #37a6ff); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(24, 119, 242, .45);
}
.sc-login-card h1 { font-size: 20px; color: #fff; letter-spacing: 2px; }
.sc-login-sub { font-size: 12px; color: var(--sc-text-2); margin: 8px 0 28px; letter-spacing: 1px; }
.sc-field { text-align: left; margin-bottom: 16px; }
.sc-field label { display: block; font-size: 12px; color: var(--sc-text-2); margin-bottom: 6px; letter-spacing: 2px; }
.sc-field input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 8px; color: #fff; font-size: 15px; outline: none;
  background: rgba(8, 18, 38, .9); border: 1px solid rgba(80, 140, 220, .3); transition: border .15s, box-shadow .15s;
}
.sc-field input:focus { border-color: var(--sc-primary); box-shadow: 0 0 0 3px rgba(55, 166, 255, .18); }
.sc-login-btn {
  width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: 8px; cursor: pointer;
  font-size: 16px; font-weight: 700; letter-spacing: 6px; color: #fff;
  background: linear-gradient(135deg, #1877f2, #2ea0ff); box-shadow: 0 10px 26px rgba(24, 119, 242, .4);
}
.sc-login-btn:hover { filter: brightness(1.08); }
.sc-login-btn:disabled { opacity: .7; cursor: wait; }
.sc-login-tip { min-height: 18px; font-size: 12.5px; color: #ff8f8f; }
.sc-login-foot { margin-top: 20px; font-size: 12px; }
.sc-login-foot a { color: var(--sc-text-2); text-decoration: none; }
.sc-login-foot a:hover { color: var(--sc-primary-2); }

/* ---------- 大屏整体 ---------- */
.sc-page { height: 100vh; display: flex; flex-direction: column; padding: 14px 16px 12px; gap: 12px;
  background:
    radial-gradient(1400px 800px at 50% -10%, rgba(22, 82, 168, .30), transparent 55%),
    radial-gradient(1000px 700px at 95% 100%, rgba(14, 100, 160, .16), transparent 60%),
    var(--sc-bg); }

/* 顶栏 */
.sc-header { display: flex; align-items: center; justify-content: space-between; }
.sc-header-left { display: flex; align-items: center; gap: 12px; }
.sc-logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #1877f2, #37a6ff);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(24, 119, 242, .5); }
.sc-header-left h1 { font-size: 22px; color: #fff; letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(55, 166, 255, .55); }
.sc-header-left p { font-size: 11px; color: var(--sc-text-2); letter-spacing: 3px; }
.sc-header-right { display: flex; align-items: center; gap: 10px; }
.sc-clock { font-size: 14px; color: var(--sc-primary-2); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.sc-hbtn { height: 30px; padding: 0 12px; border-radius: 6px; cursor: pointer; font-size: 12px;
  color: var(--sc-text-2); background: rgba(20, 40, 75, .8); border: 1px solid var(--sc-border); transition: .15s; }
.sc-hbtn:hover { color: #fff; border-color: var(--sc-primary); }

/* 数字条 */
.sc-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sc-kpi { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 10px 8px; min-width: 0;
  background: var(--sc-panel); border: 1px solid var(--sc-border); border-radius: 10px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.sc-kpi span { font-size: 12px; color: var(--sc-text-2); letter-spacing: 2px; white-space: nowrap; }
.sc-kpi b { font-size: 26px; font-weight: 800; color: var(--sc-num); font-variant-numeric: tabular-nums; min-width: 0;
  text-shadow: 0 0 16px rgba(55, 166, 255, .5); }
.sc-kpi b.up { color: #35e0a1; text-shadow: 0 0 16px rgba(53, 224, 161, .45); }

/* 主体三栏 */
.sc-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 350px minmax(0, 1fr) 350px; gap: 12px; }
.sc-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }

/* 面板 */
.sc-panel { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: var(--sc-panel); border: 1px solid var(--sc-border); border-radius: 10px; padding: 12px 14px; }
.sc-panel::before { content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(55, 166, 255, .08), transparent 26%); }
.sc-panel-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #eaf3ff;
  letter-spacing: 2px; margin-bottom: 8px; }
.sc-panel-title i { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #37a6ff, #1877f2);
  box-shadow: 0 0 10px rgba(55, 166, 255, .8); }
.sc-crumb { font-size: 12px; color: var(--sc-primary-2); font-weight: 400; }
.sc-back { margin-left: auto; height: 26px; padding: 0 10px; font-size: 12px; cursor: pointer; color: var(--sc-primary-2);
  background: rgba(10, 30, 60, .9); border: 1px solid var(--sc-border); border-radius: 6px; }
.sc-back:hover { border-color: var(--sc-primary); }

.sc-chart { flex: 1; min-height: 160px; overflow: hidden; }

/* 地图面板 */
.sc-col-c { grid-template-rows: auto; }
.sc-panel-map { flex: 1; }
.sc-map { flex: 1; min-height: 200px; overflow: hidden; }
.sc-map-tip { text-align: center; font-size: 11px; color: var(--sc-text-2); padding: 4px 0 2px; letter-spacing: 1px; }
.sc-panel-region { height: 230px; }

/* 排行榜 */
.sc-rank { list-style: none; overflow: hidden; flex: 1; }
.sc-rank li { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-size: 12.5px; }
.sc-rank .r-idx { width: 20px; height: 20px; border-radius: 5px; text-align: center; line-height: 20px; font-size: 11px;
  color: #9fc3f0; background: rgba(30, 60, 110, .8); flex: none; }
.sc-rank li:nth-child(1) .r-idx { background: linear-gradient(135deg, #ff7d5c, #ff4d6a); color: #fff; }
.sc-rank li:nth-child(2) .r-idx { background: linear-gradient(135deg, #ffb35c, #ff8a00); color: #fff; }
.sc-rank li:nth-child(3) .r-idx { background: linear-gradient(135deg, #ffe17d, #f7c600); color: #6b4a00; }
.sc-rank .r-name { color: var(--sc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rank .r-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(30, 60, 110, .6); overflow: hidden; }
.sc-rank .r-bar i { display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #1877f2, #37a6ff, #6fe3ff); }
.sc-rank .r-val { width: 64px; text-align: right; color: var(--sc-primary-2); font-variant-numeric: tabular-nums; }

/* 区域标讯列表 */
.sc-region-list { list-style: none; overflow: hidden; flex: 1; }
.sc-region-list li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 12.5px;
  border-bottom: 1px dashed rgba(60, 100, 170, .18); }
.sc-region-list .t-type { flex: none; padding: 1px 6px; border-radius: 4px; font-size: 10.5px;
  color: #6fe3ff; background: rgba(24, 119, 242, .16); border: 1px solid rgba(55, 166, 255, .3); }
.sc-region-list .t-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #d8e6ff; text-decoration: none; }
.sc-region-list .t-title:hover { color: #fff; }
.sc-region-list .t-date { flex: none; color: var(--sc-text-2); font-size: 11px; font-variant-numeric: tabular-nums; }

/* 实时滚动 */
.sc-panel-live { flex: 1; min-height: 120px; }
.sc-live { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.sc-live-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.sc-live-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: rgba(16, 34, 64, .55); border: 1px solid rgba(60, 110, 190, .18); border-radius: 8px; padding: 6px 10px; }
.sc-live-item .l-time { flex: none; font-size: 11px; color: var(--sc-primary-2); font-variant-numeric: tabular-nums; }
.sc-live-item .l-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #d8e6ff; text-decoration: none; }
.sc-live-item .l-title:hover { color: #fff; }
.sc-live-item .l-region { flex: none; font-size: 11px; color: var(--sc-text-2); }

/* 底部跑马灯 */
.sc-marquee { display: flex; align-items: center; gap: 10px; height: 34px; overflow: hidden;
  background: var(--sc-panel); border: 1px solid var(--sc-border); border-radius: 8px; padding: 0 12px; }
.sc-marquee-tag { flex: none; font-size: 11px; color: #35e0a1; border: 1px solid rgba(53, 224, 161, .4);
  padding: 1px 8px; border-radius: 4px; letter-spacing: 2px; }
.sc-marquee-clip { flex: 1; overflow: hidden; }
.sc-marquee-track { display: inline-flex; gap: 48px; white-space: nowrap; font-size: 12.5px; color: var(--sc-text-2);
  animation: scMarquee 60s linear infinite; }
.sc-marquee-track b { color: #eaf3ff; font-weight: 500; }
@keyframes scMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 中小屏自适应（非 1080p 显示器也能看） */
@media (max-width: 1440px) {
  .sc-main { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .sc-kpi b { font-size: 22px; }
  .sc-header-left h1 { font-size: 18px; }
}
@media (max-width: 1100px) {
  /* 窄屏/手机：放弃 100vh 锁高，改为自然滚动流式布局，避免面板压缩重叠 */
  .sc-page { height: auto; min-height: 100vh; overflow: visible; }
  .sc-main { grid-template-columns: 1fr; }
  .sc-col { min-height: auto; }
  .sc-col-c { order: -1; }
  .sc-kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sc-kpi { flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; }
  .sc-kpi span { font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
  .sc-kpi b { font-size: 20px; }
  .sc-panel { min-height: auto; }
  .sc-panel-map .sc-map { min-height: 380px; }
  .sc-chart { min-height: 200px; }
  .sc-panel-region { height: auto; }
  .sc-panel-region .sc-region-list { max-height: 280px; overflow: auto; }
  .sc-rank { overflow: visible; max-height: none; }
  .sc-panel:has(.sc-rank) .sc-rank { max-height: 320px; overflow: auto; }
  .sc-live { overflow: visible; }
  .sc-live-inner { position: static; max-height: 320px; overflow: auto; }
  .sc-header-left h1 { font-size: 16px; letter-spacing: 1px; }
  .sc-header-left p { display: none; }
}
@media (max-width: 560px) {
  .sc-kpis { grid-template-columns: repeat(2, 1fr); }
  .sc-kpi b { font-size: 18px; }
  .sc-header { flex-wrap: wrap; gap: 8px; }
  .sc-clock { width: 100%; order: 3; }
  .sc-panel-map .sc-map { min-height: 300px; }
}
