/* 工作页（网站版）：由 miniprogram/app.wxss 共享类（本页用到的、base.css 缺失的，
   取层叠最终值）+ miniprogram/pages/work/work.wxss 转换。1rpx=0.5px。
   顺序：共享类在前、本页规则在后，还原小程序"app.wxss 先、页面 wxss 后"的层叠。 */

/* ---- app.wxss 共享类 ---- */
.mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(31, 45, 61, 0.45);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pill {
  font-size: 11px;
  color: #6b5a3d;
  background: #f6f1e6;
  border-radius: 2px;
  padding: 2px 8px;
  border: 1px solid #d9cfba;
  letter-spacing: 0.5px;
}
.pill.ok { border-color: #a8bd97; background: #eef4e8; color: #43602f; }
.pill.warn { border-color: #d8b271; background: #fbf3e2; color: #7a5410; }
.pill.danger { border-color: #cf8f88; background: #fbecea; color: #8c2b23; }

.section { margin-bottom: 12px; }

.seal {
  display: inline-block;
  border: 1.5px solid #9c2b23;
  color: #9c2b23;
  border-radius: 2px;
  padding: 3px 7px;
  font-size: 11px;
  letter-spacing: 1.5px;
  transform: rotate(-6deg);
  opacity: 0.85;
}
.seal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 2px;
}

.btn.disabled { background: #cfc6b4; color: #fbf8f2; box-shadow: none; }
.btn.busy { background: #b9a08c; color: #fffaf2; box-shadow: none; }

.promotion-mask { background: rgba(28, 22, 14, 0.82); }
.promotion-sheet {
  background: #fffdf6;
  border: 1px solid #b99a5b;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(28, 22, 14, 0.35);
  position: relative;
  overflow: hidden;
  max-height: 84vh;
  overflow-y: auto;
}
.promotion-sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fffdf6;
  padding: 6px 0 2px;
}
.promotion-sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #9c2b23 0%, #b99a5b 100%);
}
.promotion-sheet .sheet-title {
  font-size: 21px;
  font-weight: 700;
  color: #9c2b23;
  letter-spacing: 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

/* ---- miniprogram/pages/work/work.wxss（本页规则在后） ---- */

/*
 * Phase 14F-WORK-UI：工作页视觉（纸面感、克制、游戏化）
 * 规则：不使用大面积浅蓝面板；卡片白底 + 浅灰边框；强调色只用于关键交互。
 */

.work {
  background: #f7f6f3;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 待决事项提示条 */
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf6e8;
  border: 1px solid #f0e2c4;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.notice-text {
  font-size: 12px;
  color: #8a6d3b;
  flex: 1;
  margin-right: 8px;
  line-height: 1.4;
}
.notice-btn {
  font-size: 12px;
  color: #8a6d3b;
  border: 1px solid #e3cfa2;
  border-radius: 10px;
  padding: 3px 10px;
  flex-shrink: 0;
}

/* 顶部：本月工作 */
.work-head { padding: 4px 2px 10px; }
.work-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2a2116;
}
.work-month {
  margin-top: 3px;
  font-size: 13px;
  color: #8a8f98;
}
.work-count {
  margin-top: 5px;
  font-size: 13px;
  color: #4a4f57;
}

/* 任务卡：紧凑、可一屏看多件 */
.job-list {
  display: flex;
  flex-direction: column;
}
.group-title {
  font-size: 12.5px;
  color: #8a8f98;
  margin: 3px 0 5px;
}
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 7px;
  padding: 10px 11px;
  margin-bottom: 7px;
}
.job:active { background: #fbfaf7; }
.job-main {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}
.job-name {
  font-size: 15px;
  font-weight: 600;
  color: #2a2116;
  line-height: 1.35;
  overflow: hidden;
  /* P3-10：状态色标 / 必办标注与任务名同行时不被挤断 */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.job-meta {
  margin-top: 4px;
  font-size: 11.5px;
  color: #8a8f98;
}
.job-sep { padding: 0 3px; }
.job-tag {
  margin-left: 6px;
  font-size: 10.5px;
  color: #9a6b27;
  background: #fbf3e4;
  border-radius: 3px;
  padding: 1px 5px;
}
.job-hint {
  margin-top: 4px;
  font-size: 11.5px;
  color: #7c828c;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.job-side {
  flex-shrink: 0;
  margin-left: 8px;
}

/* PHASE_20-FIX-UX-001 §四–§八：操作区（查看详情 = 绿色次级 / 去处理 = 红色主操作） */
.job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.job-cta {
  font-size: 12px;
  line-height: 1.2;
  color: #2f9e6f;
  border: 1px solid #2f9e6f;
  border-radius: 499.5px;
  padding: 5px 10px;
  white-space: nowrap;
}
.job-cta:active { background: #eef8f2; }

/* PHASE_20 §九 / PHASE_20-FIX-UX-001 §六：一行直达处理方式的入口，与"查看详情"保持安全间距 */
.job-quick {
  display: inline-block;
  margin-left: 12px;
  padding: 6px 12px;
  border-radius: 499.5px;
  background: #9c2b23;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.job-quick:active { opacity: 0.85; }

.job-check {
  display: block;
  font-size: 14px;
  color: #2f9e6f;
  margin-bottom: 2px;
}
.job-check.inline {
  display: inline;
  margin: 0 3px 0 0;
  font-size: 13px;
}

.closed-block { margin-top: 5px; }
.closed-title {
  font-size: 13px;
  color: #8a8f98;
  margin-bottom: 5px;
}
.job.done { background: #fbfbf9; }

/* 详情 / 决策 / 结果：统一"纸页"容器 */
.sheet {
  background: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #2a2116;
  line-height: 1.35;
  flex: 1;
  margin-right: 8px;
}
.sheet-back {
  font-size: 11.5px;
  color: #8a8f98;
  flex-shrink: 0;
}

/* §问题4：明确的次级导航按钮（有边框、有背景、够大，不做成主操作） */
.nav-back {
  display: inline-block;
  font-size: 12.5px;
  color: #3a3f46;
  background: #f7f6f3;
  border: 1px solid #e2e0da;
  border-radius: 12px;
  padding: 6px 13px;
  margin-bottom: 8px;
  min-height: 20px;
  line-height: 20px;
}
.nav-back:active { background: #eeede9; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.tag {
  font-size: 10.5px;
  color: #5c636d;
  background: #f2f1ee;
  border-radius: 3px;
  padding: 2px 6px;
  margin: 0 5px 5px 0;
}

.fact-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3px;
}
.fact {
  width: 50%;
  box-sizing: border-box;
  padding: 5px 0;
}
.fact-label {
  display: block;
  font-size: 11px;
  color: #8a8f98;
}
.fact-value {
  display: block;
  font-size: 13px;
  color: #2a2116;
  margin-top: 2px;
}

.block { margin-top: 9px; }
.link {
  margin-top: 3px;
  font-size: 11.5px;
  color: #9c2b23;
}

.person {
  background: #fbfaf7;
  border-radius: 6px;
  padding: 7px 8px;
  margin-top: 5px;
}
.person-name {
  font-size: 13.5px;
  color: #2a2116;
}
.risk { margin-top: 5px; }
.risk-name {
  font-size: 13px;
  color: #2a2116;
}
.wait-box {
  margin-top: 9px;
  background: #f4f5f7;
  border-radius: 6px;
  padding: 9px;
}
.blocked { margin-top: 5px; }
.blocked-name {
  font-size: 13px;
  color: #5c636d;
}

/* 决策卡：标题 + 行为说明 + 倾向，三级视觉层级 */
.decision-list { margin-top: 8px; }
.decision {
  border: 1px solid #e8e6e1;
  border-radius: 7px;
  padding: 9px 10px;
  margin-bottom: 7px;
  background: #ffffff;
}
.decision:active { background: #fbfaf7; }
.decision-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #2a2116;
}
.decision-desc {
  margin-top: 4px;
  font-size: 12px;
  color: #5c636d;
  line-height: 1.4;
}
.decision-tendency {
  margin-top: 4px;
  font-size: 11px;
  color: #8a8f98;
}
.decision-warn {
  margin-top: 4px;
  font-size: 11px;
  color: #9a6b27;
}

/*
 * P3-8：所有做法在视觉上完全平等（同样的白卡、同样的字重、同样的尺寸）。
 * 颜色只用于表达"做法类型"：左侧 3px 细边框按类型着色 + 一行小字类型说明。
 * 颜色不表达"哪个更好"，也不存在唯一高亮/深色实心的选项。
 */
.decision.decision-kind-info { border-left: 3px solid #6b7280; }
.decision.decision-kind-process { border-left: 3px solid #2f6b58; }
.decision.decision-kind-advance { border-left: 3px solid #9c2b23; }
.decision.decision-kind-wait { border-left: 3px solid #a8620f; }
.decision.decision-kind-follow { border-left: 3px solid #1f5f9c; }
.decision-kind {
  font-size: 10.5px;
  color: #7a8699;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.decision.done { opacity: 0.55; }

.result-name {
  font-size: 15px;
  font-weight: 600;
  color: #2a2116;
  margin: 3px 0;
}
.result-line {
  font-size: 13.5px;
  color: #3a3f46;
  line-height: 1.5;
  margin-top: 4px;
}
.change-row {
  font-size: 12px;
  color: #4a4f57;
  background: #f8f7f4;
  border-radius: 4px;
  padding: 4px 7px;
  margin-top: 4px;
}

/* 次要区块：紧凑列表 */
.mini {
  padding: 6px 0;
  border-bottom: 1px solid #f2f1ee;
}
.mini:last-child { border-bottom: none; }
.mini-name {
  font-size: 13.5px;
  color: #2a2116;
}
.empty-title {
  font-size: 14.5px;
  color: #2a2116;
  margin-bottom: 4px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* 问题11（2026-09-30，用户拍板）：与 app.wxss 全局 .chip 同步——可点 chip 实按钮样，
   不可点明确置灰，可点次要操作用 .secondary，纯展示文字改用 .pill/.tag */
.chip {
  font-size: 12px;
  font-weight: 600;
  color: #3b3125;
  background: #fbf6ec;
  border: 1px solid #d9c9a6;
  border-radius: 10px;
  padding: 5px 11px;
  margin: 0 6px 6px 0;
  box-shadow: 0 1px 3px rgba(120, 90, 40, 0.14);
}
.chip-hover {
  background: #f3e8d0;
  border-color: #c9a86f;
  box-shadow: none;
  opacity: 0.92;
}
.chip.off {
  color: #a9a49a;
  background: #f0efeb;
  border: 1px solid #e2e0d8;
  box-shadow: none;
  font-weight: 400;
}
.chip.off.chip-hover {
  background: #f0efeb;
  border-color: #e2e0d8;
  opacity: 1;
}
.chip.secondary {
  background: #f7f9fc;
  color: #5a6b82;
  border: 1px solid #cfd8e3;
  font-weight: 500;
  box-shadow: none;
}

/* POSITION-TASK-REFACTOR-02 §38：数值 → 含义 → 为什么 → 影响 → 怎么改善 */
.explain-row { padding: 2px 0; }
.explain-card {
  background: #fbf6ec;
  border: 1px solid #e0d2b6;
}
.explain-head {
  font-size: 15px;
  font-weight: 600;
  color: #1f2d3d;
  margin-bottom: 4px;
}

/* ============================================================
 * UI/UX 参考重做轮 §四：主动行动（分类卡片 → 单任务卡片 → 查看详情）
 * 内容保持档案/公文风，只有可操作控件更圆润、更有层次
 * ============================================================ */
.line-card {
  display: flex;
  align-items: center;
  background: #fbf8f0;
  border: 1px solid #ded4bf;
  border-radius: 8px;
  padding: 10px 9px;
  margin: 7px 0;
}
.line-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #fffaf2;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  flex-shrink: 0;
}
.line-icon-work { background: #9c2b23; }
.line-icon-relation { background: #2f6b58; }
.line-icon-life { background: #8a6a2f; }
.line-main { flex: 1; min-width: 0; }
.line-head {
  display: flex;
  align-items: center;
}
.line-name {
  font-size: 15px;
  font-weight: 700;
  color: #2a2116;
  margin-right: 6px;
}
.badge {
  font-size: 11px;
  color: #9c2b23;
  border: 1px solid #e0c6a8;
  border-radius: 499.5px;
  padding: 1px 7px;
}
.line-hint {
  font-size: 12px;
  color: #7a8699;
  margin-top: 3px;
}
.chevron {
  color: #b3a68f;
  font-size: 13px;
  margin-left: 6px;
  flex-shrink: 0;
}

.action-card {
  background: #fffdf6;
  border: 1px solid #ded4bf;
  border-radius: 8px;
  padding: 10px 9px;
  margin: 6px 0 8px;
}

/* 参考图：每条线一个主色（工作=公文红 / 关系=墨绿 / 人生=棕金） */
.action-card-work { border-left: 4px solid #9c2b23; }
.action-card-relation { border-left: 4px solid #2f6b58; }
.action-card-life { border-left: 4px solid #8a6a2f; }
.action-card.is-disabled {
  border-left-color: #cfc6b4;
  opacity: 0.9;
}
.action-row {
  display: flex;
  align-items: flex-start;
}
.action-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #fffaf2;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}
.action-icon-work { background: #9c2b23; }
.action-icon-relation { background: #2f6b58; }
.action-icon-life { background: #8a6a2f; }
.action-main { flex: 1; min-width: 0; }
.action-head {
  display: flex;
  align-items: center;
}
.action-name {
  font-size: 15px;
  font-weight: 600;
  color: #2a2116;
  margin-right: 6px;
}
.tag-done {
  font-size: 11px;
  color: #6b7f6a;
  background: #eef4ec;
  border-radius: 499.5px;
  padding: 1px 7px;
}

/* V1.2-POST-E-GAMEPLAY-FIX（问题 4）：主动行动就地完成后的结果块（不跳页面、不滚动复位） */
.action-done-box {
  margin: 5px 0 2px 0;
  padding: 7px 8px;
  background: #f6f8f4;
  border-radius: 6px;
}
.action-cost {
  font-size: 12px;
  color: #8a6a2f;
  margin-top: 4px;
}
.action-detail-text {
  font-size: 13px;
  color: #4a5568;
  margin-top: 4px;
}
.action-detail-box {
  background: #f7f4ec;
  border: 1px solid #e6ddc9;
  border-radius: 6px;
  padding: 7px 8px;
  margin-top: 6px;
}

/* 参考图：轻量"查看详情"胶囊行（区别于主操作按钮） */
.detail-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f1ea;
  border: 1px solid #e2dbcb;
  border-radius: 7px;
  padding: 6px 9px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #6b6252;
}

/* PHASE-16 BUG-03：卡片行上的"一行直达执行"入口。
   比主按钮克制（小胶囊、右对齐），详情里仍然保留「现在去做」大按钮与完整成本说明。 */
.action-quick {
  display: inline-block;
  margin: 3px 0 0;
  padding: 4px 13px;
  border: 1px solid #c9b79a;
  border-radius: 499.5px;
  font-size: 12px;
  color: #7a4a1e;
  background: #fbf6ec;
  text-align: center;
  max-width: 70%;
}
.action-quick.disabled {
  color: #9a9385;
  border-color: #ddd6c6;
  background: #f4f1ea;
}

/* P3-10：任务状态色标（小而清晰，不改变整张卡片背景） */
.status-tag {
  display: inline-block;
  font-size: 10px;
  line-height: 1.4;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-todo { color: #9c2b23; background: #fbeceb; border-color: #f0cfcc; }
.status-reply { color: #a8620f; background: #fdf3e4; border-color: #f0dcbc; }
.status-doing { color: #1f5f9c; background: #eaf2fb; border-color: #cfe0f2; }
.status-done { color: #2f6b58; background: #eaf3ee; border-color: #cfe4da; }
.status-overdue { color: #7a1414; background: #f7e0e0; border-color: #e6bcbc; }
.status-waiting { color: #6b7280; background: #f0f1f3; border-color: #dcdfe4; }

/* P3-9：定位到待处理事项时的短暂强调（不闪烁） */
.focus-flash {
  border: 1px solid #b98a4b;
  border-radius: 7px;
  background: #fdf9f0;
  transition: background 200ms ease;
}

/* P3-7：详情里的"现在去做"比主按钮更克制，不占据整张卡片 */
.detail-label {
  font-size: 11.5px;
  color: #7a8699;
  margin: 5px 0 2px;
}
.action-go {
  margin-top: 7px;
  padding: 7px 0;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 1.5px 4px rgba(122, 33, 26, 0.18);
}
.action-more {
  margin-top: 5px;
  color: #9c2b23;
}
