/* ---------- 动态 ---------- */
.composer .chips { margin-bottom: 12px; }
.composer .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.composer .count { font-size: 13px; color: var(--muted); }
.mood { --c: var(--peach); display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 99px; font-size: 12.5px; background: var(--c); color: var(--ink-2); }
.mood.happy { --c: #ffeec2; }
.mood.sad { --c: var(--sky-soft); }
.mood.think { --c: var(--lilac-soft); }

.post { padding: 18px 18px 12px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .who-name { font-size: 15px; }
.post-head .when { font-size: 12.5px; color: var(--muted); }
.post-head .meta { flex: 1; line-height: 1.4; }
.post-body { margin: 12px 0 8px; white-space: pre-wrap; word-break: break-word; }
.actions { display: flex; align-items: center; gap: 4px; margin: 0 -8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; color: var(--muted); font-size: 14px; transition: background .2s, color .2s; position: relative; }
.act:hover { background: var(--pink-soft); }
.act.on { color: var(--pink-deep); }
.act.fav.on { color: #f0a53a; }
.act.fav:hover { background: #fff1d8; }
.act .mini { display: flex; }
.act .mini .avatar { --s: 20px; border-width: 1.5px; margin-left: -6px; }
.act .mini .avatar:first-child { margin-left: 0; }
.spacer { flex: 1; }
.act.del { opacity: .55; }
.act.del:hover { opacity: 1; color: #d4577a; }
.comments { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment .avatar { --s: 28px; margin-top: 2px; }
.comment .bubble { background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px 16px 16px 16px; font-size: 14.5px; line-height: 1.55; word-break: break-word; min-width: 0; }
.comment.mine { flex-direction: row-reverse; }
.comment.mine .bubble { background: var(--pink-soft); border-radius: 16px 4px 16px 16px; }
.comment .x { opacity: 0; font-size: 12px; color: var(--muted); align-self: center; }
.comment:hover .x { opacity: 1; }
.comment-form { display: flex; gap: 8px; }
.comment-form .input { padding: 8px 14px; font-size: 15px; }

/* ---------- 待办 ---------- */
.todo-add { display: flex; gap: 10px; }
.progress { height: 10px; border-radius: 99px; background: var(--pink-soft); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb3c6, var(--pink-deep)); transition: width .6s var(--ease); }
.todo-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.todos { padding: 6px 8px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px dashed var(--line); animation: rise .35s ease both; }
.todo:last-child { border: 0; }
.todo .box {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  border: 2px solid #f4b6c6; background: #fff; transition: all .3s var(--ease);
}
.todo .box svg.i { width: 15px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .3s var(--ease); }
.todo.done .box { background: var(--pink-deep); border-color: var(--pink-deep); }
.todo.done .box svg.i { opacity: 1; transform: none; }
.todo .txt { flex: 1; min-width: 0; word-break: break-word; transition: color .3s; }
.todo.done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(240, 102, 138, .45); }
.todo .by { display: flex; align-items: center; }
.todo .by .avatar { --s: 22px; border-width: 1.5px; }
.todo .x { color: var(--muted); opacity: .5; padding: 4px; }
.todo .x:hover { opacity: 1; color: #d4577a; }
.todo .sub { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ---------- 收藏 ---------- */
.folders { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.folders::-webkit-scrollbar { display: none; }
.folders .chip em { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 12px; }
.emoji-pick { display: flex; gap: 8px; justify-content: center; }
.emoji-pick button { font-size: 24px; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease); }
.emoji-pick button.on { background: var(--pink-soft); border-color: var(--pink); transform: scale(1.12); }
.folder-list { display: grid; gap: 8px; }
.folder-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); text-align: left; transition: all .2s; }
.folder-row:hover { border-color: var(--pink); }
.folder-row.on { background: var(--pink-soft); border-color: var(--pink); }
.folder-row .e { font-size: 22px; }

/* ---------- 小树 ---------- */
.garden { padding: 0; overflow: hidden; background: linear-gradient(#fff4e3 0%, #ffeef0 55%, #e8f6e6 100%); position: relative; }
.garden svg.scene { display: block; width: 100%; height: auto; max-height: 360px; }
.garden .sway { transform-origin: 150px 262px; animation: sway 5s ease-in-out infinite; }
.garden .wilted .sway { animation-duration: 8s; }
.garden .cloud { animation: drift 24s linear infinite alternate; }
.garden .badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .8); font-size: 13px; color: var(--ink-2); }
.garden .badge.bad { color: #b28a2e; background: #fff6d8; }
.garden-foot { padding: 14px 18px 18px; background: rgba(255, 255, 255, .6); }
.garden-foot .line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.garden-foot .pts { font-size: 22px; }
.garden-foot .pts small { font-size: 13px; color: var(--muted); }
.garden-foot .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.forest { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 10px; align-items: flex-end; }
.forest svg { width: 34px; height: 34px; }
.ask h3 { font-size: 17px; margin-bottom: 4px; }
.ask .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.answers { display: grid; gap: 10px; }
.answer { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--line); text-align: left; transition: all .3s var(--ease); }
.answer:hover { transform: translateY(-2px); }
.answer .e { font-size: 24px; }
.answer small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.answer.on.peace { border-color: var(--leaf); background: var(--leaf-soft); }
.answer.on.madeup { border-color: #ffc27a; background: #fff3e0; }
.answer.on.bad { border-color: #e2c26a; background: #fff8dc; }
.status { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days i { width: 14px; height: 14px; border-radius: 50%; background: var(--leaf); }
.days i.madeup { background: #ffc27a; }
.days i.bad { background: var(--wilt); }
.legend { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes drift { to { transform: translateX(26px); } }
@keyframes fall { to { transform: translate(var(--fx, 10px), 80px) rotate(160deg); opacity: 0; } }
.leaf-fall { animation: fall 5s ease-in infinite; animation-delay: var(--d, 0s); }

/* ---------- 照片 ---------- */
.photos { display: grid; gap: 6px; margin: 4px 0 10px; grid-template-columns: repeat(2, 1fr); }
.photos.one { grid-template-columns: 1fr; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; cursor: zoom-in; background: var(--pink-soft); display: block; }
.photos.one img { aspect-ratio: auto; max-height: 420px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(40, 28, 32, .86); display: grid; place-items: center; padding: 16px; animation: fade .2s both; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview { position: relative; width: 64px; height: 64px; }
.preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.preview button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.preview button svg.i { width: 12px; height: 12px; stroke-width: 3; }
.composer .left { display: flex; align-items: center; gap: 12px; }

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-weight: 600; font-size: 17px; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); font-size: 18px; }
.cal-nav:hover { background: var(--pink-soft); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; text-align: center; }
.cal .dow { font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.cal-day { position: relative; aspect-ratio: 1; max-height: 44px; margin: 0 auto; width: 100%; max-width: 44px; border-radius: 50%; font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); }
.cal-day.has { color: var(--ink); font-weight: 600; background: var(--pink-soft); }
.cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--pink-deep); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--pink); }
.cal-day.sel { background: linear-gradient(135deg, #ffa3bb, var(--pink-deep)); color: #fff; transform: scale(1.08); }
.cal-day.sel::after { background: #fff; }
.cal-day:disabled { cursor: default; opacity: .8; }
.filter-line { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 0 6px; }
