/* ==========================================================================
 * workspace.css — 工作台页样式
 * ========================================================================== */
.ws-page { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* 统计卡 */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card { padding: 20px; }
.stat-card-label {
  font-size: var(--fs-caption); color: var(--text-sub); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.stat-card-value { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: 1.1; }
.stat-card-change { font-size: var(--fs-xs); margin-top: 6px; }
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--danger); }

/* 双栏网格：最近项目(2fr) + 侧栏(1fr) */
.ws-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start;
}
.ws-side { display: flex; flex-direction: column; gap: 20px; }

/* 最近项目列表 */
.ws-project-list { padding: 0; }
.ws-project-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--dur-fast);
}
.ws-project-row:last-child { border-bottom: none; }
.ws-project-row:hover { background: var(--bg); }
.ws-project-icon {
  width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ws-project-main { flex: 1; min-width: 0; }
.ws-project-name {
  font-weight: var(--fw-medium); color: var(--text-main);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-project-desc { font-size: var(--fs-xs); color: var(--text-weak); margin-top: 2px; }
.ws-project-stage {
  font-size: var(--fs-xs); padding: 2px 10px; border-radius: var(--r-pill);
  font-weight: var(--fw-medium); white-space: nowrap; flex-shrink: 0;
}
.ws-project-time { font-size: var(--fs-xs); color: var(--text-weak); white-space: nowrap; }

/* 快捷操作 2x2 */
.ws-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-quick {
  flex-direction: column; padding: 16px; gap: 6px;
  color: var(--text-sub);
}
.ws-quick-icon { font-size: 22px; }

/* 今日待办 */
.ws-todo-list { padding: 0; }
.ws-todo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.ws-todo-row:last-child { border-bottom: none; }
.ws-todo-check { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.ws-todo-main { flex: 1; min-width: 0; }
.ws-todo-title { font-size: var(--fs-body); color: var(--text-main); }
.ws-todo-title.done { text-decoration: line-through; color: var(--text-weak); }
.ws-todo-project { font-size: var(--fs-xs); color: var(--text-weak); margin-top: 2px; }

/* 窄屏降级为单列 */
@media (max-width: 1100px) {
  .ws-grid { grid-template-columns: 1fr; }
}
