/* 小站 · 样式
   两套主题：小钓=墨绿，小冷=雾粉。切身份整套配色跟着换。
   字号整体放大一档，手机上不用放大看。 */

:root {
  --d: #2f5b55;        /* 小钓 · 墨绿 */
  --d-bg: #d6e6e2;
  --l: #a8526d;        /* 小冷 · 雾粉 */
  --l-bg: #f8e3e8;
}

/* 默认 = 小钓 */
body, body.theme-diao {
  --bg: #f4f2ee;
  --card: #ffffff;
  --line: #e7e2da;
  --text: #2b2724;
  --muted: #8d867d;
  --faint: #a9a29a;
  --accent: #3f6f76;
  --accent-ink: #2c565c;
  --accent-soft: #e4eeed;
  --wx-a: #e5eeef;
  --wx-b: #f6f2e6;
  --wx-line: #dfe4df;
  --dash: #d6dcd9;
}

/* 小冷 = 雾粉（灰调，不甜） */
body.theme-leng {
  --bg: #fbf5f6;
  --card: #ffffff;
  --line: #f0e2e6;
  --text: #2f2729;
  --muted: #96858b;
  --faint: #b3a0a6;
  --accent: #b3708a;
  --accent-ink: #8f5268;
  --accent-soft: #f8e9ee;
  --wx-a: #f9eaee;
  --wx-b: #fdf6f3;
  --wx-line: #f2e0e6;
  --dash: #e9d5db;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease;
}
#app { max-width: 540px; margin: 0 auto; padding: 0 16px 96px; }

/* 顶栏 */
.top { display: flex; align-items: center; gap: 9px; padding: 22px 2px 14px; }
.top .d1 { font-size: 25px; font-weight: 700; letter-spacing: -.5px; }
.top .d2 { font-size: 14px; color: var(--muted); }
.top .me { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, opacity .15s ease;
}
.av.d { background: var(--d-bg); color: var(--d); }
.av.l { background: var(--l-bg); color: var(--l); }
.av.off { opacity: .38; transform: scale(.92); }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.sec {
  font-size: 13px; color: var(--muted); margin: 20px 2px 9px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.sec span { font-size: 12px; color: var(--faint); }
.sec a { font-size: 12px; color: var(--accent); text-decoration: none; }

/* 登录页 */
.login { padding: 64px 4px 0; text-align: center; }
.login-mark { font-size: 26px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
.login-people { display: flex; gap: 14px; justify-content: center; margin: 34px 0 24px; }
.login-who {
  width: 62px; height: 62px; border-radius: 50%; border: 2px solid transparent;
  background: var(--accent-soft); color: var(--muted);
  font-size: 19px; font-weight: 700; font-family: inherit;
}
.login-who.on.d { background: var(--d-bg); color: var(--d); border-color: var(--d); }
.login-who.on.l { background: var(--l-bg); color: var(--l); border-color: var(--l); }
.login-pwd { text-align: center; letter-spacing: 3px; }
.login-err { font-size: 13px; color: #b4544f; margin-top: 12px; min-height: 18px; }

/* 天气左右两栏 */
.wx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wx-half {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 13px; display: flex; flex-direction: column; gap: 8px;
}
.wx-who { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.wx-mini { display: flex; align-items: center; gap: 9px; }
.wx-mini .ic { font-size: 26px; line-height: 1; }
.wx-mini .t { font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.wx-mini .lb { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.wx-place { font-size: 11px; color: var(--faint); }
.wx-btn {
  margin-top: auto; border: 1px solid var(--dash); background: none; color: var(--accent);
  border-radius: 999px; padding: 5px 0; font-size: 12px; font-family: inherit; width: 100%;
}

/* 长按操作菜单 */
.act-sheet { padding-top: 16px; }
.act-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.act {
  border: 0; border-radius: 13px; padding: 15px; font-size: 16px; font-family: inherit;
  background: #fff; color: var(--text); font-weight: 600;
}
.act.danger-t { color: #b4544f; }
.act.cancel { margin-top: 10px; background: none; color: var(--muted); font-weight: 400; }

/* 天气 */
.wx {
  background: linear-gradient(135deg, var(--wx-a) 0%, var(--wx-b) 100%);
  border: 1px solid var(--wx-line); border-radius: 18px; padding: 15px 16px;
}
.wx-top { display: flex; align-items: center; gap: 13px; }
.wx .ic { font-size: 36px; line-height: 1; }
.wx .t { font-size: 27px; font-weight: 700; letter-spacing: -1px; }
.wx .lb { font-size: 13px; color: var(--muted); margin-top: 2px; }
.wx .ed {
  margin-left: auto; font-size: 12px; color: var(--accent);
  border: 1px solid var(--dash); border-radius: 999px; padding: 5px 11px;
  background: none; font-family: inherit;
}

/* 碎碎念 */
.memo-list { border-top: 1px dashed var(--dash); margin-top: 13px; padding-top: 10px; }
.memo { display: flex; gap: 8px; padding: 6px 0; align-items: flex-start; }
.who2 {
  font-size: 11px; padding: 2px 6px; border-radius: 6px;
  white-space: nowrap; margin-top: 2px; font-weight: 600;
}
.who2.d { background: var(--d-bg); color: var(--d); }
.who2.l { background: var(--l-bg); color: var(--l); }
.memo .tx { font-size: 14.5px; line-height: 1.6; flex: 1; word-break: break-word; }
.memo .tm { font-size: 11px; color: var(--faint); white-space: nowrap; margin-top: 4px; }
.memo-add {
  font-size: 13px; color: var(--accent); padding: 9px 0 3px;
  background: none; border: 0; font-family: inherit;
}
.memo-input { display: flex; gap: 7px; padding-top: 8px; }
.memo-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}

/* 行 */
.row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.row:last-child { border-bottom: 0; }
.row .tm { font-size: 12px; color: var(--faint); flex: 0 0 46px; padding-top: 3px; }
.row .bd { flex: 1; min-width: 0; }
.row .tx { font-size: 15.5px; line-height: 1.5; }
.row .sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 6px; margin-right: 6px; font-weight: 600; }
.tag.d { background: var(--d-bg); color: var(--d); }
.tag.l { background: var(--l-bg); color: var(--l); }

/* 知道了 */
.ack {
  font-size: 12px; color: var(--muted); border: 1px solid var(--dash); background: #fff;
  border-radius: 999px; padding: 6px 11px; white-space: nowrap; margin-top: 2px; font-family: inherit;
}
.ack.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ack.sm { font-size: 11px; padding: 4px 9px; margin-top: 0; }
.ack.ro { background: var(--accent-soft); border-color: transparent; color: var(--accent); cursor: default; }

.add-line {
  margin-top: 12px; text-align: center; font-size: 14px; color: var(--accent);
  padding: 12px; border: 1px dashed var(--dash); border-radius: 14px;
  background: none; width: 100%; font-family: inherit;
}

/* 空状态 */
.empty { font-size: 13px; color: var(--faint); text-align: center; padding: 16px 0; line-height: 1.7; }

/* 底部导航 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 68px;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); max-width: 540px; margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  font-size: 11.5px; color: var(--faint); text-align: center;
  background: none; border: 0; font-family: inherit; padding: 6px 8px;
}
.tab i { display: block; font-size: 19px; font-style: normal; margin-bottom: 3px; }
.tab.on { color: var(--accent); font-weight: 700; }

/* 弹层 */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(30,28,26,.45); display: flex;
  align-items: flex-end; justify-content: center; z-index: 50;
}
.sheet {
  background: var(--bg); width: 100%; max-width: 540px;
  border-radius: 22px 22px 0 0; padding: 20px 18px 28px; max-height: 88vh; overflow-y: auto;
}
.sheet h3 { font-size: 19px; margin: 0 0 3px; }
.sheet .sub2 { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wo {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 2px; text-align: center; font-family: inherit;
}
.wo .e { font-size: 20px; display: block; line-height: 1.2; }
.wo .n { font-size: 11px; color: var(--muted); margin-top: 3px; display: block; }
.wo.on { border-color: var(--accent); background: var(--accent-soft); }
.wo.on .n { color: var(--accent); font-weight: 700; }
.stepper {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 13px; padding: 12px 16px; margin-top: 12px;
}
.stepper .v { font-size: 23px; font-weight: 700; min-width: 56px; }
.stepper .btn2 {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft);
  border: 1px solid var(--dash); font-size: 18px; color: var(--accent); font-family: inherit;
}
.stepper .lbl { font-size: 12px; color: var(--muted); margin-left: auto; }
textarea.note, input.note {
  width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px 16px;
  font-size: 15px; font-family: inherit; margin-top: 12px;
  background: #fff; color: var(--text); line-height: 1.6;
}
.save {
  width: 100%; margin-top: 16px; background: var(--accent); color: #fff; text-align: center;
  border: 0; border-radius: 14px; padding: 14px; font-size: 15px;
  font-weight: 700; font-family: inherit;
}
.danger {
  width: 100%; margin-top: 10px; background: none; color: #b4544f; text-align: center;
  border: 1px solid #e8cfcd; border-radius: 14px; padding: 12px; font-size: 14px;
  font-family: inherit;
}
.pick-row { display: flex; gap: 8px; margin-top: 12px; }

/* 课表 */
.tbl-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 10px; }
.tbl-head .st { font-size: 13px; color: var(--muted); }
.tbl { display: grid; grid-template-columns: 50px repeat(7, 1fr); gap: 4px; text-align: center; }
.tbl .hd { color: var(--muted); font-size: 12px; padding: 3px 0; }
.tbl .hh {
  color: var(--accent); display: grid; place-items: center; font-size: 12px;
  border: 0; background: none; font-family: inherit; font-weight: 600;
  text-decoration: underline dotted var(--dash); text-underline-offset: 3px;
}
.tbl .cl {
  border-radius: 7px; background: var(--accent-soft); min-height: 42px; display: grid;
  place-items: center; color: var(--faint); font-size: 10.5px; line-height: 1.2;
  padding: 3px; border: 0; font-family: inherit;
}
.tbl .cl.d { background: var(--d-bg); color: var(--d); font-weight: 700; }
.tbl .cl.l { background: var(--l-bg); color: var(--l); font-weight: 700; }

/* 吃什么 */
.dish { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: 0; }
.dish .nm { font-size: 16px; font-weight: 600; }
.dish .mt { font-size: 12px; color: var(--faint); margin-top: 3px; }
.dish .cnt { font-size: 12px; color: var(--l); margin-left: auto; white-space: nowrap; font-weight: 600; }
.vote {
  font-size: 12px; color: #fff; background: var(--accent); border: 0; border-radius: 999px;
  padding: 7px 13px; white-space: nowrap; font-family: inherit;
}
.vote.off { background: var(--accent-soft); color: var(--muted); }

/* 日期筛选行 */
.date-row { display: flex; gap: 8px; align-items: center; padding: 2px 0 4px; flex-wrap: wrap; }
.date-in {
  flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 13px; font-family: inherit; background: #fff; color: var(--text);
}
.date-sep { font-size: 12px; color: var(--faint); }

/* 秋后账 / 秋后算账 */
.seg { display: flex; gap: 0; background: var(--accent-soft); border-radius: 12px; padding: 4px; margin: 2px 0 12px; }
.seg button {
  flex: 1; border: 0; background: none; font-family: inherit; font-size: 14px;
  color: var(--muted); padding: 9px 0; border-radius: 9px; font-weight: 600;
}
.seg button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.filter { display: flex; gap: 7px; padding: 2px 0 12px; flex-wrap: wrap; }
.chip2 {
  font-size: 13px; padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--muted); border: 0; font-family: inherit;
}
.chip2.on { background: var(--accent); color: #fff; }

.day-group { margin-top: 16px; }
.day-h { font-size: 12px; color: var(--muted); padding: 0 2px 7px; }
.tl { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tl:last-child { border-bottom: 0; }
.tl .tm { font-size: 11.5px; color: var(--faint); flex: 0 0 40px; padding-top: 3px; }
.tl .bd { flex: 1; min-width: 0; }
.tl .tx { font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.tl .meta { font-size: 11px; color: var(--faint); margin-top: 4px; }

/* 小问题（一问一答） */
.qa { padding: 13px 0; border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom: 0; }
.qa-q { display: flex; gap: 8px; align-items: flex-start; }
.qa-tx { font-size: 15px; line-height: 1.6; word-break: break-word; flex: 1; }
.qa-a {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 9px; padding: 9px 11px; border-radius: 11px; background: var(--accent-soft);
}
.qa-none { font-size: 12px; color: var(--faint); margin-top: 8px; padding-left: 2px; }
.qa-act { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.qa-time { font-size: 11.5px; color: var(--faint); margin-right: auto; }

.logout {
  font-size: 12.5px; color: var(--muted); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px; font-family: inherit;
}

/* 算账条目 */
.bill { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.bill:last-child { border-bottom: 0; }
.bill .bd { flex: 1; min-width: 0; }
.bill .tx { font-size: 15px; line-height: 1.6; word-break: break-word; }
.bill .meta { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.bill.done .tx { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dash); }
.bill-btn {
  font-size: 12px; border: 1px solid var(--dash); background: #fff; color: var(--accent);
  border-radius: 999px; padding: 6px 11px; white-space: nowrap; font-family: inherit;
}
.bill.done .bill-btn { color: var(--muted); }
.bill-mark {
  font-size: 12px; border: 0; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 7px 12px; white-space: nowrap; font-family: inherit;
}
.bill-mark.off { background: var(--accent-soft); color: var(--accent); }
