/* ============================================================
   管理后台 · 与前台同一套设计语言，但更密、更工具化
   ========================================================== */

:root {
  --ink: #2a1c24;
  --ink2: #6d5a64;
  --ink3: #a08e98;
  --line: rgba(42, 28, 36, .08);
  --line2: rgba(42, 28, 36, .14);

  --rose: #ef3f63;
  --rose-2: #ff7794;
  --blue: #2f6fed;
  --green: #14935c;
  --amber: #d18a00;
  --violet: #8b5cf6;

  --bg: #f7f4f5;
  --card: #ffffff;
  --soft: rgba(255, 255, 255, .72);

  --r1: 10px;
  --r2: 14px;
  --r3: 18px;
  --r4: 24px;

  --sh-s: 0 1px 2px rgba(42, 28, 36, .04);
  --sh-m: 0 8px 24px -12px rgba(42, 28, 36, .22);
  --sh-l: 0 20px 46px -22px rgba(42, 28, 36, .3);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50vmax 40vmax at 8% -6%, rgba(255, 226, 234, .9), transparent 60%),
    radial-gradient(46vmax 40vmax at 96% 0%, rgba(232, 227, 255, .8), transparent 62%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.12em;
  height: 1.12em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.15em;
}

/* ============================================================
   登录
   ========================================================== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 30px 28px 26px;
  border-radius: var(--r4);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--sh-l);
}

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.login-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(140deg, #ff7794, #ef3f63);
  box-shadow: 0 12px 24px -10px rgba(239, 63, 99, .9);
}

.login-brand h1 { margin: 0 0 2px; font-size: 20px; letter-spacing: -.5px; }
.login-brand p { margin: 0; font-size: 12.5px; color: var(--ink3); }

.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 650; color: var(--ink2); }

.input, .textarea, .select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: var(--r2);
  border: 1px solid var(--line2);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.textarea { height: auto; min-height: 84px; padding: 11px 13px; line-height: 1.6; resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(239, 63, 99, .5);
  box-shadow: 0 0 0 4px rgba(239, 63, 99, .1);
}

.login-hint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink3);
}

.login-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(42, 28, 36, .06);
  font-size: 11.5px;
}

.login-hint b { color: var(--rose); }

/* ============================================================
   框架
   ========================================================== */
.shell { display: block; min-height: 100vh; }

.side { display: none; }

.main {
  padding: 16px 14px calc(84px + env(safe-area-inset-bottom));
  max-width: 1440px;
  margin: 0 auto;
}

.ahead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ahead h1 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.ahead p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink3); }

.ahead-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 手机底部导航 */
.anav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(9px + env(safe-area-inset-bottom));
  z-index: 40;
  height: 58px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px -18px rgba(42, 28, 36, .4);
}

.anav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10.5px;
  color: var(--ink3);
}

.anav-item .ic { font-size: 19px; }
.anav-item.on { color: var(--rose); font-weight: 700; }

/* ============================================================
   通用组件
   ========================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  box-shadow: var(--sh-s);
  padding: 16px;
}

.card + .card { margin-top: 12px; }

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.card-h .more { font-size: 12px; color: var(--ink3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}

.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7794, #ef3f63);
  box-shadow: 0 10px 22px -10px rgba(239, 63, 99, .85);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line2);
}

.btn-ghost:hover { border-color: rgba(239, 63, 99, .4); }

.btn-soft { color: var(--ink2); background: rgba(42, 28, 36, .05); }
.btn-danger { color: #c02b45; background: #fff; border: 1px solid rgba(192, 43, 69, .3); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-block { width: 100%; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kpi {
  padding: 14px;
  border-radius: var(--r3);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-s);
}

.kpi .k-lbl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink3);
}

.kpi .k-num {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.kpi .k-sub { margin-top: 2px; font-size: 11.5px; color: var(--ink3); }
.kpi .up { color: var(--green); }
.kpi .down { color: var(--rose); }

.kpi.hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: linear-gradient(135deg, #2a1c24, #4a2b38 58%, #6d2b41);
  border: 0;
  color: #fff;
  box-shadow: 0 18px 38px -22px rgba(42, 28, 36, .8);
}

.hero-main { min-width: 0; }

.hero-side {
  display: flex;
  gap: 26px;
  padding-bottom: 2px;
}

.hero-side b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}

.hero-side i {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
}

.kpi.hero .k-lbl { color: rgba(255, 255, 255, .6); }
.kpi.hero .k-num { font-size: 30px; }
.kpi.hero .k-sub { color: rgba(255, 255, 255, .55); }

/* 表格 */
.tbl-wrap { overflow-x: auto; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }

.tbl th {
  text-align: left;
  padding: 9px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(42, 28, 36, .05);
  vertical-align: middle;
}

.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 244, 247, .6); }

.tbl .num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* 列表行（手机优先） */
.row-list { display: grid; gap: 10px; }

.row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border-radius: var(--r2);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-s);
  transition: box-shadow .2s, transform .2s;
}

.row:hover { box-shadow: var(--sh-m); }
.row .grow { flex: 1; min-width: 0; }

.row-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  flex-wrap: wrap;
}

.row-sub { margin-top: 2px; font-size: 12px; color: var(--ink3); word-break: break-all; }
.row-text { margin-top: 6px; font-size: 13px; color: #4a3b44; line-height: 1.55; }

.ava {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: #fdeef2;
  color: var(--rose);
}

.ava img { width: 100%; height: 100%; object-fit: cover; }

.thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.thumbs img { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-wait { color: var(--amber); background: rgba(209, 138, 0, .12); }
.tag-ok { color: var(--green); background: rgba(20, 147, 92, .12); }
.tag-off { color: var(--ink3); background: rgba(42, 28, 36, .06); }
.tag-blue { color: var(--blue); background: rgba(47, 111, 237, .1); }
.tag-pink { color: var(--rose); background: rgba(239, 63, 99, .1); }

.ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* 工具栏 */
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.toolbar .input, .toolbar .select { width: auto; min-width: 120px; height: 36px; border-radius: 999px; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .05);
}

.seg button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink2);
}

.seg button.on { background: #fff; color: var(--rose); font-weight: 700; box-shadow: var(--sh-s); }

/* 图表 */
.chart { display: block; width: 100%; height: auto; }
.chart .bar { fill: rgba(239, 63, 99, .22); }
.chart .bar.hot { fill: url(#gradHot); }
.chart .grid { stroke: rgba(42, 28, 36, .08); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .lbl { font-size: 11px; fill: var(--ink3); }
.chart .val { font-size: 12px; font-weight: 700; fill: var(--ink2); font-variant-numeric: tabular-nums; }

/* 设置表单 */
.form-grid { display: grid; gap: 12px; }

.f-item { display: block; }
.f-item > span:first-child { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 650; color: var(--ink2); }
.f-item .hint { margin-top: 4px; font-size: 11.5px; color: var(--ink3); }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; margin-bottom: 2px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }

.switch i {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: rgba(42, 28, 36, .16);
  position: relative;
  transition: background .2s;
  flex: none;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .22s var(--ease);
}

.switch input:checked + i { background: linear-gradient(135deg, #ff7794, #ef3f63); }
.switch input:checked + i::after { transform: translateX(17px); }

.img-field { display: flex; gap: 10px; align-items: center; }
.img-box {
  width: 60px; height: 60px; border-radius: 12px; overflow: hidden;
  background: #fdeef2; display: grid; place-items: center;
  font-size: 11px; color: var(--ink3); flex: none; border: 1px solid var(--line);
}
.img-box img { width: 100%; height: 100%; object-fit: cover; }

/* 空 / 骨架 / 提示 */
.empty {
  padding: 36px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink3);
  border: 1px dashed var(--line2);
  border-radius: var(--r2);
  background: rgba(255, 255, 255, .6);
}

.skel {
  height: 68px;
  border-radius: var(--r2);
  margin-bottom: 10px;
  background: linear-gradient(100deg, #f3eef0 20%, #faf7f8 40%, #f3eef0 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  max-width: 86vw;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(32, 18, 25, .92);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
  animation: toast-in .22s var(--ease);
}

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(32, 18, 25, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px -20px rgba(32, 18, 25, .35);
  animation: up .28s var(--ease);
}

@keyframes up { from { transform: translateY(100%); } }

.modal h3 { margin: 0 0 16px; font-size: 17px; }

.modal-btns { display: flex; gap: 8px; margin-top: 16px; }
.modal-btns .btn { flex: 1; }

/* 图片放大 */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 6, 10, .94);
  display: grid;
  place-items: center;
  padding: 24px;
}

.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.zoom .zoom-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

/* ============================================================
   桌面
   ========================================================== */
@media (min-width: 900px) {
  .shell { display: flex; }

  .side {
    display: flex;
    flex-direction: column;
    width: 226px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 12px 14px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-right: 1px solid var(--line);
  }

  .side-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px 16px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.3px;
  }

  .side-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(140deg, #ff7794, #ef3f63);
    box-shadow: 0 8px 16px -8px rgba(239, 63, 99, .9);
  }

  .side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

  .nav {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 13.5px;
    color: var(--ink2);
    transition: background .18s, color .18s;
    text-align: left;
  }

  .nav .ic { font-size: 16px; opacity: .8; }
  .nav:hover { background: rgba(42, 28, 36, .05); color: var(--ink); }

  .nav.on {
    background: linear-gradient(135deg, rgba(255, 119, 148, .16), rgba(239, 63, 99, .1));
    color: var(--rose);
    font-weight: 700;
  }

  .nav.on .ic { opacity: 1; }

  .nav .badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    display: grid;
    place-items: center;
  }

  .side-foot { border-top: 1px solid var(--line); padding-top: 8px; }

  .side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink3);
  }

  .side-link:hover { background: rgba(42, 28, 36, .05); color: var(--ink); }

  .anav { display: none; }

  .main { padding: 26px 28px 40px; flex: 1; min-width: 0; }

  .ahead { margin-bottom: 22px; }
  .ahead h1 { font-size: 26px; }

  .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  .row-list { grid-template-columns: repeat(2, 1fr); }

  .modal {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    animation: pop .22s var(--ease);
  }

  @keyframes pop { from { opacity: 0; transform: translate(-50%, -47%) scale(.98); } }

  .toast { bottom: 32px; }
}

@media (min-width: 1280px) {
  .row-list { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .full { grid-column: 1 / -1; }
}

/* ---------- 批量选择 ---------- */
.row-sel {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--rose);
  flex: none;
  cursor: pointer;
}

.batchbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(32, 18, 25, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  color: #fff;
  animation: bb-in .22s var(--ease);
}

@keyframes bb-in { from { opacity: 0; transform: translateY(10px); } }

.bb-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
}

.bb-all input { width: 16px; height: 16px; accent-color: var(--rose); }

.bb-count {
  flex: 1;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
  font-variant-numeric: tabular-nums;
}

.batchbar .btn { height: 32px; padding: 0 14px; font-size: 12.5px; }
.batchbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.batchbar .btn-danger { background: #e0384f; border-color: #e0384f; color: #fff; }
.batchbar .btn[disabled] { opacity: .35; }

@media (min-width: 900px) {
  .batchbar { left: auto; right: 28px; bottom: 22px; width: 420px; }
}
.side-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}

/* 订单表勾选列 */
.tbl .col-sel { width: 34px; }
.tbl .col-sel input { width: 16px; height: 16px; accent-color: var(--rose); cursor: pointer; }
/* ============================================================
   数据大屏
   ========================================================== */
.ds {
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(70% 60% at 12% 0%, rgba(239, 63, 99, .22), transparent 62%),
    radial-gradient(60% 60% at 92% 6%, rgba(124, 45, 74, .35), transparent 60%),
    linear-gradient(160deg, #1b1016, #241318 55%, #1a0f14);
  color: #fff;
  box-shadow: 0 26px 60px -30px rgba(20, 10, 16, .9);
}

.ds-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ds-head h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.4px; }
.ds-head p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); }

.ds-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ff9ab3;
  background: rgba(239, 63, 99, .16);
  border: 1px solid rgba(239, 63, 99, .3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.ds-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ds-kpi {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}

.ds-kpi i { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.ds-kpi b {
  display: block;
  margin: 4px 0 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.ds-kpi em { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .4); }

.ds-grid { display: grid; gap: 12px; }

.ds-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}

.ds-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ds-card-h h3 { margin: 0; font-size: 13.5px; font-weight: 700; }
.ds-card-h span { font-size: 11px; color: rgba(255, 255, 255, .38); }

.ds-svg { width: 100%; height: auto; display: block; }
.ds-svg .dbar { fill: url(#dsb); }
.ds-svg .dgrid { stroke: rgba(255, 255, 255, .09); stroke-dasharray: 3 5; }
.ds-svg .dlbl { fill: rgba(255, 255, 255, .4); font-size: 10.5px; }
.ds-svg .dline { fill: none; stroke: #ffd166; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

.ds-city {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
}

.ds-city span { flex: none; width: 84px; color: rgba(255, 255, 255, .72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-city i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef3f63, #ff9a6b);
  opacity: .75;
}
.ds-city b { flex: none; width: 26px; text-align: right; font-variant-numeric: tabular-nums; }

.ds-feed {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12.5px;
}

.ds-feed:last-child { border-bottom: 0; }
.ds-feed-ic { color: rgba(255, 255, 255, .45); font-size: 14px; }
.ds-feed-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-feed-time { flex: none; color: rgba(255, 255, 255, .35); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.ds .empty { color: rgba(255, 255, 255, .35); border-color: rgba(255, 255, 255, .12); background: transparent; }

@media (min-width: 900px) {
  .ds-kpis { grid-template-columns: repeat(4, 1fr); }
  .ds-grid { grid-template-columns: 2fr 1fr; }
  .ds-chart { grid-column: 1 / -1; }
}
/* 字段说明 */
.f-hint {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink3);
}

/* 批量条出现时给内容留出空间 */
body.has-batch #panel { padding-bottom: 76px; }
/* 环境提示条 */
.env-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.6;
}

.env-tip b { flex: none; font-weight: 800; }
.env-tip span { color: inherit; opacity: .85; }

.env-tip.info { color: #2f6fed; background: rgba(47, 111, 237, .09); }
.env-tip.warn { color: #b07400; background: rgba(209, 138, 0, .12); }
.env-tip.ok   { color: #147a52; background: rgba(20, 147, 92, .1); }
/* ============================================================
   大屏下让「侧栏 + 主区」整体居中，而不是主区贴着右边
   ========================================================== */
@media (min-width: 900px) {
  .shell {
    max-width: 1720px;
    margin: 0 auto;
    min-height: 100vh;
  }
}
/* 主区不再单独限宽，交给 .shell 统一控制 */
@media (min-width: 900px) {
  .main {
    max-width: none;
    margin: 0;
  }
}