:root {
  --primary: #266df0;
  --primary-light: #407ff2;
  --primary-dark: #1c5bd6;
  --primary-bg: #e4edff;
  --success: #189a55;
  --warning: #b45309;
  --danger: #d92d20;
  --info: #266df0;
  --bg: #f4f5f6;
  --card: #ffffff;
  --ink: #1c1d1f;
  --ink-soft: #2e3238;
  --ink-mute: #6f7988;
  --ink-faint: #9fa1a7;
  --line: #e4e7ec;
  --line-soft: #eef0f2;
  --sidebar-bg: #ffffff;
  --sidebar-active: #eef0f2;
  --dark: #232529;
  --dark-ink: #101113;
  --shadow-card: rgba(28, 40, 64, 0.08) 0px 2px 3px -2px, rgba(28, 40, 64, 0.04) 0px 4px 8px -2px;
  --shadow-pop: rgba(28, 40, 64, 0.10) 0px 4px 8px 0px, rgba(28, 40, 64, 0.10) 0px 8px 24px -4px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-weight: 500; background: var(--bg); color: var(--ink); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; position: relative; overflow: hidden; background: var(--bg); }
.login-bg { position: absolute; inset: 0; background: radial-gradient(560px 320px at 50% 18%, var(--primary-bg) 0%, rgba(228, 237, 255, 0) 70%), var(--bg); }
.login-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); padding: 40px 40px 32px; border-radius: 14px; box-shadow: var(--shadow-pop); width: 400px; text-align: center; }
.login-logo { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: 0; }
.login-card h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.login-card > p { color: var(--ink-mute); margin-bottom: 28px; font-size: 13px; font-weight: 500; }
.login-form { text-align: left; }
.input-group { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-bottom: 12px; transition: border-color 0.15s, box-shadow 0.15s; }
.input-group:focus-within { border-color: var(--primary); box-shadow: rgb(238, 239, 241) 0px 0px 0px 1px inset, 0 0 0 3px var(--primary-bg); }
.input-group input { flex: 1; border: none; background: transparent; padding: 12px 0; font-size: 14px; font-weight: 500; outline: none; color: var(--ink); font-family: inherit; }
.input-group input::placeholder { color: var(--ink-faint); }
.login-btn { width: 100%; padding: 12px; background: var(--dark); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.15s; margin-top: 8px; }
.login-btn:hover { background: var(--dark-ink); }
.login-alt { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-mute); }
.login-alt a { color: var(--primary); text-decoration: none; font-weight: 500; margin-left: 6px; cursor: pointer; }
.login-alt a:hover { text-decoration: underline; }
.textarea-group { align-items: flex-start; padding: 10px 14px; }
.textarea-group textarea { flex: 1; border: none; background: transparent; padding: 2px 0; font-size: 14px; font-weight: 500; outline: none; font-family: inherit; resize: vertical; min-height: 60px; color: var(--ink); }
.pwd-strength { position: relative; height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin: 2px 0 4px; width: 100%; }
.pwd-strength-fill { height: 100%; width: 0; background: var(--line); transition: width 0.25s ease, background 0.25s ease; }
.pwd-strength-text { font-size: 12px; color: var(--ink-mute); text-align: right; margin-top: 2px; margin-bottom: 8px; min-height: 16px; }
.reg-tip { font-size: 13px; min-height: 18px; margin: 4px 0 8px; padding: 8px 12px; border-radius: 7px; }
.reg-tip-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecdca; }
.reg-tip-ok { background: #ecfdf3; color: var(--success); border: 1px solid #a6f4c5; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: var(--sidebar-bg); color: var(--ink); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; border-right: 1px solid var(--line); }
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line-soft); }
.logo-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--dark); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-header h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.sidebar-header span { font-size: 11px; color: var(--ink-mute); display: block; font-weight: 500; }
.sidebar-nav { flex: 1; padding: 8px 10px 12px; overflow-y: auto; }
.nav-label { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; padding: 16px 10px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink-soft); text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 500; border-radius: 7px; margin-bottom: 1px; border: none; background: transparent; width: 100%; text-align: left; font-family: inherit; }
.nav-item:hover { background: var(--line-soft); color: var(--ink); }
.nav-item.active { background: var(--sidebar-active); color: var(--ink); font-weight: 600; }
.nav-icon { width: 8px; height: 8px; border-radius: 50%; background: #cad0d9; flex-shrink: 0; margin: 0 4px; font-size: 0; line-height: 0; }
.nav-item.active .nav-icon { background: var(--primary); }
.sidebar-footer { padding: 14px 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.user-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logout-btn { background: #fff; border: 1px solid var(--line); color: var(--ink-mute); padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.logout-btn:hover { background: #fef2f2; color: var(--danger); border-color: #fecdca; }
.main-content { margin-left: 248px; padding: 32px 36px; flex: 1; min-width: 0; }
.page { display: none; }
.page.active { display: block; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 16px; }
.page-header h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.page-sub { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.time-display { font-size: 13px; color: var(--ink-mute); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 12px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px; cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.stat-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.stat-card::before { display: none; }
.stat-card.blue::before, .stat-card.green::before, .stat-card.orange::before, .stat-card.purple::before, .stat-card.red::before, .stat-card.teal::before { display: none; }
.stat-icon-bg { width: 12px; height: 12px; border-radius: 50%; background: #cad0d9; flex-shrink: 0; font-size: 0; line-height: 0; }
.stat-card:first-child .stat-icon-bg { background: var(--primary); }
.stat-info { flex: 1; min-width: 0; }
.stat-num { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-card); }
.chart-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 18px; letter-spacing: -0.01em; }
.pie-chart { height: 300px; }
.bar-chart { height: 260px; }
.chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-mute); font-size: 13px; }
.activity-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-card); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-header h3 { font-size: 14px; font-weight: 600; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 8px; height: 8px; border-radius: 50%; background: #cad0d9; flex-shrink: 0; font-size: 0; line-height: 0; }
.activity-text { flex: 1; font-size: 13px; color: var(--ink-soft); min-width: 0; }
.activity-text strong { color: var(--ink); font-weight: 600; }
.activity-time { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cad0d9; }
.st-ok { background: var(--success); }
.st-no { background: var(--danger); }
.st-wait { background: #eaaa08; }
.st-info { background: var(--primary); }
.user-stats { display: flex; gap: 12px; margin-bottom: 20px; }
.user-stat-card { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-card); text-align: center; cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.user-stat-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.user-stat-card.blue, .user-stat-card.green, .user-stat-card.yellow, .user-stat-card.red { border-top: none; }
.user-stat-icon { width: 10px; height: 10px; border-radius: 50%; background: #cad0d9; margin: 0 auto 10px; font-size: 0; line-height: 0; }
.user-stat-num { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.user-stat-label { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-card); }
.card-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; width: 300px; transition: border-color 0.15s, box-shadow 0.15s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.search-box input { border: none; background: transparent; padding: 10px 0; font-size: 13px; font-weight: 500; outline: none; flex: 1; color: var(--ink); font-family: inherit; }
.search-box input::placeholder { color: var(--ink-faint); }
.search-box svg { flex-shrink: 0; display: block; }
.toolbar-info { font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 11px; color: var(--ink-mute); font-weight: 600; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.data-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fafd; }
.data-table td strong { color: var(--ink); font-weight: 600; }
button { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; font-family: inherit; }
.btn-sm { padding: 7px 12px; font-size: 12px; background: #fff; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; white-space: nowrap; }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: #ecfdf3; color: var(--success); border: 1px solid #a6f4c5; }
.btn-success:hover { background: #d1fadf; color: var(--success); border-color: #6ce9a6; }
.btn-danger { background: #fef2f2; color: var(--danger); border: 1px solid #fecdca; }
.btn-danger:hover { background: #fee4e2; color: var(--danger); border-color: #f97066; }
.btn-primary { background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; border: none; white-space: nowrap; }
.btn-primary:hover { background: var(--dark-ink); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-mute); margin-bottom: -1px; }
.tab:hover:not(.active) { color: var(--ink); background: transparent; border-color: transparent; }
.tab.active { background: transparent; border-color: var(--primary); color: var(--ink); font-weight: 600; }
/* 分段控件：用于「创业导师 / 咨询导师」这类"先选大类"的切换。
   刻意不用第二排 tab，否则一屏里两组下划线标签长得一样，分不清是选类型还是选状态。 */
.seg { display: flex; gap: 2px; padding: 3px; background: var(--line-soft); border-radius: 9px; }
.seg-btn { padding: 6px 14px; border: none; background: transparent; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-mute); cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; }
.seg-btn:hover:not(.active) { color: var(--ink); }
.seg-btn.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.badge { padding: 3px 8px; border-radius: 7px; font-size: 12px; font-weight: 500; display: inline-block; white-space: nowrap; border: 1px solid transparent; }
.badge-green { background: #ecfdf3; color: var(--success); border-color: #a6f4c5; }
.badge-red { background: #fef2f2; color: var(--danger); border-color: #fecdca; }
.badge-blue { background: var(--primary-bg); color: var(--primary-dark); border-color: #bad0fa; }
.badge-yellow { background: #fffaeb; color: var(--warning); border-color: #fedf89; }
.badge-gray { background: var(--line-soft); color: var(--ink-soft); border-color: var(--line); }
.badge-purple { background: #f4f3ff; color: #5925dc; border-color: #d9d6fe; }
.badge-orange { background: #fff6ed; color: #c24e00; border-color: #f9dbaf; }
.badge-teal { background: #f0fdf9; color: #0e7490; border-color: #99f6e4; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(16, 17, 19, 0.45); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; width: min(560px, 92vw); max-width: 92vw; max-height: 85vh; display: flex; flex-direction: column; box-shadow: var(--shadow-pop); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; flex-shrink: 0; }
.modal-header h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.modal-close { background: none; border: none; font-size: 16px; color: var(--ink-mute); cursor: pointer; padding: 6px 10px; border-radius: 7px; line-height: 1; }
.modal-close:hover { background: var(--line-soft); color: var(--ink); }
.modal-body { padding: 16px 24px; overflow-y: auto; flex: 1; min-height: 0; font-size: 14px; color: var(--ink-soft); }
.modal-field { margin-bottom: 14px; }
.modal-field:last-child { margin-bottom: 0; }
.modal-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.modal-field input, .modal-field textarea, .modal-field select { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit; color: var(--ink); background: #fff; }
.modal-field input:focus, .modal-field textarea:focus, .modal-field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-bg); }
.modal-field textarea { resize: vertical; min-height: 80px; }
.modal-field select { cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; flex-shrink: 0; }
.btn-cancel { padding: 10px 16px; background: #fff; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.btn-cancel:hover { background: var(--line-soft); color: var(--ink); }
#toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 2000; max-width: min(360px, 90vw); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-pop); cursor: pointer; animation: toast-in 0.25s ease; }
.toast.hide { opacity: 0; transform: translateX(12px); transition: opacity 0.2s ease, transform 0.2s ease; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--success); }
.toast-success .toast-dot { background: var(--success); }
.toast-error .toast-dot { background: var(--danger); }
.toast-warning .toast-dot { background: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
.user-detail { max-height: 60vh; overflow-y: auto; }
.user-detail-header { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.user-avatar-lg { width: 48px; height: 48px; border-radius: 12px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.user-detail-header h3 { font-size: 16px; font-weight: 600; }
.detail-section { margin-bottom: 18px; }
.detail-section h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #fafbfc; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 13px; }
.detail-label { color: var(--ink-mute); flex-shrink: 0; }
.detail-card { padding: 10px 12px; background: #fafbfc; border: 1px solid var(--line-soft); border-radius: 7px; margin-bottom: 8px; font-size: 13px; color: var(--ink-soft); }
.loading-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--primary); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.settings-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.settings-row label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.settings-row input, .settings-row textarea { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; font-family: inherit; background: #fff; color: var(--ink); }
.settings-row input:focus, .settings-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
@media (max-width: 1400px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar-header h2, .sidebar-header span, .nav-label { display: none; }
  .nav-item { justify-content: center; padding: 10px 4px; font-size: 0; gap: 0; }
  .nav-icon { margin: 0; }
  .sidebar-header { justify-content: center; padding: 16px 8px; }
  .logo-icon { width: 28px; height: 28px; font-size: 14px; }
  .main-content { margin-left: 64px; padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .user-info div { display: none; }
  .sidebar-footer { flex-direction: column; gap: 10px; }
}


/* ========== 看板：接口失败提示条 + 统计卡片失败态（20260910） ========== */
.dash-error {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; padding: 12px 16px;
  border: 1px solid #f2d9ae; background: #fdf7ea; color: #8a5a00;
  border-radius: 10px; font-size: 13px;
}
.stat-num.stat-error { color: var(--ink-mute); }

/* ========== 用户页分页控件（20260910） ========== */
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 14px 20px 16px; }
.pager-btn {
  min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 8px; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-gap { color: var(--ink-mute); padding: 0 2px; }
.pager-info { margin-left: auto; color: var(--ink-mute); font-size: 12px; }

/* ========== 校友卡审核：勾选列 / 批量操作条 / 提示条（20260910） ========== */
/* 全库此前没有任何 checkbox 规则，裸 checkbox 会用浏览器默认外观且与表格不对齐 */
.col-check { width: 36px; text-align: center; }
.col-check input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); vertical-align: middle; margin: 0; }
.batch-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 中性提示条（名单状态 / 比对汇总）：与 .dash-error 同结构、不同语气 */
.dash-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; padding: 12px 16px;
  border: 1px solid var(--line); background: #fafbfc; color: var(--ink-soft);
  border-radius: 10px; font-size: 13px; line-height: 1.6;
}

/* ========== 图片裁剪弹层 ==========
   层级 1500：要盖住 modal(1000)，但低于 toast(2000)。
   小程序里图片是 aspectFill 居中裁切，直接传原图容易把文字/人脸裁掉，
   所以上传前先在这里按目标比例裁好。 */
.crop-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(16, 17, 19, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.crop-panel {
  background: var(--card); border-radius: 14px;
  padding: 18px 20px 16px; max-width: 96vw; box-shadow: var(--shadow-pop, 0 12px 32px rgba(0,0,0,.18));
}
.crop-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.crop-head strong { font-size: 16px; color: var(--ink); }
.crop-head span { font-size: 12px; color: var(--ink-mute); }
/* touch-action:none 让指针事件不被浏览器滚动/缩放抢走（否则手机上拖不动） */
/* 取景框固定不动（代表最终展示范围），图片在其内部被拖动/缩放去适配 */
.crop-stage {
  position: relative; overflow: hidden; border-radius: 10px; margin: 0 auto;
  background: var(--dark-ink); user-select: none; touch-action: none; cursor: grab;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img {
  position: absolute; left: 0; top: 0; max-width: none;
  pointer-events: none; -webkit-user-drag: none;
}
/* 三分线辅助构图（叠加在取景框上，不参与交互） */
.crop-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.32) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
/* 缩放控件对齐聊天软件做法：− / 进度条 / + / 重置（步进 0.25，范围 1~3x） */
.crop-zoom { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ink-mute); }
.crop-zoom-btn {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.crop-zoom-btn:hover { background: var(--sidebar-active); }
.crop-zoom-btn:active { transform: scale(0.94); }
.crop-zoom-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.crop-zoom-fill { height: 100%; width: 0%; background: var(--primary); transition: width 0.12s; border-radius: 2px; }
.crop-zoom-val { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.crop-zoom-reset {
  margin-left: 4px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-mute); font-size: 12px;
}
.crop-zoom-reset:hover { background: var(--sidebar-active); color: var(--ink); }
/* 拖动中：光标变抓手（配合 setPointerCapture，拖出框不断） */
.crop-stage.dragging { cursor: grabbing; }
.crop-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* 表格首列（多为技术 ID）限宽截断：完整 ID 悬停可见，不再挤占姓名/部门等有效信息列 */
#mainApp table td:first-child {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 裁剪取景框四角 L 形角标：强化「框 = 最终展示范围」的边界感（只有三分线时看不出边界） */
.crop-corner {
  position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 3;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
.crop-corner.tl { left: 8px; top: 8px; border-left: 3px solid #fff; border-top: 3px solid #fff; }
.crop-corner.tr { right: 8px; top: 8px; border-right: 3px solid #fff; border-top: 3px solid #fff; }
.crop-corner.bl { left: 8px; bottom: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; }
.crop-corner.br { right: 8px; bottom: 8px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; }

/* 最终效果实时预览：与导出矩形同源绘制，所见即所得 */
.crop-preview { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.crop-preview-label { font-size: 12px; color: var(--ink-mute); flex-shrink: 0; }
.crop-preview-canvas {
  width: 200px; border-radius: 6px; background: var(--dark-ink);
  box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(0,0,0,.18);
}
