/* web-admin/public/css/style.css */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; }

/* ============ 登录页（玻璃拟态） ============ */
.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #dce9e7 0%, #e8ecf4 46%, #f4ece6 100%);
}
/* 背景光斑：低饱和莫兰迪色，模糊后形成柔和的色散折射感 */
.login-aurora {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}
.login-aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.6;
}
.login-aurora .orb-1 {
  width: 44vmax; height: 44vmax; left: -14vmax; top: -16vmax;
  background: radial-gradient(circle at 35% 35%, rgba(94, 180, 166, 0.72), rgba(94, 180, 166, 0) 68%);
}
.login-aurora .orb-2 {
  width: 38vmax; height: 38vmax; right: -12vmax; top: -10vmax;
  background: radial-gradient(circle at 60% 40%, rgba(226, 178, 148, 0.66), rgba(226, 178, 148, 0) 68%);
}
.login-aurora .orb-3 {
  width: 52vmax; height: 52vmax; left: 20%; bottom: -28vmax;
  background: radial-gradient(circle at 50% 40%, rgba(151, 159, 205, 0.58), rgba(151, 159, 205, 0) 66%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 44px 40px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 26px 64px rgba(31, 41, 55, 0.18), 0 2px 8px rgba(31, 41, 55, 0.05);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
/* 顶部入口标识（平台主控台 / 代理商工作台） */
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #4d6f68;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.login-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fae9d;
  box-shadow: 0 0 0 3px rgba(63, 174, 157, 0.16);
}
.brand-wordmark-lg {
  display: block;
  font-size: 40px;
  letter-spacing: 0.16em;
  margin: 0 0 10px 0.16em;
}
.login-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1f2937;
  margin: 0 0 8px;
}
.login-subtitle {
  font-size: 13px;
  line-height: 1.7;
  color: #6d7c88;
  margin: 0 0 28px;
}
/* 无副标题的入口（代理商端）与表单之间留出呼吸间距 */
.login-title + .login-form { margin-top: 26px; }
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.login-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  text-align: center;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(31, 41, 55, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-input::placeholder { color: #a6b1ba; }
.login-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(63, 174, 157, 0.6);
  box-shadow: 0 0 0 4px rgba(63, 174, 157, 0.13);
}
.login-btn {
  margin-top: 6px;
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(135deg, #3cb9a9, #2aa394);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(42, 163, 148, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(42, 163, 148, 0.34);
}
.login-btn:active { transform: translateY(0); }
.login-error {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #b3453f;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(200, 106, 100, 0.34);
  border-radius: 10px;
}
/* 登录页底部提示：说明当前网址面向哪类账号 */
.login-portal-tip {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  font-size: 12px;
  line-height: 1.7;
  color: #7b8794;
  text-align: center;
}

@media (max-width: 480px) {
  .login-card { padding: 34px 22px 26px; border-radius: 24px; }
  .brand-wordmark-lg { font-size: 34px; }
  .login-title { font-size: 19px; }
  .login-subtitle { margin-bottom: 24px; }
}
/* 品牌字标「连房」：粗体 + 微字距 + 青绿渐变字色（替代原房子图标） */
.brand-wordmark {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: #0d9488;                                   /* 不支持渐变剪裁时的兜底色 */
  background-image: linear-gradient(118deg, #0f766e 0%, #14b8a6 46%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-wordmark-sm { font-size: 26px; letter-spacing: 0.06em; }

/* 布局 */
/* 视口高度：dvh 为「动态视口高度」，可规避浏览器缩放 / Windows 显示缩放 /
   页面出现横向滚动条时 100vh 比实际可视区偏高、导致底部被裁切的问题
   （不支持 dvh 的浏览器自动回退到上一行的 100vh） */
.admin-layout { display: flex; height: 100vh; height: 100dvh; min-height: 0; }
.main-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 24px 32px;
  overflow-y: auto;
  background: #f1f5f9;
}
.sidebar {
  width: 240px; background: #1a202c; color: #fff; display: flex;
  flex-direction: column; flex-shrink: 0; min-height: 0;
}
.sidebar-logo {
  padding: 24px 20px; font-size: 18px; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
/* min-height:0 + overflow-y:auto：矮屏 / 浏览器缩放时菜单可自行滚动，
   避免把下方「账号区 + 退出登录」挤出可视区（此前底部显示不全的主因） */
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  cursor: pointer; transition: background 0.2s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.05); }
.nav-item.active { background: rgba(46,196,182,0.15); border-left: 3px solid #2EC4B6; }
.nav-icon { font-size: 18px; }
.nav-label { font-size: 14px; }
.nav-badge {
  position: absolute; right: 16px; background: #FF6B6B; color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 10px; font-weight: 600;
}
.sidebar-footer { flex-shrink: 0; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
/* 退出登录上方的版本号：深浅两套皮肤（深色侧栏 / 玻璃浅色侧栏）都靠继承色 + 透明度适配 */
.sidebar-version {
  margin-bottom: 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: inherit;
  opacity: 0.55;
  user-select: text;
}
.logout-btn {
  width: 100%; padding: 10px; background: rgba(255,107,107,0.2); color: #FF6B6B;
  border: 1px solid rgba(255,107,107,0.3); border-radius: 8px; cursor: pointer;
  font-size: 14px; transition: all 0.2s;
}
.logout-btn:hover { background: rgba(255,107,107,0.3); }

/* 侧边栏账号信息 */
.sidebar-account {
  flex-shrink: 0;
  padding: 14px 20px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sa-info {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.sa-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #2EC4B6, #20A398);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sa-detail { display: flex; flex-direction: column; min-width: 0; }
.sa-name {
  font-size: 13px; font-weight: 600; color: #E2E8F0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sa-role { font-size: 11px; color: #94A3B8; }
.sa-change-pwd {
  width: 100%; padding: 8px; background: rgba(46,196,182,0.12); color: #7DD3D1;
  border: 1px solid rgba(46,196,182,0.3); border-radius: 6px; cursor: pointer;
  font-size: 12px; transition: all 0.2s;
}
.sa-change-pwd:hover { background: rgba(46,196,182,0.25); color: #fff; }

/* 账号管理页面 */
.login-hint {
  font-size: 12px; color: #A0AEC0; margin-top: 8px; text-align: center;
}
.acc-cell { display: flex; align-items: center; gap: 10px; }
.acc-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #2EC4B6, #20A398);
  color: #fff; font-weight: 600; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-name { font-weight: 600; }
.acc-self-tag { color: #2EC4B6; font-size: 12px; margin-left: 4px; }
.acc-perms { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 500;
  background: rgba(46,196,182,0.12); color: #20A398;
  border: 1px solid rgba(46,196,182,0.2);
}
.perm-empty { color: #A0AEC0; font-size: 13px; }

/* 账号创建/编辑弹窗 */
.acc-dialog { width: 480px; max-width: 90vw; max-height: 85vh; overflow-y: auto; }
.acc-form { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.perm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px;
}
.perm-check {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(46,196,182,0.06); border: 1px solid rgba(46,196,182,0.15);
  font-size: 12px; font-weight: 500; color: #374151;
  transition: all 0.15s;
}
.perm-check:hover { background: rgba(46,196,182,0.12); }
.perm-check input { accent-color: #2EC4B6; }
.acc-super-hint {
  padding: 10px 14px; border-radius: 6px;
  background: rgba(237,137,54,0.08); color: #ED8936;
  font-size: 13px; border: 1px solid rgba(237,137,54,0.2);
}
.acc-dialog-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.06);
}

/* ========== 充值账单管理 ========== */
/* ============ 账单管理页面（全新卡片式设计） ============ */
.bills-page { background: #f0f2f5; }

/* 页面标题区 */
.bills-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.bills-page-title { display: flex; align-items: center; gap: 14px; }
.bills-page-icon {
  font-size: 36px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #2EC4B6, #20A398);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(46,196,182,0.3);
}
.bills-page-title .page-title { margin: 0; font-size: 20px; font-weight: 700; color: #1A202C; }
.bills-page-title .page-sub { margin: 2px 0 0; font-size: 13px; color: #718096; }

/* 统计卡片 */
.bills-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 20px;
}
.bills-stat-card {
  background: #fff; border-radius: 14px; padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.bills-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.bills-sc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.bills-sc-total .bills-sc-icon { background: linear-gradient(135deg, #E2E8F0, #CBD5E0); }
.bills-sc-paid .bills-sc-icon  { background: linear-gradient(135deg, #68D391, #48BB78); }
.bills-sc-amount .bills-sc-icon{ background: linear-gradient(135deg, #F6E05E, #ECC94B); }
.bills-sc-credits .bills-sc-icon{ background: linear-gradient(135deg, #B794F4, #9F7AEA); }

.bills-sc-body { flex: 1; min-width: 0; }
.bills-sc-num { font-size: 28px; font-weight: 800; color: #1A202C; line-height: 1.2; }
.bills-sc-label { font-size: 12px; color: #718096; margin-top: 4px; font-weight: 500; }
/* 融合卡：消耗 / 充值 双值并排，中间细分隔线，充值值同字号强调色 */
.bills-sc-body-split { display: flex; align-items: center; gap: 20px; }
.bills-sc-half { min-width: 0; }
.bills-sc-divider { width: 1px; align-self: stretch; margin: 2px 0; background: rgba(0,0,0,0.08); flex-shrink: 0; }
.bills-sc-num-accent { color: #B7791F; }
/* 物业视角：消耗积分与其中充值积分融合，卡片减为 3 张 */
.bills-stats-row.bills-stats-row-3 { grid-template-columns: repeat(3, 1fr); }

/* 筛选「充值」时的总充值金额汇总条 */
.bills-recharge-total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, #FFFDF5, #FFF7E6);
  border: 1px solid #F6E05E; border-radius: 12px;
}
.brt-main { display: flex; align-items: baseline; gap: 12px; }
.brt-label { font-size: 13px; font-weight: 600; color: #975A16; }
.brt-value { font-size: 26px; font-weight: 800; color: #B7791F; line-height: 1.2; }
.brt-sub { font-size: 12px; color: #A0AEC0; font-weight: 500; }

/* 筛选栏 */
.bills-filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; background: #fff; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05); margin-bottom: 18px;
}
.bills-fg { display: flex; flex-direction: column; gap: 4px; }
.bills-fg-kw { flex: 1; min-width: 220px; }
.bills-fselect, .bills-finput {
  padding: 9px 14px; border: 1px solid #E2E8F0; border-radius: 8px;
  font-size: 13px; background: #fff; color: #2D3748;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.bills-fselect:focus, .bills-finput:focus {
  border-color: #2EC4B6;
  box-shadow: 0 0 0 3px rgba(46,196,182,0.12);
}
.bills-finput { width: 100%; min-width: 200px; }
.bills-fbtn { padding: 9px 18px; font-size: 13px; flex-shrink: 0; }
/* 代理商/物业：数据范围（固定只读） */
.bills-fg-scope {
  display: flex; align-items: center; gap: 8px; align-self: center;
  padding: 9px 14px; background: #F1F5F9; border-radius: 8px;
  font-size: 13px; color: #334155; min-width: 220px;
}
.bills-fg-scope .bills-scope-label { color: #94A3B8; flex-shrink: 0; }
.bills-fg-scope .bills-scope-val { font-weight: 600; }

/* 区域/小区「可填写筛选框」：点击弹出候选 + 支持手动输入 */
.rgcbx { position: relative; }
.rgcbx .rgcbx-input { padding-right: 30px; cursor: pointer; }
/* 代理商已代理层级：只读锁定外观 */
.rgcbx-lock .rgcbx-input {
  background: #F1F5F9; color: #64748B; font-weight: 600;
  cursor: not-allowed; border-color: #E2E8F0;
}
.rgcbx-lock .rgcbx-input:focus { box-shadow: none; border-color: #E2E8F0; }

/* 危险操作二次确认弹窗（输入登录密码） */
.pwd-dialog { max-width: 400px; }
.pwd-dialog-sub { font-size: 14px; font-weight: 700; color: #1E293B; margin-top: 4px; }
.pwd-dialog-hint { font-size: 13px; color: #64748B; line-height: 1.6; margin: 6px 0 14px; }
.pwd-dialog-input { width: 100%; letter-spacing: 2px; }
.pwd-dialog-error { margin-top: 8px; font-size: 13px; color: #DC2626; }
.rgcbx-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; line-height: 16px; text-align: center;
  border: none; border-radius: 50%; background: #E2E8F0; color: #64748B;
  font-size: 14px; cursor: pointer; padding: 0; transition: background 0.12s, color 0.12s;
}
.rgcbx-clear:hover { background: #CBD5E1; color: #334155; }
.rgcbx-panel {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 60;
  min-width: 100%; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid #E8EDF3; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12); padding: 4px;
}
.rgcbx-panel-lg { min-width: 260px; }
.rgcbx-opt {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: none; background: transparent; border-radius: 6px;
  font-size: 13px; color: #2D3748; cursor: pointer; white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.rgcbx-opt:hover { background: #E6F7F4; color: #0FA79A; }
.rgcbx-opt.active { background: #0FA79A; color: #fff; font-weight: 600; }
.rgcbx-group + .rgcbx-group { margin-top: 4px; border-top: 1px solid #F1F5F9; padding-top: 4px; }
.rgcbx-group-title {
  padding: 6px 12px 4px; font-size: 12px; color: #94A3B8; font-weight: 600;
}
.rgcbx-empty { padding: 10px 12px; font-size: 12px; color: #94A3B8; }
.rgcbx-loading { padding: 10px 12px; font-size: 12px; color: #94A3B8; }

/* 账单列表（卡片式） */
.bills-list { display: flex; flex-direction: column; gap: 14px; }

.bill-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.15s;
}
.bill-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }

/* 卡片顶部 */
.bill-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #FAFBFC;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.bill-card-orderno { display: flex; align-items: center; gap: 10px; }
.bill-orderno-label { font-size: 12px; color: #A0AEC0; font-weight: 500; }
.bill-card-orderno code {
  background: rgba(46,196,182,0.08); color: #20A398;
  padding: 3px 10px; border-radius: 6px; font-size: 12px;
  font-family: 'SF Mono', Consolas, monospace;
}

/* 卡片中部 */
.bill-card-body {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; gap: 20px;
}
.bill-card-user { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.bill-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #2EC4B6, #20A398);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 16px; flex-shrink: 0;
}
.bill-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bill-user-info { display: flex; flex-direction: column; min-width: 0; }
.bill-nick { font-weight: 600; color: #1A202C; font-size: 14px; }
.bill-phone { font-size: 12px; color: #A0AEC0; margin-top: 2px; }

/* 金额积分区 */
.bill-card-amounts {
  display: flex; align-items: center; gap: 28px; flex-shrink: 0;
}
.bill-amt-row {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.bill-amt-label { font-size: 11px; color: #A0AEC0; font-weight: 500; }
.bill-amt-value { font-size: 16px; font-weight: 700; }
.bill-amt-money { color: #E53E3E; }
.bill-amt-credits { color: #805AD5; }

/* 卡片底部 */
.bill-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #FAFBFC;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.bill-time { display: flex; flex-direction: column; gap: 2px; }
.bill-time-label { font-size: 11px; color: #A0AEC0; margin-right: 6px; }
.bill-time-val { font-size: 13px; color: #2D3748; font-weight: 500; }
.bill-time-sub { font-size: 11px; color: #CBD5E0; margin-top: 2px; }

.bill-actions { display: flex; gap: 8px; }

/* 标签样式 */
.pay-method-tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.pay-method-tag.pm-wechat {
  background: rgba(72,187,120,0.12); color: #2F855A;
  border: 1px solid rgba(72,187,120,0.25);
}
.pay-method-tag.pm-wechat_virtual {
  background: rgba(66,153,225,0.12); color: #2B6CB0;
  border: 1px solid rgba(66,153,225,0.25);
}
.pay-method-tag.pm-manual {
  background: rgba(236,201,75,0.15); color: #B7791F;
  border: 1px solid rgba(236,201,75,0.3);
}
.pay-method-tag.pm-admin_grant {
  background: rgba(159,122,234,0.12); color: #805AD5;
  border: 1px solid rgba(159,122,234,0.25);
}

.status-tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.status-tag.status-pending {
  background: rgba(237,137,54,0.12); color: #C05621;
  border: 1px solid rgba(237,137,54,0.3);
}
.status-tag.status-paid {
  background: rgba(72,187,120,0.12); color: #2F855A;
  border: 1px solid rgba(72,187,120,0.25);
}
.status-tag.status-cancelled {
  background: rgba(160,174,192,0.15); color: #4A5568;
  border: 1px solid rgba(160,174,192,0.3);
}
.status-tag.status-failed {
  background: rgba(229,62,62,0.12); color: #C53030;
  border: 1px solid rgba(229,62,62,0.25);
}

/* 空状态 */
.bills-empty {
  text-align: center; padding: 80px 40px;
  background: #fff; border-radius: 14px;
  border: 1px dashed #E2E8F0;
}
.bills-empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.bills-empty-title { font-size: 16px; font-weight: 600; color: #4A5568; margin-bottom: 6px; }
.bills-empty-sub { font-size: 13px; color: #A0AEC0; }

/* 按钮变体 */
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-success { background: #48BB78; color: #fff; border: none; }
.btn-success:hover { background: #38A169; }
.btn-warning { background: #ED8936; color: #fff; border: none; }
.btn-warning:hover { background: #DD6B20; }
.btn-danger { background: #FC8181; color: #fff; border: none; }
.btn-danger:hover { background: #F56565; }

/* 快捷操作按钮 */
.bills-quick-actions {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.bills-qa-btn {
  padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #fff;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.bills-qa-btn:hover { transform: translateY(-1px); }
.bills-qa-btn:active { transform: scale(0.98); }
.bills-qa-grant {
  background: linear-gradient(135deg, #F6AD55, #ED8936);
  box-shadow: 0 4px 14px rgba(237,137,54,0.35);
}
.bills-qa-export {
  background: linear-gradient(135deg, #63B3ED, #4299E1);
  box-shadow: 0 4px 14px rgba(66,153,225,0.35);
}

/* 日期筛选 */
.bills-fdate { min-width: 140px; }
.bills-date-sep { font-size: 13px; color: #A0AEC0; }

/* 弹窗 */
.bill-dialog { max-width: 520px; width: 92%; max-height: 86vh; overflow-y: auto; }
.bill-dialog .dialog-body { padding: 16px 20px; }

.bill-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bill-form-group > label { font-size: 13px; font-weight: 600; color: #4A5568; }
.bill-form-group textarea { resize: vertical; font-family: inherit; }
.bill-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 用户搜索 */
.bill-user-search { display: flex; gap: 8px; }
.bill-user-search .bills-finput { flex: 1; }
.bill-user-list {
  border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden;
  max-height: 200px; overflow-y: auto;
}
.bill-user-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid #EDF2F7;
  transition: background 0.12s;
}
.bill-user-option:last-child { border-bottom: none; }
.bill-user-option:hover { background: #F0FFF9; }
.bill-user-credits {
  margin-left: auto; font-size: 12px; color: #805AD5; font-weight: 600;
  background: rgba(159,122,234,0.1); padding: 2px 8px; border-radius: 6px;
}
.bill-avatar-sm { width: 30px; height: 30px; font-size: 13px; }

/* 已选用户 */
.bill-picked-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #F0FFF9;
  border: 1px solid rgba(46,196,182,0.3); border-radius: 10px;
}
.bill-picked-user .btn { margin-left: auto; }

/* 发放方式切换 */
.bill-grant-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bill-grant-option {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 12px 14px; border: 2px solid #E2E8F0; border-radius: 10px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.bill-grant-option:hover { border-color: #B2F5EA; }
.bill-grant-option.active {
  border-color: #2EC4B6; background: #F0FFF9;
  box-shadow: 0 0 0 3px rgba(46,196,182,0.12);
}
.bill-grant-title { font-size: 14px; font-weight: 600; color: #1A202C; }
.bill-grant-desc { font-size: 12px; color: #718096; }

/* 详情弹窗 */
.bill-detail-loading { text-align: center; padding: 40px 0; color: #A0AEC0; }
.bill-detail-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #FAFBFC;
  border: 1px solid #EDF2F7; border-radius: 10px; margin-bottom: 14px;
}
.bill-detail-amounts {
  display: flex; gap: 12px; margin-bottom: 14px;
}
.bill-detail-amt {
  flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: center;
  padding: 12px 8px; background: #FAFBFC;
  border: 1px solid #EDF2F7; border-radius: 10px;
}
.bill-detail-grid {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px;
}
.bill-detail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #FAFBFC;
  border: 1px solid #EDF2F7; border-radius: 8px;
}
.bdi-label { font-size: 12px; color: #A0AEC0; width: 64px; flex-shrink: 0; }
.bill-detail-item span:last-child { font-size: 13px; color: #2D3748; word-break: break-all; }
.bill-detail-item code {
  background: rgba(46,196,182,0.08); color: #20A398;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  font-family: 'SF Mono', Consolas, monospace;
  word-break: break-all;
}
.bill-remark-save { margin-top: 8px; align-self: flex-end; }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 20px;
}
.page-info { font-size: 13px; color: #718096; }

.page-title { font-size: 22px; font-weight: 700; color: #1A202C; margin-bottom: 20px; }

/* 仪表盘 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 20px; display: flex;
  align-items: center; gap: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-icon { font-size: 40px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1A202C; }
.stat-label { font-size: 14px; color: #718096; }

/* 工具栏 */
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.batch-info { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 8px; }
.btn-muted { background: #94a3b8; color: #fff; }
.search-input {
  padding: 8px 12px; border: 1px solid #E2E8F0; border-radius: 8px;
  font-size: 14px; min-width: 280px;
}
.search-input:focus { outline: none; border-color: #2EC4B6; }

/* 表格 */
.data-table {
  width: 100%; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.data-table th {
  background: #f7fafc; padding: 12px 16px; text-align: left; font-size: 13px;
  color: #718096; font-weight: 600; border-bottom: 1px solid #E2E8F0;
}
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #EDF2F7; }
.data-table tr:hover { background: #f7fafc; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { font-size: 24px; }
.col-id { max-width: 120px; }
.id-code {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #EDF2F7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #4A5568;
  cursor: pointer;
}
.id-code:hover { background: #E2E8F0; }
.dialog-message {
  font-size: 14px;
  color: #4A5568;
  white-space: pre-line;
  line-height: 1.8;
}

/* 徽章 */
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.badge:hover { opacity: 0.75; }

/* 开关选择器 */
.switch { position: relative; display: inline-block; width: 42px; height: 22px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background-color: #CBD5E0; transition: .3s; border-radius: 22px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: #fff; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background-color: #48BB78; }
.switch input:checked + .slider:before { transform: translateX(20px); }
.switch.switch-disabled { cursor: not-allowed; opacity: 0.55; }
.switch.switch-disabled input:disabled + .slider { background-color: #E2E8F0; }
.badge-success { background: rgba(72,187,120,0.15); color: #48BB78; }
.badge-info { background: rgba(66,153,225,0.15); color: #4299E1; }
.badge-muted { background: rgba(160,174,192,0.15); color: #A0AEC0; }
.badge-warning { background: rgba(237,137,54,0.15); color: #ED8936; }

/* 用户管理表格：手机号列（支持登录/发布两个号码带标签并排） */
.cell-phones { min-width: 180px; }
.muted { color: #A0AEC0; }
.phone-row-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.5;
}
.phone-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}
.phone-tag.tag-login { background: #E6FFFA; color: #20A398; border: 1px solid #B2F5EA; }
.phone-tag.tag-publish { background: #FFF8E6; color: #B7791F; border: 1px solid #FEEBC8; }
.phone-num { color: #2D3748; font-family: Menlo, Monaco, Consolas, monospace; letter-spacing: 0.3px; }

/* 按钮 */
.btn {
  padding: 8px 16px; border: 1px solid #E2E8F0; border-radius: 8px;
  background: #fff; color: #4A5568; cursor: pointer; font-size: 14px;
  transition: all 0.2s;
}
.btn:hover { background: #f7fafc; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-primary { background: #2EC4B6; color: #fff; border-color: #2EC4B6; }
.btn-primary:hover { background: #28B5A8; }
.btn-secondary { background: #E2E8F0; color: #2D3748; border-color: #CBD5E0; }
.btn-secondary:hover { background: #CBD5E0; }
.btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-success { background: #48BB78; color: #fff; border-color: #48BB78; }
.btn-success:hover { background: #38A169; }
.btn-danger { background: #F56565; color: #fff; border-color: #F56565; }
.btn-danger:hover { background: #E53E3E; }
.btn-warning { background: #ED8936; color: #fff; border-color: #ED8936; }
.btn-info { background: #4299E1; color: #fff; border-color: #4299E1; }

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 0;
}
.page-info { font-size: 13px; color: #718096; }

/* Tab 按钮 */
.tab-group { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid #E2E8F0; }
.tab-btn {
  padding: 8px 16px; border: none; background: #fff; color: #718096;
  cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.tab-btn.active { background: #2EC4B6; color: #fff; }

/* 房源列表 */
.listing-list { display: flex; flex-direction: column; gap: 12px; }
.listing-card {
  background: #fff; border-radius: 12px; padding: 16px; display: flex;
  justify-content: space-between; align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.listing-main { display: flex; gap: 16px; flex: 1; }
.listing-cover { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.listing-cover.placeholder { display: flex; align-items: center; justify-content: center; font-size: 32px; background: #f0f2f5; }
.listing-info h3 { font-size: 16px; margin-bottom: 8px; }
.listing-meta { font-size: 13px; color: #718096; margin-bottom: 4px; }
.listing-meta span { margin-right: 12px; }
.listing-contact { font-size: 13px; color: #4A5568; }
.listing-time { font-size: 12px; color: #A0AEC0; margin-top: 4px; }
.listing-reject { font-size: 13px; color: #F56565; margin-top: 4px; }
.listing-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* 聊天 */
.chat-layout { display: flex; gap: 16px; height: calc(100vh - 120px); }
.chat-sidebar { width: 360px; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.chat-search-bar { padding: 12px; display: flex; gap: 8px; border-bottom: 1px solid #EDF2F7; }
.chat-search-bar .search-input { min-width: 200px; }
.chat-filter-tabs { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #EDF2F7; }
.chat-filter-tabs .btn { flex: 1; }
.conv-list { flex: 1; overflow-y: auto; }
.conv-item {
  display: flex; gap: 12px; padding: 12px; cursor: pointer; border-bottom: 1px solid #EDF2F7;
  transition: background 0.2s;
}
.conv-item:hover { background: #f7fafc; }
.conv-item.active { background: rgba(46,196,182,0.08); border-left: 3px solid #2EC4B6; }
.conv-avatars { display: flex; flex-direction: column; gap: 2px; }
.conv-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.conv-avatar.placeholder { font-size: 14px; display: flex; align-items: center; justify-content: center; background: #f0f2f5; }
.conv-info { flex: 1; min-width: 0; }
.conv-title { font-size: 14px; font-weight: 600; color: #1A202C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-users { font-size: 12px; color: #718096; margin-top: 2px; }
.conv-last { font-size: 12px; color: #A0AEC0; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 11px; color: #CBD5E0; margin-top: 2px; }

.chat-main { flex: 1; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #A0AEC0; }
.chat-empty-icon { font-size: 48px; margin-bottom: 12px; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid #EDF2F7; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 8px; max-width: 70%; }
.msg-left { align-self: flex-start; }
.msg-right { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-avatar.placeholder { font-size: 16px; display: flex; align-items: center; justify-content: center; background: #f0f2f5; }
.msg-content { display: flex; flex-direction: column; gap: 2px; }
.msg-sender { font-size: 11px; color: #A0AEC0; }
.msg-text { padding: 8px 12px; background: #f0f2f5; border-radius: 8px; font-size: 14px; word-break: break-word; }
.msg-right .msg-text { background: #2EC4B6; color: #fff; }
.msg-card { padding: 8px 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 13px; }
.card-title { font-weight: 600; margin-bottom: 4px; }
.card-phone { color: #2EC4B6; }
.msg-time { font-size: 10px; color: #CBD5E0; }
.auto-reply-tag { background: rgba(237,137,54,0.15); color: #ED8936; padding: 1px 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; }

/* 管理员申请 */
.app-list { display: flex; flex-direction: column; gap: 12px; }
.app-card {
  background: #fff; border-radius: 12px; padding: 16px; display: flex;
  justify-content: space-between; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.app-info { display: flex; gap: 16px; align-items: flex-start; }
.app-info h4 { font-size: 16px; margin-bottom: 4px; }
.app-info p { font-size: 13px; color: #718096; margin-bottom: 2px; }
.app-actions { display: flex; gap: 8px; }

/* 配置 */
.config-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); max-width: 500px; }
.config-item { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.btn-item-save {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 18px;
  font-size: 13px;
  background: #2EC4B6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}
.btn-item-save:hover { background: #29B1A4; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.config-item label { font-size: 14px; font-weight: 600; color: #1A202C; }
.config-input { padding: 10px 12px; border: 2px solid #E2E8F0; border-radius: 8px; font-size: 15px; }
.config-input:focus { outline: none; border-color: #2EC4B6; }
.config-hint { font-size: 12px; color: #A0AEC0; }
.pay-check-result { margin-top: 16px; border-top: 1px solid #EDF2F7; padding-top: 12px; }
.pay-check-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 13px; }
.pay-check-name { font-weight: 600; min-width: 96px; color: #2D3748; }
.pay-check-msg { color: #4A5568; flex: 1; word-break: break-all; }
.pay-check-ok { color: #2F855A; }
.pay-check-fail { color: #C53030; }

/* 弹窗 */
.dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.dialog-card { background: #fff; border-radius: 12px; padding: 24px; width: 400px; max-width: 90%; }
.dialog-card h3 { font-size: 18px; margin-bottom: 16px; }
.dialog-body { margin-bottom: 16px; }
.dialog-body p { font-size: 14px; margin-bottom: 12px; }
.dialog-textarea { width: 100%; padding: 10px; border: 2px solid #E2E8F0; border-radius: 8px; font-size: 14px; min-height: 80px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 空状态 */
.empty { text-align: center; padding: 60px; color: #A0AEC0; font-size: 15px; }

/* 代理商只读板块底部提示 */
.readonly-tip { margin-top: 14px; text-align: center; color: #A0AEC0; font-size: 13px; }

/* 配置向导 */
.config-wizard { max-width: 640px; margin: 0 auto; padding: 20px 0; }
.config-wizard-card {
  background: #fff; border-radius: 16px; padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.config-wizard-card h2 { font-size: 22px; color: #1A202C; margin-bottom: 8px; }
.config-wizard-desc { font-size: 14px; color: #718096; margin-bottom: 24px; }
.config-step {
  display: flex; gap: 16px; margin-bottom: 20px; padding: 16px;
  background: #f7fafc; border-radius: 12px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #2EC4B6, #28B5A8);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 15px; color: #1A202C; margin-bottom: 6px; }
.step-content p { font-size: 13px; color: #718096; margin-bottom: 4px; }
.step-content a { color: #2EC4B6; }
.step-content code {
  background: #edf2f7; padding: 2px 6px; border-radius: 4px;
  font-size: 13px; color: #2EC4B6;
}
.config-code {
  background: #1a202c; color: #81E6D9; padding: 12px 16px;
  border-radius: 8px; font-size: 13px; margin: 8px 0;
  font-family: 'SF Mono', Menlo, monospace; overflow-x: auto;
}

/* 编辑弹窗样式 */
.edit-dialog {
  width: 720px !important;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 28px;
}
.edit-dialog-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}
.edit-dialog-body::-webkit-scrollbar {
  width: 6px;
}
.edit-dialog-body::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

/* 表单组 */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #2D3748;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-label-sm {
  font-size: 13px;
  color: #4A5568;
  margin-bottom: 6px;
  display: block;
}
.form-label .hint {
  font-size: 12px;
  font-weight: normal;
  color: #A0AEC0;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #2EC4B6;
}
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
  transition: border-color 0.2s;
}
.form-textarea:focus {
  outline: none;
  border-color: #2EC4B6;
}
.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-select:focus {
  outline: none;
  border-color: #2EC4B6;
}
.form-value-display {
  margin-top: 6px;
  padding: 6px 10px;
  background: #EDF2F7;
  border-radius: 6px;
  font-size: 13px;
  color: #4A5568;
  text-align: center;
}

/* 类型选择栏 */
.type-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.type-item {
  padding: 8px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #4A5568;
}
.type-item:hover {
  border-color: #2EC4B6;
  color: #2EC4B6;
}
.type-item.active {
  background: #2EC4B6;
  border-color: #2EC4B6;
  color: #fff;
}

/* 网格选项 */
.grid-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.grid-option {
  padding: 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
  color: #4A5568;
}
.grid-option:hover {
  border-color: #2EC4B6;
  color: #2EC4B6;
}
.grid-option.active {
  background: #2EC4B6;
  border-color: #2EC4B6;
  color: #fff;
}
.grid-option .icon {
  margin-right: 4px;
}

/* 楼层选择 */
.floor-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.floor-col {
  flex: 1;
  min-width: 120px;
}
.floor-label {
  display: block;
  font-size: 13px;
  color: #718096;
  margin-bottom: 6px;
}
.checkbox-col {
  display: flex;
  align-items: flex-end;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #4A5568;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 户型三列选择 */
.room-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.room-col {
  flex: 1;
  min-width: 80px;
}

/* 面积行（建筑面积/套内面积） */
.area-row {
  display: flex;
  gap: 16px;
}
.area-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.area-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.area-unit {
  font-size: 13px;
  color: #888;
}

/* 天然气 + 电梯房并排 */
.gas-elevator-row {
  display: flex;
  gap: 16px;
}
.gas-elevator-col {
  flex: 1;
  min-width: 0;
}
.gas-elevator-col .type-bar {
  flex-direction: row;
}

/* 详情弹窗 */
.detail-dialog .dialog-body {
  max-height: 70vh;
  overflow-y: auto;
}
.detail-publisher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F7FAFC;
  border-radius: 10px;
  margin-bottom: 16px;
}
.detail-publisher-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E2E8F0;
}
.detail-publisher-avatar-placeholder {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDF2F7;
  border-radius: 50%;
}
.detail-publisher-name {
  font-size: 16px;
  font-weight: 600;
  color: #2D3748;
}
.detail-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
/* 详情页房屋介绍视频 */
.detail-video-wrap {
  margin-bottom: 16px;
  background: #F7FAFC;
  border-radius: 8px;
  padding: 12px;
}
.detail-video-title {
  font-size: 14px;
  font-weight: 600;
  color: #2D3748;
  margin-bottom: 8px;
}
.detail-video-player {
  width: 100%;
  max-height: 360px;
  border-radius: 6px;
  background: #000;
  display: block;
}
.detail-image-item {
  width: calc(33.333% - 6px);
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}
.detail-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 2px 0;
}
.detail-image-item {
  position: relative;
  cursor: pointer;
}

/* ===== 大图查看器 ===== */
.image-viewer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}
.image-viewer-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.image-viewer-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}
.image-viewer-counter {
  color: #fff;
  font-size: 14px;
  margin-top: 12px;
  opacity: 0.8;
}
.image-viewer-label {
  color: #fff;
  font-size: 16px;
  margin-top: 4px;
}
.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.image-viewer-nav:hover { background: rgba(255,255,255,0.3); }
.image-viewer-nav.prev { left: 20px; }
.image-viewer-nav.next { right: 20px; }
.image-viewer-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.image-viewer-close:hover { background: rgba(255,255,255,0.25); }
.detail-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #F0F4F8;
  font-size: 14px;
}
.detail-row.highlight {
  background: #F0FAF8;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 2px 0;
}
.detail-row-label {
  flex-shrink: 0;
  width: 110px;
  color: #718096;
  font-weight: 500;
}
.detail-row.highlight .detail-row-label {
  color: #2EC4B6;
  font-weight: 600;
}
.detail-row-value {
  flex: 1;
  color: #2D3748;
  word-break: break-all;
}
.detail-row.highlight .detail-row-value {
  color: #2EC4B6;
  font-weight: 600;
}
.detail-row-value.online-indicator {
  color: #48BB78;
  font-weight: 600;
}

/* 意向区域不限提示 */
.intent-unlimited-hint {
  background: rgba(72, 187, 120, 0.08);
  color: #2F855A;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  border: 1px dashed rgba(72, 187, 120, 0.3);
}

/* 列表中不限badge */
.badge-success { background: rgba(72,187,120,0.15); color: #48BB78; font-size: 12px; padding: 2px 8px; border-radius: 10px; }

/* 预算范围 */
.budget-row {
  display: flex;
  gap: 12px;
}
.budget-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.budget-label {
  font-size: 13px;
  color: #718096;
}

/* 地址分解 */
.addr-breakdown {
  margin-top: 10px;
  padding: 12px;
  background: #F7FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}
.addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.addr-row:last-child {
  margin-bottom: 0;
}
.addr-label {
  font-size: 13px;
  color: #718096;
  min-width: 90px;
}
.addr-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 13px;
}
.addr-input:focus {
  outline: none;
  border-color: #2EC4B6;
}

/* 图片列表 */
.images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.image-item {
  position: relative;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}
.preview-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 101, 101, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.remove-image-btn:hover {
  background: #F56565;
}
.image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  text-align: center;
}
.empty-tip {
  padding: 16px;
  text-align: center;
  color: #A0AEC0;
  font-size: 13px;
  background: #F7FAFC;
  border-radius: 8px;
}

.image-upload-area {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-upload-input {
  display: none;
}
.image-upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #4299E1;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.image-upload-btn:hover {
  background: #3182CE;
}
.upload-hint {
  font-size: 12px;
  color: #A0AEC0;
}

/* ===== 按部位分区图片上传 ===== */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.slot-card {
  position: relative;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  background: #F7FAFC;
  aspect-ratio: 4 / 3;
}
/* 编辑弹窗：房屋介绍视频 */
.admin-video-wrap {
  margin-top: 8px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.admin-video-player {
  width: 100%;
  max-height: 320px;
  display: block;
}
.admin-video-loading {
  margin-top: 8px;
  padding: 20px;
  text-align: center;
  color: #718096;
  background: #F7FAFC;
  border-radius: 6px;
  border: 1px dashed #CBD5E0;
}
.admin-video-empty {
  margin-top: 8px;
  padding: 20px;
  text-align: center;
  color: #A0AEC0;
  background: #FAFAFA;
  border-radius: 6px;
  border: 1px dashed #E2E8F0;
  font-size: 13px;
}
.slot-upload-input {
  display: none;
}
.slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slot-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 101, 101, 0.92);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slot-remove-btn:hover {
  background: #F56565;
}
.slot-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  text-align: center;
}
/* 已有图时的「更换」按钮 */
.slot-replace-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(66, 153, 225, 0.92);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}
.slot-replace-btn:hover {
  background: #3182CE;
}
/* 空位上传区 */
.slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: #718096;
  gap: 4px;
  transition: background 0.2s, color 0.2s;
}
.slot-empty:hover {
  background: #EBF8FF;
  color: #3182CE;
}
.slot-empty-icon {
  font-size: 26px;
  line-height: 1;
}
.slot-empty-label {
  font-size: 13px;
  font-weight: 600;
}
.slot-empty-add {
  font-size: 12px;
  color: #A0AEC0;
}

/* 联系信息区域 */
.contact-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}

/* 编辑表单（旧版兼容） */
.edit-form .config-item {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.edit-form .config-item label {
  width: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  flex-shrink: 0;
}
.edit-form .config-item .config-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  font-size: 14px;
}

/* 房源租购管理 */
.badge-danger { background: rgba(245,101,101,0.15); color: #F56565; }

/* 用户管理 - 已拉黑行样式 */
.row-banned { background: rgba(245,101,101,0.05) !important; }
.row-banned td { opacity: 0.7; }
.action-cell { white-space: nowrap; }

.listing-toolbar { flex-wrap: wrap; gap: 8px; }
.filter-select {
  padding: 8px 12px; border: 1px solid #E2E8F0; border-radius: 8px;
  font-size: 14px; background: #fff; cursor: pointer; min-width: 120px;
}
.filter-select:focus { outline: none; border-color: #2EC4B6; }

.table-wrapper {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow-x: auto;
}
.listing-table { min-width: 1400px; }
.listing-table th { white-space: nowrap; }
.listing-table td { white-space: nowrap; }
.col-title { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-community { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-time { font-size: 12px; color: #718096; }
.col-actions { display: flex; gap: 4px; flex-wrap: nowrap; }
.col-actions .btn { white-space: nowrap; }

.publisher-info { display: flex; align-items: center; gap: 6px; }
.user-avatar-sm { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-placeholder-sm { font-size: 16px; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-logo { font-size: 14px; padding: 16px 8px; justify-content: center; gap: 0; }
  .sidebar-logo .sl-text { display: none; }
  .brand-wordmark-sm { font-size: 16px; letter-spacing: 0; }
  .nav-label { display: none; }
  .main-content { padding: 16px; }
  .listing-toolbar { flex-direction: column; align-items: stretch; }
  .search-input, .filter-select { min-width: 100%; }
}

/* ===== 产权资料审核区（管理后台） ===== */
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verification-status {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.verification-status.approved {
  background: #d4edda;
  color: #155724;
}

.verification-status.pending {
  background: #fff3cd;
  color: #856404;
}

.verification-status.none {
  background: #f8f9fa;
  color: #6c757d;
}

.property-doc-type {
  font-size: 13px;
  color: #666;
  margin: 8px 0 12px;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 6px;
  display: inline-block;
}

.admin-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.admin-doc-label {
  font-size: 14px;
  color: #333;
  min-width: 150px;
  font-weight: 500;
}

.admin-doc-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid #ddd;
}

.admin-doc-img:hover {
  transform: scale(1.05);
}

.admin-doc-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-doc-group-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-doc-group-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.admin-doc-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-doc-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.admin-doc-label-tiny {
  font-size: 12px;
  color: #999;
}

.verification-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-success {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-success:hover {
  opacity: 0.9;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  opacity: 0.9;
}

/* ===== 详情页产权资料样式 ===== */
.detail-property-docs {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #f6ffed 0%, #e6f7ff 100%);
  border: 1px solid #b7eb8f;
  border-radius: 10px;
}

.detail-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.detail-doc-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.detail-ver-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.detail-ver-status.approved {
  background: rgba(82, 196, 26, 0.15);
  color: #52c41a;
}

.detail-ver-status.pending {
  background: rgba(250, 173, 20, 0.15);
  color: #faad14;
}

.detail-doc-group {
  margin-bottom: 14px;
}

.detail-doc-group-title {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.detail-doc-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-doc-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-doc-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
}

.detail-doc-label {
  font-size: 11px;
  color: #888;
}

.detail-doc-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
}

.btn-warning {
  background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-warning:hover {
  opacity: 0.9;
}

/* ===== 验证滑块样式 ===== */
.verification-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f6ffed 0%, #e6f7ff 100%);
  border-radius: 12px;
  margin-top: 12px;
}

.slider-label {
  font-size: 14px;
  font-weight: 500;
  color: #999;
  transition: color 0.3s;
}

.slider-label.verified-label {
  color: #999;
}

.verification-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  cursor: pointer;
}

.verification-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-knob {
  position: absolute;
  inset: 0;
  background-color: #e8e8e8;
  border-radius: 32px;
  transition: 0.4s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.slider-knob:before {
  position: absolute;
  content: "✕";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.verification-switch.active .slider-knob {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.verification-switch.active .slider-knob:before {
  transform: translateX(28px);
  content: "✓";
  color: #52c41a;
}

.verification-switch.active + .slider-label,
.verification-switch-wrapper:has(.active) .slider-label.verified-label {
  color: #52c41a;
}

/* 激活状态标签颜色 */
.verification-switch.active ~ .slider-label.verified-label,
.verification-slider-wrapper:has(.verification-switch.active) .slider-label.verified-label {
  color: #52c41a;
  font-weight: 600;
}

.verification-slider-wrapper:has(.verification-switch.active) .slider-label:not(.verified-label) {
  color: #999;
}

.verification-slider-wrapper:not(:has(.verification-switch.active)) .slider-label:not(.verified-label) {
  color: #52c41a;
  font-weight: 600;
}

.verification-slider-wrapper:not(:has(.verification-switch.active)) .slider-label.verified-label {
  color: #999;
}

/* ========= 用户详情弹窗 ========= */
.user-detail-dialog {
  width: 560px;
  max-height: 85vh;
}
.user-detail-dialog .dialog-body {
  max-height: 65vh;
  overflow-y: auto;
}
.ud-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #E8F8F5, #D4F0E8);
  border-radius: 12px;
  margin-bottom: 16px;
}
.ud-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid #2EC4B6;
}
.ud-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ud-avatar span {
  font-size: 32px;
  color: #2EC4B6;
  font-weight: 700;
}
.ud-basic {
  flex: 1;
  min-width: 0;
}
.ud-name {
  font-size: 18px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.ud-sub {
  font-size: 12px;
  color: #718096;
  margin-bottom: 2px;
  font-family: monospace;
  word-break: break-all;
}
.ud-section {
  margin-bottom: 16px;
}
.ud-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #2D3748;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E2E8F0;
}
.ud-section-title.danger {
  color: #E53E3E;
  border-bottom-color: #FED7D7;
}
.ud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.ud-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #F7FAFC;
  border-radius: 8px;
  font-size: 13px;
}
.ud-item.full {
  grid-column: 1 / -1;
}
.ud-label {
  color: #718096;
  flex-shrink: 0;
}
.ud-value {
  color: #2D3748;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  margin-left: 8px;
}
.ud-value.highlight {
  color: #2EC4B6;
  font-weight: 700;
  font-size: 15px;
}
.ud-ban-info {
  padding: 12px;
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 8px;
  font-size: 13px;
  color: #C53030;
  line-height: 1.8;
}
.ud-stats {
  display: flex;
  gap: 12px;
}
.ud-stat-card {
  flex: 1;
  background: linear-gradient(135deg, #F7FAFC, #EDF2F7);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid #E2E8F0;
}
.ud-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #2EC4B6;
}
.ud-stat-label {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

/* ========= 拉黑确认弹窗 ========= */
.ban-dialog {
  width: 440px;
}
.ban-user-info {
  padding: 12px 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  margin-bottom: 14px;
}
.ban-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #92400E;
}
.ban-user-id {
  font-size: 12px;
  color: #A16207;
  margin-top: 2px;
  font-family: monospace;
}

/* ========= 删除确认弹窗 ========= */
.delete-dialog {
  width: 460px;
}
.delete-warn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 10px;
  margin-bottom: 14px;
}
.delete-warn-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.delete-warn-text {
  font-size: 13px;
  color: #C53030;
  font-weight: 600;
}
.delete-user-info {
  padding: 10px 14px;
  background: #F7FAFC;
  border-radius: 8px;
  font-size: 13px;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 10px;
}
.delete-user-info code {
  font-size: 11px;
  background: #EDF2F7;
  padding: 2px 6px;
  border-radius: 4px;
}
.delete-items {
  font-size: 13px;
  color: #2D3748;
  font-weight: 600;
  margin-bottom: 6px;
}
.delete-list {
  font-size: 12px;
  color: #E53E3E;
  padding-left: 20px;
  line-height: 1.8;
  margin-bottom: 4px;
}
.delete-list li::marker {
  color: #E53E3E;
}

/* ========== 客服服务管理页 ========== */
.page-sub {
  color: #718096;
  font-size: 14px;
  margin: -8px 0 16px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover {
  border-color: #BEE3F8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.service-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #EBF8FF;
  color: #2B6CB0;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-title-wrap { flex: 1; min-width: 0; }
.service-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A202C;
  line-height: 1.3;
}
.service-sub {
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
}
.service-switch { flex-shrink: 0; }
.service-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4A5568;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
}
.meta-sep { color: #CBD5E0; }
.service-staff {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
}
.service-staff-list { display: flex; flex-direction: column; gap: 8px; }
.service-staff-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 10px;
  background: #F7FAFC;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
}
.service-staff-row:hover { border-color: #CBE3F5; }
.service-staff-row.dragging { opacity: 0.45; }
.ss-drag {
  color: #A0AEC0;
  font-size: 14px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.ss-drag:active { cursor: grabbing; }
.ss-order {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #A0AEC0;
}
/* 上移/下移按钮（上下叠放，节省卡片宽度） */
.ss-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.ss-move-btn {
  width: 20px;
  height: 14px;
  padding: 0;
  line-height: 1;
  font-size: 8px;
  color: #4A5568;
  background: #EDF2F7;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  cursor: pointer;
}
.ss-move-btn:hover:not(:disabled) { background: #E2E8F0; color: #2D3748; }
.ss-move-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ss-name {
  font-weight: 600;
  color: #2D3748;
  flex-shrink: 0;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-phone {
  color: #5E6E68;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-staff-empty { font-size: 12px; color: #A0AEC0; padding: 4px 0 8px; }
.service-staff-add { display: flex; gap: 8px; margin-top: 10px; }
.service-id-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12px;
  color: #2D3748;
  outline: none;
}
.service-id-input:focus {
  border-color: #63B3ED;
  box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.15);
}
.service-tip {
  font-size: 13px;
  color: #718096;
  background: #F7FAFC;
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 3px solid #63B3ED;
}

/* ===== 举报管理（全新设计） ===== */

/* --- 页面头部 --- */
.rp-page { padding: 28px 32px; }
.rp-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; gap: 20px; flex-wrap: wrap;
}
.rp-header-left { display: flex; align-items: center; gap: 16px; }
.rp-icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.rp-icon-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.rp-icon-danger { background: linear-gradient(135deg, #FEE2E2, #FECACA); }
.rp-title { font-size: 22px; font-weight: 700; color: #1A202C; margin: 0; letter-spacing: -0.3px; }
.rp-subtitle { font-size: 13px; color: #718096; margin: 4px 0 0; }

/* 统计小卡片 */
.rp-header-right { display: flex; gap: 10px; }
.rp-stat-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 20px; border-radius: 12px; min-width: 80px;
}
.rp-stat-pending { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.rp-stat-resolved { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); }
.rp-stat-rejected { background: linear-gradient(135deg, #E2E8F0, #CBD5E0); }
.rp-stat-num { font-size: 20px; font-weight: 700; line-height: 1.2; }
.rp-stat-pending .rp-stat-num { color: #B45309; }
.rp-stat-resolved .rp-stat-num { color: #047857; }
.rp-stat-rejected .rp-stat-num { color: #4A5568; }
.rp-stat-label { font-size: 11px; opacity: 0.75; margin-top: 2px; }

/* --- 标签栏 --- */
.rp-tabs-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.rp-tabs { display: flex; gap: 6px; background: #F7FAFC; padding: 5px; border-radius: 12px; }
.rp-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border: none; background: transparent;
  border-radius: 9px; font-size: 13px; color: #4A5568; cursor: pointer;
  transition: all 0.2s ease; font-weight: 500;
}
.rp-tab:hover { background: rgba(46,196,182,0.08); color: #2EC4B6; }
.rp-tab.active {
  background: linear-gradient(135deg, #2EC4B6, #28B5A8);
  color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(46,196,182,0.3);
}
.rp-tab-count {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.rp-count-pending { background: #ED8936; }
.rp-count-rejected { background: #A0AEC0; }
.rp-count-resolved { background: #48BB78; }
.rp-tab.active .rp-tab-count { background: #fff !important; }

.rp-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid #E2E8F0; background: #fff;
  border-radius: 10px; font-size: 13px; color: #4A5568; cursor: pointer;
  transition: all 0.2s;
}
.rp-refresh-btn:hover { border-color: #2EC4B6; color: #2EC4B6; }
.rp-refresh-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.rp-spinner {
  width: 14px; height: 14px; border: 2px solid #E2E8F0; border-top-color: #2EC4B6;
  border-radius: 50%; display: inline-block;
}
.rp-spinner.spinning { animation: rp-spin 0.7s linear infinite; }
@keyframes rp-spin { to { transform: rotate(360deg); } }

/* --- 卡片列表 --- */
.rp-card-list { display: flex; flex-direction: column; gap: 12px; }
.rp-card {
  background: #fff; border: 1px solid #EDF2F7; border-radius: 16px;
  padding: 18px 22px; cursor: pointer; transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
.rp-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #FC8181, #E53E3E); opacity: 0; transition: opacity 0.2s;
}
.rp-card:hover { border-color: #CBD5E0; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.rp-card:hover::before { opacity: 1; }

/* 卡片头部 */
.rp-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.rp-card-head-left { display: flex; align-items: center; gap: 8px; }
.rp-doc-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  letter-spacing: 0.5px;
}
.rp-doc-house { background: #D4F7E0; color: #065F46; }
.rp-doc-demand { background: #DBEAFE; color: #1E40AF; }

/* 状态徽章 */
.rp-status-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  letter-spacing: 0.3px;
}
.rp-status-lg { font-size: 12px; padding: 4px 12px; }
.rp-status-pending { background: #FEF3C7; color: #B45309; }
.rp-status-resolved { background: #D1FAE5; color: #047857; }
.rp-status-rejected { background: #E2E8F0; color: #4A5568; }

.rp-time { font-size: 12px; color: #A0AEC0; }

/* 举报类型 + 被举报对象 */
.rp-card-title-row, .rp-card-target {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.rp-report-type-label, .rp-target-label {
  font-size: 11px; color: #A0AEC0; flex-shrink: 0; min-width: 62px;
}
.rp-report-type-value {
  font-size: 13px; font-weight: 600; color: #E53E3E;
}
.rp-target-title {
  font-size: 14px; font-weight: 500; color: #1A202C;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 用户区 */
.rp-card-users {
  display: flex; align-items: center; gap: 12px; margin: 14px 0;
  padding: 12px; background: #F7FAFC; border-radius: 12px;
}
.rp-user-block { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-user-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.rp-user-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.rp-reporter-icon { background: linear-gradient(135deg, #FECACA, #FCA5A5); }
.rp-target-icon { background: linear-gradient(135deg, #BFDBFE, #93C5FD); }
.rp-user-info { flex: 1; min-width: 0; }
.rp-user-name { font-size: 13px; font-weight: 600; color: #1A202C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-user-meta { font-size: 11px; color: #A0AEC0; margin-top: 2px; }
.rp-user-phone { font-size: 12px; color: #2EC4B6; font-weight: 600; flex-shrink: 0; }
.rp-user-arrow {
  font-size: 16px; color: #CBD5E0; flex-shrink: 0; padding: 0 4px;
}

/* 卡片操作 */
.rp-card-actions { display: flex; justify-content: flex-end; }
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; gap: 6px;
}
.rp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rp-btn-primary {
  background: linear-gradient(135deg, #2EC4B6, #28B5A8); color: #fff;
  box-shadow: 0 2px 8px rgba(46,196,182,0.3);
}
.rp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,196,182,0.4); }
.rp-btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.rp-btn-outline { background: transparent; border: 1px solid #2EC4B6; color: #2EC4B6; }
.rp-btn-outline:hover { background: rgba(46,196,182,0.06); }
.rp-btn-ghost { background: #F7FAFC; color: #718096; }
.rp-btn-ghost:hover { background: #EDF2F7; }
.rp-btn-danger {
  background: linear-gradient(135deg, #FC8181, #E53E3E); color: #fff;
  box-shadow: 0 2px 8px rgba(229,62,62,0.3);
}
.rp-btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229,62,62,0.4); }
.rp-btn-danger-solid {
  background: linear-gradient(135deg, #F56565, #C53030); color: #fff;
  box-shadow: 0 2px 8px rgba(197,48,48,0.3);
}
.rp-btn-danger-solid:hover { transform: translateY(-1px); }
.rp-btn-warning {
  background: linear-gradient(135deg, #F6AD55, #DD6B20); color: #fff;
  box-shadow: 0 2px 8px rgba(221,107,32,0.3);
}
.rp-btn-warning:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,107,32,0.4); }

/* 空状态 */
.rp-empty {
  padding: 60px 20px; text-align: center;
}
.rp-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.rp-empty-text { font-size: 14px; color: #A0AEC0; }

/* --- 分页 --- */
.rp-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #EDF2F7;
}
.rp-page-btn {
  padding: 7px 18px; border: 1px solid #E2E8F0; background: #fff; border-radius: 9px;
  font-size: 13px; color: #4A5568; cursor: pointer; transition: all 0.2s;
}
.rp-page-btn:hover:not(:disabled) { border-color: #2EC4B6; color: #2EC4B6; }
.rp-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rp-page-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4A5568; }
.rp-page-current { font-weight: 700; color: #2EC4B6; }
.rp-page-sep { color: #CBD5E0; }
.rp-page-count { color: #A0AEC0; margin-left: 4px; }

/* ==================== 举报详情弹窗 ==================== */
.rp-overlay {
  position: fixed; inset: 0; background: rgba(26,32,44,0.5);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 990; animation: rp-fadeIn 0.2s ease;
}
@keyframes rp-fadeIn { from { opacity: 0; } to { opacity: 1; } }

.rp-dialog {
  background: #fff; border-radius: 20px; width: 860px; max-width: 95vw;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  animation: rp-slideUp 0.25s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
@keyframes rp-slideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 弹窗头部 */
.rp-dialog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid #EDF2F7; background: #FAFBFC;
}
.rp-dialog-head-left { display: flex; align-items: center; gap: 12px; }
.rp-dialog-title { font-size: 18px; font-weight: 700; color: #1A202C; margin: 0; }
.rp-dialog-close {
  width: 32px; height: 32px; border: none; background: #EDF2F7; border-radius: 8px;
  font-size: 14px; color: #718096; cursor: pointer; transition: all 0.2s;
}
.rp-dialog-close:hover { background: #E2E8F0; color: #E53E3E; }

/* 弹窗主体 */
.rp-dialog-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
}

/* 上半部分：双栏 */
.rp-detail-top { display: flex; gap: 16px; margin-bottom: 16px; }
.rp-detail-col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* 下半部分：双卡片 */
.rp-detail-bottom { display: flex; gap: 16px; }
.rp-doc-card { flex: 1.2; }
.rp-log-card { flex: 1; }

/* 信息卡片通用 */
.rp-info-card {
  background: #FAFBFC; border: 1px solid #EDF2F7; border-radius: 14px;
  padding: 16px 18px;
}
.rp-info-card-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #EDF2F7;
}
.rp-info-icon { font-size: 15px; }
.rp-info-title { font-size: 14px; font-weight: 700; color: #2D3748; flex: 1; }
.rp-reporter-card { border-left: 3px solid #FC8181; }
.rp-target-card { border-left: 3px solid #63B3ED; }
.rp-content-card { border-left: 3px solid #F6AD55; }

/* 用户信息行 */
.rp-info-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rp-info-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.rp-info-avatar-img { object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.rp-avatar-reporter { background: linear-gradient(135deg, #FC8181, #E53E3E); }
.rp-avatar-target { background: linear-gradient(135deg, #63B3ED, #3182CE); }
.rp-info-user-detail { flex: 1; min-width: 0; }
.rp-info-name { font-size: 14px; font-weight: 600; color: #1A202C; }
.rp-info-sub { font-size: 11px; color: #A0AEC0; margin-top: 2px; }

/* 键值对行 */
.rp-info-rows { display: flex; flex-direction: column; gap: 6px; }
.rp-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; padding: 4px 0;
}
.rp-info-row-label { color: #A0AEC0; }
.rp-info-row-value { color: #2D3748; font-weight: 500; }
.rp-value-phone { color: #2EC4B6; font-weight: 600; }

/* 举报内容 */
.rp-content-type {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #FEF3C7; border-radius: 8px; margin-bottom: 10px;
}
.rp-content-type-label { font-size: 12px; color: #92400E; }
.rp-content-type-value { font-size: 13px; font-weight: 700; color: #B45309; }

.rp-content-desc { margin-bottom: 10px; }
.rp-content-desc-label { font-size: 11px; color: #A0AEC0; margin-bottom: 4px; }
.rp-content-desc-text {
  font-size: 13px; color: #2D3748; background: #fff; border: 1px solid #EDF2F7;
  border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all;
  line-height: 1.6;
}

.rp-content-evidence { margin-top: 8px; }
.rp-content-evidence-label { font-size: 11px; color: #A0AEC0; margin-bottom: 6px; }
.rp-content-evidence-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-evidence-img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: zoom-in;
  border: 1px solid #E2E8F0; transition: transform 0.15s;
}
.rp-evidence-img:hover { transform: scale(1.05); }
.rp-content-evidence-empty { font-size: 12px; color: #A0AEC0; padding: 6px 0; }

/* 被举报房源 */
.rp-badge-danger { background: #FEE2E2; color: #C53030; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.rp-doc-deleted { margin-left: auto; }
.rp-doc-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.rp-doc-cell { display: flex; flex-direction: column; gap: 2px; }
.rp-doc-cell-full { grid-column: 1 / -1; }
.rp-doc-label { font-size: 11px; color: #A0AEC0; }
.rp-doc-value { font-size: 13px; color: #2D3748; }
.rp-doc-title { font-weight: 600; }
.rp-doc-actions { margin-top: 12px; }
.rp-doc-empty { font-size: 13px; color: #A0AEC0; padding: 16px 0; text-align: center; }

/* 处置标签 */
.rp-handle-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
  margin-right: 6px;
}
.rp-handle-takedown { background: #D4F7E0; color: #065F46; }
.rp-handle-delete { background: #FEE2E2; color: #C53030; }
.rp-handle-note { color: #718096; font-size: 12px; }

/* 处理日志时间线 */
.rp-log-list { display: flex; flex-direction: column; }
.rp-log-item { display: flex; gap: 12px; padding-bottom: 14px; }
.rp-log-item:last-child { padding-bottom: 0; }
.rp-log-timeline { display: flex; flex-direction: column; align-items: center; width: 18px; flex-shrink: 0; }
.rp-log-dot { width: 10px; height: 10px; border-radius: 50%; background: #2EC4B6; flex-shrink: 0; margin-top: 4px; }
.rp-log-line { width: 2px; flex: 1; background: #E2E8F0; margin-top: 4px; }
.rp-log-body { flex: 1; min-width: 0; }
.rp-log-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rp-log-action { font-size: 13px; font-weight: 600; color: #2D3748; }
.rp-log-time { font-size: 11px; color: #A0AEC0; flex-shrink: 0; }
.rp-log-meta { font-size: 12px; color: #718096; margin-top: 2px; }
.rp-log-note {
  font-size: 12px; color: #4A5568; background: #fff; border: 1px solid #EDF2F7;
  border-radius: 6px; padding: 6px 10px; margin-top: 4px;
  white-space: pre-wrap; word-break: break-all; line-height: 1.5;
}

/* 弹窗底部 */
.rp-dialog-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-top: 1px solid #EDF2F7; background: #FAFBFC; gap: 10px;
}
.rp-dialog-actions-right { display: flex; gap: 8px; }

/* --- 响应式 --- */
@media (max-width: 900px) {
  .rp-detail-top, .rp-detail-bottom { flex-direction: column; }
  .rp-dialog { width: 95vw; max-height: 92vh; }
}

/* 举报详情弹窗层级低于通用确认弹窗，保证下架/删除/驳回的确认框浮在详情之上 */
.rp-overlay.report-overlay { z-index: 990; }

/* ========= 用户积分明细弹窗（管理端审计） ========= */
/* 用户列表中可点击的积分数徽章 */
.credit-badge {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.credit-badge:hover {
  background: rgba(66, 153, 225, 0.28) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.35);
}
.credit-badge-hint { font-size: 11px; font-weight: 500; opacity: 0.85; }

.credit-logs-dialog {
  width: 820px;
  max-width: 94%;
  max-height: 88vh;
}
.credit-logs-dialog .dialog-body {
  max-height: 68vh;
  overflow-y: auto;
}
.cl-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: linear-gradient(135deg, #E8F8F5, #F0F9FF);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #2D3748;
}
.cl-table { font-size: 13px; }
.cl-table th, .cl-table td { padding: 8px 10px; }
.cl-time { white-space: nowrap; color: #4A5568; font-size: 12px; }
.cl-remark {
  color: #4A5568;
  max-width: 320px;
  word-break: break-all;
  line-height: 1.5;
}
.cl-type-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #EDF2F7;
  color: #4A5568;
  white-space: nowrap;
}
.col-amount { text-align: right; font-weight: 700; white-space: nowrap; }
.cl-plus { color: #38A169; }
.cl-minus { color: #E53E3E; }
/* 用户已在小程序端删除的消息：管理端仍显示，行弱化 + 状态标记 */
.row-user-deleted { background: #FAFAFA; color: #A0AEC0; }
.row-user-deleted .cl-remark,
.row-user-deleted .cl-time { color: #A0AEC0; }
.cl-state {
  text-align: center;
  padding: 40px 0;
  color: #A0AEC0;
  font-size: 14px;
}

/* 积分明细：变动后余额列 */
.cl-balance { color: #2D3748; font-weight: 700; }
.row-user-deleted .cl-balance { color: #A0AEC0; font-weight: 600; }

/* ========== 首页头图广告 ========== */
.banner-tip-card {
  background: linear-gradient(125deg, #17B79C 0%, #35C4A0 60%, #6FD68C 100%);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #fff;
}
.banner-tip-card .bt-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.banner-tip-card .bt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.banner-tip-card .bt-tag {
  background: rgba(255,255,255,0.25);
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 13px;
}
.banner-tip-card .bt-val { font-weight: 700; font-size: 15px; }
.banner-tip-card .bt-cm { opacity: 0.9; }
.banner-tip-card .bt-desc { margin-top: 8px; opacity: 0.9; font-size: 13px; }

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.banner-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.banner-card.disabled { opacity: 0.55; }
.bc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bc-index { font-weight: 700; color: #2D3748; font-size: 14px; }
.bc-switch { margin: 0; }

/* 广告位分场景开关（首页 / 发布页） */
.bc-scene-switches {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bc-scene {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.bc-scene-label {
  font-size: 12px;
  color: #4A5568;
  font-weight: 500;
}
.bc-scene input:checked ~ .slider { background: #38A169; }

.bc-upload {
  display: block;
  width: 100%;
  height: 110px;
  border: 2px dashed #CBD5E1;
  border-radius: 10px;
  background: #F8FAFC;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.bc-upload.has-image { border-style: solid; border-color: #17B79C; }
.bc-upload .bc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 13px;
}
.bc-upload .bc-plus { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.bc-upload .bc-preview { width: 100%; height: 100%; object-fit: cover; display: block; }

.bc-body { margin-top: 12px; }
.bc-field { margin-bottom: 12px; }
.bc-field label { display: block; font-size: 13px; color: #64748B; margin-bottom: 6px; }
.bc-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}
.bc-input:focus { outline: none; border-color: #17B79C; }

.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.banner-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
}
.bf-count { font-size: 14px; color: #94A3B8; }

/* ============ 小程序背景色斑图 ============ */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.bg-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.bg-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #F1F5F9;
}
.bg-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-order {
  position: absolute; left: 6px; top: 6px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
}
.bg-card-actions { display: flex; gap: 6px; margin-top: 10px; }
.bg-card-actions .btn { flex: 1; padding: 4px 0; font-size: 12px; }
.bg-add { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bg-add-inner {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #94A3B8; font-size: 13px; background: #F8FAFC;
}
.bg-plus { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.bg-add.uploading { opacity: 0.6; pointer-events: none; }

/* ============================================================
 * 科技感仪表盘（dashboard-page）
 * 只作用于 .dashboard-page 容器，不影响其他后台页面
 * 主题：深色渐变背景 + 玻璃态卡片 + 发光边框 + 等宽数字
 * ============================================================ */
.dashboard-page {
  /* 局部深色渐变背景，保留侧边栏原有深色 */
  background:
    radial-gradient(ellipse at 20% 0%, rgba(34,211,238,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(139,92,246,0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(16,185,129,0.08) 0%, transparent 50%),
    linear-gradient(160deg, #0b1222 0%, #0f172a 40%, #1e1b4b 100%);
  margin: -24px -32px -24px -32px;       /* 让背景占满 main-content */
  padding: 24px 32px 32px;
  min-height: calc(100vh - 48px);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}
/* 覆盖 page-title 深色主题 */
.dashboard-page .page-title {
  color: #f1f5f9;
  letter-spacing: 1px;
  font-weight: 600;
}

/* 顶栏：LIVE 状态点 + 服务时间 + 刷新按钮 */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.dash-header .page-title { margin-bottom: 0; display: flex; align-items: center; gap: 10px; }
.dash-online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: dash-online-pulse 1.8s infinite;
}
@keyframes dash-online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.dash-online-text {
  font-size: 11px; letter-spacing: 2px; color: #10b981;
  padding: 2px 6px; border: 1px solid rgba(16,185,129,0.5);
  border-radius: 4px; margin-left: 4px;
}
.dash-server-time {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #94a3b8;
}
.dash-time-value {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  color: #cbd5e1; padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}
.dash-refresh {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 13px;
  color: #a5f3fc;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 6px; cursor: pointer; transition: all .2s;
}
.dash-refresh:hover { background: rgba(14,165,233,0.25); color: #fff; }
.dash-refresh-icon { display: inline-block; transition: transform .5s; }
.dash-refresh-icon.is-spinning { animation: dash-spin 0.8s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }

/* ========== 第一行：7 个 KPI 卡片 ========== */
.dash-core-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 14px; margin-bottom: 22px;
}
@media (max-width: 1400px) { .dash-core-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 900px)  { .dash-core-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.dash-kpi-card {
  position: relative; overflow: hidden;
  padding: 16px 18px 16px 60px;
  background: linear-gradient(140deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.dash-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--kpi-color, #22d3ee);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
}
/* 发光背景块 */
.dash-kpi-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 0% 0%, var(--kpi-from, #0ea5e9) 0%, transparent 55%);
  opacity: 0.35;
}
.dash-kpi-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 28px; filter: drop-shadow(0 0 8px var(--kpi-color, #22d3ee));
}
.dash-kpi-body { position: relative; z-index: 1; }
.dash-kpi-value {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--kpi-color, #22d3ee);
  text-shadow: 0 0 12px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}
.dash-kpi-label {
  font-size: 12px; color: #94a3b8; margin-top: 6px; letter-spacing: 1px;
}
.dash-kpi-tip {
  font-size: 11px; margin-top: 4px;
  color: var(--kpi-color, #22d3ee);
  opacity: 0.85; letter-spacing: 0.5px;
}

/* ========== 面板（2 列组合面板容器） ========== */
.dash-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-bottom: 18px;
}
@media (max-width: 900px) { .dash-two-col { grid-template-columns: 1fr; } .dash-map-row { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .dash-map-row { grid-template-columns: 1fr 280px; } }

.dash-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 20px;
  backdrop-filter: blur(10px);
}
.dash-panel-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #f1f5f9;
  letter-spacing: 1px; margin-bottom: 16px;
  flex-shrink: 0;
}
.dash-panel-title-bar {
  width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 8px rgba(6,182,212,0.5);
}
.dash-bar-warn { background: linear-gradient(180deg,#f59e0b,#ef4444); box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.dash-bar-purple { background: linear-gradient(180deg,#8b5cf6,#ec4899); box-shadow: 0 0 8px rgba(139,92,246,0.5); }
.dash-bar-green { background: linear-gradient(180deg,#10b981,#22d3ee); box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.dash-bar-blue { background: linear-gradient(180deg,#3b82f6,#06b6d4); box-shadow: 0 0 8px rgba(59,130,246,0.5); }
.dash-bar-teal { background: linear-gradient(180deg,#14b8a6,#06b6d4); box-shadow: 0 0 8px rgba(20,184,166,0.5); }
.dash-panel-sub {
  font-size: 10px; color: #64748b; letter-spacing: 2px; font-weight: 500;
  margin-left: auto;
}
.dash-sub-warn { color: #f59e0b; }

/* ========== 今日新增 ========== */
.dash-today-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 14px;
}
.dash-today-item {
  text-align: center; padding: 14px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: transform .2s, border-color .2s;
}
.dash-today-item:hover { transform: translateY(-2px); border-color: rgba(34,211,238,0.4); }
.dash-today-num {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-today-label { font-size: 12px; color: #94a3b8; margin-top: 4px; letter-spacing: 0.5px; }

/* ========== 多时段活跃统计（近 3/7/15/30 天） ========== */
.dash-period-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.dash-period-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  transition: all .2s ease;
}
.dash-period-item:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15);
}
.dash-period-label {
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dash-period-val {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
/* 窄屏适配：4 列 → 2 列 */
@media (max-width: 1100px) {
  .dash-period-row { grid-template-columns: repeat(2, 1fr); }
}
/* 超窄屏 → 单列 */
@media (max-width: 560px) {
  .dash-period-row { grid-template-columns: 1fr; }
}

/* ========== 待办队列 ========== */
.dash-todo-list { display: flex; flex-direction: column; gap: 8px; }
.dash-todo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: all .2s;
}
.dash-todo-item:hover {
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.3);
  transform: translateX(3px);
}
.dash-todo-count {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 20px; font-weight: 700;
  min-width: 36px; text-align: center;
}
.dash-todo-count.warn   { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,0.5); }
.dash-todo-count.danger { color: #f87171; text-shadow: 0 0 8px rgba(248,113,113,0.5); }
.dash-todo-count.muted  { color: #94a3b8; }
.dash-todo-info { flex: 1; }
.dash-todo-title { font-size: 14px; color: #e2e8f0; font-weight: 500; }
.dash-todo-desc  { font-size: 11px; color: #64748b; margin-top: 2px; }
.dash-todo-arrow {
  font-size: 18px; color: #64748b; transition: transform .2s, color .2s;
}
.dash-todo-item:hover .dash-todo-arrow { color: #22d3ee; transform: translateX(4px); }

/* ========== 条形图（分类/状态分布） ========== */
.dash-bar-list { display: flex; flex-direction: column; gap: 16px; }
.dash-bar-row-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 6px;
}
.dash-bar-label { color: #cbd5e1; }
.dash-bar-num {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  color: #94a3b8; font-size: 12px;
}
.dash-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px; overflow: hidden;
  position: relative;
}
.dash-bar-fill {
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(34,211,238,0.4);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.dash-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: dash-bar-shine 2.4s linear infinite;
}
@keyframes dash-bar-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== 时间线（最近活动） ========== */
.dash-timeline { display: flex; flex-direction: column; gap: 0; }
.dash-tl-item {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.dash-tl-item:last-child { border-bottom: none; }
.dash-tl-dot {
  flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #22d3ee; margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.2), 0 0 10px rgba(34,211,238,0.6);
}
.dash-tl-body { flex: 1; min-width: 0; }
.dash-tl-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-tl-avatar, .dash-tl-avatar-fallback {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
}
.dash-tl-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; background: rgba(255,255,255,0.08);
}
.dash-tl-phone {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 11px; color: #64748b;
}
.dash-tl-time {
  font-size: 11px; color: #64748b; margin-top: 4px; letter-spacing: 0.3px;
}

/* 小标签 */
.dash-tag-admin {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: rgba(250,204,21,0.15); color: #fbbf24;
  border: 1px solid rgba(250,204,21,0.3);
  letter-spacing: 0.5px;
}
.dash-tag-cat {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  letter-spacing: 0.5px;
}
.tag-cat-city   { background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }
.tag-cat-summer { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.tag-cat-winter { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.dash-tag-status {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  letter-spacing: 0.5px;
}
.status-approved { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.status-pending  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.status-rejected { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.dash-empty {
  text-align: center; color: #475569; font-size: 12px; padding: 24px 0;
}

/* ========== Leaflet 全国地图 ========== */
.dash-map-row {
  flex: 1;
  min-height: 0;
  margin-bottom: 4px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}
.dash-map-panel {
  padding: 18px 20px;
  transition: all .25s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dash-map-panel.is-fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  margin: 0; padding: 16px 24px;
  border-radius: 0 !important;
  max-width: none !important;
  width: 100vw; height: 100vh;
  background: linear-gradient(160deg, #0b1222, #0f172a 40%, #1e1b4b) !important;
  border: none !important;
  box-shadow: none !important;
}
.dash-map-panel.is-fullscreen .dash-map-wrap { height: calc(100vh - 110px); }
.dash-map-panel .dash-panel-title { margin-bottom: 12px; flex-wrap: wrap; }

/* 图例 */
.dash-map-legend {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto; margin-right: 12px; font-size: 12px; color: #94a3b8;
  letter-spacing: 0.3px;
}
.dash-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
}
.dash-legend-swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 6px currentColor;
}
.dash-legend-city   { background: #22d3ee; color: #22d3ee; box-shadow: 0 0 6px #22d3ee; }
.dash-legend-summer { background: #34d399; color: #34d399; box-shadow: 0 0 6px #34d399; }
.dash-legend-winter { background: #fbbf24; color: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.dash-legend-sep { margin: 0 2px; color: #475569; }
.dash-legend-hint { color: #64748b; font-size: 11px; }
/* 旧图例残留清理 */
.dash-legend-dot { display: none; }

/* 全屏按钮 */
.dash-fullscreen-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; font-size: 12px;
  color: #a5f3fc;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 6px; cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.dash-fullscreen-btn:hover { background: rgba(14,165,233,0.28); color: #fff; }
.dash-fs-icon { font-size: 14px; line-height: 1; }
.dash-fs-text { letter-spacing: 0.5px; }

/* 地图容器 */
.dash-map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.dash-map {
  width: 100%; height: 100%;
  background: #0b1222;          /* 深色底，瓦片加载前的 fallback */
}
/* leaflet.css 在本文件之后加载，其 .leaflet-container 默认 #ddd 会盖掉深色底，这里提权覆盖 */
.dash-map.leaflet-container {
  background: #0b1222;
}
/* 空状态遮罩 */
.dash-map-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(11,18,34,0.75);
  color: #64748b; font-size: 14px; z-index: 500;
}
.dash-map-empty-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.7; }
.dash-map-empty-hint { font-size: 11px; color: #475569; margin-top: 6px; letter-spacing: 0.3px; }

/* Leaflet 控件深色化 */
.leaflet-control-zoom a,
.leaflet-control-attribution {
  background: rgba(15,23,42,0.85) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(6px);
}
.leaflet-control-zoom a:hover {
  background: rgba(30,41,59,0.95) !important;
  color: #fff !important;
}
.leaflet-control-attribution {
  font-size: 10px !important;
  padding: 2px 6px !important;
}

/* 发光 Marker（divIcon） */
.dash-marker-wrap, .dash-pin-wrap { display: block !important; }
.dash-marker { position: relative; display: inline-block; }
/* 外层脉冲光环：绕 pin 身体位置扩散 */
.dash-marker-pulse {
  position: absolute;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.25);
  border: 1px solid rgba(34, 211, 238, 0.35);
  animation: dash-marker-pulse 2.4s ease-out infinite;
  z-index: -1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* 旧的 .dash-marker-glow（已被 pulse 取代） */
.dash-marker-glow { display: none; }
@keyframes dash-marker-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* 深色 Popup */
.dash-popup {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.dash-popup .leaflet-popup-content-wrapper {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 10px;
  color: #e2e8f0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 16px rgba(34,211,238,0.15);
}
.dash-popup .leaflet-popup-content { margin: 12px 14px !important; }
.dash-popup .leaflet-popup-tip {
  background: rgba(34,211,238,0.3) !important;
  border-color: rgba(34,211,238,0.3) !important;
}
.dash-popup .leaflet-popup-close-button {
  color: #64748b !important;
  font-size: 18px !important;
  top: 6px !important; right: 8px !important;
}
.dash-popup .leaflet-popup-close-button:hover { color: #fff !important; }
.dash-popup-inner { min-width: 180px; }
.dash-popup-name {
  font-size: 14px; font-weight: 600; color: #22d3ee; margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.dash-popup-city { font-size: 12px; color: #cbd5e1; margin-bottom: 4px; }
/* popup 彩色分类标签 */
.dash-popup-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.dash-popup-tag {
  font-size: 10px; padding: 1px 7px; border-radius: 10px; letter-spacing: 0.4px;
  border: 1px solid; font-weight: 500;
}
.dash-popup-tag.tag-cat-city   { background: rgba(34,211,238,0.12); color: #22d3ee; border-color: rgba(34,211,238,0.35); }
.dash-popup-tag.tag-cat-summer { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.35); }
.dash-popup-tag.tag-cat-winter { background: rgba(251,191,36,0.12); color: #fbbf24; border-color: rgba(251,191,36,0.35); }
.dash-popup-tag.tag-cat-none   { background: rgba(148,163,184,0.12); color: #64748b; border-color: rgba(148,163,184,0.25); }
.dash-popup-addr {
  font-size: 11px; color: #94a3b8; line-height: 1.5;
  border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 6px;
}
.dash-popup-meta {
  font-size: 11px; color: #475569; margin-top: 8px;
  text-align: right; letter-spacing: 0.3px;
}

/* ========== 点亮城市列表 ========== */
.dash-city-list-panel {
  padding: 18px 20px;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dash-city-list-wrap {
  flex: 1;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 4px;
}
.dash-city-list-wrap::-webkit-scrollbar { width: 4px; }
.dash-city-list-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.dash-city-list {
  display: flex; flex-direction: column; gap: 10px;
}
.dash-city-item {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
}
.dash-city-item:hover {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.3);
  transform: translateX(2px);
}
.dash-city-item:active { transform: translateX(0); }

.dash-city-item-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.dash-city-name {
  font-size: 14px; font-weight: 600;
  color: #f1f5f9; letter-spacing: 0.3px;
}
.dash-city-count {
  font-size: 11px;
  color: #22d3ee;
  background: rgba(34,211,238,0.12);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(34,211,238,0.25);
}

/* 区县/乡镇 */
.dash-city-regions {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 8px;
}
.dash-city-region {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.08);
}
.dash-city-region-more {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  color: #94a3b8; font-style: italic;
}

/* 房源/需求统计 */
.dash-city-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
  margin-bottom: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.dash-stat {
  font-size: 11px; padding: 3px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #cbd5e1;
  display: inline-flex; align-items: center; gap: 3px;
}
.dash-stat.stat-rent { border-left: 3px solid #22d3ee; }
.dash-stat.stat-sale { border-left: 3px solid #f59e0b; }
.dash-stat.stat-hire { border-left: 3px solid #34d399; }
.dash-stat.stat-buy  { border-left: 3px solid #a78bfa; }

.dash-city-time {
  font-size: 10px; color: #475569; letter-spacing: 0.3px;
}

.dash-city-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 0; color: #64748b; font-size: 13px;
}
.dash-city-empty-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.6; }

/* 全屏时城市列表也隐藏 */
.dash-map-row:has(.dash-map-panel.is-fullscreen) .dash-city-list-panel { display: none; }

/* ==================== 代理商管理 & 数据看板 ==================== */
.ag-name { font-weight: 600; color: #1a202c; }
.ag-contact { font-size: 11px; color: #718096; margin-top: 2px; }

/* 层级标签 */
.ag-level-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ag-level-province { background: #EBF4FF; color: #2B6CB0; }
.ag-level-city { background: #F0FFF4; color: #276749; }
.ag-level-district { background: #FFFAF0; color: #C05621; }

/* 操作日志 */
.ag-logs-block { margin-top: 28px; }
.ag-logs-title { font-size: 15px; font-weight: 700; color: #2d3748; margin: 0 0 12px; }
.ag-log-detail { font-size: 12px; color: #4a5568; max-width: 420px; }
/* 操作日志折叠/展开按钮行 */
.ag-logs-toggle { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ag-logs-toggle-hint { font-size: 12px; color: #a0aec0; }

/* 弹窗内区域级联 */
.ag-region-row { display: flex; gap: 8px; }
.ag-region-row .form-input { flex: 1; min-width: 0; }
.ag-region-hint { font-size: 11px; color: #a0aec0; margin-top: 6px; line-height: 1.5; }

/* ===== 代理商层级树（一级代理 > 二级代理 / 小区物业） ===== */
.ag-tree { margin-top: 4px; }
.ag-tree-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding: 12px 16px;
  background: #F7FAFC; border: 1px solid #EDF2F7; border-radius: 12px;
}
.ag-tree-count { font-size: 13px; color: #4A5568; }
.ag-tree-count b { color: #0FA79A; font-size: 15px; margin: 0 2px; }
.ag-tree-bar-actions { display: flex; gap: 8px; }

.ag-node { margin-bottom: 10px; }
.ag-node-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid #E8EDF3;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ag-node-inner.is-root { border-color: #DCE6EF; box-shadow: 0 1px 8px rgba(31,45,61,.05); }
/* 有下级的行：整行可点击展开/收起，hover 有反馈 */
.ag-node-inner.is-clickable { cursor: pointer; }
.ag-node-inner.is-clickable:hover { border-color: #9FDED8; box-shadow: 0 4px 16px rgba(15,167,154,.10); }
/* 下级节点背景更浅 + 虚线边框，一眼看出层级归属 */
.ag-node-d1 > .ag-node-inner { background: #F8FBFC; }
.ag-node-d2 > .ag-node-inner,
.ag-node-d3 > .ag-node-inner { background: #F4F9FA; border-style: dashed; }

/* 折叠按钮：圆形，明显易点；展开时实心主色 */
.ag-node-caret {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EEF3F7; color: #7A8899; padding: 0;
  font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; user-select: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.ag-node-caret:hover { background: #DFF3F1; color: #0FA79A; }
.ag-node-caret.open { transform: rotate(90deg); background: #0FA79A; color: #FFFFFF; }
.ag-node-caret.open:hover { background: #0C8F84; }
.ag-node-caret.is-placeholder { background: transparent; visibility: hidden; }

.ag-node-bar { flex: 0 0 auto; width: 4px; height: 30px; border-radius: 999px; background: #CBD5E0; }
.ag-bar-province { background: #3182CE; }
.ag-bar-city { background: #0FA79A; }
.ag-bar-district { background: #ED8936; }
.ag-bar-community { background: #A0AEC0; }

.ag-node-body { flex: 1; min-width: 0; }
.ag-node-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-node-name { font-size: 14px; font-weight: 700; color: #1F2D3D; }
.ag-node-kids {
  font-size: 12px; color: #0C8F84; background: rgba(15,167,154,.1);
  padding: 2px 8px; border-radius: 999px;
}
.ag-node-line2 {
  margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: #718096;
}
.ag-node-dot { color: #CBD5E0; }
.ag-node-plat { color: #B7791F; background: #FFFAF0; border-radius: 4px; padding: 1px 6px; }
.ag-node-actions { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }

/* ===== 统一的按钮风格（尺寸/圆角/字重/交互一致） ===== */
.ag-btn {
  height: 28px; padding: 0 12px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; line-height: 1;
  background: #FFFFFF; color: #5A6B7B; border: 1px solid #E8EDF3;
  cursor: pointer; white-space: nowrap; transition: all .16s ease;
}
.ag-btn:hover { border-color: #9FDED8; color: #0C8F84; background: #F3FBF9; }
.ag-btn-primary { background: #0FA79A; border-color: #0FA79A; color: #FFFFFF; }
.ag-btn-primary:hover { background: #0C8F84; border-color: #0C8F84; color: #FFFFFF; }
.ag-btn-success { background: #FFFFFF; border-color: #BFE3C6; color: #2F855A; }
.ag-btn-success:hover { background: #F2FBF4; border-color: #8FD3A3; color: #276749; }
.ag-btn-danger { background: #FFFFFF; border-color: #F3C4C4; color: #D64545; }
.ag-btn-danger:hover { background: #FFF5F5; border-color: #E9A2A2; color: #C53030; }

/* ===== 开关：两种开关尺寸/风格完全一致，开启统一用主色 ===== */
.ag-points-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px 0 12px; border-radius: 999px;
  background: #F7FAFC; border: 1px solid #E8EDF3; cursor: pointer;
  transition: all .16s ease;
}
.ag-points-toggle:hover { border-color: #9FDED8; }
.ag-points-toggle-text { font-size: 12px; font-weight: 600; color: #5A6B7B; white-space: nowrap; }
.ag-points-toggle.is-on { background: #F0FAF8; border-color: #BFE8E3; }
.ag-points-toggle.is-on .ag-points-toggle-text { color: #0C8F84; }

/* 开关本体：统一尺寸 38×20、开启色 = 主色 */
.ag-points-toggle .switch { width: 38px; height: 20px; }
.ag-points-toggle .switch .slider { border-radius: 20px; background-color: #CBD5E0; }
.ag-points-toggle .switch .slider:before { height: 14px; width: 14px; left: 3px; bottom: 3px; }
.ag-points-toggle .switch input:checked + .slider { background-color: #0FA79A; }
.ag-points-toggle .switch input:checked + .slider:before { transform: translateX(18px); }

/* 层级树：账号「已改积分」标记 + 查看积分配置弹窗 */
.ag-points-custom-tag {
  font-size: 12px; color: #B7791F; background: #FFFAF0; border: 1px solid #FEEBC8;
  padding: 2px 8px; border-radius: 999px; cursor: pointer;
}
.ag-points-custom-tag:hover { border-color: #B7791F; }
.apv-scope {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; font-size: 13px; color: #4A5568;
}
.apv-scope .apv-none { color: #A0AEC0; font-size: 12px; }
.apv-table { width: 100%; }
.apv-table th, .apv-table td { padding: 10px 12px; font-size: 13px; }
.apv-val.is-set { color: #159C90; font-weight: 700; }
.apv-val.is-inherit { color: #A0AEC0; }
.apv-eff { color: #2D3748; font-weight: 700; }

/* 房源/需求列表：消耗积分列（赠送 / 充值）+ 详单弹窗 */
.col-credits { white-space: nowrap; vertical-align: middle; }
.credit-cell { cursor: pointer; display: inline-block; }
.credit-cell-total { font-size: 12px; color: #718096; margin-bottom: 4px; }
.credit-cell:hover .credit-cell-total { color: #2D3748; }
.credit-cell-blocks { display: flex; gap: 6px; flex-wrap: wrap; }
.credit-block { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.credit-block-gift { color: #159C90; background: #E6FFFA; border-color: #B2F5EA; }
.credit-block-recharge { color: #B7791F; background: #FFFAF0; border-color: #FEEBC8; }
.credit-cell:hover .credit-block { filter: brightness(0.97); }
.credit-none { color: #CBD5E0; }

.lc-dialog { width: 680px; max-width: 92%; max-height: 80vh; overflow-y: auto; }
.lc-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lc-sum-item {
  flex: 1 1 120px; padding: 10px 12px; border-radius: 10px;
  background: #F7FAFC; border: 1px solid #EDF2F7; font-size: 12px; color: #718096;
}
.lc-sum-item b { display: block; margin-top: 4px; font-size: 18px; color: #2D3748; }
.lc-sum-gift { background: #E6FFFA; border-color: #B2F5EA; }
.lc-sum-gift b { color: #159C90; }
.lc-sum-recharge { background: #FFFAF0; border-color: #FEEBC8; }
.lc-sum-recharge b { color: #B7791F; }
.lc-table { width: 100%; }
.lc-table th, .lc-table td { padding: 10px 12px; font-size: 13px; }
.lc-gift { color: #159C90; font-weight: 600; }
.lc-recharge { color: #B7791F; font-weight: 600; }
.lc-rule-hint {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: #F7FAFC; border: 1px solid #EDF2F7; font-size: 12px; line-height: 1.6; color: #718096;
}

/* 代理商积分页：未授权提示 */
.points-lock-tip {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 10px;
  background: #FFF8E6; border: 1px solid #FEEBC8; color: #B7791F;
  font-size: 13px; line-height: 1.6;
}

.ag-level-community { background: #F7FAFC; color: #4A5568; }

/* 两列表单行 */
.form-row-2 { display: flex; gap: 10px; }
.form-row-2 .form-group { flex: 1; min-width: 0; }

/* ============ 代理商看板：属性卡（统计区域 / 结算比例，独立展示不随表格联动） ============ */
.ag-attr-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px;
  padding: 18px 24px; background: #fff;
  border: 1px solid rgba(0,0,0,0.05); border-radius: 12px;
  margin-bottom: 18px;
}
.ag-attr { min-width: 150px; }
.ag-attr-label { font-size: 12px; color: #A0AEC0; font-weight: 500; margin-bottom: 6px; }
.ag-attr-value { font-size: 16px; font-weight: 700; color: #1A202C; line-height: 1.3; }
.ag-attr-value em {
  font-style: normal; font-size: 12px; font-weight: 500;
  color: #718096; margin-left: 8px;
}
/* 代理商数据看板：本月/上月结算金额两个模块并排 */
.ag-month-settle-row { grid-template-columns: repeat(2, 1fr); }

/* 看板统计卡片网格（每个时间维度一张卡，自适应排列） */
.ag-dash-grid {
  display: grid; gap: 18px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.ag-dash-card {
  display: flex; flex-direction: column; gap: 13px;
  padding: 18px 20px 14px; background: #fff;
  border: 1px solid rgba(0,0,0,0.05); border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ag-dash-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.09); }
.ag-dash-card.is-custom { border-color: #BEE3F8; box-shadow: 0 2px 8px rgba(66,153,225,0.14); }

.ag-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ag-card-title { font-size: 15px; font-weight: 700; color: #1A202C; }
.ag-card-dates { font-size: 11px; color: #A0AEC0; }

/* 卡片内分段（业务 / 充值 / 结算），用细线分隔而非标题行 */
.ag-card-sec { display: flex; flex-direction: column; gap: 9px; padding-top: 12px; border-top: 1px solid #EDF2F7; }
.ag-card-sec-title { font-size: 11px; font-weight: 700; color: #A0AEC0; letter-spacing: 0.08em; }

.ag-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-card-row > span { display: flex; align-items: center; font-size: 13px; color: #4A5568; }
.ag-card-row > b {
  font-size: 15px; font-weight: 700; color: #1A202C;
  text-align: right; font-variant-numeric: tabular-nums;
}
.ag-card-row > b em { font-style: normal; font-size: 11px; font-weight: 500; color: #A0AEC0; margin-left: 6px; }
.ag-card-row.ag-row-refund > b { color: #E5484D; }

/* 卡片底部合计（整卡唯一强调色块） */
.ag-card-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 -20px -14px; padding: 13px 20px;
  background: #F0FAF7; border-top: 1px solid #D8EFE9;
  border-radius: 0 0 14px 14px;
}
.ag-card-total span { font-size: 12px; font-weight: 600; color: #4A5568; }
.ag-card-total strong { font-size: 20px; font-weight: 800; color: #1A202C; font-variant-numeric: tabular-nums; }

/* 自定义区间板块分隔标题（整行占满，把自定义结果与上方固定区间分开） */
.ag-dash-divider {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 6px; padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}
.ag-dash-divider span { font-size: 14px; font-weight: 700; color: #2D3748; }
.ag-dash-divider em { font-style: normal; font-size: 12px; color: #A0AEC0; }

/* 平台标识点 */
.ag-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle; flex-shrink: 0;
}
.ag-dot-ios { background: #A0AEC0; }
.ag-dot-android { background: #2EC4B6; }

/* 看板底部归属说明 */
.ag-dash-note { margin-top: 14px; font-size: 12px; color: #A0AEC0; line-height: 1.7; }

/* 看板时间筛选栏（自定义区间） */
.ag-dash-filterbar { align-items: center; margin-top: 10px; }
.ag-dash-flabel { font-size: 13px; font-weight: 700; color: #2d3748; margin-right: 4px; white-space: nowrap; }
.ag-dash-flabel-sm { font-size: 12px; color: #718096; display: block; margin-bottom: 2px; text-align: left; }
.ag-dash-flabel-tip { font-size: 12px; color: #a0aec0; margin-left: 6px; }
.ag-date-input { min-width: 140px; }

/* 小区积分统计 */
.ag-comm-block { margin-top: 28px; padding: 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.ag-comm-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ag-comm-tip { font-size: 12px; color: #718096; }
.ag-comm-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ag-comm-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #4299e1; color: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; font-weight: 600;
}
.ag-comm-tag i { cursor: pointer; font-style: normal; opacity: .85; font-size: 15px; line-height: 1; }
.ag-comm-tag i:hover { opacity: 1; }
.ag-comm-input-row { display: flex; gap: 8px; margin-bottom: 12px; max-width: 420px; }
.ag-comm-input-row .form-input { flex: 1; }
.ag-comm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ag-comm-chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid #cbd5e0;
  background: #fff; color: #4a5568; font-size: 13px; cursor: pointer; transition: all .15s;
}
.ag-comm-chip:hover { border-color: #4299e1; color: #2b6cb0; }
.ag-comm-chip.active { background: #2b6cb0; border-color: #2b6cb0; color: #fff; font-weight: 600; }
.ag-comm-empty { font-size: 13px; color: #a0aec0; padding: 10px 0 16px; }
.ag-comm-name { font-weight: 600; color: #2d3748; }
.ag-credit-bought { color: #2b6cb0; font-weight: 700; }
.ag-credit-used { color: #c05621; font-weight: 700; }

/* 小区物业账号 */
.ag-comm-bound {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #ebf8ff; color: #2b6cb0; font-size: 11px; font-weight: 600; vertical-align: middle;
}
.ag-commacc-block { margin-top: 22px; }
.ag-commacc-parent { font-size: 11px; color: #a0aec0; margin-top: 2px; }
.ag-comm-names-cell { max-width: 260px; }
/* 小区物业账号操作区：统一按钮风格 */
.ag-commacc-ops { white-space: nowrap; }
.ag-commacc-ops .ag-btn { margin-right: 6px; }

/* 小区物业账号「对账看板」折叠面板 */
.ag-commdash-row > td { padding: 0 !important; background: #F7FAFC; }
.ag-commdash {
  padding: 16px 18px 18px; margin: 0;
  background: #F7FAFC;
  border-top: 2px solid #BFE8E3;
}
.ag-commdash-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.ag-commdash-title { font-size: 14px; font-weight: 700; color: #1F2D3D; }
.ag-commdash-sub { font-size: 12px; color: #718096; }
.ag-commdash-head .ag-btn { margin-left: auto; }
.ag-commdash-state {
  padding: 22px 0; text-align: center; font-size: 13px; color: #A0AEC0;
}
.ag-commdash-state.is-error { color: #C53030; }
.ag-commdash .ag-attr-card { margin-top: 0; }
.ag-commdash .ag-dash-filterbar { margin: 14px 0; }
.ag-commdash .ag-dash-grid { margin-top: 14px; }
.ag-commdash .ag-dash-note { margin-top: 14px; }
.ag-comm-mini {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 10px; border-radius: 999px;
  background: #f1f5f9; color: #4a5568; font-size: 12px;
}
.ag-status-on {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #f0fff4; color: #38a169; font-size: 12px; font-weight: 600;
}
.ag-status-off {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #fff5f5; color: #e53e3e; font-size: 12px; font-weight: 600;
}
