/* ============================================================
 * styles.css — 我的每日工作台（手帐感 · 温和简洁）
 * 设计基调：暖纸张背景、圆角卡片、虚线描边、柔和阴影
 * 电脑优先，移动端不溢出
 * ============================================================ */
:root {
  --paper: #f7f2ea;        /* 纸张底色 */
  --paper-2: #fbf7f0;
  --card: #fffdf9;
  --ink: #4a4036;          /* 主文字（暖褐） */
  --ink-soft: #6f655a;
  --muted: #a89c8c;
  --line: #ece2d3;         /* 描边 */
  --line-soft: #f1e9dc;
  --accent: #d98c5f;       /* 暖陶土 */
  --accent-soft: #fbe9dd;
  --green: #7a9b7e;        /* 鼠尾草绿 */
  --green-soft: #e8f0e8;
  --blue: #7c97b8;         /* 雾霾蓝 */
  --blue-soft: #e8eef5;
  --red: #c97a5c;
  --red-soft: #f8e3da;
  --yellow: #e3b04b;
  --radius: 18px;
  --shadow: 0 8px 26px rgba(120, 95, 65, 0.10);
  --shadow-sm: 0 3px 10px rgba(120, 95, 65, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%; overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ---------- 顶栏（移动端） ---------- */
.topbar {
  display: none; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.hamburger { border: none; background: var(--accent-soft); color: var(--accent);
  font-size: 20px; width: 40px; height: 40px; border-radius: 12px; }
.topbar-title { font-weight: 700; font-size: 16px; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.maxw { max-width: 1180px; margin: 0 auto; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 244px; flex: 0 0 244px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 0 6px; }
.brand-avatar {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--green-soft); display: grid; place-items: center;
  font-size: 24px; overflow: hidden; flex: 0 0 auto;
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  border: none; background: transparent; text-align: left;
  padding: 11px 13px; border-radius: 12px;
  font-size: 15px; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-item .nav-ico { font-size: 18px; width: 22px; text-align: center; }
.nav-item:hover { background: var(--card); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sidebar-foot { color: var(--muted); text-align: center; padding-top: 10px; font-size: 12px; }

/* ---------- 主内容 ---------- */
.content { flex: 1; padding: 30px 38px 70px; width: 100%; min-width: 0; }
.page-title { font-size: 23px; margin: 0 0 4px; }
.page-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 13px; }
.section-gap { margin-top: 28px; }
.h3 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }

/* 卡片（手帐感：虚线描边 + 胶带） */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card.dashed { border-style: dashed; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.tag.sample { background: #efe7da; color: #9a8b73; }

/* ---------- 首页 ---------- */
.greeting { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.greeting small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 顶部四张正方形统计卡 */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px;
}
.stat {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: var(--shadow-sm); text-align: center;
}
.stat::before { /* 胶带 */
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 54px; height: 16px; background: rgba(217,140,95,.28); border-radius: 3px;
}
.stat .stat-ico { font-size: 26px; }
.stat .stat-num { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; margin: 4px 0; }
.stat .stat-label { font-size: 12px; color: var(--muted); }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.home-card.full { grid-column: 1 / -1; }

/* 心理学卡 */
.psy-en { color: var(--muted); font-size: 12px; }
.psy-name { font-size: 21px; margin: 8px 0 10px; }
.psy-desc { color: var(--ink-soft); margin: 0; }
.psy-tip { margin-top: 14px; padding: 12px 14px; background: var(--green-soft); color: #4d6450; border-radius: 12px; font-size: 14px; }
.psy-tip::before { content: "💡 今日寄语："; font-weight: 600; }
.psy-ex { margin-top: 12px; padding: 12px 14px; background: #eef3fb; color: #3a4a63; border-left: 3px solid var(--blue); border-radius: 10px; font-size: 14px; line-height: 1.6; }
.psy-ex::before { content: "📌 举个例："; font-weight: 600; }

/* 迷你列表 */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mini-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.done .dot { background: var(--green); }
.done .txt { text-decoration: line-through; color: var(--muted); }
.empty-row { color: var(--muted); font-size: 13px; }
.card-link { display: inline-block; margin-top: 12px; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; }
.card-link:hover { text-decoration: underline; }
.mini-weather { display: flex; align-items: center; gap: 14px; }
.mini-weather .we-ico { font-size: 42px; }
.mini-weather .we-temp { font-size: 30px; font-weight: 700; }
.mini-weather .we-meta { color: var(--muted); font-size: 13px; }
.evening-box { background: var(--blue-soft); border-radius: 14px; padding: 16px 18px; font-size: 14px; color: #4a5a72; }
.evening-box h4 { margin: 0 0 8px; font-size: 15px; color: #3f4d63; }
.evening-box ul { margin: 6px 0 0; padding-left: 18px; }
.evening-note { font-size: 12px; color: #7c8aa0; margin-top: 8px; }

/* ---------- 天气 ---------- */
.weather-control { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.weather-control input { flex: 1; min-width: 200px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.btn { padding: 11px 18px; border: none; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.green { background: var(--green); }
.weather-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.weather-loading { color: var(--muted); text-align: center; padding: 28px 0; }
.weather-current { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.weather-emoji { font-size: 64px; line-height: 1; }
.weather-temp { font-size: 44px; font-weight: 700; }
.weather-city { font-size: 18px; font-weight: 600; }
.weather-meta { color: var(--muted); font-size: 14px; }
.weather-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 22px; }
.weather-day { text-align: center; background: var(--paper-2); border-radius: 12px; padding: 10px 4px; }
.weather-day .wd-date { font-size: 12px; color: var(--muted); }
.weather-day .wd-ico { font-size: 24px; margin: 4px 0; }
.weather-day .wd-temp { font-size: 13px; }
.cloth-tip, .umbrella-tip { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.cloth-tip { background: var(--blue-soft); color: #3f4d63; }
.umbrella-tip { background: var(--accent-soft); color: #9a5638; }

/* ---------- 表单通用 ---------- */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.form-row input, .form-row select, .form-row textarea {
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink);
}
.form-row input[type="text"], .form-row input[type="number"], .form-row input[type="date"], .form-row input[type="url"] { flex: 1; min-width: 150px; }
.region-wrap { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 220px; }
.region-wrap select { flex: 1; min-width: 0; }
.region-wrap .btn { flex: 0 0 auto; white-space: nowrap; padding: 9px 12px; }
textarea { resize: vertical; width: 100%; }
label.lbl { font-size: 13px; color: var(--ink-soft); }

/* ---------- 待办 ---------- */
.rate-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.rate-bar { width: 120px; height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.rate-bar > i { display: block; height: 100%; background: var(--green); }
.pri { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pri.high { background: var(--red-soft); color: var(--red); }
.pri.mid { background: var(--accent-soft); color: var(--accent); }
.pri.low { background: var(--green-soft); color: var(--green); }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.item .check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: var(--card); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.item .check.checked { background: var(--green); border-color: var(--green); }
.item .body { flex: 1; min-width: 0; }
.item .t { font-size: 15px; word-break: break-word; }
.item .t.done { text-decoration: line-through; color: var(--muted); }
.item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.del { border: none; background: transparent; color: var(--muted); font-size: 17px; padding: 4px 8px; border-radius: 8px; }
.del:hover { background: var(--red-soft); color: var(--red); }
.edit { border: none; background: transparent; color: var(--muted); font-size: 16px; padding: 4px 8px; border-radius: 8px; }
.edit:hover { background: var(--blue-soft); color: var(--blue); }
.item .td { font-size: 13px; color: var(--ink-soft); margin-top: 3px; word-break: break-word; white-space: pre-wrap; }
.note-card .edit { border: none; background: transparent; color: var(--muted); font-size: 17px; padding: 4px 8px; border-radius: 8px; }
.note-card .edit:hover { background: var(--accent-soft); color: var(--accent); }
.pay-ops { display: flex; flex-direction: column; gap: 6px; }
.op { border: 1px solid var(--line); background: var(--card); color: var(--accent); font-size: 13px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.op:hover { background: var(--accent-soft); color: #fff; border-color: var(--accent); }

/* ---------- 付款 ---------- */
.pay-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.pay-main { flex: 1; min-width: 0; }
.pay-title { font-weight: 600; font-size: 15px; }
.pay-info { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pay-amount { font-weight: 700; color: var(--accent); margin-left: 6px; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.badge.soon { background: var(--red-soft); color: var(--red); }
.badge.late { background: #f0cfc4; color: #a23c20; }
.badge.ok { background: var(--green-soft); color: var(--green); }

/* ---------- 报告 ---------- */
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.report-card h3 { margin: 0 0 14px; }
.report-sec { margin-bottom: 18px; }
.report-sec h4 { margin: 0 0 8px; font-size: 15px; color: var(--accent); }
.report-sec ul { margin: 0; padding-left: 20px; }
.report-sec li { margin: 4px 0; }
.report-note { font-size: 12px; color: var(--muted); background: var(--paper-2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.tab-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--ink-soft); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 英语 ---------- */
.vocab-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.vocab-progress { font-size: 14px; font-weight: 600; color: var(--green); }
.vocab-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vocab-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .1s; }
.vocab-card:hover { transform: translateY(-2px); }
.vocab-word { font-size: 19px; font-weight: 700; }
.vocab-ph { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.vocab-hidden { color: var(--ink-soft); font-size: 14px; }
.vocab-cn { margin-bottom: 6px; }
.vocab-ex { font-size: 13px; color: var(--muted); font-style: italic; border-left: 3px solid var(--accent-soft); padding-left: 10px; }
.vocab-btn { margin-top: 12px; border: 1px solid var(--line); background: var(--card); color: var(--green); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; }
.vocab-btn:hover { background: var(--green-soft); }
.vocab-card.known { border-color: var(--green-soft); background: #fbfdfb; }
.vocab-card.known .vocab-btn { background: var(--green); color: #fff; border-color: var(--green); }
.quote-card { background: linear-gradient(135deg, #fbf3e7, #f3efe6); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; margin-top: 22px; }
.quote-en { font-size: 20px; font-weight: 600; line-height: 1.5; }
.quote-zh { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.quote-tag { display: inline-block; margin-top: 14px; font-size: 11px; color: var(--muted); }

/* 默写模式 */
.dictate-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.dictate-card .dc-q { font-size: 16px; font-weight: 600; }
.dictate-card input { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.dictate-card .dc-ans { margin-top: 8px; font-size: 13px; }
.dc-ok { color: var(--green); }
.dc-no { color: var(--red); }

/* ---------- 资讯 ---------- */
.tip-card { background: var(--green-soft); border-radius: 14px; padding: 18px 20px; }
.tip-card h3 { margin: 0 0 6px; font-size: 16px; color: #3f5e4d; }
.tip-tag { font-size: 11px; color: var(--muted); }
.news-list { list-style: none; margin: 6px 0 0; padding: 0; }
.news-li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.news-li:last-child { border-bottom: none; }
.news-li a { color: var(--blue); text-decoration: none; word-break: break-all; }
.news-li a:hover { text-decoration: underline; }
.news-li .txt { color: var(--ink); }
.news-hot { color: #e0732b; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.honest-box { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); font-size: 13px; }

/* ---------- 健康 ---------- */
.health-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.health-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.health-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.health-form .field { margin-bottom: 12px; }
.health-form .field > label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.health-form input, .health-form select, .health-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.trend-box { background: var(--green-soft); border-radius: 14px; padding: 16px 18px; margin-top: 18px; font-size: 14px; color: #4d6450; }
.trend-box::before { content: "🌿 温和的趋势提醒："; font-weight: 600; }
.health-record { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow-sm); margin-bottom: 8px; font-size: 14px; flex-wrap: wrap; }
.health-record .hr-date { font-weight: 600; color: var(--accent); }
.optional-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 我的空间 ---------- */
.space-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.space-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.space-bar input, .space-bar select { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.space-bar input[type="text"] { flex: 1; min-width: 180px; }
.note-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.note-card .nc-title { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.note-card .nc-body { color: var(--ink-soft); font-size: 14px; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.note-card .nc-meta { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-size: 11px; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; }
.note-card .nc-file { margin-top: 8px; }
.note-card .nc-file a { display: inline-block; font-size: 13px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; padding: 6px 12px; text-decoration: none; word-break: break-all; }
.note-card .nc-file a:hover { text-decoration: underline; }

/* ---------- 设置 ---------- */
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; max-width: 640px; }
.set-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-prev { width: 80px; height: 80px; border-radius: 20px; background: var(--green-soft); display: grid; place-items: center; font-size: 38px; overflow: hidden; }
.avatar-prev img { width: 100%; height: 100%; object-fit: cover; }
.sync-status { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; font-size: 14px; }
.sync-status .ss-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.sync-form { flex-direction: column; align-items: stretch; gap: 6px; margin: 14px 0; }
.sync-form .lbl { margin-top: 6px; }
.sync-form input { width: 100%; }

/* ---------- 遮罩 ---------- */
.overlay { display: none; position: fixed; inset: 0; background: rgba(60,45,30,.35); z-index: 25; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 900px) {
  .topbar { display: flex; }
  .layout { display: block; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 300px; height: 100%;
    transform: translateX(-100%); transition: transform .25s ease; z-index: 28; box-shadow: 0 0 40px rgba(0,0,0,.18);
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 20px 16px 50px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .home-grid { grid-template-columns: 1fr; }
  .home-card.full { grid-column: auto; }
  .vocab-list { grid-template-columns: 1fr; }
  .weather-days { grid-template-columns: repeat(4, 1fr); }
  .weather-day:nth-child(n+5) { display: none; }
  .health-stats { grid-template-columns: repeat(2, 1fr); }
  .health-form .grid2 { grid-template-columns: 1fr; }
  .overlay.show { display: block; }
}
@media (max-width: 430px) {
  .weather-days { grid-template-columns: repeat(3, 1fr); }
  .weather-day:nth-child(n+4) { display: none; }
  .greeting { font-size: 19px; }
  .content { padding: 16px 12px 44px; }
}

/* ============================================================
 * 新增组件样式（功能增强）
 * ============================================================ */

/* 天气文字状况 + 每日文字标签 */
.weather-cond { font-size: 17px; font-weight: 600; color: var(--accent); margin: 2px 0; }
.weather-day .wd-text { font-size: 12px; color: var(--ink-soft); margin: 2px 0; }

/* 待办提醒工具条 */
.todo-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* 付款筛选与汇总 */
.pay-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-filter select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.pay-filter input[type="search"] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); min-width: 150px; }
.pay-total { margin-left: auto; font-weight: 700; color: var(--accent); font-size: 14px; }
.pay-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip.region { background: var(--blue-soft); color: var(--blue); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 6px; }
.pager .pg { padding: 8px 16px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.pager .pg:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager .pg:disabled { opacity: .45; cursor: not-allowed; }
.pager .pg-info { color: var(--ink-soft); font-size: 14px; }

/* 付款到期提醒横幅 */
.pay-remind-banner { background: var(--red-soft); border: 1px solid #f0cfc4; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.pay-remind-banner .prb-head { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.pay-remind-banner .mini-list li { font-size: 14px; color: var(--ink-soft); }

/* 设置：放到桌面指引 */
.desk-steps p { margin: 10px 0; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.desk-steps b { color: var(--accent); }

/* 健康：按钮式水杯 */
.cups { display: flex; gap: 7px; flex-wrap: wrap; }
.cup {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 18px; color: var(--muted);
  display: grid; place-items: center; transition: transform .1s, background .15s;
}
.cup:hover { transform: translateY(-2px); }
.cup.filled { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

/* 久坐提醒开关 */
.sit-remind { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--blue-soft); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }

/* 提醒 Toast */
#wb-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 86vw; text-align: center;
}
#wb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
