/* ===========================================================
   念念生活助手 · 粘性功能模块样式（.sk-* 命名空间，不污染整站）
   模块：每日签到墙 / 节气养生每日贴 / 家庭重要日子 / 待办提醒清单
   =========================================================== */

.sk-wrap { max-width: 760px; margin: 0 auto; padding: 4px 2px 8px; }

.sk-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(40, 60, 110, .05);
}
.sk-h {
  font-size: 16px; font-weight: 700; color: #1f2430;
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.sk-empty { color: #9aa3b2; font-size: 13px; text-align: center; padding: 18px 0; }

/* ---------- 通用表单 ---------- */
.sk-form { display: flex; flex-direction: column; gap: 10px; }
.sk-form-2 { display: flex; gap: 10px; }
.sk-form-2 > * { flex: 1; min-width: 0; }
.sk-input, .sk-select {
  width: 100%; padding: 10px 12px;
  border: 1px solid #e0e4ea; border-radius: 11px;
  font-size: 14px; color: #1f2430; background: #fbfcfe;
  box-sizing: border-box; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sk-input:focus, .sk-select:focus { border-color: #4a7cff; box-shadow: 0 0 0 3px rgba(74,124,255,.12); }
.sk-check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #55607a; }
.sk-check-line input { width: 16px; height: 16px; accent-color: #4a7cff; }

.sk-btn {
  border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 11px;
  background: linear-gradient(135deg, #4a7cff, #6a5cff);
  box-shadow: 0 4px 12px rgba(74,124,255,.28);
  transition: transform .08s, opacity .15s;
}
.sk-btn:active { transform: translateY(1px); }
.sk-btn.signed, .sk-btn:disabled { background: linear-gradient(135deg,#9be0b0,#7fd0a0); box-shadow: none; cursor: default; }

.sk-del {
  border: 0; background: transparent; color: #c2c8d4; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 4px 6px; border-radius: 8px;
}
.sk-del:hover { color: #ff5a3c; background: #fff0ec; }

.sk-note {
  margin-top: 12px; font-size: 12.5px; color: #66708a;
  background: #f5f8ff; border: 1px solid #e3ebff; border-radius: 10px; padding: 9px 11px;
}
.sk-note b { color: #ff6a3d; }

/* ===========================================================
   1) 每日签到墙
   =========================================================== */
.sk-checkin-hero {
  text-align: center;
  background: linear-gradient(135deg, #ff9a44, #ff6a3d);
  color: #fff; border: 0;
}
.sk-ch-title { font-size: 15px; opacity: .92; letter-spacing: 2px; }
.sk-stats { display: flex; justify-content: space-around; margin: 14px 0 16px; }
.sk-stat { display: flex; flex-direction: column; align-items: center; }
.sk-stat b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.sk-stat span { font-size: 11.5px; opacity: .9; margin-top: 3px; }
.sk-sign { width: 100%; background: #fff; color: #ff6a3d; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.sk-sign.signed { color: #4caf7d; }
.sk-sub { margin-top: 10px; font-size: 11.5px; opacity: .9; }

.sk-cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 11px; color: #aeb6c6; text-align: center; margin-bottom: 6px;
}
.sk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sk-day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: #55607a; background: #f4f6fa; border-radius: 9px;
}
.sk-day.blank { visibility: hidden; }
.sk-day.signed {
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #ffb46b, #ff7a45);
}
.sk-day.today { outline: 2px solid #ff5a3c; outline-offset: -2px; }

/* ===========================================================
   2) 节气养生每日贴
   =========================================================== */
.sk-solar-hero {
  background: linear-gradient(135deg, #3fb56b, #2e9e6b);
  color: #fff; border: 0; text-align: center;
}
.sk-sh-term { font-size: 30px; font-weight: 800; letter-spacing: 4px; }
.sk-sh-date { font-size: 12.5px; opacity: .92; margin-top: 6px; }
.sk-sh-next { margin-top: 12px; font-size: 13px; opacity: .95; }
.sk-sh-next b { font-size: 17px; }
.sk-tip { padding: 10px 0; border-top: 1px dashed #eef0f3; }
.sk-tip:first-of-type { border-top: 0; }
.sk-tip h4 { margin: 0 0 4px; font-size: 13.5px; color: #2e9e6b; }
.sk-tip p { margin: 0; font-size: 13.5px; color: #45506a; line-height: 1.6; }

/* ===========================================================
   3) 家庭重要日子
   =========================================================== */
.sk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px; background: #fafbfc;
  margin-bottom: 8px; border: 1px solid #f0f2f6;
}
.sk-item .ico { font-size: 24px; line-height: 1; }
.sk-item .info { flex: 1; min-width: 0; }
.sk-item .nm { font-size: 14.5px; font-weight: 600; color: #1f2430; }
.sk-item .dt { font-size: 12px; color: #8a93a6; margin-top: 2px; }
.sk-item .cd { font-size: 13px; color: #66708a; text-align: right; white-space: nowrap; padding-right: 4px; }
.sk-item .cd.soon { color: #ff9f43; font-weight: 600; }
.sk-item .cd.today { color: #ff5a3c; font-weight: 800; }

/* ===========================================================
   4) 待办提醒清单
   =========================================================== */
.sk-todo-group { margin-bottom: 6px; }
.sk-todo-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 11px; background: #fafbfc;
  margin-bottom: 7px; border: 1px solid #f0f2f6;
}
.sk-todo-item.overdue { background: #fff3f0; border-color: #ffd9cf; }
.sk-todo-item.done { opacity: .7; }
.sk-check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid #c7cedd; background: #fff; cursor: pointer;
  color: #fff; font-size: 14px; font-weight: 700; line-height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.sk-todo-item.done .sk-check { background: #4caf7d; border-color: #4caf7d; }
.sk-todo-body { flex: 1; min-width: 0; }
.sk-todo-text { font-size: 14px; color: #1f2430; line-height: 1.4; word-break: break-word; }
.sk-todo-item.done .sk-todo-text { text-decoration: line-through; color: #aab2c2; }
.sk-todo-meta { font-size: 11.5px; color: #8a93a6; margin-top: 3px; }

/* ---------- toast ---------- */
.sk-toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%) translateY(20px);
  background: rgba(31, 36, 48, .92); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 22px; z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 80vw; text-align: center;
}
.sk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .sk-card { padding: 14px 13px 16px; border-radius: 14px; }
  .sk-sh-term { font-size: 26px; }
}
@media (max-width: 420px) {
  .sk-form-2 { flex-direction: column; gap: 8px; }
  .sk-day { font-size: 11px; border-radius: 8px; }
  .sk-stat b { font-size: 22px; }
  .sk-sh-term { font-size: 23px; }
}
