:root {
  --bg: #f4f6fb;
  --side: #1c2434;
  --side-2: #273246;
  --line: #e6e9f2;
  --text: #1d2433;
  --muted: #7b8499;
  --brand: #5b4dff;
  --brand-2: #7a6bff;
  --ok: #12a36a;
  --warn: #e5484d;
  --card: #fff;
  --shadow: 0 10px 30px rgba(28, 36, 52, 0.06);
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; min-height: 100%; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  background: #fff;
}
.login-side {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(141, 124, 255, 0.55), transparent 34%),
    radial-gradient(circle at 80% 78%, rgba(228, 35, 122, 0.28), transparent 32%),
    #171e2e;
}
.login-side i {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: auto;
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 22px;
  background: linear-gradient(145deg, #8d7cff, #5b4dff);
}
.login-side h1 { margin: 0; font-size: 36px; }
.login-side p { margin: 0; max-width: 320px; color: #c5cce0; line-height: 1.6; }
.login-card {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 48px 36px;
  background: #fff;
}
.login-card h1 { margin: 0 0 6px; font-size: 28px; }
.login-card .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 13px; color: #4b556d; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcff;
  outline: none;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.primary, .ghost, .danger, .tiny {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
}
.primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; }
.ghost { background: #eef1f8; color: #334; }
.danger { background: #fff1f1; color: var(--warn); }
.tiny { padding: 6px 10px; border-radius: 8px; background: #eef1f8; color: #334; }
.wide { width: 100%; }
.err { color: var(--warn); min-height: 20px; font-size: 13px; margin: 0 0 8px; }

.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side {
  background: var(--side); color: #d7deee; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 6px 10px 18px; }
.brand i {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #8d7cff, #5b4dff);
  color: #fff; font-style: normal; font-weight: 700;
}
.brand b { display: block; color: #fff; font-size: 15px; }
.brand small { color: #8d97ad; }
.nav-label { margin: 8px 12px 6px; font-size: 12px; color: #8d97ad; }
.nav button {
  width: 100%; text-align: left; border: 0; background: transparent; color: #d7deee;
  border-radius: 10px; padding: 9px 12px; margin-bottom: 2px;
}
.nav button.on, .nav button:hover { background: var(--side-2); color: #fff; }
.nav-group { margin: 2px 0 6px; }
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 2px;
  background: transparent;
  color: #aeb6c9;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.nav-group-toggle:hover,
.nav-group.is-open > .nav-group-toggle { color: #fff; background: var(--side-2); }
.nav-caret {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-right: 2px;
}
.nav-group.is-open .nav-caret { transform: rotate(45deg); margin-top: -3px; }
.nav-group-items { display: none; padding: 2px 0 4px 4px; }
.nav-group.is-open .nav-group-items { display: block; }
.nav-group-items > button {
  padding-left: 22px;
  font-size: 13px;
  color: #c5cce0;
}
.nav-group-items > button.on { color: #fff; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; background: var(--bg); }
.content { flex: 1; }
.top {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.top b { font-size: 16px; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.content { padding: 18px 22px 32px; }
/* —— 平台概览（盲盒 + 交易所）—— */
.platform-dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1320px;
}
.pd-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(244, 114, 182, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(56, 189, 248, 0.18), transparent 50%),
    linear-gradient(128deg, #1e1b4b 0%, #3730a3 38%, #5b21b6 72%, #6d28d9 100%);
  box-shadow: 0 22px 48px rgba(49, 46, 129, 0.35);
  position: relative;
  overflow: hidden;
}
.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.pd-hero-text { position: relative; z-index: 1; }
.pd-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  font-weight: 700;
}
.pd-title {
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}
.pd-date { margin: 0; font-size: 13px; opacity: 0.92; }
.pd-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pd-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}
.pd-tag-box { background: rgba(251, 207, 232, 0.15); }
.pd-tag-ex { background: rgba(191, 219, 254, 0.12); }
.pd-hero-glance {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 10px;
  min-width: min(280px, 42%);
}
.pd-glance-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.pd-glance-item span { display: block; font-size: 11px; opacity: 0.88; }
.pd-glance-item b { display: block; margin-top: 6px; font-size: 20px; line-height: 1.1; }
.pd-glance-alert.has-alert {
  border-color: rgba(252, 165, 165, 0.45);
  background: rgba(254, 226, 226, 0.14);
}
.pd-glance-alert.has-alert b { color: #fecaca; }

.pd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pd-kpi {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pd-kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: #cbd5e1;
}
.pd-kpi-box::before { background: linear-gradient(180deg, #a855f7, #6366f1); }
.pd-kpi-ex::before { background: linear-gradient(180deg, #3b82f6, #4f46e5); }
.pd-kpi-warn::before { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.pd-kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.pd-kpi-value {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.05;
  color: #0f172a;
  font-weight: 800;
}
.pd-kpi-sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}
.pd-kpi-link {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pd-kpi-link:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.1);
}

.pd-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}
.pd-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.pd-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafbff, #fff);
}
.pd-panel-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.pd-panel-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.pd-panel-head .tiny { margin-left: auto; flex: none; }
.pd-panel-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.pd-panel-icon-box {
  background: linear-gradient(145deg, #a855f7, #6366f1);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}
.pd-panel-icon-ex {
  background: linear-gradient(145deg, #2563eb, #4f46e5);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
}
.pd-panel-body { padding: 12px 14px 16px; flex: 1; }
.pd-table-wrap { padding: 0; overflow: auto; }
.pd-table { margin: 0; }
.pd-table th { background: #f8fafc; font-size: 12px; }
.pd-table td { font-size: 13px; }
.pd-table tr:last-child td { border-bottom: 0; }
.pd-type { font-weight: 600; color: #1e293b; }
.pd-pill {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
}
.pd-pill.on { background: #dcfce7; color: #15803d; }

.pd-ex-quick-wrap .pd-quick-stack {
  grid-template-columns: 1fr;
  gap: 10px;
}
.pd-ex-quick-wrap .ex-quick {
  padding: 12px 14px;
  border-radius: 12px;
}
.pd-ex-quick-wrap .ex-quick strong { font-size: 22px; margin: 6px 0 2px; }

.pd-ex-tail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pd-ex-tail .ex-period { border-radius: 18px; }
.pd-ex-tail .ex-config { border-radius: 18px; border: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.card, .panel { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.card { padding: 16px 18px; }
.card span { color: var(--muted); font-size: 13px; }
.card strong { display: block; margin-top: 6px; font-size: 26px; }
.panel { padding: 8px 8px 4px; overflow: auto; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; background: #fafbff; }
.cover {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #f3f5fb;
}
.ops { display: flex; gap: 6px; flex-wrap: wrap; }
.pager { display: flex; justify-content: flex-end; gap: 8px; align-items: center; padding: 12px; color: var(--muted); font-size: 13px; }
.switch {
  border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px;
}
.switch.on { background: #e7f8f0; color: var(--ok); }
.switch.off { background: #f3f4f8; color: #8b93a7; }
.mask {
  position: fixed; inset: 0; background: rgba(16, 20, 32, 0.45);
  display: grid; place-items: center; z-index: 20; padding: 20px;
}
.dialog {
  width: min(640px, 100%); background: #fff; border-radius: 16px;
  max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.dialog header, .dialog footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.dialog footer { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; gap: 8px; }
.dialog header button { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #667; }
.dialog .body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dialog .body .full { grid-column: 1 / -1; }
.preview { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #f3f5fb; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.user-page .toolbar#filters { margin-bottom: 8px; }
.user-page .toolbar#filters input,
.user-page .toolbar#filters select {
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  min-width: 108px;
}
.user-page > .toolbar { margin-bottom: 8px; }
.user-page > .toolbar .primary,
.user-page > .toolbar .ghost,
.user-page #filters .primary,
.user-page #filters .ghost {
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
}
.user-panel-table {
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid #dcdfe6;
  overflow: auto;
}
.user-table { min-width: 1680px; width: 100%; border-collapse: collapse; }
.user-table th, .user-table td {
  vertical-align: top;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
  border: 1px solid #ebeef5;
  padding: 8px 10px;
}
.user-table th { color: #606266; font-weight: 600; background: #f5f7fa; }
.user-table .u-info { min-width: 210px; }
.user-pager { padding: 10px 12px; border-top: 1px solid #ebeef5; }
.user-scroll-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #909399;
}
@media (min-width: 1200px) {
  .user-scroll-hint { display: none; }
}
.ship-list { padding: 10px 12px 6px; }
.ship-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}
.ship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 10px 14px;
  background: #f5f7fa;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #606266;
}
.ship-meta b { color: #1d2433; font-weight: 600; }
.ship-state { margin-left: auto; font-weight: 600; color: #e6a23c; }
.ship-card[data-done] .ship-state { color: var(--ok); }
.ship-body {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(200px, 1fr) 118px;
  align-items: stretch;
}
.ship-col-hd {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ship-goods,
.ship-recv,
.ship-act {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  min-height: 120px;
}
.ship-act {
  border-right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
}
.ship-goods-row { display: flex; gap: 12px; align-items: flex-start; }
.ship-cover { width: 72px; height: 72px; border-radius: 8px; flex-shrink: 0; }
.ship-cover-ph { display: block; background: #f3f5fb; }
.ship-goods-name { display: block; margin-bottom: 6px; font-size: 14px; }
.ship-goods .muted { margin: 0 0 4px; font-size: 12px; line-height: 1.5; }
.ship-line { display: flex; gap: 8px; font-size: 13px; line-height: 1.65; margin-bottom: 4px; }
.ship-k { color: var(--muted); min-width: 64px; flex-shrink: 0; }
.ship-v { color: #1d2433; word-break: break-all; }
.ship-logistics { font-size: 12px; line-height: 1.5; margin-bottom: 4px; color: #334; }
.muted { color: var(--muted); }
@media (max-width: 900px) {
  .ship-body { grid-template-columns: 1fr; }
  .ship-goods, .ship-recv, .ship-act { border-right: 0; border-bottom: 1px solid var(--line); }
  .ship-act { border-bottom: 0; }
  .ship-state { margin-left: 0; width: 100%; }
}
.u-red { color: #e5484d; }
.u-green { color: #12a36a; }
.u-teal { color: #1aa58d; }
.u-brand { color: var(--brand); }
.u-small { font-size: 12px; }
.u-note { max-width: 120px; word-break: break-all; }
.u-link { border: 0; background: none; padding: 0; color: inherit; text-align: left; }
.u-link:hover { text-decoration: underline; }
.user-ops { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.user-dialog { width: min(860px, 100%); }
.fund-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.fund-drawer {
  width: 100%;
  max-height: min(88vh, 720px);
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  animation: fund-drawer-slide 0.28s ease-out;
}
@keyframes fund-drawer-slide {
  from { transform: translateY(-100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.fund-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.fund-drawer-header b { font-size: 16px; }
.fund-drawer-close {
  border: 0;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.fund-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0 0 12px;
}
.fund-th-center,
.fund-td-center { text-align: center !important; }
.el-like-table { border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden; }
.el-like-table th { background: #fafafa; color: #909399; font-weight: 500; padding: 8px 0; }
.el-like-table td { padding: 10px 4px; border-bottom: 1px solid #ebeef5; color: #606266; }
.fund-cell-num { display: inline-block; min-width: 24px; }
.fund-wd-status { color: #303133; }
.fund-edit-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.fund-pencil {
  border: 0;
  background: none;
  color: #909399;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.fund-pencil:hover { color: var(--brand); }
.fund-inline-num {
  width: 76px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  font: inherit;
  font-size: 13px;
  text-align: center;
  background: transparent;
  color: #303133;
  -moz-appearance: textfield;
}
.fund-inline-num::-webkit-outer-spin-button,
.fund-inline-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fund-inline-num:hover { border-color: #dcdfe6; background: #fff; }
.fund-inline-num:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(91, 79, 240, 0.15);
}
.fund-inline-num.fund-inline-saving { opacity: 0.55; }
.fund-inline-select {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 4px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  color: #303133;
  cursor: pointer;
  max-width: 72px;
}
.fund-inline-select:hover,
.fund-inline-select:focus {
  border-color: var(--brand);
  background: #fff;
  outline: none;
}
.fund-trial-cell,
.fund-wd-cell { gap: 2px; }
.fund-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
}
.fund-toolbar-label { font-weight: 800; font-size: 14px; margin-right: 8px; }
.fund-tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fund-tab {
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #c7d2fe;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}
.fund-tab.on {
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-weight: 700;
}
.fund-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 160px;
}
.fund-search-ico { color: #94a3b8; font-size: 14px; }
.fund-search-input {
  border: 0;
  outline: none;
  font: inherit;
  font-size: 13px;
  width: 120px;
  background: transparent;
}
.fund-table-wrap { padding: 12px 16px 0; overflow: auto; }
.fund-table { width: 100%; min-width: 980px; }
.fund-table th { font-size: 12px; white-space: nowrap; }
.fund-table td { font-size: 13px; vertical-align: middle; }
.fund-coin { color: var(--brand); font-weight: 700; }
.fund-kind-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef2ff;
  color: #4338ca;
}
.fund-adjust {
  border: 0;
  background: none;
  color: #e5484d;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.fund-adjust:hover { text-decoration: underline; }
.tiny.success {
  background: #67c23a;
  color: #fff;
  border-color: #67c23a;
}
.tiny.warn {
  background: #e6a23c;
  color: #fff;
  border-color: #e6a23c;
}
.order-drawer-wide.fund-drawer {
  max-height: min(94vh, 920px);
  border-radius: 0;
}
.order-drawer-ref.fund-drawer { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.order-drawer-body-ref {
  padding: 0 !important;
  background: #fff;
}
.order-ref-shell {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.order-ref-form {
  padding: 14px 16px 12px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
}
.order-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.order-ref-row + .order-ref-row { margin-top: 10px; }
.order-ref-row-actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.order-ref-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #606266;
  flex: 0 1 auto;
}
.order-ref-lbl {
  flex: none;
  white-space: nowrap;
  color: #606266;
  font-size: 13px;
}
.order-ref-input {
  width: 150px;
  max-width: 36vw;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #606266;
}
.order-ref-input:focus {
  outline: none;
  border-color: #409eff;
}
.order-ref-date { width: 132px; max-width: 28vw; }
.order-ref-chip-wrap { flex-wrap: wrap; }
.order-ref-acct-wrap { flex: 1 1 280px; min-width: 0; }
.order-ref-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.order-ref-chip {
  border: 0;
  border-right: 1px solid #dcdfe6;
  background: #fff;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: #606266;
  line-height: 1.2;
}
.order-ref-chip:last-child { border-right: 0; }
.order-ref-chip.on {
  background: #409eff;
  color: #fff;
  font-weight: 500;
}
.order-ref-chips-acct .order-ref-chip.on {
  background: #409eff;
  color: #fff;
}
.order-ref-chips-wrap {
  flex-wrap: wrap;
  max-width: min(520px, 72vw);
}
.user-list-doc {
  margin-bottom: 0;
  border-radius: 14px 14px 0 0;
}
.user-page .user-panel-table.list-doc-shell {
  box-shadow: var(--shadow);
}
.report-ref-table { min-width: 640px !important; }
.list-doc-filters .order-ref-btn-orange {
  border: 0;
  border-radius: 4px;
  padding: 7px 14px;
  color: #fff;
  font-size: 13px;
}
.list-doc-filters .order-ref-btn-green {
  border: 0;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 13px;
}
.order-ref-date-wrap { flex: 1 1 320px; }
.order-ref-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.order-ref-dash { color: #c0c4cc; padding: 0 2px; }
.order-ref-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.order-ref-btn {
  border: 0;
  border-radius: 4px;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
}
.order-ref-btn-sky { background: #79bbff; }
.order-ref-btn-pale { background: #a0cfff; }
.order-ref-btn-green { background: #67c23a; }
.order-ref-btn-orange { background: #e6a23c; }
.order-ref-btn:hover { filter: brightness(0.95); }
.order-ref-table-bar {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #ebeef5;
  min-height: 36px;
}
.order-ref-table-spacer { flex: 1; }
.order-ref-icon-bar { display: inline-flex; gap: 4px; }
.order-ref-icon {
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #606266;
  font-size: 16px;
  line-height: 1;
}
.order-ref-icon:hover { color: #409eff; border-color: #c6e2ff; }
.order-col-picker-wrap { position: relative; }
.order-col-picker {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 148px;
  max-height: 280px;
  overflow: auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.order-col-all,
.order-col-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  white-space: nowrap;
}
.order-col-all { font-weight: 600; border-bottom: 1px solid #ebeef5; margin-bottom: 4px; padding-bottom: 8px; }
.order-ref-hint {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 12px;
  color: #909399;
}
.order-ref-form-collapsed .order-ref-row {
  display: none;
}
.order-ref-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 12px;
}
.order-ref-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 13px;
}
.order-ref-table th,
.order-ref-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
  vertical-align: middle;
}
.order-ref-table th {
  background: #fafafa;
  color: #909399;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.order-ref-table .tc { text-align: center; }
.order-ref-table .w-chk { width: 42px; }
.order-ref-empty {
  padding: 48px 16px !important;
  text-align: center;
  color: #c0c4cc;
  font-size: 14px;
}
.order-time-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  align-items: center;
}
.order-ref-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
  font-size: 13px;
  color: #606266;
  border-top: 1px solid #ebeef5;
}
.list-doc-shell {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #ebeef5;
  overflow: hidden;
  margin-bottom: 16px;
}
.list-doc-filters {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}
.list-doc-filters .toolbar {
  margin-bottom: 0;
  gap: 10px;
}
.list-doc-filters .toolbar input,
.list-doc-filters .toolbar select {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}
.list-doc-filters .toolbar .primary {
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 13px;
}
.list-doc-actions {
  padding: 8px 16px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}
.list-doc-actions .toolbar {
  margin: 0;
}
.list-doc-shell > .order-ref-table-wrap {
  max-height: min(72vh, 780px);
}
.list-doc-pager {
  background: #fff;
}
.list-doc-page-meta {
  margin-left: 4px;
  color: #909399;
  font-size: 12px;
  white-space: nowrap;
}
.order-ref-table .ops {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.order-ref-page-btn {
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #606266;
}
.order-ref-page-btn:disabled { opacity: 0.45; cursor: default; }
.order-ref-page-num {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #409eff;
  color: #fff;
  font-size: 13px;
}
.order-ref-page-size select {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  margin-left: 4px;
  color: #606266;
}
@media (max-width: 1100px) {
  .order-ref-row-actions { flex-direction: column; align-items: stretch; }
  .order-ref-btns { margin-left: 0; justify-content: flex-end; width: 100%; }
  .order-ref-input { width: 120px; }
}
.u-funds-td { text-align: center; vertical-align: middle; }
.u-funds-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 96px;
}
.u-fiat-balance { font-size: 12px; color: #606266; white-space: nowrap; }
.fund-info-link,
.u-fund-entry {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.fund-info-link:hover,
.u-fund-entry:hover { text-decoration: underline; }
.user-panel { padding: 16px; font-size: 13px; line-height: 1.7; }
.user-panel p { margin: 0 0 8px; }
.user-panel table { width: 100%; }
.back { border: 0; background: transparent; color: var(--brand); padding: 0; margin-right: 8px; }
.warn-cell b { color: #e5484d; }
.goods-sum {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.goods-sum.ok { background: #e8f8ef; color: #137a4d; }
.goods-sum.bad { background: #fff0f0; color: #c41b1b; }
.goods-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: #f8f6fc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.goods-card {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(40, 20, 80, 0.06);
}
.goods-pic {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f0edf8;
  aspect-ratio: 1;
}
.goods-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-ph { display: grid; place-items: center; height: 100%; font-size: 11px; color: var(--muted); }
.goods-lv {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #8b93a7;
  padding: 2px 5px;
}
.goods-pic em {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.goods-card p {
  margin: 6px 0 2px;
  font-size: 11px;
  line-height: 1.35;
  height: 30px;
  overflow: hidden;
}
.goods-card strong { color: #e5484d; font-size: 11px; }
td.cell-edit {
  cursor: pointer;
  color: #4338ca;
  font-weight: 700;
  white-space: nowrap;
}
td.cell-edit:hover {
  background: #eef2ff;
  outline: 1px dashed #a5b4fc;
  outline-offset: -1px;
}
.cell-edit-input {
  width: 100%;
  min-width: 72px;
  max-width: 120px;
  padding: 4px 6px;
  border: 1px solid #6366f1;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
}
/* —— 交易所概览 —— */
.ex-dash { display: flex; flex-direction: column; gap: 16px; }
.ex-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(0, 0, 0, 0.22), transparent 45%),
    linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.28);
}
.ex-eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.ex-hero h2 { margin: 6px 0 4px; font-size: 24px; font-weight: 800; }
.ex-date { margin: 0; font-size: 13px; opacity: 0.9; }
.ex-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(420px, 100%);
}
.ex-hero-kpis div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}
.ex-hero-kpis span { display: block; font-size: 11px; opacity: 0.85; }
.ex-hero-kpis b { display: block; margin-top: 4px; font-size: 18px; }
.ex-up { color: #86efac !important; }
.ex-down { color: #fca5a5 !important; }
.ex-flat { color: #e2e8f0 !important; }

.ex-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ex-quick {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ex-quick:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.12);
}
.ex-quick span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.ex-quick strong { display: block; margin: 8px 0 4px; font-size: 28px; line-height: 1; }
.ex-quick small { font-size: 12px; color: #8b93a7; }
.ex-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
  font-style: normal;
}
.ex-quick-dep strong { color: #059669; }
.ex-quick-wd strong { color: #d97706; }
.ex-quick-ord strong { color: #4f46e5; }
.ex-quick-users strong { color: #0f172a; }

.ex-period {
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ex-period-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ex-period-head h3 { margin: 0; font-size: 16px; }
.ex-period-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.ex-period-head p b { font-size: 13px; }
.ex-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
}
.ex-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.ex-metric {
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e8ecf4;
  min-height: 108px;
  display: flex;
  flex-direction: column;
}
.ex-metric-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.ex-metric strong { margin-top: auto; font-size: 20px; line-height: 1.2; }
.ex-metric small { margin-top: 6px; font-size: 11px; color: #94a3b8; }
.ex-metric-in { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4, #fff); }
.ex-metric-in strong { color: #047857; }
.ex-metric-out { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed, #fff); }
.ex-metric-out strong { color: #c2410c; }
.ex-metric-fee { border-color: #e9d5ff; background: linear-gradient(180deg, #faf5ff, #fff); }
.ex-metric-fee strong { color: #7e22ce; }
.ex-metric-users strong { color: #1e293b; }
.ex-metric-first strong { color: #4338ca; }
.ex-spark {
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.ex-spark i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a855f7);
}
.ex-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ex-config { padding: 18px 20px; }
.ex-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.ex-config-head h3 { margin: 0 0 6px; font-size: 16px; }
.ex-config-head p { margin: 0; font-size: 12px; color: var(--muted); max-width: 520px; line-height: 1.5; }
.ex-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ex-config .field { margin-bottom: 0; }

@media (max-width: 1200px) {
  .ex-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .ex-quick-row { grid-template-columns: repeat(2, 1fr); }
  .ex-split { grid-template-columns: 1fr; }
  .ex-hero { flex-direction: column; align-items: stretch; }
  .ex-hero-kpis { min-width: 0; }
  .pd-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-bento { grid-template-columns: 1fr; }
  .pd-hero { flex-direction: column; align-items: stretch; }
  .pd-hero-glance { min-width: 0; width: 100%; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 168px 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .dialog .body { grid-template-columns: 1fr; }
  .side { padding: 12px 8px; }
  .content { padding: 14px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-side, .login-card { min-height: auto; }
  .login-side { padding: 32px 24px 28px; }
  .login-side i { margin-bottom: 18px; }
  .login-card { padding: 28px 24px 40px; }
}
