:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --primary-dark: #3730A3;
  --primary-bg: #EEF2FF;
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --info: #3B82F6;
  --info-bg: #EFF6FF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --sidebar-width: 240px;
  --header-height: 60px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.6;
}

/* ====== 登录页 ====== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  animation: slideUp 0.5s ease;
}

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

.login-card h1 {
  text-align: center;
  font-size: 24px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.login-card .subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 14px;
}

.login-card .logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ====== 登录/注册 Tab ====== */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-form.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.register-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--warning-bg);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--warning);
}

.register-success {
  padding: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

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

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; }

.btn-outline {
  background: white;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }

.login-accounts {
  margin-top: 24px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 10px;
  font-size: 12px;
}

.login-accounts h4 {
  color: var(--gray-600);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.login-accounts .account-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s;
}

.login-accounts .account-item:hover { color: var(--primary); }

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

.sidebar {
  width: var(--sidebar-width);
  background: var(--gray-900);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.sidebar-header .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.sidebar-header .logo-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 12px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.nav-item.active {
  background: var(--primary);
  color: white;
}

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

/* 通知徽标 */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 通知铃铛 */
.notif-bell {
  position: relative;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-bell:hover {
  background: rgba(255,255,255,0.1);
}

.notif-bell .bell-icon {
  font-size: 20px;
  color: var(--gray-300);
}

.notif-bell .bell-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: pulse-badge 2s infinite;
}

/* 通知下拉面板 */
.notif-dropdown {
  position: fixed;
  width: 380px;
  max-height: 500px;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 2000;
  display: none;
}

.notif-dropdown.show {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.notif-dropdown-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.notif-dropdown-header .mark-all {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: none;
}

.notif-dropdown-header .mark-all:hover {
  text-decoration: underline;
}

.notif-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-50);
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item:hover {
  background: var(--gray-50);
}

.notif-item.unread {
  background: var(--primary-bg);
}

.notif-item.unread:hover {
  background: #e0e7ff;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-item-content {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
  white-space: pre-line;
}

.notif-item-time {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
}

.notif-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

.notif-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* 仪表盘审批提醒横幅 */
.approval-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.approval-banner-empty {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}

.approval-banner-empty .banner-icon {
  background: #22c55e;
  animation: none;
}

.approval-banner .banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  animation: pulse-badge 2s infinite;
}

.approval-banner .banner-content {
  flex: 1;
}

.approval-banner .banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 4px;
}

.approval-banner .banner-desc {
  font-size: 13px;
  color: #c2410c;
  margin-bottom: 12px;
}

.approval-banner .banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 待审批用户卡片列表（仪表盘快捷审批） */
.pending-approval-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.pending-approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.pending-approval-item .pai-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pending-approval-item .pai-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.pending-approval-item .pai-meta {
  font-size: 11px;
  color: var(--gray-500);
}

.pending-approval-item .pai-actions {
  display: flex;
  gap: 6px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
}

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

.user-name { font-size: 13px; font-weight: 500; }
.user-role { font-size: 11px; color: var(--gray-400); }

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

.page-header {
  background: white;
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
}

.page-content {
  padding: 24px;
}

/* ====== 卡片 ====== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body { padding: 20px; }

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

.stat-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.stat-icon.purple { background: var(--primary-bg); color: var(--primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ====== 表格 ====== */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

tr:hover td { background: var(--gray-50); }

/* ====== 徽章 ====== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-purple { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-orange { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ====== 模态框 ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: white;
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

.modal.modal-lg { max-width: 800px; }
.modal.modal-xl { max-width: 1000px; }

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

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-800);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover { color: var(--gray-600); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ====== 表单布局 ====== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ====== 搜索栏 ====== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar .search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.toolbar .search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.filter-select {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: white;
  cursor: pointer;
}

/* ====== 时间线 ====== */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.opinion::before { background: var(--info); box-shadow: 0 0 0 2px var(--info); }
.timeline-item.issue::before { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.timeline-item.progress::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item.photo::before { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }

.timeline-content {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 12px 16px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--gray-500);
}

.timeline-text { font-size: 13px; color: var(--gray-700); line-height: 1.6; }

.timeline-photo {
  margin-top: 8px;
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
}

/* ====== AI智能体 ====== */
.ai-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  min-height: 600px;
}

.ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-module-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  text-align: left;
  font-family: inherit;
}

.ai-module-btn:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.ai-module-btn.active {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
}

.ai-module-btn .module-icon {
  font-size: 20px;
}

.ai-module-btn .module-name {
  font-size: 13px;
  font-weight: 500;
}

.ai-module-btn .module-desc {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

.ai-content {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.ai-result {
  margin-top: 24px;
}

.ai-diagnosis-item {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
}

.ai-diagnosis-item .dimension-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-diagnosis-item .dimension-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.ai-diagnosis-item .dimension-detail {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.ai-phase {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
}

.ai-phase .phase-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.ai-phase .phase-goal {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.ai-phase ul {
  padding-left: 18px;
}

.ai-phase li {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 4px;
  line-height: 1.6;
}

.ai-phase .phase-kpi {
  margin-top: 8px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.ai-section {
  margin-bottom: 20px;
}

.ai-section .section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray-200);
}

.ai-section ul {
  padding-left: 18px;
}

.ai-section li {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 6px;
  line-height: 1.7;
}

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

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

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

/* ====== 提示消息 ====== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
.toast-warning { background: #f59e0b; }

/* ====== 角色标签 ====== */
.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.role-tag.course_consultant { background: #E0F2FE; color: #0284C7; }
.role-tag.growth_officer { background: #FEF3C7; color: #D97706; }
.role-tag.consultant { background: #DCFCE7; color: #16A34A; }
.role-tag.director { background: #F3E8FF; color: #9333EA; }
.role-tag.admin { background: #FEE2E2; color: #DC2626; }

/* ====== 跟进复盘标签页 ====== */
.fu-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.fu-tab-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fu-tab-btn:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}
.fu-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  font-weight: 600;
}
.fu-tab-count {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 2px;
}
.fu-tab-btn.active .fu-tab-count {
  background: var(--primary);
  color: white;
}

/* ====== 图片上传预览 ====== */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.upload-area .upload-icon {
  font-size: 36px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 12px;
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .ai-container { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ====== 工具类 ====== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.font-bold { font-weight: 600; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.cursor-pointer { cursor: pointer; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ========== AI Markdown 内容样式 ========== */
.ai-markdown-content {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-700);
}
.ai-markdown-content h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}
.ai-markdown-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}
.ai-markdown-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  margin: 14px 0 8px;
}
.ai-markdown-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  margin: 12px 0 6px;
}
.ai-markdown-content p {
  margin: 8px 0;
}
.ai-markdown-content ul, .ai-markdown-content ol {
  margin: 8px 0;
  padding-left: 22px;
}
.ai-markdown-content li {
  margin: 4px 0;
}
.ai-markdown-content strong {
  color: var(--gray-800);
  font-weight: 600;
}
.ai-markdown-content em {
  color: var(--primary);
}
.ai-markdown-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--danger);
}
.ai-markdown-content pre {
  background: var(--gray-50);
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0;
  border: 1px solid var(--gray-200);
}
.ai-markdown-content pre code {
  background: none;
  color: var(--gray-700);
  padding: 0;
}
.ai-markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.ai-markdown-content th {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--gray-200);
}
.ai-markdown-content td {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
}
.ai-markdown-content tr:nth-child(even) {
  background: var(--gray-50);
}
.ai-markdown-content blockquote {
  border-left: 4px solid var(--primary-light);
  padding: 8px 16px;
  margin: 10px 0;
  background: var(--primary-bg);
  border-radius: 0 8px 8px 0;
  color: var(--gray-600);
}
.ai-markdown-content hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 16px 0;
}

/* ====== 组织系统交付工作流 ====== */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.delivery-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
}
.delivery-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}
.delivery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.delivery-task-item {
  transition: all 0.2s;
}
.delivery-task-item:hover {
  border-color: var(--primary-light) !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}
.delivery-timeline {
  position: relative;
  padding-left: 8px;
}
.delivery-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
}
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  z-index: 1;
}
.timeline-content {
  padding: 8px 0;
}
.stats-grid .card-body {
  padding: 20px;
}

/* ====== 注册审批模块 ====== */

/* 批量操作栏 */
.batch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.batch-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.batch-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}
.batch-select-all input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.batch-count {
  font-size: 13px;
  color: var(--gray-500);
}
.batch-bar-right {
  display: flex;
  gap: 8px;
}
.batch-bar-right button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 审批卡片列表 */
.approval-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* 审批卡片 */
.approval-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.approval-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.approval-card-checkbox {
  flex-shrink: 0;
}
.approval-card-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 审批卡片头像 */
.approval-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* 审批卡片主体 */
.approval-card-body {
  flex: 1;
  min-width: 0;
}
.approval-card-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.approval-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}
.approval-card-username {
  font-size: 13px;
  color: var(--gray-400);
}
.approval-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.approval-card-meta .role-tag {
  margin: 0;
}
.approval-meta-item {
  font-size: 12px;
  color: var(--gray-500);
}

/* 审批卡片操作 */
.approval-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* 统计卡片红色图标 */
.stat-card .stat-icon.red {
  background: var(--danger-bg);
  color: var(--danger);
}

/* 审批详情弹窗 */
.approval-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--primary-bg);
  border-radius: 12px;
  margin-bottom: 20px;
}
.approval-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.approval-detail-info {
  flex: 1;
}
.approval-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}
.approval-detail-username {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* 审批详情网格 */
.approval-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.approval-detail-item {
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}
.detail-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.detail-value {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

@media (max-width: 768px) {
  .approval-card {
    flex-wrap: wrap;
  }
  .approval-card-actions {
    width: 100%;
    margin-top: 8px;
  }
  .approval-detail-grid {
    grid-template-columns: 1fr;
  }
  .batch-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .batch-bar-left, .batch-bar-right {
    justify-content: space-between;
  }
}

