/* ============================================================
   信息技术学科管理工作台 - 设计系统
   风格：朴实的工作台 / 教务系统风
   扁平 · 蓝灰配色 · 小圆角 · 少阴影 · 信息密度优先
   ============================================================ */

/* Vue 挂载前隐藏根容器，杜绝原始 mustache 闪现 */
[v-cloak] { display: none !important; }

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-grad: #2563eb; /* 兼容旧类名：不再使用渐变 */

  --text: #1f2937;
  --text-2: #4b5563;
  --muted: #9ca3af;

  --green: #15803d;
  --green-soft: #f0fdf4;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --purple: #6d28d9;
  --purple-soft: #f5f3ff;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 10px;

  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 8px 24px -8px rgba(17, 24, 39, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font); }
a.btn:hover { text-decoration: none; }

/* ---------- 通用容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 16px 20px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
  user-select: none;
  background: #fff;
  color: var(--text-2);
}
.btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; border-color: var(--primary-hover); }

/* 兼容旧类名：一律渲染为实心主色按钮 */
.btn-grad {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: none;
}
.btn-grad:hover:not(:disabled) { background: var(--primary-hover); color: #fff; border-color: var(--primary-hover); filter: none; box-shadow: none; }

.btn-danger { color: var(--red); border-color: #fca5a5; background: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--red); color: #fff; border-color: var(--red); }

.btn-success { color: var(--green); border-color: #86efac; background: #fff; }
.btn-success:hover:not(:disabled) { background: var(--green); color: #fff; border-color: var(--green); }

.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--primary); background: var(--primary-soft); border-color: transparent; }

.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 5px; }
.btn-lg { padding: 10px 22px; font-size: 14.5px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}
.form-label .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.textarea { resize: vertical; min-height: 80px; font-family: var(--mono); font-size: 13px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; cursor: pointer; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-indigo { background: var(--primary-soft); color: var(--primary); }
.badge-gray { background: #f3f4f6; color: var(--text-2); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table, table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .data-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td, .data-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: none; }
.table tbody tr, .data-table tbody tr { transition: background 0.1s; }
.table tbody tr:hover, .data-table tbody tr:hover { background: #f9fafb; }
.table .num, .data-table .num { font-variant-numeric: tabular-nums; }
.table .strong, .data-table .strong { font-weight: 600; color: var(--text); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.12s ease;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: popIn 0.14s ease;
}
.modal-lg { max-width: 820px; }
.modal-sm { max-width: 420px; }
.modal-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-size: 15px; font-weight: 600; }
.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-x {
  width: 28px; height: 28px;
  border: none;
  background: #f3f4f6;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: var(--red-soft); color: var(--red); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  min-width: 220px;
  max-width: 360px;
  animation: slideIn 0.18s ease;
}
.toast-success .toast-icon { background: var(--green); }
.toast-error .toast-icon { background: var(--red); }
.toast-info .toast-icon { background: var(--blue); }
.toast-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.6; }
.empty-title { font-size: 14px; color: var(--text-2); margin-bottom: 2px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.page-btn {
  min-width: 30px; height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  padding: 0 8px;
  transition: all 0.1s;
}
.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.4; cursor: not-allowed; }
.page-info { font-size: 12.5px; color: var(--muted); margin-right: 8px; }

/* ---------- 选项卡 ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  width: 100%;
}
.tab {
  padding: 9px 18px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--primary);
}
.tab-badge {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .spacer { flex: 1; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  position: relative;
}
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); }
.stat-card .stat-value { font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-card .stat-icon {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.stat-icon.ic-indigo { background: var(--primary-soft); color: var(--primary); }
.stat-icon.ic-green { background: var(--green-soft); color: var(--green); }
.stat-icon.ic-amber { background: var(--amber-soft); color: var(--amber); }
.stat-icon.ic-blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.ic-purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- 选中行 ---------- */
tr.row-selected { background: var(--primary-soft) !important; }
.checkbox-cell { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

/* ---------- 上传区 ---------- */
.drop-zone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.12s;
  background: #fafafa;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--primary); background: var(--primary-soft); }
.drop-zone .dz-icon { font-size: 26px; }
.drop-zone .dz-title { font-weight: 600; margin-top: 6px; }
.drop-zone .dz-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; height: 52px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.logo-badge {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}

/* ---------- 管理后台布局 ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  flex-shrink: 0;
}
.sidebar .nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 1px;
  transition: background 0.1s, color 0.1s;
  border: none; background: transparent; width: 100%; text-align: left;
}
.sidebar .nav-item:hover { background: #f3f4f6; color: var(--text); }
.sidebar .nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item .nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-main { flex: 1; padding: 22px 28px; min-width: 0; }
.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.page-head h1 { font-size: 19px; font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 13px; }

/* ---------- 学生端顶部欢迎条（扁平版） ---------- */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.hero h1 { font-size: 19px; font-weight: 700; }
.hero p { color: var(--text-2); margin-top: 2px; font-size: 13.5px; }

.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.score-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.score-tile .st-label { font-size: 12.5px; color: var(--muted); }
.score-tile .st-value { font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.score-tile .st-value.green { color: var(--green); }
.score-tile .st-value.indigo { color: var(--primary); }
.score-tile .st-value.amber { color: var(--amber); }

/* 练习卡片 */
.exercise-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.12s;
}
.exercise-card:hover { border-color: var(--primary); }
.exercise-card .ec-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.exercise-card .ec-title { font-weight: 600; font-size: 14.5px; }
.exercise-card .ec-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* 答题 */
.quiz-question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.12s;
}
.quiz-question.correct-q { border-color: #86efac; }
.quiz-question.wrong-q { border-color: #fca5a5; }
.q-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.q-type {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.q-type.choice { background: var(--blue-soft); color: var(--blue); }
.q-type.judge { background: var(--amber-soft); color: var(--amber); }
.q-type.fill { background: var(--purple-soft); color: var(--purple); }
.q-type.code { background: var(--green-soft); color: var(--green); }
.q-content { font-size: 14px; font-weight: 600; line-height: 1.7; flex: 1; }
.q-meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
  font-size: 13.5px;
}
.option-row:hover { border-color: var(--primary); }
.option-row.selected { border-color: var(--primary); background: var(--primary-soft); }
.option-row .opt-key {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: #f3f4f6;
  color: var(--text-2);
  font-weight: 600;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.option-row.selected .opt-key { background: var(--primary); color: #fff; }
.option-row.reveal-correct { border-color: var(--green); background: var(--green-soft); }
.option-row.reveal-wrong { border-color: var(--red); background: var(--red-soft); }
.option-row .opt-mark { margin-left: auto; font-size: 14px; }

.feedback-bar {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-bar.correct { background: var(--green-soft); color: var(--green); }
.feedback-bar.wrong { background: var(--red-soft); color: var(--red); }
.feedback-bar.pending { background: var(--amber-soft); color: var(--amber); }

.result-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
}
.result-banner .rb-score { font-size: 32px; font-weight: 700; }
.result-banner .rb-sub { opacity: 0.85; font-size: 13px; margin-top: 2px; }

/* 排名 */
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: #f9fafb; }
.rank-row.me { background: var(--primary-soft); }
.rank-num {
  width: 28px; height: 28px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 13px;
  background: #f3f4f6;
  color: var(--text-2);
  flex-shrink: 0;
}
.rank-num.r1 { background: #f59e0b; color: #fff; }
.rank-num.r2 { background: #cbd5e1; color: #475569; }
.rank-num.r3 { background: #fdba74; color: #fff; }
.rank-bar {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}
.rank-bar > div {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.rank-score { font-weight: 600; font-size: 14px; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }

/* 登录页（扁平版：无光斑、无毛玻璃） */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 30px 20px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  width: 100%;
  max-width: 400px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.login-brand h2 { font-size: 18px; font-weight: 700; }
.login-brand .logo-badge { width: 42px; height: 42px; font-size: 22px; border-radius: 9px; }

/* 进度条 */
.progress { height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }

/* 浮动按钮辅助 */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12.5px; }
.text-danger { color: var(--red); }
.text-green { color: var(--green); }
.font-bold { font-weight: 600; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* 小标签/说明 */
.tip {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 12.5px;
  margin: 12px 0;
}
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* 滚条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
::-webkit-scrollbar-track { background: transparent; }

/* 响应式 */
@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 10px; gap: 4px; }
  .sidebar .nav-item { width: auto; }
  .admin-main { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============ 登录页底部入口切换（两个浅色按钮） ============ */
.entry-switch {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.entry-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f1f5f9;            /* 浅色背景 */
  border: 1px solid #e2e8f0;
  color: var(--text, #1f2937);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.entry-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  text-decoration: none;
  color: var(--primary, #2563eb);
  transform: translateY(-1px);
}
.entry-btn .eb-icon {
  font-size: 15px;
}
.entry-btn .eb-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  margin-left: 2px;
}
.entry-btn:hover .eb-arrow { color: var(--primary, #2563eb); }

/* ============ 快速导航 ============ */
.quick-nav {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}
.qn-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.qn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.qn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: var(--text);
  flex: 1 1 220px;
  min-width: 220px;
  transition: background .15s, border-color .15s, transform .1s;
}
.qn-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  text-decoration: none;
}
.qn-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.qn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.qn-text b { font-size: 13px; font-weight: 600; }
.qn-text i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.qn-arrow {
  margin-left: auto;
  color: #b0b7c3;
  font-size: 14px;
  font-weight: 600;
}
.qn-item:hover .qn-arrow { color: var(--primary); }

/* Element Plus 日期组件与站内风格对齐 */
.el-date-editor .el-input__wrapper,
.el-range-editor.el-input__wrapper {
  border-radius: 8px;
}
.el-picker__popper { font-family: inherit; }
