/* ==========================================================================
   518云寄售 — 商户中心样式
   复用 shared/tokens.css 的设计令牌，与后台保持一致的观感。
   ========================================================================== */

/* ---------------------------------------------------------------- *
   登录 / 注册页（左右分栏，左侧品牌面板）
   ---------------------------------------------------------------- */
.m-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg);
}

.m-auth__brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 48px;
  background-image: var(--brand-grad);
  color: var(--on-brand);
}
.m-auth__brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 82% 6%, rgba(255, 255, 255, .30), transparent 62%),
    radial-gradient(520px 380px at 6% 96%, rgba(255, 255, 255, .16), transparent 60%);
  pointer-events: none;
}
.m-auth__inner { position: relative; z-index: 1; max-width: 460px; }
.m-auth__logo {
  width: 60px; height: 60px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 22px; font-weight: 800;
  margin-bottom: 24px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.m-auth__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-auth__title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.m-auth__lead { margin: 12px 0 0; font-size: 15px; line-height: 1.75; opacity: .92; }
.m-auth__points { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.m-auth__point { display: flex; gap: 12px; align-items: flex-start; }
.m-auth__point-ico {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
}
.m-auth__point b { display: block; font-size: 14px; }
.m-auth__point span { font-size: 13px; opacity: .86; line-height: 1.6; }

.m-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.m-auth__card { width: 100%; max-width: 420px; }
.m-auth__card h2 { margin: 0; font-size: 26px; font-weight: 700; color: var(--text-1); }
.m-auth__card .sub { margin: 8px 0 26px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------------------------------------------------------------- *
   表单
   ---------------------------------------------------------------- */
.m-field { margin-bottom: 16px; }
.m-field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.m-field__help { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.m-field__err { margin: 6px 0 0; font-size: 12.5px; color: var(--danger); }
.m-field__err:empty { display: none; }
/* 错误态：原来这里写的是 .input（后台的类名），而商户端用的是 .m-input，
   所以「字段标红」从来没有生效过，只有下面那行红色小字能看到。 */
.m-field.is-invalid .m-input,
.m-field.is-invalid .m-select,
.m-field.is-invalid .m-textarea { border-color: var(--danger); background: var(--danger-bg); }
.m-field.is-invalid > label { color: var(--danger); }

/* 必填星号 */
.m-req { color: var(--danger); margin-left: 2px; font-weight: 700; }

/* 商品封面上传 */
.m-coverup { display: flex; gap: 14px; align-items: flex-start; }.m-coverup__box {
  width: 84px; height: 84px; flex: 0 0 auto;
  border-radius: var(--r-md);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  overflow: hidden;
  display: grid; place-items: center;
}
.m-coverup__box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-coverup__ph { color: var(--text-4); display: grid; place-items: center; }
.m-coverup__ops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.m-coverup__ops p { flex: 1 1 100%; }

/* 商品列表里的封面缩略图 */
.m-gcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-gcell__txt { min-width: 0; }
.m-gthumb {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 9px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.m-gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-gthumb--ph { color: var(--text-4); }

.m-input,
.m-select,
.m-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.m-textarea { padding: 11px 13px; min-height: 96px; resize: vertical; line-height: 1.7; }
.m-input:focus, .m-select:focus, .m-textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.m-input::placeholder, .m-textarea::placeholder { color: var(--text-4); }

/* 带图标的输入框 */
.m-igroup { position: relative; display: flex; align-items: center; }
.m-igroup .m-input { padding-left: 40px; }
.m-igroup__ico {
  position: absolute; left: 13px;
  display: grid; place-items: center;
  color: var(--text-3);
  pointer-events: none;
}
.m-igroup--btn .m-input { padding-right: 118px; }
.m-igroup__btn {
  position: absolute; right: 6px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--brand-300);
  border-radius: var(--r-sm);
  background: var(--brand-50);
  color: var(--brand-600);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.m-igroup__btn:disabled { opacity: .55; cursor: not-allowed; }

/* 密码框的眼睛 */
.m-pwwrap { position: relative; }
.m-pwwrap .m-input { padding-right: 46px; }
.m-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text-3);
  cursor: pointer;
}
.m-eye:hover { color: var(--text-1); background: var(--surface-2); }

/* 人机验证 */
.m-captcha { display: flex; gap: 10px; align-items: stretch; }
.m-captcha .m-input { flex: 1 1 auto; min-width: 0; letter-spacing: 2px; }
.m-captcha__img {
  width: 168px; height: 56px; flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f4f5f9;
  display: grid; place-items: center;
  cursor: pointer;
  padding: 0;
}
.m-captcha__img svg { display: block; width: 100%; height: 100%; }
.m-captcha__img:hover { border-color: var(--brand-400); }

/* 按钮 */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-1);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .1s ease;
}
.m-btn:active { transform: translateY(1px); }
.m-btn--primary { background-image: var(--brand-grad); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.m-btn--block { width: 100%; }
.m-btn--lg { min-height: 50px; font-size: 15px; }
.m-btn--ghost { border-color: var(--border-strong); }
.m-btn--ghost:hover { background: var(--surface-2); }
.m-btn--danger { border-color: var(--danger); color: var(--danger); }
.m-btn--danger:hover { background: var(--danger-bg); }
.m-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.m-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.m-auth__foot { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--text-2); }
.m-auth__foot a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
.m-auth__foot a:hover { text-decoration: underline; }

.m-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.m-check input { width: 17px; height: 17px; accent-color: var(--brand-500); }

/* 提示条 */
.m-alert {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.m-alert--err { background: var(--danger-bg); border-color: var(--danger); color: var(--text-1); }
.m-alert--ok { background: var(--success-bg); border-color: var(--success); color: var(--text-1); }
.m-alert--warn { background: var(--warning-bg); border-color: var(--warning); color: var(--text-1); }
.m-alert--info { background: var(--info-bg); border-color: var(--info); color: var(--text-1); }
.m-alert[hidden] { display: none; }

/* ---------------------------------------------------------------- *
   商户控制台
   ---------------------------------------------------------------- */
.m-shell { min-height: 100vh; background: var(--bg); }

.m-top {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.m-top__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex; align-items: center; gap: 14px;
}
.m-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.m-brand__logo {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 10px;
  display: grid; place-items: center;
  background-image: var(--brand-grad);
  color: var(--on-brand);
  font-size: 14px; font-weight: 800;
  overflow: hidden;
}
.m-brand__logo img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.m-brand__text { min-width: 0; }
.m-brand__text b { display: block; font-size: 14.5px; font-weight: 700; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-brand__text i { display: block; font-size: 11.5px; font-style: normal; color: var(--text-3); }

.m-nav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.m-nav::-webkit-scrollbar { display: none; }
.m-nav a {
  padding: 8px 13px;
  border-radius: var(--r-md);
  font-size: 14px; color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.m-nav a:hover { background: var(--surface-2); color: var(--text-1); }
.m-nav a.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }

.m-user { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.m-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background-image: var(--brand-grad);
  color: var(--on-brand);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  flex: 0 0 auto;
}
.m-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-main { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.m-head { margin-bottom: 18px; }
.m-head h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text-1); letter-spacing: -.01em; }
.m-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.m-card + .m-card { margin-top: 16px; }
.m-card__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 15px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.m-card__body { padding: 18px; }

.m-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.m-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.m-stat span { display: block; font-size: 12.5px; color: var(--text-3); }
.m-stat b { display: block; margin-top: 6px; font-size: 24px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }

.m-copy {
  display: flex; gap: 8px; align-items: center;
  padding: 11px 13px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}
.m-copy code { flex: 1 1 auto; min-width: 0; color: var(--brand-600); }

/* 头像上传 */
.m-avatar-up { display: flex; gap: 16px; align-items: flex-start; }
.m-avatar-up__box {
  width: 88px; height: 88px; flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-3);
}
.m-avatar-up__box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-avatar-up__side { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* 表格 */
.m-tablewrap { overflow-x: auto; }
.m-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.m-table th {
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-2);
  text-align: left; white-space: nowrap;
}
.m-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-1); vertical-align: middle; }
.m-table tbody tr:last-child td { border-bottom: 0; }
.m-table tbody tr:hover td { background: var(--brand-50); }
.m-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.m-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.m-badge--ok { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.m-badge--warn { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.m-badge--danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.m-badge--info { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.m-badge--muted { background: var(--surface-2); color: var(--text-3); border-color: var(--border-strong); }

.m-empty { padding: 52px 20px; text-align: center; color: var(--text-3); }
.m-empty b { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 6px; }

.m-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.m-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.m-muted { color: var(--text-3); font-size: 12.5px; }
.m-mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------------------------------------------------------------- *
   响应式
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .m-auth { grid-template-columns: minmax(0, 1fr); }
  .m-auth__brand { display: none; }
  .m-auth__panel { padding: 28px 18px; align-items: flex-start; }
  .m-grid2 { grid-template-columns: minmax(0, 1fr); }
  .m-top__inner { padding: 0 14px; gap: 10px; }
  .m-brand__text { display: none; }
  .m-main { padding: 16px 14px 48px; }
  .m-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  /* 封面上传在窄屏竖排，否则按钮会被挤成两行 */
  .m-coverup { flex-direction: column; }
  .m-coverup__ops { width: 100%; }
  .m-captcha { flex-direction: column; }
  .m-captcha__img { width: 100%; }
  .m-avatar-up { flex-direction: column; align-items: center; }
  .m-stats { grid-template-columns: minmax(0, 1fr); }
  .m-head h1 { font-size: 19px; }
}

/* 移动端把表格转成卡片（与后台一致的思路） */
@media (max-width: 720px) {
  .m-table thead { display: none; }
  .m-table, .m-table tbody, .m-table td { display: block; width: 100%; }
  .m-table tbody tr {
    width: auto;
    margin: 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    overflow: hidden;
  }
  .m-table tbody td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 13px;
    min-height: 44px;
    border-bottom: 1px dashed var(--border);
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .m-table tbody td:last-child { border-bottom: 0; }
  .m-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto; max-width: 45%;
    font-size: 12px; font-weight: 600; color: var(--text-3);
    text-align: left;
  }
  .m-table tbody td:not([data-label])::before { display: none; }
  .m-tablewrap { overflow-x: visible; }
}

/* 焦点可见 */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------- *
   触控可用性：手机上所有可点元素热区 ≥ 40px
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  /* 「记住账号」这类勾选框：视觉不变，把整行热区撑起来 */
  .m-check {
    min-height: 44px;
    padding: 6px 0;
  }
  .m-check input {
    width: 20px;
    height: 20px;
  }
  /* 「获取验证码」按钮：原来只有 34px 高 */
  .m-igroup__btn {
    height: 40px;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .m-igroup--btn .m-input {
    padding-right: 128px;
  }
  /* 输入框与按钮统一高度 */
  .m-input, .m-select {
    min-height: 48px;
  }
  .m-btn { min-height: 46px; }
  .m-btn--sm { min-height: 38px; }
  .m-eye { width: 44px; height: 44px; }
  .m-nav a { min-height: 42px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   资金 / 待发货 / 售后（新增栏目）
   ========================================================================== */

/* 菜单上的待办小红点 */
.m-nav__badge {
  display: inline-block;
  min-width: 17px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  vertical-align: 1px;
}

/* 资金概览卡片 */
.m-funds {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.m-fcard {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.m-fcard--main {
  border-color: var(--brand-300);
  background-image: linear-gradient(180deg, var(--brand-50), transparent 62%);
}
.m-fcard__ico {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 12px;
}
.m-fcard--main .m-fcard__ico { background-image: var(--brand-grad); color: var(--on-brand); }
.m-fcard__label { font-size: 12.5px; color: var(--text-3); }
.m-fcard__value {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 800;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.m-fcard--main .m-fcard__value { color: var(--brand-600); }
.m-fcard__hint { margin-top: 6px; font-size: 12px; color: var(--text-4); }

/* 键值对（弹窗里用） */
.m-kv { display: grid; gap: 10px; font-size: 13.5px; }
.m-kv > div { display: flex; gap: 12px; justify-content: space-between; }
.m-kv span { color: var(--text-3); flex: 0 0 auto; }
.m-kv b { color: var(--text-1); font-weight: 600; text-align: right; word-break: break-all; }

/* 引用块（客户问题 / 我的回复） */
.m-quote {
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 页内标签页 */
.m-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
}
.m-tab {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.m-tab:hover { background: var(--surface-2); }
.m-tab.is-active {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-600);
}
.m-tab__n {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--border-strong);
  color: var(--text-2);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.m-tab.is-active .m-tab__n { background: var(--brand-500); color: #fff; }

/* 小号输入控件（放在卡片头部） */
.m-input--sm, .m-select--sm {
  height: 34px; font-size: 13px; padding-top: 0; padding-bottom: 0;
  /* .m-select 默认 width:100%，放在卡片头部会把刷新按钮挤到下一行 */
  width: auto;
}
.m-select--sm { min-width: 118px; }
.m-input--sm { width: 220px; }
/* 卡片头部右侧的操作区不换行、不被拉伸 */
.m-card__head .m-row { flex-wrap: nowrap; flex: 0 0 auto; }

/* 金额收支色 */
.m-amount--in { color: var(--success); font-weight: 600; }
.m-amount--out { color: var(--text-2); font-weight: 600; }

/* 表格里的辅助样式（与后台保持一致的命名） */
.cell-muted { color: var(--text-3); font-size: 12.5px; }
.cell-price { color: var(--danger); font-weight: 600; white-space: nowrap; }
.nowrap { white-space: nowrap; }

@media (max-width: 720px) {
  .m-fcard__value { font-size: 22px; }
  .m-tabs { padding: 10px 12px 0; }
}

/* 概览页的资金摘要与待办 */
.m-card--funds { margin-top: 16px; }
.m-funds--mini { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.m-funds--mini .m-fcard { padding: 14px; border: 1px solid var(--border); }
.m-funds--mini .m-fcard__value { font-size: 21px; }
.m-funds--mini .m-fcard__ico { display: none; }

.m-todos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.m-todo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color .16s, background .16s;
}
.m-todo:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-600); }
.m-todo b {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--border-strong);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
/* 有待办时用警示色，一眼能看到 */
.m-todo.is-warn { border-color: var(--warning-border, var(--danger)); }
.m-todo.is-warn b { background: var(--danger); color: #fff; }

@media (max-width: 560px) {
  .m-todos { flex-direction: column; }
  .m-todo { justify-content: space-between; }
}

/* ==========================================================================
   统一加载态：骨架屏
   ========================================================================== */
.m-skel-wrap { padding: 6px 0; }
.m-skel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.m-skel-row:last-child { border-bottom: 0; }
.m-skel {
  display: block;
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: m-skel-shine 1.4s ease-in-out infinite;
}
.m-skel-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.m-skel-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
@keyframes m-skel-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
/* 用户开了「减少动态效果」就别再闪 */
@media (prefers-reduced-motion: reduce) {
  .m-skel { animation: none; background: var(--surface-2); }
}

/* ==========================================================================
   统一错误态：带重试按钮
   ========================================================================== */
.m-alert--retry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.m-alert--retry > div { flex: 1 1 auto; min-width: 0; }
.m-alert--retry .m-btn { flex: 0 0 auto; }

/* ==========================================================================
   左侧分组侧边栏
   --------------------------------------------------------------------------
   原来是顶部横向导航，栏目一多就横向滚动、放不下二级菜单。
   改成左侧固定侧边栏：分组可折叠，移动端变成抽屉。
   ========================================================================== */
.m-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--bg);
}

/* ---------- 侧边栏 ---------- */
.m-side {
  flex: 0 0 232px;
  width: 232px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.m-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.m-side__nav { flex: 1 1 auto; padding: 10px 10px 16px; }

.m-side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 2px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.m-side__link:hover { background: var(--surface-2); color: var(--text-1); }
.m-side__link.is-active {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
}
.m-side__link > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 二级项：左侧留出层级缩进线 */
.m-side__link--sub { padding-left: 36px; font-size: 13px; }
.m-side__nav .m-grp.is-open .m-side__link--sub { position: relative; }

.m-grp { margin-bottom: 2px; }
.m-grp__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.m-grp__head:hover { background: var(--surface-2); color: var(--text-1); }
.m-grp__head > span { flex: 1 1 auto; text-align: left; }
.m-grp__caret { display: inline-flex; color: var(--text-4); transition: transform .18s ease; }
.m-grp.is-open .m-grp__caret { transform: rotate(180deg); }
/* 折叠：用 grid-template-rows 做高度动画，比 max-height 猜数值可靠 */
.m-grp__items {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s ease;
}
.m-grp.is-open .m-grp__items { grid-template-rows: 1fr; }
.m-grp__items > * { overflow: hidden; }
.m-grp__items { padding-left: 0; }

.m-side__foot {
  flex: 0 0 auto;
  padding: 10px;
  border-top: 1px solid var(--border);
}

/* ---------- 右侧主体 ---------- */
.m-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.m-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.m-top__title { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-side-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 18, 27, .42);
  backdrop-filter: blur(1.5px);
}

/* ---------- 移动端：侧边栏变抽屉 ---------- */
@media (max-width: 900px) {
  .m-shell { display: block; }
  .m-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: 78vw;
    max-width: 300px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 10px 40px rgba(16, 18, 27, .18);
  }
  .m-side.is-open { transform: translateX(0); }
  .m-burger { display: inline-flex; }
  .m-main { padding: 16px 14px 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-side, .m-grp__items, .m-grp__caret { transition: none; }
}

/* ==========================================================================
   首页数据概览 / 店铺设置 / 分类 / 个人中心
   ========================================================================== */

/* ---------- 待办卡片 ---------- */
.m-todo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}
.m-todo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .16s, transform .16s;
}
.m-todo-card:hover { border-color: var(--brand-300); transform: translateY(-1px); }
.m-todo-card__ico {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-3);
  flex: 0 0 auto;
}
.m-todo-card__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.m-todo-card__body b { font-size: 19px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }
.m-todo-card__body i { font-style: normal; font-size: 12.5px; color: var(--text-3); }
/* 有待办时用品牌色，0 时中性 —— 避免「永远高亮」导致真有事时看不见 */
.m-todo-card.is-on { border-color: var(--brand-300); background-image: linear-gradient(180deg, var(--brand-50), transparent 70%); }
.m-todo-card.is-on .m-todo-card__ico { background: var(--brand-500); color: #fff; }
.m-todo-card.is-on .m-todo-card__body b { color: var(--brand-600); }

/* ---------- 核心数据 ---------- */
.m-hero { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.m-hero__label { font-size: 13px; color: var(--text-3); }
.m-hero__value {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.m-hero__sub { margin-top: 8px; font-size: 13px; color: var(--text-3); }

.m-mini-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 18px;
}
.m-mini__label { font-size: 12.5px; color: var(--text-3); }
.m-mini__value { margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
.m-mini__sub { margin-top: 5px; font-size: 12px; color: var(--text-4); }

.m-delta { font-weight: 600; }
.m-delta--up { color: var(--success); }
.m-delta--down { color: var(--danger); }
.m-delta--flat { color: var(--text-4); font-weight: 500; }

/* ---------- 折线图 ---------- */
.m-chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.m-chart__line { fill: none; stroke: var(--brand-500); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-chart__area { stroke: none; }
.m-chart__dot { fill: var(--surface); stroke: var(--brand-500); stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-chart__tick { fill: var(--text-4); font-size: 11px; }
.m-chart__foot {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-4);
}

/* ---------- 快捷操作 ---------- */
.m-quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.m-quick__item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
}
.m-quick__item:hover { border-color: var(--brand-300); color: var(--brand-600); }
.m-quick__ico { display: inline-flex; color: var(--brand-500); }

/* ---------- 打烊开关 ---------- */
.m-card--switch.is-off { border-color: var(--danger); }
.m-switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.m-switch__text b { display: block; font-size: 15.5px; color: var(--text-1); }
.m-switch__text span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.m-switch__ctl { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.m-switch__ctl input { position: absolute; opacity: 0; width: 0; height: 0; }
.m-switch__track {
  position: relative;
  display: inline-block;
  width: 46px; height: 26px;
  border-radius: 13px;
  background: var(--border-strong);
  transition: background .18s ease;
  flex: 0 0 auto;
}
.m-switch__dot {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.m-switch__ctl input:checked + .m-switch__track { background: var(--brand-500); }
.m-switch__ctl input:checked + .m-switch__track .m-switch__dot { transform: translateX(20px); }
.m-switch__ctl input:focus-visible + .m-switch__track { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.m-switch__ctl em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-2); min-width: 42px; }

/* ---------- 列表行（分类 / 违规记录） ---------- */
.m-catlist { display: flex; flex-direction: column; }
.m-catrow {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.m-catrow:last-child { border-bottom: 0; }
.m-catrow__ico { display: inline-flex; color: var(--text-4); flex: 0 0 auto; }
.m-catrow__name { font-weight: 600; color: var(--text-1); min-width: 0; }
.m-catrow__n { font-size: 12.5px; color: var(--text-3); flex: 1 1 auto; }
.m-catrow .m-row { flex: 0 0 auto; }

/* ---------- 设置行（个人中心） ---------- */
.m-setrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.m-setrow:last-child { border-bottom: 0; }
.m-setrow b { display: block; font-size: 14px; color: var(--text-1); font-weight: 600; }
.m-setrow span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }

/* ---------- 汇总行（已卖出商品） ---------- */
.m-sumline {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-3);
}
.m-sumline b { color: var(--text-1); font-weight: 700; }

@media (max-width: 560px) {
  .m-hero__value { font-size: 32px; }
  .m-catrow { flex-wrap: wrap; }
  .m-catrow .m-row { width: 100%; }
}


/* ==========================================================================
   浅蓝玻璃拟态 · 覆盖层
   --------------------------------------------------------------------------
   设计基准：shiyu-nav/style.css
   本层只做「追加式覆盖」——不动上方任何原有规则，只在其后重设视觉。
   所有取值走 tokens.css 的玻璃令牌，颜色不写字面量（除必要的 rgba 兜底）。

   覆盖范围：
     1. 页面底纹与容器
     2. 卡片 / 面板 / 表格容器 → 磨砂玻璃
     3. 按钮 / 输入框 / 下拉 → 统一形状与配色
     4. 侧边栏 → 浅色玻璃
     5. 弹窗 / 抽屉 / 提示条 → 玻璃 + 柔和遮罩
     6. 圆角 / 阴影 / 间距成体系
     7. 触控目标兜底 ≥ 44px
     8. 移动端横向溢出与贴边修正
   ========================================================================== */

/* ---------- 0. 全局：玻璃不可用时的实底兜底（双保险）----------
   tokens.css 已用 @supports not 降级令牌；这里再兜一层，
   防止某些内核 @supports 解析异常导致卡片透明看不见。 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .sh-card,.sh-panel,.sh-result__card,.sh-ocard,.sh-cashier,.sh-ticket,.sh-goodshead,
  .m-card,.m-todo-card,.m-fcard,.m-auth__card,.m-table,.m-side,.m-topbar,
  .table-card,.channel-card,.radio-card,.page-wrap .card,
  .ld-card,.ld-hero__panel,.ld-mbox,
  .ui-modal{ background:var(--glass-fallback) !important; }
}

/* ---------- 1. 容器底纹 ---------- */
.sh-main,.sh-shell,.m-body,.m-main,.adm-main,.page-wrap{
  background:transparent;
}

/* ---------- 2. 卡片 / 面板 → 磨砂玻璃 ---------- */
.sh-card,.sh-panel,.sh-result__card,.sh-ocard,.sh-cashier,.sh-ticket,
.sh-goodshead,.sh-tabs,
.m-card,.m-todo-card,.m-fcard,.m-auth__card,
.table-card,.channel-card,.radio-card,.stat-card,.dash-card,
.ld-card,.ld-hero__panel,.ld-mbox,
.ui-modal{
  background:var(--glass-bg);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-brd);
  border-radius:var(--r-xl);
  box-shadow:var(--glass-shadow);
}

/* 卡片内标题栏：与玻璃底协调 */
.sh-panel__title,.m-card__head,.ui-modal-head{
  color:var(--text-1);
  font-weight:700;
}

/* ---------- 3. 表格容器 → 玻璃 ---------- */
.m-table,.adm-table,.table-wrap,.ui-table{
  border-radius:var(--r-lg);
  overflow:hidden;
}
.m-table thead th,.adm-table thead th{
  background:var(--glass-tint);
  color:var(--text-2);
  font-weight:700;
}
.m-table tbody tr:hover,.adm-table tbody tr:hover{
  background:var(--glass-tint);
}

/* ---------- 4. 按钮：只改形状与字重 ----------
   ⚠️ 这里刻意不设 padding / min-height / display / gap。
   实测教训：一旦覆盖这些尺寸属性，顶部操作区会被撑宽 ——
   1024 视口下文档宽从 1024 变 1092（横向溢出 68px），
   且主按钮被 flex 压成 49px 宽、文字挤扁。
   尺寸体系交给原样式表，本层只负责「看起来是同一套」：圆角、字重、配色。 */
.sh-btn,.m-btn,.adm-btn,.ui-btn,.pager-btn,.ld-login__btn{
  border-radius:var(--r-md);
  font-weight:700;
  white-space:nowrap;          /* 防止文字被压扁换行 */
  -webkit-transition:box-shadow .2s ease,background .2s ease,opacity .2s ease;
  transition:box-shadow .2s ease,background .2s ease,opacity .2s ease;
}
/* 主按钮：品牌渐变 */
.sh-btn--primary,.m-btn--primary,.adm-btn--primary,.ui-btn--primary,
.btn-primary,.sh-hero__btn--primary{
  background:var(--brand-grad);
  color:var(--on-brand);
  border-color:transparent;
  box-shadow:var(--shadow-brand);
}
.sh-btn--primary:hover,.m-btn--primary:hover,.adm-btn--primary:hover{
  box-shadow:0 14px 28px -12px rgba(91,143,249,.95);
}
/* 次按钮：白底细边 */
.sh-btn--ghost,.m-btn--ghost,.adm-btn--ghost,.ui-btn--ghost{
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text-2);
}
.sh-btn--ghost:hover,.m-btn--ghost:hover,.adm-btn--ghost:hover{
  background:var(--brand-50);
  border-color:var(--brand-300);
  color:var(--brand-600);
}

/* ---------- 5. 输入框 / 下拉 / 文本域 ---------- */
.sh-input,.m-input,.adm-input,.ld-field input,.ui-input,
.sh-field input,.sh-field textarea,.sh-field select,
.m-field input,.m-field textarea,.m-field select,
input[type="text"],input[type="password"],input[type="search"],
input[type="number"],input[type="email"],textarea,select{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  color:var(--text-1);
  -webkit-transition:border-color .18s ease,box-shadow .18s ease;
  transition:border-color .18s ease,box-shadow .18s ease;
}
input:focus,textarea:focus,select:focus,
.sh-input:focus,.m-input:focus,.adm-input:focus{
  border-color:var(--brand-400);
  box-shadow:var(--focus-ring);
  outline:none;
}
::placeholder{ color:var(--text-4); }

/* ---------- 6. 侧边栏 → 浅色玻璃 ---------- */
.m-side,.adm-side,.sidebar,.nav-side{
  background:var(--sidebar-bg);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
  border-right:1px solid var(--glass-brd-2);
  box-shadow:1px 0 0 rgba(255,255,255,.6) inset;
}
.m-side__link,.nav-item,.sidebar a{
  color:var(--sidebar-text);
  border-radius:var(--r-md);
}
.m-side__link:hover,.nav-item:hover{
  background:var(--sidebar-hover);
  color:var(--brand-600);
}
.m-side__link.is-active,.nav-item.is-active{
  background:var(--brand-grad);
  color:var(--on-brand);
  box-shadow:var(--shadow-brand);
}
.m-grp__head{ color:var(--sidebar-text); border-radius:var(--r-md); }
.m-grp__head:hover{ background:var(--sidebar-hover); color:var(--brand-600); }

/* 顶栏 */
.m-topbar,.adm-topbar,.topbar{
  background:var(--glass-bg-2);
  -webkit-backdrop-filter:var(--glass-blur-sm);
  backdrop-filter:var(--glass-blur-sm);
  border-bottom:1px solid var(--glass-brd-2);
}

/* ---------- 7. 弹窗 / 抽屉 / 提示 ---------- */
.ui-modal-overlay,.sh-modal,.sh-drawer__overlay,.m-sheet-mask{
  background:var(--overlay);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
}
.ui-modal,.sh-modal__box,.sh-drawer__panel,.m-sheet{
  background:var(--glass-bg-3);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-brd);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-pop);
}
.ui-toast-wrap>*,.sh-toast,.m-toast{
  background:var(--glass-bg-3);
  -webkit-backdrop-filter:var(--glass-blur-sm);
  backdrop-filter:var(--glass-blur-sm);
  border:1px solid var(--brand-200);
  box-shadow:var(--shadow-pop);
  border-radius:var(--r-pill);
}

/* ---------- 8. 徽标 / 角标 / 标签 ---------- */
.nav-badge,.m-side__link .nav-badge{
  background:var(--danger);
  color:#fff;
  border-radius:var(--r-pill);
}
.sh-tag,.m-tag,.ui-tag{
  border-radius:var(--r-pill);
}

/* ---------- 9. 隐藏属性兜底 ----------
   [hidden] 的浏览器默认样式优先级极低，任何写了 display 的类选择器都会盖掉它，
   元素就"藏不住"。本层给所有可能带 hidden 的容器补一条高优先级规则。 */
[hidden]{ display:none !important; }

/* ---------- 10. 触控目标：扩大热区但不改变尺寸 ----------
   ⚠️ 不要用 min-width/min-height 去撑 .sh-iconbtn —— 它原本是 36×36，
   强行撑到 44×44 会把顶部栏挤宽造成横向溢出。
   正确做法：用伪元素把**可点击区域**撑到 44×44，视觉尺寸与布局完全不变。
   （布局审计的阈值是「高<36 或 宽<32」，36×36 本身合规。） */
.sh-iconbtn,.topbar-icon-btn,.avatar-btn,.m-burger,.sh-drawer__close{
  position:relative;
}
.sh-iconbtn::after,.topbar-icon-btn::after,.avatar-btn::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:44px;
  height:44px;
  margin:-22px 0 0 -22px;
}

/* ---------- 11. 移动端修正 ---------- */
@media (max-width:900px){
  /* 表格在窄屏允许横向滚动，但容器本身不得溢出视口 */
  .m-table,.adm-table,.table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  /* 卡片收边距，避免贴屏幕边 */
  .sh-card,.sh-panel,.m-card,.table-card{
    margin-left:0;
    margin-right:0;
  }
}

/* ---------- 12. 尊重「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce){
  .sh-card,.sh-panel,.m-card,.table-card,
  .sh-btn,.m-btn,.adm-btn{
    -webkit-transition:none !important;
    transition:none !important;
  }
}
