/* 杏林苑管理后台样式 */
:root {
  --primary: #1890FF;
  --primary-light: #E6F7FF;
  --primary-dark: #096DD9;
  --success: #52C41A;
  --success-light: #F6FFED;
  --warning: #FAAD14;
  --warning-light: #FFFBE6;
  --danger: #FF4D4F;
  --danger-light: #FFF1F0;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg: #F0F2F5;
  --bg-white: #FFFFFF;
  --border: #E8E8E8;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --sidebar-width: 220px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}

/* 登录页 */
#login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1890FF 0%, #40A9FF 50%, #69C0FF 100%);
}

.login-container {
  background: var(--bg-white);
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  width: 400px;
  max-width: 90vw;
}

.login-logo { font-size: 56px; text-align: center; margin-bottom: 8px; }

.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.login-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }

/* 验证码输入行 */
.code-row { display: flex; gap: 12px; }
.code-row input { flex: 1; letter-spacing: 2px; }
.btn-send-code {
  width: 120px;
  height: 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-send-code:hover { background: var(--primary-dark); }
.btn-send-code:disabled { background: #BFBFBF; cursor: not-allowed; }
.send-code-hint { font-size: 12px; color: var(--success); margin-top: 4px; min-height: 16px; }

/* 当前用户 */
.current-user {
  padding: 8px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-error { color: var(--danger); font-size: 13px; min-height: 20px; }

.required { color: var(--danger); }

.btn-primary {
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(135deg, #1890FF 0%, #096DD9 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.25);
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #40A9FF 0%, #1890FF 100%);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2); }
.btn-primary:disabled { background: #BFBFBF; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary {
  height: 36px;
  padding: 0 20px;
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 4px; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #CF1322; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }

/* 管理后台布局 */
.admin-layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background: #001529;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo { font-size: 28px; }
.sidebar-title { font-size: 18px; font-weight: 600; color: #FFFFFF; }

.sidebar-nav { flex: 1; padding: 16px 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.nav-item:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.nav-item.active { color: #FFFFFF; background: var(--primary); }
.nav-icon { font-size: 18px; }

.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 0; }

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px;
  min-height: 100vh;
}

.content-page { max-width: 1200px; }

.page-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; color: var(--text-primary); }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header .page-title { margin-bottom: 0; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-value { font-size: 36px; font-weight: 700; color: var(--text-primary); }
.stat-card .stat-label { font-size: 14px; color: var(--text-light); margin-top: 8px; }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.primary .stat-value { color: var(--primary); }

/* 表格 */
.table-container {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #FAFAFA;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid #F5F5F5;
  color: var(--text-primary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table tr:hover { background: #FAFCFF; }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.status-badge.pending { background: var(--warning-light); color: #D48806; }
.status-badge.verified { background: var(--success-light); color: #389E0D; }
.status-badge.rejected { background: var(--danger-light); color: #CF1322; }
.status-badge.unverified { background: #F5F5F5; color: #8C8C8C; }
.status-badge.active { background: var(--success-light); color: #389E0D; }
.status-badge.inactive { background: #F5F5F5; color: #8C8C8C; }

/* 筛选和搜索 */
.filter-group, .search-group { display: flex; gap: 12px; align-items: center; }
.filter-group select, .search-group input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 12px;
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}
.modal-content.modal-lg { width: 700px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { font-size: 24px; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-body .form-group { margin-bottom: 16px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}
.modal-footer .btn-primary {
  height: 36px;
  padding: 0 24px;
  font-size: 14px;
  border-radius: 6px;
}
.modal-footer .btn-secondary {
  height: 36px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 6px;
}

/* 表单行 */
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* 科室复选框 */
.dept-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: #FAFAFA;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.dept-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.dept-checkboxes label:hover { background: var(--primary-light); }
.dept-checkboxes input[type="checkbox"] { accent-color: var(--primary); }

/* 全选按钮特殊样式 */
.dept-select-all {
  font-weight: 600 !important;
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
  margin-bottom: 4px;
  padding: 6px 12px !important;
}

/* 日期快捷操作按钮 */
.date-shortcut-btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.btn-date-shortcut {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
  background: #F5F5F5;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-date-shortcut:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-date-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

/* 单选组 */
.radio-group { display: flex; gap: 20px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}
.radio-group input[type="radio"] { accent-color: var(--primary); }

/* 余额显示 */
.balance-display { font-size: 24px; font-weight: 700; color: #FF6B35; }

/* 认证详情 */
.auth-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-detail-item { display: flex; flex-direction: column; gap: 4px; }
.auth-detail-item .detail-label { font-size: 12px; color: var(--text-light); }
.auth-detail-item .detail-value { font-size: 14px; color: var(--text-primary); }
.auth-images { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.auth-images img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.auth-images img:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* 图片预览弹窗 */
.image-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
}
.image-preview-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.image-preview-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.image-preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #FFFFFF;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}
.image-preview-close:hover {
  transform: scale(1.2);
}

/* 驳回原因输入 */
.reject-reason-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* 操作按钮组 */
.action-btns { display: flex; gap: 8px; }

/* 响应式 */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 60px; }
  .sidebar-title, .nav-item span:not(.nav-icon) { display: none; }
  .nav-item { padding: 12px; justify-content: center; }
  .main-content { margin-left: 60px; }
  .form-row { flex-direction: column; }
  .auth-detail-grid { grid-template-columns: 1fr; }
}

/* ============ 图片管理 ============ */

.image-version-info {
  display: flex;
  gap: 12px;
  align-items: center;
}
.version-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #E6F7FF;
  color: #1890FF;
}
.version-badge.updated {
  background: #F6FFED;
  color: #52C41A;
}

/* Tab 切换 */
.image-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 10px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.image-tab-content { display: none; }
.image-tab-content.active { display: block; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header .btn-primary {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* 轮播图卡片网格 */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.banner-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.banner-card-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F5F5F5;
  position: relative;
}
.banner-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-card-body {
  padding: 12px 16px;
}
.banner-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner-card-path {
  font-size: 12px;
  color: var(--text-light);
  word-break: break-all;
}
.banner-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-top: 1px solid #F5F5F5;
  justify-content: space-between;
}
.banner-order-btns {
  display: flex;
  gap: 4px;
}
.banner-order-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.banner-order-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.banner-order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 13px;
}
.upload-icon { font-size: 28px; }
.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius);
  object-fit: contain;
}
.form-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.current-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #FAFAFA;
  border-radius: 4px;
}
.current-file-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.current-file-info span {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
}

/* 静态图片表格预览 */
.static-preview-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.static-preview-thumb:hover { opacity: 0.8; }

/* 空状态 */
.image-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 14px;
}
.image-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 操作成功提示动画 */
@keyframes flashUpdate {
  0% { background: var(--success-light); }
  100% { background: transparent; }
}
.flash-updated {
  animation: flashUpdate 1s ease-out;
}

/* ============ 审核筛选按钮组 ============ */

.audit-filter-tabs {
  display: inline-flex;
  gap: 0;
  background: #F5F5F5;
  border-radius: 6px;
  padding: 3px;
}
.filter-tab {
  padding: 6px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-tab:hover { color: var(--primary); background: rgba(24,144,255,0.06); }
.filter-tab.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 审核操作按钮 */
.btn-audit {
  height: 36px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-audit.btn-pass {
  background: var(--success);
  color: white;
}
.btn-audit.btn-pass:hover { background: #389E0D; }
.btn-audit.btn-reject {
  background: var(--danger);
  color: white;
}
.btn-audit.btn-reject:hover { background: #CF1322; }

/* 页面头操作按钮组 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-clear {
  background: #FFF7E6 !important;
  color: #D48806 !important;
  border: 1px solid #FFD591 !important;
}
.btn-clear:hover { background: #FFE7BA !important; }

.btn-danger-outline {
  background: #FFF1F0 !important;
  color: #CF1322 !important;
  border: 1px solid #FFA39E !important;
}
.btn-danger-outline:hover { background: #FFCCC7 !important; }

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 刷新按钮 */
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-refresh:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.refresh-icon {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn-refresh:active .refresh-icon {
  transform: rotate(180deg);
}

/* 刷新加载态 */
.btn-refresh.loading {
  pointer-events: none;
  color: var(--text-light);
}
.btn-refresh.loading .refresh-icon {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* OpenID 单元格 - 可点击复制 */
.openid-cell {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  background: rgba(24, 144, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.openid-cell:hover {
  background: rgba(24, 144, 255, 0.15);
}

/* ============ 日志分页 ============ */
.logs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-light);
  margin-right: 8px;
}

.btn-pagination {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-pagination:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============ 按钮禁用态 ============ */
.btn-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  position: relative;
}
.btn-disabled::after {
  content: "🔒";
  margin-left: 4px;
  font-size: 12px;
}

/* ============ 居中通知弹窗 ============ */
.modal-toast-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: transparent;
  pointer-events: none;
}
.modal-toast-overlay.show {
  pointer-events: auto;
}
.modal-toast-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 280px;
  max-width: 420px;
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}
.modal-toast-box.toast-out {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.9) translateY(-10px); }
}
.toast-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.toast-msg {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* 通知类型主题 */
.modal-toast-box.toast-success { border-top: 3px solid #52C41A; }
.modal-toast-box.toast-success .toast-icon::before { content: "✅"; }
.modal-toast-box.toast-error { border-top: 3px solid #FF4D4F; }
.modal-toast-box.toast-error .toast-icon::before { content: "❌"; }
.modal-toast-box.toast-info { border-top: 3px solid #1890FF; }
.modal-toast-box.toast-info .toast-icon::before { content: "💡"; }
.modal-toast-box.toast-warn { border-top: 3px solid #FAAD14; }
.modal-toast-box.toast-warn .toast-icon::before { content: "⚠️"; }

/* ============ 权限设置弹窗 ============ */
.permission-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.permission-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px !important;
  color: #333;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  background: #F9FAFB;
  border: 1px solid #F0F0F0;
  transition: all 0.2s;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}
.permission-label:hover {
  border-color: #BAE7FF;
  background: #F0F8FF;
}
.permission-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1890FF;
  cursor: pointer;
  flex-shrink: 0;
}

/* 账号管理表格角色标签 */
.role-badge-admin {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #1890FF, #40A9FF);
  color: #fff;
}
.role-badge-manager {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: #F5F5F5;
  color: #666;
  border: 1px solid #E8E8E8;
}

/* 权限标签 */
.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.perm-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #E6F7FF;
  color: #1890FF;
  border: 1px solid #BAE7FF;
  white-space: nowrap;
}
.perm-tag-none {
  font-size: 12px;
  color: #BFBFBF;
}

/* 用户管理操作按钮组 */
.action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 表单选择框 */
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
select:focus {
  border-color: var(--primary);
}
