/* ==========================================================================
   千城·世纪城二期C地块 · 物业收费系统 业主端
   移动优先 · 无构建依赖 · 原生 CSS
   ========================================================================== */

:root {
  --bg: #eef2f0;
  --surface: #ffffff;
  --surface-2: #f6f9f8;
  --surface-3: #eaf0ed;

  --ink: #0e1714;
  --ink-2: #4d5a55;
  --ink-3: #8b9993;
  --ink-inverse: #ffffff;

  --line: #e2e9e6;
  --line-strong: #d2ddd9;

  --accent: #0e7a5a;
  --accent-strong: #0a5e45;
  --accent-soft: #e9f3ef;
  --accent-line: #bcdfd2;

  --danger: #b23a2c;
  --danger-soft: #fbecea;
  --warn-ink: #8a5a10;
  --warn-soft: #fdf3e2;

  --r-card: 16px;
  --r-ctl: 12px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(14, 23, 20, 0.04);
  --shadow-2: 0 1px 2px rgba(14, 23, 20, 0.04), 0 14px 30px rgba(14, 23, 20, 0.07);
  --shadow-3: 0 -8px 40px rgba(14, 23, 20, 0.16);

  --tabbar: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }

svg { display: block; flex: none; }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 应用外壳 */
.app {
  position: relative;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}

@media (min-width: 760px) {
  body {
    background: radial-gradient(1200px 600px at 50% -10%, #1a2b26 0%, #101715 60%, #0c1211 100%);
    padding: 28px 0;
  }
  .app {
    min-height: min(880px, calc(100dvh - 56px));
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.45);
  }
}

.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 60dvh;
  color: var(--ink-3);
  font-size: 14px;
}
.boot-mark {
  width: 42px; height: 42px;
  border-radius: var(--r-ctl);
  background: var(--accent);
  animation: bootPulse 1.4s ease-in-out infinite;
}
@keyframes bootPulse {
  0%, 100% { transform: scale(0.86); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  background: rgba(238, 242, 240, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar h1 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.topbar .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.icon-btn:active { transform: scale(0.94); background: var(--surface-3); }
.icon-btn .dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}

/* ---------------------------------------------------------------- 视图容器 */
.view {
  padding: 4px 16px calc(var(--tabbar) + var(--safe-b) + 28px);
  animation: viewIn 0.26s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.section-title .more {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ---------------------------------------------------------------- 房屋主卡 */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 18px 18px 16px;
  border-radius: var(--r-card);
  color: var(--ink-inverse);
  background: linear-gradient(158deg, #128c67 0%, #0e7a5a 42%, #0a5f46 100%);
  box-shadow: var(--shadow-2);
}
.hero::after {
  content: "";
  position: absolute;
  right: -54px; top: -46px;
  width: 220px; height: 220px;
  border-radius: 34px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02));
  transform: rotate(24deg);
}
.hero::before {
  content: "";
  position: absolute;
  right: 26px; bottom: -62px;
  width: 132px; height: 132px;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  transform: rotate(24deg);
}
.hero > * { position: relative; z-index: 1; }

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}
.hero-head .tag {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
}
.hero-room {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-room small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}
.hero-amount {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}
.hero-amount .value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 4px;
  font-size: 38px;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-amount .value .yen { font-size: 20px; font-weight: 500; }
.hero-note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-ctl);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}
.btn:active { transform: translateY(1px); }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: var(--ink-inverse); }
.btn-accent:active { background: var(--accent-strong); }
.btn-light { background: var(--ink-inverse); color: var(--accent-strong); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.hero .btn-light { flex: 1; }
.hero .btn-ghost {
  flex: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink-inverse);
}

/* ---------------------------------------------------------------- 通用卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 10px; }

.balance {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}
.balance .icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--accent);
}
.balance .body { flex: 1; min-width: 0; }
.balance .body .k { font-size: 12.5px; color: var(--ink-3); }
.balance .body .v {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.balance .body .t {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- 快捷功能 */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 6px;
  margin-top: 12px;
}
.quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-radius: var(--r-ctl);
  font-size: 12px;
  color: var(--ink-2);
  transition: transform 0.14s ease;
}
.quick button:active { transform: scale(0.95); }
.quick .ic {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  color: var(--accent);
}

/* ---------------------------------------------------------------- 公告 */
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 12.5px;
}
.notice span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- 账单卡 */
.bill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.bill + .bill { margin-top: 8px; }
.bill.is-overdue { border-color: #f0cdc7; background: #fffafa; }
.bill.is-selected { border-color: var(--accent); background: #fbfdfc; box-shadow: 0 0 0 1px var(--accent); }
.bill-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bill-period {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bill-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}
.bill-amount {
  text-align: right;
  white-space: nowrap;
}
.bill-amount .n { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.bill-amount .u { font-size: 12px; color: var(--ink-3); }
.bill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
}
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip.accent { background: var(--accent-soft); color: var(--accent-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.paid { background: var(--accent-soft); color: var(--accent-strong); }
.badge.unpaid { background: var(--surface-3); color: var(--ink-2); }
.badge.overdue { background: var(--danger-soft); color: var(--danger); }

.year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.year-head .sum { font-weight: 400; color: var(--ink-3); }

/* ---------------------------------------------------------------- 筛选条 */
.filter {
  display: flex;
  gap: 8px;
  padding: 10px 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter::-webkit-scrollbar { display: none; }
.filter button {
  flex: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.filter button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-inverse);
}

/* ---------------------------------------------------------------- 底部结算条 */
.checkbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar) + var(--safe-b));
  z-index: 25;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  animation: slideUp 0.24s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes slideUp {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}
.checkbar .info { flex: 1; }
.checkbar .info .k { font-size: 11.5px; color: var(--ink-3); }
.checkbar .info .v { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.checkbar .btn { flex: none; min-width: 116px; }

/* ---------------------------------------------------------------- 标签栏 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--tabbar);
  font-size: 10.5px;
  color: var(--ink-3);
  transition: color 0.16s ease;
}
.tabbar button[aria-selected="true"] { color: var(--accent); }
.tabbar button:active { transform: scale(0.96); }

/* ---------------------------------------------------------------- 行列表 */
.rows { overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  background: var(--surface);
  transition: background 0.14s ease;
}
.row + .row { border-top: 1px solid var(--line); }
.row:active { background: var(--surface-2); }
.row .ic {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  color: var(--accent);
}
.row .body { flex: 1; min-width: 0; }
.row .body .k { display: block; font-size: 14.5px; }
.row .body .t { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.row .tail {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--ink-3);
}
.row .tail .v { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- 记录条目 */
.rec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.rec + .rec { margin-top: 8px; }
.rec .ic {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--accent);
}
.rec .body { flex: 1; min-width: 0; }
.rec .body .k { font-size: 14.5px; font-weight: 500; }
.rec .body .t { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.rec .body .id { margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.rec .right { text-align: right; white-space: nowrap; }
.rec .right .v { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- 消息 */
.msg {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.msg + .msg { margin-top: 8px; }
.msg.is-unread { border-color: var(--accent-line); background: #fbfdfc; }
.msg-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}
.msg-top .t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.msg-top .time { flex: none; margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.msg p { margin: 0; font-size: 13px; color: var(--ink-2); }
.unread-dot {
  width: 7px; height: 7px;
  margin-top: 7px;
  border-radius: var(--r-pill);
  background: var(--danger);
}

/* ---------------------------------------------------------------- 我的 */
.profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  margin-top: 8px;
  border-radius: var(--r-card);
  background: linear-gradient(150deg, #ffffff 0%, #f2f8f5 100%);
  border: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink-inverse);
  font-size: 18px;
  font-weight: 600;
}
.profile .body .k { font-size: 16px; font-weight: 600; }
.profile .body .t { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 表单 */
.field { padding: 14px; }
.field + .field { border-top: 1px solid var(--line); }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 支付 */
.pay-list { padding: 6px 0; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
}
.pay-opt + .pay-opt { border-top: 1px solid var(--line); }
.pay-opt .ic {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  color: var(--ink-2);
}
.pay-opt .ic.wechat { background: #e7f6ec; color: #16a05a; }
.pay-opt .ic.alipay { background: #eaf1fb; color: #1677d2; }
.pay-opt .ic.balance { background: var(--accent-soft); color: var(--accent); }
.pay-opt .body { flex: 1; }
.pay-opt .body .k { display: block; font-size: 15px; }
.pay-opt .body .t { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.pay-opt[aria-pressed="true"] { background: var(--accent-soft); }
.pay-opt[aria-pressed="true"] .body .k { color: var(--accent-strong); font-weight: 600; }

.radio {
  width: 20px; height: 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.pay-opt[aria-pressed="true"] .radio { border-color: var(--accent); }
.pay-opt[aria-pressed="true"] .radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

.summary {
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--surface-2);
}
.summary .line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.summary .line + .line { margin-top: 9px; }
.summary .line.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
}
.summary .line.total .v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.summary .v.neg { color: var(--accent); }

/* ---------------------------------------------------------------- 浮层 */
.layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  background: rgba(12, 20, 17, 0.42);
  backdrop-filter: blur(2px);
  animation: fade 0.2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  align-self: flex-end;
  width: min(430px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-3);
  animation: sheetUp 0.28s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.sheet-grip {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 26px;
  background: var(--bg);
}
.sheet-grip::after {
  content: "";
  width: 36px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 12px;
}
.sheet-head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; }
.sheet-body { padding: 0 16px calc(20px + var(--safe-b)); }
.sheet-foot {
  position: sticky;
  bottom: 0;
  padding: 12px 16px calc(16px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 72%, rgba(238, 242, 240, 0));
}

.fullpage {
  width: min(430px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: slideLeft 0.26s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes slideLeft {
  from { transform: translateX(24px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
.fullpage .scroll { flex: 1; overflow-y: auto; padding: 4px 16px 24px; }

/* ---------------------------------------------------------------- 凭证 */
.receipt {
  margin-top: 8px;
  padding: 22px 18px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.receipt .seal {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.receipt .amount {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.receipt .amount small { font-size: 18px; font-weight: 500; }
.receipt .meta { margin-top: 18px; text-align: left; }
.receipt .meta .line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.receipt .meta .k { color: var(--ink-3); flex: none; }
.receipt .meta .v { text-align: right; word-break: break-all; }

/* ---------------------------------------------------------------- 骨架/空态 */
.skeleton {
  height: 92px;
  margin-bottom: 8px;
  border-radius: var(--r-card);
  background: linear-gradient(90deg, var(--surface-3) 25%, #f4f8f6 37%, var(--surface-3) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.empty {
  padding: 54px 24px;
  text-align: center;
}
.empty .ic {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.empty h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.empty p { margin: 0; font-size: 13px; color: var(--ink-3); }
.empty .btn { margin-top: 18px; }

/* ---------------------------------------------------------------- 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar) + var(--safe-b) + 24px);
  z-index: 90;
  transform: translateX(-50%);
  max-width: min(430px, 86vw);
  padding: 11px 16px;
  border-radius: var(--r-ctl);
  background: rgba(14, 23, 20, 0.92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.24s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------------------------------------------------------- 明细行 */
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 13.5px;
}
.kv + .kv { border-top: 1px solid var(--line); }
.kv .k { color: var(--ink-2); }
.kv .k small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.kv .v { white-space: nowrap; font-weight: 500; }

/* ---------------------------------------------------------------- 提示块 */
.callout {
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- 无障碍 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-contrast: more) {
  .card, .bill, .rec, .msg { border-color: var(--ink-3); }
}
