/* index.css - 首页样式 */
  :root {
    --blue-50: #eff6ff; --blue-100: #dbeafe; --blue-200: #bfdbfe; --blue-500: #3b82f6; --blue-600: #2563eb; --blue-700: #1d4ed8;
    --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1; --slate-400: #94a3b8;
    --slate-500: #64748b; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a;
    --white: #ffffff; --red: #ef4444; --red-50: #fef2f2; --red-100: #fee2e2;
    --green: #16a34a; --green-50: #f0fdf4; --green-100: #dcfce7; --green-500: #22c55e; --green-600: #16a34a;
    --amber: #f59e0b; --amber-50: #fffbeb; --yellow-50: #fefce8;
    --purple: #8b5cf6; --purple-50: #faf5ff;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08),0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif; background: var(--slate-50); color: var(--slate-800); font-size: 14px; line-height: 1.6; min-height: 100vh; }

  .hidden { display: none !important; }

  /* ── Logo ── */
  .logo-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
  .logo-icon svg { width: 100%; height: 100%; }

  /* ── 登录页 ── */
  .login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px; background: linear-gradient(135deg, var(--slate-50) 0%, var(--blue-50) 100%); }
  .login-card { background: var(--white); border-radius: 14px; border: 1px solid var(--slate-200); padding: 48px 40px; width: 100%; max-width: 460px; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
  .login-card .logo-area { text-align: center; margin-bottom: 32px; }
  .login-card .logo-area .logo-icon { width: 64px; height: 64px; margin: 0 auto 12px; }
  .login-card h2 { font-size: 22px; font-weight: 700; color: var(--slate-800); }
  .login-card .subtitle { font-size: 14px; color: var(--slate-400); margin-top: 6px; }
  .chrome-tip { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #e8f0fe; border: 1px solid #c6dafc; border-radius: 10px; margin-bottom: 24px; }
  .chrome-tip .chrome-icon { width: 22px; height: 22px; flex-shrink: 0; }
  .chrome-tip .chrome-text { font-size: 13px; color: #1a73e8; line-height: 1.5; font-weight: 500; }

  /* ── 角色切换标签 ── */
  .role-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--slate-100); border-radius: 10px; padding: 4px; }
  .role-tab { flex: 1; height: 40px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--slate-500); transition: all 0.15s; }
  .role-tab.active { background: var(--white); color: var(--blue-600); box-shadow: var(--shadow); }
  .role-tab:hover:not(.active) { color: var(--slate-700); }
  .login-hint { text-align: center; margin-top: 12px; font-size: 13px; color: var(--slate-400); }

  /* ── 表单元素 ── */
  .form-group { margin-bottom: 20px; }
  label { display: block; font-size: 14px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
  input, select, textarea { width: 100%; height: 48px; border: 1px solid var(--slate-200); border-radius: 8px; padding: 0 14px; font-size: 15px; outline: none; transition: all 0.15s; background: #fff; }
  input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
  textarea { min-height: 80px; resize: vertical; padding-top: 10px; }

  /* ── 按钮 ── */
  .btn { height: 44px; padding: 0 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; }
  .btn-primary { background: var(--blue-600); color: #fff; }
  .btn-primary:hover { background: var(--blue-700); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
  .btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; }
  .btn-ghost { background: var(--white); color: var(--blue-600); border: 1px solid var(--blue-500); }
  .btn-ghost:hover { background: var(--blue-50); }
  .btn-danger { background: var(--red-50); color: var(--red); border: 1px solid var(--red); }
  .btn-danger:hover { background: var(--red-100); }
  .btn-xs { height: 32px; padding: 0 12px; font-size: 12px; }

  /* ── 拼图滑块验证码 ── */
  .captcha-wrapper { margin-bottom: 16px; }
  .captcha-container { width: 100%; height: 160px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 8px; position: relative; overflow: hidden; user-select: none; }
  .captcha-canvas { width: 100%; height: 100%; display: block; }
  .captcha-slider { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 80px; background: var(--white); border-radius: 6px; box-shadow: 0 2px 16px rgba(0,0,0,0.18); cursor: grab; display: flex; align-items: center; justify-content: center; z-index: 3; transition: all 0.15s; border: 2px solid var(--blue-500); }
  .captcha-slider:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.22); }
  .captcha-slider:active { cursor: grabbing; transform: translateY(-50%) scale(1.02); }
  .captcha-slider-icon { width: 22px; height: 22px; color: var(--blue-500); }
  .captcha-slider.success { background: var(--green-500); border-color: var(--green-600); }
  .captcha-slider.success .captcha-slider-icon { color: #fff; }
  .captcha-slider-puzzle { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 56px; height: 80px; pointer-events: none; }
  .captcha-label { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 14px; color: #ffffff; pointer-events: none; font-weight: 600; background: rgba(15, 23, 42, 0.85); padding: 4px 8px; z-index: 4; border-top: 1px solid rgba(255,255,255,0.1); }
  .captcha-label.success { color: #4ade80; background: rgba(15, 23, 42, 0.85); font-weight: 700; }
  .captcha-refresh { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0.6; transition: opacity 0.2s; z-index: 2; }
  .captcha-refresh:hover { opacity: 1; }
  .captcha-refresh svg { width: 18px; height: 18px; color: var(--slate-500); }

  /* ── 专家工作台布局 ── */
  .expert-layout { display: flex; min-height: 100vh; }
  .expert-sidebar { width: 220px; background: var(--white); border-right: 1px solid var(--slate-200); padding: 20px 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; }
  .expert-sidebar-header { padding: 0 16px 20px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; gap: 10px; }
  .expert-sidebar-header h3 { font-size: 14px; font-weight: 700; color: var(--slate-800); }
  .expert-sidebar-nav { flex: 1; padding: 12px 0; }
  .expert-sidebar-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--slate-500); text-decoration: none; font-weight: 500; transition: all 0.15s; border-left: 3px solid transparent; }
  .expert-sidebar-nav a:hover { background: var(--slate-50); color: var(--slate-700); }
  .expert-sidebar-nav a.active { background: var(--blue-50); color: var(--blue-600); border-left-color: var(--blue-500); font-weight: 600; }
  /* 侧边栏项目子菜单 */
  .sidebar-projects { padding: 2px 0; }
  .sidebar-projects-empty { padding: 4px 28px; font-size: 12px; color: var(--slate-400); }
  .sidebar-project-item { display: flex; align-items: center; gap: 6px; padding: 7px 16px 7px 36px; font-size: 12px; color: var(--slate-500); text-decoration: none; cursor: pointer; transition: all 0.15s; border-left: 3px solid transparent; }
  .sidebar-project-item:hover { background: var(--slate-50); color: var(--slate-700); }
  .sidebar-project-item.active { background: var(--blue-50); color: var(--blue-600); border-left-color: var(--blue-500); font-weight: 600; }
  .sidebar-project-item .proj-icon { font-size: 14px; flex-shrink: 0; }
  .sidebar-project-item .proj-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-project-item .proj-pending { font-size: 10px; color: var(--amber); margin-left: auto; }
  .expert-sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--slate-100); }
  .expert-sidebar-footer button { width: 100%; height: 36px; background: var(--slate-100); border: none; border-radius: 6px; font-size: 13px; color: var(--slate-500); cursor: pointer; font-weight: 500; }
  .expert-sidebar-footer button:hover { background: var(--slate-200); color: var(--slate-700); }
  .expert-main { flex: 1; margin-left: 220px; padding: 24px; }

  /* ── 卡片 ── */
  .card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
  .card h3 { font-size: 16px; font-weight: 700; color: var(--slate-800); margin-bottom: 16px; }

  /* ── 步骤指示器 ── */
  .steps { display: flex; gap: 8px; margin-bottom: 20px; }
  .step { flex: 1; text-align: center; padding: 14px; background: var(--white); border: 1px solid var(--slate-200); border-radius: 8px; position: relative; font-size: 13px; font-weight: 500; transition: all 0.15s; }
  .step.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); box-shadow: 0 4px 12px rgba(37,99,235,0.2); }
  .step.done { background: var(--green); color: #fff; border-color: var(--green); }

  /* ── 统计卡片 ── */
  .stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 24px; }
  .stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); padding: 16px; }
  .stat-card .stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
  .stat-card .stat-num { font-size: 26px; font-weight: 700; }
  .stat-card .stat-label { font-size: 12px; color: var(--slate-400); margin-top: 2px; }
  .icon-blue { background: var(--blue-50); color: var(--blue-600); }
  .icon-green { background: var(--green-50); color: var(--green); }
  .icon-amber { background: var(--amber-50); color: var(--amber); }
  .icon-red { background: var(--red-50); color: var(--red); }
  .icon-purple { background: var(--purple-50); color: var(--purple); }

  /* ── 表格 ── */
  .section-title { font-size: 17px; font-weight: 700; color: var(--slate-800); margin-bottom: 14px; }
  .table-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
  .table-bar .search-box { position: relative; }
  .table-bar .search-box input { width: 300px; height: 38px; border: 1px solid var(--slate-200); border-radius: 8px; padding: 0 12px 0 34px; font-size: 13px; }
  .table-bar .search-box .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--slate-400); font-size: 14px; }
  .table-bar select { height: 38px; border: 1px solid var(--slate-200); border-radius: 8px; padding: 0 32px 0 12px; font-size: 13px; color: var(--slate-700); background: #fff; outline: none; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
  .table-wrap { background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); overflow: hidden; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  thead { background: var(--slate-50); }
  th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--slate-500); font-size: 12px; border-bottom: 1px solid var(--slate-200); white-space: nowrap; }
  td { padding: 10px 12px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); }
  tr:last-child td { border-bottom: none; }
  tr:hover { background: var(--slate-50); }
  .table-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
  .badge-pending { background: var(--amber-50); color: #92400e; }
  .badge-audit { background: var(--blue-50); color: var(--blue-600); }
  .badge-approved { background: var(--green-50); color: #065f46; }
  .badge-rejected { background: var(--red-50); color: #991b1b; }
  .badge-discarded { background: var(--slate-100); color: var(--slate-500); }
  .reject-level-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #fef2f2; color: #991b1b; margin-left: 4px; }

  /* ── 操作按钮 ── */
  .btn-action { padding: 4px 10px; border-radius: 5px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 3px; transition: background 0.15s; }
  .btn-action-approve { background: var(--green-50); color: var(--green); }
  .btn-action-approve:hover { background: var(--green-100); }
  .btn-action-reject { background: var(--red-50); color: var(--red); }
  .btn-action-reject:hover { background: var(--red-100); }
  .btn-action-view { background: var(--blue-50); color: var(--blue-600); }
  .btn-action-view:hover { background: var(--blue-100); }
  .btn-action-edit { background: var(--amber-50); color: var(--amber); }
  .btn-action-edit:hover { background: var(--amber-100); }
  .action-cell { display: flex; gap: 4px; }

  /* ── 签名画布 ── */
  .signature-canvas { border: 2px dashed var(--slate-300); border-radius: 8px; background: #fff; cursor: crosshair; }
  .signature-width-btn.active { background: var(--blue-500) !important; color: #fff !important; }
  .signature-color-btn.active { transform: scale(1.2); box-shadow: 0 0 0 2px rgba(30,41,59,0.2); }

  /* ── 进度条 ── */
  .progress-bar { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
  .progress-node { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--slate-200); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
  .progress-node.done { background: var(--green); border-color: var(--green); color: #fff; }
  .progress-node.current { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
  .progress-line { flex: 1; height: 3px; background: var(--slate-200); }
  .progress-line.done { background: var(--green); }

  /* ── 弹窗 ── */
  .modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
  .modal-overlay.show { display: flex; }
  .modal-dialog { background: #fff; border-radius: 12px; width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); animation: fadeIn 0.2s ease; }
  .modal-dialog h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
  .modal-close-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--slate-100); border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--slate-500); }
  .detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 6px 12px; font-size: 13px; margin-bottom: 14px; }
  .detail-grid .dg-label { color: var(--slate-400); }
  .detail-grid .dg-value { color: var(--slate-800); font-weight: 500; word-break: break-all; }
  .detail-block { background: var(--slate-50); border-radius: 6px; padding: 12px; font-size: 13px; color: var(--slate-700); white-space: pre-wrap; line-height: 1.7; margin-bottom: 12px; }
  .detail-block strong { display: block; font-size: 12px; color: var(--slate-400); margin-bottom: 6px; font-weight: 500; }
  .modal-actions { display: flex; gap: 8px; margin-top: 16px; }
  .btn-modal { flex: 1; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
  .btn-modal-approve { background: var(--green); color: #fff; }
  .btn-modal-edit { background: var(--amber); color: #fff; }
  .btn-modal-reject { background: var(--red); color: #fff; }
  .btn-modal-close { background: var(--slate-100); color: var(--slate-500); }

  /* ── Toast ── */
  .toast { position: fixed; top: 20px; right: 20px; z-index: 300; background: var(--slate-800); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: none; animation: fadeIn 0.2s ease; }
  .toast.show { display: block; }
  .toast.success { background: var(--green); }
  .toast.error { background: var(--red); }

  /* ── 空状态 ── */
  .empty-state { text-align: center; padding: 40px; color: var(--slate-400); }

  /* ── 协议区域 ── */
  .agreement-box { height: 280px; overflow-y: auto; border: 1px solid var(--slate-200); border-radius: 8px; padding: 14px; background: #fff; font-size: 13px; line-height: 1.8; color: var(--slate-700); }
  .upload-zone { border: 2px dashed var(--slate-300); border-radius: 12px; padding: 32px 20px; text-align: center; background: var(--slate-50); cursor: pointer; transition: all 0.2s ease; }
  .upload-zone:hover { border-color: var(--blue-400); background: var(--blue-50); }
  .upload-zone.drag-over { border-color: var(--blue-500); background: var(--blue-100); }
  .file-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--slate-50); border-radius: 8px; margin-bottom: 8px; }
  .file-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .file-info { flex: 1; min-width: 0; }
  .file-name { font-weight: 500; color: var(--slate-800); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-size { font-size: 12px; color: var(--slate-400); margin-top: 2px; }
  .file-progress { height: 4px; background: var(--slate-200); border-radius: 2px; margin-top: 6px; overflow: hidden; }
  .file-progress-bar { height: 100%; background: var(--blue-500); border-radius: 2px; transition: width 0.3s ease; }
  .file-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .file-open { color: var(--blue-600); cursor: pointer; padding: 4px 8px; border-radius: 4px; font-size: 13px; text-decoration: none; }
  .file-open:hover { background: var(--blue-100); }
  .file-remove { color: var(--red); cursor: pointer; padding: 4px 8px; border-radius: 4px; font-size: 13px; flex-shrink: 0; }
  .file-remove:hover { background: var(--red-100); }
  .pagination { display: flex; align-items: center; gap: 3px; justify-content: flex-end; flex-wrap: wrap; }
  .page-btn { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--slate-200); background: #fff; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--slate-600); transition: all 0.15s ease; }
  .page-btn:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }
  .page-btn.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
  .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
  .page-ellipsis { padding: 0 4px; color: var(--slate-400); font-size: 12px; }
  .page-size-select { height: 30px; border: 1px solid var(--slate-200); border-radius: 6px; padding: 0 8px; font-size: 12px; color: var(--slate-600); cursor: pointer; outline: none; background: #fff; }
  .page-size-select:focus { border-color: var(--blue-500); }
  .jump-box { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--slate-500); white-space: nowrap; }
  .jump-input { width: 48px; height: 30px; border: 1px solid var(--slate-200); border-radius: 6px; padding: 0 8px; font-size: 12px; text-align: center; outline: none; color: var(--slate-700); }
  .jump-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
  .btn-action-delete { color: var(--red); }
  .btn-action-delete:hover { background: #fee2e2; }
  .btn-sm { padding: 6px 14px; font-size: 13px; }
  .btn-danger { background: var(--red); color: #fff; }
  .btn-danger:hover { background: #dc2626; }
  .btn-success { background: var(--green); color: #fff; }
  .btn-success:hover { background: #16a34a; }

  /* ── 表单网格 ── */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-full { grid-column: span 2; }

  /* ── 专家列表 ── */
  .expert-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); padding: 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
  .expert-info { display: flex; align-items: center; gap: 12px; }
  .expert-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
  .expert-avatar img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
  .expert-name { font-weight: 600; color: var(--slate-800); font-size: 14px; }
  .expert-meta { font-size: 12px; color: var(--slate-400); margin-top: 2px; }
  .expert-stats { display: flex; gap: 16px; text-align: center; }
  .expert-stats .es-num { font-size: 18px; font-weight: 700; color: var(--slate-800); }
  .expert-stats .es-label { font-size: 11px; color: var(--slate-400); }

  /* ── 用户中心 / 侧边栏底部 ── */
  .user-profile { padding: 12px 16px; border-top: 1px solid var(--slate-100); position: relative; }
  .user-profile-trigger { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
  .user-profile-trigger:hover { background: var(--slate-50); }
  .user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
  .user-avatar img { width: 36px; height: 36px; min-width: 36px; min-height: 36px; max-width: 36px; max-height: 36px; object-fit: cover; border-radius: 50%; }
  .user-info-mini { flex: 1; min-width: 0; }
  .user-name-mini { font-size: 13px; font-weight: 600; color: var(--slate-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-role-mini { font-size: 11px; color: var(--slate-400); margin-top: 1px; }
  .user-dropdown { position: absolute; bottom: 100%; left: 12px; right: 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--slate-200); border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: none; z-index: 100; overflow: hidden; }
  .user-dropdown.show { display: block; animation: fadeIn 0.15s ease; }
  .user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--slate-700); cursor: pointer; transition: background 0.15s; }
  .user-dropdown-item:hover { background: var(--slate-50); color: var(--slate-900); }
  .user-dropdown-item.danger { color: var(--red); }
  .user-dropdown-item.danger:hover { background: var(--red-50); color: var(--red); }
  .user-dropdown-divider { height: 1px; background: var(--slate-100); margin: 4px 0; }

  /* ── 头像上传区域 ── */
  .avatar-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
  .avatar-preview { width: 80px; height: 80px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; overflow: hidden; flex-shrink: 0; border: 2px solid var(--slate-200); }
  .avatar-preview img { width: 80px; height: 80px; min-width: 80px; min-height: 80px; max-width: 80px; max-height: 80px; object-fit: cover; border-radius: 50%; }
  .avatar-upload-actions { flex: 1; }
  .avatar-upload-actions p { font-size: 13px; color: var(--slate-500); margin-bottom: 8px; }

  @media (max-width: 768px) {
    .user-profile-trigger { justify-content: center; padding: 8px 4px; }
    .user-info-mini { display: none; }
    .user-dropdown { left: 50%; right: auto; transform: translateX(-50%); width: 160px; }
  }

  /* ── 页面面板 ── */
  .page-panel { display: none; }
  .page-panel.active { display: block; animation: fadeIn 0.2s ease; }

  /* ── 响应式 ── */
  @media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 768px) {
    .expert-sidebar { width: 60px; }
    .expert-sidebar-header h3, .expert-sidebar-nav a span, .expert-sidebar-footer button span { display: none; }
    .expert-sidebar-nav a { justify-content: center; padding: 10px; }
    .expert-sidebar-header { justify-content: center; padding: 0 0 16px; }
    .expert-main { margin-left: 60px; padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .table-wrap { overflow-x: auto; }
    table { min-width: 800px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-full { grid-column: span 1; }
  }

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