/* ============================================================
 * 高校辅导员一体化智能工作台 —— 样式
 * 柔和高校风格：提取参考图的温暖粉米色基因，
 * 保留全部功能结构与交互逻辑，只做视觉迁移。
 * ============================================================ */
:root {
  /* 背景层：奶油粉米色 */
  --bg: #fdf8f7;
  --bg-2: #f9edec;
  --bg-3: #fffafa;
  --card: #ffffff;
  --ink: #4a3a3a;
  --ink-2: #7a6262;
  --muted: #a58b8b;
  --line: #f2e0dd;
  --line-2: #ead0cb;
  --line-3: #f9eeec;

  /* 主色：明亮玫瑰粉 */
  --primary: #e696a3;
  --primary-2: #f0b4bc;
  --primary-light: #fdeff2;
  --primary-dark: #b86a76;

  /* 功能色（奶油调柔和化） */
  --blue: #8faed8;
  --blue-light: #eaf0fa;
  --cyan: #7bc5d8;
  --cyan-light: #e6f4f8;
  --yellow: #eabb74;
  --yellow-light: #fbf2e0;
  --purple: #b89ad4;
  --purple-light: #f4ecf9;
  --green: #7bc69b;
  --green-light: #e6f5eb;
  --red: #e67a8d;
  --red-light: #ffeff2;

  --radius: 18px;
  --radius-lg: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 2px 10px rgba(80, 35, 38, .05);
  --shadow-sm: 0 1px 4px rgba(80, 35, 38, .04);
  --shadow-lg: 0 8px 28px rgba(80, 35, 38, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.req { color: var(--red); }
a { color: inherit; text-decoration: none; }

/* ---------- 布局骨架 ---------- */
.app-shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 260px; flex-shrink: 0; background: var(--bg-2); color: var(--ink-2);
  height: 100vh; position: sticky; top: 0; overflow-y: auto;
  padding: 18px 14px 28px;
}
.sidebar-brand {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 12px 8px 22px;
}
.brand-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #f5c0c5, #e696a3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 4px 12px rgba(196, 124, 124, .22);
}
.brand-txt strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.brand-txt span { font-size: 12px; color: var(--muted); }
.nav-group { margin-bottom: 8px; }
.nav-group-title {
  font-size: 11px; color: var(--muted); padding: 14px 14px 6px;
  letter-spacing: .6px; font-weight: 600; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border-radius: 14px; color: var(--ink-2); text-decoration: none;
  font-size: 13.5px; margin: 3px 0; cursor: pointer;
  transition: background .15s, color .15s, transform .05s;
}
.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: color .15s; }
.nav-item:hover { background: rgba(255,255,255,.55); color: var(--ink); }
.nav-item:hover .ico { color: var(--primary); }
.nav-item.active {
  background: var(--primary-light); color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(230,150,163,.18);
  font-weight: 700;
}
.nav-item.active .ico { color: var(--primary); }

/* ---------- 顶部通栏（保留功能，视觉轻量化） ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; flex-wrap: wrap;
}
.topbar-title { display: flex; flex-direction: column; }
.topbar-title strong { font-size: 15px; color: var(--ink); font-weight: 700; }
.topbar-sub { font-size: 12px; color: var(--muted); }
.topbar-search { flex: 1; min-width: 160px; max-width: 360px; }
.search-input { width: 100%; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.clock { font-size: 12px; color: var(--muted); white-space: nowrap; }
.only-mobile { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 13px; cursor: pointer;
  background: #fff; color: var(--ink-2); transition: .15s;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(230,150,163,.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary-dark); }
.btn-danger { background: var(--red-light); color: #b04a5a; border-color: #f2cdd4; }
.btn-danger:hover { background: var(--red); color: #fff; }
.icon-btn {
  background: #fff; border: 1px solid var(--line); font-size: 18px; line-height: 1;
  cursor: pointer; color: var(--muted); width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary-2); }
.link { background: none; border: none; color: var(--primary-dark); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.link:hover { background: var(--primary-light); }
.link.danger { color: #b04a5a; }
.link.danger:hover { background: var(--red-light); }

/* ---------- 内容区 ---------- */
.content { padding: 26px 28px; overflow-y: auto; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 24px; margin: 0 0 4px; color: var(--ink); font-weight: 800; letter-spacing: -.2px; }
.page-desc { color: var(--muted); margin: 0; font-size: 13.5px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px 8px; }
.card-head h3 { margin: 0; font-size: 15px; color: var(--ink); font-weight: 700; }
.card-body { padding: 8px 18px 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); border-left: 5px solid var(--primary);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card.c-red { border-left-color: var(--red); }
.stat-card.c-yellow { border-left-color: var(--yellow); }
.stat-card.c-purple { border-left-color: var(--purple); }
.stat-card.c-blue { border-left-color: var(--blue); }
.stat-card.c-green { border-left-color: var(--green); }
.stat-n { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.stat-t { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-title { padding: 14px 18px 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.emp-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 文件上传字段 / 文档链接 ---------- */
.file-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-current { font-size: 13px; color: var(--muted); }
.doc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 600; }
.doc-link:hover { text-decoration: underline; }
.doc-link .ico { width: 15px; height: 15px; }

/* ---------- 新闻稿/推文 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.news-head strong { font-size: 15px; color: var(--ink); }
.news-meta { font-size: 12px; margin-top: 6px; }
.news-sum { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.news-link { margin-top: 8px; font-size: 13px; }
.news-link a { color: var(--primary); }
.news-doc { margin-top: 10px; }

/* ---------- 竞赛指导 ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.comp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.comp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.comp-top strong { font-size: 15px; color: var(--ink); }
.comp-meta { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.comp-note { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* ---------- 会议记录附件（时间线内） ---------- */
.tl-doc { margin-top: 8px; }

.overview-clock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px 18px; text-align: center; margin-bottom: 20px;
}
.overview-clock .ov-date { font-size: 13px; color: var(--muted); margin-bottom: 8px; letter-spacing: .5px; }
.overview-clock .ov-time { font-size: 42px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.1; }
.overview-clock .ov-tz { font-size: 11px; color: var(--muted); margin-top: 8px; }

.dash-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mini-row:last-child { border-bottom: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- 徽标（胶囊状，柔和色调） ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: var(--radius-pill); font-size: 12px;
  background: var(--line-3); color: var(--ink-2); white-space: nowrap;
}
.b-red { background: var(--red-light); color: #b04a5a; }
.b-yellow { background: var(--yellow-light); color: #936a24; }
.b-green { background: var(--green-light); color: #3d7a4d; }
.b-blue { background: var(--blue-light); color: #4a669e; }
.b-cyan { background: var(--cyan-light); color: #3d7d8e; }
.b-purple { background: var(--purple-light); color: #7a5599; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); font-weight: 500; }
.form-input {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(230,150,163,.12); }
.form-input.invalid { border-color: var(--red); }
textarea.form-input { resize: vertical; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.switch input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar .search-input { flex: 1; min-width: 160px; max-width: 420px; }
.toolbar select.form-input { width: auto; min-width: 130px; }

/* ---------- 抽屉 / 弹窗 ---------- */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(80, 45, 45, .35); z-index: 999; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 440px; max-width: 92vw;
  background: var(--bg-3); z-index: 1000; box-shadow: -8px 0 30px rgba(80,40,40,.14);
  display: flex; flex-direction: column; animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 16px; color: var(--ink); }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.import-intro { font-size: 13px; line-height: 1.6; margin-bottom: 12px; color: var(--ink-2); }
.import-map-head { font-weight: 700; margin: 16px 0 10px; font-size: 14px; color: var(--ink); }
.import-map { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.import-map-row { display: flex; flex-direction: column; gap: 4px; }
.import-col-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-opts { margin: 14px 0 6px; flex-wrap: wrap; }
.switch-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.import-sum { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; font-size: 14px; }
.import-sum .ok { color: var(--green); } .import-sum .bad { color: var(--red); }
.warn-line { color: var(--red); font-size: 13px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th, .mini-table td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.mini-table th { color: var(--muted); font-weight: 700; background: var(--bg-3); }
.mini-table td.ok { color: var(--green); } .mini-table td.bad { color: var(--red); }
.drawer-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--card); border-radius: var(--radius-lg); z-index: 1000;
  width: 480px; max-width: 92vw; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(80,40,40,.22);
}
.modal-sm { width: 400px; } .modal-md { width: 580px; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; color: var(--ink); font-size: 16px; }
.modal-body { padding: 20px; color: var(--ink-2); }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: var(--radius-pill);
  z-index: 2000; font-size: 13px; box-shadow: var(--shadow-lg);
}

/* ---------- 待办清单（参考图卡片风格） ---------- */
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: .15s;
}
.todo-item:hover { box-shadow: var(--shadow); }
.todo-item.done { opacity: .55; }
.todo-item.overdue { border-color: #f2cdd4; background: #fff8f9; }
.check { position: relative; flex-shrink: 0; margin-top: 2px; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; cursor: pointer; }
.box {
  display: block; width: 22px; height: 22px; border: 2px solid var(--line-2);
  border-radius: 8px; transition: .15s;
}
.check input:checked + .box { background: var(--green); border-color: var(--green); position: relative; }
.check input:checked + .box::after { content: "✓"; color: #fff; position: absolute; left: 4px; top: -1px; font-size: 14px; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-weight: 700; color: var(--ink); }
.todo-item.done .todo-title { text-decoration: line-through; color: var(--muted); }
.todo-sub { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.del { flex-shrink: 0; }
.progress-line { height: 8px; background: var(--line-3); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 14px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); width: 0; transition: width .3s; }

/* ---------- 时间轴 ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.tl-item { position: relative; padding: 0 0 18px 28px; border-left: 2px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; }
.tl-dot {
  position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--primary);
}
.tl-item.done .tl-dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.tl-item.over .tl-dot { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 6px; }
.tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-actions { margin-top: 8px; display: flex; gap: 4px; }

/* ---------- 学生名册 / 档案 ---------- */
.roster-2col { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.stu-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: .15s; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-sm); position: relative;
}
.stu-card:hover { border-color: var(--primary-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.stu-del {
  position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; line-height: 1;
  border: none; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 20px; cursor: pointer; transition: .15s; flex-shrink: 0; z-index: 2;
}
.stu-del:hover { background: #fde8ea; color: #d23b4e; }
.stu-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #f5c0c5, #e696a3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.stu-avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.stu-info { min-width: 0; flex: 1; padding-right: 22px; }
.stu-name { font-weight: 700; color: var(--ink); } .stu-name.lg { font-size: 19px; }
.stu-tags { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.stu-addr { margin-top: 3px; word-break: break-all; }
.stu-dorm { font-size: 12px; flex-shrink: 0; color: var(--muted); }
.profile-2col { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.stu-mini-list { list-style: none; margin: 0; padding: 6px; }
.stu-mini { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--ink-2); }
.stu-mini:hover { background: var(--line-3); }
.stu-mini.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.profile-main { }
.profile-head { display: flex; align-items: center; gap: 16px; padding: 6px 0 14px; flex-wrap: wrap; }
.profile-ring { margin-left: auto; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pf-block { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.pf-block.wide { grid-column: 1 / -1; }
.pf-label { font-size: 12px; color: var(--muted); margin-bottom: 3px; }

/* ---------- 资助个案 / 风险卡 / 各类网格 ---------- */
.case-grid, .risk-grid, .contact-grid, .review-grid, .asset-grid, .ws-grid, .dorm-grid, .emp-grid, .plan-grid {
  display: grid; gap: 16px; }
.case-grid, .risk-grid, .contact-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.review-grid, .asset-grid, .ws-grid, .emp-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.dorm-grid, .plan-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.case-card, .risk-card, .contact-card, .review-card, .asset-card, .ws-card, .dorm-card, .emp-card, .plan-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.case-head, .review-head, .asset-top, .ws-top, .emp-top, .plan-head, .contact-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.case-head strong, .review-head strong, .emp-top strong, .ws-top strong, .contact-top strong { font-size: 15px; color: var(--ink); }
.case-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.case-row:last-of-type { border-bottom: none; }
.money { color: var(--red); font-weight: 700; }
.step-bar { display: flex; align-items: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.step { font-size: 12px; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--line-3); color: var(--muted); }
.step.on { background: var(--blue-light); color: var(--blue); }
.step-sep { color: var(--line-2); }

.risk-card.lvl-high { border-left: 5px solid var(--red); }
.risk-card.lvl-mid { border-left: 5px solid var(--yellow); }
.risk-card.lvl-low { border-left: 5px solid var(--green); }
.risk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.risk-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); padding: 2px 0; }
.risk-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.risk-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mini-check { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); cursor: pointer; }

/* ---------- 项目计划 ---------- */
.plan-card.done { opacity: .85; border-color: #d7eddc; }
.plan-fb { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; background: var(--bg-3); border-radius: var(--radius-sm); padding: 8px 10px; }

/* ---------- 联络网络 ---------- */
.contact-meta { font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.contact-next { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- 评审工作台 ---------- */
.review-basis { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.review-stats { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- 素材库 ---------- */
.asset-title { font-weight: 700; font-size: 14px; margin: 4px 0 6px; color: var(--ink); }
.asset-meta { font-size: 12px; color: var(--ink-2); padding: 2px 0; }

/* ---------- 勤工助学 ---------- */
.ws-row { font-size: 13px; padding: 3px 0; color: var(--ink-2); }

/* ---------- 宿舍网格 ---------- */
.dorm-card.risk-high { border-left: 5px solid var(--red); }
.dorm-card.risk-mid { border-left: 5px solid var(--yellow); }
.dorm-card.risk-low { border-left: 5px solid var(--green); }
.dorm-no { font-weight: 800; font-size: 18px; color: var(--ink); }
.dorm-students { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dorm-row { font-size: 12.5px; padding: 2px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--ink-2); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { background: var(--bg-3); color: var(--ink-2); font-weight: 700; }
.data-table tr.over { background: #fff6f7; }

/* ---------- 就业路线 ---------- */
.emp-stage { margin-bottom: 6px; } .emp-row { font-size: 13px; padding: 3px 0; color: var(--ink-2); }

/* ---------- 工作留痕 ---------- */
.log-stream { list-style: none; margin: 0; padding: 0; }
.log-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: none; }
.log-date { font-size: 12px; color: var(--muted); flex-shrink: 0; width: 80px; }
.log-body { flex: 1; min-width: 0; }
.log-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 搜索结果 / 空态 / 快捷入口 ---------- */
.search-results { max-height: 50vh; overflow-y: auto; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); cursor: pointer; border-bottom: 1px solid var(--line); }
.search-item:hover { background: var(--bg-3); }
.empty-state { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty-ico { font-size: 34px; opacity: .4; margin-bottom: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  color: var(--ink-2); font-size: 12.5px; box-shadow: var(--shadow-sm); transition: .15s;
}
.quick-btn:hover { border-color: var(--primary-2); color: var(--primary-dark); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick-btn .ico { width: 24px; height: 24px; color: var(--primary); }
.privacy-note { font-size: 12px; color: var(--muted); background: var(--bg-3); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; }
.privacy-banner { background: var(--blue-light); border: 1px solid #d4e0f5; color: #4a669e; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.5px; margin-bottom: 16px; }

/* ---------- 图表 ---------- */
.ico { display: inline-block; vertical-align: middle; }
.cwb-ring { flex-shrink: 0; }
.cwb-chart { display: block; margin: 4px 0; }
.cwb-pie-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cwb-legend-list { display: flex; flex-direction: column; gap: 4px; }
.cwb-legend { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.cwb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- 移动端底部导航 ---------- */
.bottom-nav { display: none; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-2col, .roster-2col, .profile-2col { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 800; transform: translateX(-100%); transition: transform .25s; width: 260px; background: var(--bg-2); }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(80,40,40,.25); }
  .only-mobile { display: inline-flex; }
  .topbar { padding: 12px 14px; }
  .topbar-search { order: 3; max-width: none; flex-basis: 100%; }
  .clock { display: none; }
  .content { padding: 18px 16px; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--card); z-index: 700; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 2px; color: var(--muted); text-decoration: none; font-size: 10.5px;
  }
  .bn-item .ico { width: 20px; height: 20px; }
  .bn-item.active { color: var(--primary-dark); }
  .main { padding-bottom: 62px; }
  .page-title { font-size: 20px; }
  .profile-grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; max-width: 100vw; }
}
@media (max-width: 390px) {
  .content { padding: 16px 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-n { font-size: 24px; }
  .btn { padding: 7px 12px; font-size: 12.5px; }
  .page-actions .btn { flex: 1; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .toolbar .search-input { max-width: none; }
  .page-title { font-size: 18px; }
}
@media (max-width: 320px) {
  .topbar-title strong { font-size: 13px; }
  .stat-card { padding: 14px; }
  .stat-n { font-size: 20px; }
  .bn-item span { font-size: 9.5px; }
  .btn { padding: 6px 10px; font-size: 12px; }
}
