* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f2f5f4;
  color: #2c3e35;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24rpx 40rpx;
  padding: 0 16px 40px;
  min-height: 100vh;
}

/* 顶部问候区 */
.hero {
  margin: 0 0 10px;
  padding: 20px 24px 22px;
  background: linear-gradient(120deg, #11998e 0%, #38ef7d 48%, #11998e 100%);
  background-size: 220% 220%;
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(17, 153, 142, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-transition: transform 0.12s ease;
  transition: transform 0.12s ease;
  animation: heroFlow 9s ease infinite, heroGlow 4.5s ease-in-out infinite, heroFade 0.7s ease both;
}
/* 绿色框：流动渐变 + 呼吸光晕 + 载入淡入，避免死板 */
@keyframes heroFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@-webkit-keyframes heroFlow {
  0%   { -webkit-background-position: 0% 50%; }
  50%  { -webkit-background-position: 100% 50%; }
  100% { -webkit-background-position: 0% 50%; }
}
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(17, 153, 142, 0.26); }
  50%      { box-shadow: 0 10px 30px rgba(17, 153, 142, 0.42); }
}
@-webkit-keyframes heroGlow {
  0%, 100% { -webkit-box-shadow: 0 8px 24px rgba(17, 153, 142, 0.26); }
  50%      { -webkit-box-shadow: 0 10px 30px rgba(17, 153, 142, 0.42); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@-webkit-keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero:active { -webkit-transform: scale(0.985);
  transform: scale(0.985); }
/* 流光：一道高光横扫绿框，强化“动态光影”观感（两端共用，避免后台页看起来偏静） */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  -webkit-transform: translateX(-170%);
  transform: translateX(-170%);
  animation: heroSweep 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroSweep {
  0%   { -webkit-transform: translateX(-170%);
  transform: translateX(-170%); }
  55%  { -webkit-transform: translateX(280%);
  transform: translateX(280%); }
  100% { -webkit-transform: translateX(280%);
  transform: translateX(280%); }
}
@-webkit-keyframes heroSweep {
  0%   { -webkit--webkit-transform: translateX(-170%);
  transform: translateX(-170%); }
  55%  { -webkit--webkit-transform: translateX(280%);
  transform: translateX(280%); }
  100% { -webkit--webkit-transform: translateX(280%);
  transform: translateX(280%); }
}

.hero-date {
  font-size: 14px;
  opacity: 0.92;
}

.hero-greet {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.hero-welcome {
  font-size: 17px;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.95;
}

.hero-now {
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.96;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  -webkit-font-variant-numeric: tabular-nums;
}

/* ===== 顶部问候区即打卡按钮：白色圆环 + 脉冲动画提示可点击 ===== */
.hero-clock {
  margin-top: 16px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}
.hero-clock-ring {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
}
/* 脉冲外环：暗示“点我打卡” */
.hero-clock-ring::before {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  animation: heroPulse 1.8s ease-out infinite;
}
@keyframes heroPulse {
  0% { -webkit-transform: scale(1);
  transform: scale(1); opacity: 0.7; }
  100% { -webkit-transform: scale(1.45);
  transform: scale(1.45); opacity: 0; }
}
@-webkit-keyframes heroPulse {
  0% { -webkit--webkit-transform: scale(1);
  transform: scale(1); opacity: 0.7; }
  100% { -webkit--webkit-transform: scale(1.45);
  transform: scale(1.45); opacity: 0; }
}
/* 已打卡：圆环变白底绿字，脉冲停止 */
.hero.done .hero-clock-ring {
  background: #fff;
  border-color: #fff;
}
.hero.done .hero-clock-ring::before { animation: none; opacity: 0; }
.hero.done .clock-main { color: #11998e; }
.hero.done .clock-sub { color: #2c8a6f; }

.clock-main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}
.clock-sub {
  font-size: 11px;
  margin-top: 5px;
  opacity: 0.92;
}

/* 通用卡片 */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.stats-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.stats-row {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  text-align: center;
}

.stat-num {
  font-size: 30px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: #8a968f;
  margin-top: 4px;
}

.progress {
  margin-top: 16px;
  height: 8px;
  background: #eef2f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #11998e, #38ef7d);
  border-radius: 999px;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

/* 日历 */
.cal-header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f0f4f2;
  color: #11998e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cal-title {
  font-size: 16px;
  font-weight: 600;
}

.cal-weekdays {
  display: block;
  font-size: 0;
  margin-bottom: 6px;
}
.cal-weekdays > span {
  display: inline-block;
  width: 14.2857%;
  font-size: 13px;
  color: #9aa7a2;
  text-align: center;
  vertical-align: top;
}

.cal-grid {
  display: block;
  font-size: 0;
}

.cal-cell {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 14.2857%;
  height: 42px;
  padding-top: 12px;
  line-height: 22px;
  text-align: center;
  font-size: 14px;
  color: #2c3e35;
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.cal-cell.blank {
  visibility: hidden;
}

.cal-cell.checked {
  background: rgba(17, 153, 142, 0.12);
  color: #11998e;
  font-weight: 600;
}

.cal-cell.checked::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #11998e;
}

.cal-cell.today {
  box-shadow: inset 0 0 0 2px #11998e;
}

.cal-cell.makeup {
  background: rgba(255, 159, 67, 0.16);
  color: #ff9f43;
  font-weight: 600;
}

.cal-cell.makeup::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff9f43;
}

/* 最近记录 */
.record-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.record-empty {
  font-size: 14px;
  color: #9aa7a2;
}

.record-item {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f4f2;
  font-size: 14px;
}

.record-item:last-child {
  border-bottom: none;
}

.record-time {
  color: #11998e;
  font-weight: 600;
}
.record-time.makeup {
  color: #ff9f43;
  font-weight: 500;
  font-size: 13px;
}
.rec-tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  margin-left: 4px;
  vertical-align: middle;
}
.rec-tag.makeup {
  background: #fff3e6;
  color: #ff9f43;
}

.footnote {
  text-align: center;
  font-size: 12px;
  color: #b3bcb7;
  margin-top: 8px;
}

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  top: 40%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  z-index: 100;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  width: 80%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 16px;
  text-align: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ff6b6b;
}

.modal-content {
  font-size: 14px;
  color: #5a655f;
  margin: 14px 0 20px;
  line-height: 1.5;
}

.modal-actions {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
}

.modal-btn {
  -webkit-flex: 1;
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

.modal-btn.cancel {
  background: #f0f4f2;
  color: #5a655f;
}

.modal-btn.danger {
  background: #ff6b6b;
  color: #fff;
  font-weight: 600;
}

.modal-btn.primary {
  background: #11998e;
  color: #fff;
  font-weight: 600;
}

/* ============================================================
 *  雇主任务卡片（高科技玻璃风 · 三端兼容）
 * ============================================================ */
.task-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f3fbf9 100%);
  border: 1px solid rgba(17, 153, 142, 0.18);
  box-shadow: 0 6px 22px rgba(17, 153, 142, 0.12);
}
/* 顶部流光条 */
.task-card::before {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 60%; height: 3px;
  background: linear-gradient(90deg, transparent, #38ef7d, #11998e, transparent);
  animation: taskFlow 3.2s linear infinite;
}
@keyframes taskFlow {
  0% { left: -30%; }
  100% { left: 100%; }
}
@-webkit-keyframes taskFlow {
  0% { left: -30%; }
  100% { left: 100%; }
}

.task-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 14px;
}
.task-head-left {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
}
.task-refresh {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 30px; height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-size: 17px;
  color: #11998e;
  background: #eafaf4;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-transition: -webkit-transform 0.3s ease, background 0.2s ease;
  transition: -webkit-transform 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.task-refresh:active { background: #d4f3e8; -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.task-glow {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #11998e;
  box-shadow: 0 0 0 0 rgba(17, 153, 142, 0.5);
  animation: taskPulse 1.8s ease-out infinite;
}
@keyframes taskPulse {
  0% { box-shadow: 0 0 0 0 rgba(17, 153, 142, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(17, 153, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 153, 142, 0); }
}
@-webkit-keyframes taskPulse {
  0% { -webkit-box-shadow: 0 0 0 0 rgba(17, 153, 142, 0.5); }
  70% { -webkit-box-shadow: 0 0 0 8px rgba(17, 153, 142, 0); }
  100% { -webkit-box-shadow: 0 0 0 0 rgba(17, 153, 142, 0); }
}
.task-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #0f8f84, #2bb673);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #11998e;
}
.task-edit-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #11998e, #38ef7d);
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.32);
  cursor: pointer;
}
.task-edit-btn:active { -webkit-transform: scale(0.95);
  transform: scale(0.95); }

.task-body { min-height: 40px; }
.task-locked {
  text-align: center;
  padding: 18px 8px;
  font-size: 14px;
  color: #8a968f;
  background: repeating-linear-gradient(45deg, #f6f9f8, #f6f9f8 10px, #f1f5f4 10px, #f1f5f4 20px);
  border-radius: 12px;
}
.task-locked .lock-ico { margin-right: 6px; }
.task-locked.soft { background: none; color: #b3bcb7; }

.task-sec {
  position: relative;
  padding: 12px 12px 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2f0;
}
.task-sec:last-child { margin-bottom: 0; }
.task-sec::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px;
  border-radius: 4px;
}
.sec-baby::before { background: #ff8fab; }
.sec-adult::before { background: #4dabf7; }
.sec-house::before { background: #9775fa; }

.task-sec-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e35;
  margin-bottom: 8px;
}
.task-sec-icon { font-size: 15px; }
.task-sec-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2f0;
  color: #8a968f;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 20px;
}
.task-empty { font-size: 13px; color: #b3bcb7; }
.task-list {
  list-style: none;
  margin: 0; padding: 0;
}
.task-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  color: #3a4a43;
  line-height: 1.5;
  border-bottom: 1px dashed #f0f4f2;
}
.task-list li:last-child { border-bottom: none; }
.task-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #38ef7d;
}
.sec-baby .task-list li::before { background: #ff8fab; }
.sec-adult .task-list li::before { background: #4dabf7; }
.sec-house .task-list li::before { background: #9775fa; }

.task-foot {
  margin-top: 12px;
  font-size: 12px;
  color: #b3bcb7;
  text-align: center;
}

/* 阿姨端留言板（只读展示，自动保留换行与空格） */
.notice-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-size: 14px;
  color: #333;
  padding: 4px 2px 0;
  min-height: 22px;
}

/* 保存状态指示 */
.task-saved {
  -webkit-appearance: none;
  appearance: none;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #11998e;
  background: rgba(17, 153, 142, 0.10);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
/* 状态指示圆点（默认：已同步·稳态绿点） */
.task-saved::before {
  content: "";
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #11998e;
}
/* 同步中：橙色旋转加载环 */
.task-saved.syncing {
  color: #f0883e;
  background: rgba(255, 159, 67, 0.14);
}
.task-saved.syncing::before {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid rgba(240, 136, 62, 0.30);
  border-top-color: #f0883e;
  -webkit-animation: tsSpin 0.7s linear infinite;
  animation: tsSpin 0.7s linear infinite;
}
/* 同步完成：绿色对勾（弹入） */
.task-saved.done {
  color: #11998e;
  background: rgba(17, 153, 142, 0.14);
}
.task-saved.done::before {
  content: "✓";
  width: 14px;
  height: 14px;
  background: #11998e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  -webkit-animation: tsPop 0.28s ease-out;
  animation: tsPop 0.28s ease-out;
}
/* 同步失败：红色，可点击重试 */
.task-saved.error {
  color: #e8504e;
  background: rgba(255, 107, 107, 0.14);
  cursor: pointer;
  text-decoration: underline;
}
.task-saved.error::before {
  width: 7px;
  height: 7px;
  background: #e8504e;
}
@-webkit-keyframes tsSpin { to { -webkit--webkit-transform: rotate(360deg);
  transform: rotate(360deg); -webkit-transform: rotate(360deg);
  transform: rotate(360deg); } }
@keyframes tsSpin { to { -webkit--webkit-transform: rotate(360deg);
  transform: rotate(360deg); -webkit-transform: rotate(360deg);
  transform: rotate(360deg); } }
@-webkit-keyframes tsPop { 0% { -webkit--webkit-transform: scale(0.4);
  transform: scale(0.4); -webkit-transform: scale(0.4);
  transform: scale(0.4); } 60% { -webkit--webkit-transform: scale(1.15);
  transform: scale(1.15); -webkit-transform: scale(1.15);
  transform: scale(1.15); } 100% { -webkit--webkit-transform: scale(1);
  transform: scale(1); -webkit-transform: scale(1);
  transform: scale(1); } }
@keyframes tsPop { 0% { -webkit--webkit-transform: scale(0.4);
  transform: scale(0.4); -webkit-transform: scale(0.4);
  transform: scale(0.4); } 60% { -webkit--webkit-transform: scale(1.15);
  transform: scale(1.15); -webkit-transform: scale(1.15);
  transform: scale(1.15); } 100% { -webkit--webkit-transform: scale(1);
  transform: scale(1); -webkit-transform: scale(1);
  transform: scale(1); } }

/* 实时输入区 */
.task-edit-area { margin-top: 4px; }
.task-edit-group { margin-bottom: 14px; }
.task-edit-group:last-child { margin-bottom: 0; }
.task-edit-group .task-textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 64px;
  height: auto;             /* 由 JS 按内容自动撑高，避免固定高度截断多行内容 */
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #d7e3df;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;            /* >=16px 防止 iOS 聚焦自动放大 */
  line-height: 1.5;
  color: #2c3e35;
  background: #fafdfc;
  resize: none;
  outline: none;
  font-family: inherit;
}
.task-edit-group .task-textarea:focus { border-color: #11998e; background: #fff; }

/* 每条任务的录入/修改时间记录 */
.task-records {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.task-records li {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: baseline;
  align-items: baseline;
  gap: 10px;
  padding: 6px 2px;
  border-top: 1px dashed #eef2f0;
  font-size: 14px;
}
.task-records .rec-text {
  -webkit-flex: 1;
  flex: 1;
  color: #3a4a43;
  word-break: break-all;
  line-height: 1.55;
}
.task-records .rec-meta {
  display: none;
  flex-shrink: 0;
  color: #aab4af;
  white-space: nowrap;
  font-size: 11.5px;
}
/* 后台管理页：今日任务保留「录入/修改」时间记录，字体尽量小（不影响阿姨端隐藏） */
.admin-page .task-records .rec-meta {
  display: inline;
  flex-shrink: 0;
  color: #b9c2bd;
  white-space: nowrap;
  font-size: 10px;
  margin-left: 8px;
}
.task-records .rec-empty {
  color: #b3bcb7;
  font-size: 13px;
  padding: 4px 2px;
}
/* 注意事项：确认信息序号（#1 为最新）与项目符号“·” */
.task-records .rec-num {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  min-width: 18px;
  color: #11998e;
  font-weight: 700;
  font-size: 13px;
}

/* 日历上「有任务」的蓝点 */
.cal-cell.has-task::before {
  content: "";
  position: absolute;
  top: 6px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5b8def;
  box-shadow: 0 0 4px rgba(91, 141, 239, 0.7);
}

/* 当前选中的任务日期：强高亮，覆盖 today / checked 的样式 */
.cal-cell.selected {
  background: #11998e;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}
.cal-cell.selected::before { background: #fff; box-shadow: none; }
.cal-cell.selected::after { background: #fff; }

/* 法定节假日 / 调休补班 标注 */
.cal-cell .cal-fest {
  position: absolute;
  top: 2px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  line-height: 1;
  -webkit-transform: scale(0.92);
  transform: scale(0.92);
  -webkit-transform-origin: top center;
  transform-origin: top center;
  -webkit--webkit-transform: scale(0.92);
  transform: scale(0.92);
  pointer-events: none;
}
.cal-cell.rest { color: #e8504e; font-weight: 600; }
.cal-cell.rest .cal-fest { color: #e8504e; }
.cal-cell.work .cal-fest { color: #2f8fe0; font-weight: 700; }

/* 图例 */
.cal-legend {
  display: -webkit-flex;
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #8a968f;
}
.cal-legend-item { display: -webkit-inline-flex;
  display: inline-flex; -webkit-align-items: center;
  align-items: center; gap: 5px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-dot.rest { background: #e8504e; }
.lg-dot.work { background: #2f8fe0; }

/* 日历底部：回到今天 + 操作提示 */
.cal-foot {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.cal-today-btn {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  background: #eef5f3;
  color: #11998e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cal-today-btn:active { background: #dcebe7; }
.cal-tip {
  -webkit-flex: 1;
  flex: 1;
  min-width: 180px;
  font-size: 12px;
  color: #9aa7a2;
  line-height: 1.4;
}

/* ===== 任务编辑弹窗 ===== */
.task-modal {
  width: 88%;
  max-width: 360px;
  text-align: left;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.task-modal-title {
  color: #11998e;
  text-align: center;
  margin-bottom: 16px;
}
.task-edit-group { margin-bottom: 14px; }
.task-edit-label {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.task-edit-label.baby { color: #e8598f; }
.task-edit-label.adult { color: #2f8fe0; }
.task-edit-label.housework { color: #7b54e0; }
.task-emoji { font-size: 15px; }
.task-textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 76px;
  height: auto;          /* 由 JS 按内容自动撑高 */
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #d7e3df;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 17px;
  line-height: 1.55;
  color: #2c3e35;
  background: #fafdfc;
  resize: none;
  outline: none;
  font-family: inherit;
}
.task-textarea:focus { border-color: #11998e; background: #fff; }

/* 注意事项编辑框：每行自动显示“·”项目符号（仅编辑框内，确认信息不显示） */
.notice-editor { position: relative; }
.notice-backdrop {
  position: absolute;
  top: 1px; left: 1px; right: 1px; bottom: 1px;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 17px;
  line-height: 1.55;
  color: transparent;     /* 仅显示 ::before 的 ·，文字由上层 textarea 显示 */
}
.notice-backdrop li {
  position: relative;
  padding-left: 16px;
  min-height: 1.55em;
  line-height: 1.55;
}
.notice-backdrop li::before {
  content: '·';
  position: absolute;
  left: 2px;
  top: 0;
  color: #11998e;
  font-weight: 700;
}
.notice-editor .notice-textarea {
  position: relative;
  z-index: 1;
  background: transparent;   /* 透明，露出下层 bullet */
  padding-left: 28px;        /* 给 · 留左侧槽位，与 backdrop 精确对齐 */
}
.notice-editor .notice-textarea:focus { background: transparent; }

