:root {
  --bg: #f2f5fa;
  --card: #ffffff;
  --line: #e6ebf4;
  --text: #0f1b2d;
  --muted: #6b7a90;
  --blue: #1d63e8;
  --blue-d: #0b3fa8;
  --green: #0fa968;
  --orange: #f79009;
  --red: #e5484d;
  --violet: #7a5af8;
  --shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 8px 24px rgba(16, 30, 54, .06);
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(100deg, #0f2a5e 0%, #14448f 55%, #1a5fc4 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(15, 42, 94, .22);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
}

.topbar .brand small {
  font-size: 12px;
  font-weight: 400;
  opacity: .72;
  letter-spacing: 0;
}

.topbar .spacer { flex: 1; }

.topbar .navlink {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, .13);
  transition: background .18s;
  white-space: nowrap;
}
.topbar .navlink:hover { background: rgba(255, 255, 255, .24); }

.clock {
  font-size: 13px;
  opacity: .85;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  white-space: nowrap;
}
.live-dot i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22e07a;
  box-shadow: 0 0 0 0 rgba(34, 224, 122, .6);
  animation: pulse 1.8s infinite;
}
.live-dot.off i { background: #ffb020; animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 224, 122, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 224, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 224, 122, 0); }
}

/* ---------------- 布局 ---------------- */
.page { max-width: 1440px; margin: 0 auto; padding: 18px 22px 60px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
}
.panel-head .sub { color: var(--muted); font-size: 12px; }
.panel-head .spacer { flex: 1; }

.panel-body { padding: 16px 18px; }

/* ---------------- KPI ---------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kpi {
  position: relative;
  padding: 16px 18px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--blue);
}
.kpi.g::before { background: var(--green); }
.kpi.o::before { background: var(--orange); }
.kpi.v::before { background: var(--violet); }
.kpi.r::before { background: var(--red); }
.kpi.w::before { background: #b42318; }
.kpi .value.w-risk { color: #b42318; }
.kpi .tag-w { background: #fdecea; color: #b42318; }
.kpi.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kpi.clickable:hover { box-shadow: 0 6px 18px rgba(29,99,232,.14); transform: translateY(-1px); }

.kpi .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.kpi .value {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.kpi .value span.unit { font-size: 13px; font-weight: 600; margin-left: 3px; color: var(--muted); }
.kpi .foot {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi .foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.kpi .tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  background: #eef3ff;
  color: var(--blue);
}

/* ---------------- 实时播报 ---------------- */
.live-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: #0f2a5e;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
}
.live-strip .tag-new {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #22e07a;
  color: #06301a;
  font-weight: 700;
  letter-spacing: .5px;
}
.live-strip .memo {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------------- 图表 ---------------- */
.chart-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.chart { width: 100%; height: 300px; }

/* ---------------- 区域下钻 ---------------- */
.region-block { border-top: 1px solid var(--line); }
.region-block:first-child { border-top: none; }

.region-row {
  display: grid;
  grid-template-columns: 34px 1.1fr 92px 92px 92px 1.4fr 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  transition: background .16s;
}
.region-row:hover { background: #f7f9ff; }

.rank {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  background: #eef2fa;
  color: #506080;
}
.rank.r1 { background: linear-gradient(135deg, #ffcf5c, #f79009); color: #6b3c00; }
.rank.r2 { background: linear-gradient(135deg, #d6e2f7, #a9c0e6); color: #274266; }
.rank.r3 { background: linear-gradient(135deg, #f0dcc6, #d9b48c); color: #5c3a12; }

.region-name { font-weight: 700; font-size: 15px; }
.region-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 1px; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num .n { display: block; line-height: 1.25; }
.num .t { display: block; line-height: 1.4; }
.num .n { font-size: 16px; font-weight: 700; }
.num .t { font-size: 11.5px; color: var(--muted); }

.bar-wrap { display: flex; align-items: center; gap: 8px; }
.bar {
  flex: 1;
  height: 8px;
  background: #eef1f7;
  border-radius: 99px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4d8bff, #1d63e8);
  transition: width .5s ease;
}
.pct { font-size: 12px; color: var(--muted); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

.caret {
  color: var(--muted);
  font-size: 12px;
  transition: transform .2s;
}
.region-block.open .caret { transform: rotate(90deg); }

.projects {
  display: none;
  padding: 4px 18px 16px 64px;
  background: #fbfcff;
}
.region-block.open .projects { display: block; }

.project-row {
  display: grid;
  grid-template-columns: 1.1fr 92px 92px 92px 1.4fr;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
}
.project-row:hover { background: #fff; }
.project-row .pname { font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.project-row .pname b { font-weight: 600; }
.project-row .pname span {
  font-size: 11px; color: var(--muted);
  background: #eef1f7; padding: 1px 6px; border-radius: 5px;
}

/* ---------------- 动态流 ---------------- */
.feed { max-height: 300px; overflow-y: auto; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  animation: slidein .35s ease;
}
.feed-item:last-child { border-bottom: none; }

@keyframes slidein {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.feed-item .amt {
  flex: none;
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  min-width: 82px;
}
.feed-item .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .who b { font-weight: 600; }
.feed-item .who small { color: var(--muted); }
.feed-item .time { flex: none; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; }
.tbl th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { border-bottom: 1px dashed var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .money { font-weight: 700; }
.tbl td.room { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }

/* ---------------- toast ---------------- */
.toast-wrap {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 250px;
  max-width: 340px;
  padding: 12px 14px 12px 12px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--green);
  box-shadow: 0 10px 30px rgba(16, 30, 54, .16);
  animation: toastin .3s cubic-bezier(.2, .9, .3, 1.2);
}
.toast .t1 { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.toast .t2 { font-size: 17px; font-weight: 800; margin-top: 3px; color: var(--green); font-variant-numeric: tabular-nums; }
.toast .t3 { font-size: 12.5px; color: var(--text); margin-top: 2px; }
.toast.out { animation: toastout .3s forwards; }

@keyframes toastin {
  from { opacity: 0; transform: translateX(40px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes toastout {
  to { opacity: 0; transform: translateX(40px) scale(.96); }
}


/* ---------------- 今日回款实况 ---------------- */
.hot-board {
  background: linear-gradient(102deg, #0a2350 0%, #12386f 55%, #0d2d5c 100%);
  border-radius: 14px;
  padding: 14px 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 14px 32px rgba(10, 35, 80, .22);
  color: #fff;
}
.hb-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hb-title { display: flex; align-items: baseline; gap: 10px; }
.hb-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; letter-spacing: .5px;
}
.hb-live i {
  width: 8px; height: 8px; border-radius: 50%; background: #22e07a;
  box-shadow: 0 0 0 0 rgba(34, 224, 122, .7);
  animation: hbPulse 1.8s infinite;
}
@keyframes hbPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 224, 122, .65); }
  70% { box-shadow: 0 0 0 9px rgba(34, 224, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 224, 122, 0); }
}
.hb-sub { font-size: 12px; color: rgba(255, 255, 255, .55); }
.hb-stats { display: flex; align-items: flex-end; gap: 26px; margin-left: auto; }
.hb-stats > div { display: flex; flex-direction: column; gap: 3px; }
.hb-stats span { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.hb-stats b { font-size: 20px; font-weight: 800; color: #6ff2ad; font-variant-numeric: tabular-nums; }
.hb-upd { font-size: 11.5px; color: rgba(255, 255, 255, .55); text-align: right; padding-bottom: 3px; }

.hb-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 12px; height: 300px; }
.hb-feed, .hb-rank {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: 9px 11px 10px;
  display: flex; flex-direction: column; min-height: 0;
}
.hb-col { font-size: 12px; color: rgba(255, 255, 255, .62); margin-bottom: 7px; flex: none; }
.hb-col small { color: rgba(255, 255, 255, .38); margin-left: 6px; }
.hb-list { flex: 1; overflow-y: auto; min-height: 0; }
.hb-rows { flex: 1; overflow-y: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-content: start; }
.hb-empty { color: rgba(255, 255, 255, .45); font-size: 12.5px; padding: 18px 4px; text-align: center; }

.hb-item {
  display: grid;
  grid-template-columns: 40px minmax(52px, 1fr) 66px 44px 56px 90px 56px;
  gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 8px;
  font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hb-item.fresh {
  background: rgba(34, 224, 122, .15);
  box-shadow: inset 0 0 0 1px rgba(34, 224, 122, .35);
  animation: hbIn .45s ease;
}
@keyframes hbIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.hb-time { font-size: 12px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.hb-proj { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-room { color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.hb-op { color: rgba(255, 255, 255, .55); font-size: 12px; overflow: hidden; white-space: nowrap; }
.hb-amt { text-align: right; font-weight: 800; color: #6ff2ad; font-variant-numeric: tabular-nums; }
.hb-newtag {
  justify-self: start; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  background: #22e07a; color: #06301a; letter-spacing: .5px;
}
.hb-ago { justify-self: end; font-size: 11px; color: rgba(255, 255, 255, .38); white-space: nowrap; }
.hb-method { font-size: 11px; color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08);
  border-radius: 4px; padding: 1px 5px; text-align: center; overflow: hidden; white-space: nowrap; }
.hb-more { flex: none; margin-top: 6px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .09);
  text-align: center; font-size: 12px; color: rgba(255, 255, 255, .62); cursor: pointer; user-select: none; }
.hb-more:hover { color: #6ff2ad; }
.hb-more b { color: #6ff2ad; font-weight: 600; }
.hb-more i { font-style: normal; color: #6ff2ad; }

.hb-rrow {
  display: grid;
  grid-template-columns: 18px minmax(58px, 1fr) 46px 64px 34px;
  gap: 6px; align-items: center;
  padding: 3px 5px; border-radius: 6px; font-size: 12.5px;
}
.hb-rrow.flash { background: rgba(34, 224, 122, .18); animation: hbFlash 1s ease 3; }
@keyframes hbFlash {
  0%, 100% { background: rgba(34, 224, 122, .18); }
  50% { background: rgba(34, 224, 122, .04); }
}
.hb-no {
  width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 5px;
  font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .1);
}
.hb-no.top { background: #f6b93b; color: #4a2c00; }
.hb-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-bar { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22e07a, #6ff2ad); border-radius: 3px; }
.hb-ramt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); }
.hb-rcnt { text-align: right; font-size: 11px; color: rgba(255, 255, 255, .45); }

.struct-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.struct-cell { min-width: 0; }
.struct-t { font-size: 12.5px; color: #52627a; font-weight: 700; padding: 0 0 2px 6px; }
.struct-t span { font-weight: 400; color: #93a1b5; margin-left: 6px; font-size: 11.5px; }

.debt-tag {
  font-size: 10.5px; font-weight: 800; color: #c2410c; background: #fff1e6;
  border: 1px solid #ffd7b5; border-radius: 5px; padding: 1px 5px; letter-spacing: .5px;
}
.debt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 2px 16px 16px; }
.debt-col { border: 1px solid #e6ecf4; border-radius: 10px; overflow: hidden; background: #fff; }
.debt-hd { display: flex; align-items: baseline; gap: 7px; padding: 9px 11px; background: #f6f9fd; border-bottom: 1px solid #e9eff7; }
.debt-hd b { font-size: 14px; color: #1b2a41; }
.debt-hd span { font-size: 11.5px; color: #6b7a90; }
.debt-hd i { margin-left: auto; font-style: normal; font-size: 11.5px; color: #c2410c; font-weight: 700; }
.debt-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 8px 11px; border-bottom: 1px dashed #eef3f9; }
.debt-row:last-child { border-bottom: 0; }
.dno { width: 19px; height: 19px; line-height: 19px; text-align: center; border-radius: 5px;
  font-size: 11px; font-weight: 800; color: #fff; background: #c7d2e2; }
.debt-row.top .dno, .dno.top { background: #ef4444; }
.droom { font-size: 13px; font-weight: 700; color: #1b2a41; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dsub { font-size: 11.5px; color: #7c8aa0; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.damt { text-align: right; font-weight: 800; color: #d2453b; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.debt-load { color: #98a4b6; font-size: 12.5px; padding: 16px; text-align: center; grid-column: 1 / -1; }

.debt-more { padding: 8px 11px; text-align: center; font-size: 12px; color: #2c5cff;
  background: #f8fbff; border-top: 1px solid #eef3f9; cursor: pointer; user-select: none; }
.debt-more:hover { background: #eef4ff; }
.debt-more i { font-style: normal; }

/* ---------------- 区域/项目催缴对比 ---------------- */
.cmp-list[hidden] { display: none; }
.cmp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; padding: 2px 14px 10px; }
.cmp-item { display: grid; grid-template-columns: minmax(0, 1fr) 70px 44px; gap: 8px;
  align-items: center; padding: 8px 2px; border-bottom: 1px dashed #eef3f9; }
.ci-main { min-width: 0; }
.ci-name { font-size: 12.5px; font-weight: 700; color: #1b2a41; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-sub { font-size: 10.5px; color: #93a2b6; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-bar { height: 4px; background: #eef3f9; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.ci-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4d8bff, #1d63e8); }
.ci-amt { text-align: right; font-size: 12.5px; font-weight: 800; color: #1b2a41; font-variant-numeric: tabular-nums; }
.ci-rate { text-align: center; font-size: 11px; font-weight: 700; padding: 2px 0; border-radius: 5px; font-variant-numeric: tabular-nums; }
.ci-rate.g { background: #eaf7ee; color: #15803d; }
.ci-rate.o { background: #fff4e5; color: #b45309; }
.ci-rate.r { background: #feecec; color: #c0392b; }

/* ---------------- 项目欠费红黑榜 ---------------- */
.rank-chips { display: flex; gap: 6px; margin-right: 12px; }
.rchip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; cursor: pointer;
  color: #6b7a90; background: #f2f5fa; border: 1px solid #e5ebf3; user-select: none; }
.rchip:hover { color: #1d63e8; border-color: #c9dbff; }
.rchip.on { color: #fff; background: #1d63e8; border-color: #1d63e8; }
.conc { font-size: 12px; color: #c2410c; font-weight: 700; cursor: pointer; white-space: nowrap; }
.conc:hover { text-decoration: underline; }
.conc i { font-style: normal; }
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 2px 18px 14px; }
.rrow { display: grid; grid-template-columns: 20px minmax(76px, 1fr) 118px 72px 92px 68px;
  gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed #eef3f9; }
.rrow.top { background: #fdf6f4; border-radius: 6px; }
.rno { width: 19px; height: 19px; line-height: 19px; text-align: center; border-radius: 5px;
  font-size: 11px; font-weight: 800; color: #fff; background: #c7d2e2; }
.rrow.top .rno { background: #d2453b; }
.rname { font-size: 13px; font-weight: 700; color: #1b2a41; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rbar { height: 7px; background: #eef3f9; border-radius: 4px; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 4px; }
.rval { text-align: right; font-weight: 800; color: #1b2a41; font-variant-numeric: tabular-nums; font-size: 13px; }
.rhh { text-align: right; font-size: 11px; color: #7c8aa0; overflow: hidden; white-space: nowrap; }
.rtag-cell { text-align: right; }
.rtag { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.rtag.r { background: #feecec; color: #c0392b; }
.rtag.v { background: #f2ecff; color: #6d28d9; }
.rtag.g { background: #eaf7ee; color: #15803d; }

/* ---------------- 本区欠费明细弹层 ---------------- */
.dm-mask { position: fixed; inset: 0; background: rgba(14, 25, 40, .55); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.dm-mask[hidden] { display: none; }
.dm-card { width: min(720px, 100%); max-height: 82vh; background: #fff; border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(9, 20, 35, .35); }
.dm-hd { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e6ecf4; }
.dm-hd b { font-size: 16px; color: #1b2a41; }
.dm-hd span { font-size: 12px; color: #6b7a90; }
.dm-x { margin-left: auto; font-size: 19px; line-height: 1; color: #8a99ad; cursor: pointer; }
.dm-x:hover { color: #2c5cff; }
.dm-scroll { overflow-y: auto; padding: 4px 8px; }
.dm-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-bottom: 1px dashed #eef3f9; }
.dm-foot { padding: 10px 18px 14px; border-top: 1px solid #eef3f9; text-align: center; }
.dm-more-btn { border: 1px solid #d7e2f0; background: #f6f9fd; color: #2c5cff; font-size: 13px;
  padding: 7px 16px; border-radius: 8px; cursor: pointer; }
.dm-more-btn:hover { background: #eef4ff; }
.dm-load { color: #98a4b6; font-size: 12.5px; padding: 22px; text-align: center; }

.dcause { display: inline-block; font-size: 10.5px; line-height: 16px; padding: 0 5px;
  border-radius: 4px; vertical-align: 1px; white-space: nowrap; }
.dcause.c-amber { background: #fff3e0; color: #b45309; }
.dcause.c-violet { background: #f2ecff; color: #6d28d9; }
.dcause.c-slate { background: #eef2f7; color: #64748b; }
.dcause.c-red { background: #feecec; color: #c0392b; }
.dcause.c-teal { background: #e6f7f5; color: #0f766e; }
.dcause.c-green { background: #eaf7ee; color: #15803d; }
.dcause.c-gray { background: #f1f4f8; color: #7b8794; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hb-body { grid-template-columns: 1fr; height: auto; }
  .hb-feed { height: 250px; }
  .hb-rank { height: 300px; }
  .hb-stats { gap: 18px; }
  .hb-stats b { font-size: 17px; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-row { grid-template-columns: 1fr; }
  .debt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-grid { grid-template-columns: 1fr; }
  .cmp-list { grid-template-columns: 1fr; }
  .region-row { grid-template-columns: 30px 1fr 78px 78px 16px; }
  .region-row .hide-md { display: none; }
  .project-row { grid-template-columns: 1fr 78px 78px; }
  .project-row .hide-sm { display: none; }
  .projects { padding-left: 18px; }
}

@media (max-width: 720px) {
  .hot-board { padding: 12px 13px 13px; border-radius: 12px; }
  .hb-title { width: 100%; }
  .hb-live { font-size: 15px; }
  .hb-sub { display: none; }
  .hb-stats { width: 100%; margin-left: 0; gap: 14px; justify-content: space-between; }
  .hb-stats b { font-size: 17px; }
  .hb-upd { display: none; }
  .hb-body { height: auto; }
  .hb-feed { height: 232px; }
  .hb-rank { height: 300px; }
  .hb-rows { grid-template-columns: 1fr; }
  .hb-item { grid-template-columns: 34px minmax(0, 1fr) 84px 30px; gap: 6px; font-size: 12.5px; }
  .hb-item .hb-op, .hb-item .hb-room, .hb-item .hb-ago, .hb-item .hb-method { display: none; }
  .struct-body { grid-template-columns: 1fr; }
  .debt-grid { grid-template-columns: 1fr; padding: 2px 12px 12px; }
  .rank-chips { flex-wrap: wrap; margin-right: 0; }
  .rank-grid { padding: 2px 10px 10px; }
  .rrow { grid-template-columns: 18px minmax(0, 1fr) 64px 62px; }
  .rrow .rbar, .rrow .rhh { display: none; }
  .dm-mask { padding: 10px; }
  .dm-card { max-height: 90vh; }
  .dm-hd { padding: 12px 34px 12px 14px; flex-wrap: wrap; position: relative; }
  .dm-hd b { font-size: 15px; }
  .dm-hd span { width: 100%; margin-top: 3px; }
  .dm-x { position: absolute; top: 10px; right: 12px; margin-left: 0; }
  .dm-scroll { padding: 2px 6px; }
  .page { padding: 12px 12px 60px; }
  .topbar { padding: 10px 12px; gap: 6px; }
  .topbar .brand { font-size: 14.5px; gap: 0; letter-spacing: 0; }
  .topbar .brand small, .clock { display: none; }
  .topbar .navlink { padding: 5px 9px; font-size: 12px; }
  .live-dot { padding: 4px 7px; }
  .live-dot span { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .value { font-size: 24px; }
  .kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .chart { height: 260px; }
  .region-row { grid-template-columns: 28px 1fr 72px 16px; gap: 8px; padding: 11px 12px; }
  .region-row .hide-sm { display: none; }
  .projects { padding: 2px 12px 12px; }
  .project-row { grid-template-columns: 1fr 72px; }
  .project-row .hide-xs { display: none; }
  .panel-head { padding: 12px 14px; }
  .panel-body { padding: 12px 14px; }
  .toast-wrap { top: 64px; right: 10px; left: 10px; }
  .toast { max-width: none; }
}
