/* ============================================
   志愿规划师高效工作台 - 侧边栏样式
   主色调: #165DFF  强调色: #FF7D00  侧栏背景: #1D2129
   ============================================ */

.auth-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #f5f7fa; }
.auth-overlay.hidden { display: none; }
.auth-card { width: min(380px, calc(100% - 32px)); padding: 28px; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px #1d212933; display: grid; gap: 12px; }
.auth-card h1 { font-size: 22px; }
.auth-card p, .auth-error { color: #86909c; font-size: 13px; }
.auth-card input { padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font: inherit; }
.auth-error { color: #f53f3f; min-height: 18px; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #165DFF;
  --primary-hover: #0E4BDB;
  --accent: #FF7D00;
  --sidebar-bg: #1D2129;
  --sidebar-hover: #2A2F3A;
  --sidebar-active: #165DFF;
  --text-white: #FFFFFF;
  --text-gray: #86909C;
  --text-light: #C9CDD4;
  --main-bg: #F7F8FA;
  --card-bg: #FFFFFF;
  --border: #E5E6EB;
  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.2s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--main-bg);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: 48px;
}

.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-group-title,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .current-student-bar .cs-info,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-external {
  display: none;
}

.sidebar.collapsed .logo {
  justify-content: center;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.collapse-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}

.collapse-btn:hover {
  color: var(--text-white);
  background: var(--sidebar-hover);
}

.sidebar.collapsed .collapse-btn svg {
  transform: rotate(180deg);
}

/* 导航 */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nav-group-title {
  padding: 10px 16px 6px;
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  margin: 2px 0;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--text-white);
}

.nav-item.active {
  background: rgba(22, 93, 255, 0.15);
  color: var(--text-white);
  border-left-color: var(--primary);
}

.nav-item svg { flex-shrink: 0; }

.nav-label { font-size: 14px; flex: 1; }

.nav-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 500;
}

/* 外部链接标识（在新标签页打开） */
.nav-external {
  opacity: 0.45;
  margin-left: 2px;
}

.nav-item:hover .nav-external {
  opacity: 0.9;
}


/* 当前学生栏（顶栏正中） */
.current-student-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(22, 93, 255, 0.08);
  border: 1px solid rgba(22, 93, 255, 0.25);
  border-radius: 16px;
  white-space: nowrap;
  max-width: 40vw;
}

.cs-label {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

.cs-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-clear {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  line-height: 0;
  flex-shrink: 0;
}

.cs-clear:hover {
  color: var(--primary);
  background: rgba(22, 93, 255, 0.12);
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* 顶部工具栏 */
.top-bar {
  height: 56px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 16px;
  position: relative;
}

.top-bar-left { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px; }

.search-wrapper {
  position: relative;
  flex: 0 1 380px;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--main-bg);
  font-size: 13px;
  outline: none;
  transition: all var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

/* 左下角账号信息 */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  flex-shrink: 0;
}

.sf-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 8px;
  overflow: hidden;
}

.sf-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

.sf-info {
  min-width: 0;
}

.sf-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-role {
  font-size: 11px;
  color: var(--text-gray);
  white-space: nowrap;
}

.sf-actions {
  display: flex;
  gap: 6px;
}

.sf-btn {
  flex: 1;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-gray);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.sf-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.12);
}

.sidebar.collapsed .sidebar-footer {
  padding: 8px 4px;
}

.sidebar.collapsed .sf-user {
  justify-content: center;
  padding: 4px 0;
}

.sidebar.collapsed .sf-info,
.sidebar.collapsed .sf-actions {
  display: none;
}

.top-bar-right {
  display: flex;
  gap: 8px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.toolbar-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(22, 93, 255, 0.04);
}

.toolbar-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 页面容器 */
.page-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.page-container::-webkit-scrollbar { width: 8px; }
.page-container::-webkit-scrollbar-thumb { background: #C9CDD4; border-radius: 4px; }
.page-container::-webkit-scrollbar-track { background: transparent; }

/* 高校地图 */
.univ-wrap { display: flex; flex-direction: column; height: calc(100vh - 96px); }
.univ-header { margin-bottom: 12px; }
.univ-frame-box {
  flex: 1;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}
.univ-frame-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.univ-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================
   通用组件：卡片、按钮、表单
   ============================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
  background: var(--main-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover { background: #E67000; }

.btn-danger {
  background: #F53F3F;
  color: white;
}

.btn-danger:hover { background: #DD3535; }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: all var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-textarea { resize: vertical; min-height: 80px; }

/* ============================================
   工作台首页
   ============================================ */
.dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  height: calc(100vh - 96px);
  overflow: hidden;
}

.stat-cards {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg { width: 18px; height: 18px; }

.quick-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.quick-add-btn:hover { background: #0E42D2; }

.stat-icon.blue { background: rgba(22, 93, 255, 0.1); color: var(--primary); }
.stat-icon.orange { background: rgba(255, 125, 0, 0.1); color: var(--accent); }
.stat-icon.green { background: rgba(0, 180, 42, 0.1); color: #00B42A; }
.stat-icon.purple { background: rgba(125, 60, 219, 0.1); color: #7D3CDB; }

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.dashboard .card.todos,
.dashboard .card.recent-students { grid-column: span 6; }
.dashboard .card.policy,
.dashboard .card.recruit,
.dashboard .card.gk-calendar { grid-column: span 4; }

.dashboard .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px;
}

.dashboard .card-title { font-size: 14px; }

.card-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-right: -4px;
  padding-right: 4px;
}

.card-scroll::-webkit-scrollbar { width: 6px; }
.card-scroll::-webkit-scrollbar-thumb { background: #E5E6EB; border-radius: 3px; }

.dashboard .empty-state { padding: 14px 0; }
.dashboard .empty-state-icon { font-size: 26px; }
.dashboard .student-list-item { padding: 8px 10px; margin-bottom: 6px; }

.dashboard .card-title-row { margin-bottom: 8px; }

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.todo-item:last-child { border-bottom: none; }

.todo-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.todo-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.todo-content { flex: 1; }

.todo-title {
  font-size: 14px;
  color: var(--text-primary);
}

.todo-due {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.todo-due.urgent { color: #F53F3F; }

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title-row .card-title { margin-bottom: 0; }

.card-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.card-link:hover { text-decoration: underline; }

.todo-overdue-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 400;
  color: #F53F3F;
  background: #FFECE8;
  border-radius: 10px;
}

.todo-form {
  background: #F7F8FA;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
}

.todo-form-grid .form-input,
.todo-form-grid .form-select {
  padding: 5px 8px;
  font-size: 12px;
}

.todo-form .form-select,
.todo-form > .form-input {
  padding: 5px 8px;
  font-size: 12px;
}

.todo-assignee {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
  color: var(--primary);
  background: #E8F3FF;
  border-radius: 3px;
}

.todo-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.todo-item.overdue { background: #FFF7F6; }

.todo-del {
  border: none;
  background: transparent;
  color: #C9CDD4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.todo-del:hover { color: #F53F3F; }

.todo-more {
  font-size: 12px;
  color: #86909C;
  text-align: center;
  padding-top: 8px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--main-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.quick-action-item:hover {
  background: rgba(22, 93, 255, 0.04);
  border-color: var(--primary);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-text { font-size: 13px; color: var(--text-secondary); }

/* 学生列表 */
.student-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.student-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.student-list-item.is-current {
  border: 2px solid var(--primary);
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4080FF);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.student-avatar.female {
  background: linear-gradient(135deg, var(--accent), #FF9A2E);
}

.student-info { flex: 1; min-width: 0; }

.student-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.student-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.student-top-icon {
  color: var(--accent);
}

.student-score {
  font-size: 13px;
  color: var(--text-tertiary);
}

.student-score b {
  color: var(--primary);
  font-size: 16px;
}

.student-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.tag.blue { background: rgba(22, 93, 255, 0.1); color: var(--primary); }
.tag.orange { background: rgba(255, 125, 0, 0.1); color: var(--accent); }
.tag.green { background: rgba(0, 180, 42, 0.1); color: #00B42A; }
.tag.red { background: rgba(245, 63, 63, 0.1); color: #F53F3F; }
.tag.purple { background: rgba(125, 60, 219, 0.1); color: #7D3CDB; }
.tag.gray { background: var(--main-bg); color: var(--text-tertiary); }

/* ============================================
   客户管理页面
   ============================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 140px;
}

/* 学生详情页 */
.student-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.detail-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
}

.detail-main .card { margin-bottom: 20px; }

.detail-header {
  background: linear-gradient(135deg, var(--primary), #4080FF);
  color: white;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 学生详情蓝色卡片：短字段胶囊化 + 紧凑双列信息网格，避免短信息占大格 */
.dh-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.dh-meta span { font-size: 11px; line-height: 1.4; padding: 2px 8px; border-radius: 11px; background: rgba(255,255,255,0.18); }
.dh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.dh-cell { min-width: 0; background: rgba(255,255,255,0.14); border-radius: 6px; padding: 5px 8px; }
.dh-cell.wide { grid-column: 1 / -1; }
.dh-cell .k { font-size: 10px; opacity: 0.75; line-height: 1.4; }
.dh-cell .v { font-size: 12px; font-weight: 600; line-height: 1.4; margin-top: 1px; word-break: break-all; }

.detail-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-score {
  font-size: 32px;
  font-weight: 700;
}

.detail-score span { font-size: 14px; font-weight: 400; opacity: 0.8; }

.dh-rank { font-size: 16px; font-weight: 600; opacity: 0.92; }
.dh-rank span { font-size: 11px; font-weight: 400; opacity: 0.8; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  padding: 10px;
  background: var(--main-bg);
  border-radius: var(--radius-sm);
}

.info-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.info-value {
  font-size: 13px;
  color: var(--text-primary);
}

/* 沟通时间线（紧凑版：压缩间距，同屏展示更多模块） */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 12px;
}

/* 沟通时间线：服务节点 / 沟通与资料记录 两列并排 */
.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.tl-col { min-width: 0; }
.tl-col + .tl-col { border-left: 1px dashed #E5E6EB; padding-left: 12px; }
.tl-col-head { font-size: 12px; font-weight: 600; color: #4E5969; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid #F2F3F5; }
.tl-col .timeline-item { padding-bottom: 8px; }
.tl-col .timeline-content { padding: 6px 9px; }
@media (max-width: 900px) {
  .tl-cols { grid-template-columns: 1fr; }
  .tl-col + .tl-col { border-left: 0; padding-left: 0; border-top: 1px dashed #E5E6EB; padding-top: 12px; margin-top: 4px; }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--primary);
}

.timeline-item.type-record::before { border-color: var(--accent); }
.timeline-item.type-file::before { border-color: #00B42A; }
.timeline-item.type-plan::before { border-color: #7D3CDB; }

.timeline-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  line-height: 1.4;
}

.timeline-content {
  background: var(--main-bg);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.timeline-content .tags {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

/* ============================================
   iframe 系统页面
   ============================================ */
.system-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.system-tabs {
  display: flex;
  background: var(--main-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
}

.system-tab {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.system-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--card-bg);
}

.system-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

iframe.system-frame {
  flex: 1;
  width: 100%;
  border: none;
}

.split-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

/* ============================================
   录音中心
   ============================================ */
.records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.record-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.record-info { flex: 1; min-width: 0; }

.record-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.record-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.record-waveform {
  flex: 0 0 120px;
  height: 36px;
  background: repeating-linear-gradient(
    90deg,
    var(--border),
    var(--border) 2px,
    transparent 2px,
    transparent 4px
  );
  border-radius: 4px;
}

.record-actions { display: flex; gap: 8px; }

/* 悬浮录音控制器 */
.recorder-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  cursor: move;
  user-select: none;
}

.rf-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--sidebar-bg);
  color: white;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.rf-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F53F3F;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.rf-paused .rf-dot {
  animation: none;
  background: var(--accent);
}

.rf-controls { display: flex; gap: 6px; }

.rf-student {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 160px;
  padding: 4px 10px;
  font-size: 12px;
  color: #C9CDD4;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.rf-student:hover { background: rgba(255,255,255,0.22); }

.rf-student-label { color: #86909C; }

#rfStudentName {
  font-weight: 500;
  color: white;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-switch { flex-shrink: 0; opacity: 0.7; }

.rf-student-picker {
  position: fixed;
  z-index: 10001;
  min-width: 200px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.rf-picker-title {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}

.rf-picker-list { max-height: 260px; overflow-y: auto; }

.rf-picker-item {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.rf-picker-item:hover { background: #F2F6FF; }

.rf-picker-item.active { background: #E8F3FF; color: var(--primary); font-weight: 500; }

.rf-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.rf-btn:hover { background: rgba(255,255,255,0.25); }

.rf-stop { background: #F53F3F; }
.rf-stop:hover { background: #DD3535; }

/* ============================================
   文件库
   ============================================ */
.file-tree {
  display: flex;
  gap: 20px;
}

.file-tree-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.file-folder {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.file-folder:hover { background: var(--main-bg); }

.file-folder.active {
  background: rgba(22, 93, 255, 0.1);
  color: var(--primary);
}

.file-list {
  flex: 1;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.file-item:hover { background: var(--main-bg); }

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.file-icon.pdf { background: rgba(245, 63, 63, 0.1); color: #F53F3F; }
.file-icon.excel { background: rgba(0, 180, 42, 0.1); color: #00B42A; }
.file-icon.word { background: rgba(22, 93, 255, 0.1); color: var(--primary); }
.file-icon.image { background: rgba(125, 60, 219, 0.1); color: #7D3CDB; }
.file-icon.audio { background: rgba(255, 125, 0, 0.1); color: var(--accent); }

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(22, 93, 255, 0.04);
  color: var(--primary);
}

/* ============================================
   弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}

.modal-lg { width: 640px; }

/* 学生档案表单较宽，容纳三列字段 */
.modal-student { width: 780px; }

@media (max-width: 820px) {
  .modal-student { width: 94vw; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 标签选择器 */
.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-option {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--card-bg);
  color: var(--text-secondary);
}

.tag-option:hover { border-color: var(--primary); }

.tag-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 添加沟通记录弹窗 */
.quick-note-modal {
  width: 560px;
}

.quick-note-modal .modal-header {
  align-items: flex-start;
  padding: 20px 24px 16px;
  border-bottom: none;
  background: linear-gradient(135deg, #EEF4FF 0%, #FFFFFF 72%);
}

.quick-note-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.quick-note-sub {
  margin-top: 6px;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.quick-note-modal .modal-close {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  transition: background var(--transition), color var(--transition);
}

.quick-note-modal .modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.quick-note-modal .modal-body {
  padding: 8px 24px 20px;
}

.quick-note-modal .form-group {
  margin-bottom: 18px;
}

.quick-note-modal .form-group > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quick-note-modal select,
.quick-note-modal textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.quick-note-modal select {
  cursor: pointer;
  line-height: 1.5;
}

.quick-note-modal textarea {
  min-height: 130px;
  resize: vertical;
}

.quick-note-modal textarea::placeholder {
  color: #A9AEB8;
}

.quick-note-modal select:focus,
.quick-note-modal textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.quick-note-modal .tag-selector {
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  align-content: flex-start;
  background: #FAFBFC;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.quick-note-modal .tag-option {
  padding: 5px 14px;
  font-size: 12px;
}

.quick-note-modal .modal-footer {
  padding: 16px 24px;
  background: #FAFBFC;
}

.quick-note-modal .modal-footer .btn {
  min-width: 88px;
  justify-content: center;
}

@media (max-width: 620px) {
  .quick-note-modal { width: 92vw; }
}

/* 搜索下拉 */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition);
}

.search-result-item:hover { background: var(--main-bg); }

.search-result-item .sr-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.search-result-item .sr-info { flex: 1; min-width: 0; }
.search-result-item .sr-title { font-size: 13px; color: var(--text-primary); }
.search-result-item .sr-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

/* Toast 提示 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sidebar-bg);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 30000;
  animation: toastIn 0.3s ease;
}

.toast.success { background: #00B42A; }
.toast.error { background: #F53F3F; }
.toast.warning { background: var(--accent); }

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* 设置页 */
.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--main-bg);
}

.settings-row:last-child { border-bottom: none; }

.settings-row label { font-size: 13px; color: var(--text-secondary); }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--main-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-text { font-size: 14px; margin-bottom: 16px; }

/* 学生类型分类 */
.student-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.type-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.type-tab:hover { border-color: var(--primary); color: var(--primary); }

.type-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.type-tab span {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
}

.type-tab.active span { background: rgba(255, 255, 255, 0.25); }

.type-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  white-space: nowrap;
}

.type-badge.consult { background: #E8F3FF; color: #165DFF; }
.type-badge.enrolled { background: #E8FFEA; color: #00B42A; }

/* 服务阶段标签与看板 */
.stage-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  white-space: nowrap;
}

.stage-badge.stage-consult { background: #F2F3F5; color: #4E5969; }
.stage-badge.stage-signed { background: #E8F3FF; color: #165DFF; }
.stage-badge.stage-planning { background: #FFF7E8; color: #FF7D00; }
.stage-badge.stage-delivered { background: #F5E8FF; color: #722ED1; }
.stage-badge.stage-filling { background: #E8FFEA; color: #00B42A; }
.stage-badge.stage-admitted { background: #E8FFFB; color: #0FC6C2; }
.stage-badge.stage-closed { background: #F2F3F5; color: #86909C; }

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stage-dot.stage-consult { background: #86909C; }
.stage-dot.stage-signed { background: #165DFF; }
.stage-dot.stage-planning { background: #FF7D00; }
.stage-dot.stage-delivered { background: #722ED1; }
.stage-dot.stage-filling { background: #00B42A; }
.stage-dot.stage-admitted { background: #0FC6C2; }
.stage-dot.stage-closed { background: #C9CDD4; }

.view-toggle {
  display: flex;
  background: #F2F3F5;
  border-radius: 6px;
  padding: 2px;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  color: #4E5969;
  border-radius: 4px;
  cursor: pointer;
}

.view-toggle-btn.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 236px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  align-items: start;
}

.kanban-col {
  background: #F7F8FA;
  border-radius: 8px;
  padding: 10px;
  min-height: 200px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.kanban-col-title {
  font-size: 13px;
  font-weight: 600;
  color: #1D2129;
  flex: 1;
}

.kanban-col-count {
  font-size: 11px;
  color: #86909C;
  background: #fff;
  padding: 1px 7px;
  border-radius: 10px;
}

.kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.kanban-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.12);
}

.kanban-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1D2129;
  margin-bottom: 4px;
}

.kanban-card-meta {
  font-size: 12px;
  color: #86909C;
  line-height: 1.6;
}

.kanban-advance {
  width: 100%;
  margin-top: 8px;
  padding: 3px 0;
  font-size: 11px;
  color: var(--primary);
  background: #E8F3FF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.kanban-advance:hover { background: #D4E6FF; }

.kanban-empty {
  text-align: center;
  font-size: 12px;
  color: #C9CDD4;
  padding: 14px 0;
}

/* 表单分组标题 */
.form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.form-section-title:first-of-type { margin-top: 0; }

/* 多选组 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 6px 0;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-group input { cursor: pointer; }

/* 提前批二级选项 */
.early-batch-group {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.early-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.early-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-left: 20px;
  padding: 2px 0 4px 10px;
  border-left: 2px solid var(--border);
}

.early-sub label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 文件移动选项 */
.move-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.move-option {
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.move-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 公共素材库分类子项 */
.file-sub-list {
  display: flex;
  flex-direction: column;
}

.file-subfolder {
  padding-left: 32px !important;
  font-size: 13px;
}

.folder-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  margin-right: 6px;
  flex-shrink: 0;
}

.add-category {
  padding-left: 32px !important;
  color: var(--primary) !important;
  font-size: 13px;
}

.add-category:hover {
  background: #E8F3FF !important;
}

/* 政策资讯 */
.policy-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.policy-tab {
  padding: 7px 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.policy-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.policy-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F2F3F5;
  text-decoration: none;
}

.policy-item:last-child {
  border-bottom: none;
}

.policy-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.policy-item:hover .policy-title {
  color: var(--primary);
}

.policy-date {
  font-size: 12px;
  color: #86909C;
  flex-shrink: 0;
}

.policy-type-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--primary);
  background: rgba(22, 93, 255, 0.08);
  border-radius: 3px;
  vertical-align: 1px;
  flex-shrink: 0;
}

/* ============================================
   招聘资讯
   ============================================ */

.recruit-sub {
  color: #86909C;
  font-size: 13px;
  margin-top: 4px;
}

.recruit-new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #F53F3F;
  background: rgba(245, 63, 63, 0.08);
  border-radius: 10px;
  vertical-align: 2px;
}

.recruit-new-badge.zero {
  color: #86909C;
  background: #F2F3F5;
}

.recruit-tab-count {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.75;
}

.recruit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.recruit-chip {
  padding: 4px 12px;
  font-size: 12px;
  color: #4E5969;
  background: #F7F8FA;
  border: 1px solid #E5E6EB;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.recruit-chip:hover {
  color: var(--primary);
  border-color: rgba(22, 93, 255, 0.4);
}

.recruit-chip.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.recruit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F2F3F5;
  text-decoration: none;
}

.recruit-item:last-child { border-bottom: none; }

.recruit-source {
  flex-shrink: 0;
  width: 132px;
  margin-top: 1px;
  padding: 2px 6px;
  font-size: 11px;
  text-align: center;
  color: #4E5969;
  background: #F2F3F5;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruit-source.cat-soe { color: #D25F00; background: rgba(255, 125, 0, 0.1); }
.recruit-source.cat-civil { color: #165DFF; background: rgba(22, 93, 255, 0.08); }
.recruit-source.cat-institution { color: #009A29; background: rgba(0, 180, 42, 0.1); }
.recruit-source.cat-city { color: #7D3CDB; background: rgba(125, 60, 219, 0.1); }

.recruit-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.recruit-item:hover .recruit-title { color: var(--primary); }

.recruit-date {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
  color: #86909C;
}

.recruit-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  color: #165DFF;
  background: rgba(22, 93, 255, 0.08);
  border-radius: 3px;
  vertical-align: 1px;
}

.recruit-tag.closing {
  color: #F53F3F;
  background: rgba(245, 63, 63, 0.1);
}

.recruit-new-dot {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  font-size: 11px;
  color: #fff;
  background: #F53F3F;
  border-radius: 3px;
  vertical-align: 1px;
}

/* ============================================
   专业库
   ============================================ */
.majors-header {
  align-items: flex-start;
}

.majors-header-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.majors-header-sub strong {
  font-weight: 600;
  color: var(--primary);
}

.majors-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.majors-panel {
  padding: 20px 24px 28px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.majors-searchbar {
  display: flex;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F2F3F5;
}

.majors-search-input {
  flex: 1;
  max-width: 560px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.majors-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}

.majors-search-input::placeholder {
  color: var(--text-tertiary);
}

.majors-search-btn {
  padding: 0 28px;
  font-size: 13px;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.majors-search-btn:hover {
  background: var(--primary-hover);
}

.majors-tabs {
  display: flex;
  gap: 30px;
  margin-top: 4px;
  border-bottom: 1px solid #F2F3F5;
}

.majors-tab {
  position: relative;
  padding: 14px 2px;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.majors-tab:hover {
  color: var(--primary);
}

.majors-tab.is-active {
  font-weight: 600;
  color: var(--primary);
}

.majors-tab.is-active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.majors-tab em {
  margin-left: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-tertiary);
}

.majors-tab.is-active em {
  color: var(--primary);
}

.majors-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 14px 0;
}

.majors-cats-label {
  margin-right: 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.majors-cat {
  padding: 3px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.majors-cat:hover {
  color: var(--primary);
}

.majors-cat.is-active {
  color: var(--primary);
  background: #F2F6FF;
  border-color: #9DBBFF;
}

.majors-content {
  min-height: 260px;
  padding-top: 6px;
}

.major-group {
  padding-top: 18px;
}

.major-group-title {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
}

.major-class {
  margin-bottom: 16px;
}

.major-class-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.major-class-title::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.major-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 24px;
  padding-left: 12px;
}

.major-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #F2F3F5;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.major-cell:hover {
  background: #F7F9FF;
}

.major-cell-name {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.major-cell:hover .major-cell-name {
  color: var(--primary);
}

.major-cell-code {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.major-level-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 20px;
}

.major-level-tag.is-undergrad {
  color: var(--primary);
  background: #E8F3FF;
}

.major-level-tag.is-junior {
  color: #D25F00;
  background: #FFF2E8;
}

.majors-empty {
  padding: 56px 20px;
  text-align: center;
}

.majors-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.majors-empty-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* 专业详情弹窗 */
.majors-detail-modal {
  width: 1080px;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.majors-detail-modal .modal-body {
  overflow-y: auto;
}

.major-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.major-detail-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.major-detail-name h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.major-detail-path {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.major-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.major-detail-chips span {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--main-bg);
  border-radius: 12px;
}

.major-detail-actions {
  display: flex;
  gap: 8px;
}

.major-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.major-detail-tag {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #F2F3F5;
  border-radius: 12px;
}

.major-detail-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.major-detail-panel {
  padding: 12px 14px;
  background: var(--main-bg);
  border-radius: 8px;
}

.major-detail-panel-label {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.major-detail-panel-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.major-rate {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 6px 4px 0;
  font-size: 12px;
  color: var(--primary);
  background: #E8F3FF;
  border-radius: 12px;
}

.major-detail-section {
  margin-top: 20px;
}

.major-detail-section-title {
  margin-bottom: 8px;
  padding-left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
  line-height: 1.2;
}

.major-detail-section-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  white-space: pre-wrap;
}

.major-detail-source {
  margin-top: 22px;
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid #F2F3F5;
}

.major-detail-source a {
  color: var(--primary);
  text-decoration: none;
}

/* 专业详情 · 扩展数据 */
.major-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--main-bg);
  border-radius: 10px;
}

.major-highlight-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.major-highlight-label {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.major-highlight-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.major-highlight-value span {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.major-highlight-ratios {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 20px;
  min-width: 240px;
}

.major-ratio {
  flex: 1;
  min-width: 180px;
}

.major-ratio-title {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.major-ratio-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  background: #F2F3F5;
  border-radius: 4px;
}

.major-ratio-seg.is-left {
  background: #3370FF;
}

.major-ratio-seg.is-right {
  background: #F9A2B0;
}

.major-ratio-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.major-advice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.major-advice-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.major-advice-card.is-fit {
  background: #EAF7EF;
  border-color: #C6EBD3;
}

.major-advice-card.is-unfit {
  background: #FEF0F0;
  border-color: #FBD9D9;
}

.major-advice-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.major-advice-card.is-fit .major-advice-title {
  color: #1F9D55;
}

.major-advice-card.is-unfit .major-advice-title {
  color: #D93F3F;
}

.major-advice-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.major-detail-section-title span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.major-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.major-course-card {
  padding: 10px 12px;
  background: var(--main-bg);
  border-radius: 8px;
  border-left: 3px solid #3370FF;
}

.major-course-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.major-course-cat {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--primary);
  background: #E8F3FF;
  border-radius: 10px;
}

.major-course-desc {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.major-direction-table {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #EDEFF2;
  border-radius: 8px;
}

.major-direction-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.major-direction-table th {
  position: sticky;
  top: 0;
  padding: 9px 12px;
  font-weight: 500;
  text-align: left;
  color: var(--text-tertiary);
  background: var(--main-bg);
  white-space: nowrap;
}

.major-direction-table td {
  padding: 9px 12px;
  color: var(--text-secondary);
  border-top: 1px solid #F5F6F8;
}

.major-direction-table tbody tr:hover td {
  background: #FAFBFC;
}

.major-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.major-job-item {
  padding: 10px 12px;
  background: var(--main-bg);
  border-radius: 8px;
}

.major-job-label {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.major-job-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.major-impression {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.major-impression-tag {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--primary);
  background: #E8F3FF;
  border-radius: 14px;
}

/* 响应式 */
@media (max-width: 900px) {
  .majors-layout { grid-template-columns: 1fr; }
  .majors-side { position: static; max-height: none; }
  .majors-tree { max-height: 260px; }
}

@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    overflow: visible;
  }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .dashboard .card.todos,
  .dashboard .card.recent-students,
  .dashboard .card.policy,
  .dashboard .card.recruit,
  .dashboard .card.gk-calendar { grid-column: span 1; }
  .card-scroll { flex: none; overflow: visible; }
  .student-detail { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

/* ===== 资料中枢 / 服务流程 ===== */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-header h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: #1D2129; }
.page-sub { margin: 0; font-size: 13px; color: #86909C; }
.modal-sub { margin: 4px 0 0; font-size: 12px; color: #86909C; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.wb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.wb-toolbar .form-input { min-width: 120px; flex: 1; }
.wb-card { background: #fff; border: 1px solid #E5E6EB; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
.wb-card + .wb-card { margin-top: 16px; }
.wb-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wb-h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #1D2129; }
.wb-h4 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: #4E5969; }
.wb-mini { font-size: 12px; color: #86909C; }
.wb-note { margin: 10px 0 0; font-size: 12px; color: #86909C; line-height: 1.6; }
.wb-warn { color: #F53F3F !important; }
.wb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wb-table th { text-align: left; padding: 10px 8px; color: #86909C; font-weight: 500; border-bottom: 1px solid #E5E6EB; white-space: nowrap; }
.wb-table td { padding: 11px 8px; border-bottom: 1px solid #F2F3F5; color: #1D2129; vertical-align: middle; }
.wb-table tr:last-child td { border-bottom: none; }
.wb-table tbody tr:hover { background: #F7F8FA; }
.wb-tabs { display: flex; gap: 4px; border-bottom: 1px solid #E5E6EB; margin-bottom: 16px; }
.wb-tab { padding: 9px 16px; border: none; background: none; font-size: 13px; color: #4E5969; cursor: pointer; border-bottom: 2px solid transparent; }
.wb-tab.active { color: #165DFF; border-bottom-color: #165DFF; font-weight: 500; }
.wb-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: #F2F3F5; color: #4E5969; white-space: nowrap; }
.wb-badge.kind-policy { background: #E8F3FF; color: #165DFF; }
.wb-badge.kind-recruit { background: #E8FFEA; color: #00B42A; }
.wb-badge.kind-official { background: #FFF3E8; color: #FF7D00; }
.wb-badge.kind-internal { background: #F5E8FF; color: #722ED1; }
.wb-badge.ok { background: #E8FFEA; color: #00B42A; }
.wb-badge.warn { background: #FFF7E8; color: #FF7D00; }
.wb-badge.bad { background: #FFECE8; color: #F53F3F; }
.wb-badge.st-pending { background: #FFF7E8; color: #FF7D00; }
.wb-badge.st-assigned { background: #E8F3FF; color: #165DFF; }
.wb-badge.st-accepted { background: #F5E8FF; color: #722ED1; }
.wb-badge.st-converted { background: #E8FFEA; color: #00B42A; }
.wb-badge.st-lost { background: #F2F3F5; color: #86909C; }
.wb-tag { display: inline-block; padding: 1px 7px; margin-left: 4px; border-radius: 4px; font-size: 11px; background: #F2F3F5; color: #4E5969; }
.wb-link { border: none; background: none; padding: 2px 4px; font-size: 12px; color: #165DFF; cursor: pointer; white-space: nowrap; }
.wb-link:hover { text-decoration: underline; }
.wb-link.on { color: #FF7D00; font-weight: 500; }
.wb-link.primary { font-weight: 600; }
.wb-link.danger { color: #F53F3F; }
.wb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #C9CDD4; margin-right: 5px; }
.wb-dot.on { background: #00B42A; }
.stat-icon.purple { background: #F5E8FF; color: #722ED1; }
.stat-icon.red { background: #FFECE8; color: #F53F3F; }
.stat-icon.gray { background: #F2F3F5; color: #86909C; }

/* 资料列表与详情 */
.wb-doc-list { display: flex; flex-direction: column; gap: 10px; }
.wb-doc-item { background: #fff; border: 1px solid #E5E6EB; border-radius: 8px; padding: 13px 16px; transition: border-color .15s; }
.wb-doc-item:hover { border-color: #165DFF; }
.wb-doc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-doc-title { font-size: 14px; font-weight: 500; color: #1D2129; text-decoration: none; cursor: pointer; }
.wb-doc-title:hover { color: #165DFF; }
.wb-doc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; color: #86909C; }
.wb-doc-actions { display: flex; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #F2F3F5; }
.wb-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; font-size: 12px; color: #86909C; }
.wb-pager .btn { padding: 5px 12px; font-size: 12px; }
.wb-detail-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #E5E6EB; }
.wb-detail-bar .btn { padding: 5px 10px; font-size: 12px; }
.wb-detail-tags { margin-top: 10px; }
.wb-doc-body { padding: 14px; background: #F7F8FA; border-radius: 6px; font-size: 13px; line-height: 1.8; color: #1D2129; white-space: pre-wrap; max-height: 340px; overflow: auto; }
.wb-attach-list { display: flex; flex-direction: column; gap: 6px; }
.wb-attach { display: flex; justify-content: space-between; padding: 9px 12px; border: 1px solid #E5E6EB; border-radius: 6px; text-decoration: none; color: #165DFF; font-size: 13px; }
.wb-attach:hover { background: #F7F8FA; }
.wb-related { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* 统计与进度 */
.wb-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.wb-bar-label { width: 96px; flex: none; color: #4E5969; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-bar-track { flex: 1; height: 10px; background: #F2F3F5; border-radius: 5px; overflow: hidden; }
.wb-bar-fill { height: 100%; border-radius: 5px; }
.wb-kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #F2F3F5; font-size: 13px; color: #4E5969; }
.wb-kv:last-child { border-bottom: none; }
.wb-kv strong { color: #1D2129; }
.wb-progress { height: 8px; background: #F2F3F5; border-radius: 4px; overflow: hidden; }
.wb-progress div { height: 100%; background: #165DFF; }
.wb-task { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid #F2F3F5; font-size: 13px; }
.wb-task.overdue { background: #FFF7F7; }
.wb-task.done span { color: #86909C; text-decoration: line-through; }
.wb-task-check { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.wb-task-check input { width: 15px; height: 15px; accent-color: #165DFF; }

/* 时间线与信息网格 */
.wb-timeline { display: flex; flex-direction: column; gap: 0; }
.wb-tl-item { display: flex; align-items: stretch; gap: 12px; padding: 8px 0; }
.wb-tl-item.past { opacity: .55; }
.wb-tl-date { width: 62px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #165DFF; }
.wb-tl-date strong { font-size: 15px; }
.wb-tl-date span { font-size: 11px; color: #86909C; }
.wb-tl-line { width: 2px; background: #E5E6EB; border-radius: 1px; }
.wb-tl-body { flex: 1; padding: 6px 0 12px; }
.wb-tl-title { font-size: 13px; font-weight: 500; color: #1D2129; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-tl-actions { display: flex; align-items: center; gap: 4px; }
.wb-timeline.compact .wb-tl-date { width: 78px; }
.wb-timeline.compact .wb-tl-item { padding: 2px 0; }
.wb-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wb-info-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: #F7F8FA; border-radius: 6px; }
.wb-info-grid span { font-size: 11px; color: #86909C; }
.wb-info-grid strong { font-size: 13px; color: #1D2129; font-weight: 500; }

/* 全局搜索筛选 */
.gs-types { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 4px; font-size: 12px; color: #4E5969; }
.gs-types label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.gs-types input { accent-color: #165DFF; }
.gs-section { margin-top: 12px; }
.gs-section-title { font-size: 12px; color: #86909C; margin-bottom: 6px; font-weight: 500; }
.gs-section .search-result-item { cursor: pointer; }
.gs-section .search-result-item:hover { background: #F7F8FA; }

@media (max-width: 1100px) {
  .wb-grid-2 { grid-template-columns: 1fr; }
  .wb-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 首页高考日历卡片 */
.gk-cal-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; cursor: pointer; transition: background var(--transition); }
.gk-cal-item:hover { background: #F7F8FA; margin: 0 -6px; padding: 9px 6px; border-radius: 6px; }
.gk-cal-date { font-size: 12px; color: #86909C; flex: none; width: 42px; font-weight: 500; padding-top: 1px; }
.gk-cal-body { flex: 1; min-width: 0; }
.gk-cal-title { font-size: 13px; color: #1D2129; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gk-cal-cat { font-size: 11px; color: #C9CDD4; margin-top: 2px; }
.gk-badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(22, 93, 255, 0.08); color: #165DFF; flex: none; }
.gk-badge.warn { background: rgba(255, 125, 0, 0.12); color: #FF7D00; }
.gk-badge.past { background: #F2F3F5; color: #86909C; }
