/* ══════════════════════════════════════════════════
   次元幻想租赁 · 管理端样式 v4
   主题色: #1A1A1A (深黑) · 辅助色: #D4AF37 (亮金)
   ══════════════════════════════════════════════════ */

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

:root {
  --primary: #D4AF37;
  --primary-hover: #B89030;
  --primary-light: #FBF6E6;
  --primary-lighter: #FDFAF3;
  --primary-dark: #1A1A1A;
  --primary-highlight: #E8C66C;
  --danger: #FF4D4F;
  --danger-light: #FFF2F0;
  --success: #07C160;
  --success-bg: #E8F8EF;
  --warning: #FF9800;
  --warning-bg: #FFF7E6;
  --info: #2196F3;
  --info-bg: #E6F7FF;
  --teal: #009688;
  --teal-bg: #E0F2F1;
  --text: #1A1A1A;
  --text-secondary: #555;
  --text-muted: #999;
  --text-placeholder: #BFBFBF;
  --border: #E8E8E8;
  --border-light: #F0F0F0;
  --bg: #F7F7F8;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 0.2s ease;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ═══ 登录页 ═══ */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0D0D0F 0%, #1A1A1A 50%, #0D0D0F 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  animation: loginGlow 8s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  bottom: -250px;
  left: -150px;
  animation: loginGlow 10s ease-in-out infinite reverse;
}

@keyframes loginGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 装饰粒子 */
.login-page .particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite;
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-40px) scale(1.5); opacity: 0.6; }
}

.login-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  padding: 48px 44px;
  border-radius: 20px;
  width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
  animation: loginSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 4px;
  color: #1a1a2e;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.login-card h1 span {
  background: linear-gradient(135deg, #D4AF37, #E8C66C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ═══ 表单 ═══ */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all var(--transition);
  background: #FAFAFA;
  color: var(--text);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-placeholder);
}

.full-width { width: 100% !important; }

/* ═══ 按钮 ═══ */
.btn-primary {
  background: linear-gradient(135deg, #D4AF37, #E8C66C);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(212,175,55,0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(212,175,55,0.4);
  transform: translateY(-2px);
}

.btn-primary:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 4px rgba(212,175,55,0.25);
  transition: all 0.08s;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.15);
}

.btn-outline:active {
  transform: translateY(0) scale(0.97);
  transition: all 0.08s;
}

.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
  background: var(--danger-light);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255,77,79,0.12);
}

.btn-danger:active {
  transform: scale(0.97);
  transition: all 0.08s;
}

.btn-small { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.error-msg {
  color: var(--danger);
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
}

/* ═══ 主布局 ═══ */
.main-page { display: flex; min-height: 100vh; }

/* ═══ 侧边栏 ═══ */
.sidebar {
  width: 232px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  border-right: 1px solid var(--border-light);
  box-shadow: 2px 0 16px rgba(0,0,0,0.03);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header h2::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #D4AF37, #E8C66C);
  border-radius: 7px;
  flex-shrink: 0;
}

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2px 0;
  border-radius: var(--radius);
  letter-spacing: 0.2px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateX(3px);
}

.nav-item:active {
  transform: translateX(1px) scale(0.98);
}

.nav-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, #FBF6E6, #F5ECD0);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(212,175,55,0.12);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  margin-right: 12px;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #F5F5F5;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(212,175,55,0.3);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.sidebar-footer a:hover { color: var(--primary-hover); }

/* ═══ 内容区 ═══ */
.content {
  margin-left: 232px;
  flex: 1;
  padding: 28px 32px;
  background: var(--bg);
  min-height: 100vh;
  max-width: 1400px;
}

.page {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}
.page.active {
  display: block;
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══ 统计卡片 ═══ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: #E8D9B8;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D4AF37, #E8C66C);
  opacity: 0;
  transform: scaleX(0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ═══ 工具栏 ═══ */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  width: 220px;
  background: #fff;
  transition: all var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.select-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.select-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* ═══ 表格 ═══ */
.table-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  background: #FAFAFA;
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 13px;
  color: var(--text);
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover td {
  background: #FDFAF3;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ═══ 标签/徽章 ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.6;
}

.badge {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-danger    { background: #FFF1F0; color: #CF1322; }
.badge-success   { background: #F6FFED; color: #389E0D; }
.badge-warning   { background: #FFF7E6; color: #D46B08; }
.badge-info      { background: #E6F7FF; color: #096DD9; }
.badge-purple    { background: #F9F0FF; color: #722ED1; }
.badge-teal      { background: #E6FFFB; color: #006D75; }
.badge-secondary { background: #FAFAFA; color: #8C8C8C; }
.badge-dark      { background: #F5F5F5; color: #595959; }
.badge-deeporange{ background: #FFF2E8; color: #D4380D; }
.badge-amber     { background: #FFFBE6; color: #D48806; }
.badge-platform  { background: #E6F7FF; color: #1890FF; }

/* ═══ 待办卡片 ═══ */
.todo-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }

.todo-card {
  background: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.todo-card h3 {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F8F8F8;
  font-size: 14px;
}

.todo-item:last-child { border-bottom: none; }

/* ═══ 分页 ═══ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.pagination button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.pagination button.active {
  background: linear-gradient(135deg, #D4AF37, #E8C66C);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(212,175,55,0.3);
}

/* ═══ 弹窗 ═══ */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  width: 740px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalContentIn 0.25s ease;
}

@keyframes modalContentIn {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content h3 {
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

/* ═══ 上传区域 ═══ */
.upload-zone {
  border: 2px dashed #D9D9D9;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: #FAFAFA;
}

.upload-zone:hover {
  border-color: var(--primary) !important;
  background: var(--primary-lighter);
}

.upload-zone.dragover {
  border-color: var(--primary) !important;
  background: #F5EDE0;
  border-style: solid;
}

/* ═══ 设置面板 ═══ */
.settings-section {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.settings-section h3 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ═══ 操作按钮组 ═══ */
.action-cell { white-space: nowrap; }

.action-cell .btn-small {
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

/* ═══ 日期输入 ═══ */
input[type="date"] {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

input[type="date"]:focus {
  border-color: var(--primary);
  outline: none;
}

/* ═══ 通用工具类 ═══ */
.text-center { text-align: center; }
.text-gray  { color: var(--text-muted); }
.text-red   { color: var(--danger); }
.text-green { color: var(--success); }
.text-blue  { color: var(--primary); }
.text-small { font-size: 12px; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-1 { flex: 1; }

/* ═══ 子标签页 ═══ */
.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.tab-item {
  padding: 11px 26px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
}

.tab-item:hover { color: var(--primary); }

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: linear-gradient(to top, var(--primary-light), transparent 40%);
}

.tab-item .badge { margin-left: 6px; vertical-align: 1px; }

.vtab { display: none; }
.vtab.active { display: block; animation: pageFadeIn 0.2s ease; }

/* ═══ 移动端 ═══ */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(212,175,55,0.3);
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99;
  backdrop-filter: blur(1px);
}

/* ═══ 配送配置卡片 ═══ */
.dc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dc-card {
  background: #FCFCFC;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all var(--transition);
}

.dc-card:hover {
  border-color: #E8D9B8;
  box-shadow: var(--shadow-sm);
}

.dc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.dc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.dc-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.dc-name-input {
  width: 110px;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
  transition: border-color var(--transition);
}

.dc-name-input:focus {
  border-color: var(--primary);
  outline: none;
}

.dc-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dc-field {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dc-field label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.dc-field input {
  width: 58px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  background: #fff;
  transition: border-color var(--transition);
}

.dc-field input:focus {
  border-color: var(--primary);
  outline: none;
}

.dc-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.dc-tag {
  display: inline-block;
  padding: 3px 12px;
  background: #F0F0F0;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══ 卷码选择组编辑器 ═══ */
.sg-group-editor {
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color var(--transition);
}

.sg-group-editor:hover {
  border-color: #E8D9B8;
}

.sg-pool-scroll {
  max-height: 130px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: #fff;
}

/* ═══ 响应式 ═══ */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .sidebar-overlay.show { display: block; }

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
  }
  .sidebar.open { transform: translateX(0); }

  .content { margin-left: 0; padding: 56px 14px 24px; }

  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 18px 12px; }
  .stat-value { font-size: 26px; }

  .toolbar { flex-direction: column; gap: 8px; align-items: stretch; }
  .search-input, .select-input { width: 100%; }
  .toolbar button { width: 100%; }

  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 800px; font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; white-space: nowrap; }

  .modal-content { width: 95vw; max-width: 95vw; padding: 18px; max-height: 90vh; }
  .modal-content h3 { font-size: 16px; margin-bottom: 14px; }
  .modal-actions { flex-wrap: wrap; gap: 6px; }
  .modal-actions button { flex: 1; min-width: 80px; font-size: 13px; }

  .action-cell .btn-small { padding: 5px 8px; font-size: 11px; margin-right: 2px; }

  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px;
    padding: 10px 12px;
  }

  .dc-cards { grid-template-columns: 1fr; }
  .settings-section { padding: 18px; }

  .login-card { width: 90vw; padding: 32px 24px; }

  .page-title { font-size: 18px; margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 14px 10px; }
  .stat-value { font-size: 22px; }

  .modal-content { padding: 14px; }
  .data-table { min-width: 650px; }
}
