/* ===== Wu Peng · 白卡绿调（拾光集风） ===== */
:root {
  --main: #2f9e6e;
  --main-deep: #155e3a;
  --main-soft: #dcfce7;
  --main-ink: #166534;
  --bg1: #f5f7f6;
  --bg2: #eef1f0;
  --bg: #f5f7f6;
  --card: #ffffff;
  --surface: #f4f8f6;
  --ink: #1f2d27;
  --ink-soft: #6b7c74;
  --ink-faint: #9aa9a2;
  --sub: #6b7c74;
  --line: #e9efec;
  --brand: #1f7a4d;
  --brand-d: #155e3a;
  --brand-l: #2ea36a;
  --purple: #7c5cfc;
  --ac1: #2f9e6e; --ac2: #3a7bd5; --ac3: #e0a03b; --ac4: #d9689c;
  --ac1-bg: #f1f8f4; --ac2-bg: #eef4fb; --ac3-bg: #fbf5ea; --ac4-bg: #fbf0f6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(20,40,30,.07);
  --shadow-sm: 0 3px 12px rgba(20,40,30,.05);
  --shadow-hover: 0 4px 14px rgba(20,40,30,.12);
}
html[data-theme="dark"] {
  --main: #4ade80;
  --main-deep: #bbf7d0;
  --main-soft: #1c3a26;
  --main-ink: #86efac;
  --bg1: #0e1712;
  --bg2: #111c16;
  --bg: #0e1712;
  --card: #16211a;
  --surface: #18241e;
  --ink: #e5ece7;
  --ink-soft: #9db1a6;
  --ink-faint: #5f7268;
  --sub: #93a59b;
  --line: #24352b;
  --brand: #2ea36a;
  --brand-d: #bbf7d0;
  --brand-l: #3ec27f;
  --purple: #a78bfa;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-sm: 0 3px 12px rgba(0,0,0,.4);
  --shadow-hover: 0 4px 14px rgba(0,0,0,.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--ink); font-size: 15px; line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

/* ===== 双栏骨架：左侧白卡导航 ===== */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 216px; flex: none;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; padding: 16px 12px;
  position: sticky; top: 20px; height: calc(100vh - 40px);
  overflow-y: auto; box-shadow: var(--shadow-sm);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 8px 9px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-av {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-l), var(--brand-d)); color: #fff;
  font-weight: 800; font-size: 16px; letter-spacing: .5px;
  box-shadow: 0 5px 12px rgba(31,122,77,.30);
}
.side-logo { font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: .2px; line-height: 1.2; display: block; }
.side-logo b { color: var(--brand); }
.side-sub { font-size: 11px; color: var(--ink-faint); letter-spacing: .5px; margin-top: 3px; display: block; }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; padding-top: 8px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 12px;
  color: var(--ink-soft); font-size: 14px; font-weight: 500; position: relative;
  transition: background .15s ease, color .15s ease;
}
.side-link .ico { width: 17px; height: 17px; flex: none; opacity: .85; }
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link.on { background: linear-gradient(100deg, #eafaf1, #d9f1e5); color: var(--brand-d); font-weight: 600; }
.side-link.on::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 19px; border-radius: 3px; background: var(--brand);
}
.side-foot { padding: 11px 9px 3px; font-size: 11px; color: var(--ink-faint); border-top: 1px solid var(--line); margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.side-foot .theme-btn { width: 100%; margin-top: 2px; }
.page { flex: 1; min-width: 0; }
.wrap { max-width: 1180px; padding: 28px 34px 20px; }
.site-foot { padding: 18px 34px 26px; color: var(--sub); font-size: 12.5px; }

/* ===== 主题按钮 ===== */
.theme-btn {
  height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px;
  transition: all .15s ease;
}
.theme-btn:hover { border-color: var(--brand); color: var(--brand-d); }
.theme-btn:hover { background: rgba(255,255,255,.12); }
.theme-btn .icon { width: 15px; height: 15px; }

/* ===== 页头 ===== */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; color: var(--main-deep); font-weight: 700; letter-spacing: .5px; }
.page-head p { color: var(--sub); font-size: 13.5px; margin-top: 4px; }

/* ===== 问候区 ===== */
.greet {
  background: linear-gradient(135deg, var(--main-deep), #1d8a53);
  border-radius: var(--radius); color: #fff; padding: 24px 26px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.greet .hi { font-size: 22px; font-weight: 700; }
.greet .hi b { color: #bbf7d0; }
.greet .date { font-size: 13.5px; color: rgba(255,255,255,.85); }

/* ===== 统计卡 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--main-deep); line-height: 1.2; }
.stat-num small { font-size: 13px; color: var(--sub); font-weight: 400; margin-left: 2px; }
.stat-label { font-size: 12.5px; color: var(--sub); margin-top: 2px; }

/* ===== 板块 ===== */
.sec { margin-bottom: 26px; }
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; color: var(--main-deep); margin-bottom: 12px;
}
.sec-title .more { font-size: 13px; color: var(--main); font-weight: 500; }
.sec-title .more:hover { text-decoration: underline; }
.sec-title .tag-line { font-size: 12.5px; color: var(--sub); font-weight: 400; }

/* ===== 胶囊标签 ===== */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 15px; border-radius: 999px;
  border: 1px solid transparent; background: var(--main-soft); color: var(--main-ink);
  font-size: 13.5px; cursor: pointer; transition: all .15s ease;
}
.tag .icon { width: 13px; height: 13px; }
.tag:hover { filter: brightness(.96); }
.tag.on { background: var(--main); color: #fff; }
html[data-theme="dark"] .tag.on { color: #0e1712; }

/* ===== 搜索 ===== */
.search {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 16px; width: 210px; outline: none;
}
.search:focus { border-color: var(--main); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; border-radius: 999px;
  border: none; background: var(--main); color: #fff; font-size: 13.5px; cursor: pointer; transition: all .15s ease;
}
.btn:hover { filter: brightness(.93); }
html[data-theme="dark"] .btn { color: #0e1712; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--sub); }
.btn.ghost:hover { border-color: var(--main); color: var(--main); filter: none; }
.export-btn {
  padding: 6px 15px; border-radius: 999px; border: 1px solid var(--main); background: transparent;
  color: var(--main); font-size: 13.5px; cursor: pointer; transition: all .15s ease;
}
.export-btn:hover { background: var(--main); color: #fff; }
html[data-theme="dark"] .export-btn:hover { color: #0e1712; }

/* ===== 语录面板/卡片 ===== */
.quote-panel {
  background: var(--card); border-radius: var(--radius); padding: 22px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 20px;
}
.quote-text { font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.quote-author { margin-top: 8px; color: var(--main); font-size: 13.5px; }
.quote-ops { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.q-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative;
  border-left: 3px solid var(--main);
}
.q-card .qt { font-size: 14.5px; line-height: 1.75; }
.q-card .qa { margin-top: 8px; font-size: 12.5px; color: var(--main); }
.q-ops { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.quote-list { display: flex; flex-direction: column; gap: 8px; }
.quote-item { background: var(--bg-soft, #f0fdf4); border-left: 3px solid var(--main); border-radius: 8px; padding: 10px 12px; }
.quote-item .q-text { font-size: 14px; color: var(--ink); line-height: 1.7; }
.quote-item .q-from { font-size: 12px; color: var(--sub); margin-top: 4px; text-align: right; }
html[data-theme="dark"] .quote-item { background: var(--main-soft); }
.copy { cursor: pointer; }
.fav-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px;
  padding: 5px 13px; background: transparent; color: var(--main); border: 1px solid var(--main);
  border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.fav-btn .icon { width: 13px; height: 13px; }
.fav-btn.on { background: var(--main-soft); color: var(--main-ink); border-color: var(--main-soft); }
.fav-btn:hover { background: var(--main-soft); }

/* ===== 工具卡 ===== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: all .15s ease; cursor: pointer;
}
.tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tool-card.linkable { cursor: pointer; }
.tool-card .tool-name { font-size: 15.5px; font-weight: 700; color: var(--main-deep); margin-bottom: 6px; }
.tool-card .tool-desc { font-size: 13px; color: var(--sub); }
.t-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.t-name .icon { width: 18px; height: 18px; color: var(--main); flex: none; }
.t-name-text { font-size: 15.5px; font-weight: 700; color: var(--main-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-cat {
  flex: none; font-size: 11px; color: var(--main-ink); background: var(--main-soft);
  padding: 2px 9px; border-radius: 999px;
}
.t-desc { font-size: 13px; color: var(--sub); }

/* ===== 随笔列表 ===== */
.note-list { display: flex; flex-direction: column; gap: 12px; }
.note-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow); display: block; transition: all .15s ease;
}
.note-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.note-item h3 { font-size: 15.5px; color: var(--main-deep); }
.note-item .date { font-size: 12px; color: var(--sub); margin: 2px 0 6px; }
.note-item p { font-size: 13.5px; color: var(--sub); }

/* ===== 分页 ===== */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager .page {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); font-size: 13.5px; cursor: pointer;
}
.pager .page.on { background: var(--main); color: #fff; border-color: var(--main); }
html[data-theme="dark"] .pager .page.on { color: #0e1712; }

/* ===== 相册 ===== */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.album-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 4 / 3; position: relative; }
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.album-empty { padding: 32px; text-align: center; color: var(--sub); font-size: 13.5px; border: 1px dashed var(--main); background: var(--card); border-radius: var(--radius-sm); }

/* ===== 弹窗 ===== */
.mask { position: fixed; inset: 0; background: rgba(15,40,28,.55); display: none; align-items: center; justify-content: center; z-index: 50; }
.mask.show { display: flex; }
.dialog { background: var(--card); border-radius: var(--radius); padding: 24px; text-align: center; max-width: 320px; width: 90%; box-shadow: var(--shadow-hover); }
.dialog img { width: 200px; height: 200px; object-fit: contain; border-radius: 8px; }
.d-title { font-weight: 700; margin-top: 12px; color: var(--main-deep); }
.d-sub { font-size: 12.5px; color: var(--sub); margin-top: 4px; }

/* ===== 文章/关于 ===== */
.article, .prose {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.article h1 { font-size: 24px; color: var(--main-deep); margin-bottom: 6px; }
.article .meta { font-size: 12.5px; color: var(--sub); margin-bottom: 16px; }
.article h2, .prose h2 { font-size: 17px; color: var(--main-deep); margin: 20px 0 8px; }
.article p, .prose p { font-size: 14.5px; line-height: 1.85; margin-bottom: 10px; }
.prose ul { padding-left: 22px; margin-bottom: 10px; }
.prose li { font-size: 14.5px; line-height: 1.85; }

/* ===== 工作台功能板块 ===== */
.nav-group { font-size: 11px; color: var(--ink-faint); letter-spacing: 1px; padding: 11px 11px 4px; font-weight: 600; }
.btn-sm { padding: 4px 12px; font-size: 12.5px; border-radius: 999px; }
.btn-xs { padding: 2px 10px; font-size: 12px; border-radius: 999px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--sub); }
.btn-ghost:hover { border-color: var(--main); color: var(--main); filter: none; }
.done-btn { background: #22c55e !important; color: #fff !important; }
.welcome { background: linear-gradient(120deg, #d9f2e3, #eefaf2); border: 1px solid #cdebd8; border-radius: var(--radius); padding: 18px 22px; }
html[data-theme="dark"] .welcome { background: var(--main-soft); border-color: #1d3a2c; }
.wl-name { font-size: 21px; font-weight: 800; color: var(--main-deep); }
.wl-sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.mini-wl { padding: 12px 16px; }
.mini-wl .wl-name { font-size: 18px; }
.daily-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.daily-card .q-text { font-size: 17px; color: var(--ink); line-height: 1.7; }
.daily-card .q-from { font-size: 13px; color: var(--sub); margin-top: 8px; }
.link-line { text-decoration: none; }
.link-line:hover { color: var(--main); text-decoration: underline; }
.next-task { display: flex; align-items: center; gap: 14px; }
.next-task .nt-meta { display: flex; gap: 8px; align-items: center; flex: 1; }
.next-task .nt-cat { background: var(--main-soft); color: var(--main-deep); font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.next-task .nt-time { font-size: 12px; color: var(--sub); }
.next-task .nt-name { font-size: 16px; font-weight: 700; color: var(--ink); flex: none; }
@media (max-width: 640px) {
  .next-task { flex-wrap: wrap; }
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel-title { font-size: 15px; font-weight: 700; color: var(--main-deep); display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-title .more { font-size: 12.5px; color: var(--sub); font-weight: 400; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini { background: var(--bg-soft, #f0fdf4); border-radius: 10px; padding: 10px 6px; text-align: center; border: 1px solid var(--line); }
.mini b { display: block; font-size: 19px; color: var(--main-deep); }
.mini span { font-size: 11.5px; color: var(--sub); }
html[data-theme="dark"] .mini { background: var(--main-soft); }
.sched-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sched-item:last-child { border-bottom: 0; }
.sched-time { width: 52px; font-size: 12.5px; color: var(--sub); font-weight: 600; flex: none; padding-top: 2px; }
.sched-body .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.sched-body .d { font-size: 12px; color: var(--sub); margin-top: 2px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.todo-item:last-child { border-bottom: 0; }
.todo-item input { width: 17px; height: 17px; accent-color: var(--main); flex: none; }
.todo-item.done label { text-decoration: line-through; color: var(--sub); }
.todo-item label { flex: 1; cursor: pointer; }
.pri { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; margin-right: 10px; flex: none; }
.pri.h { background: #fee2e2; color: #b91c1c; }
.pri.m { background: #fef3c7; color: #b45309; }
.pri.l { background: #dcfce7; color: #15803d; }
html[data-theme="dark"] .pri.h { background: #3b1c1c; color: #fca5a5; }
html[data-theme="dark"] .pri.m { background: #3b2f1c; color: #fcd34d; }
html[data-theme="dark"] .pri.l { background: #1c3b2a; color: #86efac; }
.habit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.habit { text-align: center; padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: var(--card); transition: all .15s ease; }
.habit .h-icon { font-size: 16px; color: var(--main); }
.habit .h-name { font-size: 12px; color: var(--ink); margin-top: 4px; }
.habit .h-num { font-size: 11px; color: var(--sub); margin-top: 2px; }
.habit.on { background: var(--main-soft); border-color: var(--main); }
.habit.on .h-icon, .habit.on .h-num { color: var(--main-deep); }
.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip { background: var(--bg-soft, #f0fdf4); border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; font-size: 13px; color: var(--main-deep); font-weight: 600; }
html[data-theme="dark"] .chip { background: var(--main-soft); }
.chip small { display: block; font-size: 11px; color: var(--sub); font-weight: 400; margin-top: 3px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-col .bar { width: 70%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4ade80, #16a34a); min-height: 4px; }
.bar-col .lb { font-size: 11px; color: var(--sub); }
.bar-col .val { font-size: 10.5px; color: var(--main-deep); font-weight: 600; }
.word-card { background: linear-gradient(135deg, #f0fdf4, #e8f7ee); border: 1px solid #cdebd8; border-radius: 14px; padding: 18px; text-align: center; }
html[data-theme="dark"] .word-card { background: var(--main-soft); border-color: #1d3a2c; }
.word-card .w { font-size: 26px; font-weight: 800; color: var(--main-deep); }
.word-card .ph { font-size: 13px; color: var(--sub); margin-top: 4px; }
.word-card .mean { font-size: 15px; color: var(--ink); margin-top: 8px; }
.word-card .ex { font-size: 12.5px; color: var(--sub); margin-top: 8px; }
.word-card .ops { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.q-line { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.q-line:last-child { border-bottom: 0; }
.q-line .no { color: var(--main); font-weight: 700; font-size: 13px; flex: none; width: 20px; }
.q-line .en { font-size: 14px; color: var(--ink); }
.q-line .zh { font-size: 12px; color: var(--sub); margin-top: 2px; }
.q-line .act { margin-left: auto; flex: none; }
.choice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.choice:hover { border-color: var(--main); }
.choice input { accent-color: var(--main); }
.choice label { flex: 1; cursor: pointer; }
.rec-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rec-row:last-child { border-bottom: 0; }
.rec-row .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.rec-row .d { font-size: 12px; color: var(--sub); margin-top: 2px; }
.rec-row .meta { font-size: 12px; color: var(--sub); flex: none; text-align: right; }
.rec-row .meta b { color: var(--main-deep); }
.album-empty, .empty { padding: 22px; text-align: center; color: var(--sub); font-size: 13.5px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.playbar { display: flex; align-items: center; gap: 14px; background: var(--bg-soft, #f0fdf4); border-radius: 12px; padding: 12px 14px; }
html[data-theme="dark"] .playbar { background: var(--main-soft); }
.playbar .cover { width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(135deg, #22c55e, #15803d); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.playbar .p-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.playbar .p-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.playbar .p-ops { margin-left: auto; display: flex; gap: 8px; flex: none; }
.wl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wl-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wl-item h4 { font-size: 14px; color: var(--ink); }
.wl-item .tags { display: flex; gap: 6px; margin-top: 6px; }
.wl-item .tags span { font-size: 11px; background: var(--bg-soft, #f0fdf4); color: var(--main-deep); padding: 2px 8px; border-radius: 999px; }
html[data-theme="dark"] .wl-item .tags span { background: var(--main-soft); }
.wl-item .wl-desc { font-size: 12.5px; color: var(--sub); margin-top: 6px; }
.step-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.step-row:last-child { border-bottom: 0; }
.step-row .no { width: 26px; height: 26px; border-radius: 999px; background: var(--main); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.step-row .t { font-size: 14px; color: var(--ink); }
.step-row .d { font-size: 12px; color: var(--sub); margin-left: auto; flex: none; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { flex: 1; }
.note-text { background: var(--bg-soft, #f0fdf4); border-left: 3px solid var(--main); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: var(--ink); margin-top: 8px; }
html[data-theme="dark"] .note-text { background: var(--main-soft); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-soft, #f0fdf4); overflow: hidden; margin-top: 8px; }
html[data-theme="dark"] .progress { background: var(--main-soft); }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4ade80, #16a34a); }
.double-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 按钮类 more / 统计切换 / 习惯图标补充 ===== */
.panel-title button.more { background: none; border: 0; padding: 0; font-size: 12.5px; color: var(--sub); font-weight: 400; cursor: pointer; }
.panel-title button.more:hover { color: var(--main); }
.r-tab { background: none; border: 1px solid var(--line); color: var(--sub); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; }
.r-tab.on { background: var(--main); color: #fff; border-color: var(--main); }
html[data-theme="dark"] .r-tab.on { color: #0e1712; }
.chip.on { background: var(--main-soft); border-color: var(--main); }
.habit .h-icon { font-size: 13px; font-weight: 700; color: var(--main-deep); background: var(--main-soft); width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }
.add-bk.bk-on { background: var(--main) !important; color: #fff !important; border-color: var(--main) !important; }
@media (max-width: 900px) {
  input, textarea { font-size: 16px; }
}
@media (max-width: 900px) {
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .habit-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .wl-grid { grid-template-columns: 1fr; }
  .double-col { grid-template-columns: 1fr; }
  .side { width: 150px; padding: 18px 10px 14px; }
  .page { margin-left: 0; }
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .shell { flex-direction: row; }
  .side {
    width: 100px; flex: none; height: 100vh; position: sticky; top: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 12px 8px 10px; gap: 0;
  }
  .side-brand { padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; flex: none; }
  .side-av { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
  .side-logo { font-size: 14px; }
  .side-sub { display: none; }
  .side-nav { flex-direction: column; overflow-y: auto; gap: 2px; flex: 1; }
  .side-link { padding: 7px 8px; white-space: normal; font-size: 12.5px; }
  .side-link .ico { display: none; }
  .side-link.on::before { height: 16px; }
  .side-foot { display: flex; flex-direction: column; padding: 8px 6px 0; font-size: 10px; }
  .side-foot .theme-btn { height: 26px; font-size: 11px; padding: 0 8px; }
  .wrap { padding: 16px 12px 10px; }
  .site-foot { padding: 12px 16px 22px; }
  .greet { padding: 18px 20px; }
  .greet .hi { font-size: 18px; }
  .q-grid, .tool-grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .search { width: 100%; }
  .page-head h1 { font-size: 21px; }
  .article, .prose { padding: 18px 16px; }
}
