/* 沅信 · 微信质感样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root {
  --green: #07C160; --green-dark: #06AD56;
  --bg: #EDEDED; --bar: #EDEDED;
  --cell: #FFFFFF; --line: #F0F0F0; --line2: #E5E5E5;
  --text: #191919; --text2: #888; --text3: #B2B2B2;
  --bubble: #95EC69; --link: #576B95;
  --red: #E64A3B; --blue: #3E7BFA; --orange: #FF9F1C;
}
html, body { height: 100%; }
body {
  font: 15px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); background: #000; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
input, textarea { border: 0; outline: none; font: inherit; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ============ 登录 ============ */
.auth-view {
  position: fixed; inset: 0; background: #F7F7F7; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 34px;
}
.auth-box { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; }
.auth-logo { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(7,193,96,.28); }
.auth-name { font-size: 24px; font-weight: 600; margin-top: 14px; letter-spacing: 2px; }
.auth-slogan { font-size: 12px; color: var(--text2); margin-top: 4px; letter-spacing: 1px; }
.auth-form { width: 100%; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  height: 46px; border-radius: 10px; background: #fff; padding: 0 16px;
  font-size: 15px; border: 1px solid var(--line2);
}
.auth-form input:focus { border-color: var(--green); }
.btn-main {
  height: 46px; border-radius: 10px; background: var(--green); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: 6px; text-indent: 6px;
}
.btn-main:active { background: var(--green-dark); }
.btn-link { color: var(--link); font-size: 13px; padding: 6px; }
.auth-err { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 8px; text-align: center; }
.auth-foot { position: absolute; bottom: 26px; font-size: 11px; color: var(--text3); letter-spacing: 1px; }

/* ============ 主框架 ============ */
.main-view { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.page { display: none; flex: 1; flex-direction: column; min-height: 0; }
.page.on { display: flex; }

/* 顶栏 */
.topbar {
  height: 48px; background: var(--bar); display: flex; align-items: center;
  padding: 0 8px; flex: none; position: relative; z-index: 5;
}
.tb-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-title.lg { font-size: 18px; font-weight: 700; }
.tb-title.tc { text-align: center; }
.tb-actions { display: flex; align-items: center; gap: 2px; }
.tb-ico { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #191919; }
.tb-ico svg { width: 22px; height: 22px; }
.tb-back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #191919; }
.tb-back svg { width: 22px; height: 22px; }
.tb-text { color: #191919; font-size: 15px; padding: 6px 10px; }

/* 加号菜单 */
.plus-menu {
  position: absolute; top: 50px; right: 10px; z-index: 60;
  background: #4C4C4C; border-radius: 8px; padding: 4px 0; min-width: 150px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); color: #fff;
}
.plus-menu::before {
  content: ''; position: absolute; top: -5px; right: 16px;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #4C4C4C;
  transform: rotate(45deg); top: -4px; right: 17px;
}
.pm-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 15px; }
.pm-item:active { background: #3d3d3d; }
.pm-item svg { width: 20px; height: 20px; color: #fff; }

/* 列表滚动区 */
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

/* 底部 tab（硬编码 SVG） */
#tabbar {
  height: 54px; background: #F7F7F7; border-top: 1px solid var(--line2);
  display: flex; flex: none; padding-bottom: env(safe-area-inset-bottom);
}
#tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #7D7D7D; position: relative;
}
#tabbar button span { font-size: 10px; }
#tabbar button.on { color: var(--green); }
.tab-ico { width: 26px; height: 26px; }
.tab-ico .ic { fill: currentColor; }
.tab-ico .hole { fill: #F7F7F7; }
.tab-dot {
  position: absolute; top: 3px; left: 58%; min-width: 16px; height: 16px; padding: 0 4px;
  background: #FA5151; color: #fff; border-radius: 9px; font-size: 10px; font-style: normal;
  line-height: 16px; text-align: center; font-weight: normal;
}

/* ============ 通用 cell ============ */
.cell {
  background: var(--cell); display: flex; align-items: center; gap: 12px;
  padding: 0 16px; min-height: 54px; position: relative; cursor: pointer;
}
.cell:active { background: #E5E5E5; }
.cell + .cell::before, .cell + .toggle-cell::before, .toggle-cell + .cell::before {
  content: ''; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--line);
}
.cell .arr { margin-left: auto; color: #C8C8C8; font-size: 18px; }
.cell-body { flex: 1; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.cell-note { font-size: 13px; color: var(--text2); }
.cell-badge {
  background: #FA5151; color: #fff; min-width: 18px; height: 18px; border-radius: 9px;
  font-size: 11px; line-height: 18px; text-align: center; padding: 0 5px;
}
.red-dot { width: 8px; height: 8px; background: #FA5151; border-radius: 50%; display: inline-block; }
.cell-ico {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cell-ico svg { width: 26px; height: 26px; display: block; }
.ico-green { background: var(--green); }
.ico-orange { background: #F7A028; }
.ico-blue { background: var(--blue); }
.ico-sky { background: #3E7BFA; }
.ico-yellow { background: #F7B500; }
.ico-teal { background: #00B8A9; }
.ico-red { background: #E64A3B; }
.ico-grayblue { background: #7A8BA6; }
.cell-gap { height: 8px; }
.sec-title { padding: 14px 16px 8px; font-size: 13px; color: var(--text2); }
.grid-title { padding: 14px 16px 8px; font-size: 13px; color: var(--text2); }
.toggle-cell { background: var(--cell); display: flex; align-items: center; padding: 0 16px; min-height: 54px; }
.tgl { width: 44px; height: 26px; border-radius: 13px; background: #E0E0E0; position: relative; transition: .2s; flex: none; margin-left: auto; }
.tgl i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tgl.on { background: var(--green); }
.tgl.on i { left: 20px; }
.c-red { color: var(--red) !important; }

/* ============ 会话列表 ============ */
#chatList { background: #fff; }
.chat-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; position: relative;
}
.chat-row:active { background: #E5E5E5; }
.chat-row::after { content: ''; position: absolute; bottom: 0; left: 78px; right: 0; height: 1px; background: var(--line); }
.chat-row:last-child::after { display: none; }
.chat-mid { flex: 1; min-width: 0; }
.chat-name { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-last { font-size: 13px; color: var(--text2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }
.chat-right { text-align: right; flex: none; }
.chat-time { font-size: 11px; color: var(--text3); }
.chat-unread {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-top: 4px;
  background: #FA5151; border-radius: 9px; color: #fff; font-size: 11px; line-height: 18px;
}
.chat-official-tag { font-size: 10px; color: #fff; background: var(--green); border-radius: 3px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }

/* 头像 */
.avatar {
  width: 46px; height: 46px; border-radius: 6px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 500;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 60px; height: 60px; font-size: 24px; border-radius: 8px; }
.avatar.lg { width: 48px; height: 48px; font-size: 20px; border-radius: 6px; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.avatar.filebot { background: #3E7BFA; }
.avatar.filebot svg { width: 28px; height: 28px; }

/* ============ 通讯录 ============ */
.contact-search {
  background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 8px 12px 4px; height: 34px; border-radius: 8px; color: var(--text3); font-size: 14px; cursor: pointer;
}
.contact-search svg { width: 15px; height: 15px; }
.letter-head { padding: 4px 16px; font-size: 13px; color: var(--text2); background: var(--bg); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #fff; cursor: pointer; position: relative; }
.contact-row:active { background: #E5E5E5; }
.contact-row::after { content: ''; position: absolute; bottom: 0; left: 74px; right: 0; height: 1px; background: var(--line); }
.contact-name { font-size: 16px; }
.official-tag { font-size: 10px; color: #fff; background: var(--green); border-radius: 3px; padding: 0 3px; }

/* ============ 聊天页 ============ */
.sub-page {
  position: fixed; inset: 0; z-index: 30; background: var(--bg);
  display: flex; flex-direction: column;
}
.sub-page .scroll { background: transparent; }
.msgs { padding: 12px 12px 6px; }
.msg-date { text-align: center; margin: 10px 0 6px; }
.msg-date span { background: #DADADA; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.msg-sys { text-align: center; margin: 8px 0; }
.msg-sys span { background: #DADADA; color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 4px; display: inline-block; }
.msg-row { display: flex; margin: 8px 0; align-items: flex-start; gap: 10px; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-ava { cursor: pointer; }
.bubble-wrap { max-width: 72%; display: flex; flex-direction: column; }
.msg-row.mine .bubble-wrap { align-items: flex-end; }
.bubble {
  background: #fff; border-radius: 6px; padding: 9px 12px; font-size: 16px;
  position: relative; word-break: break-word; white-space: pre-wrap; cursor: pointer; max-width: 100%;
}
.msg-row.mine .bubble { background: var(--bubble); }
.bubble.file-b, .bubble.img-b { padding: 0; background: transparent; overflow: visible; }
.bubble.img-b img { max-width: 180px; max-height: 240px; border-radius: 6px; display: block; }
.bubble.file-b { background: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px; min-width: 180px; }
.msg-row.mine .bubble.file-b { background: var(--bubble); }
.file-ico { width: 36px; height: 36px; border-radius: 6px; background: var(--blue); flex: none; display: flex; align-items: center; justify-content: center; }
.file-ico svg { width: 20px; height: 20px; }
.file-name { font-size: 14px; word-break: break-all; max-width: 150px; }
.file-size { font-size: 11px; color: var(--text2); }
.bubble.redpacket-b, .bubble.transfer-b { min-width: 190px; padding: 0; overflow: hidden; }
.rp-body, .tf-body { display: flex; align-items: center; gap: 10px; padding: 12px; color: #fff; cursor: pointer; }
.bubble.redpacket-b { background: #E88D62; }
.bubble.redpacket-b.opened { background: #F0B48C; }
.bubble.transfer-b { background: #F5A623; }
.tf-body, .rp-body { position: relative; }
.rp-body svg, .tf-body svg { width: 34px; height: 34px; flex: none; }
.rp-txt, .tf-txt { min-width: 0; }
.rp-t1, .tf-t1 { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-t2, .tf-t2 { font-size: 12px; opacity: .85; margin-top: 2px; }
.rp-foot, .tf-foot { border-top: 1px solid rgba(255,255,255,.25); padding: 4px 12px; font-size: 11px; color: rgba(255,255,255,.85); }
.msg-row.mine .rp-body, .msg-row.mine .tf-body { color: #191919; }
.msg-row.mine .bubble.redpacket-b, .msg-row.mine .bubble.transfer-b { background: #FFE09E; }
.msg-row.mine .rp-foot, .msg-row.mine .tf-foot { border-color: rgba(0,0,0,.08); color: #998a5c; }
.tf-accepted, .rp-opened-tip { font-size: 12px; color: var(--text2); padding: 2px 4px; }
.bubble .revoked-t { color: var(--text3); font-size: 13px; }

/* 输入栏 */
.inputbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  background: #F7F7F7; border-top: 1px solid var(--line2); padding: 7px 10px; padding-bottom: calc(7px + env(safe-area-inset-bottom));
}
.in-ico { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #191919; flex: none; }
.in-ico svg { width: 26px; height: 26px; }
#msgInput {
  flex: 1; height: 36px; background: #fff; border-radius: 6px; padding: 0 10px; font-size: 16px; min-width: 0;
}
.btn-send { background: var(--green); color: #fff; border-radius: 6px; padding: 7px 13px; font-size: 15px; flex: none; }
.plus-panel { flex: none; background: #F7F7F7; border-top: 1px solid var(--line2); padding: 20px 14px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.pp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.pp-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
.pp-ico { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.pp-ico svg { width: 28px; height: 28px; }
.emoji-panel { flex: none; background: #F7F7F7; border-top: 1px solid var(--line2); padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 200px; overflow-y: auto; }
.emoji-panel span { font-size: 24px; text-align: center; padding: 4px 0; cursor: pointer; }

/* ============ 我页 ============ */
.me-card {
  background: #fff; display: flex; align-items: center; gap: 14px; padding: 22px 16px; cursor: pointer; margin-bottom: 8px;
}
.me-card:active { background: #E5E5E5; }
.me-info { flex: 1; }
.me-name { font-size: 20px; font-weight: 600; }
.me-yxid { font-size: 13px; color: var(--text2); margin-top: 3px; }
.me-qr { width: 18px; height: 18px; color: #999; flex: none; }

/* 服务页 */
.wallet-top {
  background: #fff; margin: 10px 10px 0; border-radius: 12px; display: flex;
}
.wt-cell {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 0; font-size: 14px; cursor: pointer; position: relative;
}
.wt-cell:first-child::after { content: ''; position: absolute; right: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.wt-cell:active { background: #F5F5F5; border-radius: 12px; }
.wt-cell svg { width: 28px; height: 28px; }
.wt-bal { font-style: normal; font-size: 12px; color: var(--text2); }
.icon-grid { background: #fff; margin: 0 10px; border-radius: 12px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 0 14px; }
.ig-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: #191919; }
.ig-item svg { width: 40px; height: 40px; }
.ig-item:active { opacity: .7; }
.pay-note { text-align: center; font-size: 12px; color: var(--text3); padding: 18px 0 26px; }
.rn-banner {
  margin: 10px 10px 0; background: #FFF7E6; border: 1px solid #FFE0B2; color: #A96A00;
  border-radius: 10px; padding: 12px 14px; font-size: 13px; display: flex; align-items: center; justify-content: space-between;
}
.rn-go { color: var(--link); font-weight: 500; cursor: pointer; }

/* 零钱（微信式绿色） */
.bal-hero {
  margin: 10px; border-radius: 14px; padding: 26px 22px 24px;
  background: linear-gradient(160deg, #09D167, #06AD56);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 6px 18px rgba(7,193,96,.25);
}
.bal-hero::after { content: ''; position: absolute; right: -44px; top: -44px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); }
.bal-hero::before { content: ''; position: absolute; right: 24px; bottom: -56px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); }
.bal-h-coin { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.bal-h-label { font-size: 14px; opacity: .92; }
.bal-h-num { font-size: 40px; font-weight: 700; letter-spacing: 1px; margin-top: 4px; font-family: "DIN Alternate", -apple-system, sans-serif; }
.bal-h-sub { font-size: 12px; opacity: .78; margin-top: 12px; }
.bal-panel { background: #fff; margin: 0 10px 10px; border-radius: 14px; overflow: hidden; }
.bal-panel-t { font-size: 15px; font-weight: 600; padding: 13px 16px 5px; }
.bal-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; position: relative; }
.bal-row::after { content: ''; position: absolute; bottom: 0; left: 66px; right: 0; height: 1px; background: var(--line); }
.bal-row:last-child::after { display: none; }
.bal-ico { width: 40px; height: 40px; border-radius: 50%; background: #F0F9F4; display: flex; align-items: center; justify-content: center; flex: none; }
.bal-ico svg { width: 22px; height: 22px; }
.bal-mid { flex: 1; min-width: 0; }
.bal-t { font-size: 15px; }
.bal-d { font-size: 12px; color: var(--text3); margin-top: 2px; }
.bal-amt { font-size: 16px; font-weight: 600; }
.bal-amt.plus { color: var(--green); }

/* 二维码卡片 */
.qr-center { background: var(--green); }
.qr-card {
  background: #fff; margin: 30px 24px; border-radius: 14px; padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.qr-head { display: flex; align-items: center; gap: 12px; align-self: stretch; }
.qr-name { font-size: 17px; font-weight: 600; }
.qr-sub { font-size: 12px; color: var(--text2); }
.qr-box { padding: 8px; }
.qr-box svg, .qr-box canvas { display: block; width: 210px; height: 210px; image-rendering: pixelated; }
.qr-tip { font-size: 13px; color: var(--text2); }
.qr-sub2 { font-size: 12px; color: var(--text3); }
.pay-amount { display: flex; align-items: baseline; gap: 4px; font-size: 30px; font-weight: 600; color: #191919; }
.pay-cur { font-size: 18px; }
.pay-amount-edit { font-size: 12px; color: var(--link); border: 1px solid var(--link); border-radius: 12px; padding: 1px 10px; margin-left: 8px; }

/* ============ 收付款（微信式付款码） ============ */
.sub-page.payqr { background: #3D9A62; }
.payqr-top { height: 54px; display: flex; align-items: center; padding: 0 6px; color: #fff; flex-shrink: 0; }
.payqr-top-t { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.payqr-wrap { flex: 1; overflow-y: auto; padding-bottom: 30px; }
.payqr-lock { padding: 70px 30px 0; text-align: center; }
.payqr-lock-ico svg { width: 78px; height: 78px; }
.payqr-lock-t { font-size: 19px; font-weight: 600; color: #fff; margin-top: 18px; }
.payqr-lock-d { font-size: 13px; color: rgba(255,255,255,.85); margin: 10px 0 26px; line-height: 1.7; }
.payqr-lock-btn { display: block; margin: 0 auto; min-width: 180px; height: 44px; line-height: 44px; border-radius: 8px; background: #07C160; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.payqr-lock-btn:active { opacity: .85; }
.payqr-lock-note { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 18px; }
.payqr-body { padding: 18px 14px 0; }
.payqr-card { background: #fff; border-radius: 14px; padding: 20px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.payqr-user { display: flex; align-items: center; gap: 8px; }
.payqr-ava { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; font-size: 14px; color: #fff; display: flex; align-items: center; justify-content: center; }
.payqr-ava img { width: 100%; height: 100%; object-fit: cover; }
.payqr-uname { font-size: 15px; font-weight: 600; color: #191919; }
#payBarcode { width: 270px; height: 64px; display: block; }
.payqr-codenum { font-size: 14px; letter-spacing: 2px; color: #191919; font-family: Consolas, monospace; }
.payqr-amount { display: flex; align-items: baseline; gap: 4px; font-size: 26px; font-weight: 600; color: #191919; }
.payqr-amount .pay-amount-edit { font-size: 12px; }
.payqr-qrwrap { border-top: 1px dashed #E5E6EB; width: 100%; display: flex; justify-content: center; padding-top: 14px; }
.payqr-qrwrap .qr-box svg, .payqr-qrwrap .qr-box canvas { width: 200px; height: 200px; }
.payqr-tip { font-size: 13px; color: var(--text2); }
.payqr-refresh-row { display: flex; align-items: center; gap: 10px; }
.payqr-count { font-size: 12px; color: var(--text3); }
.payqr-refresh { font-size: 12px; color: var(--link); border: 1px solid var(--link); border-radius: 12px; padding: 2px 12px; }
.payqr-note { text-align: center; font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.9; padding: 18px 0 0; }

/* 扫一扫 */
.sub-page.scan { background: #000; }
.scan-body { flex: 1; position: relative; overflow: hidden; }
#scanVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
  position: absolute; left: 50%; top: 32%; width: 220px; height: 220px; transform: translate(-50%,-50%);
}
.scan-frame i { position: absolute; width: 28px; height: 28px; border: 3px solid var(--green); }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.scan-tip { position: absolute; left: 0; right: 0; top: calc(32% + 130px); text-align: center; color: rgba(255,255,255,.85); font-size: 13px; }
.scan-fallback { background: #111; color: #fff; padding: 26px 24px 40px; display: flex; flex-direction: column; gap: 12px; }
.scan-fb-t { font-size: 16px; font-weight: 600; }
.scan-fb-d { font-size: 13px; color: #999; }
.scan-fallback input { height: 44px; border-radius: 8px; background: #222; color: #fff; padding: 0 14px; }

/* 转账/红包 */
.pay-to { background: #fff; margin: 10px; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pay-to .avatar { width: 40px; height: 40px; font-size: 16px; }
.pay-to-name { font-size: 16px; }
.amount-box { background: #fff; margin: 0 10px 10px; border-radius: 12px; display: flex; align-items: center; padding: 18px 16px; gap: 6px; }
.amount-cur { font-size: 26px; font-weight: 600; }
.amount-box input { flex: 1; font-size: 30px; font-weight: 600; min-width: 0; }
.pay-note-input { background: #fff; margin: 0 10px 16px; border-radius: 12px; height: 48px; padding: 0 16px; display: block; width: calc(100% - 20px); }
#transferPage .btn-main, #helpPage .btn-main { margin: 0 10px; width: calc(100% - 20px); }
.rp-scroll { background: #F55449; }
.rp-card { background: #fff; margin: 14px; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rp-head { display: flex; gap: 8px; }
.rp-type { font-size: 14px; color: var(--text2); padding: 6px 2px; border-bottom: 2px solid transparent; }
.rp-type.on { color: #E88D62; border-color: #E88D62; font-weight: 600; }
.rp-amt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); }
.rp-amt input { flex: 1; font-size: 26px; font-weight: 600; text-align: right; }
.rp-amt em { font-style: normal; color: var(--text2); }
.rp-count { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); }
.rp-count input { width: 80px; height: 36px; border: 1px solid var(--line2); border-radius: 8px; text-align: center; font-size: 16px; }
.rp-card input[id="rpNote"] { height: 42px; background: #F7F7F7; border-radius: 8px; padding: 0 12px; font-size: 14px; }
.rp-sum { text-align: right; font-size: 14px; color: var(--text2); }
.rp-btn { background: #E88D62; color: #fff; border-radius: 10px; height: 46px; font-size: 16px; font-weight: 600; letter-spacing: 2px; }
.rp-btn:active { background: #d97d52; }

/* 亲属卡 */
.fc-card { background: #fff; margin: 10px; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.fc-ico { width: 44px; height: 44px; border-radius: 10px; background: #FFE9F0; display: flex; align-items: center; justify-content: center; flex: none; }
.fc-ico svg { width: 26px; height: 26px; }
.fc-mid { flex: 1; min-width: 0; }
.fc-t { font-size: 15px; }
.fc-d { font-size: 12px; color: var(--text2); margin-top: 2px; }
.fc-bar { height: 5px; background: #F0F0F0; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; background: #FF7BA9; border-radius: 3px; }
.fc-act { font-size: 13px; color: var(--link); padding: 6px; }
.fc-empty { text-align: center; color: var(--text3); font-size: 13px; padding: 50px 0; }

/* 身份信息 / 实名 */
.rn-status-card { background: #fff; margin: 10px; border-radius: 12px; padding: 20px 16px; text-align: center; }
.rn-st-ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rn-st-ico.ok { background: #E8F9EF; }
.rn-st-ico.pending { background: #FFF7E6; }
.rn-st-ico.none, .rn-st-ico.rejected { background: #FDEEEE; }
.rn-st-ico svg { width: 28px; height: 28px; }
.rn-st-t { font-size: 17px; font-weight: 600; }
.rn-st-d { font-size: 13px; color: var(--text2); margin-top: 6px; line-height: 1.6; }
.rn-form { background: #fff; margin: 10px; border-radius: 12px; padding: 6px 16px; }
.rn-form .f-row { display: flex; align-items: center; min-height: 52px; position: relative; }
.rn-form .f-row + .f-row::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.rn-form label { width: 84px; font-size: 15px; color: var(--text2); flex: none; }
.rn-form input { flex: 1; font-size: 15px; min-width: 0; }
.rn-up-row { background: #fff; margin: 10px; border-radius: 12px; padding: 16px; }
.rn-up-t { font-size: 14px; margin-bottom: 10px; }
.rn-up-d { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.rn-up-boxes { display: flex; gap: 14px; }
.rn-up { flex: 1; aspect-ratio: 1.58; border: 1.5px dashed #C8C8C8; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text3); font-size: 12px; cursor: pointer; overflow: hidden; background: #FAFAFA; }
.rn-up img { width: 100%; height: 100%; object-fit: cover; }
.rn-up .up-plus { font-size: 26px; line-height: 1; }
.rn-face { background: #fff; margin: 10px; border-radius: 12px; padding: 16px; }
.rn-face-video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 3/4; max-height: 300px; object-fit: cover; }
.rn-face-box { display: flex; gap: 14px; align-items: center; }
.rn-face-prev { width: 96px; height: 128px; border-radius: 10px; background: #F0F0F0; object-fit: cover; flex: none; }
.btn-sub { height: 42px; border-radius: 10px; background: #F0F0F0; color: var(--text); font-size: 15px; width: 100%; }
.btn-sub.green { background: var(--green); color: #fff; font-weight: 600; }
.rn-mask { position: absolute; inset: 0; background: rgba(255,255,255,.96); z-index: 10; display: flex; align-items: center; justify-content: center; }
.rn-mask-box { text-align: center; padding: 30px; }
.rn-mask-ico { width: 46px; height: 46px; }
.rn-mask-t { font-size: 18px; font-weight: 600; margin-top: 10px; }
.rn-mask-d { font-size: 13px; color: var(--text2); margin: 8px 0 20px; }

/* 收藏 */
.fav-row { background: #fff; margin: 10px; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.fav-src { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.fav-body { font-size: 15px; word-break: break-word; white-space: pre-wrap; }
.fav-body img { max-width: 100%; border-radius: 6px; margin-top: 6px; }
.fav-file { display: flex; align-items: center; gap: 8px; }
.fav-empty { text-align: center; color: var(--text3); font-size: 13px; padding: 60px 0; }

/* 表情商店 */
.emoji-store { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; background: #fff; margin: 0 10px 20px; border-radius: 12px; padding: 14px; }
.emoji-store span { font-size: 28px; text-align: center; padding: 8px 0; cursor: pointer; }
.emoji-store span:active { background: #F0F0F0; border-radius: 8px; }

/* 朋友圈 */
.sub-page.moments { background: #fff; }
.mo-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #F5F5F5; }
.mo-item .avatar { width: 40px; height: 40px; font-size: 16px; }
.mo-mid { flex: 1; min-width: 0; }
.mo-name { font-size: 15px; color: var(--link); font-weight: 500; }
.mo-text { font-size: 15px; margin-top: 3px; word-break: break-word; white-space: pre-wrap; }
.mo-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; max-width: 260px; }
.mo-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: pointer; }
.mo-time { font-size: 11px; color: var(--text3); margin-top: 6px; }
.mo-acts { display: flex; gap: 14px; margin-top: 4px; }
.mo-act { font-size: 12px; color: var(--link); padding: 2px 0; }
.mo-comments { background: #F7F7F7; border-radius: 6px; padding: 6px 10px; margin-top: 6px; font-size: 13px; }
.mo-comments div { margin: 2px 0; }
.mo-c-name { color: var(--link); }
#moComposePage textarea { width: 100%; min-height: 120px; background: #fff; padding: 14px 16px; font-size: 16px; resize: none; }
#moComposePage .mo-imgs { margin: 10px 16px; max-width: none; grid-template-columns: repeat(4, 1fr); }
.mo-add { margin: 0 16px; width: 72px; height: 72px; border: 1.5px dashed #C8C8C8; border-radius: 8px; color: var(--text3); font-size: 26px; background: #FAFAFA; }

/* 设置/通用列表页 */
.cell-list { background: #fff; }
.cell-list .cell + .cell::before { left: 16px; }
.help-area { width: calc(100% - 20px); margin: 10px; min-height: 140px; background: #fff; border-radius: 12px; padding: 14px; font-size: 15px; resize: none; display: block; }
.empty-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.empty-ico { width: 64px; height: 64px; }
.empty-t { font-size: 16px; color: var(--text2); }
.empty-d { font-size: 13px; color: var(--text3); }
.about-logo { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(7,193,96,.25); }
.about-name { font-size: 20px; font-weight: 600; margin-top: 12px; }
.about-ver { font-size: 12px; color: var(--text2); }
.about-slogan { font-size: 12px; color: var(--text3); margin-top: 20px; letter-spacing: 1px; }

/* 群信息 */
.gi-members { background: #fff; padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 6px; }
.gi-mem { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text2); overflow: hidden; }
.gi-mem .avatar { width: 44px; height: 44px; font-size: 17px; }
.gi-mem-name { max-width: 56px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gi-add { width: 44px; height: 44px; border: 1.5px dashed #C8C8C8; border-radius: 6px; color: var(--text3); font-size: 26px; display: flex; align-items: center; justify-content: center; }
.gi-add.rm { border-style: solid; color: #FA5151; }

/* 好友资料 */
.fi-card { background: #fff; padding: 18px 16px; display: flex; gap: 14px; align-items: center; }
.fi-card .avatar { width: 62px; height: 62px; font-size: 24px; border-radius: 8px; }
.fi-name { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.fi-sex { width: 16px; height: 16px; border-radius: 3px; color: #fff; font-size: 11px; line-height: 16px; text-align: center; flex: none; }
.fi-sex.m { background: #5BA0E0; } .fi-sex.f { background: #F57BB0; }
.fi-yxid { font-size: 13px; color: var(--text2); margin-top: 4px; }
.fi-bio { font-size: 13px; color: var(--text2); margin-top: 3px; }
.fi-btns { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; }
.fi-btn { height: 46px; border-radius: 10px; background: var(--green); color: #fff; font-size: 16px; font-weight: 500; letter-spacing: 4px; text-indent: 4px; }
.fi-btn.gray { background: #fff; color: var(--text); }
.fi-btn.red { background: #fff; color: #FA5151; }

/* picker 多选 */
.pick-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #fff; cursor: pointer; position: relative; }
.pick-row::after { content: ''; position: absolute; bottom: 0; left: 74px; right: 0; height: 1px; background: var(--line); }
.pick-check { width: 20px; height: 20px; border: 1.5px solid #C8C8C8; border-radius: 50%; margin-left: auto; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.pick-row.on .pick-check { background: var(--green); border-color: var(--green); }
.pick-row.on .pick-check::after { content: '✓'; }

/* ============ 弹窗 ============ */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90;
  display: none; align-items: center; justify-content: center;
}
.mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 78%; max-width: 320px; overflow: hidden; animation: pop .18s; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.modal h3 { font-size: 16px; text-align: center; padding: 20px 20px 6px; font-weight: 600; }
.modal .m-text { padding: 6px 20px 20px; font-size: 14px; color: var(--text2); text-align: center; white-space: pre-wrap; word-break: break-all; }
.modal .m-text.left { text-align: left; }
.modal .m-input { margin: 0 20px 14px; }
.modal .m-input input { width: 100%; height: 42px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 12px; font-size: 15px; }
.modal .m-btns { display: flex; border-top: 1px solid var(--line); }
.modal .m-btns button { flex: 1; height: 46px; font-size: 16px; }
.modal .m-btns button + button { border-left: 1px solid var(--line); }
.modal .m-cancel { color: var(--text); }
.modal .m-ok { color: var(--green); font-weight: 600; }
.modal .m-ok.red { color: #FA5151; }
.modal .m-col { display: flex; flex-direction: column; }
.modal .m-col button { height: 48px; font-size: 16px; }
.modal .m-col button + button { border-left: 0; border-top: 1px solid var(--line); }
.modal .m-actions { display: flex; flex-direction: column; padding: 0 16px 16px; gap: 8px; }
.modal .m-actions button { height: 42px; border-radius: 8px; font-size: 15px; }
.modal .m-actions .pri { background: var(--green); color: #fff; }
.modal .m-actions .sec { background: #F5F5F5; color: var(--text); }
.modal .m-actions .danger { background: #FDEEEE; color: #FA5151; }

/* 支付键盘 */
.paykey {
  position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.5);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.paykey .pk-panel { background: #fff; border-radius: 14px 14px 0 0; padding: 14px 0 calc(6px + env(safe-area-inset-bottom)); animation: up .2s; }
@keyframes up { from { transform: translateY(60%); } }
.pk-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 4px 0 10px; }
.pk-t { font-size: 16px; font-weight: 600; }
.pk-x { position: absolute; right: 14px; top: 2px; font-size: 20px; color: var(--text3); padding: 4px 8px; }
.pk-amt { text-align: center; font-size: 30px; font-weight: 700; padding: 2px 0 14px; }
.pk-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.pk-dot { width: 10px; height: 10px; border-radius: 50%; background: #E0E0E0; }
.pk-dot.fill { background: #191919; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pk-key { height: 52px; font-size: 24px; background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pk-key:active { background: #E8E8E8; }
.pk-key.del { font-size: 20px; color: var(--text2); }
.pk-key.blank { pointer-events: none; }
.pk-err { text-align: center; color: #FA5151; font-size: 12px; min-height: 18px; padding-bottom: 4px; }

/* Toast / 图片查看 */
.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%,-50%); z-index: 99;
  background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; max-width: 70%; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }
.img-viewer { position: fixed; inset: 0; z-index: 96; background: #000; display: flex; align-items: center; justify-content: center; }
.img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.iv-close { position: absolute; top: 18px; right: 18px; color: #fff; font-size: 22px; width: 40px; height: 40px; }

/* 空态 */
.empty { text-align: center; color: var(--text3); font-size: 13px; padding: 60px 20px; line-height: 2; }
#page-chats .empty { background: #fff; }

/* 搜索页 */
.search-wrap {
  flex: 1; height: 34px; background: #fff; border-radius: 8px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
}
.search-wrap svg { width: 15px; height: 15px; color: var(--text3); flex: none; }
.search-wrap input { flex: 1; font-size: 14px; min-width: 0; }
.sr-sec { padding: 10px 16px 6px; font-size: 13px; color: var(--text2); }
.sr-user { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #fff; cursor: pointer; position: relative; }
.sr-user::after { content: ''; position: absolute; bottom: 0; left: 74px; right: 0; height: 1px; background: var(--line); }
.sr-user .avatar { width: 42px; height: 42px; }
.sr-mid { flex: 1; min-width: 0; }
.sr-name { font-size: 16px; }
.sr-sub { font-size: 12px; color: var(--text2); }
.sr-add { color: var(--green); font-size: 14px; padding: 4px 10px; border: 1px solid var(--green); border-radius: 6px; }

/* 支付设置/账号安全 detail rows */
.row-note { font-size: 13px; color: var(--text2); }
.pay-set-note { padding: 12px 16px 30px; font-size: 12px; color: var(--text3); line-height: 1.8; }

/* ============ 拍摄（微信式相机） ============ */
.sub-page.camera { background: #000; }
#camVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#camVideo.mirror { transform: scaleX(-1); }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; z-index: 4; }
.cam-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.cam-btn svg { width: 20px; height: 20px; }
.cam-rec { background: rgba(0,0,0,.45); color: #fff; border-radius: 12px; padding: 3px 12px; font-size: 13px; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-around; z-index: 4; }
.cam-thumb { width: 48px; height: 48px; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cam-thumb img, .cam-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cam-shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; background: transparent; }
.cam-shutter i { width: 58px; height: 58px; border-radius: 50%; background: #fff; transition: all .15s; }
.cam-shutter:active i { transform: scale(.88); }
.cam-shutter.rec { border-color: #FA5151; }
.cam-shutter.rec i { background: #FA5151; width: 44px; height: 44px; border-radius: 8px; }
#camPreview { position: absolute; inset: 0; background: #000; z-index: 10; display: flex; align-items: center; justify-content: center; }
#camPrevImg, #camPrevVid { max-width: 100%; max-height: calc(100% - 130px); }
.cam-prev-btns { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.cam-prev-btns button { font-size: 16px; color: #fff; padding: 9px 16px; }
#camDone { background: var(--green); border-radius: 20px; padding: 9px 24px !important; font-weight: 600; }

/* ============ 通话（视频/语音） ============ */
.sub-page.call { background: #101418; }
#callRemote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-local { display: none; }
.call-local.full { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.call-local.pip { display: block; position: absolute; top: 64px; right: 14px; width: 94px; height: 126px; border-radius: 10px; object-fit: cover; transform: scaleX(-1); background: #000; z-index: 6; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
#callAudioBg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 44%, #223039 0%, #101418 72%); }
.avatar.call-ava { width: 92px; height: 92px; border-radius: 50%; font-size: 36px; box-shadow: 0 0 0 10px rgba(255,255,255,.06); }
.call-info { position: absolute; top: 84px; left: 0; right: 0; text-align: center; color: #fff; z-index: 7; pointer-events: none; }
.call-name { font-size: 22px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.call-state { font-size: 14px; opacity: .82; margin-top: 8px; }
.call-btns { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; gap: 70px; z-index: 8; }
.cb { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.cb i { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cb svg { width: 28px; height: 28px; }
.cb svg.rot { transform: rotate(135deg); }
.cb-green i { background: #07C160; }
.cb-red i { background: #FA5151; }
.cb:active { opacity: .82; }

/* ============ 人脸识别（变色灯环 · 活体检测） ============ */
.sub-page.face { background: #000; }
#faceVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
#faceVideo.no-mirror { transform: none; }
.face-ring { position: absolute; left: 50%; top: 42%; width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%; box-shadow: 0 0 0 3000px rgba(0,0,0,.5); z-index: 3; pointer-events: none; }
.face-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 0deg, rgba(75,227,143,0) 0deg, #4BE38F 110deg, #C8FFE0 170deg, rgba(75,227,143,0) 250deg, rgba(75,227,143,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: ringSpin 1.8s linear infinite, ringHue 2.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 7px rgba(75,227,143,.85));
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes ringHue { from { filter: drop-shadow(0 0 7px rgba(75,227,143,.85)) hue-rotate(0deg); } to { filter: drop-shadow(0 0 9px rgba(94,197,255,.9)) hue-rotate(65deg); } }
.face-ring.action::before {
  background: conic-gradient(from 0deg, rgba(255,197,61,0) 0deg, #FFC53D 100deg, #FFE9AE 160deg, rgba(255,197,61,0) 240deg, rgba(255,197,61,0) 360deg);
  animation-duration: 1s, 1.2s;
}
.face-ring.pass::before {
  background: #3BE08A; -webkit-mask: none; mask: none;
  filter: drop-shadow(0 0 12px rgba(59,224,138,.95));
  animation: ringPop .45s cubic-bezier(.2,1.4,.4,1);
}
@keyframes ringPop { 0% { transform: scale(.82); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.face-ring.fail::before {
  background: #FF4D4F; -webkit-mask: none; mask: none;
  filter: drop-shadow(0 0 10px rgba(255,77,79,.9));
  animation: ringShake .45s ease;
}
@keyframes ringShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.face-check { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%,-50%) scale(0); border-radius: 50%; background: #3BE08A; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .35s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 6px 24px rgba(59,224,138,.5); }
.face-check.show { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.face-check svg { width: 52px; height: 52px; }
.face-head { position: absolute; top: 0; left: 0; right: 0; padding-top: 58px; text-align: center; color: #fff; z-index: 4; }
.face-t { font-size: 17px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.face-bottom { position: absolute; left: 0; right: 0; top: calc(42% + 158px); text-align: center; color: #fff; z-index: 4; }
.face-action { font-size: 22px; font-weight: 600; color: #3BE08A; text-shadow: 0 1px 8px rgba(0,0,0,.65); transition: color .25s; }
.face-tip { font-size: 13px; opacity: .85; margin-top: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.face-cancel { position: absolute; left: 14px; top: 14px; color: #fff; font-size: 15px; z-index: 5; padding: 8px 12px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* ============ 视频消息气泡 ============ */
.bubble.video-b { padding: 0; background: transparent; position: relative; border-radius: 6px; overflow: visible; line-height: 0; }
.bubble.video-b video { width: 190px; max-height: 260px; border-radius: 6px; display: block; background: #000; object-fit: cover; }
.vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.vid-play svg { width: 20px; height: 20px; margin-left: 2px; }
.bubble.video-b.playing .vid-play { display: none; }
.vid-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; line-height: 16px; }

/* ============ 实名认证（微信式） ============ */
.rn-hero { background: #fff; margin: 10px; border-radius: 14px; padding: 26px 22px; text-align: center; }
.rn-hero-ico { width: 58px; height: 58px; margin-bottom: 12px; }
.rn-hero-t { font-size: 19px; font-weight: 600; }
.rn-hero-d { font-size: 12px; color: var(--text2); margin-top: 8px; line-height: 1.7; }
.rn-err { color: #FA5151; font-size: 12px; padding: 0 0 8px 84px; min-height: 0; }
.rn-agree { display: flex; align-items: flex-start; gap: 8px; padding: 14px 20px 0; font-size: 12px; color: var(--text2); }
.rn-check { width: 17px; height: 17px; border: 1.5px solid #C8C8C8; border-radius: 50%; flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 11px; font-weight: 700; }
.rn-check.on { background: var(--green); border-color: var(--green); color: #fff; }
.rn-agree a { color: var(--link); }
