/* ===== 题库管理页样式（题目表格 + 左侧导航 + 批量导入弹窗） ===== */
.q-title-cell {
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #334155;
}
.opt-cell { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666; }
.ans-cell { font-weight: 600; color: #e53935; }
.ans-ellipsis {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
/* 操作列按钮保持横排，空间不足时优先压缩题目/答案列 */
#q-tbody td:last-child { white-space: nowrap; }
/* 题目表格：全部列居中（表头 + 单元格） */
.q-table th, .q-table td { text-align: center; }

/* ===== 左侧导航 + 右侧内容布局 ===== */
.bank-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
/* 导航外层：sticky 上移到此层（箭头需悬浮在导航两侧，不能放滚动容器内部） */
.bank-nav-wrap {
  width: 168px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}
.bank-side-nav {
  width: auto;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* 滑块指示器（跟随激活项滑动） */
.bank-nav-slider {
  position: absolute;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.bank-nav-slider.ready {
  opacity: 1;
  /* 弹性曲线与顶部模式开关滑块同款（cubic-bezier(.34,1.56,.64,1)） */
  transition: top 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
              left 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bank-nav-item {
  position: relative;
  z-index: 1;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.16s ease;
  user-select: none;
  white-space: nowrap;
}
/* 悬浮动效：页签轻微上浮（与模式开关分段一致） */
.bank-nav-item:hover { color: #334155; transform: translateY(-1px); }
/* 点击动效：按下回弹 */
.bank-nav-item:active { transform: scale(0.93); }
.bank-nav-item.active { color: #fff; font-weight: 600; }
/* 导航图标固定宽度容器：各 emoji 渲染宽度不一（如 🖥 默认窄幅文本样式），固定后页签文字左缘像素级对齐 */
.bank-nav-ico {
  display: inline-block;
  width: 22px;
  text-align: center;
  margin-right: 4px;
}
.bank-content { flex: 1; min-width: 0; }

/* 中屏起侧导航转顶部横向，内容卡片占满全宽 */
@media (max-width: 1100px) {
  .bank-layout { flex-direction: column; align-items: stretch; }
  .bank-nav-wrap { position: relative; top: auto; width: 100%; }   /* sticky→relative 必须重置 top，否则 relative 下 top:88px 变偏移量，导航行下移与内容重叠 */
  .bank-side-nav {
    width: 100%;
    position: static;
    flex-direction: row;
    padding: 0;          /* 贴合处理：滑块与容器边缘无缝贴合，页签自身留白保持可点区域 */
    gap: 6px;
    overflow-x: auto;                     /* 空间不足时横向滚动，页签文字完整显示 */
    scrollbar-width: none;                /* 隐藏滚动条（Firefox） */
    -webkit-overflow-scrolling: touch;
  }
  .bank-side-nav::-webkit-scrollbar { display: none; }   /* 隐藏滚动条（Chrome/Edge） */
  /* 鼠标按住可直接拖动横移（grab/grabbing 光标，拖动时不选中文本） */
  .bank-side-nav { cursor: grab; user-select: none; }
  .bank-side-nav.dragging { cursor: grabbing; }
  .bank-nav-slider { border-radius: 14px; }   /* 贴边后与容器 16px 圆角协调（留 1px 边框不越弧） */
  .bank-nav-item {
    flex: 1 0 auto;    /* 宽裕时平分铺满；不足时不收缩，靠横向滚动（点击自动居中） */
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
  }
}
.type-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #e0e7ff;
  color: #4338ca;
}
.type-tag.multiple { background: #f3e8ff; color: #7c3aed; }
.type-tag.judge { background: #d1fae5; color: #047857; }
.type-tag.essay { background: #ffedd5; color: #c2410c; }
.type-tag.flashcard { background: #cffafe; color: #0e7490; }

/* ===== 批量上传弹窗 ===== */
.upload-steps { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.upload-step {
  flex: 1;
  min-width: 140px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  text-align: center;
  transition: all 0.2s;
}
.upload-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.upload-step.active { border-color: #818cf8; background: #eef2ff; }
.upload-step.active .step-num { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.upload-step.done { border-color: #10b981; background: #ecfdf5; }
.upload-step.done .step-num { background: #10b981; color: #fff; }
.upload-step .step-text { font-size: 13px; color: #475569; font-weight: 500; }

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: #f8fafc;
}
.drop-zone:hover, .drop-zone.drag {
  border-color: #818cf8;
  background: #eef2ff;
}
.drop-zone .drop-icon { font-size: 42px; margin-bottom: 10px; }
.drop-zone .drop-text { font-size: 15px; color: #334155; font-weight: 500; }
.drop-zone .drop-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.file-info .file-icon { font-size: 28px; }
.file-info .file-name { font-weight: 600; color: #1e293b; font-size: 14px; }
.file-info .file-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.result-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.result-stat {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}
.result-stat.success { background: #ecfdf5; border: 1px solid #a7f3d0; }
.result-stat.fail { background: #fef2f2; border: 1px solid #fecaca; }
.result-stat .stat-num { font-size: 24px; font-weight: 700; }
.result-stat.success .stat-num { color: #059669; }
.result-stat.fail .stat-num { color: #dc2626; }
.result-stat .stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }

.error-list {
  max-height: 180px;
  overflow-y: auto;
  background: #fef2f2;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.error-list .error-item {
  font-size: 13px;
  color: #b91c1c;
  padding: 4px 0;
  border-bottom: 1px solid #fee2e2;
}
.error-list .error-item:last-child { border-bottom: none; }

/* ===== 多题库工具栏 / 迁移提示 / 抢答活动 ===== */
.bank-tip {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13.5px;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== 题库列表视图：搜索栏 + 排序 + 题库卡片 ===== */
.bank-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bank-search-input {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}
.bank-search-input .bank-search-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
}
.bank-search-input input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
}
.bank-search-input input:focus {
  border-color: #818cf8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}

.bank-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}
.bank-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 4px 14px rgba(99,102,241,0.12);
  transform: translateY(-1px);
}
.bank-card.current { border-color: #818cf8; background: #eef2ff; }
.bank-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.bank-card-main { flex: 1; min-width: 0; }
.bank-card-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-cur-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: #e0e7ff;
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 8px;
  vertical-align: 2px;
}
.bank-card-meta { font-size: 12.5px; color: #94a3b8; }
.bank-card-arrow {
  font-size: 24px;
  color: #cbd5e1;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.bank-card:hover .bank-card-arrow { color: #818cf8; transform: translateX(2px); }

/* 题库详情：标题下的元信息 */
/* 题库详情头部：三行布局（① 返回+题数右对齐 ② 名称单行省略 ③ 按钮行等比缩放） */
.bank-detail-header { display: block; }        /* 覆盖 card-header 的左右两栏 flex */
.bank-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;              /* 返回居左、题数居右 */
  gap: 8px;
}
.bank-qcount {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.bank-detail-name {
  display: block;                              /* 覆盖 card-title 的 flex（flex 容器上省略号不生效） */
  font-size: 16px;                              /* 字体缩小（原 card-title 17px） */
  margin: 6px 0 10px;
  white-space: nowrap;                         /* 单行显示，超长省略号 */
  overflow: hidden;
  text-overflow: ellipsis;
}
.bank-detail-ops-wrap { min-height: 38px; }
.bank-detail-ops.flex {
  display: grid;                     /* 改用三列网格：一行固定 3 个，放不下自动换行，永不超出卡片 */
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bank-detail-ops .btn {
  white-space: nowrap;                /* 文字不换行，按钮宽度由网格列自动分配 */
  justify-self: stretch;             /* 按钮撑满所在网格列，行内等宽整齐 */
}
/* 题目分页条 */
.q-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 2px;
  flex-wrap: wrap;
}
.q-pager-info {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}
.q-pager-size {
  font-size: 13px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.q-pager-size select {
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.bank-detail-meta {
  font-size: 12px;
  color: #94a3b8;
  margin: -10px 0 16px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-migrate {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  border: 1px dashed #a5b4fc;
  color: #4338ca;
  font-size: 14px;
  margin-bottom: 16px;
}
.bank-subhint { font-size: 12.5px; color: #94a3b8; margin-bottom: 14px; }

.act-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
  flex-wrap: wrap;   /* 窄屏时操作按钮换行，避免溢出卡片 */
}
.act-row:hover { border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(99,102,241,0.1); }
.act-row.running { border-color: #34d399; background: #f0fdf4; }
.act-main { flex: 1; min-width: 0; }
.act-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  /* 标题单行显示，超长省略号截断 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-live {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  border-radius: 999px;
  padding: 2px 10px;
  margin-right: 8px;
  animation: actBlink 1.2s infinite;
}
@keyframes actBlink { 50% { opacity: 0.55; } }
/* 门店标签（仅总管理员跨店视野显示）：靛蓝小药丸，与「进行中」徽章同一行 */
.act-store-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #4f46e5;
  background: #e0e7ff;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.act-meta { font-size: 12.5px; color: #64748b; line-height: 1.6; }
.act-ops { display: flex; gap: 8px; flex-shrink: 0; }
/* 房间详情场次行：进行中徽章 + 抢答中实时人数（人数由 race.js 轮询更新） */
.act-sess-live {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  animation: actBlink 1.2s infinite;
}
.act-sess-race {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #6d28d9;
  background: linear-gradient(90deg, #ede9fe 0%, #fef3c7 100%);
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 6px;
  white-space: nowrap;
}
.act-sess-race b { color: #b45309; }

/* ===== 房间详情·场次卡片：两行结构（行1 名称靠左+日期靠右 / 行2 四个等宽操作按钮） =====
   独立类名，不复用 .act-row（该行样式被房间列表/抽检/快捷弹窗共用，避免连带影响） */
.act-sess-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.act-sess-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(99,102,241,0.1); }
.act-sess-card.running { border-color: #34d399; background: #f0fdf4; }
/* 行1：名称单行省略（title 悬浮看全）+ 日期右对齐，结构在所有宽度统一不换行 */
.asc-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.asc-name {
  flex: 1 1 0;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 24px;   /* 与 .asc-date 同行高：两者盒高一致，同行时 y 坐标完全相同 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asc-date { flex-shrink: 0; font-size: 12.5px; color: #94a3b8; white-space: nowrap; line-height: 24px; }
/* 状态徽章行：进行中/抢答人数/已停止（仅运行或已停止时出现，随状态同步变化） */
.asc-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.asc-stopped {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 10px;
}
/* 行2：操作按钮整行等分（grid-auto 自适应列数：抢答4个 / 抽检1~2个均 1fr 等宽等高、字号内边距一致）；
   文字不换行不截断，窄屏时按钮行整行换到卡片第二行，绝不单个压扁 */
.asc-ops { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 2px; }
.asc-ops .btn {
  justify-self: stretch;
  width: 100%;
  white-space: nowrap;
  padding: 6px 4px;
  font-size: 13px;
  border-radius: 8px;
}

/* ===== 场次详情（抢答/抽检同款版式）：统计卡 + 记录列表行 ===== */
.sess-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.sess-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  min-width: 0;
}
.sess-stat-label { font-size: 12px; color: #64748b; margin-bottom: 2px; white-space: nowrap; }
.sess-stat-value { font-size: 20px; font-weight: 800; color: #1e293b; line-height: 1.3; }
/* 记录列表行（复用 rr-row 结果底色）：题目列 + 附加信息列 */
.rr-title {
  flex: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
}
.rr-extra { color: #64748b; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
/* 记录列表区块头（标题 + 每页数量选择） */
.sess-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.sess-rec-head .card-title { margin: 0; }

/* ===== 房间列表：每页数量 + 分页控件 ===== */
.act-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}
.act-page-size select {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.act-page-size select:focus { border-color: #818cf8; }
.act-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0,0,0,0.08);
}
.pager-info { font-size: 13px; color: #64748b; }
.pager-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-btn {
  min-width: 34px;
  padding: 7px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.pager-btn:hover:not(:disabled) { border-color: #818cf8; color: #6366f1; background: rgba(99,102,241,0.06); }
.pager-btn:active:not(:disabled) { transform: scale(0.95); }
.pager-btn.cur {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-ellipsis { color: #94a3b8; padding: 0 2px; font-size: 13px; }

/* ===== 账号角色徽章（账号管理列表 / 弹窗） ===== */
.role-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 3px 10px; font-size: 12.5px; font-weight: 600;
  line-height: 1.5; white-space: nowrap;
}
.role-super { background: #fffbeb; border: 1px solid #fcd34d; color: #b45309; }
.role-admin { background: #eff6ff; border: 1px solid #93c5fd; color: #1d4ed8; }
.role-user  { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }

/* ===== 场次详情表格（积分排名 / 题目统计）：列全部居中，题目列左对齐+省略 ===== */
.sess-table th, .sess-table td { text-align: center; white-space: nowrap; }
/* 场次题目列：独立类名（避免与大屏 .q-title 白色大字样式冲突），明确字号颜色与其他列一致 */
.sess-table td.sess-q-title {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

/* ===== 账号管理：按门店分组列表（搜索 / 排序 / 列宽拖拽 / 每店分页 / 批量编辑） ===== */
/* 工具栏：搜索框 + 添加 / 刷新按钮始终同一行，窄屏由搜索框收缩（右侧按钮组样式见 race.css） */
.acc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}
.acc-search { flex: 1 1 auto; min-width: 0; }
.acc-page-size { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; white-space: nowrap; }
.acc-page-size select {
  padding: 6px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.acc-page-size select:focus { border-color: #818cf8; }
/* 底部工具栏：每页条数（右对齐） */
.acc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0,0,0,0.08);
}
/* 批量操作条：勾选成员后出现 */
.acc-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  border-radius: 10px;
}
.acc-sel-info { font-size: 13.5px; font-weight: 600; color: #4338ca; margin-right: auto; }
.acc-bulk-info {
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4338ca;
}
/* ===== 门店管理弹窗（参与者账号卡片头右侧按钮打开） ===== */
/* 工具栏：搜索框 + 名称/时间排序切换，始终同一行（窄屏由搜索框收缩） */
.store-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}
.store-modal-search { flex: 1 1 auto; min-width: 0; }
/* 排序切换分段（与积分榜模式切换同款）：名称 / 时间 */
.store-sort-group { display: flex; flex-shrink: 0; background: #f1f5f9; border-radius: 9px; padding: 3px; }
.store-sort-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  white-space: nowrap;
}
.store-sort-btn:hover:not(.active) { color: #334155; background: #e2e8f0; }
.store-sort-btn:active:not(.active) { transform: scale(0.94); }
.store-sort-btn.active { background: #6366f1; color: #fff; box-shadow: 0 2px 6px rgba(99,102,241,0.35); }
/* 门店竖向列表（行入场逐行浮现，backwards 保证动画结束后悬浮位移正常生效） */
@keyframes storeItemIn { from { opacity: 0; transform: translateY(8px); } }
.store-list { display: flex; flex-direction: column; gap: 8px; }
.store-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.16s ease;
  animation: storeItemIn 0.28s cubic-bezier(0.4,0,0.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
}
/* 悬浮：横向微移 + 变色（与「选择被抽查人」弹窗列表行同款反馈） */
.store-item:hover { border-color: #a5b4fc; background: #eef2ff; color: #4338ca; transform: translateX(2px); }
/* 按压：回缩（与系统按钮 scale 反馈同方向） */
.store-item:active { transform: translateX(2px) scale(0.98); }
.store-item.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.28);
}
.store-item.active:hover { transform: translateX(2px); box-shadow: 0 4px 14px rgba(79,70,229,0.4); }
/* 超级管理员的本店行：锁定不可切换 */
.store-item.locked { cursor: default; }
.store-item.locked:hover { transform: none; background: #4f46e5; border-color: #4f46e5; color: #fff; }
.store-item-ico { flex-shrink: 0; font-size: 16px; line-height: 1; }
.store-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.store-item-lock { flex-shrink: 0; font-size: 13px; opacity: 0.65; }
.store-item.active .store-item-lock { opacity: 0.9; }
/* 行内操作按钮组：✏ 改名 + 🗑 删除（仅非「默认」门店） */
.store-item-ops { flex-shrink: 0; display: flex; gap: 6px; }
.store-item-edit, .store-item-del {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
  font-family: inherit;
}
/* 改名按钮：靛蓝系（与主色一致） */
.store-item-edit { border: 1px solid #c7d2fe; background: #fff; color: #4f46e5; }
.store-item-edit:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 1.5px rgba(99,102,241,0.35), 0 0 8px rgba(99,102,241,0.3);
}
.store-item-edit:active { transform: scale(0.88); }
/* 删除按钮：红色系（与系统 btn-danger 光晕同风格） */
.store-item-del { border: 1px solid #fecaca; background: #fff; color: #dc2626; }
.store-item-del:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 1.5px rgba(220,38,38,0.35), 0 0 8px rgba(220,38,38,0.3);
}
.store-item-del:active { transform: scale(0.88); }
/* 选中行内的操作按钮：适配深色底 */
.store-item.active .store-item-edit,
.store-item.active .store-item-del { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.45); color: #fff; }
.store-item.active .store-item-edit:hover { background: #fff; border-color: #fff; color: #4f46e5; }
.store-item.active .store-item-del:hover { background: #dc2626; border-color: #dc2626; }
/* 弹窗内分页条：与内容区间距收紧（弹窗底部已有按钮区分隔线） */
#store-modal .act-pager { margin: 12px 0 0; padding-top: 12px; }
/* 表格滚动容器：限高纵向滚动（表头与总管理员行冻结的前提），超宽横向滚动（冻结列的前提）；
   isolation 创建独立层叠上下文：内部冻结层的 z-index 不会外泄盖住顶栏 / 弹窗 */
/* 表格滚动容器：
   scrollbar-gutter —— 翻页/筛选导致行数变化、纵向滚动条出现或消失时，内容宽度不再跳变；
   overscroll-behavior —— 表格内部滚动到顶部/底部后不再链动页面，冻结行列保持原位 */
.acc-table-wrap { overflow: auto; max-height: 520px; isolation: isolate; scrollbar-gutter: stable; overscroll-behavior: contain; }
/* 成员表：固定列宽（拖拽生效）+ 单行省略（悬浮 title 显示全文）；
   表头与单元格文字居中 */
.acc-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.acc-table th, .acc-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 11px 10px;
}
/* 勾选列保持居中（复选框无文字，居中更醒目）；表头左侧补齐把手留白，复选框视觉居中 */
.acc-table th[data-col="sel"], .acc-table td.acc-td-sel { text-align: center; }
.acc-table th[data-col="sel"] { padding-left: 14px; }
/* 表头右侧让出把手空间：列宽缩窄时文字不会压到拖拽把手 */
.acc-table th { position: relative; user-select: none; padding-right: 14px; }
.acc-table th.sortable { cursor: pointer; transition: background 0.16s, color 0.16s; }
.acc-table th.sortable:hover { background: #eef2ff; color: #4f46e5; }
.acc-table th.active { color: #4f46e5; background: #eef2ff; }
.acc-th-label {
  display: inline-block;
  max-width: calc(100% - 2px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.acc-sort-arrow { font-style: normal; font-size: 11px; margin-left: 2px; }
/* 表头右侧单个列宽把手：只改变当前列宽度，右侧其余列整体平移 */
.acc-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 2;
  touch-action: none;
}
.acc-resizer:hover { background: rgba(99,102,241,0.28); }
/* 悬浮表头时把手轻微高亮，提示可拖拽调宽 */
.acc-table th:hover .acc-resizer { background: rgba(99,102,241,0.16); }
.acc-table th:hover .acc-resizer:hover { background: rgba(99,102,241,0.34); }
/* 填充列：吸收表格剩余宽度，保证拉伸单列时其他列宽度不被平摊改变 */
.acc-th-fill, .acc-td-fill { width: auto; padding: 0 !important; }
body.acc-col-resizing { cursor: col-resize; }
body.acc-col-resizing * { cursor: col-resize !important; user-select: none !important; }
.acc-td-sel { text-align: center; }
.acc-row-cb { width: 15px; height: 15px; cursor: pointer; accent-color: #6366f1; }
/* ===== 冻结：表头与总管理员行纵向冻结，勾选/ID/昵称列横向冻结 ===== */
/* 表头行：纵向滚动时固定在滚动区顶部 */
.acc-table thead th { position: sticky; top: 0; z-index: 30; }
.acc-table thead th.acc-fr { z-index: 35; }
/* 冻结列：横向滚动时固定在左侧（left 偏移由 JS 按列宽计算，随拖拽实时更新） */
.acc-table td.acc-fr { position: sticky; z-index: 20; background: #fff; }
/* 总管理员行：纵向滚动时固定在表头下方（top 偏移由 JS 按表头高度计算），浅金底色标识最高权限；
   底部粗分隔线 + 投影：明确「冻结区」边界，滚动成员从其下方穿过而非凭空消失 */
.acc-table tr.acc-row-owner > td { position: sticky; z-index: 10; background: #fffbeb; box-shadow: inset 0 -2px 0 #f59e0b, 0 2px 6px rgba(245,158,11,.18); }
.acc-table tr.acc-row-owner > td.acc-fr { z-index: 25; }
/* 悬浮时冻结单元格背景跟随行高亮（冻结单元格自带背景，需单独覆盖） */
.acc-table tbody tr.acc-row:hover td.acc-fr { background: #f8fafc; }
.acc-table tbody tr.acc-row-owner:hover > td,
.acc-table tbody tr.acc-row-owner:hover td.acc-fr { background: #fef3c7; }
/* 冻结列与滚动区之间的分隔线 */
.acc-table .acc-fr-last { box-shadow: 1px 0 0 #e2e8f0; }
/* 触屏设备：把冻结单元格提升为合成层，消除触摸/惯性滚动时冻结行列的跟随延迟
   与到达起终点的回弹跳动（桌面端实测无此问题，不付出层内存开销） */
@media (pointer: coarse) {
  .acc-table thead th,
  .acc-table td.acc-fr,
  .acc-table tr.acc-row-owner > td { will-change: transform; }
}
.acc-td-ops { white-space: nowrap; }
.acc-td-ops .btn { padding: 5px 8px; font-size: 12.5px; }
.acc-td-ops .btn + .btn { margin-left: 5px; }
/* 成员表下方分页条：略收紧间距 */
#acc-groups .act-pager { margin: 10px 0 2px; padding-top: 10px; }
