:root {
  --wx-bg: #ededed;
  --wx-green: #07c160;
  --wx-bubble: #95ec69;
  --wx-line: #e2e2e2;
  --wx-panel: #f7f7f7;
  --ink: #191919;
  --gray: #7f7f7f;
  --orange: #fa9d3b;
  --red: #c8102e;
  --gold: #ebcd9a;
  --fs: 17px;
  --safe-b: env(safe-area-inset-bottom);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: #2a2a2a; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button:focus-visible { outline: 2px solid var(--wx-green); outline-offset: 2px; }
h1, h2, p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* 手机全屏；桌面居中成一部手机 */
.device { position: relative; width: 100%; height: 100dvh; overflow: hidden; background: var(--wx-bg); display: flex; flex-direction: column; }
.device.big { --fs: 21px; }
@media (min-width: 520px) {
  body { display: grid; place-items: center; }
  .device { width: 390px; height: min(844px, 100dvh); border-radius: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
}
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--wx-bg); overflow-y: auto; }

/* 顶部导航 */
.nav { flex: none; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; min-height: 48px; padding-top: env(safe-area-inset-top); background: var(--wx-bg); border-bottom: .5px solid #d8d8d8; }
.nav-btn { display: grid; place-items: center; height: 48px; font-size: 24px; }
.nav-text { padding-left: 14px; font-size: 15px; color: #333; }
.nav-title { text-align: center; line-height: 1.15; min-width: 0; }
.nav-title strong { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-title small { display: block; font-size: 10px; color: #a0a0a0; margin-top: 2px; }

/* 消息列表 */
.list { background: #fff; }
.list-body { flex: 1; overflow-y: auto; background: #fff; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; position: relative; }
.row::after { content: ""; position: absolute; left: 70px; right: 0; bottom: 0; border-bottom: .5px solid var(--wx-line); }
.row-av { position: relative; flex: none; }
.row-av em { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fa5151; color: #fff; font: 600 11px/18px -apple-system, sans-serif; text-align: center; }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-weight: 400; font-size: 16.500px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-text small { display: block; color: #a0a0a0; font-size: 13.500px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row time { align-self: flex-start; padding-top: 2px; color: #b5b5b5; font-size: 11px; flex: none; }
.row.slim { padding: 9px 14px; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--wx-panel); border-top: .5px solid #d8d8d8; padding-bottom: var(--safe-b); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; font-size: 10.500px; color: #555; }
.tabbar svg { font-size: 25px; }
.tabbar .on { color: var(--wx-green); }
.tabbar .on svg { fill: rgba(7, 193, 96, .16); }
.tabbar em { position: absolute; top: 3px; left: 52%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fa5151; color: #fff; font: 600 10px/16px -apple-system, sans-serif; text-align: center; }
.group-gap { height: 9px; background: var(--wx-bg); flex: none; }
.list .list-body:has(.cell) { background: var(--wx-bg); }
.cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; background: #fff; font-size: 16px; border-bottom: .5px solid var(--wx-line); }
.cell b { flex: 1; font-weight: 400; }
.cell > svg:first-child { font-size: 22px; color: #4a7fb5; }
.cell > svg:last-child { color: #bbb; font-size: 16px; }
.cell.danger { justify-content: center; color: #fa5151; }
.cell.center { justify-content: center; color: #576b95; }
.me-card { display: flex; align-items: center; gap: 14px; padding: 26px 18px; background: #fff; }
.me-card b { display: block; font-size: 19px; font-weight: 600; }
.me-card small { color: #999; font-size: 13px; }

/* 头像 */
.av { width: 42px; height: 42px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 17px; background: #b5b5b5; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-me { background: #c2cbd3; font-size: 25px; }
.av-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 1px; background: #ddd; padding: 2px; }
.av-grid i { display: grid; place-items: center; font: normal 9px/1 sans-serif; color: #fff; width: 100%; height: 100%; border-radius: 1px; }
.av-btn { display: block; flex: none; }

/* 聊天 */
.chat { overflow: hidden; }
.stream { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
.m-time { align-self: center; font-size: 12px; color: #8c8c8c; padding: 2px 0; }
.m-sys { align-self: center; max-width: 86%; font-size: 12.500px; line-height: 1.5; color: #8c8c8c; text-align: center; background: rgba(0, 0, 0, .05); padding: 3px 9px; border-radius: 4px; }
.rp-word { color: var(--orange); }
.msg { display: flex; align-items: flex-start; gap: 9px; }
.msg.me { flex-direction: row-reverse; }
.msg-col { min-width: 0; max-width: calc(100% - 104px); display: flex; flex-direction: column; align-items: flex-start; }
.msg.me .msg-col { align-items: flex-end; }
.msg-line { display: flex; align-items: center; gap: 7px; max-width: 100%; }
.sender { font-size: 11.500px; color: #8c8c8c; margin: 0 0 3px 2px; }
.bubble { position: relative; background: #fff; border-radius: 5px; padding: 9px 11px; font-size: var(--fs); line-height: 1.42; word-break: break-word; white-space: pre-wrap; }
.bubble::before { content: ""; position: absolute; top: 13px; left: -5px; border: 5px solid transparent; border-left: 0; border-right-color: #fff; }
.msg.me .bubble { background: var(--wx-bubble); }
.msg.me .bubble::before { left: auto; right: -5px; border: 5px solid transparent; border-right: 0; border-left-color: var(--wx-bubble); }
.rejected { flex: none; width: 19px; height: 19px; border-radius: 50%; background: #fa5151; color: #fff; display: grid; place-items: center; font: 700 13px/1 sans-serif; }
.msg { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* 卡片消息 */
.card-orange { display: block; width: 232px; max-width: 100%; border-radius: 5px; overflow: hidden; background: var(--orange); color: #fff; }
.card-orange.used { background: #fbd9a8; }
.card-main { display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-height: 62px; }
.card-main b { display: block; font-weight: 400; font-size: 15.500px; line-height: 1.3; }
.card-main small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; }
.card-foot { display: block; background: #fff; color: #9a9a9a; font-size: 11px; padding: 3px 12px; }
.rp-icon { flex: none; width: 30px; height: 38px; border-radius: 3px; background: #f7c777; position: relative; box-shadow: inset 0 11px 0 #ee8f3a; }
.rp-icon::after { content: ""; position: absolute; left: 10px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tf-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.500px solid #fff; display: grid; place-items: center; font-size: 21px; font-style: normal; }
.m-img { display: block; max-width: 142px; border-radius: 5px; overflow: hidden; background: #fff; }
.m-img.wide { max-width: 192px; }
.m-img img { display: block; width: 100%; height: auto; }
.m-htmlshot { width: 158px; font-size: 8.500px; }
.shot { background: #f4f5f6; color: #203038; }
.shot h4 { margin: 0; padding: 1.100em; background: #fff; text-align: center; font-size: 1.300em; }
.shot-hero { margin: 1em; padding: 1.200em; border-radius: .9em; background: #33514a; color: #fff; }
.shot-hero small { display: block; font-size: 1em; opacity: .8; }
.shot-hero strong { display: block; font-size: 2.400em; margin: .2em 0; }
.shot-row { display: flex; justify-content: space-between; gap: 1em; margin: 0 1em; padding: .85em .9em; background: #fff; border-bottom: 1px solid #eee; font-size: 1.050em; }
.shot-row span { color: #68757c; }
.shot p { padding: 1em; text-align: center; color: #76838a; font-size: .95em; }
.m-myshot { width: 138px; padding: 10px; background: #fff; border-radius: 5px; font-size: 12px; }
.m-myshot b { display: block; font-weight: 600; margin-bottom: 6px; }
.m-myshot small { display: block; color: #666; margin: 3px 0; }
.m-myshot .circled { display: inline-block; padding: 1px 6px; color: #d9382e; border: 1.500px solid #e74c3c; border-radius: 50%; }
.card-link { display: block; width: 236px; max-width: 100%; padding: 11px 12px 10px; background: #fff; border-radius: 5px; }
.card-link b { display: block; font-weight: 400; font-size: 15.500px; line-height: 1.35; }
.link-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.link-body small { color: #999; font-size: 12.500px; }
.link-body i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; color: #fff; background: #4a7fb5; border-radius: 3px; }

/* 底部输入与选项 */
.compose { flex: none; position: relative; background: var(--wx-panel); border-top: .5px solid #d8d8d8; padding-bottom: var(--safe-b); }
.skip { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 12px; white-space: nowrap; }
.inputbar { display: flex; align-items: center; gap: 8px; padding: 7px 9px; }
.inputbar i { color: #333; font-size: 27px; line-height: 1; display: grid; font-style: normal; }
.fake-input { flex: 1; height: 37px; background: #fff; border-radius: 4px; }
.plus-btn { display: grid; font-size: 27px; color: #333; }
.options { display: flex; flex-direction: column; gap: 7px; padding: 3px 10px 10px; max-height: 44dvh; overflow-y: auto; }
.options button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 9px 13px; border-radius: 6px; background: #fff; font-size: calc(var(--fs) - 1.500px); line-height: 1.32; animation: pop .18s ease-out; }
.opt-reply:active { background: var(--wx-bubble); }
.opt-pay { background: var(--orange) !important; color: #fff; font-weight: 500; }
.opt-pay svg { font-size: 20px; }
.opt-action { color: #576b95; }
.opt-action svg { order: 2; margin-left: auto; font-size: 15px; color: #bbb; }
.plus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 8px; padding: 14px 18px 20px; border-top: .5px solid var(--wx-line); }
.plus-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: #666; }
.plus-cell i { width: 58px; height: 58px; display: grid; place-items: center; background: #fff; border-radius: 10px; color: #444; font-size: 26px; font-style: normal; }
.endcard { padding: 12px 14px 14px; text-align: center; font-size: 13px; color: #888; }
.endcard span { display: block; margin-bottom: 9px; }
.green { background: var(--wx-green); color: #fff; }
.wide { display: block; width: 100%; padding: 13px; border-radius: 7px; text-align: center; font-size: 17px; font-weight: 500; }
.ghost { background: #fff; color: #333; border: .5px solid #ccc; }

/* 通话中的对话 */
.is-call, .is-call .stream { background: #17271f; }
.is-call .nav { background: #0e3a26; color: #fff; border-color: #0e3a26; }
.is-call .m-time, .is-call .m-sys { color: #a6b8ae; background: transparent; }
.is-call .compose { background: #1d3127; border-color: #2c4539; }
.is-call .options { padding-top: 10px; }
.is-call .options button { background: #2a4438; color: #fff; }
.is-call .skip { background: rgba(255, 255, 255, .2); }

/* 通知横幅 */
#banner { position: absolute; z-index: 30; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: rgba(255, 255, 255, .97); border-radius: 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .22); animation: drop .22s ease-out; }
#banner .av { width: 36px; height: 36px; }
#banner span:last-child { min-width: 0; flex: 1; }
#banner b { display: block; font-size: 13.500px; font-weight: 600; }
#banner small { display: block; font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
#toast { position: absolute; z-index: 31; top: 42%; left: 50%; transform: translateX(-50%); padding: 10px 16px; max-width: 80%; background: rgba(0, 0, 0, .78); color: #fff; font-size: 14px; border-radius: 8px; text-align: center; }

/* 弹层公共 */
dialog { padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.plain { display: grid; place-items: center; font-size: 25px; }

/* 付款半屏 */
dialog.sheet-pay, dialog.sheet-action { width: min(100vw, 390px); margin: auto auto 0; background: #fff; border-radius: 12px 12px 0 0; padding-bottom: var(--safe-b); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.pay-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 50px; text-align: center; font-size: 15px; }
.pay-title { text-align: center; font-size: 15px; color: #444; margin-top: 4px; }
.pay-amount { text-align: center; font-size: 38px; font-weight: 600; margin: 8px 0 20px; }
.pay-amount em { font-style: normal; font-size: 24px; margin-right: 2px; }
.pay-row { display: flex; justify-content: space-between; gap: 14px; margin: 0 22px; padding: 12px 0; border-top: .5px solid var(--wx-line); font-size: 14px; color: #888; }
.pay-row b { font-weight: 400; color: #222; text-align: right; }
.finger-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 16px 0 6px; color: var(--wx-green); font-size: 14px; }
.finger-btn svg { font-size: 56px; stroke-width: 1; }
.pay-note { margin: 2px 22px 12px; color: #d33; font-size: 13px; }
.sheet-pay .wide { width: calc(100% - 44px); margin: 0 22px; }
.pay-safe { display: block; text-align: center; color: #aaa; font-size: 11px; padding: 12px; }

/* 操作菜单 */
.as-title { padding: 15px 20px; text-align: center; font-size: 13px; color: #888; border-bottom: .5px solid var(--wx-line); }
.as-row { display: block; width: 100%; padding: 15px; text-align: center; font-size: 17px; background: #fff; border-bottom: .5px solid var(--wx-line); }
.as-row.danger { color: #fa5151; }
.as-gap { height: 8px; background: #f2f2f2; }

/* 红包 */
dialog.sheet-packet { margin: auto; width: 300px; animation: pop .2s ease-out; }
.rp-cover { position: relative; height: 470px; background: #dc5948; border-radius: 10px; padding: 56px 20px 18px; text-align: center; color: var(--gold); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.rp-cover::before { content: ""; position: absolute; left: -30%; right: -30%; bottom: 0; height: 200px; background: #cf4f3f; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.rp-cover > * { position: relative; }
.rp-x { position: absolute !important; left: 8px; top: 8px; color: var(--gold); }
.rp-who { display: flex; align-items: center; gap: 8px; }
.rp-who .av { width: 26px; height: 26px; font-size: 12px; }
.rp-who b { font-weight: 400; font-size: 16px; }
.rp-cover p { font-size: 21px; color: #fbe6bf; margin-top: 18px; line-height: 1.4; }
.rp-open { position: absolute !important; top: 272px; width: 88px; height: 88px; border-radius: 50%; background: var(--gold); color: #3a3126; font: 400 38px/88px serif; text-align: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.rp-open.spin { animation: spin .42s linear; }
@keyframes spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.rp-cover small { position: absolute !important; bottom: 14px; font-size: 11px; color: #f3bfa9; }
dialog.sheet-rpdetail, dialog.sheet-image, dialog.sheet-income { width: min(100vw, 390px); height: min(100dvh, 844px); margin: auto; }
.rp-detail { position: relative; height: min(100dvh, 844px); background: #fff; }
.rp-arc { height: 92px; background: #dc5948; border-radius: 0 0 50% 50% / 0 0 34% 34%; }
.rp-back { position: absolute !important; left: 10px; top: 12px; color: #fff; }
.rp-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px; }
.rp-body .av { width: 46px; height: 46px; margin-bottom: 8px; }
.rp-body b { font-size: 17px; font-weight: 500; }
.rp-body p { font-size: 14px; color: #888; margin-top: 5px; }
.rp-body strong { font-size: 48px; font-weight: 500; color: #c3994f; margin: 22px 0 5px; }
.rp-body strong em { font-style: normal; font-size: 16px; margin-left: 4px; }
.rp-body small { color: #c3994f; font-size: 13px; }

/* 收款 */
.in-page { position: relative; height: min(100dvh, 844px); background: #f7f7f7; display: flex; flex-direction: column; align-items: center; padding: 86px 30px 30px; gap: 8px; text-align: center; }
.in-back { position: absolute !important; left: 8px; top: 10px; color: #333; }
.in-page i { width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 34px; }
.in-page i.done { background: var(--wx-green); }
.in-page p { margin-top: 12px; font-size: 15px; color: #333; }
.in-page strong { font-size: 38px; font-weight: 600; }
.in-page small { color: #888; font-size: 13px; }
.in-page .wide { margin-top: 32px; }

/* 图片查看 */
dialog.sheet-image { background: #000; color: #fff; }
.viewer-x { position: absolute; z-index: 2; top: 10px; left: 8px; width: 42px; height: 42px; color: #fff; }
.image-stage { height: min(100dvh, 844px); display: grid; place-items: center; overflow: auto; }
.full-image { display: block; width: 100%; height: auto; }
.shot-large { width: 88%; font-size: 14px; border-radius: 8px; overflow: hidden; }
.image-stage.zoomed .full-image { width: 220%; max-width: none; }
.image-stage.zoomed .shot-large { width: 180%; font-size: 24px; }
.image-tools { position: absolute; bottom: calc(22px + var(--safe-b)); left: 0; right: 0; text-align: center; }
.zoom-image { padding: 6px 18px; border-radius: 16px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; }

/* 资料与聊天信息 */
.info-head { padding: 20px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; }
.info-head .av { width: 52px; height: 52px; }
.info-head small { font-size: 12px; color: #888; }
.pf-head { display: flex; gap: 16px; padding: 18px; background: #fff; }
.pf-head .av { width: 62px; height: 62px; }
.pf-head b { display: block; font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.pf-head small { display: block; font-size: 13px; color: #888; line-height: 1.6; }
.pf-title { padding: 11px 16px 6px; font-size: 13px; color: #888; background: var(--wx-bg); }
.post { display: flex; gap: 12px; padding: 13px 16px; background: #fff; border-bottom: .5px solid var(--wx-line); font-size: 14.500px; line-height: 1.45; }
.post > span { flex: none; width: 48px; color: #999; font-size: 12px; padding-top: 2px; }
.post img { display: block; width: 170px; margin-top: 7px; border-radius: 3px; }

/* 零钱 */
.wl-card { margin: 12px; padding: 22px; border-radius: 8px; background: var(--wx-green); color: #fff; }
.wl-card small { display: block; font-size: 13px; opacity: .9; }
.wl-card strong { display: block; font-size: 34px; font-weight: 600; margin: 8px 0 6px; }
.bill { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; background: #fff; border-bottom: .5px solid var(--wx-line); }
.bill b { display: block; font-weight: 400; font-size: 14.500px; line-height: 1.35; }
.bill small { color: #999; font-size: 12px; }
.bill strong { font-size: 16px; font-weight: 600; white-space: nowrap; }
.bill strong.in { color: #e98a1f; }
.empty { padding: 34px; text-align: center; color: #999; font-size: 14px; }

/* 转账 */
.transfer { background: #fff; }
.tf-body { padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 18px; }
.tf-to b { display: block; font-size: 18px; font-weight: 500; }
.tf-to small { color: #888; font-size: 13px; }
.tf-amt label { font-size: 14px; color: #333; }
.tf-amt div { font-size: 44px; font-weight: 600; padding: 8px 0 12px; border-bottom: .5px solid var(--wx-line); }
.tf-amt em { font-style: normal; font-size: 28px; margin-right: 5px; }
.tf-line { font-size: 13px; color: #888; }
.transfer.cash .tf-body > small { color: #8a6d3b; background: #fff8e8; padding: 8px 10px; border-radius: 5px; font-size: 13px; }
.paydone { background: #fff; align-items: center; padding: 72px 28px 24px; text-align: center; gap: 6px; }
.paydone i { width: 62px; height: 62px; border-radius: 50%; background: var(--wx-green); color: #fff; display: grid; place-items: center; font-size: 36px; margin-bottom: 12px; }
.paydone b { font-size: 18px; font-weight: 500; color: var(--wx-green); }
.paydone small { color: #888; font-size: 14px; }
.paydone strong { font-size: 38px; font-weight: 600; margin: 8px 0; }
.done-btn { margin-top: auto; width: 170px; padding: 11px; border-radius: 6px; background: #f2f2f2; color: var(--wx-green); text-align: center; font-size: 16px; font-weight: 500; }

/* 网页与投资平台 */
.web, .web-body { background: #fff; }
.task-page { padding: 18px; font-size: 15px; }
.task-page h2 { font-size: 18px; margin-bottom: 4px; }
.muted { color: #999; font-size: 12.500px; margin: 5px 0 14px; }
.task-item { display: flex; gap: 12px; padding: 12px 0; border-top: .5px solid var(--wx-line); }
.task-item i { flex: none; width: 56px; height: 56px; border-radius: 4px; background: linear-gradient(135deg, #e9e4d8, #cfd9d4); }
.task-item b { display: block; font-weight: 500; }
.task-item small { display: block; font-size: 12.500px; color: #777; margin-top: 4px; }
.web-down { flex: 1; display: grid; place-content: center; text-align: center; color: #999; }
.web-down strong { font-size: 52px; font-weight: 300; }
.fin { background: #eef2f6; }
.fin-nav { background: #172e43; color: #fff; border-color: #172e43; }
.fin-nav .nav-title small { color: #9fb5c6; }
.fin-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.fin-card { padding: 20px; border-radius: 12px; background: linear-gradient(150deg, #1f3e58, #16304a); color: #fff; }
.fin-card small { display: block; font-size: 12.500px; color: #bcd0de; }
.fin-card strong { display: block; font-size: 36px; font-weight: 600; margin: 8px 0 10px; }
.fin-chart { display: block; width: 100%; height: 70px; stroke: #8bd8b4; stroke-width: 2.500; margin-bottom: 10px; vector-effect: non-scaling-stroke; }
.fin-payee { padding: 4px 16px; background: #fff; border-radius: 10px; }
.fin-payee div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; border-bottom: .5px solid #eee; }
.fin-payee div:last-child { border: 0; }
.fin-payee span { color: #778; }
.fin-payee b { font-weight: 500; }
.fin-payee .warn { color: #b3261e; }
.fin-btn { width: 100%; padding: 14px; border-radius: 8px; background: #215a8a; color: #fff; text-align: center; font-size: 17px; font-weight: 500; }
.fin-foot { text-align: center; color: #99a; font-size: 11px; }

/* 来电 */
.call { background: linear-gradient(180deg, #0c1a14, #17271f 60%, #0c1a14); color: #fff; justify-content: space-between; padding: 90px 30px calc(60px + var(--safe-b)); }
.call-who { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.call-ring { width: 86px; height: 86px; border-radius: 50%; background: #0e8a4a; display: grid; place-items: center; font-size: 42px; animation: ring 1.2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(14, 138, 74, .6); } 100% { box-shadow: 0 0 0 26px rgba(14, 138, 74, 0); } }
.call-who strong { font-size: 40px; font-weight: 500; letter-spacing: 3px; margin-top: 14px; }
.call-who small { font-size: 14px; color: #b7c7be; }
.call-btns { display: flex; justify-content: space-between; padding: 0 16px; }
.call-btns span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #cfd8d3; }
.call-btns button { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #fff; }
.call-no { background: #e5484d; }
.call-no svg { transform: rotate(135deg); }
.call-yes { background: var(--wx-green); }

/* 首页与封面 */
.v-home, .v-cover { background: #12090c; }
.home { flex: 1; overflow-y: auto; padding: calc(40px + env(safe-area-inset-top)) 20px calc(24px + var(--safe-b)); color: #f6efec; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(ellipse 110% 46% at 50% -4%, #5c1422 0%, transparent 70%), #12090c; }
.home-top { padding: 12px 4px 18px; }
.home-top h1 { font-size: 34px; font-weight: 700; letter-spacing: 3px; }
.home-top p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: rgba(246, 239, 236, .78); }
.case { position: relative; display: block; width: 100%; padding: 18px 44px 18px 18px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: .5px solid rgba(255, 255, 255, .14); color: #fff; }
.case small { display: block; font-size: 12px; color: #efa98f; letter-spacing: 1px; }
.case b { display: block; font-size: 21px; font-weight: 600; margin: 7px 0 5px; }
.case span { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); }
.case i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #efa98f; }
.home-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border-radius: 10px; color: rgba(255, 255, 255, .84); background: rgba(255, 255, 255, .04); font-size: 14.500px; }
.home-row b { font-weight: 400; }
.home-row.strong { background: var(--wx-green); color: #fff; }
.home-row.strong b { font-weight: 500; }
.home-foot { margin-top: auto; padding-top: 18px; text-align: center; font-size: 11px; line-height: 1.7; color: rgba(150, 150, 150, .85); }
.cover { flex: 1; padding: 0 30px calc(30px + var(--safe-b)); display: flex; flex-direction: column; justify-content: center; align-items: stretch; color: #f4eeea; background: #0c0608; }
.cover-lines { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; font-size: 20px; line-height: 1.6; }
.cover-lines p { opacity: 0; animation: fadein .7s ease-out forwards; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cover-go { width: 100%; padding: 15px; border-radius: 10px; background: #f4eeea; color: #17090c; text-align: center; font-size: 17px; font-weight: 600; }
.cover small { margin-top: 14px; text-align: center; font-size: 11px; color: rgba(244, 238, 234, .5); }

/* 复盘 */
.v-result { background: #f1f1f1; }
.result { flex: 1; overflow-y: auto; padding: calc(12px + env(safe-area-inset-top)) 12px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 11px; }
.alarm { padding: 28px 20px; border-radius: 12px; color: #fff; text-align: center; animation: shake .42s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.alarm.red { background: var(--red); }
.alarm.green { background: #0d8f52; animation: none; }
.alarm small { display: block; font-size: 12px; opacity: .85; margin-bottom: 6px; }
.alarm h1 { font-size: 30px; letter-spacing: 3px; margin-bottom: 10px; }
.alarm p { font-size: 14.500px; line-height: 1.7; opacity: .96; }
.panel { background: #fff; border-radius: 12px; padding: 16px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.net { display: flex; justify-content: space-between; align-items: baseline; }
.net span { font-size: 14px; color: #666; }
.net strong { font-size: 28px; }
.net .neg { color: var(--red); }
.sum { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0 11px; font-size: 12.500px; color: #888; border-bottom: .5px solid var(--wx-line); }
.panel .bill { padding: 9px 0; }
.note { margin-top: 11px; font-size: 13.500px; line-height: 1.6; color: #666; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 15px 30px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; display: grid; place-items: center; }
.steps li.unseen::before { background: #aaa; }
.steps b { font-size: 15.500px; }
.steps em { margin-left: 7px; padding: 0 6px; font-style: normal; font-size: 11px; color: #888; border: .5px solid #bbb; border-radius: 3px; }
.steps q { display: block; margin: 5px 0; padding-left: 8px; border-left: 2px solid #ddd; color: #666; font-size: 13.500px; line-height: 1.5; }
.steps p { font-size: 14px; line-height: 1.6; color: #333; }
.link-btn { margin-top: 5px; color: #576b95; font-size: 13.500px; }
.flags p { padding: 8px 0; font-size: 15px; line-height: 1.5; border-bottom: .5px solid #eee; }
.flags .note { border: 0; }
.hotline { text-align: center; }
.hotline strong { display: block; font-size: 24px; color: var(--red); margin-bottom: 6px; }
.hotline p { font-size: 13.500px; line-height: 1.6; color: #666; }
.result-actions { display: flex; flex-direction: column; gap: 9px; }
.doc { background: #fff; }
.doc-body { padding: 18px; font-size: 15px; line-height: 1.65; }
.doc-body h2 { font-size: 20px; line-height: 1.4; margin-bottom: 16px; }
.doc-body section { padding: 12px 0; border-top: .5px solid var(--wx-line); }
.doc-body section strong { color: var(--red); font-size: 18px; }
.hist { display: block; width: 100%; padding: 13px 0; border-bottom: .5px solid var(--wx-line); }
.hist b { display: block; font-weight: 600; }
.hist small { display: block; color: #777; font-size: 13px; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cover-lines p { opacity: 1; }
}
