/* ===== 企业微信办公风格 - 全局变量 ===== */
:root {
  /* 主色调 - 企业微信蓝 */
  --primary: #3370FF;
  --primary-light: #EEF2FE;
  --primary-dark: #2B5FD9;
  --primary-hover: #4E83FD;

  /* 功能色 */
  --success: #00B578;
  --success-light: #E8F8F2;
  --warning: #FF8F1F;
  --warning-light: #FFF4E8;
  --danger: #F54A45;
  --danger-light: #FEECEB;
  --purple: #7858F9;
  --purple-light: #F2EFFE;

  /* 背景与表面 */
  --bg: #F5F6FA;
  --bg-white: #FFFFFF;
  --sidebar-bg: #FFFFFF;
  --sidebar-width: 220px;

  /* 文字 */
  --text-primary: #1F2329;
  --text-secondary: #646A73;
  --text-muted: #8F959E;
  --text-placeholder: #BBBFC4;

  /* 边框 */
  --border: #E5E6EB;
  --border-light: #F2F3F5;
  --border-dark: #D8D9DD;

  /* 圆角 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* 过渡 */
  --transition: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x:hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ===== 侧边栏 - 白色轻量风格 ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.sidebar-header {
  padding: 20px 18px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }
.logo-name { color: var(--text-primary); font-size: 15px; font-weight: 700; letter-spacing: 0.3px; }
.logo-sub { color: var(--text-muted); font-size: 11px; margin-top: 1px; }

/* 侧边栏分割线 */
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

.sidebar-nav { flex: 1; padding: 4px 0; overflow-y: auto; }

.nav-section { margin-bottom: 4px; }
.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.nav-section-title:hover { color: var(--text-primary); }
.nav-section-arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
  opacity: 0.5;
}
.nav-section.collapsed .nav-section-arrow { transform: rotate(-90deg); }
.nav-section.collapsed .nav-item { display: none !important; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin: 1px 8px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  position: relative;
  font-weight: 400;
}

.nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.nav-item i { width: 18px; text-align: center; font-size: 14px; opacity: 0.85; }
.nav-item.active i { opacity: 1; }
.nav-item span:first-of-type { flex: 1; }
/* Apple 极简：分组内菜单去图标，仅保留顶层核心导航图标，纯文字更克制 */
.nav-section .nav-item > i:first-child { display: none; }

.badge {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
}
.badge-warn { background: var(--warning); }

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

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.user-info:hover { background: var(--bg); }

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

.user-detail { flex: 1; min-width: 0; }
.user-name { display: block; color: var(--text-primary); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { display: block; color: var(--text-muted); font-size: 11px; }
.user-info > i { color: var(--text-muted); font-size: 11px; }

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

/* ===== 顶部导航 ===== */
.topbar {
  height: 56px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  gap: 16px;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}
.breadcrumb .active { color: var(--text-primary); font-weight: 500; }
.breadcrumb i { font-size: 9px; color: var(--border-dark); }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 8px 18px;
  width: 380px;
  transition: all var(--transition);
  box-shadow: 0 0 0 4px rgba(51,112,255,0.08);
}
.search-box:hover { border-color: var(--primary-dark); box-shadow: 0 0 0 6px rgba(51,112,255,0.12); }
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(51,112,255,0.15);
  background: #fff;
}
.search-box i { color: var(--primary); font-size: 14px; }
.search-box input { border: none; background: none; outline: none; flex: 1; color: var(--text-primary); font-size: 14px; }
.search-box input::placeholder { color: var(--text-placeholder); }
/* Apple 风格：搜索框默认收成图标，点击展开 */
.search-box.collapsed {
  width: 38px; padding: 8px; justify-content: center;
  border-color: var(--border); box-shadow: none; background: var(--bg);
  cursor: pointer;
}
.search-box.collapsed:hover { background: var(--bg-secondary); }
.search-box.collapsed input { display: none; }

.notify-btn {
  width: 34px; height: 34px;
  border: none; background: transparent; border-radius: 50%;
  cursor: pointer; color: var(--text-secondary); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: background var(--transition);
}
.notify-btn:hover { background: var(--bg); }
/* 顶栏用户菜单（Apple 风格右上角头像菜单） */
.user-menu-wrap { position: relative; }
.dropdown-panel {
  position: absolute; top: 46px; right: 0;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  min-width: 184px; padding: 6px; z-index: 1200;
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border: none; background: none;
  color: var(--text-primary); font-size: 13px; border-radius: 8px;
  cursor: pointer; text-align: left; transition: all var(--transition);
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item i { width: 16px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.notify-dot-mini {
  width: 7px; height: 7px; background: var(--danger); border-radius: 50%;
  margin-left: auto; display: none;
}
.notify-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* ===== Apple 风格顶部导航栏（桌面端） ===== */
.top-nav {
  display: none; /* 默认隐藏，桌面端媒体查询中显示 */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
}
.top-nav-brand { flex-shrink: 0; }
.top-nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.top-nav-logo:hover { opacity: 0.7; }
.top-nav-logo i { font-size: 18px; color: var(--primary); }

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  flex: 1;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.top-nav-menu::-webkit-scrollbar { display: none; }

.top-nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.top-nav-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.top-nav-link.active {
  color: var(--primary);
  font-weight: 500;
}
.top-nav-link.has-dropdown { gap: 5px; }
.dropdown-arrow {
  font-size: 9px !important;
  opacity: 0.5;
  transition: transform 0.2s ease;
  margin-left: 2px;
}
.top-nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); opacity: 0.8; }

/* 导航角标 */
.nav-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
  margin-left: 4px;
}
.nav-badge-ai { background: #ff6a3c; border-radius: 8px; padding: 2px 5px; }
.nav-badge-new { background: #4e4376; border-radius: 8px; padding: 2px 5px; }

/* 下拉菜单容器 */
.top-nav-dropdown { position: relative; }
/* 消除导航文字与下拉菜单之间的空隙，防止鼠标悬停断链 */
.top-nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 1999;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 8px 0;
  min-width: 180px;
  z-index: 2000;
  animation: navDropFadeIn 0.18s ease-out;
}
@keyframes navDropFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.top-nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-dropdown-item i { font-size: 6px; color: var(--text-muted); opacity: 0.6; }
.nav-dropdown-item:hover i { opacity: 1; color: var(--primary); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 14px; }

/* 顶栏右侧 */
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.top-nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.top-nav-user i { color: var(--primary); }
.top-nav-right .search-box {
  width: 36px;
  padding: 7px;
  justify-content: center;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.top-nav-right .search-box:hover,
.top-nav-right .search-box:focus-within {
  width: 260px;
  padding: 7px 14px;
  border-color: var(--border);
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.top-nav-right .search-box.collapsed input { display: none; }
.top-nav-right .search-box:focus-within input,
.top-nav-right .search-box:not(.collapsed) input { display: block; }
.top-nav-right .user-menu-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
}
.top-nav-right .dropdown-panel {
  top: 40px; right: 0;
  min-width: 170px;
}

/* 强制隐藏悬浮机器人按钮（入口已移至首页） */
#agent-fab { display: none !important; }

/* ===== 按钮 ===== */
.btn-icon {
  width: 34px; height: 34px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg); color: var(--text-primary); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { background: #2454CC; transform: scale(0.98); }

/* 智能助手按钮（首页 page-actions） */
.btn-ai {
  background: linear-gradient(135deg, #ff8a3c, #ff6a3c);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,106,60,0.3);
}
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,106,60,0.4); }
.btn-ai:active { transform: scale(0.98); }

/* 首页快捷操作网格 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 4px 0;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.quick-btn:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(51,112,255,0.12);
  transform: translateY(-2px);
}
.quick-btn i {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 2px;
}
.quick-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.quick-sub { font-size: 11px; color: var(--text-muted); }
/* 智能助手快捷按钮突出 */
.quick-ai {
  background: linear-gradient(135deg, #fff5ef, #ffe9e0);
  border-color: rgba(255,106,60,0.3);
}
.quick-ai i { color: #ff6a3c; }
.quick-ai:hover { border-color: #ff6a3c; box-shadow: 0 4px 16px rgba(255,106,60,0.2); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

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

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

/* ===== 页面内容 ===== */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scroll-behavior: smooth;
}

.page { display: none; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.page-title { font-size: 26px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; line-height: 1.25; }
.page-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* ★ v210: 搜索框内嵌清除按钮 — 实时搜索 + 框内×重置，无需独立查询/重置按钮 */
.search-wrap { position: relative; display: inline-flex; align-items: center; }
.search-wrap .select-input { padding-right: 28px; }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; color: #bbb;
  font-size: 18px; line-height: 1; padding: 2px 5px; display: none; z-index: 2;
}
.search-clear:hover { color: #666; }

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }

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

.stat-blue .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-green .stat-icon { background: var(--success-light); color: var(--success); }
.stat-orange .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-purple .stat-icon { background: var(--purple-light); color: var(--purple); }
.stat-red .stat-icon { background: var(--danger-light); color: var(--danger); }
.stat-teal .stat-icon { background: #E6F7F5; color: #0D9488; }
.stat-gold .stat-icon { background: #FEF9E7; color: #B8860B; }

.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.stat-trend { font-size: 12px; margin-top: 4px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-link { font-size: 13px; color: var(--primary); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.card-link:hover { text-decoration: underline; }

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* ===== 仪表盘网格 ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  margin-top: 12px;
}

.card-large { grid-column: 1; }
.card-stack { display: flex; flex-direction: column; gap: 12px; }

/* ===== 表格 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 600;
  background: #FAFAFC;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 12px;
}

.data-table td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
/* Apple 风格：极浅斑马纹 + 克制的 hover 高亮，增加行高呼吸感 */
.data-table tbody tr:nth-child(even) td { background: #FAFAFC; }
.data-table tbody tr:hover td { background: #F2F4F8; }
.full-table { min-width: 900px; }

.mono-id {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.clickable-id {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.15s;
}
.clickable-id:hover {
  color: #fff;
  background: var(--primary);
}

/* 状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 20px;
}
.status-draft { background: #F5F6FA; color: #646A73; }
.status-pending { background: var(--warning-light); color: #C7720A; }
.status-approved { background: var(--success-light); color: #008A58; }
.status-issued { background: var(--primary-light); color: var(--primary); }
.status-refund { background: var(--danger-light); color: #D93025; }
.status-expire { background: #FEF3D9; color: #A1590A; }
.status-vip { background: var(--purple-light); color: var(--purple); }

.action-btns { display: flex; gap: 4px; justify-content: center; align-items: center; }
.action-btn {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--transition);
  line-height: 20px;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.action-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }

/* ===== 饼图 ===== */
.donut-chart-container { padding: 16px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.chart-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; }
.legend-value { font-weight: 600; color: var(--text-primary); }

/* ===== 柱状图 ===== */
.bar-chart-container { padding: 16px 20px; overflow-x: auto; }

/* ===== 待办 ===== */
.todo-list { padding: 4px 0; }
.todo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: #F7F8FA; }

.todo-icon {
  width: 32px; height: 32px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.todo-icon.orange { background: var(--warning-light); color: var(--warning); }
.todo-icon.red { background: var(--danger-light); color: var(--danger); }
.todo-icon.blue { background: var(--primary-light); color: var(--primary); }

.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.todo-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== 保司网格 ===== */
.insurer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  padding: 16px 20px;
}

.insurer-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-white); transition: all var(--transition); cursor: pointer;
}
.insurer-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.insurer-logo {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.insurer-name { font-size: 12px; color: var(--text-primary); font-weight: 500; text-align: center; line-height: 1.3; }
.insurer-status { font-size: 10px; }
.insurer-active { color: var(--success); }
.insurer-inactive { color: var(--text-muted); }

/* ===== 保司详细卡片 ===== */
.insurer-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.insurer-detail-card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--transition);
}
.insurer-detail-card:hover { box-shadow: var(--shadow-md); }

.insurer-card-header {
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-light);
}
.insurer-card-info { flex: 1; }
.insurer-card-name { font-size: 15px; font-weight: 600; }
.insurer-card-type { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.insurer-card-body { padding: 12px 16px; }
.insurer-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--border-light);
}
.insurer-card-row:last-child { border-bottom: none; }
.insurer-card-row .label { color: var(--text-secondary); }
.insurer-card-row .value { font-weight: 500; }

.insurer-card-footer { padding: 10px 16px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; }

/* 保司概览 */
.insurer-overview { display: flex; gap: 12px; margin-bottom: 16px; }
.overview-item {
  flex: 1; background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 16px; text-align: center;
}
.overview-item.green .overview-val { color: var(--success); }
.overview-item.orange .overview-val { color: var(--warning); }
.overview-item.blue .overview-val { color: var(--primary); }
.overview-val { font-size: 26px; font-weight: 700; color: var(--text-primary); }
.overview-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== 筛选栏 ===== */
.filter-bar { margin-bottom: 12px; }
.filter-row {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 18px; flex-wrap: wrap;
}
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.filter-item span { color: var(--text-muted); font-size: 12px; align-self: center; }
.select-input, .date-input {
  height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 10px; outline: none; transition: border-color var(--transition);
  background: var(--bg-white); color: var(--text-primary); min-width: 110px; font-size: 13px;
}
.select-input:focus, .date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51,112,255,0.1);
}
.filter-btn { align-self: flex-end; }

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--border-light);
}
.page-info { font-size: 13px; color: var(--text-secondary); }
.page-btns { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 30px; height: 30px; border: 1px solid var(--border);
  background: var(--bg-white); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); padding: 0 4px;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== 批量操作栏 ===== */
.batch-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: var(--primary-light);
  border: 1px solid #C6D5FD; border-radius: var(--radius);
  margin-bottom: 12px; font-size: 13px; color: var(--primary);
}

/* ===== Tab 栏 ===== */
.tab-bar {
  display: flex; gap: 2px; margin-bottom: 16px;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}

.tab-bar-inline {
  display: flex; gap: 2px; background: var(--bg);
  border-radius: var(--radius-sm); padding: 3px;
}

.tab-btn {
  padding: 8px 16px; background: none; border: none;
  cursor: pointer; font-size: 13px; color: var(--text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); font-weight: 500;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-bar-inline .tab-btn {
  padding: 5px 12px; border-radius: 3px; border-bottom: none; margin: 0;
}
.tab-bar-inline .tab-btn.active { background: var(--bg-white); color: var(--primary); box-shadow: var(--shadow-sm); }

.btn-group {
  display: inline-flex; gap: 2px; background: var(--bg);
  border-radius: var(--radius-sm); padding: 3px;
}
.btn-group .tab-btn {
  padding: 5px 12px; border-radius: 3px; border-bottom: none; margin: 0;
}
.btn-group .tab-btn.active { background: var(--bg-white); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ===== 小统计条 ===== */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }

.mini-stat {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 16px; text-align: center;
}
.mini-stat-val { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.mini-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* ===== 进度步骤 ===== */
.steps-bar {
  display: flex; align-items: center; margin-bottom: 20px;
  padding: 16px 20px; background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.step.active { color: var(--primary); font-weight: 600; }
.step.done { color: var(--success); }

.step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.step.active .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }

.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 10px; }

/* ===== 表单 ===== */
.form-layout { display: flex; flex-direction: column; gap: 16px; }
.form-card { padding: 18px 20px; }
.form-section-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.form-section-title i { color: var(--primary); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.form-label.required::after { content: ' *'; color: var(--danger); }

.form-control {
  height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 12px; outline: none; transition: all var(--transition);
  background: var(--bg-white); color: var(--text-primary); width: 100%;
}
.form-control:hover { border-color: var(--border-dark); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51,112,255,0.1);
}
.form-control::placeholder { color: var(--text-placeholder); }
.calc-field { background: #F4F6FF !important; color: var(--primary) !important; font-weight: 600; }

/* 可搜索下拉框 */
.searchable-select { position: relative; width: 100%; }
.searchable-input { cursor: text; }
.searchable-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  max-height: 240px; overflow-y: auto; background: var(--bg-white);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.searchable-dropdown.show { display: block; }
.searchable-option {
  padding: 9px 12px; font-size: 13px; color: var(--text-primary);
  cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid #f1f5f9;
}
.searchable-option:last-child { border-bottom: none; }
.searchable-option:hover, .searchable-option.active { background: #EEF2FF; color: var(--primary); }
.searchable-option .opt-sub { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.searchable-no-result { padding: 12px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* 必填校验报错 */
.form-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }
.form-error-msg { font-size: 11px; color: var(--danger); margin-top: 2px; }

.textarea { height: auto; resize: vertical; padding: 10px 12px; line-height: 1.5; min-height: 80px; }

.radio-group { display: flex; gap: 16px; padding: 8px 0; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: var(--text-primary); }
.radio-label input { accent-color: var(--primary); }

/* 上传区 */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: #FAFAFC;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 28px; color: var(--text-muted); margin-bottom: 8px; }
.upload-text { font-size: 14px; color: var(--text-secondary); }
.upload-link { color: var(--primary); cursor: pointer; text-decoration: underline; }
.upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.file-list { padding: 8px 0; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.file-name { flex: 1; color: var(--text-primary); }
.file-size { color: var(--text-muted); }
.file-remove { color: var(--danger); cursor: pointer; background: none; border: none; }

/* ===== 审批列表 ===== */
.approval-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.appr-stat-item {
  flex: 1; background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 16px; text-align: center;
}
.appr-stat-item.orange .appr-stat-val { color: var(--warning); }
.appr-stat-item.green .appr-stat-val { color: var(--success); }
.appr-stat-item.red .appr-stat-val { color: var(--danger); }
.appr-stat-val { font-size: 26px; font-weight: 700; }
.appr-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.approval-list { display: flex; flex-direction: column; gap: 12px; }
.approval-item {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--transition);
}
.approval-item:hover { box-shadow: var(--shadow-md); }
.approval-header {
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-light); background: #FAFAFC;
}
.approval-title { font-size: 14px; font-weight: 600; }
.approval-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.approval-body { padding: 14px 18px; }
.approval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.approval-field { font-size: 13px; }
.approval-field .label { color: var(--text-muted); margin-bottom: 3px; font-size: 11px; }
.approval-field .value { font-weight: 600; color: var(--text-primary); }
.approval-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-approve {
  background: var(--success); color: #fff; border: none;
  padding: 7px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px;
  transition: opacity var(--transition);
}
.btn-approve:hover { opacity: 0.9; }
.btn-reject {
  background: var(--danger); color: #fff; border: none;
  padding: 7px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px;
  transition: opacity var(--transition);
}
.btn-reject:hover { opacity: 0.9; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; color: var(--success); margin-bottom: 12px; }
.empty-text { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.empty-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ===== 系统设置 ===== */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.role-list { display: flex; flex-direction: column; }
.role-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.role-item:last-child { border-bottom: none; }
.role-name { font-size: 14px; font-weight: 600; }
.role-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 通知设置 */
.notify-list { display: flex; flex-direction: column; gap: 10px; }
.notify-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.notify-item:last-child { border-bottom: none; }
.notify-label { font-weight: 500; color: var(--text-primary); }
.notify-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toggle {
  width: 42px; height: 22px; background: #D0D1D6; border-radius: 11px;
  position: relative; cursor: pointer; transition: background var(--transition);
  border: none; flex-shrink: 0;
}
.toggle.on { background: var(--primary); }
.toggle::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  top: 2px; left: 2px; transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.on::after { transform: translateX(20px); }

/* 审批流程配置 */
.workflow-config { display: flex; flex-direction: column; gap: 10px; }
.workflow-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #FAFAFC;
}
.workflow-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.workflow-step-info { flex: 1; }
.workflow-step-name { font-size: 13px; font-weight: 500; }
.workflow-step-desc { font-size: 12px; color: var(--text-muted); }

/* 员工排名 */
.ranking-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.ranking-item:last-child { border-bottom: none; }
.ranking-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ranking-num.top1 { background: #FFD43B; color: #7A5900; }
.ranking-num.top2 { background: #E5E6EB; color: #646A73; }
.ranking-num.top3 { background: #FDC49F; color: #8B4000; }
.ranking-name { flex: 1; font-weight: 500; }
.ranking-bar-wrap { flex: 2; background: var(--bg); border-radius: 4px; height: 6px; overflow: hidden; }
.ranking-bar { height: 6px; background: linear-gradient(90deg, var(--primary), var(--purple)); border-radius: 4px; }
.ranking-val { font-weight: 600; color: var(--primary); min-width: 60px; text-align: right; }

/* ===== 图表网格 ===== */
.chart-grid { display: flex; flex-direction: column; gap: 12px; }
.chart-card-full { width: 100%; }
.chart-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}

.modal {
  background: var(--bg-white); border-radius: var(--radius);
  width: 540px; max-width: 95vw; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s;
}

.modal-header {
  padding: 18px 22px 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-muted); padding: 2px 6px; border-radius: var(--radius-sm);
  transition: all var(--transition); line-height: 1;
}
.modal-close:hover { background: var(--bg); color: var(--text-primary); }
.modal-body { padding: 18px 22px; }
.modal-footer {
  padding: 12px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* 详情弹窗 */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.detail-item .label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.detail-item .value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.detail-divider { border: none; border-top: 1px solid var(--border-light); margin: 14px 0; }
.detail-section { margin-bottom: 18px; padding: 14px; background: #fafafa; border-radius: 10px; border: 1px solid var(--border-light); }
.detail-section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.detail-section h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.detail-full { grid-column: 1 / -1; }
.status-clickable { transition: opacity 0.2s; }
.status-clickable:hover { opacity: 0.85; transform: scale(1.03); }
.client-name-link:hover { text-decoration: underline !important; color: #0958d9 !important; }
.client-name-link {
  white-space: nowrap; word-break: keep-all;
}
.feedback-link:hover { text-decoration: underline !important; color: #0958d9 !important; }

/* ===== 提示 Toast ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text-primary); color: #fff;
  padding: 10px 18px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; box-shadow: var(--shadow-lg);
  z-index: 1000; animation: slideInRight 0.3s; max-width: 340px;
}
.toast i { color: #67E8B7; font-size: 15px; }
.toast.error i { color: #FCA5A5; }

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(80px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(80px); } }

/* ===== 方案卡片 ===== */
.plan-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }

.plan-card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-md); }

.plan-card-header {
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #F8F9FF, #F0F3FF);
}

.plan-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}

.plan-info { flex: 1; }
.plan-name { font-size: 14px; font-weight: 600; }
.plan-type { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.plan-card-body { padding: 12px 16px; }
.plan-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--border-light);
}
.plan-row:last-child { border-bottom: none; }
.plan-row span:first-child { color: var(--text-secondary); }
.plan-val { font-weight: 600; }

.plan-card-footer { padding: 10px 16px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; }

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

/* ===== 中小平板/大屏手机（含鸿蒙等宽屏手机） ===== */
@media (max-width: 900px) and (min-width: 769px) {
  .sidebar { width:200px; }
  .sidebar-header { padding:14px 12px; }
  .nav-item { padding:8px 12px; margin:1px 6px; font-size:13px; }
  .nav-section-title { padding:10px 12px 5px; font-size:10px; }
  .logo-name { font-size:14px; }
  .topbar { padding:0 16px; }
  .topbar .search-box { width:180px; }
}

/* ===== 移动端核心适配（≤768px，所有手机含鸿蒙/ArkWeb） ===== */
@media (max-width: 768px) {
  /* ★ 关键：鸿蒙 ArkWeb 不支持 transform:-100% 隐藏，必须用 display:none */
  .sidebar {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
    width: 0;
    min-width: 0;
    overflow: hidden;
  }
  /* 侧边栏打开状态：覆盖层显示 */
  .sidebar.open {
    display: flex !important;
    visibility: visible !important;
    position: fixed;
    left: 0;
    width: 280px;
    z-index: 9999;
    box-shadow: 4px 0 30px rgba(0,0,0,0.4);
    animation: slideInLeft 0.25s ease;
  }
  @keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  /* 主内容区占满全宽 */
  .main-content {
    margin-left: 0 !important;
    width: 100%;
  }

  /* 顶部栏精简 */
  .topbar {
    padding: 0 10px;
    height: 48px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .topbar-left {
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .topbar .search-box {
    width: 100px;
    min-width: 80px;
    max-width: 150px;
  }
  .topbar .search-box input::placeholder {
    font-size: 11px;
  }
  .topbar .breadcrumb {
    font-size: 11px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
  }
  .topbar .breadcrumb .active {
    font-size: 11px;
  }
  .topbar .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .topbar .sync-btn {
    display: none;  /* 手机端隐藏同步按钮节省空间 */
  }

  .page-content { padding: 14px; }
  .page-header { flex-direction: column; gap: 8px; align-items: stretch; }
  .page-title { font-size: 18px; }
  .page-actions { flex-wrap: wrap; gap: 6px; }
  .page-actions .btn-primary,
  .page-actions .btn-outline { padding: 6px 12px; font-size: 12px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 18px; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .approval-grid { grid-template-columns: 1fr 1fr; }

  .dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
  .chart-2col { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }

  .data-table, .data-table thead, .data-table tbody,
  .data-table th, .data-table td, .data-table tr { display: revert; }
  .data-table thead { display: table-header-group; }
  .full-table { min-width: 900px; }

  .table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -12px; padding: 0 12px;
  }
  .table-scroll .data-table { min-width: 760px; }
  .table-scroll .data-table th,
  .table-scroll .data-table td { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .table-scroll .data-table td { display: table-cell; }
  .table-scroll .data-table td::before { content: none; }
  .table-scroll .data-table tr { display: table-row; margin: 0; border: none; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }

  .filter-bar { margin-bottom: 10px; }
  .filter-row { flex-direction: column; padding: 12px; gap: 8px; align-items: stretch; }
  .filter-item { flex: none !important; width: 100% !important; }
  .filter-item label { font-size: 11px; }
  .select-input, .date-input { width: 100%; height: 36px; font-size: 13px; }

  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-card { padding: 12px; }
  .form-group { gap: 4px; }
  .form-label { font-size: 12px; }
  .form-control { height: 36px; font-size: 13px; padding: 0 10px; }
  .form-section-title { font-size: 13px; }

  .steps-bar { display: none; }

  .modal-overlay { align-items: flex-end; }
  .modal {
    width: 100% !important; max-width: 100% !important; max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0; margin: 0;
  }
  .modal-header { padding: 14px 16px 12px; }
  .modal-header h3 { font-size: 15px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 10px 16px; flex-direction: column; gap: 6px; }
  .modal-footer .btn-primary,
  .modal-footer .btn-outline { width: 100%; justify-content: center; }

  .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-item { padding: 8px 12px; }
  .detail-item .label { font-size: 11px; }
  .detail-item .value { font-size: 13px; }

  .pagination { flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pagination button { padding: 6px 10px; font-size: 12px; }

  .btn-approve, .btn-reject { padding: 6px 12px; font-size: 12px; }

  .detail-panel { width: 100% !important; max-width: 100% !important; }

  /* 侧边栏移动端遮罩 */
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
  }
  .sidebar.open + .sidebar-backdrop {
    opacity: 1; pointer-events: auto;
  }

  /* 移动端 nav-item 加大触控区域 */
  .nav-item { padding: 11px 18px; margin: 2px 8px; font-size: 14px; min-height: 44px; }
  .sidebar-footer .btn-icon { width: 40px; height: 40px; }

  /* ★ v209+v210: 移动端业务页精简 — 隐藏标题文字，只保留列设置+搜索框(内嵌清除) */
  #page-business-list .page-title,
  #page-business-list .page-desc { display: none !important; }
  #page-business-list .page-actions { flex-wrap: wrap; gap: 6px; }
  #page-business-list .page-actions .search-wrap { width: 100% !important; flex: 1 1 100%; min-width: 0; }
  #page-business-list .page-actions .search-wrap .select-input { width: 100% !important; }
  #page-business-list .page-actions [data-action="export-business"],
  #page-business-list .page-actions [data-page="new-business"] { display: none !important; }
  #page-business-list #bizColSettingSlot { order: -1; }
  /* 移动端所有列表页搜索框占满整行 */
  .page-actions .search-wrap { width: 100% !important; flex: 1 1 100%; min-width: 0; }
  .page-actions .search-wrap .select-input { width: 100% !important; }
}

/* ===== 超小屏幕（手机竖屏 ≤480px） ===== */
@media (max-width: 480px) {
  .topbar { padding: 0 8px; height: 46px; gap: 4px; }

  /* 搜索框隐藏，节省空间 */
  .topbar .search-box { display:none !important; }
  .topbar .breadcrumb { font-size:11px; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex-shrink:1; }
  .topbar .breadcrumb .active { font-size:11px; }
  .notify-btn { width:32px; height:32px; font-size:14px; }

  /* 隐藏非核心按钮，保留通知 */
  .sync-btn { display:none !important; }

  .page-content { padding: 10px; padding-bottom: 72px; }
  .page-header { padding: 10px 14px; }
  .page-title { font-size: 16px; }
  .page-actions .btn-primary,
  .page-actions .btn-outline { padding: 8px 14px; font-size: 13px; min-height: 38px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px 14px; }
  .stat-card .stat-value { font-size: 16px; }
  .mini-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .approval-grid { grid-template-columns: 1fr; }

  .table-scroll { margin: 0 -8px; padding: 0 8px; }
  .table-scroll .data-table { min-width: 600px; }
  .table-scroll .data-table th,
  .table-scroll .data-table td { padding: 6px 8px; font-size: 11px; }

  .filter-row { padding: 10px; gap: 6px; }
  .select-input, .date-input { height: 38px; font-size: 14px; }

  .btn-primary, .btn-outline { min-height: 40px; padding: 8px 16px; font-size: 13px; }
  .btn-icon { min-width: 40px; min-height: 40px; }

  .modal-header { padding: 12px 14px 10px; }
  .modal-header h3 { font-size: 14px; }
  .modal-body { padding: 12px 14px; }
  .modal-footer { padding: 10px 14px; }

  .pagination { gap: 4px; }
  .pagination button { padding: 8px 12px; font-size: 13px; min-width: 36px; min-height: 36px; }

  .detail-panel { border-radius: 12px 12px 0 0; }

  /* 保单整理工具在小屏适配 */
  .po-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .po-stat-card { padding: 10px 12px; }
  .po-stat-value { font-size: 22px; }
  .po-filters { flex-direction: column; }
  .po-filters input, .po-filters select { width: 100%; }
  .po-autocomplete-wrap { min-width: 100% !important; }
  .po-form-group { min-width: 100% !important; }
  .po-detail-grid { grid-template-columns: 1fr; }
  .po-detail-label { text-align: left; }
  .po-header { padding: 12px 16px; }
  .po-title { font-size: 16px; }
  .po-tab { padding: 10px 14px; font-size: 13px; }
  .po-modal { max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; }
  .po-modal-body { padding: 14px; }
  .po-modal-header { padding: 14px 16px; }
  .po-charts-row { grid-template-columns: 1fr; }

  /* 底部导航在 768px 以下的额外调整 */
  .bottom-nav { height: 56px; }
  .main-content { padding-bottom: 64px; }
  .page-content { padding-bottom: 76px; }
}

/* ===== 底部 Tab 导航 — 桌面端隐藏，移动端 index.html 内联 CSS 控制显示 ===== */
.bottom-nav {
  display: none; /* 桌面端隐藏，index.html 内联 CSS 在移动端用 !important 显示 */
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid #e8e8e8;
  z-index: 99; height: 56px;
  padding: 2px 4px;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.04);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  color: var(--text-muted); font-size: 10px; cursor: pointer;
  border: none; background: none; -webkit-tap-highlight-color: transparent;
  transition: color var(--transition);
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item i { display: none !important; }
.bottom-nav-item span { line-height: 1; font-size: 14px; }

/* ===== 底部弹层（移动端一级菜单 → 二级列表）===== */
.bottom-sheet-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bottom-sheet-mask.show { display: block; opacity: 1; }
.bottom-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--bg-white);
  border-radius: 16px 16px 0 0;
  z-index: 3001;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.25,0.1,0.25,1);
  max-height: 70vh; overflow-y: auto;
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.bottom-sheet.show { transform: translateY(0); }
.bottom-sheet-grab {
  width: 36px; height: 4px; border-radius: 2px;
  background: #d0d0d5; margin: 8px auto 4px;
}
.bottom-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 10px;
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bottom-sheet-close {
  background: none; border: none; font-size: 18px; color: var(--text-muted);
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.bottom-sheet-list { padding: 6px 0 14px; }
.bottom-sheet-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 20px;
  background: none; border: none; text-align: left;
  font-size: 16px; color: var(--text-primary); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.bottom-sheet-item i { width: 22px; text-align: center; color: var(--primary); }
.bottom-sheet-item:active { background: #f2f4f8; }

/* 侧边栏移动端遮罩默认隐藏（桌面端） */
.sidebar-backdrop { display: none; }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; color: var(--text-primary); font-size: 20px; cursor: pointer; border-radius: var(--radius-sm); }
.menu-toggle:hover { background: var(--bg); }

/* ===== 登录页 ===== */
.login-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1F2329 0%, #2B2F36 50%, #1F2329 100%);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.25); width: 360px; max-width: 90vw; overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--primary), #5E7FF5);
  padding: 28px 24px 22px; text-align: center; color: #fff;
}
.login-logo {
  width: 52px; height: 52px; background: rgba(255,255,255,0.2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 22px;
}
.login-header h2 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.login-sub { font-size: 12px; opacity: 0.85; }
.login-form { padding: 22px; }
.input-group {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; transition: border-color var(--transition);
}
.input-group:hover { border-color: var(--border-dark); }
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,112,255,0.1); }
.input-group i { color: var(--text-muted); font-size: 14px; }
.input-group input { border: none; outline: none; flex: 1; font-size: 14px; color: var(--text-primary); }
.input-group input::placeholder { color: var(--text-placeholder); }
.btn-block { width: 100%; padding: 10px; justify-content: center; font-size: 15px; border-radius: var(--radius-sm); }
.login-hint {
  text-align: center; margin-top: 14px; font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.login-hint .hint-item {
  color: var(--primary); cursor: pointer; padding: 2px 8px;
  border-radius: 3px; background: var(--primary-light); font-weight: 500;
}
.login-hint .hint-item:hover { background: var(--primary); color: #fff; }

.login-error {
  margin-top: 10px; padding: 8px 12px; background: #FEF2F2; color: #DC2626;
  border-radius: var(--radius-sm); font-size: 13px; text-align: center; display: none;
}

/* ===== 通知面板 ===== */
.notify-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 3000;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 56px 16px;
}
.notify-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 380px; max-width: 90vw; max-height: 70vh; overflow: hidden; display: flex; flex-direction: column;
}
.notify-panel-hd {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.notify-panel-hd h3 { font-size: 15px; font-weight: 600; }
.notify-panel-bd { overflow-y: auto; flex: 1; }
.notify-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition);
}
.notify-row:hover { background: var(--bg); }
.notify-row.unread { background: var(--primary-light); }
.notify-row i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.notify-text { flex: 1; min-width: 0; }
.notify-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notify-body { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.notify-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notify-new {
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}

/* ===== 退出按钮 ===== */
.logout-btn { transition: color var(--transition); }
.logout-btn:hover { color: var(--danger) !important; }

/* ===== 移动端通知面板 ===== */
@media (max-width: 768px) {
  .notify-overlay { padding: 0; align-items: stretch; justify-content: stretch; }
  .notify-panel { max-width: 100vw; width: 100%; border-radius: 0; max-height: 100vh; }
  .login-card { margin: 16px; }
}

/* ===== 详情面板（结算等）===== */
.detail-panel {
  position: fixed; top: 0; right: 0; width: 480px; max-width: 100vw;
  height: 100vh; background: var(--bg-white); box-shadow: var(--shadow-lg);
  z-index: 400; overflow-y: auto; display: flex; flex-direction: column;
  animation: slideInRight 0.25s;
}

/* ===== 弹窗内备注区 ===== */
.modal-note {
  background: #FFF8E5; border: 1px solid #FDDC8C;
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12px; color: #8A6100; margin-top: 12px; line-height: 1.6;
}

/* ===== 链接按钮 ===== */
.link-btn {
  color: var(--primary); background: none; border: none; cursor: pointer;
  font-size: 13px; padding: 0; transition: opacity var(--transition);
}
.link-btn:hover { opacity: 0.8; text-decoration: underline; }

/* ===== 内联代码 ===== */
.inline-code {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  background: #F5F6FA; padding: 1px 6px; border-radius: 3px;
  font-size: 12px; color: var(--primary);
}

/* ===== 鸿蒙/ArkWeb 及小屏手机全面适配 ===== */

/* 超窄屏幕（< 420px，华为Pura X等宽屏/折叠屏手机） */
@media (max-width: 420px) {
  /* 确保侧边栏彻底隐藏 */
  .sidebar { display: none !important; }
  .sidebar.open { display: flex !important; }

  html { font-size:13px; }
  body { font-size:13px; }
  .topbar { height:44px; padding:0 6px; gap:4px; }
  .topbar-left { gap:4px; }
  .topbar .search-box { display:none !important; }
  .topbar .breadcrumb { max-width:90px; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .topbar .breadcrumb .active { font-size:10px; }
  .menu-toggle { width:30px; height:30px; font-size:16px; }
  .notify-btn { width:28px; height:28px; font-size:13px; }

  .page-content { padding:8px; padding-bottom:68px; }
  .page-header { padding:8px 10px; flex-direction:row !important; flex-wrap:wrap; }
  .page-title { font-size:15px; }
  .page-desc { font-size:11px; }

  /* 统计卡片更紧凑 */
  .stats-grid { grid-template-columns:1fr 1fr; gap:6px; }
  .stat-card { padding:10px 12px; }
  .stat-card .stat-value { font-size:18px; }
  .stat-card .stat-label { font-size:11px; }
  .mini-stats { grid-template-columns:1fr 1fr; gap:5px; }
  .mini-stat-card { padding:8px 10px; }
  .mini-stat-value { font-size:16px; }

  /* 表格 */
  .table-scroll { margin:0 -8px; padding:0 8px; }
  .table-scroll .data-table { min-width:520px; }
  .table-scroll .data-table th,
  .table-scroll .data-table td { padding:5px 6px; font-size:10px; }

  /* 按钮缩小 */
  .btn-primary, .btn-outline { padding:7px 12px; font-size:12px; min-height:36px; }
  .page-actions .btn-primary,
  .page-actions .btn-outline { padding:6px 10px; font-size:11px; min-height:34px; }
  .page-actions { gap:4px; }

  /* 底部导航适配 */
  .bottom-nav { height: 56px; }
  .bottom-nav-item i { display: none !important; }
  .bottom-nav-item span { font-size: 13px; }

  /* 保单整理模块 */
  .po-header { padding:10px 12px; }
  .po-title { font-size:15px; }
  .po-tab { padding:8px 10px; font-size:12px; }
  .po-filters { gap:4px; }
  .po-stat-value { font-size:20px; }
  .po-modal-body { padding:10px; }

  /* 弹窗 */
  .modal-header h3 { font-size:14px; }
  .modal-body { padding:10px 12px; }

  /* 分页 */
  .pagination button { padding:6px 10px; font-size:12px; min-width:32px; min-height:32px; }
}

/* 所有移动设备通用修复（针对 ArkWeb/鸿蒙 WebView 兼容性） */
@media (max-width: 900px) {
  /* 禁止横向滚动 */
  body, html, .main-content, .page-content, .page { overflow-x:hidden !important; max-width:100vw; }

  /* ★ 鸿蒙 ArkWeb 关键修复：侧边栏必须用 display:none 才能真正隐藏 */
  .sidebar:not(.open) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .sidebar.open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    left: 0 !important;
    width: 280px !important;
    z-index: 9999 !important;
  }

  /* 主内容区全宽 */
  .main-content { margin-left:0 !important; width:100% !important; }

  /* 底部导航始终在最上层 */
  .bottom-nav { z-index:500; }
}

/* 触摸设备优化 */
@media (hover:none) and (pointer:coarse) {
  .nav-item:hover { background:transparent; color:var(--secondary); }
  .nav-item:active { background:var(--primary-light); }
  .btn-primary:active, .btn-outline:active { transform:scale(0.97); opacity:0.9; }
  .bottom-nav-item:active { transform:scale(0.9); }
}

/* ★ v106：客户列表负责人点击分配 */
.staff-assign-cell {
  cursor: pointer;
  color: var(--primary);
  border-bottom: 1px dashed var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.staff-assign-cell:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-bottom-style: solid;
}
.staff-select-option {
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.staff-select-option:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ★ v106：服务经理选择器弹出面板 */
#staffSelectorPopover {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 160px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}

/* ====== 消息推送 开关 ====== */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 26px; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: #16a34a; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* ===== 表格列设置面板 ===== */
.col-toggle-wrap { position: relative; display: inline-block; }
.col-toggle-panel {
  position: absolute; top: 100%; right: 0; z-index: 999;
  background: var(--bg-card, #fff); border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0; min-width: 160px; max-height: 320px; overflow-y: auto;
  display: none;
}
.col-toggle-panel.open { display: block; }
.col-toggle-panel .col-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 13px; color: var(--text-secondary);
  white-space: nowrap;
}
.col-toggle-panel .col-item:hover { background: var(--bg-hover, #f5f5f5); }
.col-toggle-panel .col-item input { margin: 0; cursor: pointer; }
.col-toggle-panel .col-toggle-header {
  padding: 4px 14px 8px; font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 4px;
}

/* ===== 新单录入分步表单（移动端） ===== */
.step-nav { display: none; }
@media (max-width: 900px) {
  .step-nav { display: flex; position: sticky; bottom: 0; background: var(--bg-card, #fff);
    padding: 12px 16px; border-top: 1px solid var(--border, #e2e8f0); z-index: 10; }
  .form-layout .form-card[data-step] { display: none; }
  .form-layout .form-card[data-step].step-active { display: block; }
  .steps-bar { margin-bottom: 12px; overflow-x: auto; }
}

/* ===== 产品管理卡片布局（v206） ===== */
.product-card-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 4px 0;
}
.product-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(37,99,235,0.08); }
.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pc-name { font-weight: 600; font-size: 14px; color: var(--text-primary); cursor: pointer; line-height: 1.4; }
.pc-name:hover { color: var(--primary); }
.pc-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 12px; }
.pc-rates { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-rate {
  flex: 1; min-width: 64px; text-align: center;
  padding: 8px 4px; background: var(--bg, #f5f7fa); border-radius: 8px;
}
.pc-rate-yr { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.pc-rate-val { font-size: 16px; font-weight: 600; color: var(--primary); }
.pc-extra { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag { font-size: 11px; color: var(--text-secondary); background: var(--bg, #f5f7fa); border-radius: 10px; padding: 2px 8px; }
.pc-actions {
  margin-top: 12px; display: flex; gap: 8px;
  border-top: 1px solid var(--border, #e2e8f0); padding-top: 10px;
}

/* 移动端产品卡片：6列太窄，改为2列 */
@media (max-width: 1024px) {
  .product-card-list { grid-template-columns: repeat(2, 1fr); }
}

/* 产品管理 — 方案B：行内展开 */
.prd-row { cursor: pointer; }
.prd-row:hover { background: var(--bg, #f5f7fa); }
.prd-caret-cell { width: 30px; text-align: center; color: var(--text-muted); }
.prd-caret { display: inline-block; width: 14px; transition: transform 0.15s; }
.prd-row.expanded { background: var(--bg, #f5f7fa); }
.prd-expand-row > td { background: var(--bg, #f5f7fa); padding: 4px 12px 14px !important; }
.prd-rate-wrap { padding: 8px 4px 0; }
.prd-rate-wrap .data-table th, .prd-rate-wrap .data-table td { border-bottom: 1px solid var(--border, #e2e8f0); }

/* 移动端底部导航 — 纯文字横排，居中，可横滑 */
.bottom-nav { align-items: center; }
.bn-scroll {
  display: flex; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  flex: 1; min-width: 0; padding: 0 4px;
  gap: 2px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.bn-scroll::-webkit-scrollbar { display: none; }
.bn-page-btn {
  flex: 0 0 auto; border: none; background: transparent;
  color: var(--text-muted, #8b95a5); font-size: 13px; line-height: 1;
  padding: 10px 6px; border-radius: 8px; white-space: nowrap; cursor: pointer;
  font-family: inherit; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s ease; position: relative;
}
.bn-page-btn.active {
  color: var(--primary, #2563eb); font-weight: 600;
}

