/* 承讯百货 · 商家管理后台 · 新粗野主义 (Neo-Brutalism) */
:root {
  --black: #0a0a0a;
  --paper: #f7f3e8;
  --white: #ffffff;
  --yellow: #ffe600;
  --pink: #ff2e88;
  --cyan: #00e5ff;
  --lime: #b7ff3c;
  --red: #ff3b3b;
  --gray: #e6e2d8;
  --text: #0a0a0a;
  --sub: #3a3a3a;
  --muted: #6b6b6b;
  --sidebar: 236px;
  --shadow: 8px 8px 0 var(--black);
  --el-color-primary: #ff2e88;
  --el-border-radius-base: 0;
  --el-font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[v-cloak] { display: none; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--el-font-family);
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
.muted { color: var(--muted); font-size: 12px; }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex: none;
}
.icon.small { width: 15px; height: 15px; }

/* ── 登录页 ───────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.09) 1px, transparent 1px);
  background-size: 30px 30px;
}
.login-card {
  width: min(1000px, 94vw);
  min-height: 600px;
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 14px 14px 0 var(--black);
}
.login-brand {
  position: relative;
  padding: 42px 40px 30px;
  display: flex;
  flex-direction: column;
  color: var(--black);
  background: var(--yellow);
  border-right: 3px solid var(--black);
  overflow: hidden;
}
.login-brand::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 3px solid var(--black);
  background: var(--ink, transparent);
  transform: rotate(12deg);
  opacity: 0.16;
}
.brand-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}
.brand-row strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: 0.4px; }
.brand-row span { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.login-brand h1 {
  position: relative;
  z-index: 1;
  margin: 54px 0 14px;
  font-size: 34px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.login-brand h1 em {
  font-style: normal;
  display: inline-block;
  padding: 0 7px;
  background: var(--pink);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}
.login-slogan { position: relative; z-index: 1; margin: 8px 0 0; font-size: 12px; font-weight: 700; line-height: 1.7; }
.login-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.login-chips span {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
}
.login-visual {
  position: relative;
  z-index: 1;
  margin-top: auto;
  height: 172px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
}
.lv-bar { display: flex; gap: 5px; }
.lv-bar i { width: 8px; height: 8px; border: 2px solid var(--black); background: var(--pink); }
.lv-bar i:nth-child(2) { background: var(--yellow); }
.lv-bar i:nth-child(3) { background: var(--cyan); }
.lv-body { flex: 1; display: flex; gap: 8px; }
.lv-side { width: 22%; background: var(--yellow); border: 2px solid var(--black); }
.lv-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.lv-row { display: flex; gap: 8px; flex: 1; }
.lv-row i { flex: 1; background: var(--white); border: 2px solid var(--black); }
.lv-row i:nth-child(2) { background: var(--cyan); }
.lv-row.short { flex: 0.7; }
.lv-row.short i:first-child { background: var(--pink); }
.login-copy { position: relative; z-index: 1; margin-top: 14px; font-size: 10px; font-weight: 700; color: var(--black); opacity: 0.7; }
.login-form-panel {
  padding: 46px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.login-form-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.login-form-brand strong { font-size: 17px; font-weight: 900; letter-spacing: 0.6px; }
.login-form-brand .brand-logo { width: 34px; height: 34px; font-size: 15px; }
.login-pill {
  align-self: center;
  padding: 5px 12px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.login-form-panel h2 { margin: 18px 0 6px; text-align: center; font-size: 36px; font-weight: 900; letter-spacing: 3px; }
.login-hint { margin: 0 0 26px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.login-form-panel .el-form-item { margin-bottom: 18px; }
.login-form-panel .el-input__wrapper { padding: 5px 13px; }
.login-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 5px;
}
.login-version { margin-top: 28px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 600; }

/* ── 主框架 ───────────────────────────────────────────── */
.admin-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 3px solid var(--black);
}
.side-brand {
  margin: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}
.side-brand .brand-logo { width: 36px; height: 36px; font-size: 16px; }
.side-brand strong { display: block; font-size: 14px; font-weight: 900; letter-spacing: 0.4px; }
.side-brand span { display: block; margin-top: 2px; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-group-title {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
}
.nav-group-title:hover { color: var(--black); }
.nav-group-title .chevron { width: 13px; height: 13px; stroke-width: 2.6; transition: transform 0.18s; transform: rotate(-90deg); }
.nav-group-title .chevron.open { transform: rotate(0deg); }
.nav-item {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s, transform 0.12s;
}
.nav-item:hover { background: var(--yellow); border-color: var(--black); color: var(--black); }
.nav-item.active {
  background: var(--pink);
  border-color: var(--black);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  font-weight: 900;
}
.nav-item.active .icon { stroke-width: 2.4; }
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--black);
  border: 2px solid var(--black);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}
.side-foot {
  margin: 0 12px 14px;
  padding: 10px 12px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
}
.side-foot span { display: block; color: var(--black); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.side-foot b { display: block; margin-top: 3px; font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-area { margin-left: var(--sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-bottom: 3px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 25;
}
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.5px; white-space: nowrap; }
.crumb b { color: var(--black); font-weight: 900; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tenant-select { width: 186px; }
.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  color: var(--black);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}
.icon-btn:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.dot-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--pink);
  border: 2px solid var(--black);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
}
.today { color: var(--black); font-size: 11px; font-weight: 700; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px 3px 3px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}
.tabbar {
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-bottom: 3px solid var(--black);
  overflow-x: auto;
  position: sticky;
  top: 64px;
  z-index: 24;
}
.page-tab {
  height: 30px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.page-tab:hover { background: var(--yellow); border-color: var(--black); color: var(--black); }
.page-tab.active {
  background: var(--pink);
  border-color: var(--black);
  color: var(--black);
  box-shadow: 2px 2px 0 var(--black);
  font-weight: 900;
}
.page-tab i { font-style: normal; width: 15px; height: 15px; display: grid; place-items: center; color: var(--black); font-size: 13px; font-weight: 900; }
.page-tab i:hover { background: var(--black); color: var(--yellow); }
.content { padding: 24px 24px 32px; }

/* ── 页面通用 ─────────────────────────────────────────── */
.page { animation: popIn 0.18s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-head h2 {
  display: inline-block;
  margin: 0;
  padding: 0 5px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: linear-gradient(transparent 64%, var(--yellow) 64%);
}
.page-head p { margin: 7px 0 0; color: var(--sub); font-size: 12px; font-weight: 600; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.panel {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; display: flex; align-items: center; font-size: 16px; font-weight: 900; letter-spacing: -0.2px; }
.panel-head h3::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--pink);
  border: 2px solid var(--black);
}
.panel-head .muted { margin-left: 2px; }
.panel-head .spacer { flex: 1; }

/* 渐变数据卡 → 色块卡 */
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero-card {
  position: relative;
  min-height: 152px;
  padding: 18px 20px;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  color: var(--black);
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 64px;
  height: 64px;
  border: 3px solid var(--black);
  background: transparent;
  transform: rotate(14deg);
  opacity: 0.25;
}
.hero-card.blue { background: var(--yellow); }
.hero-card.orange { background: var(--pink); }
.hero-card.purple { background: var(--white); }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }
.hero-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--black);
}
.hero-label { font-size: 12px; font-weight: 900; letter-spacing: 0.5px; }
.hero-card strong { position: relative; z-index: 1; display: block; margin-top: 16px; font-family: "Arial Black", "Microsoft YaHei", sans-serif; font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -1px; }
.hero-foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.hero-trend { font-size: 11px; font-weight: 800; }
.hero-trend.down { color: var(--black); text-decoration: line-through; }
.spark { width: 92px; height: 30px; }
.spark polyline { fill: none; stroke: var(--black); stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }

/* 小指标卡 */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.metric-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--black); }
.metric-icon.blue { background: var(--yellow); color: var(--black); }
.metric-icon.green { background: var(--cyan); color: var(--black); }
.metric-icon.orange { background: var(--pink); color: var(--black); }
.metric-icon.purple { background: var(--lime); color: var(--black); }
.metric-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card b { display: block; margin-top: 4px; font-size: 21px; font-weight: 900; }

/* 图表 */
.chart-grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr); gap: 18px; margin-top: 18px; }
.lower-grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr); gap: 18px; margin-top: 18px; }
.donut-wrap { display: flex; align-items: center; gap: 28px; padding: 8px 4px 4px; }
.donut {
  position: relative;
  width: 164px;
  height: 164px;
  flex: none;
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--black);
  overflow: hidden;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 30px;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 50%;
}
.donut-center { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-family: "Arial Black", "Microsoft YaHei", sans-serif; font-size: 26px; line-height: 1; font-weight: 900; }
.donut-center span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.legend { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.legend-row { display: flex; align-items: center; gap: 8px; color: var(--sub); font-size: 12px; font-weight: 700; }
.legend-row i { width: 12px; height: 12px; border: 2px solid var(--black); }
.legend-row b { margin-left: auto; color: var(--black); font-weight: 900; }
.trend-svg { width: 100%; height: 210px; display: block; }
.axis-text { fill: #5a5a5a; font-size: 10px; font-weight: 700; }
.point-text { fill: var(--black); font-size: 10px; font-weight: 900; }
.grid-line { stroke: var(--black); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.14; }

.rank-list { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 2px; }
.rank-row { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.rank-no {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--black);
  font-size: 10px;
  font-weight: 900;
}
.rank-row:nth-child(1) .rank-no { background: var(--yellow); }
.rank-row:nth-child(2) .rank-no { background: var(--cyan); }
.rank-row:nth-child(3) .rank-no { background: var(--pink); }
.rank-name { width: 138px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--black); }
.rank-bar { flex: 1; height: 12px; background: var(--white); border: 2px solid var(--black); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--pink); border-right: 2px solid var(--black); }
.rank-value { width: 54px; text-align: right; color: var(--black); font-size: 11px; font-weight: 900; }
.rank-amount { width: 80px; text-align: right; color: var(--sub); font-size: 11px; font-weight: 700; }

/* 筛选区 */
.filter-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
}
.filter-name { width: 260px; }
.filter-cat { width: 160px; }
.status-tabs { margin-left: auto; }
.tab-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

/* 表格内元素 */
.code-chip {
  display: inline-block;
  padding: 3px 9px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
  color: var(--black);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.cell-main { font-weight: 800; color: var(--black); }
.cell-sub { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.order-no { font-size: 11px; white-space: nowrap; color: var(--sub); font-weight: 700; letter-spacing: -0.2px; }
.product-cell { display: flex; align-items: center; gap: 11px; }
.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex: none;
  background: var(--gray);
  border: 2px solid var(--black);
}
.thumb-empty { display: grid; place-items: center; background: var(--yellow); color: var(--black); font-weight: 900; }
.product-main { min-width: 0; }
.product-name { font-weight: 900; color: var(--black); }
.product-sub { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.tag-row { display: flex; gap: 5px; margin-top: 5px; }
.pager { display: flex; justify-content: flex-end; padding-top: 18px; }
.form-row { display: flex; gap: 14px; }
.form-half { flex: 1; }
.form-hint { margin-left: 8px; color: var(--muted); font-size: 11px; }
.detail-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gallery-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px 90px; }
.gallery-item { position: relative; width: 92px; height: 76px; }
.gallery-item img {
  width: 92px; height: 76px; object-fit: contain;
  background: #fff; border: 2px solid var(--black); border-radius: 6px;
}
.gallery-remove {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; padding: 0; line-height: 16px;
  border: 2px solid var(--black); border-radius: 50%;
  background: var(--red, #e11d48); color: #fff;
  font-size: 14px; font-weight: 900; cursor: pointer;
}
.danger-text { color: var(--red); font-weight: 900; }

/* 订单详情 */
.order-detail-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 3px solid var(--black); }
.order-detail-head .code-chip { font-size: 18px; padding: 6px 13px; }
.order-detail-head h3 { margin: 0; font-size: 18px; font-weight: 900; }
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; }
.order-info-grid div { padding: 10px 12px; background: var(--paper); border: 2px solid var(--black); }
.order-info-grid span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.order-info-grid b { display: block; margin-top: 4px; font-weight: 900; }
.order-items { border: 3px solid var(--black); }
.order-item-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 2px solid var(--black); font-size: 12px; font-weight: 700; }
.order-item-row:last-child { border-bottom: 0; }
.order-item-row .name { flex: 1; }
.order-item-row .muted { width: 100px; text-align: right; }
.order-item-row .sub { width: 90px; text-align: right; font-weight: 900; }
.order-detail-actions { display: flex; gap: 8px; margin-top: 18px; }

/* 个人中心 */
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.profile-card { text-align: center; padding: 28px 22px; }
.profile-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--pink);
  font-size: 32px;
  font-weight: 900;
}
.profile-card h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 900; }
.role-pill { display: inline-block; padding: 4px 11px; background: var(--yellow); border: 2px solid var(--black); box-shadow: 2px 2px 0 var(--black); color: var(--black); font-size: 11px; font-weight: 900; }
.profile-meta { margin-top: 22px; padding-top: 14px; border-top: 3px solid var(--black); text-align: left; }
.profile-meta div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 1px dashed #c9c2b2; }
.profile-meta div:last-child { border-bottom: 0; }
.profile-meta b { color: var(--black); font-weight: 900; }
.profile-form { max-width: 480px; padding-top: 10px; }

/* ── Element Plus 覆盖 ───────────────────────────────── */
.el-button {
  height: 32px;
  padding: 0 14px;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}
.el-button:hover {
  background: var(--yellow);
  border-color: var(--black);
  color: var(--black);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
}
.el-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--black); }
.el-button--primary { background: var(--pink); border-color: var(--black); color: var(--white); }
.el-button--primary:hover { background: var(--pink); color: var(--white); }
.el-button--success { background: var(--lime); border-color: var(--black); color: var(--black); }
.el-button--success:hover { background: var(--lime); color: var(--black); }
.el-button--danger { background: var(--red); border-color: var(--black); color: var(--white); }
.el-button--danger:hover { background: var(--red); color: var(--white); }
.el-button--warning { background: var(--yellow); border-color: var(--black); color: var(--black); }
.el-button.is-link {
  height: auto;
  padding: 0 3px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}
.el-button.is-link:hover { background: transparent; transform: none; box-shadow: none; text-decoration-thickness: 2px; }
.el-button.is-link.el-button--primary { color: var(--black); }
.el-button.is-link.el-button--primary:hover { color: var(--pink); }
.el-button.is-link.el-button--danger { color: var(--pink); }
.el-button.is-link.el-button--danger:hover { color: var(--red); }
.el-button.is-link.el-button--success { color: #006b2d; }
.el-button.is-disabled, .el-button.is-disabled:hover { opacity: 0.45; transform: none; box-shadow: 3px 3px 0 var(--black); }

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 0;
  box-shadow: none;
  padding: 3px 11px;
}
.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
  box-shadow: 3px 3px 0 var(--black);
  border-color: var(--black);
}
.el-input__inner { color: var(--black); font-weight: 600; }
.el-input.is-disabled .el-input__wrapper { background: var(--gray); }
.el-input-number .el-input__wrapper { padding-left: 8px; }

.el-table {
  --el-table-border-color: #cfc9ba;
  --el-table-header-bg-color: var(--yellow);
  --el-table-row-hover-bg-color: #fff7b0;
  font-size: 13px;
}
.el-table th.el-table__cell {
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  height: 44px;
  border-bottom: 3px solid var(--black) !important;
  border-right: 2px solid var(--black);
}
.el-table th.el-table__cell:last-child { border-right: 0; }
.el-table td.el-table__cell {
  padding: 10px 0;
  border-bottom: 1px solid #cfc9ba !important;
  border-right: 1px solid #e3ded1;
  color: var(--text);
}
.el-table td.el-table__cell:last-child { border-right: 0; }
.el-table__inner-wrapper::before { display: none; }
.el-table__fixed-right::before, .el-table__fixed::before { display: none; }

.el-tag {
  height: 24px;
  padding: 0 8px;
  border: 2px solid var(--black);
  border-radius: 0;
  box-shadow: 2px 2px 0 var(--black);
  font-size: 11px;
  font-weight: 900;
  color: var(--black);
}
.el-tag--warning { background: var(--yellow); color: var(--black); }
.el-tag--primary { background: var(--cyan); color: var(--black); }
.el-tag--success { background: var(--lime); color: var(--black); }
.el-tag--info { background: var(--gray); color: var(--black); }
.el-tag--danger { background: var(--pink); color: var(--black); }

.el-radio-group { gap: 6px; }
.el-radio-button__inner {
  height: 31px;
  line-height: 27px;
  padding: 0 13px;
  border: 2px solid var(--black) !important;
  border-radius: 0 !important;
  background: var(--white);
  color: var(--black);
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 800;
}
.el-radio-button:first-child .el-radio-button__inner { border-left: 2px solid var(--black) !important; }
.el-radio-button__original-radio:checked + .el-radio-button__inner {
  background: var(--pink);
  color: var(--black);
  box-shadow: 2px 2px 0 var(--black) !important;
}

.el-dialog {
  border: 3px solid var(--black);
  border-radius: 0;
  box-shadow: 10px 10px 0 var(--black);
  padding: 22px 24px;
  background: var(--paper);
}
.el-dialog__header { padding: 0 0 15px; margin: 0; border-bottom: 3px solid var(--black); }
.el-dialog__title { font-size: 18px; font-weight: 900; }
.el-dialog__body { padding: 18px 0 8px; }
.el-dialog__footer { padding: 14px 0 0; border-top: 3px solid var(--black); }
.el-drawer {
  border-left: 3px solid var(--black);
  border-radius: 0;
  box-shadow: -8px 0 0 var(--black);
  background: var(--paper);
}
.el-drawer__header { margin-bottom: 10px; padding: 20px 22px 14px; border-bottom: 3px solid var(--black); }
.el-drawer__title { font-size: 18px; font-weight: 900; }
.el-drawer__body { padding: 18px 22px; }
.el-pagination { gap: 4px; }
.el-pagination.is-background .el-pager li,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next {
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}
.el-pagination.is-background .el-pager li.is-active { background: var(--pink); color: var(--black); }
.el-pagination__total { color: var(--sub); font-weight: 700; }
.el-empty__description { color: var(--muted); font-size: 12px; font-weight: 600; }
.el-form-item__label { color: var(--black); font-size: 12px; font-weight: 800; }
.el-switch__core { border: 2px solid var(--black); border-radius: 0 !important; background: var(--gray); }
.el-switch.is-checked .el-switch__core { background: var(--lime); border-color: var(--black); }
.el-switch__action { border-radius: 0 !important; background: var(--white); border: 2px solid var(--black); }
.el-tabs__item { font-size: 13px; font-weight: 800; color: var(--muted); }
.el-tabs__item.is-active { color: var(--black); }
.el-tabs__active-bar { height: 4px; background: var(--pink); }
.el-tabs__nav-wrap::after { height: 3px; background: var(--black); }
.el-dropdown-menu { border: 2px solid var(--black); border-radius: 0; box-shadow: 5px 5px 0 var(--black); padding: 4px; }
.el-dropdown-menu__item { font-weight: 700; border-radius: 0; }
.el-dropdown-menu__item:hover { background: var(--yellow); color: var(--black); }
.el-select__placeholder { color: var(--muted); font-weight: 600; }
.el-select__popper.el-popper, .el-popper.is-light {
  border: 2px solid var(--black);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--black);
  background: var(--white);
}
.el-select-dropdown__item.is-selected { color: var(--black); font-weight: 900; background: var(--yellow); }
.el-message { border: 2px solid var(--black); border-radius: 0; box-shadow: 4px 4px 0 var(--black); font-weight: 800; }
.el-message-box { border: 3px solid var(--black); border-radius: 0; box-shadow: 8px 8px 0 var(--black); }

/* 桌面密钥 */
.desktop-key-new {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
}
.desktop-key-new code { flex: 1; min-width: 0; word-break: break-all; font-size: 13px; font-weight: 800; color: var(--black); }

/* 租户弹窗：小程序首页文案 */
.tenant-dialog .el-dialog__body { max-height: 62vh; overflow-y: auto; }
.tenant-dialog .el-form-item__content { flex-wrap: wrap; }
.tenant-dialog .el-form-item__content .muted { width: 100%; margin-top: 4px; }
.tenant-dialog .home-image-upload { display: flex; align-items: center; gap: 10px; width: 100%; }
.tenant-dialog .home-image-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin-top: 10px;
  border: 2px solid var(--black);
  background: var(--paper);
}
.tenant-dialog .home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.tenant-dialog .home-title-stack { display: flex; flex-direction: column; gap: 8px; width: 100%; }

@media (max-width: 1280px) {
  .hero-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid, .lower-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  :root { --sidebar: 200px; }
  .login-card { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .top-actions .today { display: none; }
}
