/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主题颜色变量 */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --bg-color: #f8fafc;
    --bg-surface: #f8fafc;
    --bg-blue-tint: #f0f9ff;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-body: #374151;
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;
    --border-blue: #bae6fd;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
}

/* 暗色模式 - 系统偏好 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #6366f1;
        --primary-hover: #818cf8;
        --bg-color: #0f172a;
        --bg-surface: #1e293b;
        --bg-blue-tint: #1e3a5f;
        --sidebar-bg: #0f172a;
        --sidebar-hover: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-body: #e2e8f0;
        --border-color: #334155;
        --border-blue: #1e40af;
        --card-bg: #1e293b;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    }
}

/* 暗色模式 - 手动选择 */
[data-theme="dark"] {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --bg-color: #0f172a;
    --bg-surface: #1e293b;
    --bg-blue-tint: #1e3a5f;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-body: #e2e8f0;
    --border-color: #334155;
    --border-blue: #1e40af;
    --card-bg: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* 浅色模式 - 手动选择 */
[data-theme="light"] {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --bg-surface: #f8fafc;
    --bg-blue-tint: #f0f9ff;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-body: #374151;
    --border-color: #e2e8f0;
    --border-blue: #bae6fd;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    height: 100vh;
    line-height: 1.6;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* 无障碍焦点样式 */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 99999;
    animation: toastSlideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.toast-success { background: #4CAF50; }
.toast-error { background: #F44336; }
.toast-info { background: #2196F3; }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   登录页面 - Glassmorphism 现代设计风格
   ============================================ */

/* 背景装饰 */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.6;
  animation: floatShape 20s ease-in-out infinite;
  -webkit-animation: floatShape 20s ease-in-out infinite;
  will-change: transform;
}

.bg-shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
  -webkit-animation-delay: 0s;
}

.bg-shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
  -webkit-animation-delay: -5s;
}

.bg-shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  top: calc(50% - 150px);
  left: calc(50% - 150px);
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* 登录容器 */
.login-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 登录内容 */
.login-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}

/* Logo 和品牌区域 */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
}

.logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
  opacity: 0.8;
  animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

.logo-image {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  object-fit: cover;
}

.brand-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* 登录表单 */
.login-form {
  width: 100%;
  max-width: 400px;
}

/* 登录卡片 - Glassmorphism */
.login-card {
  width: 100%;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 卡片头部 */
.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.header-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* 表单内容 */
.login-form-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 错误提示 */
.login-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  animation: shake 0.4s ease-in-out;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.4;
}

.login-error::before {
  content: "⚠";
  font-size: 16px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* 输入框组 */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.input-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.login-input {
  width: 100%;
  height: 56px;
  padding: 0 48px;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.login-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 密码可见切换 */
.password-toggle {
  position: absolute;
  right: 16px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
}

.password-toggle:hover {
  opacity: 1;
}

.eye-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.8);
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.login-btn:hover::before {
  opacity: 1;
}

.btn-text {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 4px;
}

/* 底部版权 */
.login-footer {
  margin-top: 40px;
  text-align: center;
}

.footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}

/* 响应式适配 */
@media (max-width: 480px) {
  .login-content {
    padding: 32px 16px;
  }
  
  .login-card {
    padding: 32px 20px;
  }
  
  .brand-title {
    font-size: 24px;
  }
  
  .logo-container {
    width: 80px;
    height: 80px;
  }
  
  .logo-image {
    width: 80px;
    height: 80px;
  }
  
  .login-input {
    height: 52px;
    font-size: 15px;
  }
  
  .login-btn {
    height: 52px;
  }
}

/* 容器样式 */
.container {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: none;
    position: relative;
}

.container.active {
    display: block;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--text-light);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 80px;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-content {
    text-align: left;
    white-space: nowrap;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
    font-weight: 400;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-role {
    font-size: 14px;
    opacity: 0.9;
}

.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主布局样式 */
.main-layout {
    display: flex;
    height: 100vh;
    padding-top: 80px;
}

/* 左侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 侧边栏折叠态：仅图标 */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 0;
}

.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 15px 0;
    gap: 0;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

/* 菜单项样式 */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.menu-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-light);
}

.menu-item.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.menu-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    width: 20px;
    height: 20px;
}

/* Menu section separator */
.menu-section-separator {
    display: flex;
    align-items: center;
    padding: 12px 20px 8px;
    gap: 10px;
}

.menu-section-separator .separator-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.menu-section-separator .separator-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* 可折叠分组抽屉 */
.menu-group { margin-bottom: 0; }
.menu-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s;
}
.menu-group-header:hover { background: rgba(255, 255, 255, 0.1); }
.group-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}
.group-arrow.open { transform: rotate(90deg); }
.menu-group-items { display: none; }
.menu-group-items.open { display: block; }

/* 折叠态下分组抽屉：隐藏文字/箭头，头部仅剩可点击行 */
.sidebar.collapsed .menu-group-header {
    justify-content: center;
    padding: 14px 0;
    gap: 0;
}
.sidebar.collapsed .group-text,
.sidebar.collapsed .group-arrow {
    display: none;
}

/* 右侧内容区域 */
.content-area {
    flex: 1;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* 页面内容样式 */
.tab-content {
    display: none;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页面头部 */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 工具栏样式 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--secondary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background-color: var(--bg-surface);
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

tr:hover {
    background-color: var(--bg-surface);
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: #eef2ff;
    color: var(--primary-color);
}

.badge-success {
    background: #d1fae5;
    color: var(--secondary-color);
}

.badge-warning {
    background: #fef3c7;
    color: var(--warning-color);
}

.badge-danger {
    background: #fee2e2;
    color: var(--danger-color);
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ffffff;
}

.stat-card .value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 统计卡片并列双值：主值=筛选值，.stat-all=全部值（角色权限范围内绝对数） */
.stat-card .value.stat-dual {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-card .value .stat-all {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}


/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    font-weight: 500;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Inline checkbox group */
.form-inline-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    line-height: 1;
}

/* 表单控件样式 */
.form-control {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-xl);
}

/* 宽屏模态框 —— 记录查看/审核横屏布局 */
.modal-content-wide {
    max-width: 1600px;
    padding: 36px 40px;
}

/* 图片/视频查看模态框 */
.modal-content-wide.images-view-modal {
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content-wide .modal-header h2 {
    font-size: 26px;
}

.modal-content-wide .form-group {
    margin-bottom: 24px;
}

.modal-content-wide .form-group label {
    font-size: 16px;
    margin-bottom: 10px;
}

.modal-content-wide .form-group input,
.modal-content-wide .form-group select,
.modal-content-wide .form-group textarea {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.modal-content-wide .image-upload-preview,
.modal-content-wide .image-upload-placeholder {
    width: 180px;
    height: 180px;
}

.modal-content-wide .floor-plan-editor {
    min-height: 360px;
}

.modal-content-wide .inspection-record-item {
    padding: 14px 16px;
    gap: 12px;
}

.modal-content-wide .inspection-record-item span {
    font-size: 15px;
}

.modal-content-wide .device-checklist-item {
    padding: 14px 16px;
    font-size: 15px;
}

.modal-content-wide .device-checklist-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.modal-content-wide .modal-footer .btn {
    padding: 12px 28px;
    font-size: 15px;
}

/* 查看对话框字段区：字段及文本框自动放大占满高度（非靠间距） */
#records-fields-area,
#tour-bus-fields-area,
#oversized-fields-area,
#special-fields-area,
#hazmat-fields-area,
#persuasion-fields-area {
    display: flex;
    flex-direction: column;
}
#records-fields-area .form-group,
#tour-bus-fields-area .form-group,
#oversized-fields-area .form-group,
#special-fields-area .form-group,
#hazmat-fields-area .form-group,
#persuasion-fields-area .form-group {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}
#records-fields-area .form-group label,
#tour-bus-fields-area .form-group label,
#oversized-fields-area .form-group label,
#special-fields-area .form-group label,
#hazmat-fields-area .form-group label,
#persuasion-fields-area .form-group label {
    font-size: 13px;
    margin-bottom: 2px;
    flex-shrink: 0;
}
#records-fields-area .form-group input,
#tour-bus-fields-area .form-group input,
#oversized-fields-area .form-group input,
#special-fields-area .form-group input,
#hazmat-fields-area .form-group input,
#persuasion-fields-area .form-group input {
    flex: 1;
    padding: 5px 8px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* 记录查看对话框：flex 填充，内容不滚动 */
.modal-content-wide:has(.record-view-grid) {
    display: flex;
    flex-direction: column;
    height: 96vh;
    max-height: 96vh;
    padding: 10px 16px;
    overflow: hidden;
}
.modal-content-wide:has(.record-view-grid) .modal-header {
    flex-shrink: 0;
    margin-bottom: 8px;
}
.modal-content-wide:has(.record-view-grid) #modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}
.modal-content-wide:has(.record-view-grid) .modal-footer {
    flex-shrink: 0;
    margin-top: 8px;
    padding-top: 8px;
}
.record-view-grid {
    height: 100%;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ==================== 加载动画 ==================== */

/* 波浪点动画 - 用于弹窗加载 */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}
.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
    background: #6366f1;
}
.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--secondary-color);
}
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
    40% { transform: scale(1.4); opacity: 1; }
}

/* 骨骼屏动画 - 用于表格加载 */
.skeleton {
    width: 100%;
}
.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, var(--border-color) 25%, #f1f5f9 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-45 { width: 45%; }
.skeleton-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--border-color) 25%, #f1f5f9 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 双圆环动画 - 用于通用加载 */
.dual-ring-loader {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto;
}
.dual-ring-loader .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}
.dual-ring-loader .ring:nth-child(1) {
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}
.dual-ring-loader .ring:nth-child(2) {
    inset: 8px;
    border-bottom-color: var(--secondary-color);
    animation: spin 1.5s linear infinite reverse;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通用加载容器 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}
.loading .loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 骨架屏表格加载 */
.skeleton-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}
.skeleton-table .skeleton-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}
.skeleton-table .skeleton-row:last-child {
    border-bottom: none;
}

/* ==================== 全局加载指示器 ==================== */
.global-loader {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.global-loader .loading-dots {
    gap: 5px;
}
.global-loader .loading-dots .dot {
    width: 8px;
    height: 8px;
}
.global-loader p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

/* 提示框样式 */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 响应式设计 - 平板适配 */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .menu-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    .tab-content {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .toolbar {
        padding: 15px;
    }

    .modal-content {
        max-width: 90%;
    }

    .modal-content-wide {
        max-width: 95%;
        padding: 24px;
    }
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }

    .menu-item {
        flex-direction: column;
        padding: 10px;
        min-width: 120px;
        text-align: center;
    }

    /* 移动端为顶部横向菜单，折叠态重置为不折叠 */
    .sidebar.collapsed {
        width: 100%;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: space-between;
        padding: 20px;
    }

    .sidebar.collapsed .sidebar-header h3 {
        display: block;
    }

    .sidebar.collapsed .menu-text {
        display: inline-block;
    }

    .sidebar.collapsed .menu-item {
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        gap: 0;
    }

    .sidebar.collapsed .menu-group-header {
        justify-content: flex-start;
        padding: 12px 20px;
        gap: 8px;
    }

    .sidebar.collapsed .group-text,
    .sidebar.collapsed .group-arrow {
        display: inline;
    }

    .tab-content {
        padding: 15px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px;
    }
}

/* Flexbox Utilities */
.d-flex {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.gap-10 {
    gap: 10px;
}
.gap-15 {
    gap: 15px;
}
.gap-20 {
    gap: 20px;
}

/* Specific Layouts */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    min-width: 150px;
}

.date-input {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* 表格容器样式 */
.table-wrapper {
    overflow-x: auto;
}

/* 分页容器样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    gap: 15px;
}

/* 分页信息样式 */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.pagination-info span {
    font-size: 14px;
    color: var(--text-secondary);
}

.page-size-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
}

/* 分页按钮样式 */
.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.pagination-buttons .btn-pagination {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.pagination-buttons .btn-pagination:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-buttons .btn-pagination:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-current {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .pagination-container {
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .pagination-info {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .pagination-info span {
    font-size: 12px;
  }

  .page-size-select {
    font-size: 12px;
    padding: 4px 8px;
  }

  .pagination-buttons {
    gap: 4px;
  }

  .pagination-buttons .btn-pagination {
    padding: 4px 10px;
    font-size: 12px;
  }

  .pagination-current {
    font-size: 12px;
  }
}

/* 记录详情图片样式 */
.record-images-container {
  width: 100%;
}

.record-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 10px;
}

.images-grid .image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--border-color);
}

.images-grid .image-item img,
.images-grid .image-item video {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.images-grid .image-item img:hover,
.images-grid .image-item video:hover {
  transform: scale(1.02);
}

.images-grid .image-item p {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.record-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: transform 0.2s ease;
}

.record-image-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.record-image-item .image-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

.record-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.record-image:hover {
  opacity: 0.9;
}

.empty-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.empty-images svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.empty-images p {
  font-size: 14px;
  margin: 0;
}

/* 大件运输车状态徽章 */
.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-verified {
  background: #dbeafe;
  color: #1e40af;
}

.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* 图片模态框 */
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 20px;
}

.image-modal {
position: relative;
max-width: calc(100vw - 40px);
max-height: calc(100vh - 40px);
display: flex;
align-items: center;
justify-content: center;
}

.image-modal-preview {
max-width: calc(100vw - 40px);
max-height: calc(100vh - 40px);
object-fit: contain;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xl);
}

/* 全屏点位图（覆盖整个视口） */
.fullscreen-backdrop {
  padding: 0;
  background: rgba(0, 0, 0, 0.95);
}

.fullscreen-modal {
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}

.image-modal-close {
position: absolute;
top: -20px;
right: -20px;
width: 40px;
height: 40px;
border: none;
background: rgba(255, 255, 255, 0.95);
color: #1e293b;
font-size: 28px;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-modal-close:hover {
background: #fff;
transform: scale(1.1);
}

/* ==================== 数据分析 TAB ==================== */
.analytics-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.analytics-filter-bar label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.analytics-filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.analytics-filter-bar select:focus {
  border-color: var(--primary-color);
}

.analytics-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .analytics-row {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.analytics-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 14px 16px 0;
  margin: 0;
}
.analytics-card-body {
  padding: 12px 16px 16px;
  height: 260px;
  position: relative;
}
.analytics-card-body canvas {
  width: 100% !important;
  height: 100% !important;
}

.analytics-today-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
@media (max-width: 1100px) {
  .analytics-today-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  .analytics-today-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
.today-stat-item {
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.today-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.today-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
/* 各登记类型卡片颜色 - 浅色主题 */
.today-stat-green { background: #e8f5e9; }
.today-stat-blue { background: #e3f2fd; }
.today-stat-orange { background: #fff3e0; }
.today-stat-pink { background: #fce4ec; }
.today-stat-purple { background: #f3e5f5; }

/* 各登记类型卡片颜色 - 暗色主题 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .today-stat-green { background: #1a3a2a; }
    :root:not([data-theme="light"]) .today-stat-blue { background: #1a2a3a; }
    :root:not([data-theme="light"]) .today-stat-orange { background: #3a2a1a; }
    :root:not([data-theme="light"]) .today-stat-pink { background: #3a1a2a; }
    :root:not([data-theme="light"]) .today-stat-purple { background: #2a1a3a; }
}
[data-theme="dark"] .today-stat-green { background: #1a3a2a; }
[data-theme="dark"] .today-stat-blue { background: #1a2a3a; }
[data-theme="dark"] .today-stat-orange { background: #3a2a1a; }
[data-theme="dark"] .today-stat-pink { background: #3a1a2a; }
[data-theme="dark"] .today-stat-purple { background: #2a1a3a; }

.today-stat-brown { background: #eceff1; }
:root:not([data-theme="light"]) .today-stat-brown { background: #263238; }
[data-theme="dark"] .today-stat-brown { background: #263238; }
.today-stat-total {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
}
.today-stat-total .today-stat-label,
.today-stat-total .today-stat-value {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========== 设备分组视图 ========== */
.device-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 8px 0;
}
.device-group-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.device-group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.device-group-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.device-group-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.device-group-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.device-group-status {
  font-size: 12px;
  font-weight: 500;
}

/* ========== 图片上传组件 ========== */
.image-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-upload-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}
.image-upload-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-color);
}
.image-upload-placeholder:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.image-upload-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.image-upload-btn {
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ========== 平面图可视化编辑 ========== */
.floor-plan-editor {
  position: relative;
  width: 100%;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.floor-plan-editor img {
  width: 100%;
  display: block;
}
.floor-plan-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 3px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  z-index: 10;
}
.floor-plan-marker:active { cursor: grabbing; }
.floor-plan-marker::before { display: none; }
.floor-plan-marker .marker-shape {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.6);
}
/* 深色半透明底 + 类型颜色图标 */
.floor-plan-marker { background: rgba(0,0,0,0.65); }
.floor-plan-marker.type-fire .marker-shape { background: #e74c3c; border-radius: 50%; }
.floor-plan-marker.type-food .marker-shape {
  background: transparent;
  width: 0; height: 0;
  border: none;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #27ae60;
}
.floor-plan-marker.type-electrical .marker-shape { background: #3498db; border-radius: 2px; }

/* ========== 巡查记录列表 ========== */
.inspection-record-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.inspection-record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.inspection-record-status {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.inspection-record-status.normal {
  background: #d1fae5;
  color: #065f46;
}
.inspection-record-status.abnormal {
  background: #fee2e2;
  color: #991b1b;
}
.inspection-record-status.pending {
  background: #fef3c7;
  color: #92400e;
}

/* ========== 关联设备多选 ========== */
.device-checklist {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.device-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  cursor: pointer;
}
.device-checklist-item:hover {
  background: var(--bg-color);
  border-radius: 4px;
}
.device-checklist-item input[type="checkbox"] {
  margin: 0;
}

/* ========== 审核状态标签 ========== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  min-width: 56px;
}
.status-badge.status-draft {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
}
.status-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}
.status-badge.status-approved {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.status-badge.status-rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.status-badge.status-confirmed {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}
.status-badge.status-pending-recovery {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}
.status-badge.status-in-recovery {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.status-badge.status-recovered {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ========== 审核弹窗 ========== */
.review-dialog-body {
  padding: 12px 0;
}
.review-dialog-body .review-info {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.8;
}
.review-dialog-body .review-info span {
  color: var(--text-primary);
  font-weight: 500;
}
.review-dialog-body .form-group {
  margin-bottom: 14px;
}
.review-dialog-body .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.review-dialog-body .form-group select,
.review-dialog-body .form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
}
.review-dialog-body .form-group select:focus,
.review-dialog-body .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==================== APK 拖拽上传区域 ==================== */
.apk-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: var(--bg-color);
    text-align: center;
    min-height: 120px;
}

.apk-drop-zone:hover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.04);
}

.apk-drop-zone--dragover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.08);
    transform: scale(1.01);
}

.apk-drop-zone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 64px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: rgba(79, 70, 229, 0.04);
}

.apk-drop-zone-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.apk-drop-zone-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 已选文件预览 */
.apk-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
}

.apk-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apk-file-remove {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.apk-file-remove:hover {
    color: var(--danger-color);
}

/* 上传进度 */
.apk-upload-progress {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #374151;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
}

/* ==================== 内容切换动画 - 逐行显示 ==================== */
.content-fade-in tbody tr {
  opacity: 0;
  animation: rowSlideIn 0.3s ease-out forwards;
}
.content-fade-in tbody tr:nth-child(1) { animation-delay: 0s; }
.content-fade-in tbody tr:nth-child(2) { animation-delay: 0.04s; }
.content-fade-in tbody tr:nth-child(3) { animation-delay: 0.08s; }
.content-fade-in tbody tr:nth-child(4) { animation-delay: 0.12s; }
.content-fade-in tbody tr:nth-child(5) { animation-delay: 0.16s; }
.content-fade-in tbody tr:nth-child(6) { animation-delay: 0.2s; }
.content-fade-in tbody tr:nth-child(7) { animation-delay: 0.24s; }
.content-fade-in tbody tr:nth-child(8) { animation-delay: 0.28s; }
.content-fade-in tbody tr:nth-child(9) { animation-delay: 0.32s; }
.content-fade-in tbody tr:nth-child(10) { animation-delay: 0.36s; }
.content-fade-in tbody tr:nth-child(n+11) { animation-delay: 0.4s; }
@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============ 审批中心徽章 ============ */
.menu-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 8px;
  background: #dc2626;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.approval-card {
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.approval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.approval-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.approval-card-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.approval-card-type.inspection { background: #dbeafe; color: #2563eb; }
.approval-card-type.fault { background: #fee2e2; color: #dc2626; }
.approval-card-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.approval-card-meta span { white-space: nowrap; }
.approval-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.approval-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* ============ 隐患台账 ============ */
.hazard-month-group {
  margin-bottom: 24px;
}
.hazard-month-header {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 12px 0 8px 0;
  padding: 8px 12px;
  background: #f9fafb;
  border-left: 4px solid #3b82f6;
  border-radius: 4px 8px 8px 4px;
}

/* ============ 驾驶舱大屏 ============ */
.dashboard-row {
  margin-bottom: 16px;
}
.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) {
  .dashboard-kpi-row { grid-template-columns: repeat(3, 1fr); }
}
.dashboard-kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dashboard-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dashboard-kpi.kpi-blue::before   { background: #3b82f6; }
.dashboard-kpi.kpi-purple::before { background: #9333ea; }
.dashboard-kpi.kpi-red::before    { background: #dc2626; }
.dashboard-kpi.kpi-orange::before { background: #f97316; }
.dashboard-kpi.kpi-green::before  { background: #16a34a; }
.kpi-label { font-size: 13px; color: #6b7280; }
.kpi-value { font-size: 32px; font-weight: 700; color: #111827; margin-top: 4px; }
.kpi-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.dashboard-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}
.dashboard-card h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #111827;
}
.station-row-alert {
  background: rgba(220, 38, 38, 0.04);
}

/* ============ 通知中心铃铛 ============ */
.btn-notif-bell {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  margin-right: 8px;
  color: #6b7280;
  border-radius: 6px;
}
.btn-notif-bell:hover {
  background: rgba(0,0,0,0.04);
  color: #111827;
}
.notif-bell-badge {
  position: absolute;
  top: 0; right: 0;
  background: #dc2626;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
}
.notif-dropdown {
  position: absolute;
  right: 100px;
  top: 56px;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}
.notif-mark-all {
  background: transparent;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 12px;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  position: relative;
}
.notif-item:hover { background: #f9fafb; }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread:hover { background: #dbeafe; }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-body {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}
.notif-mark {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
}
.notif-mark:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.notif-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 13px;
}

/* ============ 列表快捷 Tab ============ */
.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}
.quick-tab {
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #4b5563;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.quick-tab:hover {
  background: #e5e7eb;
}
.quick-tab.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}
.quick-tab .badge-count {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 0 6px;
  border-radius: 10px;
  margin-left: 4px;
  font-size: 11px;
}
.quick-tab.active .badge-count {
  background: rgba(255,255,255,0.35);
}

/* ============ Undo Bar ============ */
.undo-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1f2937;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 10000;
  font-size: 14px;
  animation: undo-bar-enter 0.2s ease-out;
}
@keyframes undo-bar-enter {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}
.undo-bar.undo-bar-leaving {
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: all 0.2s;
}
.undo-bar-msg { white-space: nowrap; }
.undo-bar-btn {
  background: transparent;
  border: 1px solid #60a5fa;
  color: #60a5fa;
  padding: 4px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.undo-bar-btn:hover {
  background: #60a5fa;
  color: #1f2937;
}
.undo-bar-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.undo-bar-close:hover { color: #ffffff; }

/* ===== 报表工具图表展示 ===== */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  padding: 16px 0;
}
.chart-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  max-width: 520px;
}
.chart-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}
.chart-box canvas {
  max-height: 320px;
  max-width: 100%;
}

.btn-xs { font-size:11px; padding:3px 10px; }

/* ===== 明细表 ===== */
.cf-detail-table { font-size:12px; width:100%; border-collapse:collapse; }
.cf-detail-table th { white-space:nowrap; position:sticky; top:0; background:var(--card-bg); z-index:2; padding:8px 10px; border-bottom:2px solid var(--border-color); font-weight:600; color:var(--text-primary); }
.cf-detail-table td { white-space:nowrap; padding:5px 10px; border-bottom:1px solid var(--border-color); color:var(--text-body); }
.cf-detail-table tbody tr:hover td { background:var(--primary-light); }
.cf-detail-table .cf-detail-col { min-width:80px; max-width:200px; overflow:hidden; text-overflow:ellipsis; }
.cf-detail-sticky { position:sticky; left:0; background:var(--card-bg); z-index:1; }
.cf-detail-table th.cf-detail-sticky { z-index:3; }
.detail-toolbar { display:flex; align-items:center; gap:16px; margin-bottom:10px; flex-wrap:wrap; font-size:13px; color:var(--text-secondary); }
.detail-row-count { font-size:13px; }
.detail-summary { font-size:13px; font-weight:400; color:var(--text-secondary); }
.cf-pagination { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:14px; padding:10px 0; }
.cf-pagination .btn { min-width:32px; }
.cf-page-info { font-size:13px; color:var(--text-secondary); margin:0 8px; }
/* === 每日报表表格美化(财务报表风,灰阶无蓝紫无渐变)=== */
.table-wrap {
    overflow: auto;
    max-height: 70vh;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
/* 紧凑行高 + 数字等宽 + 列分隔 */
.table-wrap td,
.table-wrap th {
    padding: 8px 12px;
    font-variant-numeric: tabular-nums;
    border-right: 1px solid var(--border-color);
}
.table-wrap td:last-child,
.table-wrap th:last-child { border-right: none; }
/* 深灰表头白字 + 固定 */
.table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    border-bottom: 2px solid #0f172a;
    border-right: 1px solid #334155;
}
.table-wrap thead th:last-child { border-right: none; }
.table-wrap thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #1e293b;
}
/* 斑马纹 + hover */
.table-wrap tbody tr:nth-child(even) { background: var(--bg-surface); }
.table-wrap tbody tr:hover { background: #eef2f6; }
/* 首列粘性(站名/日期) */
.table-wrap tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--card-bg);
    font-weight: 600;
}
.table-wrap tbody tr:nth-child(even) td:first-child { background: var(--bg-surface); }
/* 金额右对齐 */
.table-wrap .col-amount { text-align: right; }
/* 合计行:深灰底白字加粗 */
.table-wrap .row-summary { background: #eef2f6; }
.table-wrap .row-summary td {
    color: var(--text-primary);
    font-weight: 700;
    border-top: 2px solid #cbd5e1;
    border-right: 1px solid var(--border-color);
}
.table-wrap .row-summary td:last-child { border-right: none; }
.table-wrap .row-summary td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #eef2f6;
}
