/* =====================================================
   e访无忧 - Cursor Design System 风格样式
   基于 Cursor 暖色调极简设计语言
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* =====================================================
   CSS 变量 - Cursor Design System 核心
   ===================================================== */
:root {
  /* Cursor 核心色彩 */
  --color-dark: #26251e;
  --color-cream: #f2f1ed;
  --color-light: #e6e5e0;
  --color-white: #ffffff;
  
  /* 表面色阶 */
  --surface-100: #f7f7f4;
  --surface-200: #f2f1ed;
  --surface-300: #ebeae5;
  --surface-400: #e6e5e0;
  --surface-500: #e1e0db;
  
  /* 强调色 */
  --color-accent: #f54e00;
  --color-gold: #c08532;
  --color-error: #cf2d56;
  --color-success: #1f8a65;
  
  /* 语义色 */
  --color-thinking: #dfa88f;
  --color-grep: #9fc9a2;
  --color-read: #9fbbe0;
  --color-edit: #c0a8dd;
  
  /* 文字色 */
  --text-primary: #26251e;
  --text-secondary: rgba(38, 37, 30, 0.55);
  --text-tertiary: rgba(38, 37, 30, 0.35);
  
  /* 边框色 */
  --border-primary: rgba(38, 37, 30, 0.1);
  --border-medium: rgba(38, 37, 30, 0.2);
  --border-strong: rgba(38, 37, 30, 0.55);
  
  /* 阴影 */
  --shadow-card: 0 28px 70px rgba(0,0,0,0.14), 0 14px 32px rgba(0,0,0,0.1), 0 0 0 1px var(--border-primary);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-subtle: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-modal: 0 40px 100px rgba(0,0,0,0.25), 0 0 0 1px var(--border-primary);
  
  /* 间距系统 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* 布局 */
  --sidebar-width: 260px;
  --header-height: 64px;
}

/* =====================================================
   基础重置
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-200);
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-error);
}

/* =====================================================
   主布局 - 侧边栏 + 主内容区
   ===================================================== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-dark);
  color: var(--surface-300);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-brand {
  padding: var(--space-6) var(--space-6);
  font-size: 18px;
  font-weight: 600;
  color: var(--surface-100);
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sidebar-brand::before {
  content: '';
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold) 100%);
  border-radius: var(--radius-md);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover {
  color: var(--surface-100);
  background: rgba(255,255,255,0.08);
}

.sidebar-nav a.active {
  color: var(--surface-100);
  background: rgba(255,255,255,0.12);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 0 2px 2px 0;
}

.sidebar-nav a {
  position: relative;
}

/* 侧边栏图标 */
.nav-icon, .sidebar-nav a span {
  font-size: 16px;
  flex-shrink: 0;
}

/* 主内容区 */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部导航栏 */
.header {
  height: var(--header-height);
  background: var(--surface-200);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(242, 241, 237, 0.85);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-300);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}

/* 内容区域 */
.content {
  flex: 1;
  padding: var(--space-8);
  overflow: auto;
}

/* =====================================================
   页面标题
   ===================================================== */
.page-header {
  margin-bottom: var(--space-8);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================================================
   统计卡片网格
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--surface-100);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.stat-card:hover::before {
  opacity: 1;
}

.stat-card.accent::before {
  opacity: 1;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-4);
}

.stat-card.accent .stat-card-icon {
  background: linear-gradient(135deg, rgba(245, 78, 0, 0.1), rgba(192, 133, 50, 0.1));
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-card.accent .stat-card-value {
  color: var(--color-accent);
}

.stat-card-trend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  margin-top: var(--space-3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(31, 138, 101, 0.1);
  color: var(--color-success);
}

.stat-card-trend.down {
  background: rgba(207, 45, 86, 0.1);
  color: var(--color-error);
}

/* =====================================================
   工具栏
   ===================================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* 按钮系统 - Cursor 风格 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  background: var(--surface-300);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  color: var(--color-error);
  border-color: var(--border-medium);
  background: var(--surface-400);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--text-secondary);
  color: var(--surface-100);
  border-color: var(--text-secondary);
}

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

.btn-accent:hover {
  background: #e64500;
  color: var(--color-white);
  border-color: #e64500;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-300);
  border-color: var(--surface-300);
  color: var(--text-primary);
}

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

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

/* =====================================================
   标签页
   ===================================================== */
.tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 1px;
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-count {
  background: var(--surface-400);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.tab.active .tab-count {
  background: rgba(245, 78, 0, 0.1);
  color: var(--color-accent);
}

/* =====================================================
   搜索框
   ===================================================== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  font-size: 14px;
  opacity: 0.5;
}

.search-input {
  width: 280px;
  height: 40px;
  padding: 0 16px 0 40px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--surface-100);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-medium);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.08);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

/* =====================================================
   表格
   ===================================================== */
.table-wrap {
  background: var(--surface-100);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--surface-200);
  border-bottom: 1px solid var(--border-primary);
}

.table td {
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--surface-200);
}

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

/* 表格单元格 */
.cell-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--surface-400);
  color: var(--text-secondary);
}

.status-tag.pending {
  background: rgba(245, 78, 0, 0.1);
  color: var(--color-accent);
}

.status-tag.in-progress {
  background: rgba(159, 122, 234, 0.1);
  color: #9f7aea;
}

.status-tag.completed {
  background: rgba(31, 138, 101, 0.1);
  color: var(--color-success);
}

.status-tag.rejected {
  background: rgba(207, 45, 86, 0.1);
  color: var(--color-error);
}

.status-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* 优先级标签 */
.priority-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--surface-400);
  color: var(--text-secondary);
}

.priority-tag.urgent {
  background: rgba(207, 45, 86, 0.1);
  color: var(--color-error);
}

/* =====================================================
   模态框 - Cursor 风格
   ===================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 37, 30, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--surface-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--surface-400);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-primary);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  background: var(--surface-200);
}

/* =====================================================
   表单
   ===================================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4);
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--surface-200);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-medium);
  background: var(--surface-100);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.08);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  min-height: 100px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* =====================================================
   分页
   ===================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pagination-item {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--surface-100);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-item:hover:not(.disabled):not(.active) {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.pagination-item.active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--surface-100);
}

.pagination-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =====================================================
   卡片组件
   ===================================================== */
.card {
  background: var(--surface-100);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-elevated);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* =====================================================
   空状态
   ===================================================== */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* =====================================================
   加载动画
   ===================================================== */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-primary);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* =====================================================
   登录页
   ===================================================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-200) 0%, var(--surface-300) 100%);
  padding: var(--space-6);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-100);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-10);
  animation: fadeInUp 0.5s ease;
}

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

.login-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold) 100%);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 8px 24px rgba(245, 78, 0, 0.3);
}

.login-logo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-logo-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.login-field {
  margin-bottom: var(--space-5);
}

.login-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.login-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--surface-200);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.login-input:focus {
  outline: none;
  border-color: var(--border-medium);
  background: var(--surface-100);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.08);
}

.login-btn {
  width: 100%;
  height: 48px;
  margin-top: var(--space-4);
  font-size: 15px;
  font-weight: 600;
}

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main {
    margin-left: 0;
  }
  
  .content {
    padding: var(--space-5);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: center;
  }
  
  .search-input {
    width: 100%;
  }
  
  .table-wrap {
    overflow-x: auto;
  }
  
  .login-card {
    padding: var(--space-6);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--surface-200);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-500);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* =====================================================
   选中样式
   ===================================================== */
::selection {
  background: rgba(245, 78, 0, 0.2);
  color: var(--text-primary);
}
