/**
 * 校园报修管理系统 - 公共样式文件
 * 主题：浅色/白色企业管理系统风格
 * 技术栈：HTML + jQuery + Bootstrap 5
 */

/* ==================== 1. CSS 变量定义（浅色主题） ==================== */
:root {
  /* 主色调 - 蓝色系 */
  --primary: #4361ee;
  --primary-light: #6380f5;
  --primary-dark: #3651d4;
  --primary-rgb: 67, 97, 238;

  /* 语义颜色 */
  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;
  --info: #06b6d4;
  --info-rgb: 6, 182, 212;

  /* 背景色 */
  --bg-body: #f0f2f5;
  --bg-white: #ffffff;
  --bg-sidebar: #1e293b;
  --bg-sidebar-hover: #334155;
  --bg-sidebar-active: #4361ee;

  /* 文字色 */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;

  /* 边框和阴影 */
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* 间距 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* 侧边栏宽度 */
  --sidebar-width: 260px;

  /* 字体 */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==================== 2. 基础重置和排版 ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* 链接样式 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ==================== 3. 侧边栏布局 ==================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Logo区域 */
.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar-header .logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
}

/* 菜单区域 */
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-menu a:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.sidebar-menu a.active {
  background: var(--bg-sidebar-active);
  color: var(--text-white);
  position: relative;
}

.sidebar-menu a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--text-white);
  border-radius: 0 2px 2px 0;
}

.sidebar-menu a i,
.sidebar-menu a .icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* 侧边栏底部 */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-footer .btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

/* ==================== 4. 主内容区 ==================== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-body);
  transition: margin-left 0.3s ease;
}

/* 顶部导航栏 */
.top-bar {
  background: var(--bg-white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar .page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.top-bar .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.875rem;
}

.top-bar .breadcrumb-item a {
  color: var(--text-secondary);
}

.top-bar .breadcrumb-item.active {
  color: var(--text-muted);
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 页面内容区 */
.page-content {
  padding: 24px;
}

/* ==================== 5. 卡片组件 ==================== */
.content-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.content-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.content-card .card-header h3,
.content-card .card-header h4,
.content-card .card-header h5 {
  margin: 0;
  font-weight: 600;
}

.content-card .card-body {
  padding: 0;
}

/* ==================== 6. 统计卡片（仪表盘用） ==================== */
.stat-card-row {
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid transparent;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-card .stat-content {
  flex: 1;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 统计卡片颜色变体 */
.stat-card.blue {
  border-left-color: var(--primary);
}

.stat-card.blue .stat-icon {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.stat-card.green {
  border-left-color: var(--success);
}

.stat-card.green .stat-icon {
  background: rgba(var(--success-rgb), 0.1);
  color: var(--success);
}

.stat-card.orange {
  border-left-color: var(--warning);
}

.stat-card.orange .stat-icon {
  background: rgba(var(--warning-rgb), 0.1);
  color: var(--warning);
}

.stat-card.red {
  border-left-color: var(--danger);
}

.stat-card.red .stat-icon {
  background: rgba(var(--danger-rgb), 0.1);
  color: var(--danger);
}

/* ==================== 7. 表格样式（覆盖Bootstrap） ==================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  border-top: none;
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
}

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

.table tbody tr:hover {
  background-color: rgba(var(--primary-rgb), 0.04);
}

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

/* 表格操作按钮 */
.table .btn-group-actions {
  display: flex;
  gap: 8px;
}

/* ==================== 8. 按钮样式 ==================== */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--text-secondary);
  border-color: var(--text-secondary);
  color: var(--text-white);
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--text-white);
}

.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: var(--text-white);
}

.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: var(--text-white);
}

.btn-info {
  background-color: var(--info);
  border-color: var(--info);
  color: var(--text-white);
}

/* 小按钮 - 表格行内操作 */
.btn-sm {
  padding: 4px 10px;
  font-size: 0.8125rem;
}

/* 轮廓按钮 */
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.btn-outline-success {
  color: var(--success);
  border-color: var(--success);
  background: transparent;
}

.btn-outline-success:hover {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--text-white);
}

.btn-outline-danger {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}

.btn-outline-danger:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  color: var(--text-white);
}

.btn-outline-warning {
  color: var(--warning);
  border-color: var(--warning);
  background: transparent;
}

.btn-outline-warning:hover {
  background-color: var(--warning);
  border-color: var(--warning);
  color: var(--text-white);
}

/* ==================== 9. 表单样式 ==================== */
.form-control,
.form-select {
  border-color: var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 14px;
}

.form-floating > label {
  color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary);
}

.form-text {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

/* 输入组 */
.input-group .form-control,
.input-group .form-select {
  border-radius: 0;
}

.input-group .btn {
  border-radius: 0;
}

.input-group > :first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.input-group > :last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* ==================== 10. 状态徽章 ==================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* 待受理 - 黄色 */
.status-pending {
  background: rgba(var(--warning-rgb), 0.1);
  color: #b45309;
}

.status-pending::before {
  background: var(--warning);
}

/* 已分配 - 蓝色 */
.status-assigned {
  background: rgba(var(--primary-rgb), 0.1);
  color: #1e40af;
}

.status-assigned::before {
  background: var(--primary);
}

/* 处理中 - 青色 */
.status-processing {
  background: rgba(var(--info-rgb), 0.1);
  color: #0e7490;
}

.status-processing::before {
  background: var(--info);
}

/* 已完成 - 绿色 */
.status-completed {
  background: rgba(var(--success-rgb), 0.1);
  color: #047857;
}

.status-completed::before {
  background: var(--success);
}

/* 已驳回 - 红色 */
.status-rejected {
  background: rgba(var(--danger-rgb), 0.1);
  color: #b91c1c;
}

.status-rejected::before {
  background: var(--danger);
}

/* ==================== 11. 模态框覆盖样式 ==================== */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
}

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

.modal-header .modal-title {
  font-weight: 600;
  color: var(--text-primary);
}

.modal-header .btn-close {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
}

/* ==================== 12. 页面区域显示控制 ==================== */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ==================== 13. 工具类 ==================== */
/* 文字颜色 */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* 背景色 */
.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-white { background-color: var(--bg-white) !important; }

/* 边框 */
.border-primary { border-color: var(--primary) !important; }
.border-success { border-color: var(--success) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-danger { border-color: var(--danger) !important; }
.border-info { border-color: var(--info) !important; }

/* 阴影 */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* 圆角 */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* 字体 */
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

/* 隐藏 */
.d-none { display: none !important; }

/* ==================== 14. 响应式媒体查询 ==================== */
/* 平板 */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }

  .page-content {
    padding: 20px;
  }

  .content-card {
    padding: 20px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .page-content {
    padding: 16px;
  }

  .top-bar {
    padding: 12px 16px;
  }

  .top-bar .page-title {
    font-size: 1.125rem;
  }

  .user-name,
  .user-role {
    display: none;
  }

  .stat-card-row .col-md-3 {
    width: 50%;
    margin-bottom: 16px;
  }

  .content-card {
    padding: 16px;
  }

  .table-responsive {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
  }

  .modal-dialog {
    margin: 16px;
  }
}

/* 小屏手机 */
@media (max-width: 576px) {
  .stat-card-row .col-md-3 {
    width: 100%;
  }

  .stat-card {
    padding: 16px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==================== 15. 加载状态 ==================== */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

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

.loading-spinner p {
  margin: 0;
  font-size: 14px;
}

/* 空数据状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state .empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state .empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 300px;
}

/* ==================== 16. 移动端菜单按钮 ==================== */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--bg-body);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-btn i,
.mobile-menu-btn .icon {
  font-size: 20px;
}

/* 侧边栏遮罩层 */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.show {
  display: block;
}

@media (max-width: 768px) {
  .sidebar-overlay.show {
    display: block;
  }
}

/* ==================== 17. 分页样式 ==================== */
.pagination {
  margin-bottom: 0;
}

.pagination .page-link {
  color: var(--text-primary);
  border-color: var(--border-color);
  padding: 8px 14px;
  font-size: 14px;
}

.pagination .page-link:hover {
  background-color: var(--bg-body);
  border-color: var(--border-color);
  color: var(--primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  background-color: var(--bg-white);
}

/* ==================== 18. 下拉菜单 ==================== */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}

.dropdown-item {
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
  color: var(--text-white);
}

.dropdown-divider {
  border-top-color: var(--border-color);
  margin: 8px 0;
}

/* ==================== 19. 提示框/Alert ==================== */
.alert {
  border-radius: var(--radius-md);
  border: none;
  padding: 16px 20px;
}

.alert-primary {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: #1e40af;
}

.alert-success {
  background-color: rgba(var(--success-rgb), 0.1);
  color: #047857;
}

.alert-warning {
  background-color: rgba(var(--warning-rgb), 0.1);
  color: #b45309;
}

.alert-danger {
  background-color: rgba(var(--danger-rgb), 0.1);
  color: #b91c1c;
}

.alert-info {
  background-color: rgba(var(--info-rgb), 0.1);
  color: #0e7490;
}

/* ==================== 20. 其他辅助样式 ==================== */
/* 分割线 */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 选择文本颜色 */
::selection {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--text-primary);
}
