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

/* ---- app.wxss 共享类 ---- */
.bar {
  height: 7px;
  border-radius: 1px;
  background: #e8e0cf;
  overflow: hidden;
  margin-top: 3px;
}
.bar-inner {
  height: 100%;
  background: #9c2b23;
  border-radius: 1px;
}
.bar-inner.warn { background: #e8a33d; }
.bar-inner.danger { background: #d9534f; }

.section { margin-bottom: 12px; }

.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; }

.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;
}

.modal,
.sheet {
  background: #fffdf8;
  border: 1px solid #d9cfba;
  border-radius: 8px;
  padding: 12px 11px;
  width: 100%;
  box-sizing: border-box;
  opacity: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
}

.doc-paper {
  background: #fffdf6;
  border: 1px solid #ded4bf;
  border-radius: 2px;
  padding: 12px 10px;
}
.doc-head {
  border-bottom: 2px double #9c2b23;
  padding-bottom: 5px;
  margin-bottom: 7px;
}
.doc-title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #9c2b23;
  text-align: center;
}
.doc-meta {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 11px;
  color: #7a8699;
  letter-spacing: 0.5px;
}

.exam-item {
  background: #fbf8f0;
  border: 1px solid #ded4bf;
  border-radius: 2px;
  padding: 8px 9px;
  margin-bottom: 6px;
}
.exam-item .exam-step {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 13px;
  font-weight: 700;
  color: #2a2116;
  letter-spacing: 0.5px;
}

.seal-lg {
  display: inline-block;
  border: 2.5px solid #9c2b23;
  color: #9c2b23;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  transform: rotate(-6deg);
  opacity: 0.88;
}
.seal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid #ded4bf;
}

.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;
}

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

/* ---- miniprogram/pages/today/today.wxss（本页规则在后） ---- */
.card .btn.ghost { margin-top: 6px; }

.task-item {
  border: 1px solid #ded4bf;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
}
.task-item.active {
  border-color: #9c2b23;
  background: #fbf6ec;
}

.card-result {
  background: #fbf6ec;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
}

/* 首页工作入口：只给一句话状态，不复制工作页的任务列表 */
.work-entry { margin-bottom: 3px; }
.work-entry-text {
  font-size: 14px;
  color: #2a2116;
}

/* §4.2：首月报到卡（第一天上班，先见直属领导） */
.onboarding-card {
  background: #fbf7ee;
  border: 1px solid #ddcfa9;
}

/* §3.2：本月事项（页面视觉核心） */
.priority-card {
  background: #ffffff;
  border: 1px solid #dde5ef;
}
.task-block {
  border-top: 1px solid #eef1f5;
  padding: 8px 0 2px;
}
.task-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.task-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2d3d;
  flex: 1;
  margin-right: 6px;
}
.task-rank {
  font-size: 11px;
  color: #9c2b23;
  background: #f7efe2;
  border-radius: 10px;
  padding: 2px 7px;
}

/* §6：数值 → 含义 → 后果（可点开的核心状态行） */
.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;
}
.warn-text {
  color: #b7791f;
  font-size: 13px;
  margin-top: 4px;
}
.link {
  color: #9c2b23;
  font-size: 13px;
  margin-top: 6px;
}

/* §8：本月总结（结束本月后先看到这一页，再进入下个月） */
.month-summary-mask {
  align-items: flex-start;
  padding-top: 30px;
}
.sheet {
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 9px;
  padding: 14px 12px;
  box-sizing: border-box;
}
.sheet-head { margin-bottom: 6px; }
.sheet-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2d3d;
}
.ms-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef1f5;
}
.ms-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2d3d;
  margin-bottom: 4px;
}

/* P3-12：定位到决定事项时的短暂强调（不闪烁、不改变卡片语义） */
.focus-flash {
  border: 1px solid #b98a4b;
  border-radius: 8px;
  background: #fdf9f0;
}

/* SIM13-C-77：逾期后果说明（沿用 pill.danger 的警示色） */
.overdue-hint {
  color: #8c2b23;
  font-size: 12px;
  margin-top: 2px;
}
