/* 吴晓记 高保真 · 蓝色系设计令牌（基于原型 base.css 结构） */
:root {
  --c-primary: oklch(0.52 0.17 255);
  --c-primary-dark: oklch(0.44 0.16 258);
  --c-primary-light: oklch(0.95 0.03 250);
  --c-primary-soft: oklch(0.90 0.05 250);
  --c-bg: oklch(0.975 0.006 250);
  --c-card: #fff;
  --c-text: oklch(0.24 0.02 260);
  --c-sub: oklch(0.55 0.02 260);
  --c-line: oklch(0.93 0.008 250);
  --c-gold: oklch(0.70 0.13 85);   --c-gold-bg: oklch(0.96 0.04 90);
  --c-red: oklch(0.55 0.18 27);    --c-red-bg: oklch(0.95 0.03 25);
  --c-orange: oklch(0.60 0.15 55); --c-orange-bg: oklch(0.96 0.035 65);
  --c-green: oklch(0.55 0.13 155); --c-green-bg: oklch(0.95 0.035 155);
  --c-gray: oklch(0.58 0.01 260);  --c-gray-bg: oklch(0.95 0.005 260);
  --r-card: 16px; --r-btn: 12px;
  --shadow: 0 1px 2px oklch(0.3 0.03 255 / .04), 0 6px 18px oklch(0.3 0.05 255 / .06);
  --num: "DIN Alternate", "SF Pro Display", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: oklch(0.90 0.015 250); display: flex; justify-content: center; min-height: 100vh; padding: 24px 0; color: var(--c-text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 8px; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.phone { width: 375px; height: 812px; background: var(--c-bg); border-radius: 46px; border: 10px solid #15171c;
  overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 30px 70px oklch(0.25 0.05 255 / .3); }
.statusbar { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 32px; font-size: 13px; font-weight: 600; }
.capsule { position: absolute; right: 12px; top: 50px; width: 87px; height: 32px; border-radius: 16px; border: 1px solid oklch(0.88 0.01 250);
  background: oklch(1 0 0 / .7); display: flex; align-items: center; justify-content: space-around; z-index: 5; }
.capsule i { width: 4px; height: 4px; border-radius: 50%; background: var(--c-text); box-shadow: 7px 0 0 var(--c-text), -7px 0 0 var(--c-text); }
.capsule b { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c-text); }
.capsule::after { content: ""; position: absolute; left: 50%; top: 8px; height: 16px; width: 1px; background: oklch(0.88 0.01 250); }
.app-header { flex: none; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 110px 0 16px; }
.app-title { font-size: 17px; font-weight: 700; }
.back { width: 32px; height: 32px; margin-left: -6px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.back:active { background: var(--c-gray-bg); }
.screen { flex: 1; overflow-y: auto; padding: 4px 16px 20px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.link { color: var(--c-primary); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.link:hover { color: var(--c-primary-dark); }

/* TabBar */
.tabbar { flex: none; height: 82px; background: var(--c-card); border-top: 1px solid var(--c-line); display: flex; padding-bottom: 20px; position: relative; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--c-sub); font-size: 11px; }
.tab .ico { width: 23px; height: 23px; }
.tab.active { color: var(--c-primary); font-weight: 600; }
.tab-center { flex: none; width: 68px; position: relative; }
.tab-btn { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px oklch(0.52 0.17 255 / .38); border: 4px solid var(--c-card); }
.tab-btn:hover { background: var(--c-primary-dark); }
.tab-btn .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.tab-label { position: absolute; bottom: 9px; width: 100%; text-align: center; font-size: 11px; color: var(--c-sub); }
.tab-center.active .tab-label { color: var(--c-primary); font-weight: 600; }

/* 卡片 / 列表 */
.card { background: var(--c-card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-title .more { margin-left: auto; font-size: 12px; color: var(--c-sub); font-weight: 400; display: inline-flex; align-items: center; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--c-line); border-radius: 0; }
.list-item:last-child { border-bottom: none; }
a.list-item:active { background: var(--c-primary-light); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 15px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.li-title span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 12px; color: var(--c-sub); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-right { text-align: right; flex: none; }
.amt { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.amt.income { color: var(--c-green); } .amt.overdue { color: var(--c-red); }
.chev { width: 16px; height: 16px; color: var(--c-gray); }
.type-ico { width: 38px; height: 38px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; }
.ti-blue { background: var(--c-primary-light); color: var(--c-primary); }
.ti-red { background: var(--c-red-bg); color: var(--c-red); }
.ti-orange { background: var(--c-orange-bg); color: var(--c-orange); }
.ti-green { background: var(--c-green-bg); color: var(--c-green); }
.ti-gray { background: var(--c-gray-bg); color: var(--c-gray); }
.ti-gold { background: var(--c-gold-bg); color: oklch(0.52 0.11 80); }

/* 标签 */
.tag { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; padding: 1px 7px; border-radius: 6px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.tag-draft { background: var(--c-gray-bg); color: var(--c-gray); }
.tag-reconciling { background: var(--c-primary-light); color: var(--c-primary); }
.tag-disputed { background: var(--c-orange-bg); color: var(--c-orange); }
.tag-confirmed { background: var(--c-green-bg); color: var(--c-green); }
.tag-red { background: var(--c-red-bg); color: var(--c-red); }
.tag-gold { background: var(--c-gold-bg); color: oklch(0.50 0.11 80); }

/* 按钮 */
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-primary:disabled { background: var(--c-primary-soft); color: #fff; cursor: not-allowed; }
.btn-ghost { background: var(--c-primary-light); color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-line { border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-text); }
.btn-line:hover { background: var(--c-gray-bg); }
.btn-sm { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 9px; }
.btn-block { width: 100%; }

/* 分段 / 搜索 / 字段 */
.seg { display: flex; background: oklch(0.94 0.01 250); border-radius: 11px; padding: 3px; margin-top: 12px; }
.seg-item { flex: 1; text-align: center; font-size: 13px; padding: 7px 0; border-radius: 9px; color: var(--c-sub); }
.seg-item:hover { color: var(--c-text); }
.seg-item.active { background: var(--c-card); color: var(--c-primary); font-weight: 600; box-shadow: 0 1px 4px oklch(0.3 0.05 255 / .1); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--c-card); border-radius: 12px; color: var(--c-sub); font-size: 14px; border: 1px solid var(--c-line); }
.search input { flex: 1; border: none; outline: none; background: none; font: inherit; color: var(--c-text); min-width: 0; }
.search:focus-within { border-color: var(--c-primary); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.field-row:last-child { border-bottom: none; }
.field-label { color: var(--c-sub); flex: none; }
.field-value { font-weight: 600; text-align: right; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--c-primary); background: var(--c-primary-light); font-weight: 700; font-size: 16px; }
.avatar.lg { width: 60px; height: 60px; font-size: 22px; background: oklch(1 0 0 / .2); color: #fff; }

/* 提示 / 弹层 / toast */
.notice { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.6; padding: 10px 12px; border-radius: 12px; margin-top: 12px; }
.notice .ico { width: 16px; height: 16px; margin-top: 2px; }
.notice-info { background: var(--c-primary-light); color: var(--c-primary-dark); }
.notice-warn { background: var(--c-orange-bg); color: oklch(0.48 0.13 55); }
.notice-lock { background: var(--c-green-bg); color: oklch(0.45 0.12 155); }
.notice-charge { background: var(--c-gold-bg); color: oklch(0.45 0.10 80); }
.mask { position: absolute; inset: 0; background: oklch(0.2 0.03 255 / .45); z-index: 40; display: none; align-items: flex-end; }
.mask.show { display: flex; }
.sheet { width: 100%; background: var(--c-card); border-radius: 22px 22px 0 0; padding: 12px 16px 30px; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--c-line); margin: 0 auto 14px; }
.sheet-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.toast { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: oklch(0.22 0.02 260 / .9); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 12px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.toast.show { opacity: 1; }
.empty { text-align: center; color: var(--c-sub); font-size: 14px; padding: 40px 0; }
.sub { color: var(--c-sub); font-size: 12px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 700; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.foot { text-align: center; color: var(--c-sub); font-size: 12px; padding: 18px 0 6px; }
/* 主视觉：蓝色概览卡（全局唯一的装饰手法） */
.hero { background: linear-gradient(150deg, oklch(0.56 0.17 252), oklch(0.44 0.16 262)); color: #fff; border-radius: 20px; padding: 18px; margin-top: 8px; position: relative; overflow: hidden; box-shadow: 0 12px 28px oklch(0.45 0.16 258 / .3); }
.hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid oklch(1 0 0 / .07); }
.hero .h-sub { font-size: 12px; color: oklch(0.92 0.03 250); }
.hero .h-num { font-family: var(--num); font-size: 32px; font-weight: 700; letter-spacing: .5px; margin-top: 6px; }
.hero-grid { display: flex; margin-top: 14px; padding-top: 14px; border-top: 1px solid oklch(1 0 0 / .18); position: relative; z-index: 1; }
.hero-grid > div { flex: 1; }
.hero-grid > div + div { padding-left: 14px; border-left: 1px solid oklch(1 0 0 / .18); }
.hero-grid .v { font-family: var(--num); font-size: 18px; font-weight: 700; margin-top: 3px; }
