/* ==========================================================================
   RiskWeb · 治愈清单 · 100 件让你平静的小事（cl- 前缀）
   ========================================================================== */

/* ---- 使用建议区微调 ---- */
.cl-usage .card h3 { font-size: 1.02rem; }

/* ---- hero 一句话整行显示：始终不换行，字号随视口缩放（约 32 字） ---- */
.page-hero .lead {
  white-space: nowrap;
  max-width: none;
  font-size: clamp(0.7rem, 2.2vw, 1.05rem);
}

/* ---- 使用区标题整行显示（约 14 字） ---- */
.cl-usage .section-head h2 {
  white-space: nowrap;
  font-size: clamp(1rem, 5vw, 2.7rem);
}

/* ---- 主区：单列窄栏 ---- */
.cl-main { max-width: 860px; }

/* ---- 进度卡 ---- */
.cl-progress { padding: 22px 24px; margin-bottom: 18px; }
.cl-sub { font-size: 1.05rem; margin: 0 0 12px; }
.cl-progress-row { display: flex; align-items: center; gap: 12px; }
.cl-bar {
  flex: 1;
  height: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.cl-bar i {
  display: block;
  height: 100%;
  background: var(--life);
  border-radius: 999px;
  transition: width .3s ease;
}
.cl-progress-num { flex: none; font-weight: 600; font-size: 0.95rem; color: var(--life); white-space: nowrap; }
.cl-progress-note { font-size: 0.9rem; line-height: 1.7; color: var(--ink-mid); margin: 10px 0 0; }

/* 筛选 */
.cl-filter { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cl-ft {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.cl-ft:hover { border-color: var(--life); }
.cl-ft.on { background: var(--life); border-color: var(--life); color: #fff; }

/* ---- 分类卡 ---- */
.cl-cat { padding: 20px 24px; margin-bottom: 16px; }
.cl-cat-head { margin-bottom: 12px; }
.cl-cat-head h3 {
  font-size: 1.02rem;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cl-cat-en { font-weight: 400; font-size: 0.76rem; color: var(--ink-soft); }
.cl-cat-count {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cl-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.cl-cat-empty {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

/* 条目 */
.cl-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-mid);
}
.cl-item:hover { border-color: var(--life); }
.cl-item.on {
  background: var(--life-soft);
  border-color: transparent;
  color: var(--ink);
}
.cl-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: #fff;
  font-size: 0.72rem;
  line-height: 15px;
  text-align: center;
  transition: all .15s ease;
}
.cl-item.on .cl-check { background: var(--life); border-color: var(--life); }
.cl-text { flex: 1; min-width: 0; word-break: break-word; }
.cl-del {
  flex: none;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1.4;
}
.cl-del:hover { color: #b3402a; }

/* 追加自己的条目 */
.cl-addrow { display: flex; gap: 8px; margin-top: 12px; }
.cl-addrow input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
}
.cl-addrow input:focus { outline: none; border-color: var(--life); }
.cl-addbtn {
  flex: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.cl-addbtn:hover { border-color: var(--life); color: var(--life); }

/* ---- 操作与隐私 ---- */
.cl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-privacy { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 18px; }

/* ---- 响应式 ---- */
@media (max-width: 720px) {
  .cl-items { grid-template-columns: 1fr; }
  .cl-cat-head h3 { flex-wrap: wrap; }
}

/* ---- 从情绪出口带过来的一句话 ---- */
.cl-from {
  padding: 0.95rem 1.15rem; margin-bottom: 1.2rem; border-radius: 12px;
  background: var(--life-soft, #eef5f2); border-left: 3px solid var(--life, #2f7d5d);
}
.cl-from-txt { margin: 0; font-size: 0.9rem; line-height: 1.7; }
.cl-from-note { margin: 0.35rem 0 0; font-size: 0.8rem; }
.cl-from-note a { color: var(--life, #2f7d5d); font-weight: 600; text-decoration: none; border-bottom: 1px dashed currentColor; }
.cl-from-note a:hover { border-bottom-style: solid; }

/* 窄屏允许 lead 换行：单行 nowrap 在移动端会横向溢出（2026-09-22 全站视觉打磨） */
@media (max-width: 680px) {
  .page-hero .lead,
  .lead { white-space: normal; }
}

/* 今天做完的 → 记一件小事（2026-11-05） */
.cl-today {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft, #667);
}
