/* =========================================================
 * 商城管理后台 · 公共样式
 * 主色：深蓝 / 文字：深灰 / 错误：红 / 简约商务风
 * ========================================================= */
:root {
  --primary: #1e40af;
  --primary-hover: #2b53d8;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --border: #d5dbe7;
  --error: #dc2626;
  --bg-page: #f5f7fb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------------- 登录页布局：左右分栏 ---------------- */
.login-wrap { display: flex; min-height: 100vh; }

.login-brand {
  width: 400px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #16215c 0%, #1e40af 68%, #2b5ce6 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}
.brand-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.brand-name { font-size: 26px; font-weight: 600; letter-spacing: 2px; margin-bottom: 14px; }
.brand-desc { font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.9; }

.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

/* ---------------- 登录表单 ---------------- */
.login-form {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 32px;
  box-shadow: 0 6px 24px rgba(30, 64, 175, .08);
}
.form-title { font-size: 22px; font-weight: 600; }
.form-sub { font-size: 13px; color: var(--text-sub); margin: 8px 0 26px; }

.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: #9db4e4; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, .12); }
.field.invalid input { border-color: var(--error); }
.field.invalid input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.field-err { display: none; font-size: 12px; color: var(--error); margin-top: 6px; }
.field.invalid .field-err { display: block; }

/* 密码框 + 眼睛 */
.pwd-box { position: relative; }
.pwd-box input { padding-right: 42px; }
.pwd-eye {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  color: #9aa3b5;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.pwd-eye:hover { color: var(--primary); }
.pwd-eye .icon-off { display: none; }
.pwd-eye.on .icon-open { display: none; }
.pwd-eye.on .icon-off { display: block; }

/* 验证码 */
.captcha-box { display: flex; gap: 10px; align-items: center; }
.captcha-box input { flex: 1; min-width: 0; }
.captcha-img {
  width: 172px; height: 58px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f3f5fa;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.captcha-tip { font-size: 12px; color: #9aa3b5; margin-left: 6px; font-weight: 400; }
/* 小屏：验证码输入与图片上下排列，避免图片挤窄输入框 */
@media (max-width: 480px) {
  .captcha-box { flex-wrap: wrap; }
  .captcha-box input { flex: 1 1 100%; }
  .captcha-img { width: 100%; height: 64px; object-fit: contain; }
}

/* 记住账号 */
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; }
.remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sub); cursor: pointer; user-select: none; }
.remember input { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }

/* 登录按钮 */
.login-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  letter-spacing: 6px;
  text-indent: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, opacity .15s ease;
}
.login-btn:hover:not(:disabled) { background: var(--primary-hover); }
.login-btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-loading {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.login-btn.loading .btn-loading { display: inline-block; }
.login-btn.loading { letter-spacing: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-footer { position: absolute; bottom: 18px; font-size: 12px; color: #9aa3b5; }

/* ---------------- 错误提示弹窗（2 秒自动关闭） ---------------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .35);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 20vh;
  z-index: 100;
  opacity: 0;
  transition: opacity .15s ease;
}
.modal-mask[hidden] { display: none; }
.modal-mask.show { opacity: 1; }
.modal-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 26px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  max-width: 86vw;
}
.modal-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-text { font-size: 14px; color: var(--text-main); }

/* ---------------- 后台占位页（控制台首页） ---------------- */
.admin-topbar { background: #fff; border-bottom: 1px solid #e7eaf2; }
.admin-topbar-inner {
  max-width: 1200px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.admin-site { font-size: 15px; font-weight: 600; color: var(--primary); }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-sub); }
.logout-btn {
  height: 30px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text-main);
  font-size: 13px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.logout-btn:hover { border-color: var(--primary); color: var(--primary); }
.admin-content { max-width: 1200px; margin: 32px auto; padding: 0 24px; }
.placeholder-card {
  background: #fff; border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 6px 24px rgba(30, 64, 175, .06);
}
.placeholder-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.placeholder-card p { font-size: 14px; color: var(--text-sub); line-height: 1.9; }

/* ---------------- 响应式：小屏切换上下布局 ---------------- */
@media (max-width: 768px) {
  .login-wrap { flex-direction: column; }
  .login-brand { width: 100%; padding: 30px 24px; }
  .brand-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; }
  .brand-name { font-size: 20px; margin-bottom: 8px; }
  .brand-desc { font-size: 12px; }
  .login-main { padding: 28px 16px 56px; justify-content: flex-start; }
  .login-form { padding: 28px 22px; box-shadow: 0 4px 16px rgba(30, 64, 175, .06); }
  .login-footer { position: static; margin-top: 28px; }
}

/* =========================================================
 * 管理后台框架：侧边栏 + 顶栏 + 看板（简约浅色 / 卡片圆角）
 * ========================================================= */
.admin-body { background: #f5f6fa; }

.admin-shell { display: flex; min-height: 100vh; }

/* ---------------- 左侧固定深色侧边菜单 ---------------- */
.admin-side {
  width: 180px; flex-shrink: 0;
  background: #3a3d63;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
  transition: width .2s ease;
  z-index: 70;
}
.side-logo {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px; flex-shrink: 0;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.side-logo svg { flex-shrink: 0; }
.side-nav { flex: 1; display: flex; flex-direction: column; padding: 10px 0; overflow-y: auto; }
.side-group { list-style: none; }
.side-bottom { margin-top: auto; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  height: 44px; margin: 2px 10px; padding: 0 12px;
  border-radius: 8px;
  color: #cfd2e8; text-decoration: none; font-size: 14px;
  transition: background .15s, color .15s;
}
.side-item svg { flex-shrink: 0; }
.side-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-item.active { background: #4a4e78; color: #fff; }
.side-text { white-space: nowrap; overflow: hidden; }

/* 收起态：仅图标 */
.admin-shell.collapsed .admin-side { width: 60px; }
.admin-shell.collapsed .side-logo { padding: 0; justify-content: center; }
.admin-shell.collapsed .side-logo-text, .admin-shell.collapsed .side-text { display: none; }
.admin-shell.collapsed .side-item { justify-content: center; padding: 0; margin: 2px 8px; }
.admin-shell.collapsed .side-arrow { display: none; }
.admin-shell.collapsed .side-sub { display: none; }

/* ---------------- 二级子菜单 ---------------- */
.side-arrow {
  margin-left: auto; flex-shrink: 0;
  color: #9ea2c8;
  transition: transform .2s ease;
}
.side-node.open > .side-parent .side-arrow { transform: rotate(90deg); }
.side-sub {
  list-style: none;
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.side-node.open > .side-sub { max-height: 700px; }
.side-sub-item {
  display: flex; align-items: center; gap: 8px;
  height: 38px; margin: 2px 10px 2px 14px; padding: 0 10px 0 24px;
  border-radius: 8px;
  color: #b9bdd6; text-decoration: none; font-size: 13px;
  transition: background .15s, color .15s;
}
.side-sub-item svg { flex-shrink: 0; }
.side-sub-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-sub-item.active { background: #4a4e78; color: #fff; }
.side-node:has(> .side-sub .side-sub-item.active) > .side-parent { color: #fff; }

/* 三级及更深层级：递进缩进 + 更小字号 */
.side-sub .side-sub .side-sub-item {
  height: 34px; margin-left: 18px; padding-left: 30px;
  font-size: 12.5px; color: #a8adc9;
}
.side-sub .side-sub .side-sub-item:hover { color: #fff; }
.side-sub .side-sub .side-sub-item.active { color: #fff; }
/* 深层级父级箭头保持右对齐 */
.side-sub-item.side-parent .side-arrow { margin-left: auto; }

/* ---------------- 三级弹出面板（白色，位于侧栏右侧） ---------------- */
.side-flyout {
  position: fixed; top: 0; bottom: 0; left: 180px; width: 168px;
  background: #fff; border-right: 1px solid #eceef5;
  box-shadow: 4px 0 14px rgba(35, 40, 80, .08);
  z-index: 95; display: none; flex-direction: column;
}
.side-flyout.open { display: flex; }
.fly-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 8px 0 16px; flex-shrink: 0;
  border-bottom: 1px solid #f0f1f7;
}
.fly-title { font-size: 14px; font-weight: 600; color: #2b2f4a; }
.fly-close {
  border: none; background: #f3f4f9; color: #8a8fb0; cursor: pointer;
  width: 22px; height: 22px; border-radius: 4px; font-size: 13px; line-height: 1;
  padding: 0;
}
.fly-close:hover { background: #e8eaf4; color: #5a5f88; }
.fly-list { padding: 8px 0; overflow-y: auto; }
.fly-item {
  display: block; height: 40px; line-height: 40px; padding: 0 20px;
  color: #4a4e68; text-decoration: none; font-size: 13px;
  border-left: 2px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fly-item:hover { background: #f5f6fb; color: #2f3355; }
.fly-item.active { color: #3d7fff; background: #f0f5ff; border-left-color: #3d7fff; }
.admin-shell.collapsed .side-flyout { left: 60px; }

/* ---------------- 面包屑 ---------------- */
.crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; margin-bottom: 14px; flex-wrap: wrap;
}
.crumb-link { color: #909399; text-decoration: none; }
.crumb-link:hover { color: #3d6eff; }
.crumb-sep { color: #c0c4cc; }
.crumb-cur { color: #303133; font-weight: 500; }

/* ---------------- 顶部导航栏 ---------------- */
.admin-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topnav {
  height: 56px; background: #fff;
  border-bottom: 1px solid #ebeef5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  position: sticky; top: 0; z-index: 40;
}
.tn-left, .tn-right { display: flex; align-items: center; gap: 10px; }
.tn-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 15px; font-weight: 600; color: #303133;
  pointer-events: none;
}
.tn-icon {
  width: 34px; height: 34px; border: none; border-radius: 8px;
  background: transparent; color: #606266; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.tn-icon:hover { background: #f2f4fa; color: #3d6eff; }
.tn-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #606266; text-decoration: none; padding: 6px 8px;
  border-radius: 8px;
}
.tn-link:hover { color: #3d6eff; background: #f2f4fa; }
.tn-btn {
  height: 32px; padding: 0 12px;
  border: 1px solid #e4e7ed; border-radius: 16px;
  background: #fff; font-size: 13px; color: #606266; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  transition: color .15s, border-color .15s;
}
.tn-btn:hover { color: #3d6eff; border-color: #3d6eff; }

/* 快捷入口（顶部常驻） */
.tn-quick {
  display: flex; align-items: center; gap: 6px;
  max-width: 360px; overflow-x: auto;
  scrollbar-width: none;
}
.tn-quick[hidden] { display: none; }
.tn-quick::-webkit-scrollbar { display: none; }
.tn-quick-item {
  height: 26px; padding: 0 10px; flex: none;
  display: inline-flex; align-items: center;
  border-radius: 13px; background: #f2f4fa;
  font-size: 12px; color: #606266; text-decoration: none;
  transition: background .15s, color .15s;
}
.tn-quick-item:hover { background: #e8edfb; color: #3d6eff; }
.tn-quick-item.active { background: #e8f0ff; color: #3d6eff; font-weight: 500; }

/* 快捷菜单勾选面板 */
.tn-quick-wrap { position: relative; }
.tn-quick-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 320px; max-height: 60vh;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #ebeef5; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .12);
  z-index: 60;
}
.tn-quick-panel[hidden] { display: none; }
.qp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #f0f2f5;
  font-size: 13px; font-weight: 600; color: #303133;
}
.qp-clear {
  border: none; background: none; cursor: pointer;
  font-size: 12px; color: #909399;
}
.qp-clear:hover { color: #f56c6c; }
.qp-body { padding: 6px 14px 10px; overflow-y: auto; }
.qp-group + .qp-group { border-top: 1px dashed #f0f2f5; margin-top: 4px; padding-top: 4px; }
.qp-group-title {
  padding: 6px 0 4px; font-size: 12px; color: #a8abb2;
}
.qp-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0 5px 8px; border-radius: 6px;
  font-size: 13px; color: #303133; cursor: pointer;
}
.qp-item:hover { background: #f7f9fc; }
.qp-item input { width: 14px; height: 14px; accent-color: #3d6eff; cursor: pointer; }
.qp-foot {
  padding: 8px 14px 10px; border-top: 1px solid #f0f2f5;
  font-size: 12px; color: #a8abb2;
}
.tn-bell { position: relative; }
.tn-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #f56c6c; color: #fff;
  font-size: 11px; line-height: 16px; text-align: center;
}
.tn-user {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 8px; cursor: pointer;
}
.tn-user:hover { background: #f2f4fa; }
.tn-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #3d6eff, #7aa2ff);
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.tn-username { font-size: 13px; color: #303133; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 140px; padding: 6px;
  background: #fff; border: 1px solid #ebeef5; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .1);
  z-index: 60;
}
.user-menu[hidden] { display: none; }
.user-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: #303133; text-decoration: none;
}
.user-menu a:hover { background: #f5f7fb; }
.user-menu a.danger { color: #f56c6c; }

/* 修改密码弹窗（全局，与管理员编辑弹窗风格一致） */
.pw-mask {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .45);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
}
.pw-mask.show { display: flex; }
.pw-dialog {
  width: 420px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(17, 24, 39, .2);
}
.pw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #f0f2f5;
  font-size: 15px; font-weight: 600; color: #303133;
}
.pw-close {
  width: 24px; height: 24px; border-radius: 6px;
  color: #909399; font-size: 18px; line-height: 22px; text-align: center;
  cursor: pointer;
}
.pw-close:hover { background: #f2f4fa; color: #303133; }
.pw-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pw-row { display: flex; align-items: center; gap: 10px; }
.pw-label {
  width: 84px; flex: none; text-align: right;
  font-size: 13px; color: #606266;
}
.pw-req { color: #f56c6c; font-style: normal; margin-right: 2px; }
.pw-input {
  flex: 1; min-width: 0; height: 36px; padding: 0 10px;
  border: 1px solid #e4e7ed; border-radius: 6px;
  font-size: 13px; color: #303133; outline: none;
  transition: border-color .15s;
}
.pw-input:focus { border-color: #3d6eff; }
.pw-input[readonly] { background: #f7f8fa; color: #909399; }
.pw-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 18px 16px; border-top: 1px solid #f0f2f5;
}
.pw-btn {
  height: 34px; padding: 0 16px;
  border: 1px solid #e4e7ed; border-radius: 17px;
  background: #fff; font-size: 13px; color: #606266; cursor: pointer;
}
.pw-btn:hover { border-color: #3d6eff; color: #3d6eff; }
.pw-btn-primary {
  background: #3d6eff; border-color: #3d6eff; color: #fff;
}
.pw-btn-primary:hover { background: #2f5fe0; border-color: #2f5fe0; color: #fff; }
.pw-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------------- 主体内容区 / 卡片 ---------------- */
.admin-page { flex: 1; padding: 16px; min-width: 0; transition: margin-left .2s; }
/* 三级弹出面板打开时推挤内容区，避免遮挡内容（仅桌面端） */
@media (min-width: 901px) {
  body.has-flyout .admin-page { margin-left: 168px; }
}
.card {
  background: #fff; border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(31, 41, 55, .04);
  margin-bottom: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.card h3 { font-size: 15px; font-weight: 600; color: #303133; }

/* 时间筛选按钮（仅样式） */
.time-filter, .hf-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tf {
  height: 28px; padding: 0 12px;
  border: 1px solid #e4e7ed; border-radius: 14px;
  background: #fff; font-size: 12px; color: #606266; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.tf:hover { color: #3d6eff; border-color: #3d6eff; }
.tf.active { background: #3d6eff; border-color: #3d6eff; color: #fff; }
.tf.small { height: 26px; padding: 0 10px; font-size: 12px; }
.hf-select {
  height: 28px; padding: 0 10px;
  border: 1px solid #e4e7ed; border-radius: 6px;
  background: #fff; font-size: 12px; color: #606266; cursor: pointer;
}

/* 运营数据概览 8 卡 */
.stat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.stat-item { background: #f8f9fc; border-radius: 10px; padding: 18px 8px; text-align: center; }
.stat-num { font-size: 24px; font-weight: 700; color: #303133; }
.stat-label {
  margin-top: 6px; font-size: 12px; color: #909399;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.q {
  width: 14px; height: 14px; border-radius: 50%;
  background: #e4e7ed; color: #909399; font-size: 10px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: help; flex-shrink: 0;
}

/* 行布局 */
.row3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
.row3 .card, .row2 .card { margin-bottom: 16px; }

/* 图表占位 + 图例 */
.chart-flex { display: flex; gap: 16px; align-items: stretch; }
.chart-empty {
  flex: 1.2; min-height: 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #fafbfd; border-radius: 10px;
  color: #c0c4cc; font-size: 13px;
}
.legend { list-style: none; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #606266; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend .val { margin-left: auto; color: #909399; font-size: 12px; }
.member-nums { display: flex; gap: 44px; margin-bottom: 14px; }
.member-nums b { font-size: 26px; color: #303133; }
.member-nums span { display: block; font-size: 12px; color: #909399; margin-top: 2px; }

/* 管理员中心 */
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ac-item + .ac-item { border-top: 1px dashed #f0f2f5; }
.ac-ava {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3d6eff, #7aa2ff);
  color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ac-name { font-size: 14px; color: #303133; display: flex; align-items: center; gap: 6px; }
.ac-sub { font-size: 12px; color: #909399; margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.ac-badge {
  font-size: 11px; color: #3d6eff; height: 18px; padding: 0 6px;
  border: 1px solid #b9d0ff; background: #f0f6ff; border-radius: 9px;
  display: inline-flex; align-items: center;
}
.ac-info {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #f0f2f5;
  font-size: 13px; color: #606266; line-height: 2.1;
}
.ac-info b { color: #909399; font-weight: 400; margin-right: 8px; }

/* 会员金额概览 */
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amount-tile { background: #f8f9fc; border-radius: 10px; padding: 18px 16px; }
.amount-tile .t-label { font-size: 12px; color: #909399; display: flex; align-items: center; gap: 4px; }
.amount-tile .t-num { font-size: 26px; font-weight: 700; color: #303133; margin-top: 8px; }

/* 热卖商品表格 */
.hot-table { width: 100%; border-collapse: collapse; }
.hot-table th {
  text-align: left; font-size: 13px; color: #909399; font-weight: 500;
  padding: 10px 8px; border-bottom: 1px solid #f0f2f5;
}
.hot-table th:nth-child(2), .hot-table th:nth-child(3), .hot-table th:nth-child(4) { text-align: center; }
.empty-cell { text-align: center; color: #c0c4cc; font-size: 13px; padding: 44px 0; }

/* 右侧悬浮通知列表 */
.notice-panel {
  position: fixed; right: 16px; bottom: 16px;
  width: 260px; max-height: 56vh;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(31, 41, 55, .14);
  display: flex; flex-direction: column; overflow: hidden;
  z-index: 50;
}
.np-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px; font-weight: 600; color: #303133;
  border-bottom: 1px solid #f0f2f5;
}
.np-head a { font-size: 12px; color: #909399; text-decoration: none; cursor: pointer; }
.np-head a:hover { color: #3d6eff; }
.np-list { list-style: none; overflow-y: auto; padding: 2px 14px 8px; }
.np-list li { padding: 10px 0; border-bottom: 1px dashed #f0f2f5; font-size: 13px; color: #606266; line-height: 1.6; }
.np-list li:last-child { border-bottom: none; }
.np-list time { display: block; font-size: 11px; color: #c0c4cc; margin-top: 2px; }

/* 一级菜单占位页 */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 80px 0 10px; color: #c0c4cc;
}
.empty-text { text-align: center; color: #909399; font-size: 13px; padding-bottom: 40px; }

/* toast 提示 */
.admin-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: #303133; color: #fff;
  font-size: 13px; padding: 9px 18px; border-radius: 8px;
  z-index: 99; opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.admin-toast.show { opacity: .92; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .row3 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
  .admin-shell.side-open .admin-side { transform: translateX(0); }
  .admin-shell.collapsed .admin-side { width: 180px; }
  .admin-shell.collapsed .side-logo { padding: 0 18px; justify-content: flex-start; }
  .admin-shell.collapsed .side-logo-text, .admin-shell.collapsed .side-text { display: inline; }
  .admin-shell.collapsed .side-item { justify-content: flex-start; padding: 0 12px; margin: 2px 10px; }
  .admin-shell.collapsed .side-arrow { display: inline; }
  .admin-shell.collapsed .side-sub { display: block; }
  .tn-username { display: none; }
  .tn-title { position: static; transform: none; }
  .notice-panel { display: none; }
}
