/* ==========================================================================
   部门管理 v2
   独立模块；纯色、细边框、无投影、无渐变、无背景模糊。
   ========================================================================== */

.dpt-page {
  box-sizing: border-box;
  width: 100%;
  color: var(--text);
  /* 移动端页面级留白（app-content 移动端左右为 0，各页面自理，同 .vac-page 模式） */
  padding: 12px 14px 0;
}
@media (min-width: 768px) {
  .dpt-page { padding: 0; }  /* 平板/桌面由 .app-content 统一留白 */
}

/* ---------- 工具栏 ---------- */
.dpt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}
.dpt-toolbar-main { min-width: 0; }
.dpt-toolbar-title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 750;
  line-height: 1.25;
}
.dpt-toolbar-sub {
  margin-top: 4px;
  color: var(--text-light);
  font-size: var(--fs-xs);
}

/* ---------- 按钮 ---------- */
.dpt-primary-btn,
.dpt-secondary-btn,
.dpt-danger-btn,
.dpt-icon-btn {
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2),
              transform var(--dur-1);
}
.dpt-primary-btn,
.dpt-secondary-btn,
.dpt-danger-btn {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  white-space: nowrap;
}
.dpt-primary-btn {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.dpt-primary-btn:hover {
  border-color: var(--brand-600);
  background: var(--brand-600);
}
.dpt-secondary-btn {
  border-color: var(--slate-300);
  background: #fff;
  color: var(--slate-700);
}
.dpt-secondary-btn:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-100);
}
.dpt-danger-btn {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}
.dpt-danger-btn:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.dpt-primary-btn:active,
.dpt-secondary-btn:active,
.dpt-danger-btn:active,
.dpt-icon-btn:active {
  transform: scale(0.97);
}
.dpt-primary-btn:disabled,
.dpt-secondary-btn:disabled,
.dpt-danger-btn:disabled {
  border-color: var(--slate-200);
  background: var(--slate-200);
  color: var(--slate-400);
  cursor: not-allowed;
  transform: none;
}
.dpt-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--slate-200);
  background: #fff;
  color: var(--slate-600);
}
.dpt-icon-btn:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-100);
}
.dpt-icon-btn.is-danger {
  border-color: #fecaca;
  color: #dc2626;
  background: #fef2f2;
}
.dpt-icon-btn.is-danger:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.dpt-icon-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.dpt-primary-btn svg,
.dpt-secondary-btn svg,
.dpt-danger-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- 统计卡 ---------- */
.dpt-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}
.dpt-summary-item {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--border);
}
.dpt-summary-item:last-child { border-right: 0; }
.dpt-summary-label {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-bottom: 4px;
}
.dpt-summary-value {
  color: var(--text);
  font-family: var(--font-num);
  font-size: 25px;
  font-weight: 750;
  line-height: 1;
}
.dpt-summary-item:nth-child(1) .dpt-summary-value { color: var(--brand-600); }
.dpt-summary-item:nth-child(2) .dpt-summary-value { color: #0ea5e9; }
.dpt-summary-item:nth-child(3) .dpt-summary-value { color: #22c55e; }

/* ---------- 部门列表 ---------- */
.dpt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dpt-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  animation: dptCardIn var(--dur-3) var(--ease-out) both;
}
@keyframes dptCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dpt-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background var(--dur-2);
}
.dpt-card-head:hover {
  background: var(--slate-50);
}
.dpt-card-head-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dpt-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--brand-100);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dpt-card-icon svg { width: 20px; height: 20px; }
.dpt-card-name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.dpt-card-code {
  font-size: var(--fs-xs);
  color: var(--text-light);
  font-family: var(--font-num);
}
.dpt-card-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.dpt-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  position: relative;
}
.dpt-card-stat + .dpt-card-stat::before {
  content: '';
  width: 1px;
  height: 20px;
  background: var(--slate-200);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.dpt-card-stat-num {
  font-size: var(--fs-md);
  font-weight: 750;
  font-family: var(--font-num);
  color: var(--text);
  line-height: 1;
}
.dpt-card-stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}
.dpt-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dpt-card-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  transition: transform var(--dur-2), color var(--dur-2);
}
.dpt-card-toggle svg { width: 18px; height: 18px; }
.dpt-card.is-open .dpt-card-toggle {
  transform: rotate(180deg);
  color: var(--brand);
}

/* ---------- 部门展开内容（管控记录 + 小组列表） ---------- */
.dpt-expand {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--slate-100);
}
.dpt-card.is-open .dpt-expand {
  display: flex;
}

.dpt-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--slate-700);
  margin: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dpt-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 部门管控记录 */
.dpt-lock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-left: 3px solid #ef4444;
  border-radius: var(--r-sm);
  background: var(--slate-50);
  animation: dptCardIn var(--dur-3) var(--ease-out) both;
}
.dpt-lock-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text);
  font-family: var(--font-num);
}
.dpt-lock-arrow {
  color: var(--slate-400);
  font-weight: 400;
}
.dpt-lock-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  font-size: var(--fs-xs);
  color: var(--text-light);
  flex: 1;
  min-width: 0;
}
.dpt-lock-note {
  padding: 1px 6px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xs);
  background: #fff;
}

.dpt-locks-empty {
  padding: 16px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--slate-400);
}
.dpt-locks-add {
  margin-top: 4px;
  display: flex;
  justify-content: center;
}

/* ---------- 小组列表（部门展开内嵌） ---------- */
.dpt-grp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   小组管理样式（合并自 groups.css）
   ========================================================================== */

/* ---------- 管控中徽章 ---------- */
.dpt-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 650;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.dpt-card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: dptBadgePulse 2s infinite;
}
@keyframes dptBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- 管控弹窗内记录列表 ---------- */
.dpt-popup-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--slate-700);
  margin: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dpt-popup-divider {
  height: 1px;
  background: var(--slate-100);
  margin: 14px 0;
}
.dpt-popup-locks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}
.dpt-lock-item.is-active {
  border-left-color: #ef4444;
  background: #fef2f2;
}
.dpt-lock-active-tag {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
}

/* ---------- 小组按钮 ---------- */
.grp-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--slate-600);
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2),
              transform var(--dur-1);
}
.grp-icon-btn:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-100);
}
.grp-icon-btn.is-danger {
  border-color: #fecaca;
  color: #dc2626;
  background: #fef2f2;
}
.grp-icon-btn.is-danger:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.grp-icon-btn:active { transform: scale(0.97); }
.grp-icon-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.grp-secondary-btn {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--slate-300);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--slate-700);
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2),
              transform var(--dur-1);
}
.grp-secondary-btn:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-100);
}
.grp-secondary-btn:active { transform: scale(0.97); }
.grp-secondary-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- 小组卡片 ---------- */
.grp-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  animation: grpCardIn var(--dur-3) var(--ease-out) both;
}
@keyframes grpCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.grp-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background var(--dur-2);
}
.grp-card-head:hover { background: var(--slate-50); }
.grp-card-head-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.grp-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.grp-card-icon svg { width: 18px; height: 18px; }
.grp-card-name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.grp-card-leader {
  font-size: var(--fs-xs);
  color: var(--text-light);
}
.grp-card-leader b {
  color: var(--text);
  font-weight: 650;
}
.grp-card-stats {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.grp-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  position: relative;
}
.grp-card-stat + .grp-card-stat::before {
  content: '';
  width: 1px;
  height: 18px;
  background: var(--slate-200);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.grp-card-stat-num {
  font-size: var(--fs-sm);
  font-weight: 750;
  font-family: var(--font-num);
  color: var(--text);
  line-height: 1;
}
.grp-card-stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.grp-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.grp-card-toggle {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  transition: transform var(--dur-2), color var(--dur-2);
}
.grp-card-toggle svg { width: 16px; height: 16px; }
.grp-card.is-open .grp-card-toggle {
  transform: rotate(180deg);
  color: var(--brand);
}

/* ---------- 小组展开内容（规则、成员、管控） ---------- */
.grp-detail {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--slate-100);
}
.grp-card.is-open .grp-detail { display: flex; }

.grp-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--slate-700);
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 规则 */
.grp-rules {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.grp-rule-item {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.grp-rule-label {
  font-size: 11px;
  color: var(--text-light);
}
.grp-rule-value {
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--font-num);
  color: var(--text);
}

/* 成员列表 */
.grp-members {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.grp-member-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xs);
  background: #fff;
  font-size: var(--fs-sm);
}
.grp-member-name {
  font-weight: 650;
  color: var(--text);
}
.grp-member-erp {
  font-size: var(--fs-xs);
  color: var(--text-light);
  font-family: var(--font-num);
}
.grp-member-role {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 650;
  background: var(--slate-100);
  color: var(--slate-600);
}

/* 小组管控记录 */
.grp-lock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-left: 3px solid #ef4444;
  border-radius: var(--r-sm);
  background: var(--slate-50);
}
.grp-lock-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 650;
  font-family: var(--font-num);
  color: var(--text);
}
.grp-lock-arrow {
  color: var(--slate-400);
  font-weight: 400;
}
.grp-lock-meta {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xs);
  color: var(--text-light);
}
.grp-lock-note {
  padding: 1px 6px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xs);
  background: #fff;
}

.grp-empty {
  padding: 12px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--slate-400);
}

/* ---------- 成员多选 chip（小组表单内） ---------- */
.grp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  background: var(--slate-50);
  min-height: 60px;
}
.grp-chips:empty::before {
  content: '该部门暂无可选成员';
  color: var(--slate-400);
  font-size: var(--fs-xs);
  align-self: center;
  margin: auto;
}
.grp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2);
}
.grp-chip:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
}
.grp-chip.active {
  background: var(--brand-100);
  border-color: var(--brand);
  color: var(--brand-600);
}
.grp-chip.locked {
  cursor: not-allowed;
  background: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--slate-700);
  opacity: 0.95;
  pointer-events: none;
}
.grp-chip-av {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.grp-chip-check {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--slate-300);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-2), border-color var(--dur-2);
}
.grp-chip.active .grp-chip-check {
  background: var(--brand);
  border-color: var(--brand);
}
.grp-chip.active .grp-chip-check::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: #fff;
}
.grp-chip.locked .grp-chip-check {
  background: var(--slate-400);
  border-color: var(--slate-400);
}
.grp-chip.locked .grp-chip-check::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: #fff;
}
.grp-chip-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  border-radius: var(--r-xs);
  vertical-align: middle;
  line-height: 1.4;
}
.grp-chip-tag.leader {
  background: var(--brand);
  color: #fff;
}
.grp-chip-tag.admin {
  background: #f59e0b;
  color: #fff;
}

/* ---------- 弹窗 ---------- */
.dpt-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2);
}
.dpt-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}
.dpt-modal {
  width: 92%;
  max-width: 460px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--dur-3) var(--ease-spring);
}
.dpt-mask.is-open .dpt-modal {
  transform: scale(1);
}
.dpt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--slate-100);
}
.dpt-modal-heading { min-width: 0; }
.dpt-modal-title {
  font-size: var(--fs-lg);
  font-weight: 750;
  line-height: 1.3;
}
.dpt-modal-sub {
  margin-top: 3px;
  font-size: var(--fs-xs);
  color: var(--text-light);
}
.dpt-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dpt-modal-foot {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--slate-100);
}

/* ---------- 表单 ---------- */
.dpt-field { display: flex; flex-direction: column; gap: 6px; }
.dpt-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--slate-700);
}
.dpt-input,
.dpt-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--dur-2);
}
.dpt-input:focus,
.dpt-select:focus {
  border-color: var(--brand);
}
.dpt-input::placeholder {
  color: var(--slate-400);
}
.dpt-field-hint {
  font-size: 11px;
  color: var(--text-light);
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  .dpt-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dpt-card-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
  }
  .dpt-card-stats {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
  .dpt-card-stat {
    padding: 0 10px;
  }
  .dpt-card-stat:first-child { padding-left: 0; }
  .dpt-summary {
    grid-template-columns: 1fr;
  }
  .dpt-summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .dpt-summary-item:last-child { border-bottom: 0; }
  .dpt-lock-item {
    flex-wrap: wrap;
  }
  .dpt-lock-meta {
    margin-left: 0;
    width: 100%;
  }
  /* 小组卡片响应式 */
  .grp-card-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .grp-card-stats {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
  .grp-card-stat { padding: 0 10px; }
  .grp-card-stat:first-child { padding-left: 0; }
  .grp-rules { gap: 6px; }
  .grp-rule-item { min-width: 80px; padding: 8px 10px; }
  .grp-lock-item { flex-wrap: wrap; }
  .grp-lock-meta { width: 100%; margin-top: 4px; }
}

/* 超小手机（<375px）：统计数字与卡片头紧凑化 */
@media (max-width: 374px) {
  .dpt-summary-value { font-size: 21px; }
  .dpt-card-head { padding: 12px; gap: 6px; }
  .dpt-card-stat { padding: 0 8px; }
  .dpt-card-stat:first-child { padding-left: 0; }
  .dpt-toolbar-title { font-size: var(--fs-lg); }
}
