/* =====================================================================
 * ChargeOps 管理后台视觉层
 * 设计规范：4px 间距栅格 / 14px 正文 / 单一主色 / 轻阴影
 * 只覆盖变量与外观，不改 Element Plus 组件逻辑
 * ===================================================================== */

:root {
  /* 主色阶 */
  --c-primary: #2563eb;
  --c-primary-600: #1d4ed8;
  --c-primary-50: #eff4ff;
  --c-primary-100: #dbe6fe;

  /* 语义色 */
  --c-success: #16a34a;
  --c-success-50: #ecfdf3;
  --c-warning: #d97706;
  --c-warning-50: #fffaeb;
  --c-danger: #dc2626;
  --c-danger-50: #fef2f2;
  --c-info: #64748b;
  --c-info-50: #f1f5f9;

  /* 中性色 */
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #94a3b8;
  --c-border: #e7ecf3;
  --c-border-soft: #f0f3f8;
  --c-bg: #f5f7fb;
  --c-surface: #ffffff;

  /* 圆角与阴影 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-2: 0 4px 16px -8px rgba(15, 23, 42, .12), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-3: 0 18px 40px -24px rgba(15, 23, 42, .28);

  /* Element Plus 变量覆盖 */
  --el-color-primary: #2563eb;
  --el-color-primary-light-3: #5b8def;
  --el-color-primary-light-5: #93b4f5;
  --el-color-primary-light-7: #c3d4fa;
  --el-color-primary-light-8: #dbe6fe;
  --el-color-primary-light-9: #eff4ff;
  --el-color-primary-dark-2: #1d4ed8;
  --el-color-success: #16a34a;
  --el-color-warning: #d97706;
  --el-color-danger: #dc2626;
  --el-color-error: #dc2626;
  --el-color-info: #64748b;
  --el-text-color-primary: #0f172a;
  --el-text-color-regular: #475569;
  --el-text-color-secondary: #94a3b8;
  --el-border-color: #e7ecf3;
  --el-border-color-light: #eef2f7;
  --el-border-color-lighter: #f2f5f9;
  --el-fill-color-blank: #ffffff;
  --el-bg-color: #ffffff;
  --el-bg-color-page: #f5f7fb;
  --el-border-radius-base: 8px;
  --el-font-size-base: 14px;
  --el-box-shadow-light: var(--sh-2);
}

/* ---------------------------------------------------------------- 基础 */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--c-primary); text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd5e0; border-radius: 8px; border: 2px solid var(--c-bg); }
::-webkit-scrollbar-thumb:hover { background: #b6c0cf; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- 布局骨架 */
.app-shell { height: 100%; }

.sidebar {
  width: 232px; flex: 0 0 232px; height: 100%;
  background: linear-gradient(180deg, #0f172a 0%, #131f38 100%);
  display: flex; flex-direction: column; position: relative;
}
.brand-block {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(59,130,246,.7);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text b { display: block; color: #fff; font-size: 14px; letter-spacing: .3px; line-height: 1.2; }
.brand-text span { display: block; color: #7c8aa3; font-size: 11px; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border: none; }
.nav-group {
  color: #55637d; font-size: 11px; font-weight: 600; letter-spacing: .8px;
  padding: 14px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px;
  padding: 0 10px; margin-bottom: 2px; border-radius: 8px;
  color: #a9b6cc; font-size: 13.5px; cursor: pointer;
  transition: background .15s, color .15s; position: relative; user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.055); color: #e6edf8; }
.nav-item.on { background: rgba(37,99,235,.18); color: #fff; font-weight: 600; }
.nav-item.on::before {
  content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: #3b82f6;
}
.nav-ico { width: 17px; height: 17px; display: inline-flex; flex: 0 0 17px; opacity: .9; }
.nav-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot {
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.07);
  color: #55637d; font-size: 11px; letter-spacing: .3px;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }

.topbar {
  height: 64px; flex: 0 0 64px; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; z-index: 10;
}
.tb-left h1 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.tb-left p { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.tb-right { display: flex; align-items: center; gap: 14px; }

.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px;
  transition: background .15s; }
.user-chip:hover { background: var(--c-info-50); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.user-chip b { display: block; font-size: 13px; line-height: 1.2; }
.user-chip small { display: block; font-size: 11px; color: var(--c-text-3); }
.logout-btn { color: var(--c-text-3) !important; font-size: 13px; }
.logout-btn:hover { color: var(--c-danger) !important; }

.content { flex: 1; overflow-y: auto; padding: 20px 24px 32px; }
.content > div { max-width: 1640px; margin: 0 auto; }

/* ---------------------------------------------------------------- 卡片 */
.el-card {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--c-border) !important;
  box-shadow: var(--sh-1) !important;
  transition: box-shadow .18s, border-color .18s;
}
.el-card:hover { box-shadow: var(--sh-2) !important; }
.el-card__header { border-bottom: 1px solid var(--c-border-soft) !important; padding: 14px 18px !important; }
.el-card__body { padding: 18px !important; }

.section-title {
  font-weight: 620; font-size: 14px; color: var(--c-text);
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--c-primary); flex: 0 0 3px;
}

/* ---------------------------------------------------------------- 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 16px 18px; position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.stat-card .ico {
  width: 34px; height: 34px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.stat-card .ico svg { width: 18px; height: 18px; stroke-width: 1.9; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.stat-card .num { font-size: 27px; font-weight: 700; letter-spacing: -.6px; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: 12.5px; color: var(--c-text-3); margin-top: 4px; }
.stat-card .spark { position: absolute; right: -6px; bottom: -6px; opacity: .06; }
.stat-card .spark svg { width: 76px; height: 76px; }

/* ---------------------------------------------------------------- 表单 */
.el-form-item__label { font-size: 13px !important; color: var(--c-text-2) !important; font-weight: 500; }
.el-input__wrapper, .el-textarea__inner, .el-select__wrapper {
  border-radius: 8px !important; box-shadow: 0 0 0 1px var(--c-border) inset !important;
  transition: box-shadow .15s;
}
.el-input__wrapper:hover, .el-select__wrapper:hover { box-shadow: 0 0 0 1px #cfd8e5 inset !important; }
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--c-primary) inset, 0 0 0 3px var(--c-primary-50) !important;
}
.el-input__inner { font-size: 13.5px; }
.el-form-item { margin-bottom: 16px; }

.el-button {
  border-radius: 8px !important; font-weight: 500; transition: all .15s;
}
.el-button--primary {
  background: var(--c-primary) !important; border-color: var(--c-primary) !important;
  box-shadow: 0 1px 2px rgba(37,99,235,.28);
}
.el-button--primary:hover { background: var(--c-primary-600) !important; border-color: var(--c-primary-600) !important; }
.el-button--default:hover { border-color: var(--c-primary) !important; color: var(--c-primary) !important; }

/* ---------------------------------------------------------------- 表格 */
.el-table {
  --el-table-border-color: var(--c-border-soft);
  --el-table-header-bg-color: #f8fafc;
  --el-table-row-hover-bg-color: var(--c-primary-50);
  font-size: 13px; border-radius: var(--r-md); overflow: hidden;
}
.el-table th.el-table__cell {
  background: #f8fafc !important; font-weight: 600 !important;
  color: var(--c-text-2) !important; font-size: 12.5px !important;
  padding: 9px 0 !important; letter-spacing: .1px;
}
.el-table td.el-table__cell { padding: 9px 0 !important; }
.el-table--border::after, .el-table--group::after,
.el-table::before { background-color: var(--c-border-soft) !important; }
.el-table--border .el-table__cell { border-right-color: var(--c-border-soft) !important; }
.el-table__inner-wrapper::before { background-color: var(--c-border-soft) !important; }
.el-table__empty-block { min-height: 140px; }
.el-table__empty-text { color: var(--c-text-3); font-size: 13px; }

/* ---------------------------------------------------------------- 标签 / 徽标 */
.el-tag {
  border-radius: 6px !important; font-size: 12px !important;
  padding: 0 7px !important; border: none !important; font-weight: 500;
}
.el-tag--small { height: 22px; line-height: 22px; }
.el-tag--info { background: var(--c-info-50) !important; color: var(--c-info) !important; }
.el-tag--success { background: var(--c-success-50) !important; color: var(--c-success) !important; }
.el-tag--warning { background: var(--c-warning-50) !important; color: var(--c-warning) !important; }
.el-tag--danger { background: var(--c-danger-50) !important; color: var(--c-danger) !important; }
.el-tag--primary { background: var(--c-primary-50) !important; color: var(--c-primary) !important; }

/* ---------------------------------------------------------------- 标签页 */
.el-tabs__header { margin-bottom: 16px !important; }
.el-tabs__item { font-size: 13.5px !important; color: var(--c-text-2) !important; font-weight: 500; }
.el-tabs__item.is-active { color: var(--c-primary) !important; font-weight: 600; }
.el-tabs__active-bar { height: 2.5px !important; border-radius: 2px; }
.el-tabs__nav-wrap::after { height: 1px !important; background: var(--c-border-soft) !important; }

/* ---------------------------------------------------------------- 分页 / 对话框 / 抽屉 */
.el-pagination { --el-pagination-font-size: 13px; font-weight: 500; }
.el-pagination.is-background .el-pager li { border-radius: 7px !important; }
.el-dialog { border-radius: var(--r-lg) !important; box-shadow: var(--sh-3) !important; }
.el-dialog__header { padding: 18px 22px 12px !important; margin-right: 0 !important;
  border-bottom: 1px solid var(--c-border-soft); }
.el-dialog__title { font-size: 15.5px !important; font-weight: 650 !important; }
.el-dialog__body { padding: 18px 22px !important; }
.el-dialog__footer { padding: 12px 22px 18px !important; border-top: 1px solid var(--c-border-soft); }
.el-drawer__header { padding: 18px 22px !important; margin-bottom: 0 !important;
  border-bottom: 1px solid var(--c-border-soft); font-weight: 650; color: var(--c-text) !important; }
.el-drawer__body { padding: 18px 22px !important; }

.el-alert { border-radius: var(--r-md) !important; border: none !important; }
.el-descriptions__label { color: var(--c-text-3) !important; font-weight: 500 !important; }
.el-descriptions__content { color: var(--c-text) !important; }
.el-empty__description p { color: var(--c-text-3); font-size: 13px; }

/* ---------------------------------------------------------------- 登录页 */
.login-wrap {
  min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1000px 600px at 12% 8%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(800px 500px at 88% 92%, rgba(99,102,241,.20), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #16233d 55%, #1e2b4a 100%);
}
.login-box {
  width: 100%; max-width: 880px; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--c-surface); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(2, 6, 23, .7);
}
.login-hero {
  background: linear-gradient(160deg, #12203a 0%, #1d3a63 55%, #2b4a7d 100%);
  padding: 38px 34px; color: #fff; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.login-hero::after {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  right: -120px; bottom: -120px; background: rgba(59,130,246,.28); filter: blur(6px);
}
.login-hero .lg { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.login-hero .lg .mark {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 8px 22px -8px rgba(59,130,246,.85);
}
.login-hero .lg .mark svg { width: 20px; height: 20px; }
.login-hero .lg b { font-size: 15px; letter-spacing: .4px; }
.login-hero h2 { font-size: 23px; font-weight: 680; line-height: 1.42; letter-spacing: -.3px; }
.login-hero h2 em { font-style: normal; color: #7db3ff; }
.login-hero ul { list-style: none; padding: 0; margin: 22px 0 0; position: relative; z-index: 1; }
.login-hero li { font-size: 13px; color: #b6c8e4; margin-bottom: 11px; display: flex; gap: 9px; align-items: flex-start; }
.login-hero li svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; stroke: #4d9bff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.login-hero .foot { font-size: 11.5px; color: #7f93b3; position: relative; z-index: 1; }

.login-form { padding: 42px 38px; display: flex; flex-direction: column; justify-content: center; }
.login-form h3 { font-size: 19px; font-weight: 680; letter-spacing: -.2px; }
.login-form .sub { font-size: 12.5px; color: var(--c-text-3); margin: 5px 0 24px; }
.login-form .el-form-item { margin-bottom: 18px; }
.login-form .el-form-item__label { font-size: 12.5px !important; }
.login-form .el-input__wrapper { height: 42px; }
.login-btn { height: 44px; font-size: 15px !important; font-weight: 600 !important;
  border-radius: 10px !important; margin-top: 4px; }
.login-hint {
  margin-top: 18px; padding: 11px 13px; border-radius: 9px;
  background: var(--c-info-50); color: var(--c-text-2); font-size: 11.5px; line-height: 1.7;
}
.login-hint b { color: var(--c-text); font-weight: 600; }

@media (max-width: 860px) {
  .login-box { grid-template-columns: 1fr; max-width: 420px; }
  .login-hero { padding: 26px 24px; }
  .login-hero ul, .login-hero .foot { display: none; }
  .login-hero h2 { font-size: 19px; }
  .login-form { padding: 26px 24px 32px; }
}

/* ---------------------------------------------------------------- 工具类 */
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px; color: var(--c-text-2); }
.tips { font-size: 12.5px; color: var(--c-text-3); line-height: 1.75; }
.tag-group .el-checkbox { margin-right: 14px; }
.muted { color: var(--c-text-3); }
.strong { font-weight: 600; }

/* 空状态 */
.empty-tip { text-align: center; padding: 46px 0; color: var(--c-text-3); font-size: 13px; }
.empty-tip svg { width: 46px; height: 46px; margin-bottom: 12px; stroke: #cbd5e1;
  fill: none; stroke-width: 1.4; }

/* 卡片内行 */
.kv-row { display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--c-border-soft); font-size: 13px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--c-text-3); }

/* ---------------------------------------------------------------- 现场作业（相机） */
.fw-shutter-big {
  border: none; cursor: pointer; color: #fff; font-size: 18px; font-weight: 700;
  padding: 22px 46px; border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px -14px rgba(37, 99, 235, .8);
  transition: transform .12s, box-shadow .12s;
}
.fw-shutter-big:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -14px rgba(37,99,235,.9); }
.fw-shutter-big:active { transform: scale(.98); }

.fw-shutter {
  width: 74px; height: 74px; border-radius: 50%; cursor: pointer;
  border: 4px solid #fff; background: rgba(15, 23, 42, .25);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .5), 0 10px 26px -10px rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.fw-shutter span {
  display: block; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; transition: transform .1s;
}
.fw-shutter:active span { transform: scale(.9); }
.fw-shutter:disabled { opacity: .6; cursor: not-allowed; }

.fw-wm-preview {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 8px;
  color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.62));
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.fw-wm-preview > div:first-child { font-weight: 700; }

.fw-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.fw-photo {
  position: relative; width: 132px; height: 100px; border-radius: 10px;
  overflow: hidden; cursor: pointer; border: 1px solid var(--c-border);
  background: #0f172a;
}
.fw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fw-photo-del {
  position: absolute; top: 2px; right: 6px; color: #fff; font-size: 18px;
  font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.fw-photo-state {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 11px; color: #fff; padding: 2px 0; background: rgba(100,116,139,.85);
}
.fw-photo-state.ok { background: rgba(22,163,74,.85); }
.fw-photo-state.err { background: rgba(220,38,38,.85); }

.fw-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.fw-type {
  border: 1.5px solid var(--c-border); border-radius: 12px; padding: 14px 8px;
  text-align: center; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s, transform .12s;
  user-select: none;
}
.fw-type:hover { border-color: var(--c-primary); transform: translateY(-1px); }
.fw-type .ico { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.fw-type .nm { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.fw-type.on { border-color: var(--c-primary); background: var(--c-primary-50); }
.fw-type.on .nm { color: var(--c-primary); }
.fw-type.dis { opacity: .38; cursor: not-allowed; }
/* =====================================================================
 * 手机适配（<=900px / <=560px）
 * 目标：网页后台在手机上也能用 —— 侧边栏抽屉、表格横滑、弹窗满宽、表单堆叠
 * ===================================================================== */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 8px; border: none; border-radius: 9px;
  background: #f1f5f9; color: #0f172a; font-size: 19px; line-height: 1; cursor: pointer;
  flex: 0 0 38px;
}
.nav-toggle:active { background: #e2e8f0; }
.nav-mask { display: none; }

@media (max-width: 900px) {
  /* 侧边栏改为抽屉 */
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
    width: 250px; flex: 0 0 250px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(2, 6, 23, .45);
  }
  .sidebar.open { transform: translateX(0); }
  .nav-mask {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(15, 23, 42, .48);
    -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  }
  .nav-toggle { display: inline-flex; }
  .main { width: 100%; }

  /* 顶栏压缩 */
  .topbar { height: 56px; flex-basis: 56px; padding: 0 10px; }
  .tb-left h1 { font-size: 15px; }
  .tb-left p { display: none; }
  .tb-right { gap: 8px; }
  .user-chip { padding: 2px 4px; }
  .avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .user-chip small { display: none; }
  .user-chip b { font-size: 12.5px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logout-btn { padding: 4px 6px !important; }

  /* 内容区 */
  .content { padding: 12px 10px 28px; }
  .el-card__body { padding: 12px !important; }
  .el-card__header { padding: 12px 14px !important; }

  /* 统计卡两列 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 12px 14px; }
  .stat-card .num { font-size: 22px; }
  .stat-card .ico { width: 28px; height: 28px; margin-bottom: 8px; }

  /* 弹窗 / 抽屉满宽 */
  .el-dialog { width: 94% !important; margin-top: 5vh !important; }
  .el-dialog__body { padding: 14px 16px !important; }
  .el-message-box { width: 90% !important; }
  .el-drawer { width: 100% !important; }

  /* 表格：字号缩小 + 允许横滑 */
  .el-table { font-size: 12px; }
  .el-table th.el-table__cell { font-size: 11.5px !important; padding: 7px 0 !important; }
  .el-table td.el-table__cell { padding: 7px 0 !important; }
  .el-table__body-wrapper { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

  /* 表单：inline 换行、label 收窄 */
  .el-form--inline .el-form-item { margin-right: 6px; margin-bottom: 8px; }
  .el-form--inline .el-form-item__content > .el-input,
  .el-form--inline .el-form-item__content > .el-select { max-width: 100%; }
  .el-form-item__label { font-size: 12.5px !important; }
  .el-radio-button__inner { padding: 7px 10px !important; font-size: 12px !important; }

  /* 行列全部堆叠（工作台、领料页用 el-row/el-col） */
  .el-row > .el-col { max-width: 100%; flex: 0 0 100%; }

  /* 工作台两栏堆叠 */
  .dash-grid { display: block !important; }
  .dash-grid > .el-card { margin-bottom: 12px; }

  /* 分页居中、可换行 */
  .el-pagination { justify-content: center; flex-wrap: wrap; row-gap: 6px; }
  .el-pagination .el-pagination__sizes,
  .el-pagination .el-pagination__jump { display: none; }

  /* 标签页可横滑 */
  .el-tabs__nav-wrap { overflow-x: auto; }
  .el-tabs__nav-wrap::after { display: none; }

  /* 按钮组换行 */
  .el-button + .el-button { margin-left: 6px; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card .lbl { font-size: 11.5px; }
  .card, .el-card { border-radius: 12px !important; }
  .section-title { font-size: 13.5px; }
  .tips { font-size: 12px; }
  .login-form { padding: 22px 18px 26px; }
  .login-hero { padding: 22px 18px; }
  .login-hero h2 { font-size: 18px; }
  .el-dialog__footer .el-button { flex: 1; }
  .el-dialog__footer { display: flex; gap: 8px; }
}
/* ---------------------------------------------------------------- 工单通知 */
.notice-item {
  padding: 12px 14px; border-radius: 10px; background: #fff; margin-bottom: 8px;
  border: 1px solid #eef2f7; cursor: pointer; transition: border-color .15s;
}
.notice-item:hover { border-color: #2563eb; }
.notice-item.unread { border-left: 3px solid #2563eb; background: #f8fbff; }
.notice-item .nt-title { font-size: 13.5px; font-weight: 650; color: #0f172a; line-height: 1.4; }
.notice-item .nt-body { font-size: 12.5px; color: #64748b; margin-top: 4px; line-height: 1.55; }
.notice-item .nt-time { font-size: 11.5px; color: #cbd5e1; margin-top: 6px; }
/* =====================================================================
 * 工单管理界面（网页端）
 * 目标：复制按钮做成浅底胶囊；名称/POI/地址 三级层次；状态带色点
 * ===================================================================== */
.wo-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wo-cell-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wo-cell-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wo-shop {
  font-size: 13.5px; font-weight: 650; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wo-poi {
  font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #8a94a6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wo-addr {
  font-size: 12.5px; color: #5b6478; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 复制胶囊：浅蓝底 + 圆角，鼠标悬停加深 */
.copy-chip {
  flex: 0 0 auto; padding: 0 7px; height: 19px; line-height: 19px;
  border-radius: 6px; background: #eef4ff; color: #2f6fed;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  cursor: pointer; user-select: none; white-space: nowrap;
  border: 1px solid #dfe9ff; transition: background .14s, color .14s, transform .1s;
}
.copy-chip:hover { background: #2f6fed; color: #fff; border-color: #2f6fed; }
.copy-chip:active { transform: scale(.94); }

/* 状态：色点 + 文字，比 tag 更清爽 */
.wo-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.wo-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.wo-status.st-1 { color: #d97706; } .wo-status.st-1 .dot { background: #f59e0b; }
.wo-status.st-2 { color: #2563eb; } .wo-status.st-2 .dot { background: #3b82f6; }
.wo-status.st-3 { color: #7c3aed; } .wo-status.st-3 .dot { background: #8b5cf6; }
.wo-status.st-4 { color: #16a34a; } .wo-status.st-4 .dot { background: #22c55e; }
.wo-status.st-5 { color: #94a3b8; } .wo-status.st-5 .dot { background: #cbd5e1; }

/* 表格整体：行高、悬停、表头 */
.wo-table .el-table__row { height: 62px; }
.wo-table .el-table__row:hover > td { background: #f8fbff !important; }
.wo-table th.el-table__cell { background: #f7f9fc !important; color: #4b5563 !important; font-weight: 600; }
.wo-table td.el-table__cell { vertical-align: middle; }

/* 工单管理：工具栏与面板 */
.wo-panel { border-radius: 14px; }
.wo-toolbar-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wo-toolbar-head .wo-title { font-size: 15px; font-weight: 700; color: var(--c-text); }
.wo-toolbar-head .wo-subtitle { font-size: 12px; color: #94a3b8; }

/* 状态筛选：做成胶囊 */
.wo-filter .el-radio-button__inner {
  border: 1px solid #e6ebf4 !important; border-radius: 8px !important;
  box-shadow: none !important; margin-right: 6px; padding: 7px 13px;
  font-size: 12.5px; font-weight: 600; color: #5b6478; background: #fff;
}
.wo-filter .el-radio-button.is-active .el-radio-button__inner {
  background: #2f6fed !important; border-color: #2f6fed !important; color: #fff !important;
  box-shadow: 0 6px 14px -8px rgba(47,111,237,.9) !important;
}
.wo-filter .el-radio-button { margin-bottom: 4px; }
/* 商户电话：可点击拨号 */
.wo-phone {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 600;
  color: #2f6fed; text-decoration: none; white-space: nowrap;
}
.wo-phone:hover { text-decoration: underline; }
.wo-phone.muted { color: #c0c8d6; font-weight: 400; }


/* ===== 商户表单：输入字号与下拉可读性优化 ===== */
.poi-address .el-input__inner,
.poi-input .el-input__inner,
.poi-input .el-textarea__inner {
  font-size: 14px !important;
  line-height: 1.6 !important;
}
.poi-address .el-input__inner {
  font-size: 13px !important;   /* 地址较长，字号略小更整齐 */
  letter-spacing: .2px;
}
.poi-select .el-input__inner {
  font-size: 14px !important;
}
.poi-select .el-select__wrapper {
  min-height: 34px;
}
/* 下拉面板：字体、行高、选中态更清晰 */
.el-select-dropdown__item {
  font-size: 14px !important;
  line-height: 32px !important;
  height: 32px !important;
  color: #1f2937;
}
.el-select-dropdown__item.is-selected {
  font-weight: 600;
  color: #2563eb;
}
.el-select-dropdown__list {
  padding: 4px 0;
}

/* ================= 工单管理：快捷筛选条 ================= */
.wo-quickbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;
  padding:7px 12px;background:#f8fafc;border:1px solid #eef2f7;border-radius:10px}
.wo-quick-label{font-size:12px;color:#64748b}
.wo-quick-tip{font-size:12px;color:#94a3b8;margin-left:auto}
/* 筛选条内控件统一小字号 */
.wo-quickbar .el-radio-button__inner{font-size:12px;padding:5px 10px}
.wo-quickbar .el-select__wrapper{font-size:12px;min-height:28px}
.wo-quickbar .el-select__placeholder,.wo-quickbar .el-select__selected-item{font-size:12px}
.wo-dist-pop .el-select-dropdown__item{font-size:12px;height:30px;line-height:30px}

/* ================= 工单详情：流程时间线 ================= */
.wo-timeline{margin-bottom:14px}
.wo-timeline .section-title{font-size:13px;font-weight:700;color:#1f2329;margin-bottom:8px}
.wo-tl-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.wo-tl-op{font-size:12px;color:#64748b}
.wo-tl-gap{font-size:11.5px;color:#94a3b8}
.wo-tl-opinion{font-size:12px;color:#64748b;margin-top:2px}

/* 表格内文字链接（详情/导出） */
.link-export{color:#2563eb;cursor:pointer;font-size:13px;text-decoration:none;white-space:nowrap}
.link-export:hover{text-decoration:underline}
