/* Holdr 移动端样式 */
:root {
  --primary: #4F6BFF;
  --primary-dark: #3a54d4;
  --bg: #f5f6fa;
  --bg-2: #f8f9fc;
  --card: #ffffff;
  --text: #1a1d26;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #10b981;
  --border: #eceef2;
  --radius: 14px;
  --tabbar-h: calc(56px + env(safe-area-inset-bottom));
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: .95rem;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

#view { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + 16px); }
#view.no-tab { padding-bottom: env(safe-area-inset-bottom); }

/* 底部 Tab */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
}
#tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .68rem; color: var(--text-3); gap: 2px; position: relative;
}
#tabbar a.active { color: var(--primary); font-weight: 600; }
.tab-ico { font-size: 1.25rem; line-height: 1; }
.badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger);
  color: #fff; font-size: .62rem; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* 页面容器 */
.page { padding: 14px; }
.page-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; }
.page-head .back { font-size: 1.4rem; color: var(--text-2); width: 28px; flex-shrink: 0; line-height: 1; }
.page-head .home-btn { font-size: 1.15rem; color: var(--primary); width: 28px; flex-shrink: 0; text-align: center; line-height: 1; }
.page-head h1 { font-size: 1.15rem; font-weight: 700; flex: 1; }
.page-head .head-action { font-size: .85rem; color: var(--primary); }

/* 卡片 */
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  margin-bottom: 12px; box-shadow: 0 1px 3px rgba(20,24,40,.04);
}
.card-title { font-weight: 700; font-size: .98rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card-title .more { font-size: .78rem; color: var(--primary); font-weight: 400; }

/* 首页 */
.home-hero {
  background: linear-gradient(135deg, #4F6BFF 0%, #6366f1 50%, #8b5cf6 100%);
  color: #fff; padding: 18px 16px 22px;
  border-bottom-left-radius: 22px; border-bottom-right-radius: 22px;
  box-shadow: 0 6px 20px rgba(79,107,255,.28);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; top: -40px; right: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.home-hero::after {
  content: ''; position: absolute; bottom: -50px; left: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.hero-greet .greet-text { font-size: 1.15rem; font-weight: 700; }
.hero-greet .greet-date { font-size: .78rem; opacity: .85; margin-top: 3px; }
.hero-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; border: 2px solid rgba(255,255,255,.35);
}
.hero-stats { display: flex; align-items: center; gap: 16px; margin-top: 16px; position: relative; z-index: 1; }
.occ-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.ring-svg { width: 100%; height: 100%; }
.occ-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
}
.occ-num span { font-size: .7rem; font-weight: 500; opacity: .9; margin-left: 1px; }
.hero-metrics { flex: 1; }
.hm-row { display: flex; align-items: center; }
.hm-item { flex: 1; text-align: center; }
.hm-v { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.hm-l { font-size: .7rem; opacity: .8; margin-top: 3px; }
.hm-div { width: 1px; height: 22px; background: rgba(255,255,255,.25); }
.hm-tip { font-size: .7rem; opacity: .75; text-align: center; margin-top: 8px; }

.home-body { padding: 14px; }

/* 本月收支大卡片 */
.income-card {
  display: block; background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 4px 16px rgba(20,24,40,.06); margin-bottom: 14px;
  border: 1px solid var(--border);
}
.ic-head { display: flex; justify-content: space-between; align-items: center; }
.ic-label { font-size: .82rem; color: var(--text-2); font-weight: 500; }
.ic-arrow { color: var(--text-3); font-size: 1.1rem; }
.ic-amount { font-size: 1.7rem; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text); }
.ic-amount.warn { color: var(--warn); }
.ic-row { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.ic-col { font-size: .78rem; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.ic-col b { color: var(--text); font-weight: 600; }
.ic-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ic-dot.income { background: var(--primary); }
.ic-dot.paid { background: var(--ok); }
.ic-dot.owed { background: var(--danger); }

/* 快捷入口 */
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; background: #fff; border-radius: 14px;
  font-size: .72rem; color: var(--text-2); border: 1px solid var(--border);
}
.q-ico {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.q-1 { background: #eef2ff; }
.q-2 { background: #fef3c7; }
.q-3 { background: #d1fae5; }
.q-4 { background: #fce7f3; }

/* 数据卡片网格 */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.h-card {
  display: flex; gap: 12px; align-items: center; background: #fff;
  border-radius: 14px; padding: 14px; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(20,24,40,.04); position: relative; overflow: hidden;
}
.h-card::after {
  content: ''; position: absolute; right: -12px; top: -12px;
  width: 44px; height: 44px; border-radius: 50%; opacity: .12;
}
.hc-blue::after { background: #4F6BFF; }
.hc-orange::after { background: #f59e0b; }
.hc-green::after { background: #10b981; }
.hc-purple::after { background: #8b5cf6; }
.hc-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.hc-blue .hc-ico { background: #eef2ff; }
.hc-orange .hc-ico { background: #fef3c7; }
.hc-green .hc-ico { background: #d1fae5; }
.hc-purple .hc-ico { background: #ede9fe; }
.hc-body { flex: 1; min-width: 0; }
.hc-v { font-size: 1.3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hc-v.danger { color: var(--danger); }
.hc-l { font-size: .82rem; color: var(--text); font-weight: 600; margin-top: 2px; }
.hc-s { font-size: .68rem; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 楼栋分布 */
.bld-card { margin-bottom: 0; }
.dist-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dist-row:last-child { border-bottom: none; }
.dist-row .bname { flex: 0 0 auto; font-size: .88rem; font-weight: 500; min-width: 70px; }
.dist-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.dist-num { font-size: .78rem; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

/* 列表 */
.list-item {
  background: #fff; border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; font-size: .93rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-item .li-sub { font-size: .75rem; color: var(--text-2); margin-top: 3px; }
.list-item .li-right { text-align: right; flex-shrink: 0; font-size: .78rem; color: var(--text-2); }
.list-item .li-right .amount { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.list-item .arrow { color: var(--text-3); font-size: 1rem; }

/* 标签徽章 */
.tag { display: inline-block; font-size: .66rem; padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.tag.ok { background: #e7f8f2; color: var(--ok); }
.tag.warn { background: #fef4e2; color: var(--warn); }
.tag.danger { background: #fdeaea; color: var(--danger); }
.tag.info { background: #eef1ff; color: var(--primary); }
.tag.gray { background: #f0f1f5; color: var(--text-2); }

/* 按钮 */
.btn {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: .95rem; font-weight: 600;
  text-align: center; cursor: pointer;
}
.btn:active { background: var(--primary-dark); }
.btn.ghost { background: #eef1ff; color: var(--primary); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 8px 14px; font-size: .8rem; width: auto; display: inline-block; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.fab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #fff 30%);
}

/* 表单 */
.form-card { background: #fff; border-radius: var(--radius); padding: 4px 14px; margin-bottom: 12px; }
.field { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.field:last-child { border-bottom: none; }
.field label { width: 92px; flex-shrink: 0; font-size: .86rem; color: var(--text-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  flex: 1; border: none; outline: none; font-size: .93rem; background: transparent;
  color: var(--text); font-family: inherit; min-width: 0;
}
.field input::placeholder { color: var(--text-3); }
.field textarea { resize: none; min-height: 60px; }
.field input[type=date] { -webkit-appearance: none; appearance: none; }
.form-section { font-size: .78rem; color: var(--text-3); margin: 14px 2px 8px; font-weight: 600; }

/* 筛选 chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 10px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px; background: #fff;
  font-size: .8rem; color: var(--text-2); border: 1px solid var(--border);
}
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* 搜索 */
.search-bar { padding: 0 14px 10px; }
.search-bar input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 22px;
  background: #fff; outline: none; font-size: .88rem;
}

/* 空态 */
.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty .ico { font-size: 2.6rem; margin-bottom: 10px; }
.empty p { font-size: .85rem; }

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 26px;
  background: linear-gradient(160deg, #4F6BFF 0%, #7b5cf0 45%, #f5f6fa 60%);
}
.login-logo { text-align: center; margin-bottom: 34px; color: #fff; }
.login-logo .logo-box {
  width: 68px; height: 68px; border-radius: 18px; background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3);
}
.login-logo h1 { font-size: 1.5rem; margin-top: 12px; }
.login-logo p { font-size: .8rem; opacity: .85; margin-top: 4px; }
.login-card { background: #fff; border-radius: 20px; padding: 24px 20px; box-shadow: 0 10px 40px rgba(40,50,120,.15); }
.login-card input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px;
  font-size: .95rem; outline: none; margin-bottom: 14px; background: #fafbfc;
}
.login-card input:focus { border-color: var(--primary); background: #fff; }

/* Toast */
#toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: rgba(20, 22, 30, .85); color: #fff; padding: 11px 20px; border-radius: 10px;
  font-size: .86rem; z-index: 999; max-width: 76vw; text-align: center; line-height: 1.5;
}

/* Modal / ActionSheet */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,18,30,.5); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-mask.center { align-items: center; justify-content: center; padding: 30px; }
.modal-panel {
  background: #fff; width: 100%; border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow-y: auto; animation: slideUp .22s ease;
}
.modal-mask.center .modal-panel { border-radius: 18px; animation: fadeIn .18s ease; }
@keyframes slideUp { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-title { font-size: 1rem; font-weight: 700; text-align: center; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-item { padding: 15px; text-align: center; font-size: .95rem; border-bottom: 1px solid var(--border); }
.sheet-item:last-child { border-bottom: none; }
.sheet-item.danger { color: var(--danger); }
.sheet-cancel { margin-top: 10px; border-radius: 12px; background: var(--bg); }

/* 描述列表 */
.kv { display: flex; padding: 7px 0; font-size: .87rem; }
.kv .k { width: 96px; color: var(--text-3); flex-shrink: 0; }
.kv .v { flex: 1; word-break: break-all; }
.kv .v.bold { font-weight: 700; }

/* 分割线 */
.divider { height: 10px; }

/* 金额 */
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.money.danger { color: var(--danger); }
.money.ok { color: var(--ok); }

/* 快捷联系 */
.contact-row { display: flex; gap: 10px; margin-top: 10px; }
.contact-row a, .contact-row button {
  flex: 1; padding: 9px; border-radius: 10px; text-align: center; font-size: .82rem;
  background: #eef1ff; color: var(--primary); border: none; font-weight: 600;
}

/* 结算单 */
.settle-box { background: #fdf6ec; border: 1px solid #f5dfa8; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.settle-box .kv .k { color: #92650a; }

/* 附件 */
.attach-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.attach-row:last-child { border-bottom: none; }
.attach-row .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-row a { color: var(--primary); flex-shrink: 0; }
.attach-row .del { color: var(--danger); flex-shrink: 0; }

/* 附件缩略图网格 */
.att-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
.att-thumb { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; border: 1px solid var(--border); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-thumb .pdf-ico { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eef1ff; color: var(--primary); font-size: .7rem; text-align: center; padding: 4px; gap: 4px; }
.att-thumb .pdf-ico svg { font-size: 1.6rem; }
.att-thumb .fname-cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .65rem; padding: 12px 4px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-thumb .del-att { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; font-size: .75rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Lightbox 放大预览 */
.lb-mask { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; z-index: 1; }
.lb-body { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 14px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-pdf { width: 100%; height: 100%; border: none; background: #fff; border-radius: 4px; }

/* ===== 房间卡片网格 ===== */
.head-action { font-weight: 600; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room-card { display: block; background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--border); position: relative; overflow: hidden; color: inherit; box-shadow: 0 2px 10px rgba(40,50,120,.04); }
.room-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border); }
.room-card.rented::before { background: var(--ok); }
.room-card.vacant::before { background: var(--primary); }
.room-card.repair::before { background: var(--warn); }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rc-no { font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.rc-mid { font-size: .7rem; color: var(--text-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-top: 7px; font-variant-numeric: tabular-nums; }
.rc-price span { font-size: .68rem; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.rc-tenant { font-size: .7rem; color: var(--text-2); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tenant.empty { color: var(--text-3); }

/* ===== 账单合计 / 卡片 ===== */
.bill-sum { display: flex; background: #fff; border-radius: 14px; padding: 14px 6px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(40,50,120,.05); }
.bs-item { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.bs-item:last-child { border-right: none; }
.bs-l { font-size: .68rem; color: var(--text-3); margin-bottom: 4px; }
.bs-v { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bs-v.ok { color: var(--ok); }
.bs-v.danger { color: var(--danger); }
.bill-card { display: block; background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(40,50,120,.05); color: inherit; }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bc-room { font-size: .92rem; color: var(--text-2); }
.bc-room b { font-size: 1rem; color: var(--text); }
.bc-sub { font-size: .72rem; color: var(--text-3); margin-top: 5px; }
.bc-bar { height: 5px; border-radius: 3px; background: #eef0f5; margin: 10px 0 7px; overflow: hidden; }
.bc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4F6BFF, #7b5cf0); }
.bc-bar i.danger { background: linear-gradient(90deg, #ff8a65, #f0483e); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--text-3); }
.bc-amt { font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bc-amt.danger { color: var(--danger); }
.bc-amt.ok { color: var(--ok); }

/* ===== 押金台账 ===== */
.dep-hero { background: linear-gradient(135deg, #4F6BFF 0%, #7b5cf0 100%); border-radius: 18px; padding: 18px 18px 14px; color: #fff; margin-bottom: 6px; box-shadow: 0 10px 24px rgba(79,107,255,.25); }
.dh-label { font-size: .75rem; opacity: .85; }
.dh-value { font-size: 1.9rem; font-weight: 800; margin: 4px 0 12px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dh-row { display: flex; align-items: center; background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 0; }
.dh-item { flex: 1; text-align: center; }
.dh-item b { display: block; font-size: .9rem; }
.dh-item span { font-size: .66rem; opacity: .8; }
.dh-div { width: 1px; height: 22px; background: rgba(255,255,255,.28); }
.dep-row { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 9px; color: inherit; box-shadow: 0 2px 10px rgba(40,50,120,.05); }
.dep-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #eef1ff, #dfe4ff); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dep-info { flex: 1; min-width: 0; }
.dep-name { font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dep-meta { font-size: .68rem; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-bal { text-align: right; flex-shrink: 0; }
.dep-bal .v { font-size: .95rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.dep-bal .l { font-size: .63rem; color: var(--text-3); }
.flow-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 6px rgba(40,50,120,.04); }
.flow-dot { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; flex-shrink: 0; }
.flow-dot.in { background: #e7f8f2; color: var(--ok); }
.flow-dot.out { background: #fdeaea; color: var(--danger); }
.flow-main { flex: 1; min-width: 0; }
.flow-title { font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.flow-sub { font-size: .66rem; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-amt { font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.flow-amt.in { color: var(--ok); }
.flow-amt.out { color: var(--danger); }

/* ===== 我的 ===== */
.me-head { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #4F6BFF 0%, #7b5cf0 100%); border-radius: 18px; padding: 20px 18px; color: #fff; box-shadow: 0 10px 24px rgba(79,107,255,.24); }
.me-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; flex-shrink: 0; }
.me-name { font-size: 1.05rem; font-weight: 700; }
.me-sub { font-size: .72rem; opacity: .82; margin-top: 3px; }
.me-menu { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(40,50,120,.05); }
.me-item { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: .88rem; color: inherit; }
.me-item:last-child { border-bottom: none; }
.me-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.me-arrow { margin-left: auto; color: var(--text-3); }
.i-blue { background: #eef1ff; }
.i-orange { background: #fef4e2; }
.i-green { background: #e7f8f2; }
.i-purple { background: #f3edff; }
.i-red { background: #fdeaea; }

/* ===== 提醒中心 ===== */
.remind-sum { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 4px; box-shadow: 0 2px 10px rgba(40,50,120,.05); }
.rs-left b { font-size: 1.5rem; font-weight: 800; color: var(--danger); margin-right: 5px; font-variant-numeric: tabular-nums; }
.rs-left span { font-size: .74rem; color: var(--text-2); }
.rs-right { font-size: .72rem; color: var(--text-3); }
.remind-card { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 9px; box-shadow: 0 2px 10px rgba(40,50,120,.05); }
.remind-card.done { opacity: .58; }
.remind-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.remind-main { flex: 1; min-width: 0; color: inherit; }
.remind-title { font-size: .86rem; font-weight: 700; }
.remind-detail { font-size: .7rem; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remind-btn { flex-shrink: 0; border: none; background: #eef1ff; color: var(--primary); font-size: .7rem; font-weight: 700; padding: 7px 10px; border-radius: 9px; }
.remind-btn.ghost { background: #f0f1f5; color: var(--text-2); }

/* ===== 使用统计 ===== */
.use-hero { background: linear-gradient(135deg, #4F6BFF 0%, #7b5cf0 100%); border-radius: 18px; padding: 18px 18px 14px; color: #fff; box-shadow: 0 10px 24px rgba(79,107,255,.25); }
.uh-label { font-size: .75rem; opacity: .85; }
.uh-value { font-size: 2rem; font-weight: 800; margin: 4px 0 12px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.uh-row { display: flex; align-items: center; background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 0; }
.uh-item { flex: 1; text-align: center; }
.uh-item b { display: block; font-size: .95rem; }
.uh-item span { font-size: .66rem; opacity: .8; }
.uh-div { width: 1px; height: 22px; background: rgba(255,255,255,.28); }
.uh-foot { font-size: .66rem; opacity: .75; margin-top: 9px; }
.use-chart { display: flex; align-items: stretch; gap: 5px; height: 130px; padding-top: 14px; }
.uc-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.uc-track { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.uc-bar { width: 100%; max-width: 22px; min-height: 3px; background: linear-gradient(180deg, #9aa9ff, #4F6BFF); border-radius: 4px 4px 2px 2px; position: relative; }
.uc-bar.peak { background: linear-gradient(180deg, #8b7bff, #6a3ef0); }
.uc-bar span { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: .55rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.uc-x { font-size: .53rem; color: var(--text-3); text-align: center; margin-top: 5px; white-space: nowrap; }
.ip-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 11px 12px; margin-bottom: 9px; box-shadow: 0 2px 10px rgba(40,50,120,.05); }
.ip-rank { width: 24px; height: 24px; border-radius: 8px; background: #f0f1f5; color: var(--text-3); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ip-rank.top { background: linear-gradient(135deg, #ffe9c7, #ffd08a); color: #a66800; }
.ip-main { flex: 1; min-width: 0; }
.ip-addr { font-size: .84rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ip-meta { font-size: .66rem; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-track { height: 3px; background: #eef0f5; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.ip-track i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #4F6BFF, #7b5cf0); }
.ip-visits { text-align: right; flex-shrink: 0; }
.ip-visits b { font-size: .95rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.ip-visits span { font-size: .62rem; color: var(--text-3); margin-left: 2px; }
.pg-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pg-name { width: 78px; font-size: .74rem; color: var(--text-2); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-track { flex: 1; height: 6px; background: #eef0f5; border-radius: 3px; overflow: hidden; }
.pg-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4F6BFF, #7b5cf0); }
.pg-num { width: 32px; text-align: right; font-size: .7rem; color: var(--text-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rc-log { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .7rem; }
.rc-log:last-child { border-bottom: none; }
.rl-time { color: var(--text-3); width: 78px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rl-main { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-page { color: var(--text-3); flex-shrink: 0; }
.use-tip { font-size: .66rem; color: var(--text-3); line-height: 1.6; padding: 4px 2px 10px; }


/* 桌面端限宽 */
@media (min-width: 600px) {
  #view, #tabbar, .fab-bar { max-width: 480px; margin: 0 auto; }
  #tabbar { left: 50%; transform: translateX(-50%); }
  .fab-bar { left: 50%; transform: translateX(-50%); width: 480px; }
}
