/* ==========================================================================
   陪玩侠 · 后台设计系统 v1  (admin-ui.css)
   2026-10-16
   --------------------------------------------------------------------------
   · 纯 CSS 覆盖层：不改 DOM、不改 JS、不改任何交互逻辑
   · 仅在后台作用域内生效（.admin-layout / .admin-content 前缀）
   · 沿用深蓝侧栏 + 蓝色主色，只提升层次、留白、节奏与反馈
   · 整份删除即可完全回滚
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 令牌层（新增 --ad-* 命名空间，不覆盖任何既有全局变量）
   -------------------------------------------------------------------------- */
:root, html[data-theme=light] {
  --ad-radius-sm: 8px;
  --ad-radius: 12px;
  --ad-radius-lg: 16px;
  --ad-shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .04);
  --ad-shadow-2: 0 2px 8px rgba(16, 24, 40, .07), 0 10px 24px rgba(16, 24, 40, .06);
  --ad-border: #e6ebf3;
  --ad-surface-2: #f8fafd;
  --ad-hover: #f3f7ff;
  --ad-ring: 0 0 0 3px rgba(22, 119, 255, .13);
  --ad-danger: #e5484d;
  --ad-ease: cubic-bezier(.22, .61, .36, 1);
}
html[data-theme=dark] {
  --ad-shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --ad-shadow-2: 0 4px 14px rgba(0, 0, 0, .45);
  --ad-border: #24304d;
  --ad-surface-2: #18213a;
  --ad-hover: #1b2540;
  --ad-ring: 0 0 0 3px rgba(79, 140, 255, .2);
}

/* --------------------------------------------------------------------------
   2. 后台外壳：底色加深一档，让卡片浮起来
   -------------------------------------------------------------------------- */
.admin-layout {
  --bg: #eef2f9;
  background: var(--bg);
}
html[data-theme=dark] .admin-layout { --bg: #080d17; }

/* 滚动条 */
.admin-content::-webkit-scrollbar { width: 10px; height: 10px; }
.admin-content::-webkit-scrollbar-track { background: transparent; }
.admin-content::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .26);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}
.admin-content::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .44); background-clip: content-box; }

/* --------------------------------------------------------------------------
   3. 侧边栏：胶囊式菜单 + 品牌标记
   -------------------------------------------------------------------------- */
.admin-sider {
  width: 236px !important;
  background: linear-gradient(180deg, #0e1729 0%, #0a1120 100%) !important;
  border-right: none !important;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .06), 6px 0 24px rgba(8, 15, 30, .16);
  padding: 14px 0 !important;
}
html[data-theme=dark] .admin-sider { background: linear-gradient(180deg, #0a1220 0%, #060b14 100%) !important; }

.admin-sider .brand-title {
  padding: 4px 18px 18px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
  margin-bottom: 10px !important;
}
.admin-sider .brand-title .anticon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1677ff 0%, #4f8cff 100%);
  color: #fff !important;
  font-size: 17px !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, .38);
  flex: 0 0 auto;
}

.admin-sider .menu-item {
  margin: 3px 10px !important;
  padding: 10px 12px !important;
  border-left: none !important;
  border-radius: 9px !important;
  gap: 10px !important;
  font-size: 14px;
  position: relative;
  transition: background .18s var(--ad-ease), color .18s var(--ad-ease);
}
.admin-sider .menu-item .anticon {
  font-size: 16px !important;
  width: 18px;
  display: inline-flex; justify-content: center;
  opacity: .88;
  flex: 0 0 auto;
}
.admin-sider .menu-item:hover {
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
}
.admin-sider .menu-item:hover .anticon { opacity: 1; }
.admin-sider .menu-item.active {
  background: linear-gradient(90deg, rgba(22, 119, 255, .3), rgba(22, 119, 255, .1)) !important;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, .28);
  color: #fff !important;
  font-weight: 600;
}
.admin-sider .menu-item.active .anticon { opacity: 1; color: #6aa7ff; }
.admin-sider .menu-item.active::before {
  content: "";
  position: absolute; left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: #4f8cff;
  box-shadow: 0 0 10px rgba(79, 140, 255, .85);
}
/* 底部账号区 */
.admin-sider > div:last-child { padding: 0 14px !important; }
.admin-sider > div:last-child::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 2px 12px;
  background: rgba(255, 255, 255, .08);
}

/* --------------------------------------------------------------------------
   4. 顶栏
   -------------------------------------------------------------------------- */
.admin-topbar {
  min-height: 40px;
  margin: 0 0 18px !important;
  gap: 10px;
}
.admin-topbar .ant-btn-circle {
  width: 36px !important; height: 36px !important;
  border-radius: 10px !important;
  color: var(--text-secondary) !important;
}
.admin-topbar .ant-btn-circle:hover {
  background: var(--bg-surface) !important;
  color: var(--brand) !important;
  box-shadow: var(--ad-shadow-1);
}
.admin-topbar .ant-space {
  padding: 4px 12px 4px 4px !important;
  border-radius: 999px;
  transition: background .2s var(--ad-ease), box-shadow .2s var(--ad-ease);
}
.admin-topbar .ant-space:hover { background: var(--bg-surface); box-shadow: var(--ad-shadow-1); }
.admin-topbar .ant-space-item > span { font-size: 13.5px; font-weight: 500; color: var(--text-secondary); }
.admin-topbar .ant-avatar { box-shadow: 0 0 0 2px var(--bg-surface); }

/* --------------------------------------------------------------------------
   5. 内容区与页头（统一 10 个页面的标题规格）
   -------------------------------------------------------------------------- */
.admin-content { padding: 24px 28px 40px !important; }

.admin-content > div > h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 18px !important;
}
/* 卡片内标题（商产管理 / 提现审核 / 充值管理等） */
.admin-content .ant-card-body > h4.ant-typography,
.admin-content .ant-card-body > h3.ant-typography {
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -.005em;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  color: var(--text) !important;
}
.admin-content .ant-card-head-title { font-size: 15.5px !important; font-weight: 600 !important; }

/* --------------------------------------------------------------------------
   6. 卡片
   -------------------------------------------------------------------------- */
.admin-content .ant-card {
  border-radius: var(--ad-radius) !important;
  border: 1px solid var(--ad-border) !important;
  box-shadow: var(--ad-shadow-1) !important;
  transition: box-shadow .22s var(--ad-ease), transform .22s var(--ad-ease), border-color .22s var(--ad-ease);
}
.admin-content .ant-card-body { padding: 20px 22px !important; }
.admin-content .ant-card-head { border-bottom: 1px solid var(--ad-border) !important; }

/* --------------------------------------------------------------------------
   7. 数据概览 KPI（本次重点打磨）
   -------------------------------------------------------------------------- */
.admin-content .ant-row:has(.ant-statistic) { row-gap: 18px !important; }

.admin-content .ant-statistic { padding: 2px 0; }

.admin-content .ant-statistic-title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  margin-bottom: 12px !important;
  letter-spacing: .015em;
}
.admin-content .ant-statistic-content {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  display: flex !important;
  align-items: center;
  gap: 11px;
  color: var(--text) !important;
}
.admin-content .ant-statistic-content-value { color: inherit; }

/* 图标：圆角底 + 主色，配色按卡片序号循环 */
.admin-content .ant-statistic-content-prefix {
  width: 40px; height: 40px;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  border-radius: 11px;
  margin-inline-end: 0 !important;
  flex: 0 0 auto;
}
.admin-content .ant-statistic-content-prefix .anticon { font-size: 20px !important; }
.admin-content .ant-statistic-content-prefix:empty { display: none !important; }

.admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n+1) .ant-statistic-content-prefix { color: #1677ff !important; background: rgba(22, 119, 255, .12) !important; }
.admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n+2) .ant-statistic-content-prefix { color: #7c5cff !important; background: rgba(124, 92, 255, .13) !important; }
.admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n+3) .ant-statistic-content-prefix { color: #f59e0b !important; background: rgba(245, 158, 11, .15) !important; }
.admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n)   .ant-statistic-content-prefix { color: #12a150 !important; background: rgba(18, 161, 80, .13) !important; }

html[data-theme=dark] .admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n+1) .ant-statistic-content-prefix { color: #6aa7ff !important; background: rgba(79, 140, 255, .22) !important; }
html[data-theme=dark] .admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n+2) .ant-statistic-content-prefix { color: #a78bfa !important; background: rgba(124, 92, 255, .24) !important; }
html[data-theme=dark] .admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n+3) .ant-statistic-content-prefix { color: #fbbf24 !important; background: rgba(245, 158, 11, .22) !important; }
html[data-theme=dark] .admin-content .ant-row:has(.ant-statistic) > .ant-col:nth-child(4n)   .ant-statistic-content-prefix { color: #34d399 !important; background: rgba(18, 161, 80, .24) !important; }

/* KPI 卡片悬停微浮起 */
.admin-content .ant-row:has(.ant-statistic) > .ant-col .ant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ad-shadow-2) !important;
  border-color: rgba(22, 119, 255, .3) !important;
}

/* --------------------------------------------------------------------------
   8. 表格：表头规格化 + 列宽不再被压到竖排
   -------------------------------------------------------------------------- */
.admin-content .ant-table { border-radius: 10px; }
.admin-content .ant-table-container { border-radius: 10px; }
/* PC 端也要能横向滚动：表格超宽时滚动而不是把末列裁掉
   （原样式只在 <=768 断点里给了 overflow-x，PC 下窄列会被压没了） */
.admin-content .ant-table-content,
.admin-content .ant-table-body {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.admin-content .ant-table-content::-webkit-scrollbar { height: 8px; }
.admin-content .ant-table-content::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .3);
  border-radius: 999px;
}
.admin-content .ant-table-content::-webkit-scrollbar-track { background: transparent; }

.admin-content .ant-table-thead > tr > th {
  background: var(--ad-surface-2) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  letter-spacing: .015em;
  padding: 12px 13px !important;
  white-space: nowrap !important;   /* 表头不再竖排，同时把列宽撑到内容最小宽 */
  min-width: 88px;                  /* 下限：任何一列都不会被压到看不清 */
  border-bottom: 1px solid var(--ad-border) !important;
}
.admin-content .ant-table-thead > tr > th::before { display: none !important; }

.admin-content .ant-table-tbody > tr > td {
  padding: 13px 13px !important;
  vertical-align: middle;
  min-width: 88px;                  /* 兜底：任何一列都不会窄到把两个字挤成两行 */
  border-bottom: 1px solid var(--border-soft) !important;
  font-size: 13.5px;
}
/* 横向滚动时，固定列边缘加阴影 —— 提示「右侧还有内容被遮挡」 */
.admin-content .ant-table-cell-fix-right-first::after {
  box-shadow: inset -10px 0 8px -8px rgba(16, 24, 40, .16) !important;
}
.admin-content .ant-table-cell-fix-left-last::after {
  box-shadow: inset 10px 0 8px -8px rgba(16, 24, 40, .16) !important;
}
html[data-theme=dark] .admin-content .ant-table-cell-fix-right-first::after {
  box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .55) !important;
}
html[data-theme=dark] .admin-content .ant-table-cell-fix-left-last::after {
  box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .55) !important;
}

/* 斑马纹 → 悬停高亮（顺序即优先级） */
.admin-content .ant-table-tbody > tr.ant-table-row > td { background: var(--bg-surface) !important; }
.admin-content .ant-table-tbody > tr.ant-table-row:nth-child(even) > td { background: var(--ad-surface-2) !important; }
.admin-content .ant-table-tbody > tr.ant-table-row:hover > td { background: var(--ad-hover) !important; }

.admin-content .ant-table-cell { vertical-align: middle; }
.admin-content .ant-table-tbody img { border-radius: 8px; object-fit: cover; }
.admin-content .ant-table-wrapper { padding-bottom: 2px; }
.admin-content .ant-table-placeholder > td { background: var(--bg-surface) !important; }

/* 行内操作：文字按钮做成轻量胶囊，危险操作变红 */
.admin-content .ant-table-tbody .ant-btn-link {
  padding: 2px 6px !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background .16s var(--ad-ease), color .16s var(--ad-ease);
}
.admin-content .ant-table-tbody .ant-btn-link:hover { background: var(--brand-soft); }
.admin-content .ant-table-tbody .ant-btn-link.ant-btn-dangerous { color: var(--ad-danger) !important; }
.admin-content .ant-table-tbody .ant-btn-link.ant-btn-dangerous:hover { background: rgba(229, 72, 77, .09); }

/* --------------------------------------------------------------------------
   9. 表单：字段收窄 + 焦点反馈 + 图片占位
   -------------------------------------------------------------------------- */
.admin-content .ant-form-item { margin-bottom: 20px !important; }
.admin-content .ant-form-item-label { padding-bottom: 6px !important; }
.admin-content .ant-form-item-label > label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  height: auto !important;
}

.admin-content .ant-input,
.admin-content .ant-input-affix-wrapper,
.admin-content .ant-input-number,
.admin-content .ant-picker,
.admin-content .ant-select-selector {
  border-radius: var(--ad-radius-sm) !important;
  transition: border-color .18s var(--ad-ease), box-shadow .18s var(--ad-ease);
}
.admin-content .ant-input,
.admin-content .ant-input-affix-wrapper,
.admin-content .ant-input-number,
.admin-content .ant-picker { min-height: 36px; }
.admin-content .ant-input-number-input { height: 34px !important; }
.admin-content .ant-select-single { min-height: 36px; }
.admin-content .ant-select-single .ant-select-selector { min-height: 36px; align-items: center; }

/* 单行输入不再拉满整屏，阅读动线更短 */
.admin-content .ant-form-item .ant-input:not(textarea),
.admin-content .ant-form-item .ant-input-affix-wrapper,
.admin-content .ant-form-item .ant-select,
.admin-content .ant-form-item .ant-input-number { max-width: 560px; }

.admin-content .ant-input:focus,
.admin-content .ant-input-focused,
.admin-content .ant-input-affix-wrapper-focused,
.admin-content .ant-input-affix-wrapper:focus-within,
.admin-content .ant-input-number-focused,
.admin-content .ant-picker-focused,
.admin-content .ant-select-focused .ant-select-selector {
  border-color: var(--brand) !important;
  box-shadow: var(--ad-ring) !important;
}
.admin-content .ant-input:hover,
.admin-content .ant-input-affix-wrapper:hover,
.admin-content .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
  border-color: rgba(22, 119, 255, .45) !important;
}

/* 图片预览占位 */
.admin-content .ant-upload-wrapper .ant-upload.ant-upload-select {
  border: 1px dashed var(--ad-border) !important;
  border-radius: var(--ad-radius-sm) !important;
  background: var(--ad-surface-2) !important;
  transition: border-color .18s var(--ad-ease), background .18s var(--ad-ease);
}
.admin-content .ant-upload-wrapper .ant-upload.ant-upload-select:hover {
  border-color: var(--brand) !important;
  background: var(--brand-soft) !important;
}

/* --------------------------------------------------------------------------
   10. 按钮
   -------------------------------------------------------------------------- */
.admin-content .ant-btn {
  border-radius: var(--ad-radius-sm) !important;
  font-weight: 500;
  transition: background .18s var(--ad-ease), color .18s var(--ad-ease),
              box-shadow .18s var(--ad-ease), transform .18s var(--ad-ease);
}
.admin-content .ant-btn-primary {
  background: var(--brand-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(22, 119, 255, .26);
}
.admin-content .ant-btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(22, 119, 255, .34);
  filter: brightness(1.05);
}
.admin-content .ant-btn-primary:not(:disabled):active { transform: none; box-shadow: 0 1px 4px rgba(22, 119, 255, .3); }
.admin-content .ant-btn-default:not(:disabled):hover { border-color: var(--brand) !important; color: var(--brand) !important; }
.admin-content .ant-btn-dangerous { color: var(--ad-danger) !important; }
.admin-content .ant-btn-dangerous:not(:disabled):hover { border-color: var(--ad-danger) !important; background: rgba(229, 72, 77, .07) !important; }
.admin-content .ant-btn-link { padding: 0 6px !important; border-radius: 6px; }
.admin-content .ant-btn-link:not(:disabled):hover { background: var(--brand-soft) !important; }

/* --------------------------------------------------------------------------
   11. Tabs / Tag / 描述列表 / 分页
   -------------------------------------------------------------------------- */
.admin-content .ant-tabs-nav { margin-bottom: 18px !important; }
.admin-content .ant-tabs-tab { padding: 10px 2px !important; font-size: 14px; }
.admin-content .ant-tabs-tab + .ant-tabs-tab { margin-left: 26px !important; }
.admin-content .ant-tabs-ink-bar { height: 2.5px !important; border-radius: 3px; }
.admin-content .ant-tabs-tab-active .ant-tabs-tab-btn { font-weight: 600 !important; }

.admin-content .ant-tag {
  border: none !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500;
  padding: 1px 9px !important;
  line-height: 20px;
}

.admin-content .ant-descriptions-item-label { font-size: 13px !important; color: var(--text-muted) !important; }
.admin-content .ant-descriptions-item-content { font-size: 13.5px !important; }
.admin-content .ant-descriptions-bordered .ant-descriptions-item-label { background: var(--ad-surface-2) !important; }

.admin-content .ant-pagination { margin-top: 18px !important; }
.admin-content .ant-pagination-item { border-radius: 8px !important; }
.admin-content .ant-pagination-item-active { background: var(--brand-soft) !important; border-color: var(--brand) !important; }
.admin-content .ant-pagination-prev .ant-pagination-item-link,
.admin-content .ant-pagination-next .ant-pagination-item-link { border-radius: 8px !important; }

.admin-content .ant-divider { border-color: var(--ad-border) !important; }
.admin-content .ant-alert { border-radius: var(--ad-radius-sm) !important; }

/* --------------------------------------------------------------------------
   12. 加载态与空状态
   -------------------------------------------------------------------------- */
.admin-content > .ant-spin {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
}
.admin-content .ant-spin-nested-loading { min-height: 160px; }
.admin-content .ant-spin-dot-item { background-color: var(--brand) !important; }

.admin-content .ant-empty { padding: 30px 0 !important; }
.admin-content .ant-empty-image { height: 74px !important; opacity: .9; }
.admin-content .ant-empty-description { font-size: 13.5px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. 响应式：992 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .admin-content { padding: 22px 20px 36px !important; }
}

@media (max-width: 992px) {
  .admin-sider { width: 204px !important; }
  .admin-sider .menu-item { font-size: 13.5px; padding: 9px 11px !important; }
  .admin-content { padding: 20px 16px 32px !important; }
  .admin-content .ant-statistic-content { font-size: 24px !important; }
}

@media (max-width: 768px) {
  /* --- 外壳 --- */
  .admin-layout { position: relative; }
  .admin-sider {
    padding: 8px 12px 8px 8px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 2px;
  }
  .admin-sider::-webkit-scrollbar { display: none; }
  .admin-sider .brand-title { font-size: 14.5px !important; padding: 0 12px 0 2px !important; border-bottom: none !important; margin-bottom: 0 !important; }
  .admin-sider .brand-title .anticon { width: 26px; height: 26px; border-radius: 8px; font-size: 14px !important; }
  /* 顶部横滚条：右侧渐隐，提示还有菜单 */
  .admin-layout::after {
    content: "";
    position: absolute; top: 0; right: 0;
    width: 24px; height: 52px;
    pointer-events: none;
    z-index: 6;
    background: linear-gradient(to right, rgba(14, 23, 41, 0), #0b1220);
  }
  .admin-sider .menu-item {
    margin: 0 3px !important;
    padding: 8px 11px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }
  .admin-sider .menu-item.active::before { display: none; }
  .admin-sider .menu-item.active {
    background: rgba(22, 119, 255, .3) !important;
    box-shadow: none;
  }

  /* --- 内容 --- */
  .admin-content { padding: 14px 12px 28px !important; }
  .admin-content > div > h2 { font-size: 18px !important; margin-bottom: 14px !important; }
  .admin-topbar { margin-bottom: 12px !important; min-height: 34px; }
  .admin-topbar .ant-btn-circle { width: 32px !important; height: 32px !important; }
  .admin-topbar .ant-space-item > span { font-size: 12.5px; }

  /* --- 卡片 --- */
  .admin-content .ant-card-body { padding: 15px 14px !important; }
  .admin-content .ant-card-body > h4.ant-typography,
  .admin-content .ant-card-body > h3.ant-typography { font-size: 15px !important; margin-bottom: 12px !important; }

  /* --- KPI --- */
  .admin-content .ant-row:has(.ant-statistic) { row-gap: 12px !important; }
  .admin-content .ant-statistic-title { font-size: 12.5px !important; margin-bottom: 8px !important; }
  .admin-content .ant-statistic-content { font-size: 21px !important; gap: 9px; }
  .admin-content .ant-statistic-content-prefix { width: 33px; height: 33px; border-radius: 9px; }
  .admin-content .ant-statistic-content-prefix .anticon { font-size: 17px !important; }
  .admin-content .ant-row:has(.ant-statistic) > .ant-col .ant-card:hover { transform: none; }

  /* --- 表格：滑动提示 + 触控热区 --- */
  .admin-content .ant-table-wrapper::before {
    content: "← 左右滑动查看完整表格 →";
    display: block;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--text-muted);
    padding: 0 0 8px;
  }
  .admin-content .ant-table-thead > tr > th { padding: 10px 12px !important; font-size: 12.5px !important; }
  .admin-content .ant-table-tbody > tr > td { padding: 11px 12px !important; font-size: 13px; }
  .admin-content .ant-table-tbody .ant-btn-link { min-height: 30px; padding: 3px 9px !important; }
  .admin-content .ant-btn-sm { min-height: 32px; padding: 0 10px !important; }

  /* --- 表单：移动端恢复全宽，输入更高更好点 --- */
  .admin-content .ant-form-item .ant-input:not(textarea),
  .admin-content .ant-form-item .ant-input-affix-wrapper,
  .admin-content .ant-form-item .ant-select,
  .admin-content .ant-form-item .ant-input-number { max-width: none; }
  .admin-content .ant-input,
  .admin-content .ant-input-affix-wrapper,
  .admin-content .ant-select-single .ant-select-selector { min-height: 40px; }
  .admin-content .ant-input-number-input { height: 38px !important; }
  .admin-content .ant-form-item { margin-bottom: 16px !important; }

  /* --- 标签页横滚 --- */
  .admin-content .ant-tabs-nav { margin-bottom: 14px !important; }
  .admin-content .ant-tabs-tab { padding: 8px 0 !important; font-size: 13.5px; }
  .admin-content .ant-tabs-tab + .ant-tabs-tab { margin-left: 20px !important; }

  .admin-content > .ant-spin { min-height: 160px; }
}

@media (max-width: 480px) {
  .admin-content { padding: 12px 10px 24px !important; }
  .admin-content .ant-statistic-content { font-size: 19px !important; }
  .admin-content .ant-statistic-content-prefix { width: 30px; height: 30px; border-radius: 8px; }
  .admin-content .ant-card-body { padding: 13px 12px !important; }
  .admin-content .ant-btn { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   14. 深色模式补全
   -------------------------------------------------------------------------- */
html[data-theme=dark] .admin-content .ant-card { border-color: rgba(255, 255, 255, .07) !important; }
html[data-theme=dark] .admin-content .ant-table-thead > tr > th { background: #1a2440 !important; color: var(--text-secondary) !important; }
html[data-theme=dark] .admin-content .ant-table-tbody > tr.ant-table-row:nth-child(even) > td { background: #111a2e !important; }
html[data-theme=dark] .admin-content .ant-table-tbody > tr.ant-table-row > td { border-bottom-color: rgba(255, 255, 255, .06) !important; }
html[data-theme=dark] .admin-content .ant-table-thead > tr > th { border-bottom-color: var(--ad-border) !important; }
html[data-theme=dark] .admin-content .ant-upload-wrapper .ant-upload.ant-upload-select { border-color: var(--ad-border) !important; }
html[data-theme=dark] .admin-topbar .ant-avatar { box-shadow: 0 0 0 2px var(--bg-surface); }

/* 弹窗（Portal 到 body，走全局） */
.ant-modal-content { border-radius: var(--ad-radius-lg) !important; box-shadow: 0 12px 48px rgba(16, 24, 40, .18) !important; }
.ant-modal-header { border-bottom: 1px solid var(--ad-border) !important; padding-bottom: 14px !important; }
.ant-modal-title { font-size: 16px !important; font-weight: 600 !important; }
.ant-modal-footer { border-top: 1px solid var(--ad-border) !important; padding-top: 14px !important; }
html[data-theme=dark] .ant-modal-content { box-shadow: 0 16px 56px rgba(0, 0, 0, .55) !important; }

/* --------------------------------------------------------------------------
   15. 无障碍：尊重「减少动态效果」偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .admin-layout *, .admin-layout *::before, .admin-layout *::after {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
