/* ============================================================
   排课管理系统 - 样式表
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
  /* ==== 品牌色 · 取自 VIS 标准色板（单一麦金 + 明度轴）==== */
  --gold: #E3BF6A;          /* 麦金（手册声明主色 RGB 227/191/106） */
  --gold-hi: #E4C274;       /* 色板实测饱和金 —— 实底渐变起点 */
  --gold-mid: #D6AB55;      /* 实底渐变终点 */
  --gold-deep: #C39858;     /* 色板实测深金 —— 描边 / hover */
  --gold-soft: #EDDBB3;     /* 浅金 */
  --gold-mist: #F7F1E0;     /* 极浅米黄 —— 浅底 / 选中底 */
  --on-gold: #4A3912;       /* 金色底上的文字（深棕）—— 对比约 8:1 */

  --primary: #8E6C2C;        /* 金褐（深）：链接 / 边框 / 强调文字 —— 白底对比 4.9:1 达标 */
  --primary-hover: #7A5C24;
  --primary-light: #F7F1E0;

  /* 中性色转暖调，与金色协调（原为冷 slate，与麦金同屏会发"脏"） */
  --bg: #FAF7F1;
  --card-bg: #FFFFFF;
  --text-primary: #3F3A32;
  --text-secondary: #8C8574;
  --text-muted: #ADA593;
  --border: #EDE6D8;
  --border-light: #F5F0E6;

  /* 语义色保持不动：报错/警告不能被"金色化"而失去警示感 */
  --success: #10B981;
  --success-bg: #D1FAE5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --info: #3B82F6;
  --info-bg: #DBEAFE;
  --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-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --nav-height: 56px;
}

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

body {
  /* ★ 2026-09-19：按 VIS，中文标准字优先思源黑体（Source Han Sans / Noto Sans SC）。
     原来首位是 -apple-system，会把思源黑体整个盖掉 —— 那是"看着没变"的直接原因之一。 */
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
a { color: var(--primary); text-decoration: none; }

/* ---- 顶部导航 ---- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo { font-size: 24px; }

.nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab { position: relative; white-space: nowrap; }

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 8px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}
.nav-badge:empty { display: none; }

.nav-role {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.role-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: white;
  color: var(--text-primary);
  max-width: 150px;
}

/* 视图切换标签（整体/按校区/按教师/按级别） */
.view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.view-tab {
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.view-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 审批流提示 */
.flow-hint {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--primary-hover);
  margin-bottom: 12px;
}

/* 待办条目 */
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* 分组卡片（按校区/教师/级别视图） */
.group-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--border-light);
  cursor: pointer;
  user-select: none;
}

.group-header:hover { background: var(--primary-light); }

.group-title { font-weight: 600; font-size: 15px; }
.group-meta { font-size: 13px; color: var(--text-muted); }

.group-body { border-top: 1px solid var(--border); }
.group-body .table-scroll table { font-size: 13px; }
.group-body th { padding: 8px 12px; }
.group-body td { padding: 8px 12px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .nav-role { display: none; }
}

.nav-tab {
  padding: 6px 13px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.15s;
}

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

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

.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 20px;
  color: var(--text-secondary);
}

.btn-icon:hover { background: var(--border-light); }

/* ---- 主内容区 ---- */
.main-content {
  margin-top: var(--nav-height);
  padding: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.view { display: none; }
.view.active { display: block; }

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

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

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

.stat-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

/* ---- 通用卡片 ---- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- 筛选栏 ---- */
.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-select, .filter-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 120px;
  transition: border-color 0.15s;
}

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

.filter-search {
  flex: 1;
  min-width: 200px;
}

/* ---- 工具栏 ---- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

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

/* ---- 按钮 ---- */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border-light); }

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

.btn-danger:hover { background: #DC2626; }

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

.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 4px 8px;
}

.btn-text:hover { background: var(--primary-light); }

.teacher-delete-btn:hover {
  color: var(--danger) !important;
  background: var(--danger-bg);
}

/* ---- 数据表格 ---- */
.table-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

/* ★ 2026-11-11：长名单表格在卡片内**限高滚动**，表头钉住不跟着滚。
   用在「教师课量排行」—— 27 位教师全列出来会把右侧卡片撑得老长，
   和左边的「一周课次分布」高低悬殊；以前是靠 slice(0,15) 截断解决的，
   那是**藏人**，不是排版。 */
.table-scroll.tall {
  max-height: 428px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.table-scroll.tall thead th {
  position: sticky;
  top: 0;
  z-index: 2;   /* ⚠ 被 extra.css 末尾的「层叠顺序」一段覆盖成 3；原因见那里，不要两处都改 */
  background: var(--border-light);
}

/* 教师课量排行是 9 列的密表，卡片只有半屏宽（`.two-col`）。
   全局 td 的 12/16 内边距在这里会把「赵东霞」挤成「赵东 / 霞」——
   收紧内边距 + 禁止换行，宁可横向出一点滚动条，也不要一行名字断成两截。 */
.teacher-top th,
.teacher-top td {
  padding: 9px 8px;
  white-space: nowrap;
}
.teacher-top th:first-child,
.teacher-top td:first-child { padding-left: 12px; }
.teacher-top th:last-child,
.teacher-top td:last-child { padding-right: 12px; }
.teacher-top .th-u {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: #FAF7F1; }

.table-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

/* ---- 状态标签 ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.course-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: white;
}

/* ---- 教师卡片 ---- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.teacher-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

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

.teacher-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.teacher-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.teacher-card-name {
  font-size: 16px;
  font-weight: 600;
}

.teacher-card-type {
  font-size: 12px;
  color: var(--text-secondary);
}

.teacher-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teacher-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.teacher-info-label { color: var(--text-muted); }
.teacher-info-value { color: var(--text-primary); font-weight: 500; }

/* ---- 档期视图 ---- */
.schedule-grid {
  display: grid;
  grid-template-columns: 80px repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.schedule-cell {
  background: var(--card-bg);
  padding: 8px;
  min-height: 80px;
}

.schedule-cell.header {
  background: var(--border-light);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-cell.time-label {
  background: var(--border-light);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-block {
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.3;
}

.course-block:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.course-block-campus {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.9;
}

.course-block-name {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ---- 模态框 ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 18px;
  color: var(--text-secondary);
}

.modal-close:hover { background: var(--border-light); }

.modal-body {
  padding: 24px;
}

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

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

.form-row.single { grid-template-columns: 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label .required { color: var(--danger); }

.form-input, .form-select, .form-textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  color: var(--text-primary);
  transition: border-color 0.15s;
}

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

.form-textarea { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* 冲突警告 */
.conflict-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  color: #92400E;
  margin-bottom: 16px;
  display: none;
}

.conflict-warning.active { display: block; }

.conflict-title { font-weight: 600; margin-bottom: 4px; }
.conflict-item { font-size: 12px; padding: 2px 0; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 2000;
  transition: transform 0.3s;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- 分段标题 ---- */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- 空状态 ---- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

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

/* ---- 分页 ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
  padding: 0 8px;
}

.page-btn:hover { background: var(--border-light); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- 档期视图选择器 ---- */
.schedule-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- 数据条形图 ---- */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  width: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.3s;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.bar-value {
  width: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .top-nav { padding: 0 12px; gap: 8px; height: auto; flex-wrap: wrap; padding-bottom: 8px; }
  .nav-title { display: none; }
  .nav-tabs { order: 3; width: 100%; }
  .nav-role { display: none; }

  .main-content { padding: 12px; margin-top: 96px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card-value { font-size: 24px; }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-select, .filter-input { min-width: auto; width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { width: 100%; }
}

/* 桌面端隐藏移动菜单按钮 */
@media (min-width: 769px) {
  #btn-menu { display: none; }
  .mobile-nav { display: none; }
}

/* ---- 移动端底部导航 ---- */
.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding: 4px 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  background: transparent;
  font-size: 11px;
  color: var(--text-muted);
}

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

/* ---- 工具类 ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-md { font-size: 14px; }
.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; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ---- v3 文字工具类 ---- */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; line-height: 1.4; }
.text-lg { font-size: 17px; }
