/* ====== 虔融智能应用平台 · 全局样式 ====== */

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --sidebar-bg: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-active: #6366f1;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

/* ====== 布局 ====== */
.app-layout {
  display: flex;
  height: 100vh;
}

/* ====== 侧边栏 ====== */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.sidebar-logo {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.sidebar-logo .logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.sidebar-logo .logo-sub {
  font-size: 10px;
  color: var(--sidebar-text);
  margin-top: 1px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  margin-bottom: 2px;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-item .nav-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--sidebar-text);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-footer .user-info {
  flex: 1;
}

.sidebar-footer .user-name {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.sidebar-footer .user-role {
  font-size: 11px;
  color: var(--sidebar-text);
}

/* ====== 主内容区 ====== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 56px;
  min-height: 56px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.topbar .page-title {
  font-size: 18px;
  font-weight: 600;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.topbar .btn-icon:hover {
  background: var(--bg);
  color: var(--text);
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ====== 卡片通用 ====== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

/* ====== 指标卡片 ====== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

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

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.metric-info {
  flex: 1;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

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

.metric-change.up { color: #10b981; }
.metric-change.down { color: #ef4444; }

/* ====== 模块网格 ====== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.module-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}

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

.module-card .module-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.module-card .module-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.module-card .module-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.module-card .module-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
}

/* ====== 待办列表 ====== */
.todo-list {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

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

.todo-intent {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.todo-intent.high { background: #fef2f2; color: #dc2626; }
.todo-intent.medium { background: #fefce8; color: #d97706; }
.todo-intent.low { background: #f0fdf4; color: #16a34a; }

.todo-info {
  flex: 1;
}

.todo-customer {
  font-size: 14px;
  font-weight: 500;
}

.todo-type {
  font-size: 12px;
  color: var(--text-secondary);
}

.todo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.todo-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.todo-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.todo-status.pending { background: #fefce8; color: #d97706; }
.todo-status.active { background: #eff6ff; color: #2563eb; }
.todo-status.done { background: #f0fdf4; color: #16a34a; }

/* ====== CRM 表格 ====== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

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

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

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

.score-bar .bar-track {
  width: 60px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.score-bar .bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.status-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
}

.status-badge.followup { background: #eff6ff; color: #2563eb; }
.status-badge.waiting { background: #fefce8; color: #d97706; }
.status-badge.new { background: #f0fdf4; color: #16a34a; }
.status-badge.high { background: #fef2f2; color: #dc2626; }
.status-badge.low { background: #f1f5f9; color: #64748b; }
.status-badge.sign { background: #fdf4ff; color: #a21caf; }

/* ====== 银行产品卡片 ====== */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bank-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--transition);
}

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

.bank-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.bank-product {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bank-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.bank-detail-item {
  text-align: center;
}

.bank-detail-item .label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.bank-detail-item .value {
  font-size: 14px;
  font-weight: 600;
}

.bank-req {
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ====== 合规检查 ====== */
.compliance-check {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.compliance-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: var(--transition);
  margin-bottom: 12px;
}

.compliance-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.compliance-result {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.compliance-result.pass {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.compliance-result.fail {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.compliance-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.rule-item {
  font-size: 12px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-item .forbidden {
  color: #dc2626;
  font-weight: 600;
}

.rule-item .suggest {
  color: #16a34a;
  font-size: 11px;
}

/* ====== 预审 ====== */
.preaudit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.preaudit-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.preaudit-form .upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}

.preaudit-form .upload-area:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef2ff;
}

.preaudit-form .upload-area .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.preaudit-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 8px;
}

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

.preaudit-records {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.preaudit-record {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.preaudit-record:last-child { border-bottom: none; }

.preaudit-record .record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.preaudit-record .record-name {
  font-weight: 600;
  font-size: 14px;
}

.preaudit-record .record-prob {
  font-size: 13px;
  font-weight: 600;
}

.preaudit-record .record-prob.high { color: #16a34a; }
.preaudit-record .record-prob.medium { color: #d97706; }

.preaudit-record .record-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.preaudit-record .record-match {
  font-size: 12px;
  color: var(--primary);
}

/* ====== 漫剧工坊 ====== */
.comic-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comic-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.comic-create-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border-radius: var(--radius-sm);
  color: #fff;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.comic-create-btn:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.comic-create-btn .create-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comic-create-btn .create-title {
  font-size: 16px;
  font-weight: 600;
}

.comic-create-btn .create-sub {
  font-size: 12px;
  opacity: 0.8;
}

.comic-create-btn .create-plus {
  font-size: 24px;
  font-weight: 300;
}

.comic-project {
  padding: 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.comic-project .proj-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.comic-project .proj-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.comic-project .proj-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.comic-project .proj-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.comic-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 4px;
}

.comic-step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 4px;
  border-radius: 6px;
  background: #f8fafc;
}

.comic-step.active {
  background: var(--primary);
  color: #fff;
}

.comic-step.done {
  background: #10b981;
  color: #fff;
}

/* ====== 获客引擎 ====== */
.leads-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  gap: 16px;
}

.channel-color {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.channel-info {
  flex: 1;
}

.channel-name {
  font-size: 15px;
  font-weight: 600;
}

.channel-stats {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.channel-conversion {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ====== 驾驶舱 ====== */
.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cockpit-item {
  text-align: center;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cockpit-item .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.cockpit-item .label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.chart-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.chart-bar {
  flex: 1;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.8s ease;
  position: relative;
  opacity: 0.85;
}

.chart-bar:hover {
  opacity: 1;
}

/* ====== 按钮通用 ====== */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

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

/* ====== 搜索框 ====== */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: 280px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: var(--card-bg);
}

.search-box input {
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  flex: 1;
  outline: none;
}

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

/* ====== 标签 ====== */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.filter-tab:hover {
  background: #e2e8f0;
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ====== 页面头部统计 ====== */
.page-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.stat-group .stat-value {
  font-size: 20px;
  font-weight: 700;
}

.stat-group .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-group + .stat-group {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

/* ====== 移动端底部导航（响应式） ====== */
.mobile-tabbar {
  display: none;
}

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leads-layout {
    grid-template-columns: 1fr;
  }
  .preaudit-grid {
    grid-template-columns: 1fr;
  }
  .comic-workspace {
    grid-template-columns: 1fr;
  }
  .cockpit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .topbar {
    padding: 0 16px;
    height: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .topbar .page-title {
    font-size: 16px;
  }

  .topbar .topbar-actions {
    display: none;
  }

  .page-content {
    padding: 16px;
    padding-bottom: 80px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
    gap: 10px;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .metric-value {
    font-size: 20px;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .module-card {
    padding: 14px;
  }

  .module-card .module-icon {
    font-size: 24px;
  }

  .bank-grid {
    grid-template-columns: 1fr;
  }

  .compliance-rules {
    grid-template-columns: 1fr;
  }

  .page-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-group + .stat-group {
    padding-left: 0;
    border-left: none;
  }

  .cockpit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preaudit-record .record-details {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 移动端底部导航 */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 4px 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    padding: 0;
  }

  .mobile-tab-item .tab-icon {
    font-size: 20px;
  }

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

  .mobile-tab-item .tab-label {
    font-size: 10px;
  }
}

/* ====== 滚动条 ====== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* ====== 动画 ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: fadeIn 0.3s ease;
}

/* ====== 空状态 ====== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state .empty-text {
  font-size: 14px;
}

/* 用户反馈 */
.user-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 999;
  animation: fadeIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.user-feedback.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.user-feedback.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
