/* 中行独复 · 课题组管理平台 · 浅色学术风（藏青 + 白底 + 亮蓝） */
:root {
  --bg: #f2f5fa;           /* 页面浅蓝灰底 */
  --surface: #ffffff;      /* 卡片白 */
  --surface-2: #eef2f8;    /* 浅蓝灰填充 */
  --border: #dae0ea;
  --text: #15233a;         /* 藏青正文 */
  --text-dim: #68748a;
  --accent: #2563eb;       /* 亮蓝 */
  --accent-deep: #1d4ed8;
  --cinnabar: #d97706;     /* 警示橙（卡住/逾期等语义色） */
  --ok: #16a34a;
  --muted: #8a94a6;
  --danger: #dc2626;
  --sidebar: #15233a;      /* 侧栏藏青 */
  --sidebar-dim: #93a1b8;  /* 侧栏次要文字 */
  --radius: 12px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

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

html { min-height: 100dvh; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100dvh;
}

.hidden { display: none !important; }

button { font-family: var(--font); cursor: pointer; }
input, select, textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea { resize: vertical; line-height: 1.6; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-height: 40px;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent-deep); color: #2b1f12; font-weight: 600; }
.btn-danger { background: transparent; border-color: var(--cinnabar); color: var(--cinnabar); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; min-height: 34px; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column; /* v2.5.5：卡片 + 备案号页脚纵向排列 */
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.login-card h1 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.login-card .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.login-card label { display: block; font-size: 14px; color: var(--text-dim); margin: 14px 0 6px; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 22px; }
.login-hint { margin-top: 16px; font-size: 12.5px; color: var(--text-dim); }

/* ---------- 主框架：左侧边栏（v2.2） ---------- */
.layout { display: flex; min-height: 100dvh; }
.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: 20;
}
.sidebar .brand {
  padding: 16px 16px 12px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.sidebar .brand small { color: var(--text-dim); font-weight: 400; font-size: 12px; margin-left: 6px; }
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  flex: 1;
  overflow-y: auto;
}
.side-item {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14.5px;
  padding: 9px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-height: 42px;
  transition: background 0.12s ease, color 0.12s ease;
}
.side-item .si-icon { width: 20px; text-align: center; flex-shrink: 0; }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active { background: var(--surface-2); color: var(--accent); font-weight: 600; }
.side-foot {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-foot .who { font-size: 13px; color: var(--text-dim); }
.main { flex: 1; min-width: 0; }
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
}
.mobile-topbar .brand { font-size: 16px; font-weight: 600; flex: 1; }
.mobile-topbar .who { font-size: 13px; color: var(--text-dim); }
.menu-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  min-height: 42px;
  font-size: 17px;
}
.side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 15;
}
.side-backdrop.show { display: block; }

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: none; }
  .mobile-topbar { display: flex; }
}

.page { padding: 16px 20px; max-width: 1060px; margin: 0 auto; }
/* 看板页在大屏加宽：三列看板 + 左侧目录需要横向空间，其余页面保持 1060 阅读宽度 */
.page-wide { max-width: 1560px; }

/* ---------- 看板 ---------- */
.board-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.board-actions select { min-height: 40px; }

.status-section { margin-bottom: 22px; }
.status-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.status-head h2 { font-size: 16px; font-weight: 600; }
.status-head .count { color: var(--text-dim); font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.st-待办 { background: var(--muted); }
.st-进行中 { background: var(--accent); }
.st-卡住 { background: var(--cinnabar); }
.st-暂停 { background: #7d7466; }
.st-完成 { background: var(--ok); }

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.task-card:hover { border-color: var(--accent-deep); }
.task-card .t-title { font-size: 15.5px; font-weight: 600; }
.task-card .t-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.badge {
  display: inline-block;
  font-size: 12px;
  border-radius: 6px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.badge.type-事务性 { color: var(--muted); }
.badge.type-交付性 { color: var(--accent); border-color: var(--accent-deep); }
.badge.type-探索性 { color: var(--ok); }
.badge.overdue { color: var(--cinnabar); border-color: var(--cinnabar); }
.badge.idle { color: var(--cinnabar); border-color: var(--cinnabar); }

.empty-tip { color: var(--text-dim); font-size: 14px; padding: 20px 0; text-align: center; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 9, 0.72);
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5dvh 14px;
  overflow-y: auto;
}
.modal-mask.high { z-index: 60; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  padding: 20px;
}
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal .row { margin-bottom: 12px; }
.modal label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 5px; }
.modal input, .modal select, .modal textarea { width: 100%; }
.modal .btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.dup-warning {
  background: var(--surface-2);
  border: 1px solid var(--cinnabar);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin: 10px 0;
}
.dup-warning .dup-item { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* ---------- 任务详情 ---------- */
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--text-dim); margin-bottom: 14px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.sub-title { font-size: 14.5px; font-weight: 600; margin: 16px 0 8px; color: var(--accent); }

.timeline { border-left: 2px solid var(--border); padding-left: 14px; }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -19.5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.tl-item.kind-困难::before { background: var(--cinnabar); }
.tl-item.kind-修正::before { background: var(--accent); }
.tl-head { font-size: 13px; color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; }
.tl-content { font-size: 14.5px; margin-top: 2px; white-space: pre-wrap; }
.tl-superseded { opacity: 0.55; }
.tl-superseded .tl-content { text-decoration: line-through; }
.tl-raw { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.progress-input-row { display: flex; gap: 8px; margin-top: 8px; }
.progress-input-row textarea { flex: 1; }

/* ---------- 知识库 ---------- */
.kb-cats { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.kb-cat {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  min-height: 40px;
}
.kb-cat.active { background: var(--accent); color: #2b1f12; border-color: var(--accent); font-weight: 600; }
.kb-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.kb-item .kb-title { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-item .kb-content { font-size: 14px; color: var(--text); margin-top: 6px; white-space: pre-wrap; }
.kb-item .kb-foot { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.badge.pending { color: var(--cinnabar); border-color: var(--cinnabar); }

/* ---------- 管理 ---------- */
.admin-section { margin-bottom: 28px; }
.admin-section h2 { font-size: 16px; margin-bottom: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--text-dim); font-weight: 500; font-size: 13px; }
.admin-table .btn { margin-right: 6px; margin-top: 2px; margin-bottom: 2px; }
.table-wrap { overflow-x: auto; }

/* ---------- AI 浮标与面板 ---------- */
.ai-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--accent-deep);
  background: var(--surface-2);
  color: var(--accent);
  transition: transform 0.15s ease;
}
.ai-fab:hover { transform: scale(1.04); }
.ai-fab-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #2b1f12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-fab-label { font-size: 14px; font-weight: 600; white-space: nowrap; }

.ai-panel {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 50;
  width: min(480px, calc(100vw - 24px));
  max-height: min(600px, 74dvh);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  row-gap: 2px;
}
.ai-panel-title { font-weight: 600; font-size: 15px; flex: 1; }
.ai-panel-tabs { display: flex; gap: 4px; width: 100%; order: 3; }
.ai-tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  padding: 5px 6px;
  border-radius: 6px;
  min-height: 34px;
  flex: 1;
  white-space: nowrap;
}
.ai-tab.active { background: var(--surface-2); color: var(--accent); }
.ai-close { border: none; background: transparent; color: var(--text-dim); font-size: 15px; padding: 6px 10px; min-height: 34px; }
.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 160px;
}
.ai-msg { margin-bottom: 12px; font-size: 14.5px; }
.ai-msg .who { font-size: 12px; color: var(--text-dim); margin-bottom: 3px; }
.ai-msg .bubble {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 9px 12px;
  white-space: pre-wrap;
}
.ai-msg.mine .bubble { background: #43331f; }
.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}
.ai-input { flex: 1; font-size: 14.5px; }
.ai-send { min-height: 40px; }
.ai-task-result { font-size: 13.5px; }
.ai-task-result .field { margin: 6px 0; }
.ai-task-result label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 3px; }
.ai-task-result input, .ai-task-result select, .ai-task-result textarea { width: 100%; font-size: 14px; }

/* 任务详情里的 AI 讨论窗 */
.task-chat-body {
  max-height: 320px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

/* ---------- v2.1：AI 助手放大 / 头像 / 任务上下文 / Markdown ---------- */
.ai-panel.big {
  width: min(980px, calc(100vw - 16px));
  max-height: min(88dvh, 1000px);
  right: 8px;
  bottom: 76px;
}
.ai-avatar {
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ai-mini-avatar {
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.9;
}
.ai-mini-avatar svg { width: 16px; height: 16px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-start; }
.bubble-row .bubble { flex: 1; min-width: 0; }
.ai-ctx {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--accent);
}
.ai-ctx-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-ctx .btn { color: var(--text-dim); }

/* Markdown 渲染 */
.bubble.md-bubble { white-space: normal; }
.md p { margin: 5px 0; }
.md p:first-child { margin-top: 0; }
.md p:last-child { margin-bottom: 0; }
.md strong { color: var(--accent); font-weight: 600; }
.md code {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.md pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  margin: 6px 0;
  white-space: pre;
}
.md pre code { background: transparent; padding: 0; }
.md ul, .md ol { margin: 5px 0 5px 20px; }
.md li { margin: 2px 0; }
.md-h { font-weight: 600; color: var(--accent); margin: 8px 0 4px; }
.md-h1 { font-size: 16.5px; }
.md-h2 { font-size: 15.5px; }
.md-h3, .md-h4 { font-size: 14.5px; }
.md-hr { border-top: 1px solid var(--border); margin: 8px 0; }
.md-table {
  border-collapse: collapse;
  margin: 6px 0;
  font-size: 13.5px;
  max-width: 100%;
}
.md-table th, .md-table td {
  border: 1px solid var(--border);
  padding: 4px 9px;
  text-align: left;
}
.md-table th { background: rgba(0, 0, 0, 0.2); color: var(--accent); }

/* 扫描式催办卡片 */
.scan-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.1);
}

/* 作废 */
.st-作废 { background: #5c5248; }
.badge.voided { color: var(--muted); }
.task-card.voided { opacity: 0.6; }
.task-card.voided .t-title { text-decoration: line-through; }
.tl-item.kind-笔记::before { background: var(--accent); }
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.check-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- 语音输入按钮 ---------- */
.mic-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 8px;
  width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mic-btn:hover { color: var(--accent); border-color: var(--accent-deep); }
.mic-btn.recording { color: var(--cinnabar); border-color: var(--cinnabar); }
.mic-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--accent-deep);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  z-index: 80;
  max-width: calc(100vw - 40px);
}
.error-text { color: var(--cinnabar); font-size: 13.5px; margin-top: 8px; }
.ok-text { color: var(--ok); font-size: 13.5px; margin-top: 8px; }
.dim { color: var(--text-dim); font-size: 13px; }

/* ---------- v2.2：论文工具卡片 / 智能分析 / 能力画像 / AI 管理 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tool-title { font-size: 15.5px; font-weight: 600; }
.tool-who { color: var(--accent); font-size: 12.5px; margin: 4px 0 6px; }

.an-item { margin-bottom: 14px; }
.an-q {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent);
}
.an-a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.report-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 15px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.profile-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}
.stat-n { font-size: 17px; font-weight: 600; color: var(--accent); }
.stat-l { font-size: 11.5px; color: var(--text-dim); }
.pf-out { white-space: pre-line; font-size: 13.5px; }

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 12px;
  margin: 8px 0 12px;
}
.prompt-editor { width: 100%; font-size: 13px; line-height: 1.6; }

/* ---------- v2.3 换肤与新组件：覆盖在前，遵循层叠 ---------- */

/* 输入控件用白底，和浅灰页面拉开层次 */
input, select, textarea { background: var(--surface); }

/* 主按钮、知识库页签、浮标头像：蓝底白字 */
.btn-primary { color: #ffffff; }
.kb-cat.active { color: #ffffff; }
.ai-fab-icon { color: #ffffff; }
.ai-fab { background: var(--surface); border-color: var(--accent); }

/* 侧栏保持藏青底（整站唯一的深色块，压住阵脚） */
.sidebar { background: var(--sidebar); border-right: none; }
.sidebar .brand { color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar .brand small { color: var(--sidebar-dim); }
.side-item { color: var(--sidebar-dim); }
.side-item:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.side-item.active { background: rgba(37, 99, 235, 0.3); color: #ffffff; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.side-foot .who { color: var(--sidebar-dim); }
.side-foot .btn-ghost { color: var(--sidebar-dim); border-color: rgba(255, 255, 255, 0.2); }

/* 手机顶栏同款藏青 */
.mobile-topbar { background: var(--sidebar); border-bottom: none; }
.mobile-topbar .brand { color: #ffffff; }
.mobile-topbar .who { color: var(--sidebar-dim); }
.menu-btn { background: rgba(255, 255, 255, 0.1); color: #ffffff; border-color: transparent; }

/* 浅色下的覆盖层与磨砂块（原来是深色调的） */
.modal-mask { background: rgba(21, 35, 58, 0.45); }
.task-chat-body { background: var(--surface-2); }
.scan-card { background: var(--surface-2); }
.stat { background: var(--surface-2); }
.ai-msg.mine .bubble { background: #e0eafc; }
.md code { background: var(--surface-2); }
.md pre { background: var(--surface-2); }
.md-table th { background: var(--surface-2); }

/* 状态圆点微调（浅色底适配） */
.st-暂停 { background: #94a3b8; }
.st-作废 { background: #9aa5b1; }

/* ---------- 看板左侧分类目录（按状态 + 按项目分组） ---------- */
.bd-wrap { display: flex; gap: 16px; align-items: flex-start; }
.bd-main { flex: 1; min-width: 0; }
.bd-rail {
  width: 168px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.bd-sec-t { font-size: 12px; color: var(--text-dim); padding: 2px 6px 6px; }
.bd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: left;
  min-height: 36px;
}
.bd-item:hover { background: var(--surface-2); }
.bd-item.active { background: rgba(37, 99, 235, 0.12); color: var(--accent); font-weight: 600; }
.bd-item .bd-n { color: var(--text-dim); font-size: 12px; }
.bd-item.active .bd-n { color: var(--accent); }
@media (max-width: 900px) {
  .bd-wrap { flex-direction: column; gap: 12px; }
  .bd-rail { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .bd-sec-t { width: 100%; padding-bottom: 2px; }
  .bd-item { width: auto; }
}

/* ---------- 管理页页签式子目录（点哪个显示哪块，不自动滚动） ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  min-height: 40px;
}
.admin-tab.active { background: var(--accent); color: #ffffff; border-color: var(--accent); font-weight: 600; }

/* ---------- 使用反馈列表（导师看） ---------- */
.fb-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 8px;
}
.fb-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.fb-content { font-size: 14.5px; white-space: pre-wrap; }

/* ---------- 使用说明页 ---------- */
.help-principles { display: grid; gap: 8px; }
.hp-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
}
.hp-item b { color: var(--accent); white-space: nowrap; }
.help-sec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.help-sec h3 { font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.help-body-text { font-size: 14px; white-space: pre-wrap; line-height: 1.75; }

/* ========== v2.3.1 看板美化：紧凑卡片 + 状态色条 + 概览条 + logo ========== */

/* 任务卡片：压扁紧凑，左侧 3px 状态色条（扫一眼知状态，不用读字） */
.task-card { padding: 10px 16px 10px 13px; margin-bottom: 8px; border-left: 3px solid #cbd5e1; }
.task-card.st-进行中 { border-left-color: var(--accent); }
.task-card.st-卡住 { border-left-color: var(--cinnabar); }
.task-card.st-完成 { border-left-color: var(--ok); }
.task-card.st-暂停 { border-left-color: #94a3b8; }
.task-card.st-待办 { border-left-color: #cbd5e1; }
.task-card:hover { border-color: var(--accent); background: #fafcff; }
.task-card .t-title { font-size: 15px; }
.task-card .t-meta { margin-top: 5px; gap: 5px 12px; font-size: 12.5px; }
.task-card .meta-strong { color: var(--text); font-weight: 500; }
.badge { font-size: 11.5px; padding: 1px 7px; }
.badge-proj { color: var(--accent); border-color: var(--accent-deep); }

/* 分组标题轻量化 */
.status-section { margin-bottom: 16px; }
.status-head { margin-bottom: 8px; padding-bottom: 4px; }
.status-head h2 { font-size: 14px; }

/* 左侧分类目录加宽（长项目名不再挤两行） */
@media (min-width: 901px) {
  .bd-rail { width: 208px; }
}

/* 概览条：一句话说清局面 */
.board-brief {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.board-brief b { font-weight: 600; color: var(--text); }
.board-brief .bb-do b { color: var(--accent); }
.board-brief .bb-warn b { color: var(--cinnabar); }

/* logo：登录页大徽章 + 品牌区小徽章 */
.login-logo { width: 64px; height: 64px; margin: 0 auto 14px; display: block; }
.brand-with-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; }
.brand-logo svg { width: 100%; height: 100%; }
.mobile-topbar .brand-logo { width: 22px; height: 22px; }
.mobile-topbar .brand-with-logo { gap: 6px; }

/* 空状态插图 */
.empty-with-svg { padding: 36px 0; }
.empty-with-svg svg { opacity: 0.85; margin-bottom: 10px; }

/* v2.4 批量导入结果行 */
.imp-ok { color: var(--ok); }
.imp-bad { color: var(--cinnabar); }

/* ==================== v2.5 ==================== */

/* 登录 / 注册切换 */
.login-alt { margin-top: 12px; font-size: 13px; color: var(--text-dim); text-align: center; }
.login-alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.login-alt a:hover { text-decoration: underline; }
.rg-code { letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }

/* 学生首页指引卡：两个动作说完就走 */
.guide-card {
  position: relative;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
  border: 1px solid #c7d8f5;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 40px 12px 16px;
  margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13.5px; line-height: 1.65;
}
.guide-card b { color: var(--accent); }
.guide-card .dim { font-size: 12.5px; }
.guide-x {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: 13px;
}
.guide-x:hover { background: rgba(37, 99, 235, .1); color: var(--accent); }

/* 桌面列式看板（手机保持列表，不加载这些样式的布局效果） */
.bk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.bk-col {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 120px;
}
.bk-col-head {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 4px 10px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 8px;
}
.bk-col-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.bk-col-head .count { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.bk-col .task-card { margin-bottom: 8px; }
.bk-col-empty { padding: 18px 6px; text-align: center; color: var(--text-dim); font-size: 12.5px; }
.bk-strip-head { margin-top: 16px; }
.bk-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bk-strip .task-card { opacity: .88; }
.bk-more { margin: 8px 2px 0; font-size: 12.5px; }

/* 知识库 · 问一问 */
.kb-ask {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.kb-ask-title { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kb-ask-title small { font-weight: 400; font-size: 12px; color: var(--text-dim); }
.kb-ask-row { display: flex; gap: 10px; margin-top: 10px; align-items: stretch; }
.kb-ask-row textarea {
  flex: 1; resize: vertical; min-height: 44px;
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.kb-ask-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.kb-ask-row .btn { align-self: flex-end; min-height: 40px; }
.kb-answer {
  margin-top: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; line-height: 1.75;
}
.kb-srcs { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.kb-src { color: var(--accent); text-decoration: none; }
.kb-src:hover { text-decoration: underline; }
.kb-ask-ops { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kb-ask-ops .dim { font-size: 12px; }
.kb-stale-tip {
  background: #fdf6ec; border: 1px solid #ecd9b8; border-radius: var(--radius);
  padding: 9px 14px; margin-bottom: 12px; font-size: 13px; color: #8a6d3b;
}
.badge.stale { background: #fdf6ec; color: #b07d2b; border: 1px solid #ecd9b8; }
.kb-item-archived { opacity: .75; }

/* 管理 · 邀请码 */
.invite-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.invite-code {
  font-size: 22px; font-weight: 700; letter-spacing: 4px;
  color: var(--accent); background: #eef4ff;
  border: 1px dashed #b9cff3; border-radius: 8px;
  padding: 6px 16px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* 更新日志 */
.changelog { display: flex; flex-direction: column; gap: 14px; }
.cl-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}
.cl-ver { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cl-ver b { color: var(--accent); font-size: 14.5px; }
.cl-block ul { margin: 0; padding-left: 20px; }
.cl-block li { font-size: 13.5px; line-height: 1.8; color: var(--text); }

/* 顺手度：卡片悬浮反馈与触控目标 */
.task-card { transition: box-shadow .15s ease, transform .15s ease; }
.task-card:hover { box-shadow: 0 2px 10px rgba(21, 35, 58, .10); transform: translateY(-1px); }
.btn { min-height: 34px; }
.btn-sm { min-height: 30px; }

@media (max-width: 900px) {
  .kb-ask-row { flex-direction: column; }
  .kb-ask-row .btn { align-self: stretch; }
  .invite-code { font-size: 19px; letter-spacing: 3px; }
}

/* v2.5.5：备案号页脚（登录/注册页是平台对外首页，法规要求标明备案号并链接） */
.icp-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: #9aa4b5;
  line-height: 1.8;
}
.icp-foot a { color: #9aa4b5; text-decoration: none; }
.icp-foot a:hover { color: var(--accent); }
.icp-foot .icp-sep { margin: 0 8px; color: #c3cad6; }
.icp-foot img { height: 13px; width: auto; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 480px) {
  .icp-foot .icp-sep { display: none; }
  .icp-foot a { display: block; margin-top: 4px; }
}
