[v-cloak] { display: none; }

html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  overflow-y: auto;
  max-width: 100vw;
  /* 防止动画导致高度变化触发滚动条 */
  height: 100%;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden !important;
  /* 防止动画导致高度变化触发滚动条 */
  min-height: 100vh;
  height: auto;
}

/* 科技风格渐变背景 - 固定到视口，避免滚动时上下分离 */
body {
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 25%, #312e81 50%, #1e293b 75%, #0f172a 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%;
  background-attachment: fixed, fixed, fixed, fixed;
  /* 移除所有动画，避免触发滚动条 */
  position: relative;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  /* 防止动画导致布局重排 */
  will-change: auto;
  transform: translateZ(0);
}

/* 移除所有动画，避免触发滚动条 */
/* @keyframes gradientShift {
  0% { background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%; }
  50% { background-position: 0% 50%, 0% 0%, 0% 0%, 25% 50%; }
  100% { background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%; }
} */

/* @keyframes backgroundPulse {
  0%, 100% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(1.05) contrast(1.02); }
} */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(168, 85, 247, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  /* 限制背景尺寸，避免超出视口 */
  background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px, min(600px, 50vw) min(600px, 50vh), min(600px, 50vw) min(600px, 50vh), min(1000px, 80vw) min(1000px, 80vh);
  pointer-events: none;
  z-index: 0;
  /* 移除所有动画，避免触发滚动条 */
  opacity: 0.9;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background: 
    /* 使用视口单位而不是固定像素值，避免超出视口 */
    radial-gradient(ellipse 60vw 40vh at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50vw 35vh at 90% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40vw 30vh at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  /* 移除 lightMove 动画，避免触发滚动条 */
}

/* 移除所有动画，避免触发滚动条 */
/* @keyframes gridPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
} */

/* @keyframes gridMove {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 40px 40px, 40px 40px, 200px 200px, 200px 200px, 100px 100px, -100px -100px, 50px 50px; }
} */

/* @keyframes lightMove {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  33% { transform: translate(20px, -30px) scale(1.05); opacity: 1; }
  66% { transform: translate(-20px, 30px) scale(0.95); opacity: 0.9; }
} */

#app {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: hidden;
}

#app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(99, 102, 241, 0.6), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(168, 85, 247, 0.6), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(59, 130, 246, 0.8), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(99, 102, 241, 0.5), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(168, 85, 247, 0.5), transparent);
  background-repeat: repeat;
  background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px;
  pointer-events: none;
  z-index: 0;
  /* 移除 sparkle 动画，避免触发滚动条 */
  opacity: 0.6;
}

/* 移除 sparkle 动画，避免 transform 触发滚动条 */
/* @keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: translate(0, 0); }
  25% { opacity: 0.8; transform: translate(10px, -10px); }
  50% { opacity: 0.6; transform: translate(-10px, 10px); }
  75% { opacity: 0.9; transform: translate(5px, 5px); }
} */

/* 侧边栏导航项样式 - 增强对比度和可见性 */
.sidebar-item {
  transition: all 0.2s;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 4px;
}

.sidebar-item:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.sidebar-item.active {
  background: rgba(99, 102, 241, 0.35);
  border-left: 4px solid rgba(99, 102, 241, 0.8);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
  font-weight: 600;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.6);
}

.admin-table th {
  /* 表头使用不透明背景，避免滚动时与下方内容重叠透出 */
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  border: 1px solid rgba(59, 130, 246, 0.6);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table td {
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 12px;
  color: #cbd5e1;
}

.name-link {
  color: #67e8f9;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  text-shadow: 0 0 8px rgba(103, 232, 249, 0.3);
}

.name-link:hover {
  color: #a5f3fc;
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.5);
  transform: translateX(2px);
}

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

.admin-table tbody tr {
  background-color: rgba(15, 23, 42, 0.4);
}

.admin-table tbody tr:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.6);
}

.admin-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.25);
  transform: scale(1.01);
}

/* .tech-card 见 /css/tech-surface.css */

/* 权限管理：可读性（字重、滚动条、抗锯齿） */
.permissions-panel {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #e2e8f0;
}
/* 权限码列表区：与主内容区 main 共用一条纵向滚动，避免内外双层滚动条抢滚轮 */
.permissions-panel-list {
  position: relative;
  z-index: 1;
}
.permissions-panel .perm-intro {
  color: #94a3b8;
  font-size: 0.8125rem;
}
.permissions-panel .perm-hint {
  color: #64748b;
  font-size: 0.8125rem;
}
.permissions-panel .perm-filters-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.permissions-panel .perm-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
@media (min-width: 1280px) {
  .permissions-panel .perm-filters-row {
    flex-wrap: nowrap;
    gap: 1rem 1.25rem;
  }
}
.permissions-panel .perm-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.permissions-panel .perm-filter-item--grow {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 28rem;
}
.permissions-panel .perm-sys-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
}
.permissions-panel .perm-sys-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}
.permissions-panel .perm-group-title {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.permissions-panel .perm-nav-module-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #818cf8;
  margin: 0.5rem 0 0.35rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(99, 102, 241, 0.55);
}
/* 售后等：展示层级（仅 UI，不改变授权语义） */
.permissions-panel .perm-tier-1-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c7d2fe;
  margin: 0.65rem 0 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.375rem;
  background: rgba(67, 56, 202, 0.18);
  border-left: 3px solid rgba(129, 140, 248, 0.9);
}
.permissions-panel .perm-tier-2-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  margin: 0.85rem 0 0.3rem;
  padding-left: 0.45rem;
  border-left: 2px solid rgba(56, 189, 248, 0.55);
}
.permissions-panel .perm-tier-3-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0.45rem 0 0.2rem 0.35rem;
  letter-spacing: 0.04em;
}
.permissions-panel .perm-tier-note {
  font-size: 0.625rem;
  color: #64748b;
  margin: 0.1rem 0 0.35rem 0.15rem;
  line-height: 1.45;
}
.permissions-panel .perm-list-toolbar {
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.45);
}
.permissions-panel .perm-mod-collapse {
  border-radius: 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.45);
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: rgba(15, 23, 42, 0.25);
}
.permissions-panel .perm-collapse-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  padding: 0.55rem 0.65rem;
  background: rgba(30, 41, 59, 0.45);
  border: none;
  cursor: pointer;
  color: #e2e8f0;
  transition: background 0.15s ease;
}
.permissions-panel .perm-collapse-trigger:hover {
  background: rgba(51, 65, 85, 0.55);
}
.permissions-panel .perm-collapse-chevron {
  font-size: 0.65rem;
  width: 1rem;
  flex-shrink: 0;
  color: #94a3b8;
  user-select: none;
}
.permissions-panel .perm-collapse-body {
  padding: 0.35rem 0.5rem 0.65rem;
  border-top: 1px solid rgba(51, 65, 85, 0.35);
}
.permissions-panel .perm-row {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(51, 65, 85, 0.45);
  border-radius: 0.5rem;
}
.permissions-panel .perm-row:hover {
  background: rgba(51, 65, 85, 0.4);
  border-color: rgba(100, 116, 139, 0.55);
}
.permissions-panel .perm-code {
  color: #7dd3fc;
  font-size: 0.8125rem;
}
.permissions-panel .perm-name {
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
}
.permissions-panel .perm-badge {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(71, 85, 105, 0.6);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.permissions-panel .perm-remark-body {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.55;
  margin-top: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.375rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.5);
  white-space: pre-wrap;
  word-break: break-word;
}
.permissions-panel .perm-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-height: 0;
}
.permissions-panel .perm-main-col {
  min-width: 0;
  min-height: 0;
}
@media (min-width: 1280px) {
  .permissions-panel .perm-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .permissions-panel .perm-main-col {
    flex: 1;
    min-width: 0;
    min-height: 0;
  }
  .permissions-panel .perm-side-col {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 0.75rem;
    align-self: flex-start;
  }
}
.permissions-panel .perm-side-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
}
.permissions-panel .perm-side-card details summary {
  cursor: pointer;
  font-size: 0.75rem;
  color: #94a3b8;
  list-style: none;
}
.permissions-panel .perm-side-card details summary::-webkit-details-marker {
  display: none;
}
.permissions-panel .perm-side-stat-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(51, 65, 85, 0.75);
  overflow: hidden;
}
.permissions-panel .perm-side-stat-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  min-width: 4px;
  transition: width 0.2s ease;
}

/* 归档导出弹窗：仅中间弹窗不透明，弹窗周边不遮住背景 */
.archive-modal-overlay {
  background: transparent;
}
/* 弹窗主框：深色青蓝渐变 + 描边光效 */
.archive-modal-content {
  background: linear-gradient(165deg, #1e3a5f 0%, #0f172a 45%, #0f172a 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(56, 189, 248, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* 归档月份筛选区块：与主框协调的浅一层 */
.archive-month-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.5) 0%, rgba(15, 34, 60, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.archive-month-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
  cursor: pointer;
}
/* 模块选择区：略亮一层、层次分明 */
.archive-card {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* 模块列表内所有文字强制亮色，确保“业务数据/成交订单/库存与财务”等清晰可读 */
.archive-card .text-sm.font-bold.mb-1,
.archive-card .text-xs.text-gray-200,
.archive-card .grid .text-xs,
.archive-card .grid label,
.archive-card .grid label span {
  color: #ffffff !important;
}

/* .kpi-card 见 /css/tech-surface.css */

.kpi-change {
  font-size: 12px;
  margin-top: 4px;
}

.kpi-change.positive {
  color: #34d399;
}

.kpi-change.negative {
  color: #f87171;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.5);
  color: #e2e8f0;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(30, 41, 59, 0.9);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  z-index: 1000;
  animation: slideIn 0.3s ease;
  min-width: 300px;
  color: #e2e8f0;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid #34d399;
  background: rgba(16, 185, 129, 0.9);
}

.toast.error {
  border-left: 4px solid #f87171;
  background: rgba(239, 68, 68, 0.9);
}

.toast.warning {
  border-left: 4px solid #fbbf24;
  background: rgba(245, 158, 11, 0.9);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.confirm-modal-overlay {
  z-index: 1200;
}

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

.modal-content {
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.table-container {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.4);
}

.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background-color: rgba(15, 23, 42, 0.9);
}

.search-input {
  padding: 10px 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  background-color: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.search-input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.search-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background-color: rgba(15, 23, 42, 0.9);
}

/* 后台修改页：统一美化，占满主内容区避免右侧空白 */
.backend-edit-page {
  width: 100%;
  max-width: 100%;
  padding-bottom: 2rem;
}
.backend-edit-defaults {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.backend-edit-defaults .backend-edit-block { margin-bottom: 0; }
.backend-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.backend-edit-grid .backend-edit-block { margin-bottom: 0; }
.backend-edit-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.backend-edit-col .backend-edit-block { margin-bottom: 0; }
@media (max-width: 900px) {
  .backend-edit-defaults { grid-template-columns: 1fr; }
  .backend-edit-grid { grid-template-columns: 1fr; }
  .backend-edit-workbench {
    grid-template-columns: 1fr;
  }
  .backend-edit-rail {
    position: static;
  }
  .backend-rail-card {
    display: none;
  }
  .backend-edit-header {
    flex-direction: column;
    padding: 1rem;
  }
  .backend-edit-header-badge {
    width: 100%;
    text-align: left;
  }
  .backend-edit-overview {
    grid-template-columns: 1fr;
  }
  .backend-edit-add-row {
    flex-direction: column;
    align-items: stretch;
  }
  .backend-edit-add-row input,
  .backend-edit-add-row .btn-primary {
    width: 100%;
  }
  .backend-edit-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
.backend-edit-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 20%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}
.backend-edit-kicker {
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.backend-edit-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.backend-edit-header h2::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #22d3ee;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1);
}
.backend-edit-intro {
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 760px;
}
.backend-edit-header-badge {
  min-width: 130px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  text-align: right;
}
.backend-edit-header-badge span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.backend-edit-header-badge strong {
  color: #a5f3fc;
  font-size: 0.95rem;
}
.backend-edit-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.backend-edit-overview-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
}
.overview-icon {
  flex: 0 0 auto;
  min-width: 46px;
  height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cffafe;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.overview-title {
  color: #f8fafc;
  font-weight: 800;
  font-size: 0.96rem;
}
.overview-desc {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 0.18rem;
}
.backend-edit-workbench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.backend-edit-rail {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.backend-rail-card,
.backend-rail-note {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  padding: 1rem;
}
.backend-rail-title,
.backend-rail-note-title {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.backend-rail-card a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: rgba(30, 41, 59, 0.42);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.backend-rail-card a:hover {
  color: #cffafe;
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.1);
  transform: translateX(2px);
}
.backend-rail-note p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.65;
}
.backend-edit-content {
  min-width: 0;
}
.backend-edit-band {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(8, 47, 73, 0.28);
}
.backend-edit-band-secondary {
  margin-top: 1.15rem;
  background: rgba(49, 46, 129, 0.24);
  border-color: rgba(168, 85, 247, 0.18);
}
.backend-edit-band-label {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.16rem;
}
.backend-edit-band h3 {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}
.backend-edit-band p {
  color: #94a3b8;
  font-size: 0.82rem;
  max-width: 420px;
  line-height: 1.55;
}
.backend-edit-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.25), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.backend-edit-block::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(34,211,238,0.65), rgba(168,85,247,0.55), transparent);
  pointer-events: none;
}
.backend-edit-block:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(34, 211, 238, 0.07);
}
.backend-edit-block-title {
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.01em;
}
.backend-section-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  color: #cffafe;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.backend-edit-block.quote .backend-edit-block-title { border-bottom-color: rgba(34, 197, 94, 0.35); }
.backend-edit-block.orders .backend-edit-block-title { border-bottom-color: rgba(59, 130, 246, 0.35); }
.backend-edit-block.after .backend-edit-block-title { border-bottom-color: rgba(245, 158, 11, 0.35); }
.backend-edit-block.person .backend-edit-block-title { border-bottom-color: rgba(168, 85, 247, 0.35); }
.backend-edit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.backend-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}
.backend-edit-field.full { grid-column: 1 / -1; }
.backend-edit-subtitle {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #bae6fd;
  letter-spacing: 0.02em;
}
.backend-edit-field label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #dbeafe;
  letter-spacing: 0.02em;
}
.backend-edit-field input[type="number"],
.backend-edit-field input[type="text"] {
  padding: 10px 12px;
  font-size: 0.9375rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.5);
  color: #f8fafc;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.backend-edit-field input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.backend-input-invalid {
  border-color: rgba(248, 113, 113, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2) !important;
}
.backend-input-error-text {
  margin-top: 6px;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.4;
}
.quote-style-table {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
}
.quote-style-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.5rem 1rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.quote-style-row:last-child { border-bottom: none; }
.quote-style-row:not(.quote-style-head):nth-child(even) { background: rgba(30, 41, 59, 0.35); }
.quote-style-row.quote-style-head {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  padding: 0.6rem 1rem;
}
.quote-style-name {
  color: #e2e8f0;
  font-size: 0.875rem;
}
.quote-style-col input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  min-width: 0;
}
.quote-style-col input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.quote-copy-block {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.28);
}
/* 兼容旧版 div 栅格，以及新版表格式 quote-copy 块 */
table.quote-copy-block {
  display: block;
  border-collapse: separate;
  border-spacing: 0;
}
table.quote-copy-block thead,
table.quote-copy-block tbody {
  display: block;
  width: 100%;
}
table.quote-copy-block th,
table.quote-copy-block td {
  border: 0;
  font-weight: inherit;
  text-align: left;
  vertical-align: middle;
  min-width: 0;
}
.quote-copy-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px 72px;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  min-height: 46px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  width: 100%;
  box-sizing: border-box;
}
table.quote-copy-block tbody tr.quote-copy-row:nth-child(even) { background: rgba(30, 41, 59, 0.35); }
table.quote-copy-block tbody tr.quote-copy-row:last-child { border-bottom: none; }
.quote-copy-row:last-child { border-bottom: none; }
.quote-copy-row:not(.quote-copy-head):nth-child(even) { background: rgba(30, 41, 59, 0.35); }
.quote-copy-row.quote-copy-head {
  font-size: 0.75rem;
  font-weight: 800;
  color: #bae6fd;
  background: rgba(30, 41, 59, 0.72);
  padding: 0.65rem 0.85rem;
}
table.quote-copy-block .quote-copy-row.quote-copy-head th {
  font-size: 0.75rem;
  font-weight: 800;
  color: #bae6fd;
  background: transparent;
}
table.quote-copy-block th.quote-copy-label[scope="row"] {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 0.8125rem;
}
.quote-copy-label {
  color: #cbd5e1;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.quote-copy-text { min-width: 0; }
.quote-copy-text input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  min-width: 0;
}
.quote-copy-color input,
.quote-copy-size input {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.8125rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  min-width: 0;
}
.quote-copy-size input { max-width: 72px; }
.quote-copy-text input:focus,
.quote-copy-color input:focus,
.quote-copy-size input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.quote-copy-color-h,
.quote-copy-size-h {
  font-size: 0.75rem;
  color: #94a3b8;
}
.backend-edit-option-group {
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.backend-edit-option-group:hover {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(99, 102, 241, 0.18);
}
.backend-edit-option-group:last-child { margin-bottom: 0; }
.backend-edit-option-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  padding-left: 0.15rem;
}
.backend-edit-add-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.backend-edit-add-row input {
  padding: 9px 12px;
  font-size: 0.875rem;
  border: 1px solid rgba(99, 102, 241, 0.26);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.54);
  color: #e2e8f0;
  width: min(260px, 100%);
  flex: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.backend-edit-add-row input::placeholder { color: #64748b; }
.backend-edit-add-row input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.backend-edit-add-row .btn-primary {
  padding: 9px 16px;
  font-size: 0.8125rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.backend-edit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.backend-edit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 11px;
  font-size: 0.8125rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.backend-edit-tag:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(30, 41, 59, 0.95);
}
.backend-edit-tag input {
  padding: 4px 8px;
  font-size: 0.8125rem;
  width: 100px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
}
.backend-edit-tag .tag-btn {
  padding: 3px 9px;
  font-size: 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}
.backend-edit-tag .tag-btn:hover { transform: scale(1.02); opacity: 1; }
.backend-edit-tag .tag-btn-edit {
  background: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}
.backend-edit-tag .tag-btn-edit:hover { background: rgba(59, 130, 246, 0.5); color: #fff; }
.backend-edit-tag .tag-btn-save {
  background: rgba(34, 197, 94, 0.28);
  color: #86efac;
}
.backend-edit-tag .tag-btn-save:hover { background: rgba(34, 197, 94, 0.5); color: #fff; }
.backend-edit-tag .tag-btn-del {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}
.backend-edit-tag .tag-btn-del:hover { background: rgba(239, 68, 68, 0.5); color: #fff; }

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.8);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.pagination button:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: rgba(226, 232, 240, 0.5);
}

.pagination button.active {
  background: rgba(59, 130, 246, 0.8);
  color: white;
  border-color: rgba(59, 130, 246, 0.6);
}
.pagination-page-select {
  min-width: 88px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background-color: rgba(15, 23, 42, 0.85);
  color: #e0e7ff;
  cursor: pointer;
  margin: 0 4px;
}
.pagination-page-select:hover { border-color: rgba(99, 102, 241, 0.6); }
.pagination-page-select:focus { outline: none; border-color: rgba(99, 102, 241, 0.7); }

.mobile-admin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.mobile-admin-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 12px;
}
.mobile-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.mobile-admin-card-title {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 15px;
}
.mobile-admin-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 10px;
}
.mobile-admin-kv .k {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
}
.mobile-admin-kv .v {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
  word-break: break-word;
}
.mobile-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-admin-actions .btn-primary,
.mobile-admin-actions .btn-secondary,
.mobile-admin-actions .btn-danger {
  flex: 1 1 0;
  min-width: 96px;
}
.mobile-log-filter-toggle {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
}
.mobile-log-filter-panel {
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.55);
}
.mobile-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-status-chip {
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  transition: all 0.2s ease;
}
.mobile-status-chip.active {
  border-color: rgba(34, 211, 238, 0.55);
  color: #67e8f9;
  background: rgba(8, 47, 73, 0.8);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25) inset;
}
.mobile-log-keyword-input {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
}
.mobile-log-keyword-input:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}
.mobile-highlight {
  background: rgba(250, 204, 21, 0.28);
  color: #fde68a;
  border-radius: 3px;
  padding: 0 2px;
}
.mobile-log-group {
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.45);
}
.mobile-log-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}
.mobile-log-group-meta {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
}

/* ========== 移动端：汉堡菜单、安全区、减弱动效 ========== */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 73px);
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
  nav .px-6.py-4 {
    padding: 0.75rem;
  }
  nav h1 {
    white-space: nowrap;
    font-size: 1.125rem;
    line-height: 1.4;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    overflow-y: visible;
  }
  .admin-sidebar .p-4 {
    padding: 0.75rem;
  }
  .admin-side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .admin-side-nav .sidebar-item {
    margin-bottom: 0;
    min-height: 42px;
    padding: 0.625rem 0.75rem;
  }
  .admin-main {
    padding: 0.75rem;
  }
  .admin-main h2 {
    font-size: 1.25rem;
    line-height: 1.5;
  }
  .kpi-card {
    padding: 0.875rem;
  }
  .kpi-value {
    font-size: 1.5rem;
  }
  .table-container {
    border-radius: 0.5rem;
  }
  .admin-table {
    min-width: 760px;
    font-size: 13px;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px;
  }
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    min-height: 40px;
    padding: 8px 12px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .modal-content {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: 86vh;
    overflow-y: auto;
  }
  .mobile-admin-kv {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) { .nav-drawer-overlay, .nav-drawer-panel { display: none !important; } }
