  :root {
    --text: #12303F;
    --dim: #5F7A8C;
    --faint: #93A8B8;
    --blue: #4A9FD8;
    --blue-deep: #2E7DB2;
    --blue-soft: #7CC3EE;
    --gold: #C98A3C;
    --red: #E2574C;
    --green: #2E9E6B;
    --glass: rgba(255,255,255,.62);
    --glass-2: rgba(255,255,255,.84);
    --line: rgba(74,159,216,.16);
    --shadow: 0 10px 28px rgba(70,130,180,.14);
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; margin: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    background:
      radial-gradient(900px 520px at 8% -10%, rgba(124,195,238,.50), transparent 62%),
      radial-gradient(820px 560px at 106% 6%, rgba(172,222,248,.62), transparent 64%),
      radial-gradient(900px 620px at 50% 112%, rgba(190,225,246,.75), transparent 66%),
      linear-gradient(168deg, #F7FCFF 0%, #E9F4FD 46%, #D8EAF8 100%);
    background-attachment: fixed;
  }
  .page { position: fixed; inset: 0; display: flex; flex-direction: column; background: #EDF5FC; z-index: 3; }
  .hidden { display: none !important; }

  /* 登录 */
  #login { padding: 0 32px; justify-content: center; overflow: hidden; }
  #login > * { position: relative; z-index: 1; }
  #login::before, #login::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(66px); pointer-events: none; z-index: 0;
  }
  #login::before { width: 240px; height: 240px; background: rgba(124,195,238,.75); top: -50px; left: -70px; animation: drift1 9s ease-in-out infinite; }
  #login::after { width: 280px; height: 280px; background: rgba(172,222,248,.8); bottom: -90px; right: -80px; animation: drift2 11s ease-in-out infinite; }
  @keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px,34px); } }
  @keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-28px,-30px); } }
  #login .logo {
    width: 86px; height: 86px; border-radius: 26px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 800; color: var(--blue-deep);
    background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95);
    box-shadow: var(--sh-md);
  }
  #login h1 { font-size: 31px; margin: 0; letter-spacing: 3px; color: var(--text); }
  #login .sub { color: var(--dim); font-size: 13px; margin: 9px 0 30px; letter-spacing: .5px; }
  .field {
    display: flex; align-items: center; height: 54px; padding: 0 16px; margin-bottom: 12px;
    border-radius: 16px; background: var(--glass); border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 6px 18px rgba(70,130,180,.10);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .field input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; color: var(--text); }
  .field input::placeholder { color: var(--faint); }
  .field .ico { font-size: 16px; margin-right: 10px; opacity: .7; }
  .btn-primary {
    height: 52px; border-radius: 26px; border: 0; width: 100%; font-size: 16px; font-weight: 700;
    color: #fff; background: linear-gradient(160deg, #7CC3EE, #3E8FC9);
    box-shadow: 0 12px 26px rgba(74,159,216,.34); margin-top: 18px;
  }
  .btn-gold { color: #fff; background: linear-gradient(160deg, #E9BE7E, #C98A3C); box-shadow: 0 12px 26px rgba(201,138,60,.3); }
  .btn-ghost {
    background: var(--glass); color: var(--blue-deep); border: 1px solid rgba(255,255,255,.9); box-shadow: none;
    margin-top: 12px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  #loginTip { color: #B8772A; font-size: 13px; text-align: center; margin-top: 14px; min-height: 18px; }
  #login .srv { color: var(--faint); font-size: 11px; text-align: center; margin-top: 26px; }

  /* 主界面 */
  .topbar {
    height: 54px; flex: none; display: flex; align-items: center; padding: 0 14px;
    background: rgba(255,255,255,.62); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  }
  .topbar .title { flex: 1; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
  .topbar .ic {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: var(--text); border-radius: 12px;
  }
  .topbar .ic:active { background: rgba(255,255,255,.75); }
  .topbar .back { font-size: 26px; }

  .content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: transparent; padding-bottom: 84px; }
  .tabbar {
    flex: none; margin: 0 12px calc(10px + env(safe-area-inset-bottom)); height: 60px;
    display: flex; align-items: center; border-radius: 30px;
    background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95);
    box-shadow: var(--sh-md);
    backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  }
  .tabbar div {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--faint); font-size: 10px; gap: 2px; border-radius: 24px; padding: 6px 0; margin: 0 6px;
    touch-action: manipulation;          /* 去掉 iOS 300ms 点击延迟 */
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none; -webkit-user-select: none;
  }
  .tabbar div > * { pointer-events: none; }   /* 点图标/文字也算点整块 */
  .tabbar div.on {
    color: #fff; background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
    box-shadow: 0 8px 18px rgba(74,159,216,.32);
  }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar div.on svg { stroke-width: 2.2; }

  .row {
    display: flex; align-items: center; padding: 13px 16px; position: relative;
    margin: 6px 12px; border-radius: 18px;
    background: var(--glass); border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 6px 18px rgba(70,130,180,.10);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .row:active { background: var(--glass-2); }
  .row::after { content: ''; width: 7px; height: 7px; margin-left: 8px; flex: none; border-right: 1.6px solid var(--faint); border-top: 1.6px solid var(--faint); transform: rotate(45deg); opacity: .9; }
  .avatar {
    width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px; font-weight: 800; flex: none; overflow: hidden;
    background-size: cover; background-position: center;
    box-shadow: 0 4px 12px rgba(70,130,180,.22), inset 0 0 0 1px rgba(255,255,255,.35);
  }
  .row .body { flex: 1; margin-left: 12px; min-width: 0; }
  .row .name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row .last { font-size: 13px; color: var(--dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row .right { text-align: right; margin-left: 8px; flex: none; }
  .row .time { font-size: 11px; color: var(--faint); }
  .badge {
    min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px; margin-top: 5px;
    box-shadow: 0 4px 10px rgba(226,87,76,.35);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
    flex: none;
  }
  /* 三位数以上：稍微加宽、字号收一点，别把「999+」挤扁 */
  .badge:not(:empty) {
    letter-spacing: -.2px;
  }
  .empty { text-align: center; color: var(--dim); font-size: 14px; padding: 70px 20px; line-height: 1.9; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  .content.anim { animation: fadeUp .12s ease forwards; }
  /* 长列表不再逐项动画：几十个元素同时做 transform 会很卡 */

  /* 聊天 */
  #chat { background: linear-gradient(180deg, #F7FCFF 0%, #E9F4FD 100%); z-index: 20; }
  #chat .msgs { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 16px; background: transparent; }
  .msg { display: flex; margin: 8px 0; align-items: flex-start; }
  .msg.me { flex-direction: row-reverse; }
  .msg .av {
    width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 16px; font-weight: 800;
    background-size: cover; background-position: center;
    box-shadow: 0 4px 10px rgba(70,130,180,.2), inset 0 0 0 1px rgba(255,255,255,.35);
  }
  .bubble {
    max-width: 68%; margin: 0 9px; padding: 10px 12px; border-radius: 16px; font-size: 16px; line-height: 1.45;
    word-break: break-word; white-space: pre-wrap;
    background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95); color: var(--text);
    box-shadow: 0 6px 16px rgba(70,130,180,.10);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .msg.me .bubble {
    background: linear-gradient(160deg, #7CC3EE, #3E8FC9); border-color: rgba(255,255,255,.45);
    color: #fff; box-shadow: 0 8px 20px rgba(74,159,216,.30);
  }
  .bubble img, .bubble video { max-width: 100%; border-radius: 12px; display: block; }
  .bubble .pkt {
    display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, #F58A6E, #DE5238); min-width: 186px;
    box-shadow: 0 10px 22px rgba(222,82,56,.28);
  }
  .bubble .pkt.transfer { background: linear-gradient(135deg, #F2B76C, #D08B2C); box-shadow: 0 10px 22px rgba(208,139,44,.28); }
  .bubble .pkt .t { font-size: 14px; font-weight: 700; }
  .bubble .pkt .s { font-size: 11px; opacity: .94; margin-top: 3px; }
  .bubble .recalled { color: var(--faint); font-size: 14px; }
  .bubble .voice { display: flex; align-items: center; gap: 7px; font-size: 14px; }
  .msgtime { text-align: center; color: var(--faint); font-size: 11px; margin: 14px 0 4px; }
  .composer {
    flex: none; display: flex; align-items: center; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.72); border-top: 1px solid var(--line);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  }
  .composer .tool {
    width: 34px; height: 34px; border-radius: 12px; flex: none; border: 1px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.7); color: var(--blue-deep); font-size: 16px;
    display: flex; align-items: center; justify-content: center; flex: none;
    box-shadow: 0 4px 12px rgba(70,130,180,.10);
  }
  .composer .tool:active { background: #fff; }
  .composer input[type=text] {
    flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid rgba(255,255,255,.95);
    background: rgba(255,255,255,.75); padding: 0 16px; font-size: 15px; outline: 0; color: var(--text);
    box-shadow: inset 0 1px 3px rgba(70,130,180,.08);
  }
  .composer input[type=text]::placeholder { color: var(--faint); }
  .composer .send {
    width: 40px; height: 40px; border-radius: 50%; flex: none; border: 0; flex: none; color: #fff; font-size: 17px; font-weight: 700;
    background: linear-gradient(160deg, #8FD0F2, #3E8FC9); box-shadow: 0 8px 18px rgba(74,159,216,.32);
  }
  .composer .send:disabled { opacity: .38; box-shadow: none; }

  /* 我 */
  .me-head {
    margin: 18px 12px 0; padding: 24px 22px; border-radius: 22px; display: flex; align-items: center; gap: 16px;
    background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(226,242,253,.75));
    border: 1px solid rgba(255,255,255,.96);
    box-shadow: 0 14px 32px rgba(70,130,180,.16);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .me-head .avatar { width: 72px; height: 72px; border-radius: 20px; font-size: 28px; }
  .card {
    margin: 12px 12px 0; border-radius: 20px; overflow: hidden;
    background: var(--glass); border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 8px 22px rgba(70,130,180,.12);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .card .line { padding: 16px 18px; display: flex; align-items: center; }
  .card .line + .line { border-top: 1px solid var(--line); }
  .card .line:active { background: var(--glass-2); }
  .card .line .l { flex: 1; font-size: 15px; }
  .card .line .r { font-size: 12px; color: var(--faint); }
  .wallet { display: flex; align-items: center; gap: 12px; padding: 18px; }
  .wallet .amount { font-size: 24px; font-weight: 800; color: var(--gold); }
  .danger { color: var(--red); text-align: center; justify-content: center; }

  /* 弹层 */
  .sheet { position: fixed; inset: 0; background: rgba(40,70,95,.30); display: flex; align-items: flex-end; z-index: 50; }
  .sheet .box {
    width: 100%; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    max-height: 82vh; overflow-y: auto;
    background: rgba(250,253,255,.96); border-top: 1px solid rgba(255,255,255,.95);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 -18px 44px rgba(70,130,180,.22);
  }
  .sheet h3 { margin: 0 0 14px; font-size: 16px; letter-spacing: .5px; color: var(--text); }
  .sheet .item { padding: 15px 4px; font-size: 16px; border-top: 1px solid var(--line); }
  .sheet input {
    width: 100%; height: 46px; border-radius: 14px; border: 1px solid rgba(74,159,216,.2);
    background: rgba(255,255,255,.9); padding: 0 15px; font-size: 15px; margin-bottom: 10px; outline: 0; color: var(--text);
  }
  .sheet input::placeholder { color: var(--faint); }
  .sheet .row2 { display: flex; gap: 10px; }
  .sheet .row2 button { flex: 1; height: 46px; border-radius: 23px; border: 0; font-size: 15px; }
  .toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
    background: rgba(255,255,255,.95); color: var(--text); font-size: 14px; padding: 11px 20px;
    border-radius: 22px; border: 1px solid rgba(255,255,255,.95); z-index: 99; opacity: 0;
    transition: opacity .2s; pointer-events: none;
    box-shadow: var(--sh-md);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .toast.show { opacity: 1; }
  .bubble.img-bubble, .msg.me .bubble.img-bubble {
    background: none; border: 0; box-shadow: none; padding: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .bubble.img-bubble img { border-radius: 14px; box-shadow: 0 10px 24px rgba(70,130,180,.22); display: block; }

  /* ---- 主题统一收官 ---- */
  .row, .card .line, .composer .tool, .btn-primary, .btn-ghost, .tabbar div, .field {
    transition: background .18s ease, box-shadow .18s ease, transform .12s ease, border-color .18s ease;
  }
  .btn-primary:active, .btn-ghost:active { transform: scale(.975); }
  .row:active { transform: scale(.995); }
  .field:focus-within, .sheet input:focus, .composer input:focus {
    border-color: rgba(74,159,216,.55) !important;
    box-shadow: 0 0 0 3px rgba(74,159,216,.14);
  }
  .topbar, .tabbar, .composer { transition: background .2s ease; }
  .zoom-wrap {
    position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
    padding: 0; background: #000;
    animation: fadeUp .18s ease forwards;
    overflow: hidden;
  }
  .zoom-wrap img {
    max-width: 100%; max-height: 100%; border-radius: 0;
  }
  .zoom-hint { position: fixed; bottom: 32px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; }

  /* ---- 细抠 ---- */
  .avatar, .msg .av { position: relative; }
  .avatar::after, .msg .av::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,.38), rgba(255,255,255,0) 58%);
  }
  .msg.me .bubble { position: relative; overflow: hidden; }
  .msg.me .bubble::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 62%);
  }
  .msgtime {
    margin: 14px auto 6px; padding: 3px 11px; width: fit-content;
    border-radius: 12px; background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.9);
    color: var(--dim); font-size: 11px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .msgs::-webkit-scrollbar, .content::-webkit-scrollbar, .sheet .box::-webkit-scrollbar { display: none; }
  .msgs, .content, .sheet .box { scrollbar-width: none; }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 46%);
  }
  .tabbar div.on { transform: translateY(-1px); }
  .topbar { box-shadow: 0 6px 18px rgba(70,130,180,.07); }
  .empty-ico { font-size: 46px; line-height: 1; margin-bottom: 14px; opacity: .9; }
  .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .row .name { letter-spacing: .2px; }
  .me-head .avatar { box-shadow: 0 10px 24px rgba(70,130,180,.26), inset 0 0 0 1px rgba(255,255,255,.4); }
  .bubble.pkt-bubble, .msg.me .bubble.pkt-bubble {
    background: none; border: 0; box-shadow: none; padding: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible;
  }
  .bubble.pkt-bubble .pkt { margin: 0; }

  /* ---- 补齐功能 ---- */
  .to-bottom {
    position: fixed; right: 16px; bottom: 152px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 60;
    background: linear-gradient(160deg, #8FD0F2, #3E8FC9); color: #fff; font-size: 18px; font-weight: 700;
    box-shadow: 0 10px 24px rgba(74,159,216,.34); transition: opacity .2s, transform .2s;
  }
  .to-bottom.hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
  .msg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .bubble, .msg .av { touch-action: manipulation; }
  .sheet .item.search-hit { display: block; }
  .sheet .item .who { font-size: 12px; color: var(--dim); margin-bottom: 3px; }

  /* ---- 在线状态 ---- */
  .avatar.with-dot, .msg .av.with-dot { overflow: visible; }
  .avatar .dot, .msg .av .dot {
    position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%;
    background: #3FCF8E; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(63,207,142,.28);
  }
  .topbar .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .title .online-tag { font-size: 10px; font-weight: 500; color: var(--green); margin-left: 5px; }
  .topbar .title .online-tag.offline { color: var(--faint); }

  /* ---- 动效（轻，不抢戏） ---- */
  @keyframes sheetFade { from { background: rgba(40,70,95,0); } to { background: rgba(40,70,95,.30); } }
  .sheet { animation: sheetFade .2s ease forwards; }
  .sheet .box { animation: sheetUp .28s cubic-bezier(.22,1,.36,1) forwards; }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  @keyframes chatIn { from { transform: translateX(100%); opacity: .55; } to { transform: none; opacity: 1; } }
  .chat-in { animation: chatIn .26s cubic-bezier(.22,1,.36,1) forwards; }
  @keyframes chatOut { from { transform: none; opacity: 1; } to { transform: translateX(100%); opacity: .5; } }
  .chat-out { animation: chatOut .2s ease forwards; }

  @keyframes msgIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  .msg.msg-in { animation: msgIn .24s ease forwards; }

  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .empty-ico { animation: bob 3.2s ease-in-out infinite; }

  @keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 1px rgba(63,207,142,.30); } 50% { box-shadow: 0 0 0 4px rgba(63,207,142,.10); } }
  .avatar .dot { animation: dotPulse 2.4s ease-in-out infinite; }

  @keyframes badgePulse { 0%,100% { box-shadow: 0 4px 10px rgba(226,87,76,.32); } 50% { box-shadow: 0 4px 14px rgba(226,87,76,.52); } }
  .badge { animation: badgePulse 2.8s ease-in-out infinite; }

  #login.leaving { opacity: 0; transform: scale(.985); transition: opacity .24s ease, transform .24s ease; }
  @keyframes appIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .app-in { animation: appIn .32s ease forwards; }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }

  /* ---- 登录页重构 ---- */
  #login { align-items: center; padding: 0 26px; }
  .login-inner { width: 100%; max-width: 430px; }
  .brand { margin-bottom: 24px; }
  .brand .logo {
    width: 76px; height: 76px; border-radius: 24px; font-size: 34px; margin-bottom: 16px;
  }
  .brand h1 { font-size: 30px; margin: 0; letter-spacing: 3px; }
  .brand .sub { color: var(--dim); font-size: 13px; margin-top: 8px; }

  .login-tabs {
    position: relative; display: flex; padding: 4px; border-radius: 18px; margin-bottom: 16px;
    background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 6px 18px rgba(70,130,180,.10);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .login-tab {
    position: relative; z-index: 1; flex: 1; text-align: center; padding: 9px 0;
    font-size: 15px; font-weight: 600; color: var(--dim); border-radius: 14px;
    transition: color .2s ease;
  }
  .login-tab.on { color: #fff; }
  .tab-glider {
    position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
    border-radius: 14px; background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
    box-shadow: 0 8px 18px rgba(74,159,216,.30);
    transition: transform .26s cubic-bezier(.22,1,.36,1);
  }
  .tab-glider.right { transform: translateX(100%); }

  .field .eye {
    border: 0; background: transparent; font-size: 15px; opacity: .5; padding: 0 0 0 8px;
    transition: opacity .18s ease, transform .18s ease;
  }
  .field .eye.on { opacity: 1; transform: scale(1.05); }
  .reg-only.hidden { display: none !important; }

  .login-error {
    min-height: 20px; font-size: 13px; color: #C4453B; text-align: center; margin: 2px 0 6px;
  }
  @keyframes shakeX {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
  }
  .login-error.shake { animation: shakeX .34s ease; }

  #btnSubmit:disabled { opacity: .8; }
  #btnSubmit.loading #btnText::after {
    content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
    border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%;
    animation: spin .7s linear infinite; vertical-align: -2px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .login-foot {
    display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
    font-size: 13px; color: var(--dim);
  }
  .remember { display: flex; align-items: center; gap: 6px; }
  .remember input { width: 16px; height: 16px; accent-color: #3E8FC9; }
  .switch-hint { color: var(--blue-deep); font-weight: 600; }
  .srv { text-align: center; margin-top: 24px; font-size: 11px; color: var(--faint); }

  /* ---- 我：重构 ---- */
  .me-hero {
    margin: 16px 12px 0; border-radius: 24px; padding: 24px 22px; position: relative; overflow: hidden;
    background: linear-gradient(150deg, #8FD0F2 0%, #4A9FD8 52%, #3E8FC9 100%);
    box-shadow: 0 16px 36px rgba(74,159,216,.30);
  }
  .me-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 56%);
  }
  .me-hero::before {
    content: ''; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -90px;
    border-radius: 50%; background: rgba(255,255,255,.16); pointer-events: none;
  }
  .me-hero-inner { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
  .me-avatar {
    width: 68px; height: 68px; border-radius: 20px; flex: none;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; font-weight: 800;
    box-shadow: 0 10px 22px rgba(20,70,110,.28), inset 0 0 0 1.5px rgba(255,255,255,.55);
  }
  .me-hero-text { flex: 1; min-width: 0; color: #fff; }
  .me-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .me-acc { font-size: 12px; opacity: .85; margin-top: 5px; }
  .me-badge {
    flex: none; font-size: 11px; font-weight: 700; color: #0B3A2E;
    background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 12px;
  }

  .me-stats {
    display: flex; margin: 12px 12px 0; border-radius: 20px; overflow: hidden;
    background: var(--glass); border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 8px 22px rgba(70,130,180,.12);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .me-stats .stat { flex: 1; text-align: center; padding: 16px 4px; }
  .me-stats .stat + .stat { border-left: 1px solid var(--line); }
  .me-stats .num { font-size: 19px; font-weight: 800; color: var(--blue-deep); }
  .me-stats .label { font-size: 11px; color: var(--dim); margin-top: 4px; }

  .me-card {
    margin: 12px 12px 0; border-radius: 20px; overflow: hidden;
    background: var(--glass); border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 8px 22px rgba(70,130,180,.12);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .me-card .line { display: flex; align-items: center; padding: 15px 18px; }
  .me-card .line + .line { border-top: 1px solid var(--line); }
  .me-card .line:active { background: var(--glass-2); }
  .me-card .lico { width: 27px; font-size: 15px; opacity: .9; }
  .me-card .l { flex: 1; font-size: 15px; }
  .me-card .r { font-size: 12px; color: var(--faint); }

  /* ---- 我：图标与细节 ---- */
  .me-card .lico {
    width: 34px; height: 34px; border-radius: 11px; margin-right: 12px;
    display: flex; align-items: center; justify-content: center; flex: none;
    background: rgba(74,159,216,.12); color: var(--blue-deep);
    transition: background .18s ease;
  }
  .me-card .lico svg { width: 18px; height: 18px; }
  .me-card .line:active .lico { background: rgba(74,159,216,.22); }
  .me-card .line { padding: 13px 16px; }
  .me-card .l { font-size: 15px; font-weight: 500; }
  .me-card .line.danger .lico { background: rgba(226,87,76,.12); color: var(--red); }
  .me-card .line.danger .l { color: var(--red); font-weight: 600; }
  .me-hero-inner { gap: 15px; }
  .me-avatar { width: 70px; height: 70px; border-radius: 22px; }
  .me-name { font-size: 22px; }
  .me-acc { opacity: .8; letter-spacing: .3px; }
  .me-stats .num { letter-spacing: .3px; }
  .e2e-tag { font-size: 10px; margin-left: 4px; opacity: .85; }
  .bubble.locked { position: relative; }

  /* ---- 登录页美化 ---- */
  .brand .logo {
    background: linear-gradient(155deg, #FFFFFF 0%, #E8F5FE 62%, #D6ECFB 100%);
    border: 1px solid rgba(255,255,255,.98);
    box-shadow: 0 16px 34px rgba(70,130,180,.26), inset 0 1px 0 #fff, inset 0 -6px 14px rgba(124,195,238,.16);
    color: var(--blue-deep);
    position: relative;
    overflow: hidden;
  }
  .brand .logo::after {
    content: ''; position: absolute; top: -40%; left: -60%; width: 60%; height: 180%;
    background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
    transform: rotate(12deg);
    animation: logoShine 5.5s ease-in-out infinite;
  }
  @keyframes logoShine {
    0%, 62% { left: -60%; }
    85%, 100% { left: 120%; }
  }
  .login-tab { display: flex; align-items: center; justify-content: center; gap: 6px; }
  .tab-glider { box-shadow: 0 8px 18px rgba(74,159,216,.32), inset 0 1px 0 rgba(255,255,255,.45); }
  .field .ico {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-right: 10px; opacity: 0;
    color: var(--blue-deep);
    animation: icoIn .3s ease .05s forwards;
  }
  @keyframes icoIn { from { opacity: 0; transform: translateX(-3px); } to { opacity: .85; transform: none; } }
  .field .ico svg { width: 20px; height: 20px; }
  .field .eye {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 100%; border: 0; background: transparent; padding: 0;
    color: var(--dim); opacity: .55; transition: opacity .18s ease, color .18s ease;
  }
  .field .eye svg { width: 20px; height: 20px; }
  .field .eye .eye-closed { display: none; }
  .field .eye.on { opacity: 1; color: var(--blue-deep); }
  .field .eye.on .eye-open { display: none; }
  .field .eye.on .eye-closed { display: block; }
  .remember input { width: 17px; height: 17px; border-radius: 5px; accent-color: #3E8FC9; }
  .switch-hint { transition: opacity .18s ease; }
  .switch-hint:active { opacity: .6; }

  /* ---- 红包 / 转账弹层 ---- */
  .pk-head { font-size: 17px; font-weight: 800; text-align: center; letter-spacing: 1px; margin-bottom: 6px; }
  .pk-balance { text-align: center; font-size: 12px; color: var(--dim); margin-bottom: 16px; }
  .pk-balance b { color: var(--blue-deep); font-size: 13px; }
  .pk-amt-wrap {
    display: flex; align-items: baseline; justify-content: center; gap: 5px;
    padding: 6px 0 14px; margin-bottom: 14px;
    border-bottom: 1px dashed rgba(74,159,216,.3);
  }
  .pk-yen { font-size: 22px; font-weight: 700; color: var(--blue-deep); }
  .pk-amt-wrap input {
    width: 64%; border: 0; outline: 0; background: transparent;
    font-size: 38px !important; font-weight: 800; color: var(--text); letter-spacing: .5px;
    /* 之前没写高度，字贴着顶边，看着像被压扁了 */
    height: 52px; line-height: 52px; padding: 0;
  }
  .pk-amt-wrap input::placeholder { color: rgba(147,168,184,.55); font-weight: 500; font-size: 34px; }
  .pk-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .pk-quick button {
    flex: 1 1 0; min-width: 0; height: 38px; border-radius: 12px;
    border: 1px solid rgba(74,159,216,.22); background: rgba(255,255,255,.72);
    color: var(--blue-deep); font-size: 14px; font-weight: 600;
    transition: background .15s ease, transform .12s ease;
  }
  .pk-quick button:active { background: rgba(74,159,216,.18); transform: scale(.96); }
  .pk-tip { font-size: 12px; color: var(--red); text-align: center; min-height: 17px; margin-bottom: 6px; }
  .pkt-got { font-size: 11px; opacity: .95; margin-top: 3px; }
  .pk-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .pk-row .pk-label { font-size: 13px; color: var(--dim); flex: none; width: 34px; }
  .pk-row input { flex: 1; margin-bottom: 0 !important; }

  /* ---- 转账卡片 ---- */
  .pkt.tr {
    display: flex; align-items: center; gap: 12px; min-width: 208px;
    padding: 13px 15px; border-radius: 15px; color: #fff;
    background: linear-gradient(135deg, #F2B76C, #D08B2C);
    box-shadow: 0 10px 22px rgba(208,139,44,.30);
  }
  .pkt.tr.got { background: linear-gradient(135deg, #B8C6D4, #93A4B4); box-shadow: 0 8px 18px rgba(120,140,160,.26); }
  .tr-icon {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.26); font-size: 17px; font-weight: 800;
  }
  .tr-body { flex: 1; min-width: 0; }
  .tr-amt { font-size: 19px; font-weight: 800; letter-spacing: .4px; }
  .tr-note { font-size: 11px; opacity: .94; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tr-state {
    flex: none; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 11px;
    background: rgba(255,255,255,.26);
  }
  /* ---- 转账弹层 ---- */
  .pk-to { text-align: center; font-size: 12px; color: var(--dim); margin-bottom: 14px; }
  .pk-to b { color: var(--text); font-weight: 600; }
  .pk-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
  .pk-chips button {
    height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px;
    border: 1px solid rgba(74,159,216,.22); background: rgba(255,255,255,.72); color: var(--blue-deep);
  }
  .pk-chips button:active { background: rgba(74,159,216,.18); }

  /* ---- 群管理 ---- */
  .gm-list { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
  .gm-list::-webkit-scrollbar { display: none; }
  .gm-row { display: flex; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
  .gm-row:active { background: rgba(74,159,216,.07); }
  .gm-av {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #0B2233; font-weight: 800; font-size: 16px;
  }
  .gm-name { margin-left: 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex: 1; }
  .gm-role {
    font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 600;
    background: rgba(74,159,216,.14); color: var(--blue-deep);
  }
  .gm-role.owner { background: rgba(201,138,60,.16); color: #A8701F; }
  .gm-tools { display: flex; gap: 8px; margin-top: 14px; }
  .gm-tools button { flex: 1; height: 44px; border-radius: 22px; border: 0; font-size: 14.5px; font-weight: 600; }
  .gm-rename { width: 100%; height: 40px; margin-top: 10px; border-radius: 12px; border: 1px dashed rgba(74,159,216,.35); background: transparent; color: var(--blue-deep); font-size: 13.5px; }
  .bubble.video-bubble, .msg.me .bubble.video-bubble {
    background: none; border: 0; box-shadow: none; padding: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .bubble.video-bubble video {
    display: block; max-width: 220px; max-height: 300px; border-radius: 14px;
    box-shadow: 0 10px 24px rgba(70,130,180,.24); background: #0B2233;
  }
  .row.pinned { background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(226,242,253,.72)); }
  .pin-flag {
    font-size: 9.5px; font-weight: 700; color: var(--blue-deep);
    background: rgba(74,159,216,.16); border-radius: 7px; padding: 1px 6px; margin-right: 6px;
    vertical-align: 1px;
  }
  .mute-ico { font-size: 11px; opacity: .7; }
  .badge.muted { background: #93A8B8; box-shadow: 0 4px 10px rgba(147,168,184,.3); }

  /* 会话搜索补出来的通讯录结果 */
  .cf-hits { margin: 12px 12px 20px; }
  .cf-hit-t {
    font-size: 11.5px; font-weight: 700; color: #5F7A8C;
    padding: 6px 4px 8px;
  }
  .cf-hit-tip { font-size: 12px; color: #93A8B8; text-align: center; padding: 18px 0; }
  .cf-hit-row {
    display: flex; align-items: center; gap: 11px;
    background: #fff; border-radius: 13px; padding: 10px 12px; margin-bottom: 8px;
    box-shadow: 0 1px 5px rgba(24,68,102,.06);
    cursor: pointer;
  }
  .cf-hit-row:active { transform: scale(.985); }
  .cf-hit-av {
    width: 40px; height: 40px; border-radius: 11px; flex: none;
    background: center/cover #DCE8F2;
  }
  .cf-hit-info { flex: 1; min-width: 0; }
  .cf-hit-nm { font-size: 13.5px; font-weight: 700; color: #12303F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cf-hit-un { font-size: 11px; color: #93A8B8; margin-top: 2px; }
  .cf-hit-go {
    flex: none; font-size: 11.5px; font-weight: 700; color: #3D8FC7;
    background: rgba(61,143,199,.1); padding: 5px 11px; border-radius: 8px;
  }

  /* ---- 十个新功能 ---- */
  .reply-bar {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: rgba(255,255,255,.8); border-top: 1px solid var(--line);
    font-size: 12px; color: var(--dim);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .reply-txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reply-x { color: var(--faint); padding: 2px 6px; }
  .emoji-panel {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
    padding: 10px 12px; max-height: 190px; overflow-y: auto;
    background: rgba(255,255,255,.86); border-top: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .emoji-panel span { font-size: 22px; text-align: center; padding: 4px 0; border-radius: 8px; }
  .emoji-panel span:active { background: rgba(74,159,216,.16); }
  /* 可点击跳转的引用块 */
  .bubble .quote.q-jumpable {
    cursor: pointer;
    transition: background .16s ease, border-left-color .16s ease;
    position: relative;
  }
  .bubble .quote.q-jumpable:hover {
    background: rgba(74,159,216,.12);
    border-left-color: rgba(74,159,216,.95);
  }
  .msg.me .bubble .quote.q-jumpable:hover {
    background: rgba(255,255,255,.22);
  }
  .bubble .quote.q-jumpable:active {
    background: rgba(74,159,216,.20);
    transform: scale(.995);
  }

  .bubble .quote {
    font-size: 11.5px; color: rgba(255,255,255,.85); border-left: 2px solid rgba(255,255,255,.6);
    padding-left: 7px; margin-bottom: 5px; line-height: 1.35;
    max-height: 34px; overflow: hidden;
  }
  .msg:not(.me) .bubble .quote { color: var(--dim); border-left-color: rgba(74,159,216,.5); }
  .search-hit-row { padding: 12px 4px; border-top: 1px solid var(--line); }
  .search-hit-row .sh-t { font-size: 14px; }
  .search-hit-row .sh-m { font-size: 11px; color: var(--dim); margin-top: 3px; }
  .gm-notice {
    font-size: 12px; color: var(--blue-deep); background: rgba(74,159,216,.10);
    border-radius: 10px; padding: 8px 10px; margin: 8px 0; line-height: 1.5;
  }

  /* ---- 群管理页重排 ---- */
  .gm-head { text-align: center; margin: 2px 0 14px; }
  .gm-hname { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
  .gm-hsub { font-size: 12px; color: var(--dim); margin-top: 5px; }
  .gm-notice {
    display: flex; gap: 8px; align-items: flex-start;
    font-size: 12.5px; color: var(--blue-deep); line-height: 1.55;
    background: rgba(74,159,216,.10); border: 1px solid rgba(74,159,216,.16);
    border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
  }
  .gm-notice span { flex: none; }
  .gm-actions { display: flex; gap: 8px; margin-bottom: 12px; }
  .gm-actions button {
    flex: 1; height: 38px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
    border: 1px solid rgba(74,159,216,.22); background: rgba(255,255,255,.72); color: var(--blue-deep);
  }
  .gm-actions button:active { background: rgba(74,159,216,.16); }
  .gm-search {
    width: 100%; height: 40px; border-radius: 12px; padding: 0 14px; font-size: 14px;
    border: 1px solid rgba(74,159,216,.18); background: rgba(255,255,255,.72);
    outline: 0; color: var(--text); margin-bottom: 8px;
  }
  .gm-search::placeholder { color: var(--faint); }
  .gm-list { max-height: 40vh; overflow-y: auto; }
  .gm-list::-webkit-scrollbar { display: none; }
  .gm-row {
    display: flex; align-items: center; padding: 10px 10px; margin: 4px 0;
    border-radius: 14px; background: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.8);
  }
  .gm-row:active { background: rgba(74,159,216,.10); }
  .gm-av {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #0B2233; font-weight: 800; font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  }
  .gm-name { margin-left: 12px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 7px; flex: 1; }
  .gm-role {
    font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 700;
    background: rgba(74,159,216,.14); color: var(--blue-deep);
  }
  .gm-role.owner { background: rgba(201,138,60,.16); color: #A8701F; }
  .gm-invite {
    width: 100%; height: 46px; margin-top: 12px; border-radius: 23px; border: 0;
    font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
    box-shadow: 0 10px 22px rgba(74,159,216,.28);
  }
  .gm-leave {
    text-align: center; margin-top: 14px; padding: 10px; font-size: 13.5px;
    color: var(--red); font-weight: 600; border-radius: 12px;
  }
  .gm-leave:active { background: rgba(226,87,76,.08); }
  #btnEmoji { font-size: 15px; }
  .emoji-panel span { font-size: 21px; }
  @media (max-width: 360px) {
    .composer { gap: 4px; padding-left: 8px; padding-right: 8px; }
    .composer .tool { width: 32px; height: 32px; }
    .composer .send { width: 38px; height: 38px; }
  }
  /* 群公告条 */
  .notice-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; font-size: 12.5px; line-height: 1.45;
    color: var(--blue-deep);
    background: rgba(74,159,216,.10);
    border-bottom: 1px solid rgba(74,159,216,.14);
  }
  .nb-ico { flex: none; }
  .nb-txt { flex: 1; min-width: 0; }
  .nb-x { flex: none; color: var(--faint); padding: 2px 6px; }
  .new-divider {
    text-align: center; margin: 16px 0 8px;
    font-size: 11px; color: var(--dim);
  }
  .new-divider span {
    padding: 3px 12px; border-radius: 11px;
    background: rgba(74,159,216,.12); color: var(--blue-deep);
  }

  /* ---------- 深色模式 ---------- */
  body.dark {
    --text: #E6EFF7;
    --dim: #9FB3C6;
    --faint: #6E8399;
    --glass: rgba(255,255,255,.07);
    --glass-2: rgba(255,255,255,.12);
    --line: rgba(255,255,255,.10);
    background:
      radial-gradient(900px 520px at 8% -10%, rgba(42,111,151,.45), transparent 62%),
      radial-gradient(820px 560px at 106% 6%, rgba(30,86,120,.5), transparent 64%),
      linear-gradient(168deg, #08151F 0%, #0B1F2D 46%, #0A1B28 100%);
    background-attachment: fixed;
    color: var(--text);
  }
  body.dark .topbar { background: rgba(8,22,32,.72); border-bottom-color: rgba(255,255,255,.08); }
  body.dark .tabbar { background: rgba(18,32,46,.85); border-color: rgba(255,255,255,.10); }
  body.dark .page { background: #08151F; }
  body.dark .row { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
  body.dark .row.pinned { background: rgba(74,159,216,.12); }
  body.dark .row .name, body.dark .row .last { color: var(--text); }
  body.dark .content, body.dark .msgs { background: transparent; }
  body.dark #chat { background: linear-gradient(180deg, #0A1520 0%, #0B1F2D 100%); }
  body.dark .bubble { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.10); color: var(--text); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
  body.dark .msg.me .bubble { background: linear-gradient(160deg, #3A86B5, #22608A); color: #F2FAFF; }
  body.dark .msgtime { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); color: var(--dim); }
  body.dark .composer { background: rgba(8,22,32,.78); border-top-color: rgba(255,255,255,.08); }
  body.dark .composer input[type=text] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); color: var(--text); }
  body.dark .composer .tool { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); color: var(--text); }
  body.dark .emoji-panel { background: rgba(12,26,38,.9); border-top-color: rgba(255,255,255,.08); }
  body.dark .reply-bar { background: rgba(12,26,38,.85); border-top-color: rgba(255,255,255,.08); }
  body.dark .me-hero { background: linear-gradient(150deg, #1E4A6B, #123A54 55%, #0E2C42); }
  body.dark .me-card, body.dark .me-stats { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); }
  body.dark .me-card .line + .line, body.dark .me-stats .stat + .stat { border-color: rgba(255,255,255,.08); }
  body.dark .gm-row { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.07); }
  body.dark .gm-search, body.dark .sheet input, body.dark .field input { background: rgba(255,255,255,.08); color: var(--text); }
  body.dark .sheet .box { background: rgba(14,28,40,.97); border-top-color: rgba(255,255,255,.08); }
  body.dark .toast { background: rgba(20,34,48,.96); color: var(--text); border-color: rgba(255,255,255,.10); }
  body.dark .login-error { color: #FF8A80; }
  body.dark .notice-bar { background: rgba(74,159,216,.14); border-bottom-color: rgba(255,255,255,.08); color: #9FD3F0; }
  body.dark .avatar .dot { border-color: #0E2030; }
  body.dark .pk-quick button, body.dark .pk-chips button, body.dark .gm-actions button { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #9FD3F0; }
  body.dark .pk-search, body.dark .pk-amt-wrap input { color: var(--text); }
  body.dark .search-hit-row { border-color: rgba(255,255,255,.08); }
  body.dark .zoom-wrap { background: rgba(4,12,18,.9); }

  /* ---------- 聊天界面精修 ---------- */
  /* 气泡圆角：靠头像那一角收小，显得有"说出来"的方向 */
  .msg:not(.me) .bubble { border-radius: 6px 18px 18px 18px; }
  .msg.me .bubble { border-radius: 18px 6px 18px 18px; }
  /* 连续同一个人的消息：间距收紧、头像占位不重复 */
  .msg.same-prev { margin-top: 3px; }
  .msg.same-prev .av { opacity: 0; }
  .msg.same-prev .bubble { margin-top: 0; }
  /* 头像加一圈柔光，像浮在浅蓝上 */
  .msg .av, .row .avatar { box-shadow: 0 4px 12px rgba(70,130,180,.22), inset 0 0 0 1px rgba(255,255,255,.5); }
  .msg .av.with-dot { box-shadow: 0 4px 12px rgba(70,130,180,.22), 0 0 0 2px rgba(63,207,142,.35), inset 0 0 0 1px rgba(255,255,255,.5); }
  /* 消息区底部留一点呼吸 */
  #chat .msgs { padding-bottom: 18px; }
  /* 气泡里的引用块更清楚 */
  .bubble .quote { padding: 5px 8px; border-radius: 8px; background: rgba(0,0,0,.06); border-left: 2.5px solid rgba(74,159,216,.6); }
  .msg.me .bubble .quote { background: rgba(255,255,255,.14); border-left-color: rgba(255,255,255,.75); }
  /* 发送键微光 */
  .composer .send:not(:disabled) { box-shadow: 0 8px 20px rgba(74,159,216,.4), inset 0 1px 0 rgba(255,255,255,.4); }

  /* ---------- 整体再优化 ---------- */
  /* 顶栏标题更稳 */
  .topbar .title { font-weight: 800; letter-spacing: .5px; }
  /* 列表卡片阴影分三级 */
  .row { box-shadow: 0 4px 14px rgba(70,130,180,.08); }
  .row:active { box-shadow: 0 2px 8px rgba(70,130,180,.12); transform: scale(.995); }
  /* 分段 tab 选中更立体 */
  .tabbar div.on { box-shadow: 0 8px 18px rgba(74,159,216,.32), inset 0 1px 0 rgba(255,255,255,.45); }
  /* 空状态图标呼吸 */
  .empty-ico { filter: drop-shadow(0 6px 14px rgba(74,159,216,.28)); }
  /* 弹层盒子阴影加深 */
  .sheet .box { box-shadow: 0 -20px 50px rgba(40,80,120,.22); }
  /* 长消息行高放宽一点，读着舒服 */
  .bubble { line-height: 1.52; }

  /* 深色模式下的对应调整 */
  body.dark .row { box-shadow: 0 4px 14px rgba(0,0,0,.32); }
  body.dark .msg .av, body.dark .row .avatar { box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.10); }
  body.dark .bubble .quote { background: rgba(255,255,255,.08); border-left-color: rgba(159,211,240,.7); }
  body.dark .sheet .box { box-shadow: 0 -20px 50px rgba(0,0,0,.5); }
  /* 个人资料页 */
  .pf-wrap { text-align: center; padding: 4px 0 8px; }
  .pf-av {
    width: 84px; height: 84px; border-radius: 26px; margin: 4px auto 14px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 30px; font-weight: 800;
    box-shadow: var(--sh-sm), inset 0 0 0 1px rgba(255,255,255,.45);
  }
  .pf-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
  .pf-acc { font-size: 12px; color: var(--dim); margin-top: 5px; }
  .pf-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
  .pf-tag {
    font-size: 11px; padding: 3px 9px; border-radius: 10px; font-weight: 600;
    background: rgba(74,159,216,.14); color: var(--blue-deep);
  }
  .pf-tag.green { background: rgba(46,158,107,.15); color: var(--green); }
  .pf-tag.gold { background: rgba(201,138,60,.16); color: #A8701F; }
  .pf-sec { font-size: 12px; color: var(--dim); text-align: left; margin: 18px 0 8px; }
  .pf-groups { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; min-height: 24px; }
  .pf-group {
    font-size: 12px; padding: 5px 11px; border-radius: 12px;
    background: rgba(255,255,255,.7); border: 1px solid rgba(74,159,216,.18); color: var(--blue-deep);
  }
  .pf-actions { margin-top: 20px; }
  .pf-actions .btn-primary { margin-top: 0; }
  .pf-remark {
    width: 100%; height: 42px; margin-top: 10px; border-radius: 21px;
    border: 1px dashed rgba(74,159,216,.35); background: transparent; color: var(--blue-deep); font-size: 14px;
  }
  body.dark .pf-group { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #9FD3F0; }
  body.dark .pf-remark { border-color: rgba(159,211,240,.35); color: #9FD3F0; }

  /* ---------- 统一阴影：干净、不外散 ---------- */
  :root {
    --sh-sm: 0 1px 3px rgba(16,42,64,.07), 0 1px 2px rgba(16,42,64,.05);
    --sh-md: 0 3px 10px rgba(16,42,64,.09), 0 1px 3px rgba(16,42,64,.06);
    --sh-lg: 0 10px 24px rgba(16,42,64,.13), 0 3px 8px rgba(16,42,64,.07);
  }
  body.dark {
    --sh-sm: 0 1px 3px rgba(0,0,0,.35);
    --sh-md: 0 3px 10px rgba(0,0,0,.4);
    --sh-lg: 0 10px 24px rgba(0,0,0,.5);
  }
  .row, .me-card, .me-stats, .card, .gm-row, .stat { box-shadow: var(--sh-sm); }
  .row:active, .card .line:active, .me-card .line:active, .gm-row:active { box-shadow: none; }
  .tabbar { box-shadow: var(--sh-md); }
  .topbar { box-shadow: 0 1px 0 var(--line); }
  .bubble { box-shadow: var(--sh-sm); }
  .msg.me .bubble { box-shadow: 0 2px 8px rgba(42,111,151,.18); }
  .me-hero, .me-head { box-shadow: var(--sh-md); }
  .sheet .box { box-shadow: 0 -8px 28px rgba(16,42,64,.18); }
  body.dark .sheet .box { box-shadow: 0 -8px 28px rgba(0,0,0,.55); }
  .toast { box-shadow: var(--sh-md); }
  .zoom-wrap img { box-shadow: 0 16px 40px rgba(0,0,0,.4); }
  .btn-primary, .gm-invite, .pf-actions .btn-primary { box-shadow: 0 4px 12px rgba(74,159,216,.24); }
  .composer .send:not(:disabled) { box-shadow: 0 3px 10px rgba(74,159,216,.28); }
  .badge { box-shadow: 0 2px 5px rgba(226,87,76,.3); }
  /* 头像：去掉外发光，只留一圈细边 */
  .msg .av, .row .avatar, .avatar, .me-avatar, .pf-av, .gm-av {
    box-shadow: 0 1px 3px rgba(16,42,64,.10), inset 0 0 0 1px rgba(255,255,255,.45);
  }
  .msg .av.with-dot, .avatar.with-dot {
    box-shadow: 0 1px 3px rgba(16,42,64,.10), inset 0 0 0 1px rgba(255,255,255,.45);
  }
  body.dark .msg .av, body.dark .row .avatar, body.dark .avatar, body.dark .me-avatar,
  body.dark .pf-av, body.dark .gm-av {
    box-shadow: 0 1px 3px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.10);
  }
  /* 空状态图标不再发光 */
  .empty-ico { filter: none; }
  /* 顶栏/输入栏去掉过重的模糊背衬 */
  .topbar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .composer { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .load-more {
    text-align: center; color: var(--blue-deep); font-size: 12.5px; padding: 12px 0 8px;
    margin: 4px 12px; border-radius: 14px; background: rgba(74,159,216,.08);
    border: 1px dashed rgba(74,159,216,.25);
  }
  .load-more:active { background: rgba(74,159,216,.16); }

  /* ---------- 性能：把"每行都做背景模糊"改成纯半透明 ---------- */
  /* backdrop-filter 会让每个元素单独合成一层，列表滚动时最耗性能 */
  .row, .card, .me-card, .me-stats, .stat, .gm-row, .search-hit-row,
  .bubble, .msgtime, .field, .login-tabs, .pk-quick button, .pk-chips button,
  .gm-actions button, .pf-group, .notice-bar, .reply-bar, .emoji-panel,
  .toast, .load-more, .sheet .item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* 用不透明的半透明白补回来，视觉几乎一样 */
  .row { background: rgba(255,255,255,.86); }
  body.dark .row { background: rgba(22,38,54,.92); }
  .bubble { background: rgba(255,255,255,.92); }
  body.dark .bubble { background: rgba(28,44,62,.95); }
  .msgtime { background: rgba(255,255,255,.9); }
  body.dark .msgtime { background: rgba(24,40,56,.95); }
  .me-card, .me-stats, .stat, .card { background: rgba(255,255,255,.82); }
  body.dark .me-card, body.dark .me-stats, body.dark .stat, body.dark .card { background: rgba(22,38,54,.9); }
  .reply-bar { background: rgba(255,255,255,.94); }
  body.dark .reply-bar { background: rgba(18,32,46,.96); }
  .emoji-panel { background: rgba(255,255,255,.96); }
  body.dark .emoji-panel { background: rgba(18,32,46,.97); }
  .notice-bar { background: rgba(230,244,255,.95); }
  body.dark .notice-bar { background: rgba(30,60,86,.9); }
  /* 只保留少数几处的模糊：顶栏、底部 tab、输入栏、弹层 */
  .topbar, .tabbar, .composer, .sheet .box, .zoom-wrap {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
  .fav-row { display: flex; gap: 11px; padding: 12px 4px; border-top: 1px solid var(--line); align-items: flex-start; }
  .fav-ico {
    flex: none; width: 34px; height: 34px; border-radius: 11px; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(74,159,216,.12);
  }
  .fav-body { flex: 1; min-width: 0; }
  .fav-row:active { background: rgba(74,159,216,.07); }
  .fav-t { font-size: 14px; line-height: 1.45; }
  .fav-m { font-size: 11px; color: var(--dim); margin-top: 4px; }
  /* 新消息提示 */
  .new-tip {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 150px; z-index: 60;
    padding: 7px 16px; border-radius: 18px; font-size: 12.5px; font-weight: 600;
    color: #fff; background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
    box-shadow: 0 6px 16px rgba(74,159,216,.3);
  }
  body.dark .new-tip { box-shadow: 0 6px 16px rgba(0,0,0,.45); }

  /* 表情面板分组 */
  .emoji-panel { display: block; }
  .emoji-title { font-size: 11px; color: var(--faint); margin: 6px 2px 4px; }
  .emoji-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .emoji-row span { font-size: 21px; text-align: center; padding: 4px 0; border-radius: 8px; }

  /* 图片占位 */
  .img-wrap { position: relative; min-width: 90px; min-height: 90px; border-radius: 14px; overflow: hidden; }
  .img-wrap .img-ph {
    position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(110deg, rgba(200,224,240,.5) 8%, rgba(232,245,253,.7) 18%, rgba(200,224,240,.5) 33%);
    background-size: 220% 100%;
    animation: shimmer 1.3s linear infinite;
  }
  body.dark .img-wrap .img-ph { background: linear-gradient(110deg, rgba(40,60,80,.6) 8%, rgba(60,84,108,.7) 18%, rgba(40,60,80,.6) 33%); background-size: 220% 100%; }
  .img-wrap.loaded .img-ph { display: none; }
  .img-wrap img { position: relative; z-index: 1; display: block; }
  @keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

  /* ---------- 深色模式：登录页 ---------- */
  body.dark #login {
    background:
      radial-gradient(900px 520px at 8% -10%, rgba(42,111,151,.5), transparent 62%),
      radial-gradient(820px 560px at 106% 6%, rgba(30,86,120,.55), transparent 64%),
      linear-gradient(168deg, #08151F 0%, #0B1F2D 46%, #0A1B28 100%);
    background-attachment: fixed;
  }
  body.dark #login::before { background: rgba(42,111,151,.45); }
  body.dark #login::after { background: rgba(30,86,120,.5); }
  body.dark .brand .logo {
    background: linear-gradient(155deg, #14314A, #0E2436 62%, #0B1D2C);
    border-color: rgba(255,255,255,.10);
    color: #8FD0F2;
    box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.10);
  }
  body.dark .brand .logo::after { background: linear-gradient(105deg, rgba(255,255,255,0), rgba(143,208,242,.35), rgba(255,255,255,0)); }
  body.dark .brand h1 { color: var(--text); }
  body.dark .brand .sub { color: var(--dim); }
  body.dark .field {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
  }
  body.dark .field input,
  body.dark .composer input[type=text],
  body.dark .sheet input,
  body.dark .gm-search {
    color: var(--text) !important;
    background: transparent !important;
    -webkit-text-fill-color: var(--text);
  }
  body.dark .sheet input, body.dark .gm-search { background: rgba(255,255,255,.08) !important; }
  body.dark input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(20,36,52,.95) inset !important;
    -webkit-text-fill-color: var(--text) !important;
  }
  body.dark .field input::placeholder { color: var(--faint); }
  body.dark .field .ico { color: #8FD0F2; }
  body.dark .field .eye { color: var(--dim); }
  body.dark .login-tabs {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.10);
    box-shadow: none;
  }
  body.dark .login-tab { color: var(--dim); }
  body.dark .login-tab.on { color: #fff; }
  body.dark .switch-hint { color: #8FD0F2; }
  body.dark .remember { color: var(--dim); }
  body.dark .srv { color: var(--faint); }

  /* ---------- 本地删除的消息 ---------- */
  /* ---------- @ 提醒高亮 ---------- */
  .bubble.mention { border-color: rgba(232,192,122,.75) !important; box-shadow: 0 0 0 2px rgba(232,192,122,.22); }
  /* 多选 */
  .chat-select .msg { cursor: pointer; }
  .msg.sel .bubble { outline: 2px solid #4A9FD8; outline-offset: 2px; }
  .select-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 20px;
    background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 10px 26px rgba(16,42,64,.18); z-index: 70;
  }
  body.dark .select-bar { background: rgba(20,34,48,.97); border-color: rgba(255,255,255,.1); }
  .select-bar .sb-n { flex: 1; font-size: 13px; color: var(--dim); }
  .select-bar .sb-btn {
    height: 34px; padding: 0 14px; border-radius: 17px; border: 0; font-size: 13px; font-weight: 600;
    color: #fff; background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
  }
  .select-bar .sb-btn.danger { background: linear-gradient(160deg, #F09086, #DE5B4E); }
  .select-bar .sb-btn.ghost { background: rgba(255,255,255,.85); color: var(--blue-deep); border: 1px solid rgba(74,159,216,.2); }
  body.dark .select-bar .sb-btn.ghost { background: rgba(255,255,255,.08); color: #9FD3F0; }

  /* ---------- 聊天背景 ---------- */
  body.bg-paper #chat {
    background:
      radial-gradient(700px 400px at 20% 0%, rgba(255,248,235,.9), transparent 62%),
      linear-gradient(170deg, #FBF7EF 0%, #F5EFE3 100%) !important;
  }
  body.dark.bg-paper #chat {
    background: linear-gradient(170deg, #1E1A14 0%, #17130F 100%) !important;
  }
  body.bg-night #chat {
    background:
      radial-gradient(800px 480px at 85% -5%, rgba(60,110,160,.5), transparent 62%),
      linear-gradient(170deg, #0A1520 0%, #071018 100%) !important;
  }
  body.bg-night .bubble { background: rgba(255,255,255,.10); color: #E6EFF7; border-color: rgba(255,255,255,.10); }
  body.bg-night .msgtime { background: rgba(255,255,255,.10); color: #9FB3C6; }
  body.bg-paper .bubble { background: rgba(255,255,255,.92); color: #12303F; }
  body.dark.bg-paper .bubble { background: rgba(40,34,26,.95); color: #E6EFF7; }

  /* ---------- 字体大小 ---------- */
  body.fs-small .bubble { font-size: 14px; }
  body.fs-large .bubble { font-size: 18px; }
  body.fs-large .row .name { font-size: 17px; }
  body.fs-large .row .last { font-size: 14px; }
  body.fs-small .row .name { font-size: 15px; }
  body.fs-small .row .last { font-size: 12px; }

  /* 设置里的选择器 */
  .set-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
  .set-row .set-label { font-size: 13px; color: var(--dim); width: 68px; flex: none; }
  .set-opts { display: flex; gap: 8px; flex: 1; }
  .set-opts button {
    flex: 1; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 600;
    border: 1px solid rgba(74,159,216,.22); background: rgba(255,255,255,.75); color: var(--blue-deep);
  }
  .set-opts button.on { background: linear-gradient(160deg, #8FD0F2, #3E8FC9); color: #fff; border-color: transparent; }
  body.dark .set-opts button { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #9FD3F0; }
  body.dark .set-opts button.on { background: linear-gradient(160deg, #3E8FC9, #2E6E96); color: #fff; }
  @keyframes jumpFlash {
    0%, 100% { background: transparent; }
    30% { background: rgba(232,192,122,.28); }
    60% { background: rgba(232,192,122,.14); }
  }
  .msg.jump-flash .bubble { animation: jumpFlash 1.5s ease; }
  .conv-filter { padding: 8px 12px 4px; }
  .conv-filter input {
    width: 100%; height: 38px; border-radius: 12px; padding: 0 14px; font-size: 13.5px;
    border: 1px solid var(--line); background: rgba(255,255,255,.78); color: var(--text); outline: 0;
  }
  body.dark .conv-filter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); }
  .conv-filter input::placeholder { color: var(--faint); }
  /* 朋友圈 */
  #moments { background: linear-gradient(180deg, #EDF5FC, #D8EAF8); z-index: 5; }
  body.dark #moments { background: linear-gradient(180deg, #08151F, #0B1F2D); }
  .mo-item {
    display: flex; gap: 12px; padding: 16px 14px;
    background: rgba(255,255,255,.86); margin: 10px 12px; border-radius: 18px;
    box-shadow: var(--sh-sm);
  }
  body.dark .mo-item { background: rgba(22,38,54,.92); }
  .mo-av {
    width: 44px; height: 44px; border-radius: 14px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 17px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  }
  .mo-body { flex: 1; min-width: 0; }
  .mo-name { font-size: 15px; font-weight: 700; }
  .mo-text { font-size: 14.5px; line-height: 1.55; margin-top: 5px; word-break: break-word; }
  .mo-img { margin-top: 9px; border-radius: 14px; overflow: hidden; max-width: 220px; }
  .mo-img img { width: 100%; display: block; }
  .mo-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--faint); }
  .mo-acts { display: flex; gap: 12px; }
  .mo-act { color: var(--blue-deep); font-weight: 600; }
  .mo-act.on { color: var(--green); }
  .mo-act.danger { color: #D2544A; }
  .mo-likes {
    margin-top: 10px; padding: 8px 10px; border-radius: 12px;
    background: rgba(74,159,216,.08); font-size: 12.5px; color: var(--blue-deep);
  }
  .mo-heart { color: #E2574C; margin-right: 5px; }
  .mo-comments { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.65); }
  body.dark .mo-comments { background: rgba(255,255,255,.06); }
  .mo-cmt { font-size: 13px; line-height: 1.55; }
  .mo-cmt b { color: var(--blue-deep); }
  .mo-pick {
    margin-top: 10px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    border: 1px dashed rgba(74,159,216,.3); color: var(--blue-deep); font-size: 13px;
  }
  /* @ 补全面板 */
  .composer { position: relative; }
  .mention-panel {
    position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px);
    max-height: 190px; overflow-y: auto; padding: 6px;
    background: rgba(255,255,255,.97); border-radius: 16px 16px 0 0;
    border: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,42,64,.12);
  }
  body.dark .mention-panel { background: rgba(18,32,46,.98); }
  .mention-panel.hidden { display: none; }
  .mt-item { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 11px; }
  .mt-item:active { background: rgba(74,159,216,.12); }
  .mt-av {
    width: 28px; height: 28px; border-radius: 9px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700;
  }
  .mt-name { font-size: 14px; }

  /* 输入框聚焦微光 */
  .composer input[type=text]:focus {
    border-color: rgba(74,159,216,.55);
    box-shadow: 0 0 0 3px rgba(74,159,216,.13);
  }
  body.dark .composer input[type=text]:focus { box-shadow: 0 0 0 3px rgba(143,208,242,.16); }
  /* 工具按钮按下反馈 */
  .composer .tool:active { transform: scale(.94); }
  /* 顶栏返回键按压 */
  .topbar .ic:active { opacity: .55; transform: scale(.94); }

  /* ---------- 视觉精修 ---------- */
  /* 顶栏加一层细腻的渐变，不再是纯色玻璃 */
  .topbar {
    background: linear-gradient(180deg, rgba(236,247,255,.92), rgba(224,240,251,.86)) !important;
  }
  body.dark .topbar {
    background: linear-gradient(180deg, rgba(12,28,42,.94), rgba(9,22,34,.9)) !important;
  }
  /* 底部分段 tab：更圆润、选中更亮 */
  .tabbar {
    border-radius: 24px !important;
    padding: 6px !important;
  }
  .tabbar div.on {
    background: linear-gradient(160deg, #9FDBF6, #3E8FC9) !important;
    color: #fff !important;
  }
  /* 卡片：内描边让边缘更干净 */
  .row, .me-card, .me-stats, .mo-item, .gm-row {
    border: 1px solid rgba(255,255,255,.8) !important;
  }
  body.dark .row, body.dark .me-card, body.dark .me-stats, body.dark .mo-item, body.dark .gm-row {
    border: 1px solid rgba(255,255,255,.06) !important;
  }
  /* 列表行名称与预览的层级更清楚 */
  .row .name { letter-spacing: .2px; }
  .row .last { opacity: .82; }
  /* 气泡文字更清晰 */
  .bubble { -webkit-font-smoothing: antialiased; }
  /* 主按钮渐变更顺 */
  .btn-primary {
    background: linear-gradient(160deg, #9FDBF6 0%, #57A8DC 55%, #3E8FC9 100%) !important;
  }
  .btn-primary:active { filter: brightness(.96); }
  /* 空状态：加一圈柔光底 */
  .empty-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 30px; margin-bottom: 14px;
    background: radial-gradient(circle at 40% 35%, rgba(159,219,246,.45), rgba(159,219,246,.08) 70%);
    font-size: 42px;
  }
  /* 顶栏返回键更大点、更好点 */
  .topbar .ic.back { font-size: 26px; line-height: 1; }
  /* 时间胶囊更淡 */
  .msgtime { color: var(--dim) !important; }
  /* 滚动条（桌面浏览器）细一点 */
  .content::-webkit-scrollbar, #msgs::-webkit-scrollbar { width: 6px; }
  .content::-webkit-scrollbar-thumb, #msgs::-webkit-scrollbar-thumb {
    background: rgba(74,159,216,.25); border-radius: 3px;
  }
  body.bg-custom .bubble { background: rgba(255,255,255,.94); }
  body.bg-custom.dark .bubble { background: rgba(28,44,62,.96); }

  /* 群管理精修 */
  .gm-wrap { padding: 2px 0 8px; }
  .gm-notice {
    border-radius: 14px !important; padding: 12px 14px !important;
    background: linear-gradient(135deg, rgba(159,219,246,.22), rgba(159,219,246,.08)) !important;
    border: 1px solid rgba(74,159,216,.18) !important;
  }
  .gm-search { border-radius: 13px !important; }
  .gm-row {
    border-radius: 14px !important; padding: 10px 12px !important;
    margin-bottom: 7px !important;
  }
  .gm-row:active { background: rgba(74,159,216,.07); }
  .gm-name { letter-spacing: .2px; }
  .gm-actions button { border-radius: 11px !important; }
  .gm-invite {
    border-radius: 16px !important; height: 46px !important;
    background: linear-gradient(160deg, #9FDBF6, #3E8FC9) !important; color: #fff !important;
    border: 0 !important; font-weight: 700 !important;
  }
  .gm-tag { border-radius: 8px !important; font-weight: 700; }
  .conv-group {
    font-size: 11.5px; color: var(--faint); font-weight: 600;
    padding: 12px 6px 2px; letter-spacing: .5px;
  }
  .invite-code {
    font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 6px;
    text-align: center; padding: 18px 0; margin: 8px 0;
    background: rgba(74,159,216,.10); border-radius: 14px; color: var(--blue-deep);
  }
  .invite-tip { font-size: 12px; color: var(--dim); text-align: center; line-height: 1.65; }
  /* 深色：清理/外观弹层里的选择器 */
  body.dark .set-opts button { background: rgba(255,255,255,.08); }
  body.dark .gm-invite { color: #fff !important; }
  body.dark .gm-notice { background: linear-gradient(135deg, rgba(74,159,216,.16), rgba(74,159,216,.06)) !important; }
  body.dark .load-more { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #9FD3F0; }
  body.dark .conv-group { color: var(--faint); }
  body.fs-huge .bubble { font-size: 20px; }
  body.fs-huge .row .name { font-size: 18px; }
  body.fs-huge .row .last { font-size: 15px; }
  .gs-hist { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }
  .gs-hist-title { width: 100%; font-size: 11px; color: var(--faint); margin-bottom: 2px; }
  .gs-hist-item {
    font-size: 12.5px; padding: 5px 11px; border-radius: 12px;
    background: rgba(74,159,216,.10); color: var(--blue-deep);
  }
  .gs-hist-item:active { background: rgba(74,159,216,.2); }
  .typing-hint {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 132px; z-index: 55; padding: 5px 14px; border-radius: 14px;
    font-size: 12px; color: var(--blue-deep);
    background: rgba(255,255,255,.94); border: 1px solid rgba(74,159,216,.18);
    box-shadow: var(--sh-sm);
  }
  body.dark .typing-hint { background: rgba(24,40,56,.96); color: #9FD3F0; border-color: rgba(255,255,255,.10); }
  /* 点击即时反馈 */
  .row.pressed { transform: scale(.985); background: rgba(74,159,216,.14) !important; }
  body.dark .row.pressed { background: rgba(255,255,255,.12) !important; }
  /* 消息加载骨架 */
  .msg-loading {
    display: flex; justify-content: center; align-items: center; gap: 6px;
    padding: 40px 0; 
  }
  .ml-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(74,159,216,.55);
    animation: mlPulse 1s infinite ease-in-out;
  }
  .ml-dot:nth-child(2) { animation-delay: .15s; }
  .ml-dot:nth-child(3) { animation-delay: .3s; }
  @keyframes mlPulse { 0%,100% { opacity:.35; transform: scale(.8); } 50% { opacity:1; transform: scale(1.1); } }
  .chat-empty { text-align: center; padding: 70px 20px; }

  /* ---------- 移动端性能：干掉最费的两处整屏模糊 ---------- */
  /* 底部导航：整屏宽的模糊条，滑动/切换时每帧都要重算 */
  .tabbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,.94) !important;
  }
  body.dark .tabbar { background: rgba(18,32,46,.96) !important; }
  /* 聊天页：铺满整屏的背景模糊，开销最大 */
  #chat {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* 顶栏也只留一点，避免滚动时重算 */
  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(240,248,255,.97) !important;
  }
  body.dark .topbar { background: rgba(11,26,40,.97) !important; }
  /* 输入栏同理 */
  .composer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(250,253,255,.97) !important;
  }
  body.dark .composer { background: rgba(12,26,40,.97) !important; }

  /* 导航点击立刻高亮，不要过渡延迟 */
  .tabbar div { transition: color .12s ease, background .12s ease !important; }
  .tabbar div.on { transition: none !important; }
  /* 自定义表情包 */
  .stk-add { color: var(--blue-deep); font-weight: 600; margin-left: 6px; }
  .stk-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 2px 0 6px; }
  .stk-item {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
    background: rgba(74,159,216,.08);
  }
  /* 长按删除表情包的确认框 */
  .stk-del-mask {
    position: fixed; inset: 0; z-index: 9600;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8, 22, 34, .55);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    animation: fadeIn .14s ease;
    padding: 24px;
  }
  .stk-del-card {
    width: 100%; max-width: 280px;
    background: #fff; border-radius: 18px;
    padding: 20px 18px 16px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.32);
    animation: popIn .2s cubic-bezier(.2,.9,.3,1);
  }
  .stk-del-prev {
    width: 84px; height: 84px; margin: 0 auto 14px;
    border-radius: 14px; overflow: hidden;
    background: rgba(62,143,201,.07);
    display: flex; align-items: center; justify-content: center;
  }
  .stk-del-prev img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
  .stk-del-t { font-size: 15px; font-weight: 800; color: var(--c-text); }
  .stk-del-s { font-size: 11.5px; color: var(--c-text-3); margin-top: 6px; line-height: 1.5; }
  .stk-del-btns { display: flex; gap: 9px; margin-top: 16px; }
  .stk-del-btns button {
    flex: 1; height: 42px; border: 0; border-radius: 11px;
    font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .stk-del-cancel { background: var(--c-bg-1); color: var(--c-text-2); }
  .stk-del-ok { background: #E05A54; color: #fff; }
  .stk-del-ok:disabled { opacity: .7; }

  .stk-empty { font-size: 11.5px; color: var(--faint); padding: 4px 2px 8px; }
  .stk-tip { font-size: 12.5px; color: var(--dim); line-height: 1.6; margin-bottom: 10px; }
  .stk-pick {
    height: 90px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    border: 1px dashed rgba(74,159,216,.35); color: var(--blue-deep); font-size: 13px;
  }
  /* 投票卡 */
  .poll-bubble { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .poll-card {
    width: 250px; background: rgba(255,255,255,.96); border-radius: 16px; padding: 13px 14px;
    border: 1px solid rgba(74,159,216,.18); box-shadow: var(--sh-sm);
    color: #12303F !important;   /* 不被自己气泡的白字继承 */
    text-align: left;
  }
  .poll-card .poll-q { color: #12303F !important; }
  body.dark .poll-card { background: rgba(24,40,56,.97); border-color: rgba(255,255,255,.1); color: #E6EFF7 !important; }
  body.dark .poll-card .poll-q, body.dark .poll-txt { color: #E6EFF7 !important; }
  .poll-q { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
  .poll-opts { display: flex; flex-direction: column; gap: 7px; }
  .poll-opt {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(74,159,216,.2); padding: 9px 11px; cursor: pointer;
  }
  .poll-opt:active { transform: scale(.99); }
  .poll-opt .poll-bar {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: rgba(74,159,216,.16); transition: width .3s ease;
  }
  .poll-opt.mine { border-color: rgba(74,159,216,.6); }
  .poll-opt.mine .poll-bar { background: rgba(74,159,216,.3); }
  .poll-txt { position: relative; display: flex; justify-content: space-between; font-size: 13px; color: #12303F !important; }
  .poll-num { color: var(--dim) !important; font-size: 11.5px; }
  .poll-foot { font-size: 11.5px; color: var(--dim) !important; margin-top: 9px; }
  .po-add {
    height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    border: 1px dashed rgba(74,159,216,.3); color: var(--blue-deep); font-size: 13px; margin-top: 8px;
  }
  .po-opt { margin-top: 8px !important; }

  /* ---------- UI 精修：比例、层次、呼吸感 ---------- */
  /* 顶栏：更稳的标题 + 更轻的底边 */
  .topbar {
    height: 56px !important;
    padding: 0 14px !important;
    border-bottom: 1px solid rgba(74,159,216,.10) !important;
  }
  .topbar .title { font-size: 17px !important; font-weight: 800 !important; letter-spacing: .6px !important; }
  .topbar .ic { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }

  /* 列表卡片：统一的节奏 */
  .row {
    padding: 13px 14px !important;
    border-radius: 18px !important;
    margin-bottom: 9px !important;
  }
  .row .avatar { width: 48px !important; height: 48px !important; border-radius: 15px !important; font-size: 18px !important; }
  .row .body { padding-left: 12px !important; }
  .row .name { font-size: 16px !important; font-weight: 700 !important; line-height: 1.3 !important; }
  .row .last { font-size: 12.8px !important; margin-top: 3px !important; color: var(--dim) !important; }
  .row .meta { font-size: 11px !important; }

  /* 分组标题：加个小圆点 */
  .conv-group {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px !important; font-weight: 700 !important;
    padding: 14px 4px 8px !important; letter-spacing: .3px !important;
  }
  .conv-group::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--primary, #4A9FD8); opacity: .65;
  }

  /* 底部导航：图标更协调 */
  .tabbar { height: 62px !important; }
  .tabbar div { font-size: 10.5px !important; gap: 3px !important; }
  .tabbar .ti { width: 22px !important; height: 22px !important; }

  /* 搜索框：更安静 */
  .conv-filter input {
    height: 40px !important; border-radius: 14px !important; font-size: 13.5px !important;
    background: rgba(255,255,255,.72) !important;
    border: 1px solid rgba(74,159,216,.14) !important;
  }
  .conv-filter input:focus {
    border-color: rgba(74,159,216,.5) !important;
    box-shadow: 0 0 0 3px rgba(74,159,216,.10) !important;
  }

  /* 我页面：信息卡更透气 */
  .me-hero { padding: 18px !important; border-radius: 20px !important; }
  .me-stats .stat { padding: 16px 8px !important; }
  .me-stats .stat .num { font-size: 20px !important; }
  .me-stats .stat .label { font-size: 11.5px !important; margin-top: 3px !important; }
  .me-card .line { padding: 14px 16px !important; }
  .me-card .line .l { font-size: 15px !important; }

  /* 聊天气泡：行距、圆角再顺一点 */
  .bubble { padding: 10px 13px !important; font-size: 15px !important; }
  .msg { margin: 7px 0 !important; }

  /* 空状态 */
  .empty { font-size: 13.5px !important; line-height: 1.8 !important; color: var(--dim) !important; }
  .empty-ico { width: 84px !important; height: 84px !important; font-size: 36px !important; border-radius: 26px !important; }

  body.dark .row .last { color: #9FB3C6 !important; }
  body.dark .conv-filter input { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.1) !important; }
  .enc-info {
    background: rgba(74,159,216,.08); border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px;
    text-align: left;
  }
  .enc-line { font-size: 13px; line-height: 1.75; color: var(--text); }
  .enc-line.dim { color: var(--dim); font-size: 12.5px; }
  .enc-line code {
    background: rgba(74,159,216,.14); padding: 1px 5px; border-radius: 5px;
    font-size: 11.5px; font-family: ui-monospace, Menlo, monospace;
  }
  body.dark .enc-info { background: rgba(74,159,216,.12); }

  /* ==================== 潮生阁 · 设计规范 v2 ==================== */
  :root {
    /* 色彩 */
    --c-bg-1: #F2F8FD;
    --c-bg-2: #DFEEF9;
    --c-surface: #FFFFFF;
    --c-surface-2: rgba(255,255,255,.78);
    --c-line: rgba(24,68,102,.10);
    --c-line-strong: rgba(24,68,102,.16);
    --c-text: #10344A;
    --c-text-2: #4A6B82;
    --c-text-3: #829BB0;
    --c-brand: #3E8FC9;
    --c-brand-2: #8FD0F2;
    --c-brand-deep: #245E87;
    --c-gold: #C58A38;
    --c-green: #2E9E6B;
    --c-red: #D2544A;

    /* 圆角 */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-full: 999px;

    /* 间距 */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 26px;

    /* 阴影（三级，永不外散） */
    --e-1: 0 1px 2px rgba(16,52,74,.06), 0 1px 3px rgba(16,52,74,.05);
    --e-2: 0 2px 6px rgba(16,52,74,.07), 0 4px 14px rgba(16,52,74,.06);
    --e-3: 0 6px 18px rgba(16,52,74,.10), 0 12px 32px rgba(16,52,74,.08);

    /* 字号 */
    --fs-caption: 11px;
    --fs-small: 12.5px;
    --fs-body: 14.5px;
    --fs-title: 16px;
    --fs-h2: 18px;
    --fs-h1: 21px;
  }

  body.dark {
    --c-bg-1: #071320;
    --c-bg-2: #0B1F2D;
    --c-surface: #12283C;
    --c-surface-2: rgba(255,255,255,.06);
    --c-line: rgba(255,255,255,.08);
    --c-line-strong: rgba(255,255,255,.14);
    --c-text: #E8F1F8;
    --c-text-2: #A7BCCC;
    --c-text-3: #6E8A9E;
    --c-brand: #4FA8D8;
    --c-brand-2: #8FD0F2;
    --c-brand-deep: #9FD3F0;
    --c-gold: #E8C07A;
    --e-1: 0 1px 3px rgba(0,0,0,.35);
    --e-2: 0 3px 10px rgba(0,0,0,.4);
    --e-3: 0 10px 26px rgba(0,0,0,.5);
  }

  /* ---------- 基础 ---------- */
  body {
    background:
      radial-gradient(1000px 560px at 6% -12%, rgba(143,208,242,.34), transparent 62%),
      radial-gradient(900px 600px at 104% 4%, rgba(102,178,226,.26), transparent 64%),
      linear-gradient(168deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
    background-attachment: fixed;
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* ---------- 顶栏 ---------- */
  .topbar {
    height: 54px !important;
    padding: 0 var(--sp-3) !important;
    background: transparent !important;
    border-bottom: 1px solid var(--c-line) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  .topbar .title {
    font-size: var(--fs-title) !important;
    font-weight: 800 !important;
    letter-spacing: .8px !important;
    color: var(--c-text) !important;
  }
  .topbar .ic {
    width: 36px !important; height: 36px !important;
    border-radius: var(--r-full) !important;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-brand-deep) !important;
    font-size: 19px !important;
    transition: background .15s ease;
  }
  .topbar .ic:active { background: rgba(62,143,201,.12) !important; }
  .topbar .ic.back { font-size: 24px !important; }

  /* ---------- 卡片列表 ---------- */
  .row {
    background: var(--c-surface) !important;
    border-radius: var(--r-md) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-1) !important;
    padding: 12px 13px !important;
    margin-bottom: var(--sp-2) !important;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .row:active { transform: scale(.988); box-shadow: none !important; }
  .row.pinned { background: linear-gradient(135deg, rgba(143,208,242,.16), var(--c-surface)) !important; }
  .row .avatar {
    width: 46px !important; height: 46px !important;
    border-radius: 14px !important; font-size: 17px !important;
  }
  .row .name { font-size: 15.5px !important; font-weight: 700 !important; }
  .row .last { font-size: 12.5px !important; color: var(--c-text-3) !important; margin-top: 2px !important; }

  /* ---------- 分组标题 ---------- */
  .conv-group {
    font-size: var(--fs-caption) !important;
    font-weight: 700 !important;
    color: var(--c-text-3) !important;
    letter-spacing: .8px !important;
    padding: 16px 6px 7px !important;
    text-transform: uppercase;
  }

  /* ---------- 搜索框 ---------- */
  .conv-filter { padding: var(--sp-2) var(--sp-3) 2px !important; }
  .conv-filter input {
    height: 38px !important;
    border-radius: var(--r-sm) !important;
    background: var(--c-surface-2) !important;
    border: 1px solid var(--c-line) !important;
    font-size: var(--fs-small) !important;
    color: var(--c-text) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .conv-filter input:focus {
    border-color: rgba(62,143,201,.45) !important;
    box-shadow: 0 0 0 3px rgba(62,143,201,.10) !important;
  }

  /* ---------- 底部导航 ---------- */
  .tabbar {
    height: 60px !important;
    margin: 0 var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom)) !important;
    border-radius: var(--r-full) !important;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-3) !important;
    padding: 5px !important;
  }
  .tabbar div {
    border-radius: var(--r-full) !important;
    font-size: 10px !important;
    color: var(--c-text-3) !important;
    gap: 3px !important;
    transition: color .12s ease;
  }
  .tabbar .ti { width: 21px !important; height: 21px !important; }
  .tabbar div.on {
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand)) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(62,143,201,.28) !important;
  }

  /* ---------- 聊天气泡 ---------- */
  .bubble {
    padding: 9px 13px !important;
    font-size: 14.8px !important;
    line-height: 1.55 !important;
    border-radius: 16px !important;
    box-shadow: var(--e-1) !important;
  }
  .msg:not(.me) .bubble {
    background: var(--c-surface) !important;
    color: var(--c-text) !important;
    border: 1px solid var(--c-line) !important;
    border-radius: 5px 16px 16px 16px !important;
  }
  .msg.me .bubble {
    background: linear-gradient(150deg, #6FBBE6, var(--c-brand)) !important;
    color: #fff !important;
    border-radius: 16px 5px 16px 16px !important;
    box-shadow: 0 3px 10px rgba(62,143,201,.24) !important;
  }
  .msg .av {
    width: 38px !important; height: 38px !important;
    border-radius: 12px !important;
    box-shadow: var(--e-1) !important;
  }
  .msgtime {
    background: var(--c-surface-2) !important;
    color: var(--c-text-3) !important;
    border: 1px solid var(--c-line) !important;
    border-radius: var(--r-full) !important;
    font-size: var(--fs-caption) !important;
    padding: 3px 11px !important;
  }

  /* ---------- 输入栏 ---------- */
  .composer {
    background: var(--c-surface) !important;
    border-top: 1px solid var(--c-line) !important;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
  }
  .composer input[type=text],
  .composer textarea#inputMsg {
    border-radius: var(--r-sm) !important;
    background: var(--c-bg-1) !important;
    border: 1px solid var(--c-line) !important;
    font-size: var(--fs-body) !important;
    color: var(--c-text) !important;
  }
  .composer input[type=text] {
    height: 40px !important;
  }
  /* 输入框改成多行：一行时 40px，最多长到 5 行左右，再多就内部滚 */
  .composer textarea#inputMsg {
    /* 这里千万不要写 height（尤其别加 !important）——
       内联 style 打不过 !important，JS 就没法按内容调高度了。
       高度全权交给 autoGrowInput()。 */
    min-height: 40px !important;
    max-height: 112px !important;
    line-height: 22px !important;
    padding: 9px 12px !important;
    box-sizing: border-box !important;
    resize: none !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    font-family: inherit !important;
    display: block;
    align-self: center;
  }
  /* 多行时按钮跟着沉到底部，别在竖直中间飘着 */
  .composer { align-items: flex-end !important; }
  .composer .tool, .composer .send { margin-bottom: 0 !important; }
  .composer .tool {
    width: 40px !important; height: 40px !important;
    border-radius: var(--r-sm) !important;
    background: var(--c-bg-1) !important;
    border: 1px solid var(--c-line) !important;
    font-size: 18px !important;
    display: flex; align-items: center; justify-content: center;
  }
  .composer .send {
    width: 42px !important; height: 42px !important;
    border-radius: var(--r-full) !important;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand)) !important;
    color: #fff !important;
    font-size: 18px !important;
    box-shadow: 0 4px 12px rgba(62,143,201,.3) !important;
  }
  .composer .send:disabled { opacity: .35 !important; box-shadow: none !important; }

  /* ---------- 弹层 ---------- */
  .sheet .box {
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    background: var(--c-surface) !important;
    box-shadow: 0 -10px 34px rgba(16,52,74,.16) !important;
    padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom)) !important;
  }
  .sheet .box h3 {
    font-size: var(--fs-h2) !important;
    font-weight: 800 !important;
    margin-bottom: var(--sp-3) !important;
  }
  .sheet .item {
    padding: 14px 12px !important;
    border-radius: var(--r-sm) !important;
    font-size: var(--fs-body) !important;
    transition: background .12s ease;
  }
  .sheet .item:active { background: rgba(62,143,201,.10) !important; }
  .sheet input {
    height: 46px !important;
    border-radius: var(--r-sm) !important;
    border: 1px solid var(--c-line) !important;
    background: var(--c-bg-1) !important;
    font-size: var(--fs-body) !important;
    color: var(--c-text) !important;
    margin-top: var(--sp-2) !important;
  }
  .btn-primary {
    height: 46px !important;
    border-radius: var(--r-sm) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand)) !important;
    box-shadow: 0 4px 14px rgba(62,143,201,.26) !important;
  }
  .btn-ghost {
    height: 46px !important;
    border-radius: var(--r-sm) !important;
    background: var(--c-bg-1) !important;
    color: var(--c-text-2) !important;
    border: 1px solid var(--c-line) !important;
  }

  /* ---------- 我页面 ---------- */
  .me-hero {
    border-radius: var(--r-lg) !important;
    background: linear-gradient(145deg, #6FBBE6 0%, #3E8FC9 60%, #2E7BAB 100%) !important;
    box-shadow: var(--e-2) !important;
  }
  .me-stats {
    border-radius: var(--r-md) !important;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-1) !important;
  }
  .me-stats .stat .num { font-size: 19px !important; font-weight: 800 !important; color: var(--c-brand-deep) !important; letter-spacing: -.3px !important; }
  .me-stats .stat .label { font-size: var(--fs-caption) !important; color: var(--c-text-3) !important; }
  .me-card {
    border-radius: var(--r-md) !important;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-1) !important;
  }
  .me-card .line { padding: 14px 15px !important; }
  .me-card .line .l { font-size: 15px !important; color: var(--c-text) !important; }
  .me-card .lico {
    width: 32px !important; height: 32px !important;
    border-radius: 10px !important;
    background: rgba(62,143,201,.10) !important;
    color: var(--c-brand) !important;
  }

  /* ---------- 空状态 ---------- */
  .empty { color: var(--c-text-3) !important; font-size: var(--fs-small) !important; line-height: 1.9 !important; }
  .empty-ico {
    width: 78px !important; height: 78px !important;
    font-size: 32px !important;
    border-radius: 24px !important;
    background: linear-gradient(150deg, rgba(143,208,242,.30), rgba(143,208,242,.10)) !important;
  }

  /* ---------- 朋友圈 ---------- */
  .mo-item {
    border-radius: var(--r-md) !important;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-1) !important;
    padding: 14px !important;
  }
  .mo-av { border-radius: 13px !important; }
  .mo-name { font-size: 15px !important; font-weight: 700 !important; }
  .mo-text { font-size: 14.5px !important; line-height: 1.6 !important; color: var(--c-text) !important; }
  .mo-act { font-size: 12.5px !important; }

  /* ---------- 登录页 ---------- */
  .brand h1 {
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
  }
  .brand .sub { font-size: 13px !important; color: var(--c-text-3) !important; letter-spacing: .5px !important; }
  .brand .logo {
    width: 84px !important; height: 84px !important;
    border-radius: 24px !important;
    font-size: 32px !important;
    box-shadow: 0 10px 26px rgba(62,143,201,.22), inset 0 1px 0 #fff !important;
  }
  .login-tabs {
    border-radius: var(--r-full) !important;
    padding: 4px !important;
    background: var(--c-surface-2) !important;
    border: 1px solid var(--c-line) !important;
  }
  .login-tab { font-size: 14.5px !important; font-weight: 600 !important; }
  .field {
    height: 52px !important;
    border-radius: var(--r-sm) !important;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-1) !important;
  }
  .field input { font-size: var(--fs-body) !important; color: var(--c-text) !important; }
  .sub-btn, #btnSubmit {
    height: 50px !important;
    border-radius: var(--r-sm) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
  }

  /* ---------- 深色适配 ---------- */
  body.dark .topbar { background: rgba(10,24,38,.72) !important; }
  body.dark .row, body.dark .me-card, body.dark .me-stats, body.dark .mo-item, body.dark .field { background: var(--c-surface) !important; }
  body.dark .composer { background: #0E2233 !important; }
  body.dark .composer input[type=text], body.dark .composer .tool { background: rgba(255,255,255,.06) !important; }
  body.dark .msgtime { background: rgba(255,255,255,.07) !important; }

  /* ---------- 我页面：卡片留白 + 分组 ---------- */
  .me-hero, .me-stats, .me-card {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  .me-hero { margin-top: 12px !important; border-radius: 20px !important; overflow: hidden; }
  .me-stats { margin-top: 12px !important; border-radius: 18px !important; overflow: hidden; }
  .me-card { margin-top: 12px !important; border-radius: 18px !important; overflow: hidden; }

  /* 分组小标题 */
  .me-group-title {
    font-size: 11.5px; font-weight: 700; color: var(--c-text-3);
    letter-spacing: .8px; padding: 18px 20px 6px; text-transform: uppercase;
  }

  /* 菜单行：图标圆角统一、右侧箭头更细 */
  .me-card .line .lico svg { width: 17px !important; height: 17px !important; }
  .me-card .line .r {
    font-size: 17px !important; color: var(--c-text-3) !important; font-weight: 400 !important;
  }
  .me-card .line + .line { border-top: 1px solid var(--c-line) !important; }

  /* 统计卡分隔线更淡 */
  .me-stats .stat + .stat { border-left: 1px solid var(--c-line) !important; }

  /* 身份卡里的在线标签 */
  .me-hero .pill, .me-hero .me-online {
    background: rgba(255,255,255,.92) !important;
    color: var(--c-brand-deep) !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
  }

  /* ==================== 整体升级 v3 ==================== */
  .row, .me-card .line, .sheet .item, .tabbar div, .tool, .send, .btn-primary, .btn-ghost,
  .mo-act, .gm-row, .pf-group {
    -webkit-tap-highlight-color: transparent;
  }
  @keyframes listIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .content.anim { animation: listIn .2s ease forwards; }
  .avatar .dot, .msg .av .dot {
    width: 11px !important; height: 11px !important;
    border: 2px solid var(--c-surface) !important;
    box-shadow: 0 0 0 1px rgba(46,158,107,.25) !important;
  }
  .badge {
    min-width: 19px !important; height: 19px !important;
    border-radius: 10px !important; font-size: 11px !important; font-weight: 700 !important;
    padding: 0 6px !important; box-shadow: 0 2px 6px rgba(210,84,74,.30) !important;
  }
  .badge.muted { background: var(--c-text-3) !important; box-shadow: none !important; }
  .msg .bubble, .msg.me .bubble { max-width: 74% !important; }
  .msgtime {
    font-size: 10.5px !important; letter-spacing: .3px !important;
    padding: 3px 12px !important; margin: 14px auto 8px !important;
  }
  .conv-group::before {
    width: 12px !important; height: 2.5px !important; border-radius: 2px !important; opacity: .5 !important;
  }
  .sheet .box h3 { padding-bottom: 10px !important; border-bottom: 1px solid var(--c-line) !important; }
  input::placeholder, textarea::placeholder { color: var(--c-text-3) !important; opacity: .8 !important; }

  /* 深色：转账/红包/图片卡片不再浅灰刺眼 */
  body.dark .pkt {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.10) !important;
  }
  body.dark .pkt.tr { background: linear-gradient(150deg, #1E3D52, #16303F) !important; }
  body.dark .pkt.tr .tr-body, body.dark .pkt.tr .tr-amt { color: #E8F1F8 !important; }
  body.dark .pkt.tr .tr-icon { background: rgba(255,255,255,.14) !important; color: #9FD3F0 !important; }
  body.dark .pkt.tr .tr-state { background: rgba(255,255,255,.16) !important; color: #CFE6F5 !important; }
  body.dark .pkt.got { opacity: .92; }
  body.dark .pkt.rp { background: linear-gradient(150deg, #7A3A2C, #5E2A20) !important; }
  body.dark .img-wrap, body.dark .video-bubble, body.dark .pkt-bubble { background: transparent !important; }
  body.dark .img-wrap .img-ph { background: rgba(255,255,255,.08) !important; }
  /* 深色卡片描边加强一点，边界更清楚 */
  body.dark .row, body.dark .me-card, body.dark .me-stats, body.dark .mo-item {
    border-color: rgba(255,255,255,.10) !important;
  }
  /* 深色分组短横 */
  body.dark .conv-group::before { background: #4FA8D8 !important; opacity: .7 !important; }

  /* ---------- 登录页精修 ---------- */
  /* 深色下的 logo：改成深蓝玻璃 + 天蓝字，不再一块白 */
  body.dark .brand .logo {
    background: linear-gradient(155deg, #16374F 0%, #10293B 62%, #0C2130 100%) !important;
    border: 1px solid rgba(143,208,242,.22) !important;
    color: #8FD0F2 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(143,208,242,.25), 0 0 40px rgba(79,168,216,.18) !important;
  }
  /* 浅色下的 logo：更通透 */
  .brand .logo {
    background: linear-gradient(155deg, #FFFFFF 0%, #EAF6FE 60%, #D8ECFA 100%) !important;
    border: 1px solid rgba(255,255,255,.9) !important;
    color: var(--c-brand) !important;
    box-shadow: 0 12px 28px rgba(62,143,201,.20), inset 0 1px 0 #fff !important;
  }

  /* 记住账号：自定义勾选框 */
  .remember { display: flex; align-items: center; gap: 9px; font-size: 13.5px !important; }
  .remember input[type=checkbox] {
    -webkit-appearance: none; appearance: none;
    width: 19px; height: 19px; margin: 0;
    border-radius: 6px; border: 1.5px solid var(--c-line-strong);
    background: var(--c-surface);
    position: relative; flex: none;
    transition: background .15s ease, border-color .15s ease;
  }
  .remember input[type=checkbox]:checked {
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand));
    border-color: transparent;
  }
  .remember input[type=checkbox]:checked::after {
    content: ''; position: absolute; left: 5.5px; top: 2px;
    width: 6px; height: 10px;
    border: 2px solid #fff; border-top: 0; border-left: 0;
    transform: rotate(42deg);
  }
  body.dark .remember input[type=checkbox] { background: rgba(255,255,255,.08); }

  /* 登录页背景：两团柔光 + 一层极淡的网格 */
  #login::before, #login::after {
    filter: blur(74px) !important;
    opacity: .9;
  }
  body.dark #login::before { background: rgba(52,120,170,.55) !important; }
  body.dark #login::after { background: rgba(30,86,120,.5) !important; }

  /* 登录按钮：加一点内高光，像玻璃 */
  #btnSubmit, .sub-btn {
    position: relative;
    background: linear-gradient(160deg, #A8DDF7 0%, #6FBBE6 45%, #3E8FC9 100%) !important;
    box-shadow: 0 8px 22px rgba(62,143,201,.32), inset 0 1px 0 rgba(255,255,255,.55) !important;
  }
  #btnSubmit:active, .sub-btn:active { transform: scale(.99); filter: brightness(.98); }

  /* 登录/注册 分段：选中胶囊更立体 */
  .login-tab.on {
    background: linear-gradient(160deg, #A8DDF7, #4FA8D8) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(62,143,201,.28), inset 0 1px 0 rgba(255,255,255,.4) !important;
  }
  body.dark .login-tab.on { box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2) !important; }

  /* 输入框聚焦：淡蓝光圈 */
  .field:focus-within {
    border-color: rgba(62,143,201,.55) !important;
    box-shadow: 0 0 0 3px rgba(62,143,201,.12) !important;
  }
  body.dark .field:focus-within {
    border-color: rgba(143,208,242,.45) !important;
    box-shadow: 0 0 0 3px rgba(143,208,242,.12) !important;
  }

  /* ---------- 弹层全面升级 ---------- */
  .sheet { background: rgba(10,30,48,.34) !important; }
  body.dark .sheet { background: rgba(2,8,14,.62) !important; }
  .sheet .box {
    animation: sheetUp .26s cubic-bezier(.22,.9,.32,1) forwards;
    border: 1px solid rgba(255,255,255,.9);
  }
  body.dark .sheet .box { border-color: rgba(255,255,255,.08); }
  @keyframes sheetUp {
    from { transform: translateY(22px); opacity: .6; }
    to { transform: none; opacity: 1; }
  }
  .sheet .box h3 {
    font-size: 17px !important; font-weight: 800 !important;
    letter-spacing: .3px; color: var(--c-text) !important;
    margin: 0 0 6px !important; padding-bottom: 12px !important;
    border-bottom: 1px solid var(--c-line) !important;
  }
  .sheet .item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px !important;
    border-bottom: 1px solid var(--c-line);
    font-size: 15px !important; color: var(--c-text) !important;
  }
  .sheet .item:last-of-type { border-bottom: 0; }
  .sheet .item::after {
    content: '›'; color: var(--c-text-3); font-size: 15px; margin-left: 8px;
  }
  .sheet .item.danger { color: var(--c-red) !important; }
  .sheet .item.danger::after { color: var(--c-red); opacity: .5; }

  /* ---------- 朋友圈卡片 ---------- */
  .mo-item {
    border-radius: 18px !important;
    padding: 15px !important;
    margin: 10px 14px !important;
    transition: transform .12s ease;
  }
  .mo-item:active { transform: scale(.995); }
  .mo-av {
    width: 42px !important; height: 42px !important;
    border-radius: 13px !important;
    box-shadow: 0 2px 8px rgba(16,52,74,.10) !important;
  }
  .mo-name { font-size: 14.5px !important; margin-bottom: 3px; }
  .mo-text {
    font-size: 14.5px !important; line-height: 1.62 !important;
    margin-top: 4px !important; color: var(--c-text) !important;
  }
  .mo-img { border-radius: 14px !important; margin-top: 10px !important; }
  .mo-meta { margin-top: 12px !important; }
  .mo-act {
    font-size: 12.5px !important; font-weight: 600;
    padding: 3px 8px; border-radius: 8px;
  }
  .mo-act:active { background: rgba(62,143,201,.12); }
  .mo-likes {
    margin-top: 10px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.16), rgba(143,208,242,.05)) !important;
  }
  .mo-comments {
    margin-top: 8px !important; padding: 9px 11px !important;
    border-radius: 12px !important;
    background: var(--c-surface-2) !important;
  }
  .mo-cmt { font-size: 13px !important; line-height: 1.65 !important; }
  .mo-cmt b { color: var(--c-brand-deep) !important; font-weight: 700; }

  /* 朋友圈顶部：发布按钮更醒目 */
  #moments .topbar .ic:last-child {
    width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand));
    color: #fff !important; font-size: 20px; font-weight: 300;
  }

  /* 弹层内容多时内部滚动，不顶出屏幕 */
  .sheet .box {
    max-height: 76vh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .sheet .box::-webkit-scrollbar { width: 4px; }
  .sheet .box::-webkit-scrollbar-thumb { background: rgba(62,143,201,.25); border-radius: 2px; }

  /* ==================== 聊天页细节 v4 ==================== */
  /* 气泡尾部：做一个真正的小尖角 */
  .msg:not(.me) .bubble { position: relative; }
  .msg:not(.me) .bubble::before {
    content: ''; position: absolute; left: -5px; top: 12px;
    width: 10px; height: 10px; background: inherit;
    border-left: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    border-bottom-left-radius: 3px;
    transform: rotate(45deg);
  }
  body.dark .msg:not(.me) .bubble::before { border-color: rgba(255,255,255,.10); }
  .msg.me .bubble { position: relative; }
  .msg.me .bubble::before {
    content: ''; position: absolute; right: -5px; top: 12px;
    width: 10px; height: 10px;
    background: linear-gradient(135deg, transparent 50%, #5FB0DC 50%);
    border-top-right-radius: 2px;
    transform: rotate(45deg);
  }

  /* 连续消息：间距收得更紧 */
  .msg.same-prev { margin-top: 3px !important; }

  /* 头像：柔和描边 + 在线点 */
  .msg .av { box-shadow: 0 2px 6px rgba(16,52,74,.12), inset 0 0 0 1px rgba(255,255,255,.5) !important; }

  /* 输入栏：更精致的层次 */
  .composer { box-shadow: 0 -2px 14px rgba(16,52,74,.05) !important; }
  .composer .tool:active, .composer .send:active { transform: scale(.93); }
  .composer input[type=text] { transition: border-color .15s ease, box-shadow .15s ease; }

  /* 聊天页顶栏：副标题（在线/成员数）排版 */
  .topbar .sub, .topbar .title small {
    font-size: 11.5px !important;
    color: var(--c-green) !important;
    margin-left: 6px;
    font-weight: 600;
  }
  .topbar .sub.offline { color: var(--c-text-3) !important; }

  /* 群公告条：更轻 */
  .notice-bar {
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(143,208,242,.18), rgba(143,208,242,.06)) !important;
    border-bottom: 1px solid var(--c-line) !important;
    font-size: 12.5px !important;
  }

  /* 图片/视频气泡：统一圆角和阴影 */
  .img-wrap, .video-bubble { border-radius: 14px !important; box-shadow: var(--e-1) !important; }

  /* 引用块：更清楚 */
  .bubble .quote {
    border-radius: 9px !important;
    padding: 6px 9px !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  /* ========== 第1轮：空状态 ========== */
  .empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px 24px !important;
    font-size: 13.5px !important; line-height: 1.9 !important;
    color: var(--c-text-3) !important;
    text-align: center;
  }
  .empty-ico {
    width: 88px !important; height: 88px !important;
    border-radius: 28px !important;
    font-size: 38px !important;
    display: flex !important; align-items: center; justify-content: center;
    margin-bottom: 18px !important;
    background:
      radial-gradient(circle at 32% 28%, rgba(255,255,255,.85), transparent 58%),
      linear-gradient(150deg, rgba(143,208,242,.34), rgba(143,208,242,.10)) !important;
    box-shadow:
      0 10px 26px rgba(62,143,201,.14),
      inset 0 1px 0 rgba(255,255,255,.7) !important;
  }
  body.dark .empty-ico {
    background:
      radial-gradient(circle at 32% 28%, rgba(143,208,242,.18), transparent 58%),
      linear-gradient(150deg, rgba(143,208,242,.14), rgba(143,208,242,.04)) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
  /* 空状态里的副标题 */
  .empty small, .empty .sub {
    display: block; margin-top: 6px;
    font-size: 12px !important; color: var(--c-text-3) !important; opacity: .8;
  }
  /* 聊天空态 */
  .chat-empty { padding: 90px 24px !important; }
  .chat-empty > div:first-child {
    font-size: 40px !important;
    filter: drop-shadow(0 6px 14px rgba(62,143,201,.2));
  }

  /* ========== 第2轮：群管理页 ========== */
  .gm-wrap { padding: 0 0 10px; }
  .gm-notice {
    border-radius: 16px !important;
    padding: 13px 15px !important;
    margin-bottom: 14px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.20), rgba(143,208,242,.05)) !important;
    border: 1px solid rgba(62,143,201,.16) !important;
    font-size: 13px !important; line-height: 1.6 !important;
    position: relative;
  }
  .gm-notice::before {
    content: '公告'; position: absolute; top: -8px; left: 12px;
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    background: var(--c-surface); padding: 1px 7px; border-radius: 6px;
    color: var(--c-brand); border: 1px solid rgba(62,143,201,.2);
  }
  .gm-search {
    height: 40px !important; border-radius: 13px !important;
    background: var(--c-bg-1) !important;
    border: 1px solid var(--c-line) !important;
    font-size: 13px !important; padding: 0 14px !important;
    margin-bottom: 12px !important;
  }
  .gm-row {
    border-radius: 15px !important;
    padding: 11px 13px !important;
    margin-bottom: 8px !important;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-1) !important;
    transition: transform .12s ease;
  }
  .gm-row:active { transform: scale(.99); }
  .gm-name { font-size: 14.5px !important; font-weight: 600 !important; }
  .gm-sub { font-size: 11.5px !important; color: var(--c-text-3) !important; margin-top: 2px; }
  .gm-tag {
    font-size: 10.5px !important; font-weight: 700;
    padding: 2px 7px !important; border-radius: 7px !important;
    background: rgba(62,143,201,.12) !important;
    color: var(--c-brand-deep) !important;
  }
  .gm-tag.owner { background: rgba(197,138,56,.16) !important; color: #A8701F !important; }
  .gm-actions button {
    height: 28px !important; padding: 0 10px !important;
    border-radius: 9px !important; font-size: 11.5px !important;
    border: 1px solid var(--c-line) !important;
    background: var(--c-bg-1) !important;
    color: var(--c-text-2) !important;
  }
  .gm-actions button.danger { color: var(--c-red) !important; border-color: rgba(210,84,74,.25) !important; }
  .gm-invite {
    height: 48px !important; border-radius: 16px !important;
    font-size: 14.5px !important; font-weight: 700 !important;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand)) !important;
    color: #fff !important; border: 0 !important;
    box-shadow: 0 6px 16px rgba(62,143,201,.26) !important;
    margin-top: 12px !important;
  }

  /* ========== 第3轮：红包 / 转账弹层 ========== */
  .pk-wrap, .pk-dialog { padding: 4px 0; }
  .pk-balance {
    font-size: 12.5px !important; color: var(--c-text-3) !important;
    padding: 8px 12px !important; border-radius: 11px !important;
    background: var(--c-bg-1) !important; margin-bottom: 14px !important;
    display: inline-block;
  }
  .pk-balance b { color: var(--c-brand-deep) !important; font-weight: 800; }
  .pk-amt-wrap {
    display: flex; align-items: baseline; gap: 6px;
    padding: 12px 0 14px; border-bottom: 1.5px solid var(--c-line);
  }
  /* ¥ 符号由 HTML 提供，这里不再重复插入 */
  .pk-amt-wrap input {
    border: 0 !important; background: transparent !important;
    font-size: 32px !important; font-weight: 800 !important;
    padding: 0 !important; height: auto !important; flex: 1;
    color: var(--c-text) !important; letter-spacing: -.5px;
  }
  .pk-quick, .pk-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .pk-quick button, .pk-chips button {
    flex: 1; min-width: 64px; height: 36px !important;
    border-radius: 11px !important; font-size: 13px !important; font-weight: 600;
    background: var(--c-bg-1) !important;
    border: 1px solid var(--c-line) !important;
    color: var(--c-text-2) !important;
  }
  .pk-quick button:active, .pk-chips button:active {
    background: rgba(62,143,201,.14) !important; color: var(--c-brand-deep) !important;
  }
  .pk-tip {
    font-size: 12px !important; margin-top: 12px !important;
    color: var(--c-text-3) !important; min-height: 18px;
  }
  .pk-tip.warn { color: var(--c-red) !important; }

  /* 红包卡片（聊天里） */
  .pkt {
    border-radius: 13px !important;
    padding: 12px 14px !important;
    min-width: 200px;
  }
  .pkt.rp {
    background: linear-gradient(140deg, #E4584A, #C93F32) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(201,63,50,.28) !important;
  }

  /* ========== 第4轮：搜索页 / 搜索结果 ========== */
  .gs-hist { margin: 12px 0 6px !important; gap: 8px !important; }
  .gs-hist-item {
    padding: 6px 13px !important; border-radius: 13px !important;
    font-size: 12.5px !important; font-weight: 500;
    background: var(--c-bg-1) !important;
    border: 1px solid var(--c-line) !important;
    color: var(--c-text-2) !important;
  }
  .gs-hist-item:active { background: rgba(62,143,201,.14) !important; }
  .search-hit-row {
    padding: 13px 4px !important;
    border-top: 1px solid var(--c-line) !important;
    transition: background .12s ease;
  }
  .search-hit-row:active { background: rgba(62,143,201,.07) !important; }
  .sh-t {
    font-size: 14.5px !important; font-weight: 600 !important;
    color: var(--c-text) !important; line-height: 1.5;
  }
  .sh-t em, .sh-t mark {
    color: var(--c-brand) !important; font-style: normal;
    background: rgba(62,143,201,.14);
    padding: 0 2px; border-radius: 3px;
  }
  .sh-m {
    font-size: 11.5px !important; color: var(--c-text-3) !important;
    margin-top: 4px !important;
  }
  /* 搜索输入框 */
  #gsQ, #gsInput {
    height: 44px !important; border-radius: 13px !important;
    font-size: 14px !important;
  }

  /* ========== 第5轮：个人资料页 ========== */
  .pf-wrap { padding: 10px 0 4px !important; }
  .pf-av {
    width: 88px !important; height: 88px !important;
    border-radius: 26px !important;
    box-shadow: 0 12px 28px rgba(62,143,201,.22), inset 0 0 0 1px rgba(255,255,255,.5) !important;
    font-size: 32px !important;
  }
  .pf-name {
    font-size: 20px !important; font-weight: 800 !important;
    margin-top: 14px !important; letter-spacing: .3px;
  }
  .pf-acc { font-size: 12.5px !important; color: var(--c-text-3) !important; margin-top: 4px !important; }
  .pf-tags { gap: 7px !important; margin-top: 14px !important; }
  .pf-tag {
    font-size: 11.5px !important; font-weight: 600;
    padding: 4px 11px !important; border-radius: 11px !important;
  }
  .pf-sec {
    font-size: 11.5px !important; font-weight: 700;
    color: var(--c-text-3) !important; letter-spacing: .8px;
    margin: 20px 0 9px !important;
  }
  .pf-group {
    font-size: 12.5px !important; padding: 6px 12px !important;
    border-radius: 13px !important;
  }
  .pf-actions { margin-top: 22px !important; }
  .pf-remark {
    height: 44px !important; border-radius: 13px !important;
    font-size: 14px !important; margin-top: 10px !important;
  }

  /* ========== 第6轮：外观设置弹层 ========== */
  .set-row { margin: 16px 0 !important; gap: 12px !important; }
  .set-row .set-label {
    font-size: 12.5px !important; font-weight: 600;
    color: var(--c-text-2) !important; width: 74px !important;
    letter-spacing: .2px;
  }
  .set-opts { gap: 9px !important; }
  .set-opts button {
    height: 40px !important; border-radius: 12px !important;
    font-size: 13px !important; font-weight: 600 !important;
    border: 1px solid var(--c-line) !important;
    background: var(--c-bg-1) !important;
    color: var(--c-text-2) !important;
    transition: all .15s ease;
  }
  .set-opts button.on {
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand)) !important;
    color: #fff !important; border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(62,143,201,.26) !important;
  }
  .set-opts button:active { transform: scale(.97); }
  .enc-info {
    border-radius: 15px !important; padding: 13px 15px !important;
    margin: 2px 0 6px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.16), rgba(143,208,242,.04)) !important;
    border: 1px solid rgba(62,143,201,.14) !important;
  }
  .enc-line { font-size: 12.8px !important; line-height: 1.75 !important; }
  .enc-line b { color: var(--c-brand-deep) !important; }

  /* ========== 第7轮：深色模式补漏 ========== */
  body.dark .gs-hist-item { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.09) !important; }
  body.dark .pk-quick button, body.dark .pk-chips button,
  body.dark .set-opts button, body.dark .gm-actions button {
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(255,255,255,.10) !important;
    color: var(--c-text-2) !important;
  }
  body.dark .set-opts button.on {
    background: linear-gradient(160deg, #4FA8D8, #2E7BAB) !important;
    color: #fff !important;
  }
  body.dark .gm-search, body.dark #gsQ, body.dark .gm-row { background: rgba(255,255,255,.05) !important; }
  body.dark .pk-balance { background: rgba(255,255,255,.06) !important; }
  body.dark .enc-info {
    background: linear-gradient(135deg, rgba(79,168,216,.16), rgba(79,168,216,.04)) !important;
    border-color: rgba(255,255,255,.08) !important;
  }
  body.dark .pf-group { background: rgba(255,255,255,.07) !important; }
  body.dark .empty { color: var(--c-text-3) !important; }

  /* ========== 第8轮：图标与按钮系统统一 ========== */
  /* 所有 SVG 图标：统一描边宽度与端点 */
  .ti, .lico svg, .me-card .lico svg, .me-ico svg {
    stroke-width: 1.85 !important;
    stroke-linecap: round; stroke-linejoin: round;
  }
  /* 箭头统一（CSS 画的 chevron） */
  .row .chev, .me-card .chev, .gm-row .chev {
    width: 7px; height: 7px;
    border-right: 1.8px solid var(--c-text-3);
    border-top: 1.8px solid var(--c-text-3);
    transform: rotate(45deg);
    opacity: .7;
  }
  /* 按钮系统：三种高度 + 统一圆角 */
  .btn-primary, .btn-ghost { height: 46px !important; border-radius: 13px !important; }
  .btn-primary:active { transform: scale(.985); }
  .btn-ghost:active { background: rgba(62,143,201,.10) !important; }

  /* ========== 第9轮：动效与手感 ========== */
  /* 页面切换：内容淡入 */
  #content > * { animation: none; }
  /* 消息进入：轻微上浮 */
  @keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .msg:last-child { animation: msgIn .18s ease forwards; }
  /* 弹层遮罩渐显 */
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .sheet { animation: fadeIn .16s ease forwards; }
  /* 卡片按压统一 */
  .row:active, .gm-row:active, .mo-item:active {
    transform: scale(.988) !important;
    transition: transform .1s ease !important;
  }
  /* 头像加载完成淡入 */
  .avatar, .av, .me-avatar, .pf-av, .mo-av { transition: background-image .2s ease, background-color .2s ease; }

  /* ========== 第10轮：最终统一（间距/排版） ========== */
  /* 全局内容左右边距统一 */
  .content { padding-left: 0; padding-right: 0; }
  .row { margin-left: 12px !important; margin-right: 12px !important; }
  .mo-item { margin-left: 12px !important; margin-right: 12px !important; }
  /* 顶栏与内容之间呼吸 */
  #content > .conv-group:first-child { padding-top: 10px !important; }
  /* 文字渲染 */
  body { text-rendering: optimizeLegibility; font-feature-settings: "kern" 1; }
  /* 数字等宽，时间列表对齐更整齐 */
  .row .meta, .msgtime, .mo-meta span:first-child {
    font-variant-numeric: tabular-nums;
  }

  /* ========== 第11轮：头像系统（更多配色 + 更好的渐变） ========== */
  .avatar, .av, .me-avatar, .pf-av, .mo-av, .gm-av, .mt-av {
    box-shadow: 0 2px 8px rgba(16,52,74,.12), inset 0 0 0 1px rgba(255,255,255,.55) !important;
  }
  body.dark .avatar, body.dark .av, body.dark .me-avatar, body.dark .pf-av, body.dark .mo-av {
    box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08) !important;
  }

  /* ========== 第12轮：徽标 / 标签 ========== */
  .tag, .chip, .pf-tag, .gm-tag {
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
  }

  /* ========== 第13轮：骨架屏 ========== */
  @keyframes shimmer2 {
    from { background-position: 140% 0; }
    to { background-position: -140% 0; }
  }
  .sk-row {
    height: 72px; border-radius: 16px; margin: 0 12px 9px;
    background: linear-gradient(100deg, rgba(200,224,240,.35) 20%, rgba(232,245,253,.6) 40%, rgba(200,224,240,.35) 60%);
    background-size: 220% 100%;
    animation: shimmer2 1.4s linear infinite;
  }
  body.dark .sk-row {
    background: linear-gradient(100deg, rgba(40,60,80,.5) 20%, rgba(60,84,108,.6) 40%, rgba(40,60,80,.5) 60%);
    background-size: 220% 100%;
  }

  /* ========== 第14轮：回到底部按钮 ========== */
  .to-bottom {
    width: 40px !important; height: 40px !important;
    border-radius: 50% !important;
    background: var(--c-surface) !important;
    color: var(--c-brand) !important;
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--e-2) !important;
    font-size: 16px !important;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease, opacity .15s ease;
  }
  .to-bottom:active { transform: scale(.9); }

  /* ========== 第15轮：群公告条 ========== */
  .notice-bar .nb-ico {
    width: 20px; height: 20px; border-radius: 6px;
    background: rgba(62,143,201,.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
  }
  .notice-bar .nb-x {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.5);
  }
  body.dark .notice-bar .nb-x { background: rgba(255,255,255,.10); }

  /* ========== 第16轮：图片预览层 ========== */
  .zoom-wrap { background: rgba(6,14,22,.94) !important; }
  .zoom-wrap img {
    border-radius: 14px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.5) !important;
  }

  /* ========== 第17轮：输入区多行/草稿 ========== */
  .composer input[type=text] {
    line-height: 40px;
    padding: 0 15px !important;
  }

  /* ========== 第18轮：消息时间分割 ========== */
  .msgtime {
    background: transparent !important;
    border: 0 !important;
    color: var(--c-text-3) !important;
    font-size: 10.5px !important;
    position: relative;
    letter-spacing: .6px;
  }
  .msgtime::before, .msgtime::after {
    content: ''; position: absolute; top: 50%; width: 26px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-line-strong));
  }
  .msgtime::before { right: calc(100% + 8px); transform: scaleX(-1); }
  .msgtime::after { left: calc(100% + 8px); }

  /* ========== 第19轮：顶部安全区 ========== */
  .topbar { padding-top: env(safe-area-inset-top) !important; height: calc(54px + env(safe-area-inset-top)) !important; }

  /* ========== 第20轮：整体配色微调（更柔和的蓝） ========== */
  :root {
    --c-bg-1: #F3F9FD;
    --c-bg-2: #E3F1FA;
    --c-brand: #3D8FC7;
    --c-brand-2: #93D2F3;
  }
  body.dark { --c-bg-1: #08141F; --c-bg-2: #0C2130; }

  /* ========== 第21轮：转账卡片（浅色也更醒目） ========== */
  .pkt.tr {
    background: linear-gradient(145deg, #EAF4FC, #D5E9F7) !important;
    border: 1px solid rgba(62,143,201,.16) !important;
    box-shadow: 0 4px 14px rgba(62,143,201,.12) !important;
  }
  .pkt.tr .tr-icon {
    width: 34px !important; height: 34px !important;
    border-radius: 50% !important;
    background: rgba(62,143,201,.16) !important;
    color: var(--c-brand) !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
  }
  .pkt.tr .tr-amt, .pkt.tr .tr-title { color: #10344A !important; }
  .pkt.tr .tr-state {
    background: rgba(62,143,201,.14) !important;
    color: var(--c-brand-deep) !important;
    font-size: 11.5px !important; font-weight: 700;
    padding: 3px 9px !important; border-radius: 9px !important;
  }
  .pkt.tr.got { opacity: .82; }

  /* ========== 第22轮：空会话引导 ========== */
  .chat-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }

  /* ========== 第23轮：表情面板 ========== */
  .emoji-panel { padding: 10px 12px 16px !important; }
  .emoji-title {
    font-size: 11px !important; font-weight: 700 !important;
    color: var(--c-text-3) !important; letter-spacing: .6px;
    margin: 10px 2px 7px !important;
  }
  .emoji-row span {
    font-size: 23px !important; padding: 6px 0 !important;
    border-radius: 10px !important;
    transition: background .12s ease, transform .12s ease;
  }
  .emoji-row span:active { background: rgba(62,143,201,.14) !important; transform: scale(.9); }

  /* ========== 第24轮：表情包网格 ========== */
  .stk-item {
    border-radius: 12px !important;
    transition: transform .12s ease;
  }
  .stk-item:active { transform: scale(.92); }
  .stk-add {
    font-size: 11px !important;
    padding: 2px 8px !important; border-radius: 8px !important;
    background: rgba(62,143,201,.12);
  }

  /* ========== 第25轮：投票卡 ========== */
  .poll-card {
    border-radius: 17px !important;
    padding: 14px 15px !important;
    box-shadow: var(--e-2) !important;
  }
  .poll-q {
    font-size: 14.5px !important; font-weight: 800 !important;
    line-height: 1.5 !important; margin-bottom: 12px !important;
  }
  .poll-opt {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    transition: transform .1s ease;
  }
  .poll-opt:active { transform: scale(.99); }
  .poll-txt { font-size: 13.5px !important; }
  .poll-num { font-size: 11.5px !important; font-variant-numeric: tabular-nums; }
  .poll-foot { font-size: 11.5px !important; margin-top: 11px !important; }

  /* ========== 第26轮：长文本换行 ========== */
  .bubble { word-break: break-word; overflow-wrap: anywhere; }
  .mo-text { word-break: break-word; overflow-wrap: anywhere; }

  /* ========== 第27轮：桌面端 hover（有鼠标时更精致） ========== */
  @media (hover: hover) {
    .row:hover { box-shadow: var(--e-2) !important; }
    .me-card .line:hover { background: rgba(62,143,201,.05) !important; }
    .sheet .item:hover { background: rgba(62,143,201,.07) !important; }
    .mo-act:hover { background: rgba(62,143,201,.10) !important; }
    .tabbar div:hover { color: var(--c-brand) !important; }
  }

  /* ========== 第28轮：键盘弹出时输入栏适配 ========== */
  .composer { padding-bottom: calc(9px + env(safe-area-inset-bottom)) !important; }

  /* ========== 第29轮：阴影层次（浮起感更自然） ========== */
  .row:hover, .mo-item:hover { box-shadow: 0 4px 14px rgba(16,52,74,.09), 0 8px 24px rgba(16,52,74,.06) !important; }

  /* ========== 第30轮：全局焦点可见性（无障碍） ========== */
  button:focus-visible, input:focus-visible, .row:focus-visible {
    outline: 2px solid rgba(62,143,201,.55);
    outline-offset: 2px;
  }

  /* ===== 第31轮：列表右侧时间对齐 ===== */
  .row .meta, .row .time {
    min-width: 44px; text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--c-text-3) !important;
    font-size: 11px !important;
  }
  .row .chev { margin-left: 6px; }

  /* ===== 第32轮：多选操作条 ===== */
  .select-bar {
    border-radius: 20px !important;
    padding: 11px 15px !important;
    background: var(--c-surface) !important;
    box-shadow: 0 -4px 20px rgba(16,52,74,.14) !important;
    border: 1px solid var(--c-line) !important;
  }
  .select-bar .sb-n { font-size: 13px !important; font-weight: 600; color: var(--c-text-2) !important; }
  .select-bar .sb-btn {
    height: 36px !important; padding: 0 15px !important;
    border-radius: 12px !important; font-size: 13px !important;
  }

  /* ===== 第33轮：收藏列表 ===== */
  .fav-row {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 13px 4px !important;
    border-top: 1px solid var(--c-line) !important;
  }
  .fav-ico {
    width: 36px !important; height: 36px !important;
    border-radius: 12px !important; font-size: 17px !important;
    background: linear-gradient(150deg, rgba(143,208,242,.24), rgba(143,208,242,.08)) !important;
  }
  .fav-t { font-size: 14.5px !important; font-weight: 500; line-height: 1.5; }
  .fav-m { font-size: 11.5px !important; color: var(--c-text-3) !important; margin-top: 4px !important; }

  /* ===== 第34轮：邀请码弹层 ===== */
  .invite-code {
    font-size: 30px !important; letter-spacing: 8px !important;
    padding: 22px 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.22), rgba(143,208,242,.06)) !important;
    border: 1px dashed rgba(62,143,201,.3) !important;
    color: var(--c-brand-deep) !important;
    font-weight: 800;
  }
  .invite-tip { font-size: 12.5px !important; line-height: 1.7 !important; margin-top: 12px !important; }

  /* ===== 第35轮：钱包明细 ===== */
  .wallet-row, .wh-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 4px;
    border-top: 1px solid var(--c-line);
  }
  .wh-amt { font-variant-numeric: tabular-nums; font-weight: 700; }
  .wh-amt.plus { color: var(--c-green) !important; }
  .wh-amt.minus { color: var(--c-red) !important; }

  /* ===== 第36轮：朋友圈发布弹层 ===== */
  .mo-pick {
    height: 52px !important; border-radius: 14px !important;
    font-size: 13.5px !important;
    border: 1.5px dashed rgba(62,143,201,.28) !important;
    background: rgba(143,208,242,.05) !important;
  }
  .mo-pick:active { background: rgba(143,208,242,.14) !important; }

  /* ===== 第37轮：登录错误提示 ===== */
  .login-error, .err {
    font-size: 12.5px !important; font-weight: 500;
    padding: 9px 13px !important; border-radius: 11px !important;
    background: rgba(210,84,74,.10) !important;
    color: var(--c-red) !important;
    margin-top: 10px;
    display: flex; align-items: center; gap: 6px;
  }

  /* ===== 第38轮：群成员网格 ===== */
  .gm-av { border-radius: 14px !important; }

  /* ===== 第39轮：底部导航选中态 ===== */
  .tabbar div.on .ti { stroke-width: 2.1 !important; }

  /* ===== 第40轮：详情/列表交替底色（长列表更好读） ===== */
  .sheet .item:nth-child(even) { background: rgba(62,143,201,.025); }
  body.dark .sheet .item:nth-child(even) { background: rgba(255,255,255,.02); }

  /* ===== 第41轮：消息气泡尾巴细化（更贴合） ===== */
  .msg:not(.me) .bubble::before { left: -4.5px; box-shadow: -1px 1px 2px rgba(16,52,74,.04); }
  .msg.me .bubble::before { right: -4.5px; }

  /* ===== 第42轮：头像圆角分级（不同场景不同圆角） ===== */
  .row .avatar { border-radius: 14px !important; }
  .msg .av { border-radius: 12px !important; }
  .me-avatar { border-radius: 22px !important; }
  .gm-av, .mo-av { border-radius: 13px !important; }

  /* ===== 第43轮：未读已读标记 ===== */
  .read-tag {
    font-size: 10px; color: var(--c-text-3);
    margin-left: 6px; letter-spacing: .2px;
  }

  /* ===== 第44轮：群成员在线状态点 ===== */
  .gm-row .dot, .gm-row .online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 0 2px rgba(46,158,107,.18);
  }

  /* ===== 第45轮：输入框清除按钮 ===== */
  .composer .clear-btn {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(60,80,100,.16); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
  }

  /* ===== 第46轮：滚动条（桌面） ===== */
  .content::-webkit-scrollbar, #msgs::-webkit-scrollbar,
  .sheet .box::-webkit-scrollbar { width: 5px; }
  .content::-webkit-scrollbar-track, #msgs::-webkit-scrollbar-track { background: transparent; }
  .content::-webkit-scrollbar-thumb, #msgs::-webkit-scrollbar-thumb {
    background: rgba(62,143,201,.20); border-radius: 3px;
  }
  .content::-webkit-scrollbar-thumb:hover, #msgs::-webkit-scrollbar-thumb:hover {
    background: rgba(62,143,201,.34);
  }

  /* ===== 第47轮：顶部标题栏渐变分隔 ===== */
  .topbar::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-line-strong), transparent);
  }
  .topbar { position: relative; }

  /* ===== 第48轮：底部导航高光 ===== */
  .tabbar div.on::after {
    content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 2px; border-radius: 1px;
    background: rgba(255,255,255,.5);
  }
  .tabbar div { position: relative; }

  /* ===== 第49轮：加密锁图标 ===== */
  .e2e-tag {
    font-size: 10px !important;
    padding: 1px 6px; border-radius: 7px;
    background: rgba(62,143,201,.12);
    opacity: .85;
    cursor: pointer;
  }

  /* ===== 第50轮：整体字重节奏（标题重、正文中、辅助轻） ===== */
  .row .name, .mo-name, .pf-name { font-weight: 700; }
  .row .last, .mo-text, .bubble { font-weight: 400; }
  .row .meta, .conv-group, .mo-meta, .pf-sec { font-weight: 600; }

  /* ==================== 第 51–100 轮 ==================== */
  /* 51 骨架屏微光 */
  .sk-row { animation-duration: 1.6s !important; }
  /* 52 列表加载中：内容区最小高度，避免跳动 */
  .content { min-height: 120px; }
  /* 53 群公告条内边距 */
  .notice-bar { padding: 10px 14px !important; }
  /* 54 表情面板高度 */
  .emoji-panel { max-height: 268px !important; overflow-y: auto !important; }
  /* 55 输入栏按钮间距 */
  .composer { gap: 9px !important; }
  /* 56 头像渐变：更饱满的对角渐变 */
  .av, .avatar, .me-avatar, .pf-av, .mo-av {
    background-blend-mode: soft-light;
    background-size: cover;
  }
  /* 57 名字过长省略 */
  .row .name, .mo-name, .gm-name, .pf-name {
    max-width: 100%; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }
  .row .last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 58 时间：小屏不换行 */
  .row .meta { white-space: nowrap; }
  /* 59 未读数字居中 */
  .badge { display: inline-flex !important; align-items: center; justify-content: center; }
  /* 60 卡片间距统一 */
  .row + .row { margin-top: 0 !important; }
  /* 61 深色阴影更沉 */
  body.dark .row { box-shadow: 0 1px 3px rgba(0,0,0,.4) !important; }
  /* 62 深色输入框 */
  body.dark .composer input[type=text] { background: rgba(255,255,255,.06) !important; color: #E8F1F8 !important; }
  /* 63 深色气泡 */
  body.dark .msg:not(.me) .bubble { background: #16304A !important; border-color: rgba(255,255,255,.06) !important; }
  /* 64 深色时间线 */
  body.dark .msgtime::before, body.dark .msgtime::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16)) !important;
  }
  /* 65 深色徽标 */
  body.dark .tag, body.dark .chip, body.dark .pf-tag { background: rgba(79,168,216,.18) !important; }
  /* 66 朋友圈图片：圆角和比例 */
  .mo-img img { display: block; width: 100%; height: auto; }
  /* 67 朋友圈操作按钮间距 */
  .mo-acts { gap: 4px !important; }
  /* 68 资料页分区对齐 */
  .pf-sec::after {
    content: ''; flex: 1; height: 1px; margin-left: 8px;
    background: var(--c-line); align-self: center;
  }
  .pf-sec { display: flex; align-items: center; }
  /* 69 搜索高亮 */
  .sh-t mark { background: rgba(255,214,102,.45) !important; color: inherit !important; }
  body.dark .sh-t mark { background: rgba(255,214,102,.22) !important; }
  /* 70 钱包卡片 */
  .wallet-card, .me-wallet {
    border-radius: 18px !important;
    background: linear-gradient(145deg, #6FBBE6, #3E8FC9) !important;
    color: #fff !important; padding: 18px !important;
  }
  /* 71 红包领取：卡片按下反馈 */
  .pkt:active { transform: scale(.985); }
  /* 72 转账状态标签 */
  .tr-state { letter-spacing: .2px; }
  /* 73 语音消息 */
  .audio-bubble, .voice-bubble {
    display: flex; align-items: center; gap: 8px;
    min-width: 108px; padding: 9px 13px !important;
  }
  /* 74 视频消息 */
  .video-bubble video { border-radius: 12px !important; display: block; max-width: 100%; }
  /* 75 文件消息 */
  .file-bubble {
    display: flex; align-items: center; gap: 10px; padding: 11px 13px !important;
  }
  /* 76 位置消息 */
  .loc-bubble { border-radius: 12px !important; overflow: hidden; }
  /* 77 名片消息 */
  .card-bubble {
    border-radius: 12px !important;
    border: 1px solid var(--c-line) !important;
    padding: 11px 13px !important;
  }
  /* 78 系统消息 */
  .sys-msg, .system-msg {
    text-align: center; font-size: 11.5px !important;
    color: var(--c-text-3) !important; margin: 12px 0;
  }
  /* 79 撤回消息 */
  .recalled {
    font-style: normal; font-size: 12.5px !important;
    color: var(--c-text-3) !important; text-align: center;
    padding: 6px 12px;
    background: rgba(60,80,100,.06);
    border-radius: 10px; display: inline-block;
  }
  body.dark .recalled { background: rgba(255,255,255,.06); }
  /* 80 引用消息 */
  .bubble .quote {
    border-left: 2.5px solid rgba(62,143,201,.5) !important;
    background: rgba(62,143,201,.07) !important;
  }
  .msg.me .bubble .quote {
    background: rgba(255,255,255,.16) !important;
    border-left-color: rgba(255,255,255,.6) !important;
  }
  /* 81 @提醒 */
  .bubble.mention {
    border-color: rgba(232,192,122,.7) !important;
    box-shadow: 0 0 0 2px rgba(232,192,122,.16) !important;
  }
  /* 82 群公告文字 */
  .notice-bar .nb-txt { font-weight: 500; }
  /* 83 群成员头像尺寸 */
  .gm-av { width: 38px !important; height: 38px !important; }
  /* 84 群邀请按钮 */
  .gm-invite:active { transform: scale(.985); }
  /* 85 群设置行 */
  .gm-row .gm-sub { letter-spacing: .1px; }
  /* 86 个人设置行 */
  .me-card .line:last-child { border-bottom: 0 !important; }
  /* 87 头像上传预览 */
  .me-avatar:active { transform: scale(.96); }
  .me-avatar { transition: transform .15s ease; }
  /* 88 昵称编辑输入 */
  #nname, #newname { height: 46px !important; border-radius: 13px !important; font-size: 15px !important; }
  /* 89 钱包页面标题 */
  .sheet h3 .amount { color: var(--c-brand-deep); font-weight: 800; }
  /* 90 充值/转账金额 */
  .pk-amt-wrap input::placeholder { color: var(--c-text-3) !important; font-weight: 400; }
  /* 91 提现 */
  .pk-quick button { font-variant-numeric: tabular-nums; }
  /* 92 账单筛选 */
  .wh-filter, .wallet-filter {
    display: flex; gap: 8px; margin: 10px 0 14px;
  }
  /* 93 消息搜索输入 */
  .chat-search input, #chatSearchInput { height: 44px !important; border-radius: 13px !important; }
  /* 94 会话搜索 */
  .conv-filter input { font-weight: 400 !important; }
  /* 95 通讯录搜索 */
  .content input[type=text] { border-radius: 13px !important; }
  /* 96 全局搜索 */
  .gs-hist-title { font-weight: 700 !important; letter-spacing: .6px; }
  /* 97 空状态副标题 */
  .empty small { margin-top: 5px !important; }
  /* 98 错误提示动画 */
  @keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }
  .login-error:not(:empty), .err:not(:empty) { animation: shake .28s ease; }
  /* 99 加载状态：按钮禁用光标 */
  button:disabled { cursor: not-allowed; }
  /* 100 最终统一：所有列表左右一致 + 安全区 */
  .content { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  #msgs { padding-bottom: 18px !important; }
  .page { background-attachment: fixed; }

  /* ========== 红包/转账/图片/视频：去掉气泡外壳 ========== */
  .bubble.pkt-bubble,
  .bubble.img-bubble,
  .bubble.video-bubble,
  .bubble.poll-bubble,
  body.dark .bubble.pkt-bubble,
  body.dark .bubble.img-bubble,
  body.dark .bubble.video-bubble,
  body.dark .bubble.poll-bubble {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 78% !important;
  }
  /* 也不要气泡小尾巴 */
  .bubble.pkt-bubble::before,
  .bubble.img-bubble::before,
  .bubble.video-bubble::before,
  .bubble.poll-bubble::before {
    display: none !important;
  }
  /* 这些内容自己带圆角，给一点自身阴影即可 */
  .pkt { box-shadow: 0 4px 14px rgba(16,52,74,.10) !important; }
  .pkt.rp { box-shadow: 0 6px 18px rgba(201,63,50,.24) !important; }
  .pkt.tr { box-shadow: 0 4px 16px rgba(62,143,201,.14) !important; }
  .img-wrap { box-shadow: 0 4px 16px rgba(16,52,74,.12) !important; }
  .video-bubble, .video-bubble video { box-shadow: 0 4px 16px rgba(16,52,74,.12) !important; }
  .poll-card { box-shadow: 0 4px 18px rgba(16,52,74,.10) !important; }
  body.dark .pkt { box-shadow: 0 4px 14px rgba(0,0,0,.4) !important; }
  body.dark .img-wrap, body.dark .video-bubble, body.dark .poll-card {
    box-shadow: 0 4px 16px rgba(0,0,0,.45) !important;
  }

  /* 转账卡片：文字层次（备注别再是白字） */
  .pkt.tr,
  .pkt.tr * { color: #10344A !important; }
  .pkt.tr .tr-amt { color: #0B2B3E !important; font-weight: 800 !important; }
  .pkt.tr .tr-title { font-size: 12.5px !important; color: #4A6B82 !important; }
  .pkt.tr .tr-note, .pkt.tr .tr-remark { color: #6E8A9E !important; font-size: 11.5px !important; }
  .pkt.tr .tr-icon { color: #3E8FC9 !important; background: rgba(62,143,201,.16) !important; }
  .pkt.tr .tr-state { color: #245E87 !important; background: rgba(62,143,201,.16) !important; }

  /* 红包卡片：保持白字 */
  .pkt.rp, .pkt.rp * { color: #fff !important; }
  .pkt.rp .rp-amt, .pkt.rp .rp-note { color: rgba(255,255,255,.92) !important; }

  /* 深色下的转账卡 */
  body.dark .pkt.tr, body.dark .pkt.tr * { color: #E8F1F8 !important; }
  body.dark .pkt.tr .tr-title { color: #A7BCCC !important; }
  body.dark .pkt.tr .tr-note { color: #8FA6B6 !important; }

  /* ==================== 第 101–200 轮 ==================== */
  /* 101 图片消息：限制最大尺寸，不撑满 */
  .img-wrap { max-width: 220px !important; max-height: 300px !important; }
  .img-wrap img { max-width: 220px !important; max-height: 300px !important; object-fit: cover; }
  /* 102 图片骨架圆角一致 */
  .img-wrap .img-ph { border-radius: 14px !important; }
  /* 103 视频气泡最大宽度 */
  .video-bubble, .video-bubble video { max-width: 240px !important; }
  /* 104 红包卡片宽度 */
  .pkt { min-width: 210px !important; max-width: 264px !important; }
  /* 105 转账卡片内边距 */
  .pkt.tr { padding: 13px 15px !important; }
  /* 106 卡片自身圆角统一 */
  .pkt, .img-wrap, .video-bubble, .poll-card { border-radius: 14px !important; }
  /* 107 卡片之间的垂直间距 */
  .msg .bubble.pkt-bubble, .msg .bubble.img-bubble, .msg .bubble.video-bubble { margin: 0 !important; }
  .msg:has(.img-wrap), .msg:has(.pkt) { margin: 9px 0 !important; }
  /* 108 卡片按下轻微反馈 */
  .img-wrap:active, .video-bubble:active { transform: scale(.99); transition: transform .1s ease; }
  /* 109 卡片宽度在深色下一致 */
  body.dark .pkt { background: #1C3044 !important; }
  body.dark .pkt.rp { background: linear-gradient(150deg, #7A3A2C, #5E2A20) !important; }
  body.dark .pkt.tr { background: linear-gradient(150deg, #1E3D52, #16303F) !important; }
  /* 110 图片加载后淡入 */
  .img-wrap.loaded img { animation: fadeIn .25s ease forwards; }
  /* 111 聊天气泡内链接 */
  .bubble a { color: var(--c-brand) !important; text-decoration: underline; text-underline-offset: 2px; }
  .msg.me .bubble a { color: #EAF6FF !important; }
  /* 112 聊天气泡内代码 */
  .bubble code {
    background: rgba(62,143,201,.12); padding: 1px 5px; border-radius: 5px;
    font-size: 13px; font-family: ui-monospace, Menlo, monospace;
  }
  /* 113 群里发消息人名字 */
  .msg .sender, .msg .msg-sender { font-size: 11.5px; color: var(--c-text-3); margin-bottom: 3px; }
  /* 同一个人连发时名字也留着，只是压小一号、淡一点，别把气泡撑高 */
  .msg .msg-sender.same { font-size: 10.5px; opacity: .66; margin-bottom: 2px; }
  /* 114 群聊里自己的消息不再重复显示名字 */
  .msg.me .sender { display: none; }
  /* 115 消息间距：同人更紧、换人更松 */
  .msg { margin: 8px 0 !important; }
  .msg.same-prev { margin-top: 3px !important; }
  /* 116 头像与气泡对齐 */
  .msg .av { align-self: flex-start; margin-top: 2px; }
  /* 117 时间线间距 */
  .msgtime { margin: 16px auto 10px !important; }
  /* 118 列表卡片按下阴影消失 */
  .row:active { box-shadow: none !important; }
  /* 119 底部导航按下反馈 */
  .tabbar div:active { transform: scale(.94); }
  .tabbar div { transition: transform .1s ease, color .12s ease; }
  /* 120 会话列表加载更多按钮 */
  .load-more {
    margin: 10px 12px 14px !important;
    padding: 12px 0 !important;
    border-radius: 14px !important;
    font-size: 12.5px !important;
  }
  /* 121 顶栏返回键热区 */
  .topbar .ic.back { margin-left: -6px; }
  /* 122 输入框聚焦时光标颜色 */
  .composer input[type=text] { caret-color: var(--c-brand); }
  /* 123 发送键禁用态 */
  .composer .send:disabled { background: rgba(62,143,201,.25) !important; }
  /* 124 表情面板贴底 */
  .emoji-panel { border-top: 1px solid var(--c-line) !important; }
  /* 125 表情面板内标题分隔 */
  .emoji-title + .emoji-row { margin-bottom: 4px; }
  /* 126 头像点击热区扩大 */
  .msg .av { cursor: pointer; }
  /* 127 群成员列表滚动 */
  .gm-wrap { max-height: 56vh; overflow-y: auto; }
  /* 128 群管理标题 */
  .gm-title, .sheet h3.gm-h { font-size: 16px !important; }
  /* 129 资料页头像点击 */
  .pf-av:active { transform: scale(.97); }
  .pf-av { transition: transform .15s ease; }
  /* 130 朋友圈发布按钮动画 */
  #moPost:active { transform: scale(.92); }
  #moPost { transition: transform .12s ease; }
  /* 131 朋友圈图片点击放大 */
  .mo-img:active { opacity: .9; }
  /* 132 点赞动画 */
  @keyframes heartPop { 0%{transform:scale(1)} 45%{transform:scale(1.35)} 100%{transform:scale(1)} }
  .mo-act.on { animation: heartPop .32s ease; }
  /* 133 评论行分隔 */
  .mo-cmt + .mo-cmt { margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--c-line); }
  /* 134 朋友圈时间 */
  .mo-meta { font-size: 11px !important; color: var(--c-text-3) !important; }
  /* 135 通知条关闭按钮热区 */
  .notice-bar .nb-x { cursor: pointer; }
  /* 136 搜索历史标题 */
  .gs-hist-title { margin-bottom: 6px !important; }
  /* 137 搜索结果行按下 */
  .search-hit-row:active { border-radius: 10px; }
  /* 138 收藏行按下 */
  .fav-row:active { background: rgba(62,143,201,.06); }
  /* 139 邀请码复制按钮 */
  #invCopy { font-weight: 700; }
  /* 140 弹层按钮间距 */
  .row2 { gap: 10px !important; display: flex !important; }
  /* 141 弹层输入框间距 */
  .sheet input + input { margin-top: 9px !important; }
  /* 142 弹层说明文字 */
  .sheet .tip, .sheet .hint { font-size: 12px !important; color: var(--c-text-3) !important; line-height: 1.65; }
  /* 143 深色弹层 */
  body.dark .sheet .box { background: #12283C !important; }
  /* 144 深色弹层输入 */
  body.dark .sheet input { background: rgba(255,255,255,.06) !important; color: #E8F1F8 !important; }
  /* 145 深色按钮 */
  body.dark .btn-ghost { background: rgba(255,255,255,.07) !important; color: #A7BCCC !important; }
  /* 146 顶部安全区（有刘海时） */
  #app { padding-top: 0; }
  /* 147 长昵称在顶栏截断 */
  #chatTitle, .topbar .title {
    max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* 148 顶栏副标题不换行 */
  .topbar .sub { white-space: nowrap; }
  /* 149 底部安全区 */
  .tabbar { margin-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
  /* 150 滚动惯性 */
  .content, #msgs { -webkit-overflow-scrolling: touch; }
  /* 151-200：深色与细节统一收尾 */
  body.dark .load-more { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important; }
  body.dark .emoji-panel { background: #12283C !important; }
  body.dark .mention-panel { background: #12283C !important; }
  body.dark .search-hit-row { border-color: rgba(255,255,255,.08) !important; }
  body.dark .mo-comments { background: rgba(255,255,255,.05) !important; }
  body.dark .mo-likes { background: rgba(79,168,216,.14) !important; }
  body.dark .fav-ico { background: rgba(79,168,216,.16) !important; }
  body.dark .invite-code { background: rgba(79,168,216,.10) !important; border-color: rgba(79,168,216,.28) !important; }
  body.dark .pf-group { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.10) !important; }
  body.dark .empty-ico { border: 1px solid rgba(255,255,255,.06); }
  body.dark .szh, body.dark .enc-info { background: rgba(79,168,216,.10) !important; }
  .sheet .box > *:last-child { margin-bottom: 0; }
  .content { overflow-x: hidden; }
  #msgs { overflow-x: hidden; }
  img, video { -webkit-user-drag: none; user-select: none; }
  * { -webkit-tap-highlight-color: transparent; }
  input, textarea, button { font-family: inherit; }
  ::selection { background: rgba(62,143,201,.22); }

  /* 修复：空的错误提示不该占位置（之前是一条灰带） */
  .login-error:empty, .err:empty { display: none !important; }
  #loginErr:empty, #err:empty { display: none !important; }

  /* 修复：输入框被压扁（高度没吃满 52px） */
  .field { display: flex !important; align-items: center !important; }
  .field input {
    flex: 1 !important;
    height: 100% !important;
    min-height: 44px !important;
    padding: 0 !important;
    line-height: normal !important;
    background: transparent !important;
    border: 0 !important;
  }
  .field .ico { flex: none; }

  /* 修复：我页面最后一项别被底部导航压住 */
  #app .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .me-card:last-of-type { margin-bottom: 18px !important; }
  /* 底部导航整体抬高一点，留出安全距离 */
  .tabbar { margin-bottom: calc(14px + env(safe-area-inset-bottom)) !important; }

  /* 真修复：内容区底部留白（覆盖之前所有规则） */
  #app #content,
  #app .content {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }
  /* 气泡：保证文字不溢出 */
  .bubble {
    max-width: 74% !important;
    min-width: 34px !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
  /* 表情/短消息：不再被压到溢出 */
  .msg .bubble { display: inline-block; }
  /* 聊天页头像别被顶栏盖住 */
  #msgs .msg:first-child { margin-top: 6px; }


  /* ==================== 转账 / 红包 / 图片 / 视频：恢复昨天那版 ==================== */
  /* 1 四种卡片都不挂气泡外壳 */
  .bubble.pkt-bubble, .bubble.img-bubble, .bubble.video-bubble,
  body.dark .bubble.pkt-bubble, body.dark .bubble.img-bubble, body.dark .bubble.video-bubble {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .bubble.pkt-bubble::before, .bubble.img-bubble::before, .bubble.video-bubble::before { display: none !important; }

  /* 2 转账卡：昨天那版浅蓝卡 */
  .pkt.tr {
    width: 224px !important;
    padding: 13px 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #EAF4FC, #D5E9F7) !important;
    border: 1px solid rgba(62,143,201,.16) !important;
    box-shadow: 0 4px 14px rgba(62,143,201,.12) !important;
    overflow: visible !important;
  }
  .pkt.tr * { color: #10344A !important; }
  .pkt.tr .tr-amt { font-size: 19px !important; font-weight: 800 !important; white-space: nowrap; }
  .pkt.tr .tr-title { font-size: 12px !important; color: #4A6B82 !important; }
  .pkt.tr .tr-note { color: #6E8A9E !important; font-size: 11.5px !important; }
  .pkt.tr .tr-icon {
    width: 34px !important; height: 34px !important; border-radius: 50% !important;
    background: rgba(62,143,201,.16) !important; color: #3E8FC9 !important;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
  }
  .pkt.tr .tr-state {
    background: rgba(62,143,201,.14) !important; color: #245E87 !important;
    font-size: 11.5px !important; font-weight: 700;
    padding: 3px 9px !important; border-radius: 9px !important;
  }

  /* 3 红包卡：昨天那版红 */
  .pkt.rp {
    width: 224px !important;
    padding: 13px 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(140deg, #E4584A, #C93F32) !important;
    box-shadow: 0 4px 14px rgba(201,63,50,.28) !important;
    overflow: visible !important;
  }
  .pkt.rp, .pkt.rp * { color: #fff !important; }
  .pkt.rp.rp-done { background: linear-gradient(140deg, #B8C6D4, #93A4B4) !important; }

  /* 4 图片 / 视频 */
  .img-wrap { border-radius: 14px !important; box-shadow: 0 4px 14px rgba(16,52,74,.10) !important; max-width: 220px; }
  .img-wrap img { border-radius: 14px !important; }
  .video-bubble, .video-bubble video { border-radius: 14px !important; box-shadow: 0 4px 14px rgba(16,52,74,.10) !important; }

  /* 5 深色 */
  body.dark .pkt.tr { background: linear-gradient(145deg, #1E3D52, #16303F) !important; }
  body.dark .pkt.tr .tr-amt { color: #F2FBFF !important; }
  body.dark .pkt.tr .tr-title { color: #A7BCCC !important; }
  body.dark .pkt.rp { background: linear-gradient(140deg, #A8442E, #7E2D1D) !important; }
  body.dark .img-wrap, body.dark .video-bubble { box-shadow: 0 4px 14px rgba(0,0,0,.4) !important; }

  /* ===== 修1：卡片右上角的蓝色小三角彻底去掉 ===== */
  .bubble.pkt-bubble::before,
  .bubble.img-bubble::before,
  .bubble.video-bubble::before,
  .bubble.poll-bubble::before,
  .msg.me .bubble.pkt-bubble::before,
  .msg.me .bubble.img-bubble::before,
  .msg.me .bubble.video-bubble::before {
    display: none !important;
    content: none !important;
    background: none !important;
  }
  /* 也把任何残留的角标伪元素清掉 */
  .pkt::before, .pkt::after,
  .pkt-bubble::after, .img-bubble::after, .video-bubble::after {
    content: none !important;
    display: none !important;
  }

  /* ===== 修2：卡片和头像之间留出间距（以前贴在一起） ===== */
  .msg .bubble.pkt-bubble,
  .msg .bubble.img-bubble,
  .msg .bubble.video-bubble {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }
  .msg.me .bubble.pkt-bubble,
  .msg.me .bubble.img-bubble,
  .msg.me .bubble.video-bubble {
    margin-right: 8px !important;
    margin-left: 8px !important;
  }
  /* 卡片别顶到屏幕边 */
  .msg .bubble.pkt-bubble { max-width: calc(100% - 60px) !important; }

  /* ===== 修3：视频封面 ===== */
  .video-bubble {
    position: relative;
    display: inline-block;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0B1F2D;
  }
  .video-bubble video {
    display: block;
    border-radius: 14px;
    max-width: 240px;
    background: #0B1F2D;
  }
  /* 播放按钮遮罩 */
  .video-bubble .video-play {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(10,22,34,.55);
    border: 1.5px solid rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; pointer-events: none;
    backdrop-filter: blur(4px);
  }
  .video-bubble .video-play::before { content: '▶'; margin-left: 2px; }
  .video-bubble .video-dur {
    position: absolute; right: 8px; bottom: 8px;
    font-size: 10.5px; color: #fff;
    background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 6px;
    font-variant-numeric: tabular-nums;
  }
  /* 视频封面态 */
  .video-wrap { position: relative; display: inline-block; line-height: 0; cursor: pointer; }
  .video-wrap video { border-radius: 14px; display: block; max-width: 240px; background: #0B1F2D; }
  .video-wrap .video-play { display: flex; }
  .video-wrap.playing .video-play,
  .video-wrap.playing .video-dur { display: none !important; }
  .video-wrap.playing { cursor: default; }

  /* ==================== 转账 / 红包：精致化（克制版） ==================== */
  /* 卡片尺寸与内距 */
  .pkt.tr, .pkt.rp {
    width: 228px !important;
    padding: 14px 15px !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
  }
  /* 两卡共同的结构：顶部一行 + 底部说明 */
  .pkt .pkt-head {
    display: flex; align-items: center; gap: 10px; width: 100%;
  }
  .pkt .pkt-ico {
    width: 34px !important; height: 34px !important; flex: none;
    border-radius: 11px !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
  }
  .pkt .pkt-main { flex: 1; min-width: 0; }
  .pkt .pkt-amt {
    font-size: 20px !important; font-weight: 800 !important;
    letter-spacing: -.4px; line-height: 1.15;
    white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .pkt .pkt-sub {
    font-size: 11.5px !important; margin-top: 3px !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pkt .pkt-state {
    flex: none; align-self: flex-start;
    font-size: 10.5px !important; font-weight: 700;
    padding: 3px 9px !important; border-radius: 8px !important;
    white-space: nowrap; letter-spacing: .2px;
  }

  /* ---- 转账 ---- */
  .pkt.tr {
    background: linear-gradient(148deg, #F2F9FE 0%, #DFEEFA 100%) !important;
    border: 1px solid rgba(62,143,201,.15) !important;
    box-shadow: 0 3px 12px rgba(62,143,201,.10), inset 0 1px 0 rgba(255,255,255,.9) !important;
  }
  .pkt.tr .pkt-ico {
    background: linear-gradient(150deg, #A8DDF7, #4FA8D8) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(62,143,201,.24);
  }
  .pkt.tr .pkt-amt { color: #0E2E42 !important; }
  .pkt.tr .pkt-sub { color: #5C7C93 !important; }
  .pkt.tr .pkt-state {
    background: rgba(232,169,60,.16) !important;
    color: #A8741C !important;
  }
  .pkt.tr.got .pkt-state {
    background: rgba(46,158,107,.14) !important;
    color: #237A52 !important;
  }
  .pkt.tr.got .pkt-ico {
    background: linear-gradient(150deg, #A8DCC4, #2E9E6B) !important;
    box-shadow: 0 2px 8px rgba(46,158,107,.22);
  }

  /* ---- 红包 ---- */
  .pkt.rp {
    background: linear-gradient(148deg, #EE6151 0%, #D04430 100%) !important;
    box-shadow: 0 4px 16px rgba(190,53,33,.24), inset 0 1px 0 rgba(255,255,255,.22) !important;
  }
  .pkt.rp .pkt-ico {
    background: linear-gradient(150deg, #FFE082, #F0B429) !important;
    color: #8B5A0F !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
  }
  .pkt.rp .pkt-amt { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.14); }
  .pkt.rp .pkt-sub { color: rgba(255,255,255,.88) !important; }
  .pkt.rp .pkt-state {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
  }
  .pkt.rp.done, .pkt.rp.rp-done {
    background: linear-gradient(148deg, #C2CDD8, #A6B4C1) !important;
    box-shadow: 0 3px 12px rgba(16,52,74,.10) !important;
  }
  .pkt.rp.done .pkt-ico, .pkt.rp.rp-done .pkt-ico {
    background: rgba(255,255,255,.5) !important; color: #7B8FA0 !important;
  }

  /* 按下反馈 */
  .pkt.tr:active, .pkt.rp:active { transform: scale(.985); }
  .pkt.tr, .pkt.rp { transition: transform .12s ease; }

  /* ---- 深色 ---- */
  body.dark .pkt.tr {
    background: linear-gradient(148deg, #1E3E54 0%, #16303F 100%) !important;
    border-color: rgba(255,255,255,.08) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
  body.dark .pkt.tr .pkt-amt { color: #F2FBFF !important; }
  body.dark .pkt.tr .pkt-sub { color: #9FB3C6 !important; }
  body.dark .pkt.tr .pkt-state { background: rgba(232,169,60,.2) !important; color: #E8C07A !important; }
  body.dark .pkt.tr.got .pkt-state { background: rgba(46,158,107,.22) !important; color: #7FDCA9 !important; }
  body.dark .pkt.rp {
    background: linear-gradient(148deg, #A8442E 0%, #7E2D1D 100%) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.45) !important;
  }

  /* ==================== 转账 / 红包 最终版 ==================== */
  /* ---- 共同 ---- */
  .pkt.tr, .pkt.rp {
    width: 226px !important;
    box-sizing: border-box !important;
    border-radius: 15px !important;
    padding: 13px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    transition: transform .12s ease;
  }
  .pkt.tr:active, .pkt.rp:active { transform: scale(.985); }
  .pkt .pkt-ico, .pkt .tr-icon, .pkt .rp-ico {
    flex: none;
    width: 36px !important; height: 36px !important;
    border-radius: 12px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 15px !important; font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* ---- 转账 ---- */
  .pkt.tr {
    background: linear-gradient(148deg, #F2F9FE 0%, #DEEEfA 100%) !important;
    border: 1px solid rgba(62,143,201,.15) !important;
    box-shadow: 0 3px 12px rgba(62,143,201,.10), inset 0 1px 0 rgba(255,255,255,.9) !important;
  }
  .pkt.tr .tr-icon {
    background: linear-gradient(150deg, #A8DDF7, #4FA8D8) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(62,143,201,.24);
  }
  .pkt.tr.got .tr-icon {
    background: linear-gradient(150deg, #A8DCC4, #2E9E6B) !important;
    box-shadow: 0 2px 8px rgba(46,158,107,.22);
  }
  .pkt.tr .tr-body { flex: 1 !important; min-width: 0 !important; display: block !important; }
  .pkt.tr .tr-amt {
    font-size: 19px !important; font-weight: 800 !important;
    color: #0E2E42 !important; letter-spacing: -.4px;
    line-height: 1.2 !important; white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .pkt.tr .tr-note {
    font-size: 11.5px !important; color: #5C7C93 !important;
    margin-top: 3px !important; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .pkt.tr .tr-state {
    flex: none !important;
    font-size: 10.5px !important; font-weight: 700;
    padding: 3px 9px !important; border-radius: 8px !important;
    background: rgba(232,169,60,.16) !important; color: #A8741C !important;
    white-space: nowrap;
  }
  .pkt.tr.got .tr-state { background: rgba(46,158,107,.14) !important; color: #237A52 !important; }

  /* ---- 红包 ---- */
  .pkt.rp {
    background: linear-gradient(148deg, #EE6151 0%, #D04430 100%) !important;
    box-shadow: 0 4px 16px rgba(190,53,33,.24), inset 0 1px 0 rgba(255,255,255,.22) !important;
  }
  .pkt.rp .rp-ico {
    background: linear-gradient(150deg, #FFE082, #F0B429) !important;
    color: #8B5A0F !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    font-size: 17px !important;
  }
  .pkt.rp .rp-body { flex: 1 !important; min-width: 0 !important; display: block !important; }
  .pkt.rp .rp-amt {
    font-size: 19px !important; font-weight: 800 !important;
    color: #fff !important; letter-spacing: -.3px;
    line-height: 1.2 !important; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.14);
    font-variant-numeric: tabular-nums;
  }
  .pkt.rp .rp-note {
    font-size: 11.5px !important; color: rgba(255,255,255,.9) !important;
    margin-top: 3px !important; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .pkt.rp.done {
    background: linear-gradient(148deg, #C2CDD8, #A6B4C1) !important;
    box-shadow: 0 3px 12px rgba(16,52,74,.10) !important;
  }
  .pkt.rp.done .rp-ico { background: rgba(255,255,255,.55) !important; color: #7B8FA0 !important; }

  /* ---- 深色 ---- */
  body.dark .pkt.tr {
    background: linear-gradient(148deg, #1E3E54 0%, #16303F 100%) !important;
    border-color: rgba(255,255,255,.08) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
  body.dark .pkt.tr .tr-amt { color: #F2FBFF !important; }
  body.dark .pkt.tr .tr-note { color: #9FB3C6 !important; }
  body.dark .pkt.tr .tr-state { background: rgba(232,169,60,.2) !important; color: #E8C07A !important; }
  body.dark .pkt.tr.got .tr-state { background: rgba(46,158,107,.22) !important; color: #7FDCA9 !important; }
  body.dark .pkt.rp { background: linear-gradient(148deg, #A8442E 0%, #7E2D1D 100%) !important; box-shadow: 0 4px 16px rgba(0,0,0,.45) !important; }

  /* 彻底去掉红包/转账/图片/视频下面那层气泡底色（含自己的蓝气泡） */
  .msg .bubble.pkt-bubble,
  .msg.me .bubble.pkt-bubble,
  .msg:not(.me) .bubble.pkt-bubble,
  .msg .bubble.img-bubble,
  .msg.me .bubble.img-bubble,
  .msg:not(.me) .bubble.img-bubble,
  .msg .bubble.video-bubble,
  .msg.me .bubble.video-bubble,
  .msg .bubble.poll-bubble,
  .msg.me .bubble.poll-bubble {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  /* 伪元素全清 */
  .msg .bubble.pkt-bubble::before,
  .msg .bubble.pkt-bubble::after,
  .msg.me .bubble.pkt-bubble::before,
  .msg.me .bubble.pkt-bubble::after,
  .msg .bubble.img-bubble::before,
  .msg .bubble.img-bubble::after,
  .msg.me .bubble.img-bubble::before,
  .msg .bubble.video-bubble::before,
  .msg .bubble.video-bubble::after,
  .msg.me .bubble.video-bubble::before,
  .msg .bubble.poll-bubble::before,
  .msg .bubble.poll-bubble::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
  }

  /* ==================== 顶部状态栏：固定宽度/高度 ==================== */
  .topbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    height: calc(54px + env(safe-area-inset-top)) !important;
    padding-top: env(safe-area-inset-top) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0;
    z-index: 30;
  }
  /* 三块：左 / 中 / 右，宽度不随内容撑开 */
  .topbar > .ic { flex: 0 0 36px !important; width: 36px !important; }
  .topbar .title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* 标题里的副标题（在线/人数）不被挤掉 */
  .topbar .sub, .topbar .title small, .topbar .online-tag {
    flex: none !important;
    white-space: nowrap !important;
  }
  /* 顶栏内容整体不换行 */
  .topbar * { min-width: 0; }

  /* 聊天页进入：只淡入，不做位移（避免顶部露出一条） */
  @keyframes chatInPlain { from { opacity: 0; } to { opacity: 1; } }
  #chat.chat-in { animation: chatInPlain .12s ease forwards !important; transform: none !important; }
  #chat.chat-out { animation: chatInPlain .1s ease reverse forwards !important; transform: none !important; }
  /* 聊天页全程不产生额外滚动条（多出来的那一节常见于横向/纵向溢出） */
  #chat { overflow: hidden !important; }
  #chat > .topbar { flex: 0 0 auto !important; }
  #chat > .msgs { flex: 1 1 auto !important; min-height: 0 !important; }
  /* 主界面的搜索框进聊天时立刻消失，不留过渡 */
  #chat:not(.hidden) ~ #app #convFilterBar,
  body.chat-open #convFilterBar { display: none !important; }

  /* ==================== 消息样式简化：一条消息 = 一个头像 + 一个气泡 ==================== */
  /* 1 每条消息都显示头像（连续消息也不隐藏） */
  .msg .av, .msg.same-prev .av { opacity: 1 !important; visibility: visible !important; }
  .msg.same-prev { margin-top: 8px !important; }

  /* 2 去掉气泡小尾巴 */
  .msg .bubble::before, .msg .bubble::after,
  .msg.me .bubble::before, .msg.me .bubble::after,
  .msg:not(.me) .bubble::before, .msg:not(.me) .bubble::after {
    display: none !important;
    content: none !important;
  }

  /* 3 气泡：纯色，四角一样圆 */
  .msg .bubble,
  .msg.me .bubble,
  .msg:not(.me) .bubble {
    border-radius: 14px !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .msg:not(.me) .bubble {
    background: #FFFFFF !important;
    color: #10344A !important;
    border: 1px solid rgba(24,68,102,.08) !important;
  }
  .msg.me .bubble {
    background: #3E8FC9 !important;
    background-image: none !important;
    color: #FFFFFF !important;
  }
  /* 4 气泡尺寸收敛 */
  .msg .bubble { padding: 9px 13px !important; font-size: 14.5px !important; line-height: 1.5 !important; }
  .msg { margin: 8px 0 !important; }

  /* 5 头像：朴素圆角方块 */
  .msg .av {
    width: 38px !important; height: 38px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  /* ==================== 引用消息：完整显示 ==================== */
  .bubble .quote {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    padding: 7px 10px !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
    border-left: 2.5px solid rgba(62,143,201,.55) !important;
    background: rgba(62,143,201,.08) !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: #4A6B82 !important;
  }
  .msg.me .bubble .quote {
    background: rgba(255,255,255,.18) !important;
    border-left-color: rgba(255,255,255,.75) !important;
    color: rgba(255,255,255,.95) !important;
  }

  /* 深色 */
  body.dark .msg:not(.me) .bubble {
    background: #16304A !important;
    border-color: rgba(255,255,255,.06) !important;
    color: #E8F1F8 !important;
  }
  body.dark .msg.me .bubble { background: #2E6E96 !important; }
  body.dark .bubble .quote { background: rgba(255,255,255,.08) !important; color: #B8CBD9 !important; }
  /* 群里自己发的红包：可领提示 */
  .rp-self-tip {
    font-size: 10px; color: rgba(255,255,255,.72);
    margin-top: 3px; letter-spacing: .2px;
  }
  /* 分组式菜单（聊天更多功能） */
  .sg-title {
    font-size: 11px; font-weight: 700; color: var(--c-text-3);
    letter-spacing: .8px; margin: 14px 0 8px;
  }
  .sg-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
  }
  .sg-cell {
    background: var(--c-bg-1);
    border: 1px solid var(--c-line);
    border-radius: 14px;
    padding: 13px 10px 11px;
    text-align: center;
    transition: transform .12s ease, background .12s ease;
  }
  .sg-cell:active { transform: scale(.96); background: rgba(62,143,201,.10); }
  .sg-ico {
    width: 38px; height: 38px; margin: 0 auto 8px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
  }
  .sg-ico.red    { background: linear-gradient(150deg, #FFD3CC, #F0634F); }
  .sg-ico.blue   { background: linear-gradient(150deg, #CFEAFB, #4FA8D8); }
  .sg-ico.green  { background: linear-gradient(150deg, #CEEEDC, #3AAE79); }
  .sg-ico.gold   { background: linear-gradient(150deg, #FBEBC2, #E0A83C); }
  .sg-ico.purple { background: linear-gradient(150deg, #DCD3F5, #7C6BD0); }
  .sg-ico.gray   { background: linear-gradient(150deg, #E3E9EF, #9AAEBD); }
  .sg-t { font-size: 12.5px; font-weight: 700; color: var(--c-text); line-height: 1.3; }
  .sg-d { font-size: 10px; color: var(--c-text-3); margin-top: 3px; line-height: 1.3; }
  body.dark .sg-cell { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
  body.dark .sg-ico { filter: brightness(.9); }
  /* 红包/转账详情 */
  .pd-head { text-align: center; padding: 18px 0 16px; border-radius: 16px; margin-bottom: 14px; }
  .pd-head.rp { background: linear-gradient(150deg, #F0634F, #C93F32); color: #fff; }
  .pd-head.tr { background: linear-gradient(150deg, #EAF4FC, #D5E9F7); color: #10344A; }
  .pd-ico { font-size: 30px; margin-bottom: 6px; }
  .pd-note { font-size: 15px; font-weight: 800; }
  .pd-amt { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
  .pd-by { font-size: 11.5px; opacity: .8; margin-top: 6px; }
  .pd-stats { display: flex; text-align: center; }
  .pd-stat { flex: 1; }
  .pd-stat b { display: block; font-size: 16px; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }
  .pd-stat span { font-size: 10.5px; color: var(--c-text-3); }
  .pd-sec { font-size: 11px; font-weight: 700; color: var(--c-text-3); letter-spacing: .6px; margin: 16px 0 8px; }
  .pd-list { max-height: 34vh; overflow-y: auto; }
  .pd-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--c-line); }
  .pd-row.mine { background: rgba(62,143,201,.05); border-radius: 10px; }
  .pd-av { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; background-size: cover; background-position: center; }
  .pd-who { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--c-text); }
  .pd-time { font-size: 10.5px; color: var(--c-text-3); font-weight: 400; margin-top: 2px; }
  .pd-get { font-size: 14px; font-weight: 800; color: var(--c-brand-deep); font-variant-numeric: tabular-nums; }
  .pd-empty { text-align: center; font-size: 12.5px; color: var(--c-text-3); padding: 24px 0; }
  body.dark .pd-head.tr { background: linear-gradient(150deg, #1E3E54, #16303F); color: #E8F1F8; }
  body.dark .pd-stat b { color: #E8F1F8; }

  /* ==================== 我页面 精修 ==================== */
  /* 身份卡：加一层柔光，在线标签更精致 */
  .me-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 17px !important;
  }
  .me-hero::after {
    content: ''; position: absolute; right: -40px; top: -50px;
    width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
    pointer-events: none;
  }
  .me-hero .me-avatar {
    width: 62px !important; height: 62px !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.16) !important;
  }
  .me-hero .me-name, .me-hero h2 {
    font-size: 21px !important; font-weight: 800 !important;
    letter-spacing: .5px;
  }
  .me-hero .me-acc, .me-hero .handle {
    font-size: 12.5px !important; opacity: .82;
    margin-top: 3px;
  }
  .me-hero .me-online, .me-hero .pill {
    background: rgba(255,255,255,.94) !important;
    color: var(--c-brand-deep) !important;
    font-size: 11px !important; font-weight: 700;
    padding: 4px 12px !important; border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
  }

  /* 统计卡：数字更聚焦 */
  .me-stats { margin-top: 12px !important; }
  .me-stats .stat { padding: 15px 6px !important; }
  .me-stats .stat .num {
    font-size: 21px !important; font-weight: 800 !important;
    letter-spacing: -.4px !important;
    font-variant-numeric: tabular-nums;
  }
  .me-stats .stat .label { font-size: 11px !important; margin-top: 4px !important; }

  /* 分组标题：更轻 */
  .me-group-title {
    font-size: 11px !important; font-weight: 700 !important;
    color: var(--c-text-3) !important; letter-spacing: .9px !important;
    padding: 18px 20px 7px !important;
  }

  /* 菜单行：图标更立体、行高更稳 */
  .me-card .line {
    padding: 13px 15px !important;
    min-height: 52px;
  }
  .me-card .line .lico {
    width: 34px !important; height: 34px !important;
    border-radius: 11px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  .me-card .line .lico svg { width: 17px !important; height: 17px !important; }
  .me-card .line .l {
    font-size: 14.5px !important; font-weight: 500;
    margin-left: 12px !important;
  }
  .me-card .line .r { font-size: 12.5px !important; color: var(--c-text-3) !important; }
  .me-card .line:active { background: rgba(62,143,201,.06) !important; }

  /* ==================== 群管理 精修 ==================== */
  .gm-head, .sheet h3.gm { text-align: center; }
  /* 群名 + 人数 */
  .gm-title {
    font-size: 18px !important; font-weight: 800 !important;
    text-align: center; letter-spacing: .3px;
  }
  .gm-sub { font-size: 11.5px !important; color: var(--c-text-3) !important; text-align: center; margin-top: 3px; }

  /* 公告：紧凑成一行 */
  .gm-notice {
    padding: 11px 13px !important;
    margin: 12px 0 10px !important;
    font-size: 12.5px !important;
    display: flex; align-items: center; gap: 8px;
    text-align: left !important;
    min-height: 0 !important;
  }
  .gm-notice span:first-child { font-size: 13px; }
  .gm-notice::before { display: none !important; }

  /* 搜索框 */
  .gm-search { height: 38px !important; margin-bottom: 10px !important; }

  /* 成员行：加操作区 */
  .gm-row {
    display: flex !important; align-items: center !important;
    gap: 11px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 7px !important;
  }
  .gm-av { width: 38px !important; height: 38px !important; border-radius: 12px !important; flex: none; }
  .gm-name {
    font-size: 14px !important; font-weight: 600 !important;
    display: flex; align-items: center; gap: 6px;
  }
  .gm-tag {
    font-size: 9.5px !important; font-weight: 700;
    padding: 1.5px 6px !important; border-radius: 6px !important;
  }
  .gm-tag.owner { background: rgba(197,138,56,.18) !important; color: #A8701F !important; }
  .gm-tag.admin { background: rgba(62,143,201,.16) !important; color: var(--c-brand-deep) !important; }
  .gm-sub2 { font-size: 10.5px !important; color: var(--c-text-3) !important; margin-top: 2px; }
  .gm-actions {
    display: flex; gap: 6px; margin-left: auto;
  }
  .gm-actions button {
    height: 26px !important; padding: 0 9px !important;
    border-radius: 8px !important; font-size: 11px !important;
    border: 1px solid var(--c-line) !important;
    background: transparent !important;
    color: var(--c-text-2) !important;
  }
  .gm-actions button:active { background: rgba(62,143,201,.12) !important; }
  .gm-actions button.danger { color: var(--c-red) !important; border-color: rgba(210,84,74,.24) !important; }

  /* 底部两个按钮：等宽并排 */
  .gm-foot {
    display: flex !important; gap: 10px; margin-top: 14px;
  }
  .gm-foot button {
    flex: 1; height: 46px !important; border-radius: 14px !important;
    font-size: 13.5px !important; font-weight: 700;
  }
  .gm-foot .ghost {
    background: var(--c-bg-1) !important;
    color: var(--c-brand-deep) !important;
    border: 1px solid var(--c-line) !important;
  }
  .gm-foot .solid {
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand)) !important;
    color: #fff !important; border: 0 !important;
    box-shadow: 0 6px 16px rgba(62,143,201,.24) !important;
  }

  /* 群管理：成员行布局 */
  .gm-info { flex: 1; min-width: 0; }
  .gm-name {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px !important; font-weight: 600 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gm-role {
    font-size: 9.5px !important; font-weight: 700;
    padding: 1.5px 6px !important; border-radius: 6px !important;
    background: rgba(62,143,201,.14) !important; color: var(--c-brand-deep) !important;
    flex: none;
  }
  .gm-role.owner { background: rgba(197,138,56,.18) !important; color: #A8701F !important; }
  .gm-actions { display: flex; gap: 6px; margin-left: auto; flex: none; }
  .gm-actions button {
    height: 27px !important; padding: 0 9px !important;
    border-radius: 8px !important; font-size: 11px !important;
    border: 1px solid var(--c-line) !important;
    background: transparent !important; color: var(--c-text-2) !important;
  }
  .gm-actions button.danger { color: var(--c-red) !important; border-color: rgba(210,84,74,.24) !important; }
  /* 公告紧凑 */
  .gm-notice {
    display: flex !important; align-items: center; gap: 8px;
    text-align: left !important;
    padding: 11px 13px !important;
    margin: 12px 0 10px !important;
    font-size: 12.5px !important;
    min-height: 0 !important;
  }
  .gm-notice::before { display: none !important; }
  /* 投票卡等：彻底去掉残留的半透明角 */
  .msg .bubble.poll-bubble::before,
  .msg .bubble.poll-bubble::after,
  .msg.me .bubble.poll-bubble::before,
  .msg.me .bubble.poll-bubble::after,
  .msg:not(.me) .bubble.poll-bubble::before,
  .msg:not(.me) .bubble.poll-bubble::after,
  .msg.me .bubble::before,
  .msg.me .bubble::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .poll-bubble {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative;
  }
  /* 防止任何父级阴影透出 */
  .msg:has(.poll-bubble) { background: transparent !important; }
  /* 表情包：固定大小（发出去 / 收到的都一样） */
  .sticker-wrap {
    width: 108px !important;
    height: 108px !important;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.6);
    display: block;
    cursor: pointer;
  }
  .sticker-wrap img {
    width: 108px !important;
    height: 108px !important;
    object-fit: contain !important;
    display: block;
  }
  body.dark .sticker-wrap { background: rgba(255,255,255,.06); }
  /* 表情包不需要气泡内边距 */
  .msg .bubble:has(.sticker-wrap) { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .msg.me .bubble:has(.sticker-wrap) { background: transparent !important; }
  .typing-hint {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 132px; z-index: 55; padding: 5px 14px; border-radius: 14px;
    font-size: 12px; color: var(--blue-deep);
    background: rgba(255,255,255,.94); border: 1px solid rgba(74,159,216,.18);
    box-shadow: var(--sh-sm);
  }
  body.dark .typing-hint { background: rgba(24,40,56,.96); color: #9FD3F0; border-color: rgba(255,255,255,.10); }


  /* ==================== 投票消息：彻底去掉那层半透明卡 ==================== */
  .msg .bubble.poll-bubble,
  .msg.me .bubble.poll-bubble,
  .msg:not(.me) .bubble.poll-bubble,
  body.dark .msg .bubble.poll-bubble,
  body.dark .msg.me .bubble.poll-bubble {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .msg .bubble.poll-bubble::before,
  .msg .bubble.poll-bubble::after {
    content: none !important;
    display: none !important;
  }
  /* 投票卡自身也不要任何半透明底 */
  .poll-card,
  body.dark .poll-card {
    background: var(--c-surface) !important;
    box-shadow: 0 2px 10px rgba(16,52,74,.08) !important;
    border: 1px solid var(--c-line) !important;
  }
  body.dark .poll-card { background: var(--c-surface) !important; }
  /* 选项底色改成实色 */
  .poll-opt { background: rgba(62,143,201,.06) !important; }
  .poll-opt.mine { background: rgba(62,143,201,.14) !important; }
  .poll-opt .poll-bar { background: rgba(62,143,201,.20) !important; }
  .poll-opt.mine .poll-bar { background: rgba(62,143,201,.34) !important; }
  /* 视频封面与全屏播放 */
  .video-wrap { position: relative; display: inline-block; line-height: 0; cursor: pointer; border-radius: 14px; overflow: hidden; background: #0B1F2D; }
  .video-wrap video { display: block; border-radius: 14px; max-width: 240px; background: #0B1F2D; }
  .video-cover {
    position: absolute; inset: 0; border-radius: 14px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
  }
  .video-play {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(10,22,34,.5);
    border: 1.5px solid rgba(255,255,255,.8);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
  }
  .video-play::before { content: '▶'; color: #fff; font-size: 16px; margin-left: 3px; }
  .video-dur {
    position: absolute; right: 8px; bottom: 8px;
    font-size: 10.5px; color: #fff; line-height: 1.4;
    background: rgba(0,0,0,.55); padding: 1px 7px; border-radius: 7px;
  }
  /* 全屏播放层 */
  .video-full {
    position: fixed; inset: 0; z-index: 200;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .16s ease forwards;
  }
  .video-full video {
    width: 100%; max-height: 100%;
    object-fit: contain; background: #000;
  }
  .vf-close {
    position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.18); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; z-index: 2;
  }

  /* ============ 投票消息：与头像留间距 + 去掉半透明底 ============ */
  .msg .bubble.poll-bubble,
  .msg.me .bubble.poll-bubble,
  .msg:not(.me) .bubble.poll-bubble {
    margin-left: 8px !important;
    margin-right: 8px !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  /* 投票卡：纯白实底，去掉半透明和多余圆角 */
  .poll-card,
  body.dark .poll-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(24,68,102,.10) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(16,52,74,.06) !important;
    padding: 12px 13px !important;
  }
  body.dark .poll-card {
    background: #16293B !important;
    border-color: rgba(255,255,255,.08) !important;
    box-shadow: none !important;
  }
  /* 选项：实色底，四角统一 */
  .poll-opt {
    background: rgba(62,143,201,.06) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(24,68,102,.06) !important;
  }
  .poll-opt.mine {
    background: rgba(62,143,201,.13) !important;
    border-color: rgba(62,143,201,.28) !important;
  }
  /* 进度条：不再用半透明覆盖层，改到底部一条线 */
  .poll-opt .poll-bar {
    position: absolute !important;
    left: 0 !important; bottom: 0 !important;
    height: 2.5px !important;
    border-radius: 2px !important;
    background: rgba(62,143,201,.45) !important;
    transition: width .3s ease;
  }
  .poll-opt.mine .poll-bar { background: rgba(62,143,201,.7) !important; }
  /* 投票卡：固定内边距与最小高度，刷新时不跳 */
  .poll-card { min-height: 96px; contain: layout; }
  .poll-opt { position: relative; overflow: hidden; }
  .poll-txt { position: relative; z-index: 1; }

  /* ============ 表情包：去白底 + 显圆角 ============ */
  .sticker-wrap {
    width: 108px !important;
    height: 108px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: transparent !important;   /* 去掉那块白底 */
    box-shadow: none !important;
    border: 0 !important;
    display: block !important;
  }
  .sticker-wrap img {
    width: 108px !important;
    height: 108px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  body.dark .sticker-wrap { background: transparent !important; }
  /* 表情包气泡：不占边说，不留白 */
  .msg .bubble:has(.sticker-wrap),
  .msg.me .bubble:has(.sticker-wrap) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    line-height: 0 !important;
  }
  /* 图片元素自身不许有外边距/内边距 */
  .sticker-wrap img { margin: 0 !important; padding: 0 !important; }

  /* ============ 表情包：按图片实际比例，不留空白 ============ */
  .sticker-wrap {
    width: auto !important;
    height: auto !important;
    max-width: 108px !important;
    max-height: 108px !important;
    min-width: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: transparent !important;
    display: inline-block !important;
    line-height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .sticker-wrap img {
    width: auto !important;
    height: auto !important;
    max-width: 108px !important;
    max-height: 108px !important;
    min-width: 0 !important;
    object-fit: initial !important;
    display: block !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* 表情气泡：紧贴，不留空 */
  .msg .bubble:has(.sticker-wrap),
  .msg.me .bubble:has(.sticker-wrap) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 6px !important;
    line-height: 0 !important;
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
  }
  /* 表情消息整体：垂直留一点呼吸 */
  .msg:has(.sticker-wrap) { margin: 6px 0 !important; align-items: flex-start; }
  /* 启动遮罩 */
  #bootMask {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(165deg, #EAF6FF 0%, #D3E9FA 55%, #BEDFF5 100%);
    transition: opacity .24s ease;
  }
  #bootMask.out { opacity: 0; pointer-events: none; }
  .bm-logo {
    width: 76px; height: 76px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; color: #fff;
    background: linear-gradient(150deg, #8FD0F2, #3E8FC9);
    box-shadow: 0 12px 30px rgba(62,143,201,.28);
  }
  .bm-name {
    margin-top: 16px; font-size: 17px; font-weight: 800;
    color: #12374E; letter-spacing: 3px;
  }
  .bm-bar {
    margin-top: 22px; width: 84px; height: 3px; border-radius: 2px;
    background: rgba(62,143,201,.16); overflow: hidden;
  }
  .bm-bar i {
    display: block; width: 40%; height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, #8FD0F2, #3E8FC9);
    animation: bmRun 1s ease-in-out infinite;
  }
  @keyframes bmRun {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
  }
  body.dark #bootMask { background: linear-gradient(165deg, #0A1723 0%, #0C2130 100%); }
  body.dark .bm-name { color: #D6E8F5; }

  /* ==================== 通讯录：紧凑 + 精致 ==================== */
  /* 分组标题：更轻更小 */
  .conv-group, .ft-title, .contacts-group-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--c-text-3) !important;
    letter-spacing: .8px !important;
    padding: 12px 20px 5px !important;
    margin: 0 !important;
  }
  /* 联系人行：整体收窄 */
  .row {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    margin-bottom: 4px !important;
  }
  #content .row + .row { margin-top: 0 !important; }
  /* 头像小一点、名字紧凑 */
  .row .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    margin-right: 11px !important;
  }
  .row .name {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }
  .row .last {
    font-size: 12px !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
  }
  /* 分组之间留一点，组内不要散 */
  .conv-group + .row { margin-top: 2px !important; }
  /* 首屏顶部留白 */
  #content > :first-child { margin-top: 6px !important; }
  /* 字母索引（如果有） */
  .alpha-bar, .letter-bar { font-size: 10px !important; gap: 1px !important; }
  /* 群聊发送人名字 */
  .msg-col {
    display: flex; flex-direction: column; align-items: flex-start;
    max-width: 74%; min-width: 0;
  }
  .msg.me .msg-col { align-items: flex-end; }
  .msg-sender {
    font-size: 11px;
    color: var(--c-text-3);
    margin: 0 0 3px 2px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* msg-col 里的气泡不再自己限宽 */
  .msg-col > .bubble { max-width: 100% !important; }

  /* 投票卡 / 红包这类宽内容：允许 msg-col 放宽 */
  .msg .msg-col:has(.poll-bubble) { max-width: 78% !important; }
  .msg .msg-col:has(.pkt-bubble) { max-width: 78% !important; }
  .msg-col > .bubble { max-width: 100% !important; min-width: 0 !important; }
  /* 投票卡内容不许被裁 */
  .poll-card { width: 100% !important; box-sizing: border-box !important; }
  .poll-opt { min-width: 0 !important; }
  .poll-txt { display: flex !important; justify-content: space-between; gap: 8px; }
  .poll-txt span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .poll-num { flex: none; white-space: nowrap; }

  /* 投票卡：给足宽度，选项文字优先 */
  .msg .msg-col:has(.poll-bubble) { max-width: 82% !important; }
  .poll-card { padding: 13px 14px !important; }
  .poll-opt { padding: 10px 12px !important; }
  .poll-txt {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
  }
  .poll-txt span:first-child {
    flex: 1 1 auto;
    min-width: 2.5em;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word;
    font-size: 13.5px;
  }
  .poll-num {
    flex: 0 0 auto;
    font-size: 11px !important;
    color: var(--c-text-3);
    white-space: nowrap;
  }
  .poll-q { font-size: 14.5px !important; margin-bottom: 10px !important; }
  .poll-foot { font-size: 11px !important; line-height: 1.6 !important; }

  /* 投票选项：文字一行，票数一行，不再挤 */
  .poll-txt {
    display: block !important;
    line-height: 1.4 !important;
  }
  .poll-txt span:first-child {
    display: block !important;
    font-size: 13.5px !important;
    color: var(--c-text) !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .poll-num {
    display: block !important;
    margin-top: 3px !important;
    font-size: 10.5px !important;
    color: var(--c-text-3) !important;
    white-space: nowrap !important;
  }
  .poll-opt { padding: 9px 12px !important; }
  .poll-card { padding: 13px !important; }

  /* 发送人名字：不要贴着头像 */
  .msg-sender {
    margin: 0 0 4px 3px !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: .2px;
  }
  /* 名字和头像之间拉开 */
  .msg .msg-col { margin-left: 2px; }
  .msg .av { margin-right: 2px; }
  /* 气泡与名字左对齐 */
  .msg-col > .bubble { margin-left: 0 !important; }

  /* ============ 修：气泡被挤成竖条 ============ */
  /* msg-col 不再限制宽度（它只负责纵向排列名字+气泡） */
  .msg .msg-col {
    max-width: none !important;
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }
  /* 气泡自己按内容宽度，最多占屏宽 72% */
  .msg-col > .bubble {
    max-width: 72vw !important;
    width: max-content !important;
    min-width: 44px !important;
    box-sizing: border-box !important;
  }
  /* 图片/视频/红包/投票这些不按内容宽度 */
  .msg-col > .bubble.img-bubble,
  .msg-col > .bubble.video-bubble,
  .msg-col > .bubble.pkt-bubble,
  .msg-col > .bubble.poll-bubble {
    width: auto !important;
    max-width: min(84vw, 320px) !important;
  }
  /* 文字气泡必须允许自然换行而不是被压窄 */
  .msg-col > .bubble:not(.img-bubble):not(.video-bubble):not(.pkt-bubble):not(.poll-bubble) {
    word-break: break-word;
  }

  /* ============ 强制：气泡按内容宽度，绝不被压缩 ============ */
  .msg { display: flex !important; align-items: flex-start; }
  .msg .msg-col {
    flex: 0 0 auto !important;      /* 不伸不缩，按内容来 */
    max-width: calc(100% - 60px) !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .msg:not(.me) .msg-col { align-items: flex-start !important; }
  .msg.me .msg-col { align-items: flex-end !important; }
  .msg-col > .bubble {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
  /* 文字气泡：宁可换行也不缩字 */
  .msg-col > .bubble:not(.img-bubble):not(.video-bubble):not(.pkt-bubble):not(.poll-bubble) {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* ============ 根因修复：气泡宽度用 vw，不用 %（% 会和父级互相锁死） ============ */
  #msgs .msg .msg-col > .bubble {
    max-width: 70vw !important;
    width: auto !important;
    display: inline-block !important;
  }
  #msgs .msg .msg-col > .bubble.img-bubble,
  #msgs .msg .msg-col > .bubble.video-bubble,
  #msgs .msg .msg-col > .bubble.pkt-bubble,
  #msgs .msg .msg-col > .bubble.poll-bubble {
    max-width: 82vw !important;
  }
  #msgs .msg .msg-col { max-width: 88vw !important; }
  /* ==================== 我页面 v2 ==================== */

  /* 菜单行右侧值 */
  .me-card .line .r { font-size: 12px; color: var(--c-text-3); }

  /* 退出登录：独立按钮，不再是菜单行 */
  .me-logout {
    margin: 18px 0 0;
    height: 48px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    color: var(--c-red);
    background: var(--c-surface);
    border: 1px solid rgba(210,84,74,.18);
    box-shadow: 0 2px 8px rgba(16,52,74,.04);
  }
  .me-logout:active { transform: scale(.985); background: rgba(210,84,74,.06); }
  body.dark .me-logout { background: rgba(255,255,255,.05); border-color: rgba(210,84,74,.24); }

  /* 版本脚注 */
  .me-ver {
    text-align: center; font-size: 10.5px; color: var(--c-text-3);
    margin: 16px 0 4px; letter-spacing: .2px; opacity: .8;
  }

  /* 统计卡：可点 */
  .me-stats .stat { border-radius: 14px; transition: background .12s ease; }
  .me-stats .stat:active { background: rgba(62,143,201,.07); }
  /* 表情包管理 / 关于 */
  .stk-mgr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 6px; }
  .stk-mgr-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(62,143,201,.06); }
  .stk-mgr-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .stk-mgr-item b {
    position: absolute; top: 3px; right: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: 10px; font-weight: 400;
    display: flex; align-items: center; justify-content: center;
  }
  .about-box { text-align: center; padding: 6px 0 2px; }
  .about-logo {
    width: 62px; height: 62px; margin: 0 auto 10px;
    border-radius: 19px; display: flex; align-items: center; justify-content: center;
    font-size: 27px; font-weight: 800; color: #fff;
    background: linear-gradient(150deg, #8FD0F2, #3E8FC9);
    box-shadow: 0 8px 20px rgba(62,143,201,.24);
  }
  .about-name { font-size: 17px; font-weight: 800; color: var(--c-text); }
  .about-sub { font-size: 11.5px; color: var(--c-text-3); margin-top: 4px; }
  .about-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 2px; border-top: 1px solid var(--c-line);
    font-size: 12.5px; color: var(--c-text-2); text-align: left;
  }
  .about-row:first-of-type { margin-top: 14px; }
  .about-row b { color: var(--c-text); font-weight: 600; font-size: 12px; }

  /* 底部留白统一收窄（之前几处叠加到 100px+，滑到底空一大截） */
  .content,
  #app .content,
  #app #content {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
  /* 我页面末尾那段多余空白去掉 */
  #app .content > div[style*="height:26px"] { display: none !important; }

  /* 底部留白再收到 16px（导航是浮动的，内容贴边就行） */
  .content,
  #app .content,
  #app #content {
    padding-bottom: 16px !important;
  }
  /* 我页面末尾脚注下不要再留 */
  .me-ver { margin-bottom: 0 !important; }

  /* ============ 顶栏：彻底固定，不随滚动/切页乱动 ============ */
  .topbar {
    position: static !important;      /* 不用 sticky，sticky 在滚动容器里会跟着跑 */
    flex: 0 0 auto !important;
    height: calc(54px + env(safe-area-inset-top)) !important;
    padding-top: env(safe-area-inset-top) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
  /* 页面本身撑满、不滚动，只有内部列表滚 */
  #app, #chat {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* 内容区/消息区自己滚 */
  #app > .content, #app #content,
  #chat > .msgs, #chat #msgs {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  /* 顶栏内部不要有位移动画 */
  .topbar * { transform: none !important; }
  /* 聊天页顶部不要再被滚动带动 */
  #chat { position: fixed !important; inset: 0 !important; }
  #chat.hidden { display: none !important; }

  /* ============ 修：搜索框压住第一条会话 ============ */
  .conv-filter {
    position: relative !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    background: var(--c-bg-1) !important;
    padding: 8px 12px 6px !important;
    border-bottom: 1px solid transparent;
  }
  body.dark .conv-filter { background: var(--c-bg-1) !important; }
  .conv-filter.hidden { display: none !important; }
  /* 内容区从搜索框下面开始，不许负边距 */
  #app > .content {
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
  }
  /* 列表第一行不要贴边 */
  #app > .content > *:first-child { margin-top: 6px !important; }
  /* 手机浏览器地址栏收起时，用 dvh 保证高度正确 */
  #app {
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* ============ 聊天页：消息不许钻到顶栏底下 ============ */
  #chat > .topbar {
    background: var(--c-surface) !important;
    z-index: 20 !important;
    box-shadow: 0 1px 0 var(--c-line), 0 2px 10px rgba(16,52,74,.04) !important;
  }
  body.dark #chat > .topbar {
    background: var(--c-surface) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.08) !important;
  }
  #chat > .msgs {
    padding-top: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  /* 消息区顶部加一层与背景同色的遮罩，滚动时不会露出半截 */
  #chat > .msgs::before {
    content: ''; position: sticky; top: 0; display: block;
    height: 6px; margin: -10px 0 4px;
    background: linear-gradient(180deg, var(--c-bg-1), transparent);
    pointer-events: none; z-index: 3;
  }
  /* 第一条消息离顶栏再远一点 */
  #msgs > .msg:first-child, #msgs > .msgtime:first-child { margin-top: 2px !important; }
  /* 群公告条 / 顶栏下面不许有溢出 */
  #chat { overflow: hidden !important; }

  /* ============ 去掉顶栏下面那条白带 ============ */
  /* 1. 顶栏不再加阴影/伪元素分隔（那条白带就是它投出来的） */
  #chat > .topbar,
  .topbar {
    box-shadow: none !important;
    border-bottom: 0 !important;
  }
  .topbar::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    background: none !important;
  }
  /* 2. 消息区顶部的渐隐隐藏去掉（它就是那条白/浅色带） */
  #chat > .msgs::before,
  #msgs::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    margin: 0 !important;
  }
  /* 3. 消息区紧贴顶栏，只留 6px 呼吸 */
  #chat > .msgs, #msgs {
    padding-top: 6px !important;
    background: transparent !important;
  }
  /* 4. 顶栏底色与页面背景一致（不要纯白，否则有边） */
  #chat > .topbar { background: var(--c-bg-1) !important; }
  body.dark #chat > .topbar { background: var(--c-bg-1) !important; }
  /* 5. 顶栏下沿一条极淡的分隔线就够 */
  #chat > .topbar { border-bottom: 1px solid rgba(24,68,102,.06) !important; }
  body.dark #chat > .topbar { border-bottom: 1px solid rgba(255,255,255,.06) !important; }
  /* ============ 修：弹层遮罩残留 + 双 ¥ ============ */
  .pk-amt-wrap::before { content: none !important; display: none !important; }

  /* 遮罩本身只在弹层打开时出现 */

  /* 通讯录/列表在弹层关闭后必须恢复原色 */
  #app .content { background: transparent !important; }
  .pk-amt-wrap::before { content: none !important; display: none !important; }
  /* ============ 顶栏：最简，只保留下沿一条极细线 ============ */
  #chat > .topbar {
    background: var(--c-bg-1) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(24,68,102,.05) !important;
    padding-bottom: 0 !important;
  }
  body.dark #chat > .topbar {
    background: var(--c-bg-1) !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
  }
  #chat > .msgs { padding-top: 2px !important; }
  #chat > .msgs::before { display: none !important; content: none !important; }

  /* ============ 弹层底部双按钮：左右严格对称 ============ */
  .row2 {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  .row2 > button {
    flex: 1 1 0 !important;
    width: 0 !important;          /* 让 flex 平均分配 */
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }
  /* 弹层底部按钮区左右内距一致 */
  .sheet .box, .sheet-box {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }
  .row2 { margin-top: 14px !important; }
  /* 金额区、选项、输入框也跟着对齐 */
  .pk-amt-wrap, .pk-quick, .pk-chips, .pk-balance, .pk-note, .pk-remark {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .pk-quick { gap: 8px !important; }
  .pk-quick button { flex: 1 1 0 !important; min-width: 0 !important; }
  /* ==================== 收藏页 / 搜索页 ==================== */
  #favPage, #searchPage {
    z-index: 30 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  #favPage.hidden, #searchPage.hidden { display: none !important; }
  #favPage > .topbar, #searchPage > .topbar { flex: 0 0 auto !important; }
  #favContent, #spContent {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 4px 18px 24px !important;
    box-sizing: border-box !important;
  }

  /* 搜索页顶栏里的输入框 */
  #spInput {
    width: 100% !important;
    height: 38px !important;
    border-radius: 12px !important;
    border: 1px solid var(--c-line) !important;
    background: var(--c-bg-1) !important;
    padding: 0 13px !important;
    font-size: 14px !important;
    color: var(--c-text) !important;
    outline: 0;
    box-sizing: border-box;
  }
  #spInput:focus { border-color: rgba(62,143,201,.45) !important; background: var(--c-surface) !important; }
  body.dark #spInput { background: rgba(255,255,255,.06) !important; color: #E8F1F8 !important; }

  .sp-sec {
    font-size: 11px; font-weight: 700; color: var(--c-text-3);
    letter-spacing: .8px; margin: 16px 0 9px;
  }
  .sp-hint { font-size: 12px; color: var(--c-text-3); line-height: 1.7; }

  /* 收藏行：带删除按钮 */
  .fav-row {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 0 !important;
    border-top: 1px solid var(--c-line) !important;
  }
  .fav-row:active { background: rgba(62,143,201,.05); }
  .fav-ico {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px !important;
    background: linear-gradient(150deg, rgba(143,208,242,.24), rgba(143,208,242,.08)) !important;
  }
  .fav-body { flex: 1; min-width: 0; }
  .fav-t {
    font-size: 14px !important; line-height: 1.45;
    color: var(--c-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fav-m { font-size: 11px !important; color: var(--c-text-3) !important; margin-top: 4px !important; }
  .fav-del {
    flex: none; font-size: 11px; color: var(--c-red);
    padding: 4px 9px; border-radius: 8px;
    border: 1px solid rgba(210,84,74,.22);
  }
  .fav-del:active { background: rgba(210,84,74,.1); }

  /* ============ 顶栏高度：写死 52px，别用 calc + env（有的浏览器算不出来会把栏撑高） ============ */
  .topbar,
  #app > .topbar,
  #chat > .topbar,
  #favPage > .topbar,
  #searchPage > .topbar {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }
  /* 只有真机有刘海时才补安全区，补的时候用 padding 而不是改高度 */
  @supports (padding-top: env(safe-area-inset-top)) {
    .topbar {
      height: calc(52px + env(safe-area-inset-top, 0px)) !important;
      max-height: none !important;
      padding-top: env(safe-area-inset-top, 0px) !important;
    }
  }
  /* 顶栏里的返回/加号别把高度撑开 */
  .topbar > .ic, .topbar .title {
    height: 52px !important;
    line-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .topbar .title { justify-content: center !important; }
  /* 页面里所有顶栏都贴顶 */
  .page > .topbar:first-child { margin-top: 0 !important; }

  /* ============ 切聊天：不给"列表露一帧"的机会 ============ */
  /* 1. 聊天页进入不做淡入，直接出现（0 延迟） */
  #chat.chat-in, #chat.chat-out {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* 2. 聊天页背景必须不透明，盖住下面所有东西 */
  #chat {
    background: linear-gradient(180deg, #F3F9FD 0%, #E6F3FC 100%) !important;
    z-index: 40 !important;
  }
  body.dark #chat { background: linear-gradient(180deg, #0A1723 0%, #0C2130 100%) !important; }
  /* 3. 打开聊天时列表整层立刻隐藏（不只是搜索框） */
  #chat:not(.hidden) ~ #app .content,
  body.chat-on #app .content {
    visibility: hidden !important;
  }
  /* 4. 消息区先给出骨架高度，避免"空白帧" */
  #msgs { min-height: 200px; }
  /* ============ 表情面板：高度固定，多次打开不缩水 ============ */
  #emojiPanel {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .stk-row {
    min-height: 46px;
    align-content: start;
  }
  .stk-item {
    width: 100% !important;
    aspect-ratio: 1 !important;
    object-fit: contain !important;
    border-radius: 10px;
    background: rgba(74,159,216,.08);
    display: block;
  }
  /* 表情区里 emoji 行高度固定 */
  .emoji-row { min-height: 40px; }
  /* ============ 未读跳转徽标（右上） ============ */
  .unread-jump {
    position: absolute;
    right: 14px;
    top: 64px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px 0 12px;
    border-radius: 17px;
    background: rgba(62,143,201,.94);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(62,143,201,.34);
    cursor: pointer;
    animation: ujIn .22s ease forwards;
    backdrop-filter: blur(6px);
  }
  .unread-jump.hidden { display: none !important; }
  .unread-jump:active { transform: scale(.95); }
  .uj-n { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .uj-t { font-weight: 500; opacity: .95; }
  .uj-arrow { font-size: 13px; margin-left: 1px; }
  @keyframes ujIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  body.dark .unread-jump { background: rgba(46,110,150,.95); }

  /* ============ 关键修复：.hidden 必须永远压过布局用的 display:flex ============ */
  .page.hidden,
  #app.hidden,
  #chat.hidden,
  #login.hidden,
  #moments.hidden,
  #favPage.hidden,
  #searchPage.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* 未登录时，主界面/聊天页一律不显示 */
  body:not(.logged-in) #app,
  body:not(.logged-in) #chat,
  body:not(.logged-in) #moments,
  body:not(.logged-in) #favPage,
  body:not(.logged-in) #searchPage {
    display: none !important;
  }
  /* 未登录时登录页必须能显示 */
  body:not(.logged-in) #login { display: flex !important; }
  /* ============ 微信式长按小卡片 ============ */
  .msg-pop {
    position: fixed;
    z-index: 300;
    min-width: 128px;
    max-width: 200px;
    background: rgba(38,52,66,.96);
    border-radius: 12px;
    padding: 4px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    animation: mpIn .14s ease forwards;
    overflow: hidden;
    backdrop-filter: blur(10px);
  }
  body.dark .msg-pop { background: rgba(22,36,50,.97); }
  @keyframes mpIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
  .mp-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #F2F7FB;
    white-space: nowrap;
    transition: background .1s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mp-item:active { background: rgba(255,255,255,.14); }
  .mp-item.danger { color: #FF7B6B; text-align: left; }
  .mp-item + .mp-item { border-top: 1px solid rgba(255,255,255,.07); }
  /* 我页面 · 表情包管理 */
  .stk-mgr {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin: 4px 0 2px !important;
  }
  .stk-mgr-item {
    position: relative;
    aspect-ratio: 1 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    background: rgba(62,143,201,.07) !important;
    display: flex; align-items: center; justify-content: center;
  }
  .stk-mgr-item img {
    width: 100% !important; height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .stk-mgr-item b {
    position: absolute; top: 4px; right: 4px;
    width: 19px; height: 19px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: 11px; font-weight: 400; line-height: 19px; text-align: center;
  }
  .stk-mgr-item b:active { background: var(--c-red); }
  /* 邀请码找到的群卡片 */
  .invite-find {
    display: flex; align-items: center; gap: 12px;
    margin: 10px 12px 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(143,208,242,.20), rgba(143,208,242,.06));
    border: 1px solid rgba(62,143,201,.20);
    box-shadow: 0 4px 14px rgba(62,143,201,.12);
    flex: none;
  }
  .if-ico {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: linear-gradient(150deg, #9FD7F3, #4FA8D8);
    box-shadow: 0 3px 10px rgba(62,143,201,.24);
  }
  .if-body { flex: 1; min-width: 0; }
  .if-name { font-size: 14.5px; font-weight: 700; color: var(--c-text); }
  .if-sub { font-size: 11.5px; color: var(--c-text-3); margin-top: 3px; }
  .if-btn {
    flex: none;
    height: 32px; padding: 0 16px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand));
    box-shadow: 0 3px 10px rgba(62,143,201,.26);
  }
  .if-btn:active { transform: scale(.95); }
  body.dark .invite-find { background: rgba(79,168,216,.12); border-color: rgba(79,168,216,.22); }
  /* 私聊已读状态 */
  .read-state {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10.5px;
    color: var(--c-text-3);
    margin: 4px 2px 0;
    letter-spacing: .2px;
    transition: color .2s ease;
  }
  .read-state .rs-ico { width: 11px; height: 11px; flex: none; opacity: .85; }
  .read-state.on { color: var(--c-brand); font-weight: 600; }
  .read-state.on .rs-ico { opacity: 1; }
  body.dark .read-state { color: #6E8598; }
  body.dark .read-state.on { color: #7FC5EA; }
  /* 同步提示角标（可选，不显示） */
  /* ==================== 外观面板 · v2 ==================== */
  .ap-sec { margin: 6px 0 18px; }
  .ap-title {
    font-size: 11.5px; font-weight: 700; letter-spacing: .8px;
    color: var(--c-text-3); margin: 0 0 10px 2px;
  }
  /* 背景选择：三个色卡 */
  .ap-bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ap-bg {
    border: 2px solid transparent;
    background: transparent;
    border-radius: 14px;
    padding: 0;
    display: flex; flex-direction: column; align-items: center;
    overflow: hidden;
    transition: border-color .15s ease, transform .12s ease;
  }
  .ap-bg:active { transform: scale(.96); }
  .ap-bg.on { border-color: var(--c-brand); }
  .ap-bg-swatch {
    width: 100%; height: 62px; border-radius: 12px;
    display: block; margin-bottom: 7px;
    box-shadow: inset 0 0 0 1px rgba(24,68,102,.07);
  }
  .sw-default { background: linear-gradient(160deg, #F3F9FD, #DCEDFA); }
  .sw-paper   { background: linear-gradient(160deg, #FDF8EE, #F0E6D2); }
  .sw-night   { background: linear-gradient(160deg, #16324A, #0A1B28); }
  .ap-bg-name {
    font-size: 12px; font-weight: 600; color: var(--c-text-2);
    padding-bottom: 7px;
  }
  .ap-bg.on .ap-bg-name { color: var(--c-brand); }

  /* 小按钮 */
  .ap-inline { display: flex; gap: 9px; margin-top: 10px; }
  .ap-chip {
    flex: 1; height: 38px; border-radius: 12px;
    font-size: 13px; font-weight: 600;
    background: rgba(62,143,201,.10);
    color: var(--c-brand-deep);
    border: 1px solid rgba(62,143,201,.18);
  }
  .ap-chip.ghost {
    background: transparent; color: var(--c-text-3);
    border: 1px solid var(--c-line);
  }
  .ap-chip:active { transform: scale(.97); }

  /* 字号：A 大小直观展示 */
  .ap-fs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
  .ap-fs {
    height: 62px; border-radius: 13px;
    background: var(--c-bg-1);
    border: 2px solid transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    transition: border-color .15s ease, background .15s ease;
  }
  .ap-fs b { color: var(--c-text); font-weight: 800; line-height: 1; }
  .ap-fs span { font-size: 10.5px; color: var(--c-text-3); }
  .ap-fs.on {
    border-color: var(--c-brand);
    background: rgba(62,143,201,.08);
  }
  .ap-fs.on b, .ap-fs.on span { color: var(--c-brand-deep); }

  .ap-preview {
    margin-top: 10px; padding: 12px 14px;
    border-radius: 12px;
    background: var(--c-bg-1);
    border: 1px dashed var(--c-line-strong);
    font-size: 14px; color: var(--c-text-2);
    text-align: center;
  }

  /* 开关行 */
  .ap-switch-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--c-line);
  }
  .ap-sw-label { flex: 1; min-width: 0; }
  .ap-sw-label b { display: block; font-size: 14px; color: var(--c-text); font-weight: 600; }
  .ap-sw-label span { display: block; font-size: 11px; color: var(--c-text-3); margin-top: 3px; line-height: 1.4; }
  .ap-seg {
    flex: none; display: flex; gap: 3px; padding: 3px;
    background: var(--c-bg-1);
    border-radius: 10px;
    border: 1px solid var(--c-line);
  }
  .ap-seg button {
    height: 30px; padding: 0 14px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
    background: transparent; color: var(--c-text-3);
    border: 0;
    transition: all .15s ease;
  }
  .ap-seg button.on {
    background: var(--c-surface);
    color: var(--c-brand-deep);
    box-shadow: 0 1px 4px rgba(16,52,74,.10);
  }
  .ap-foot { margin-top: 6px !important; }
  .ap-foot button { height: 48px !important; font-size: 15px !important; }

  /* 加密说明卡 */
  .enc-info {
    border-radius: 13px;
    background: linear-gradient(150deg, rgba(143,208,242,.14), rgba(143,208,242,.04));
    border: 1px solid rgba(62,143,201,.14);
    padding: 12px 13px;
  }
  .enc-line { font-size: 12px; line-height: 1.7; color: var(--c-text-2); }
  .enc-line.dim { color: var(--c-text-3); font-size: 11.5px; }
  body.dark .ap-fs, body.dark .ap-preview, body.dark .ap-seg { background: rgba(255,255,255,.05); }
  body.dark .ap-seg button.on { background: rgba(79,168,216,.22); color: #B9E2F6; }
  /* 我页面：图标配色 */
  .me-card .line .lico.c-blue   { background: linear-gradient(150deg, #D9EEFB, #A8D9F5) !important; color: #2E7BAB !important; }
  .me-card .line .lico.c-teal   { background: linear-gradient(150deg, #D3F0EC, #9ED9D0) !important; color: #1F7A6B !important; }
  .me-card .line .lico.c-gold   { background: linear-gradient(150deg, #FCEDC6, #F0CE85) !important; color: #9A6A12 !important; }
  .me-card .line .lico.c-pink   { background: linear-gradient(150deg, #FBDDE6, #F2AFC4) !important; color: #A63A5E !important; }
  .me-card .line .lico.c-amber  { background: linear-gradient(150deg, #FDEBCF, #F5CE8E) !important; color: #9C6714 !important; }
  .me-card .line .lico.c-violet { background: linear-gradient(150deg, #E4DCF9, #BFB0EC) !important; color: #57479E !important; }
  .me-card .line .lico.c-green  { background: linear-gradient(150deg, #D6F1DF, #A2DCB8) !important; color: #22784A !important; }
  .me-card .line .lico.c-indigo { background: linear-gradient(150deg, #DBE1F9, #AAB9EC) !important; color: #3B4F9E !important; }
  .me-card .line .lico.c-gray   { background: linear-gradient(150deg, #E7ECF1, #C6D2DC) !important; color: #5C7386 !important; }
  .me-card .line .lico.c-slate  { background: linear-gradient(150deg, #E2EAF2, #BCCBDA) !important; color: #47607A !important; }
  body.dark .me-card .line .lico { filter: brightness(.82) saturate(.9); }

  /* 搜索页范围说明 */
  .sp-scope {
    border-radius: 13px;
    background: var(--c-bg-1);
    border: 1px solid var(--c-line);
    padding: 6px 13px;
  }
  .sp-scope-item {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px; color: var(--c-text-2);
    padding: 9px 0;
    line-height: 1.4;
  }
  .sp-scope-item + .sp-scope-item { border-top: 1px solid var(--c-line); }
  .sp-dot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
  }
  .sp-dot.blue { background: #4FA8D8; }
  .sp-dot.green { background: #3AAE79; }
  .sp-dot.gray { background: #9AAEBD; }
  body.dark .sp-scope { background: rgba(255,255,255,.05); }

  /* ==================== 朋友圈 v2 ==================== */
  /* 卡片：更大圆角、更松的呼吸感 */
  .mo-item {
    background: var(--c-surface) !important;
    border-radius: 18px !important;
    padding: 15px 15px 13px !important;
    margin: 0 12px 11px !important;
    box-shadow: 0 2px 10px rgba(16,52,74,.06) !important;
    border: 1px solid rgba(24,68,102,.05) !important;
  }
  body.dark .mo-item { background: #12283C !important; border-color: rgba(255,255,255,.06) !important; }

  /* 头像：大一点、圆润 */
  .mo-av, .mo-item .avatar {
    width: 44px !important; height: 44px !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 10px rgba(16,52,74,.10) !important;
  }
  /* 昵称 */
  .mo-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--c-text) !important;
    letter-spacing: .2px;
  }
  /* 正文：更松的行距 */
  .mo-text {
    font-size: 14.5px !important;
    line-height: 1.62 !important;
    color: var(--c-text) !important;
    margin-top: 7px !important;
  }
  /* 图片：圆角 + 阴影 */
  .mo-img img, .mo-item img.mo-pic {
    border-radius: 13px !important;
    box-shadow: 0 3px 12px rgba(16,52,74,.10) !important;
    max-width: 100% !important;
  }

  /* 底部：时间 + 操作，做成一条浅色栏 */
  .mo-foot, .mo-acts {
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--c-line) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .mo-meta, .mo-time {
    flex: 1 !important;
    font-size: 11.5px !important;
    color: var(--c-text-3) !important;
    letter-spacing: .2px;
  }
  /* 操作按钮：药丸状 */
  .mo-act, .mo-do {
    padding: 5px 12px !important;
    border-radius: 13px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--c-brand-deep) !important;
    background: transparent !important;
    transition: background .12s ease, transform .1s ease;
  }
  .mo-act:active, .mo-do:active { background: rgba(62,143,201,.10) !important; transform: scale(.95); }
  .mo-act.on { color: #E0584C !important; }
  .mo-act.danger { color: var(--c-red) !important; }

  /* 点赞/评论区 */
  .mo-likes {
    margin-top: 9px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    background: rgba(62,143,201,.07) !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
  }
  .mo-comments {
    margin-top: 8px !important;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    background: var(--c-bg-1) !important;
    font-size: 12.5px !important;
    line-height: 1.7 !important;
  }
  .mo-cmt { padding: 2px 0; }
  .mo-cmt b { color: var(--c-brand-deep) !important; font-weight: 700; }

  /* 发布按钮：圆形渐变，带投影 */
  #moPost {
    width: 38px !important; height: 38px !important;
    border-radius: 50% !important;
    background: linear-gradient(150deg, var(--c-brand-2), var(--c-brand)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(62,143,201,.32) !important;
    font-size: 19px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  #moPost:active { transform: scale(.9); }

  /* 顶栏 */
  #moments > .topbar {
    background: var(--c-bg-1) !important;
    border-bottom: 1px solid rgba(24,68,102,.05) !important;
    box-shadow: none !important;
  }
  /* 列表容器 */
  #moments .mo-list, #moments > .content {
    padding-top: 10px !important;
    padding-bottom: 26px !important;
  }
  /* 空态 */
  #moments .empty { padding: 70px 24px !important; }

  /* 朋友圈底部：时间与操作同一行，横线贯穿 */
  .mo-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--c-line) !important;
    flex-wrap: nowrap !important;
  }
  .mo-meta > span:first-child {
    flex: 0 0 auto !important;
    font-size: 11.5px !important;
    color: var(--c-text-3) !important;
    letter-spacing: .2px;
  }
  .mo-acts {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
  }
  .mo-act {
    padding: 5px 11px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--c-brand-deep) !important;
    white-space: nowrap !important;
    transition: background .12s ease;
  }
  .mo-act:active { background: rgba(62,143,201,.12) !important; }
  .mo-act.on { color: #E0584C !important; }
  .mo-act.danger { color: var(--c-red) !important; }
  /* 覆盖我上一轮加的 mo-foot 规则（结构里没这个类） */
  .mo-foot, .mo-acts { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }

  /* ==================== SVG 图标统一样式 ==================== */
  .ico-svg {
    width: 1.15em; height: 1.15em;
    display: inline-block;
    vertical-align: -0.16em;
    flex: none;
  }
  .ico-svg.h-ico { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
  /* 顶栏/输入栏里的大图标 */
  #btnEmoji .ico-svg { width: 22px; height: 22px; vertical-align: middle; }
  #spClear .ico-svg, .nb-x .ico-svg, .reply-x .ico-svg, .vf-close .ico-svg {
    width: 14px; height: 14px; vertical-align: middle;
  }
  .nb-ico .ico-svg { width: 15px; height: 15px; }
  .mute-ico .ico-svg { width: 13px; height: 13px; }
  .e2e-tag .ico-svg { width: 11px; height: 11px; }
  .voice .ico-svg { width: 15px; height: 15px; margin-right: 4px; }
  .mo-heart .ico-svg { width: 13px; height: 13px; }
  .poll-q .ico-svg, .poll-txt .ico-svg { width: 14px; height: 14px; }
  .pd-ico .ico-svg { width: 26px; height: 26px; }
  .if-ico .ico-svg { width: 20px; height: 20px; }
  .fav-ico .ico-svg { width: 18px; height: 18px; }
  .empty-ico .ico-svg { width: 38px; height: 38px; stroke-width: 1.4; }
  .chat-empty-ico .ico-svg { width: 40px; height: 40px; stroke-width: 1.4; color: var(--c-text-3); }
  .gm-notice .ico-svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
  .gm-invite .ico-svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
  /* 更多功能格子里的大图标 */
  .sg-ico .ico-svg { width: 21px; height: 21px; stroke-width: 1.9; }
  /* emoji 面板里的笑脸键 */
  #stkAdd .ico-svg { width: 12px; height: 12px; }

  /* ============ 快捷备注药丸：四个字一行放得下 ============ */
  .pk-chips {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 10px !important;
  }
  .pk-chips button {
    height: 34px !important;
    padding: 0 4px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;      /* 关键：绝不折行 */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: 1px solid rgba(62,143,201,.20) !important;
    background: rgba(62,143,201,.06) !important;
    color: var(--c-brand-deep) !important;
    letter-spacing: -.2px;
  }
  .pk-chips button:active {
    background: rgba(62,143,201,.18) !important;
    transform: scale(.96);
  }
  /* 屏幕上特别窄时，允许缩字而不是折行 */
  @media (max-width: 340px) {
    .pk-chips button { font-size: 11px !important; }
  }
  body.dark .pk-chips button {
    background: rgba(79,168,216,.10) !important;
    border-color: rgba(79,168,216,.22) !important;
    color: #9FD3F0 !important;
  }

  /* ==================== 我页面 · 统计三格 v2 ==================== */
  .me-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin: 13px 0 4px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .me-stats .stat {
    background: var(--c-surface) !important;
    border-radius: 16px !important;
    padding: 13px 8px 11px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px;
    box-shadow: 0 2px 10px rgba(16,52,74,.06) !important;
    border: 1px solid rgba(24,68,102,.05) !important;
    transition: transform .12s ease, box-shadow .12s ease;
    position: relative;
    overflow: hidden;
  }
  .me-stats .stat:active {
    transform: scale(.97);
    box-shadow: 0 1px 5px rgba(16,52,74,.10) !important;
  }
  /* 图标：小圆角方块 */
  .me-stats .stat-ico {
    width: 30px; height: 30px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 3px;
  }
  .me-stats .stat-ico .ico-svg { width: 16px; height: 16px; }
  .me-stats .stat-ico.s-blue  { background: linear-gradient(150deg, #D9EEFB, #A8D9F5); color: #2E7BAB; }
  .me-stats .stat-ico.s-green { background: linear-gradient(150deg, #D6F1DF, #A2DCB8); color: #22784A; }
  .me-stats .stat-ico.s-gold  { background: linear-gradient(150deg, #FCEDC6, #F0CE85); color: #9A6A12; }

  /* 数字 */
  .me-stats .stat-num, .me-stats .num {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--c-text) !important;
    letter-spacing: -.5px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .me-stats .stat-label, .me-stats .label {
    font-size: 10.5px !important;
    color: var(--c-text-3) !important;
    font-weight: 600;
    letter-spacing: .4px;
    margin-top: 0 !important;
  }
  /* 余额那格数字稍小一点（金额长） */
  #statBalance { font-size: 16.5px !important; color: var(--c-brand-deep) !important; }

  body.dark .me-stats .stat {
    background: #12283C !important;
    border-color: rgba(255,255,255,.06) !important;
    box-shadow: none !important;
  }
  body.dark .me-stats .stat-ico { filter: brightness(.82) saturate(.9); }
  body.dark #statBalance { color: #7FC5EA !important; }
  /* ==================== 站点 Logo（用清酒头像） ==================== */
  #login .logo.logo-img,
  #bootMask .bm-logo.bm-logo-img,
  .about-logo.about-logo-img {
    background: url('/chaosheng/web/logo.jpg') center/cover no-repeat !important;
    background-image: url('/chaosheng/web/logo.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(62,143,201,.24);
    color: transparent !important;
    font-size: 0 !important;
  }
  .logo-img { width: 76px !important; height: 76px !important; }
  .bm-logo-img { width: 76px !important; height: 76px !important; }
  .about-logo-img { width: 62px !important; height: 62px !important; border-radius: 19px; }
  /* 头像统一圆角，logo 图也是 */
  .av, .avatar, .me-avatar, .mo-av, .gm-av {
    background-size: cover !important;
    background-position: center !important;
  }

  /* ==================== 发起弹层 ==================== */
  .st-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 12px;
    border-radius: 16px;
    background: var(--c-bg-1);
    border: 1px solid var(--c-line);
    margin-bottom: 10px;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  }
  .st-card:active {
    transform: scale(.98);
    background: rgba(62,143,201,.09);
    box-shadow: 0 2px 10px rgba(16,52,74,.08);
  }
  .st-ico {
    width: 44px; height: 44px; border-radius: 14px; flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .st-ico .ico-svg { width: 21px; height: 21px; }
  .st-ico.c-blue  { background: linear-gradient(150deg, #D9EEFB, #A8D9F5); color: #2E7BAB; }
  .st-ico.c-green { background: linear-gradient(150deg, #D6F1DF, #A2DCB8); color: #22784A; }
  .st-ico.c-gold  { background: linear-gradient(150deg, #FCEDC6, #F0CE85); color: #9A6A12; }
  .st-body { flex: 1; min-width: 0; }
  .st-t { font-size: 15px; font-weight: 700; color: var(--c-text); letter-spacing: .2px; }
  .st-d { font-size: 11.5px; color: var(--c-text-3); margin-top: 4px; line-height: 1.4; }
  .st-arrow { flex: none; font-size: 19px; color: var(--c-text-3); opacity: .6; }
  .st-cancel {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border-radius: 15px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-text-2);
    background: transparent;
    border: 1px solid var(--c-line);
  }
  .st-cancel:active { background: rgba(62,143,201,.08); }
  body.dark .st-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
  body.dark .st-ico { filter: brightness(.82) saturate(.9); }
  /* ==================== 撤回 / 系统提示 ==================== */
  .msg-sys {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
  }
  .sys-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 12px;
    background: rgba(24,68,102,.055);
    color: var(--c-text-3);
    font-size: 11.5px;
    line-height: 1.4;
    letter-spacing: .2px;
    max-width: 78%;
  }
  .sys-tag .ico-svg {
    width: 11px; height: 11px;
    stroke-width: 2.2;
    opacity: .8;
    flex: none;
  }
  body.dark .sys-tag { background: rgba(255,255,255,.07); color: #8FA6B6; }

  /* 旧样式兜底 */
  .recalled {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 12px;
    background: rgba(24,68,102,.055);
    color: var(--c-text-3);
    font-size: 11.5px;
    font-style: normal;
    margin: 10px auto;
  }
  /* 收藏里的缩略图 */
  .fav-thumb {
    width: 54px; height: 54px; border-radius: 12px; flex: none;
    overflow: hidden;
    background: rgba(62,143,201,.08);
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .fav-thumb img,
  .fav-thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .fav-thumb.vid { background: #0B1F2D; }
  .fav-play {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(10,22,34,.55);
    border: 1px solid rgba(255,255,255,.7);
    color: #fff; font-size: 9px;
    display: flex; align-items: center; justify-content: center;
    padding-left: 1px;
  }
  .fav-ico { width: 54px; height: 54px; border-radius: 12px; flex: none; }
  .fav-ico .ico-svg { width: 22px; height: 22px; }
  .fav-row { align-items: center !important; }

  /* ==================== 我的收藏 v2 ==================== */
  #favContent {
    padding: 10px 13px 28px !important;
  }
  /* 每条变独立卡片 */
  .fav-row {
    display: flex !important;
    gap: 13px !important;
    align-items: center !important;
    padding: 13px 13px !important;
    margin-bottom: 10px !important;
    border-radius: 17px !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.05) !important;
    box-shadow: 0 2px 10px rgba(16,52,74,.05) !important;
    border-top: 0 !important;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .fav-row:active {
    transform: scale(.985);
    box-shadow: 0 1px 4px rgba(16,52,74,.10) !important;
    background: rgba(62,143,201,.04) !important;
  }
  /* 缩略图 */
  .fav-thumb, .fav-ico {
    width: 58px !important;
    height: 58px !important;
    border-radius: 14px !important;
    flex: none !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16,52,74,.08);
  }
  .fav-ico {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(150deg, rgba(143,208,242,.22), rgba(143,208,242,.07)) !important;
    color: var(--c-brand-deep) !important;
  }
  .fav-ico .ico-svg { width: 24px !important; height: 24px !important; }
  /* 文字区 */
  .fav-body { flex: 1 !important; min-width: 0 !important; }
  .fav-t {
    font-size: 14.5px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: var(--c-text) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fav-m {
    font-size: 11px !important;
    color: var(--c-text-3) !important;
    margin-top: 6px !important;
    letter-spacing: .1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 删除：图标按钮 */
  .fav-del {
    flex: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(210,84,74,.20) !important;
    background: transparent !important;
    color: var(--c-red) !important;
    position: relative;
  }
  .fav-del::after {
    content: '✕';
    font-size: 12px;
    line-height: 1;
    display: block;
  }
  .fav-del:active { background: rgba(210,84,74,.12) !important; transform: scale(.92); }
  /* 顶部计数 */
  #favCount {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--c-brand-deep) !important;
  }
  body.dark .fav-row { background: #12283C !important; border-color: rgba(255,255,255,.06) !important; box-shadow: none !important; }
  body.dark .fav-ico { background: rgba(79,168,216,.14) !important; color: #9FD3F0 !important; }

  /* ============ 修：图片下方露出黑色的一块 ============ */
  /* 1. 容器高度跟着图片走，不留空 */
  .img-wrap {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 300px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(16,52,74,.10) !important;
  }
  /* 2. 图片本体：块级、按比例、不带底色 */
  .img-wrap img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 300px !important;
    object-fit: initial !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    vertical-align: top !important;
  }
  /* 3. 占位骨架也不留黑底 */
  .img-wrap .img-ph {
    background: rgba(62,143,201,.08) !important;
    border-radius: 14px !important;
    min-height: 0 !important;
  }
  /* 4. 图片消息的外层气泡也不带底色 */
  .msg .bubble.img-bubble {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 0 !important;
  }
  /* 5. 表情包同理 */
  .sticker-wrap, .sticker-wrap img {
    background: transparent !important;
    border-radius: 12px !important;
  }
  /* 6. 视频容器底部也不留黑边 */
  .video-wrap, .video-bubble { line-height: 0 !important; }

  /* ============ 图片消息：去掉深色投影（那截"黑影"就是它） ============ */
  .msg .bubble.img-bubble,
  .msg .bubble.img-bubble .img-wrap,
  .msg .bubble.img-bubble img {
    box-shadow: none !important;
  }
  /* 图片给一条极淡的描边替代阴影，边界还在但不脏 */
  .msg .bubble.img-bubble .img-wrap {
    outline: 1px solid rgba(24,68,102,.07);
    outline-offset: -1px;
  }
  body.dark .msg .bubble.img-bubble .img-wrap {
    outline-color: rgba(255,255,255,.08);
  }
  /* 收藏页的缩略图同理，别留深色投影 */
  .fav-thumb { box-shadow: none !important; outline: 1px solid rgba(24,68,102,.06); outline-offset: -1px; }
  /* 视频封面也别带重投影 */
  .video-wrap, .video-bubble { box-shadow: none !important; }
  .video-wrap { outline: 1px solid rgba(24,68,102,.07); outline-offset: -1px; }

  /* ============ 去掉浏览器自动填充的蓝/黄框 ============ */
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #12374E !important;
    caret-color: #3E8FC9 !important;
    transition: background-color 999999s ease-in-out 0s !important;
    border-color: rgba(62,143,201,.22) !important;
    outline: none !important;
    /* 有些浏览器用这个属性画高亮框 */
    -webkit-background-clip: padding-box !important;
  }
  /* 登录页具体的字段背景是半透明白，用同色盖住 */
  #login .field input:-webkit-autofill,
  #login .field input:-webkit-autofill:hover,
  #login .field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.92) inset !important;
    -webkit-text-fill-color: #12374E !important;
  }
  /* 深色模式 */
  body.dark input:-webkit-autofill,
  body.dark input:-webkit-autofill:hover,
  body.dark input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #16304A inset !important;
    -webkit-text-fill-color: #E8F1F8 !important;
  }
  /* 输入框获得焦点时也不要描边 */
  input:focus,
  textarea:focus,
  select:focus {
    outline: none !important;
    box-shadow: none;
  }
  /* 只保留我们自己定义的聚焦效果 */
  .field input:focus { box-shadow: none !important; }
  /* Safari / iOS 的内阴影高亮 */
  input::-webkit-contacts-auto-fill-button,
  input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0; width: 0; margin: 0;
  }

  /* ==================== 深色模式：全面补漏 ==================== */
  body.dark { background: #0A1723 !important; }

  /* 顶栏：所有页面统一深色底 + 浅色字 */
  body.dark .topbar,
  body.dark #app > .topbar,
  body.dark #chat > .topbar,
  body.dark #favPage > .topbar,
  body.dark #searchPage > .topbar,
  body.dark #moments > .topbar {
    background: #0C2130 !important;
    color: #E8F1F8 !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: none !important;
  }
  body.dark .topbar .title { color: #E8F1F8 !important; }
  body.dark .topbar .ic { color: #CFE3F1 !important; }
  body.dark .topbar .sub, body.dark .topbar .title small { color: #7FDCA9 !important; }
  body.dark .topbar .sub.offline { color: #7A93A6 !important; }

  /* 登录页 / 启动页 */
  body.dark #login { background: linear-gradient(165deg,#0A1723,#0C2130 60%,#0E2A3D) !important; }
  body.dark #login h1 { color: #E8F1F8 !important; }
  body.dark #login .sub { color: #8FA6B6 !important; }
  body.dark .login-tabs { background: rgba(255,255,255,.06) !important; }
  body.dark .login-tab { color: #9FB3C6 !important; }
  body.dark .login-tab.on { color: #fff !important; }
  body.dark .field { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.10) !important; }
  body.dark .field input { color: #E8F1F8 !important; }
  body.dark .field input::placeholder { color: #6E8598 !important; }
  body.dark .field .ico { color: #7A93A6 !important; }

  /* 弹层：所有 sheet / box */
  body.dark .sheet,
  body.dark .sheet .box,
  body.dark .sheet-host > div,
  body.dark .box {
    background: #12283C !important;
    color: #E8F1F8 !important;
  }
  body.dark .sheet h3 { color: #E8F1F8 !important; border-bottom-color: rgba(255,255,255,.08) !important; }
  body.dark .sheet .item { color: #E1EBF3 !important; border-bottom-color: rgba(255,255,255,.06) !important; }
  body.dark .sheet .item:active { background: rgba(79,168,216,.12) !important; }
  body.dark .sheet input, body.dark .sheet textarea {
    background: rgba(255,255,255,.06) !important;
    color: #E8F1F8 !important;
    border-color: rgba(255,255,255,.10) !important;
  }

  /* 更多功能格子 */
  body.dark .sg-cell {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.09) !important;
  }
  body.dark .sg-cell:active { background: rgba(79,168,216,.16) !important; }
  body.dark .sg-t { color: #E8F1F8 !important; }
  body.dark .sg-d { color: #8FA6B6 !important; }
  body.dark .sg-title { color: #7A93A6 !important; }

  /* 发起弹层 */
  body.dark .st-card {
    background: rgba(255,255,255,.05) !important;
    border-color: rgba(255,255,255,.09) !important;
  }
  body.dark .st-t { color: #E8F1F8 !important; }
  body.dark .st-d { color: #8FA6B6 !important; }
  body.dark .st-cancel { color: #9FB3C6 !important; border-color: rgba(255,255,255,.12) !important; }

  /* 长按菜单（本来就是深色，不用改） */
  body.dark .msg-pop { background: rgba(18,32,46,.98) !important; }

  /* 底部导航 */
  body.dark .tabbar {
    background: #12283C !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.5) !important;
  }
  body.dark .tabbar div { color: #7A93A6 !important; }
  body.dark .tabbar div.on { color: #CFE3F1 !important; }

  /* 列表 / 卡片 */
  body.dark .row,
  body.dark .me-card,
  body.dark .me-stats .stat,
  body.dark .mo-item,
  body.dark .gm-row,
  body.dark .fav-row {
    background: #12283C !important;
    border-color: rgba(255,255,255,.06) !important;
  }
  body.dark .row .name, body.dark .row .l { color: #E8F1F8 !important; }
  body.dark .row .last, body.dark .row .r { color: #8FA6B6 !important; }
  body.dark .conv-group { color: #7A93A6 !important; }

  /* 聊天气泡 */
  body.dark .msg:not(.me) .bubble { background: #16304A !important; color: #E8F1F8 !important; }
  body.dark .msg.me .bubble { background: #2E6E96 !important; color: #fff !important; }
  body.dark .msgtime { color: #6E8598 !important; }
  body.dark .sys-tag { background: rgba(255,255,255,.07) !important; color: #8FA6B6 !important; }

  /* 输入栏 */
  body.dark .composer { background: #0C2130 !important; border-top-color: rgba(255,255,255,.07) !important; }
  body.dark .composer input[type=text] { background: rgba(255,255,255,.06) !important; color: #E8F1F8 !important; }
  body.dark .composer .tool { color: #8FA6B6 !important; }

  /* 群公告条 */
  body.dark .notice-bar {
    background: linear-gradient(90deg, rgba(79,168,216,.16), rgba(79,168,216,.04)) !important;
    border-bottom-color: rgba(255,255,255,.06) !important;
    color: #CFE3F1 !important;
  }

  /* 搜索结果 / 收藏 / 搜索页 */
  body.dark .search-hit-row { border-top-color: rgba(255,255,255,.06) !important; }
  body.dark .sh-t { color: #E8F1F8 !important; }
  body.dark .sh-m { color: #8FA6B6 !important; }
  body.dark .gs-hist-item { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.10) !important; color: #CFE3F1 !important; }
  body.dark .sp-scope { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.08) !important; }
  body.dark .sp-scope-item { color: #A7BCCC !important; }
  body.dark .sp-sec { color: #7A93A6 !important; }
  body.dark .fav-t { color: #E8F1F8 !important; }
  body.dark .fav-m { color: #8FA6B6 !important; }

  /* 朋友圈 */
  body.dark #moments { background: #0A1723 !important; }
  body.dark .mo-name { color: #E8F1F8 !important; }
  body.dark .mo-text { color: #D6E8F5 !important; }
  body.dark .mo-meta { border-top-color: rgba(255,255,255,.07) !important; }
  body.dark .mo-comments { background: rgba(255,255,255,.05) !important; }
  body.dark .mo-likes { background: rgba(79,168,216,.12) !important; }

  /* 我页面 */
  body.dark .me-group-title { color: #7A93A6 !important; }
  body.dark .me-stats .stat-label { color: #8FA6B6 !important; }
  body.dark .me-logout { background: rgba(255,255,255,.05) !important; }
  body.dark .me-ver { color: #6E8598 !important; }

  /* 空状态 */
  body.dark .empty { color: #8FA6B6 !important; }
  body.dark .empty small { color: #6E8598 !important; }
  body.dark .empty-ico { background: linear-gradient(150deg, rgba(79,168,216,.16), rgba(79,168,216,.04)) !important; }

  /* 微信式的红色未读点 / 徽标 */
  body.dark .badge { background: #E0584C !important; }

  /* ============ 表情包必须正方形，不许被拉扁 ============ */
  .sticker-wrap {
    width: 108px !important;
    height: 108px !important;
    aspect-ratio: 1 / 1 !important;
    flex: none !important;
  }
  .sticker-wrap img {
    width: 108px !important;
    height: 108px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }
  /* 表情所在气泡：不参与 flex 拉伸 */
  .msg-col > .bubble:has(.sticker-wrap) {
    flex: none !important;
    width: auto !important;
    align-self: flex-start !important;
  }
  .msg.me .msg-col > .bubble:has(.sticker-wrap) { align-self: flex-end !important; }




  /* ==================== 发出去的表情包 v2 ==================== */
  .sticker-wrap {
    width: 116px !important;
    height: 116px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: transparent !important;
    display: block !important;
    cursor: pointer;
    position: relative;
    transition: transform .12s ease, filter .12s ease;
    /* 浅色背景上给一点极淡的托底，透明表情也看得清边界 */
    box-shadow: inset 0 0 0 1px rgba(24,68,102,.05);
  }
  body.dark .sticker-wrap { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
  .sticker-wrap:active { transform: scale(.94); filter: brightness(.94); }

  .sticker-wrap img {
    width: 116px !important;
    height: 116px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 16px !important;
    background: transparent !important;
    opacity: 0;
    transition: opacity .18s ease;
  }
  .sticker-wrap img.stk-ok { opacity: 1; }

  /* 加载中：转圈底色 */
  .stk-loading {
    background: rgba(62,143,201,.08) !important;
  }
  .stk-loading::after {
    content: '';
    position: absolute; left: 50%; top: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid rgba(62,143,201,.22);
    border-top-color: rgba(62,143,201,.75);
    animation: stkSpin .7s linear infinite;
  }
  @keyframes stkSpin { to { transform: rotate(360deg); } }
  /* 加载失败：破图提示 */
  .stk-err {
    background: rgba(210,84,74,.08) !important;
  }
  .stk-err::after {
    content: '表情加载失败';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; color: var(--c-red);
    letter-spacing: .2px;
  }
  /* 表情包气泡：不占额外留白 */
  .msg .bubble:has(.sticker-wrap),
  .msg.me .bubble:has(.sticker-wrap) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 0 !important;
  }
  /* 同一个人连续发表情，间距紧一点 */
  .msg:has(.sticker-wrap) + .msg:has(.sticker-wrap) { margin-top: 6px !important; }
  /* 专属红包下拉 */
  .pk-exclusive select {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--c-line);
    background: var(--c-bg-1);
    color: var(--c-text);
    font-size: 13.5px;
    padding: 0 10px;
    outline: 0;
  }
  .pk-row.pk-exclusive { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
  .pk-row.pk-exclusive .pk-label { flex: none; }
  body.dark .pk-exclusive select { background: rgba(255,255,255,.06); color: #E8F1F8; border-color: rgba(255,255,255,.10); }
  /* 邀请码卡片：加入按钮更醒目 */
  .if-btn {
    flex: none;
    height: 34px;
    padding: 0 15px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand));
    box-shadow: 0 3px 10px rgba(62,143,201,.28);
    white-space: nowrap;
    cursor: pointer;
  }
  .if-btn:active { transform: scale(.95); }
  .if-btn.already {
    background: rgba(62,143,201,.14);
    color: var(--c-brand-deep);
    box-shadow: none;
    cursor: default;
  }
  /* 邀请码查不到的小提示 */
  .invite-find-tip {
    margin: 8px 12px 0;
    padding: 9px 13px;
    border-radius: 12px;
    background: rgba(210,84,74,.09);
    color: var(--c-red);
    font-size: 12px;
    line-height: 1.4;
    animation: fadeIn .16s ease forwards;
  }
  /* ==================== 邀请成员页 ==================== */
  #gmInvitePage {
    z-index: 32 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: var(--c-bg-1) !important;
  }
  #gmInvitePage.hidden { display: none !important; }
  #gmInvitePage > .topbar { flex: 0 0 auto !important; }
  #gmiSearch {
    width: 100%;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--c-line);
    background: var(--c-surface);
    padding: 0 13px;
    font-size: 14px;
    color: var(--c-text);
    outline: 0;
    box-sizing: border-box;
  }
  #gmiSearch:focus { border-color: rgba(62,143,201,.45); }

  .gmi-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-surface);
  }
  .gmi-bar span { font-size: 12.5px; font-weight: 600; color: var(--c-text-3); }
  .gmi-bar button {
    height: 36px;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    border: 0;
    background: linear-gradient(160deg, var(--c-brand-2), var(--c-brand));
    box-shadow: 0 4px 12px rgba(62,143,201,.26);
  }
  .gmi-bar button:disabled {
    background: rgba(62,143,201,.22);
    box-shadow: none;
    color: #fff;
    opacity: .8;
  }
  .gmi-bar button:active:not(:disabled) { transform: scale(.97); }

  #gmiContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 13px 26px;
    box-sizing: border-box;
  }
  .gmi-sec {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    color: var(--c-text-3);
    margin: 10px 3px 9px;
  }
  .gmi-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    margin-bottom: 9px;
    border-radius: 16px;
    background: var(--c-surface);
    border: 1px solid rgba(24,68,102,.05);
    box-shadow: 0 2px 8px rgba(16,52,74,.04);
    transition: transform .12s ease, background .12s ease;
    cursor: pointer;
  }
  .gmi-row:active { transform: scale(.985); }
  .gmi-row.on {
    background: rgba(62,143,201,.10);
    border-color: rgba(62,143,201,.28);
  }
  .gmi-av {
    width: 42px; height: 42px;
    border-radius: 13px;
    flex: none;
    background-size: cover;
    background-position: center;
  }
  .gmi-info { flex: 1; min-width: 0; }
  .gmi-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gmi-sub { font-size: 11px; color: var(--c-text-3); margin-top: 3px; }
  .gmi-check {
    width: 23px; height: 23px;
    border-radius: 50%;
    flex: none;
    border: 1.8px solid var(--c-line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .14s ease;
  }
  .gmi-row.on .gmi-check {
    background: var(--c-brand);
    border-color: var(--c-brand);
  }
  .gmi-row.on .gmi-check::after {
    content: '';
    width: 10px; height: 5.5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
  }

  /* 邀请成员页 / 收藏页 / 搜索页：层级要高于聊天页(40)和弹层 */
  #gmInvitePage { z-index: 60 !important; position: fixed !important; inset: 0 !important; }
  #favPage, #searchPage { z-index: 50 !important; position: fixed !important; inset: 0 !important; }
  #gmInvitePage.hidden, #favPage.hidden, #searchPage.hidden { display: none !important; }
  /* ==================== 钱包明细 v2 ==================== */
  .wh-card {
    border-radius: 18px;
    padding: 18px 18px 14px;
    background: linear-gradient(150deg, #6FBBE6 0%, #3E8FC9 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(62,143,201,.26);
    position: relative;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .wh-card::after {
    content: '';
    position: absolute; right: -36px; top: -46px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.20), transparent 68%);
  }
  .wh-card-label { font-size: 11.5px; opacity: .9; letter-spacing: .6px; }
  .wh-card-balance {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.8px;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
  }
  .wh-card-row {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.22);
  }
  .wh-card-stat { flex: 1; text-align: center; }
  .wh-card-stat b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .wh-card-stat b.in { color: #B8F5D0; }
  .wh-card-stat b.out { color: #FFC9C2; }
  .wh-card-stat span { display: block; font-size: 10px; opacity: .82; margin-top: 3px; }
  .wh-card-line { width: 1px; height: 26px; background: rgba(255,255,255,.2); }

  .wh-sec {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    color: var(--c-text-3);
    margin: 16px 3px 8px;
  }
  .wh-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-top: 1px solid var(--c-line);
  }
  .wh-row:first-of-type { border-top: 0; }
  .wh-ico {
    width: 40px; height: 40px;
    border-radius: 13px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .wh-ico .ico-svg { width: 19px; height: 19px; }
  .wh-ico.in  { background: linear-gradient(150deg, #D6F1DF, #A2DCB8); color: #22784A; }
  .wh-ico.out { background: linear-gradient(150deg, #FBDDE6, #F2AFC4); color: #A63A5E; }
  .wh-info { flex: 1; min-width: 0; }
  .wh-t {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wh-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-3);
    margin-left: 7px;
  }
  .wh-m { font-size: 11px; color: var(--c-text-3); margin-top: 3px; }
  .wh-amt {
    flex: none;
    font-size: 15.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.2px;
  }
  .wh-amt.plus { color: var(--c-green); }
  .wh-amt.minus { color: var(--c-red); }

  /* ==================== 群成员 / 管理 v3 ==================== */
  /* 行布局：头像 | 信息 | 按钮（按钮绝不换行） */
  .gm-row {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 10px 13px !important;
    margin-bottom: 8px !important;
    border-radius: 15px !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.05) !important;
    box-shadow: 0 2px 8px rgba(16,52,74,.04) !important;
    transition: transform .12s ease;
  }
  .gm-row:active { transform: scale(.988); }
  .gm-av {
    width: 40px !important; height: 40px !important;
    border-radius: 13px !important;
    flex: 0 0 40px !important;
  }
  .gm-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden;
  }
  .gm-name {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: var(--c-text) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .gm-sub2 { font-size: 10.5px !important; color: var(--c-text-3) !important; margin-top: 3px !important; }
  .gm-role {
    flex: none !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    padding: 1.5px 6px !important;
    border-radius: 6px !important;
    background: rgba(62,143,201,.13) !important;
    color: var(--c-brand-deep) !important;
    white-space: nowrap !important;
  }
  .gm-role.owner { background: rgba(197,138,56,.16) !important; color: #A8701F !important; }

  /* 操作按钮：不换行、不挤压、字在一行 */
  .gm-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .gm-actions button {
    flex: none !important;
    height: 30px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    border: 1px solid rgba(62,143,201,.22) !important;
    background: rgba(62,143,201,.08) !important;
    color: var(--c-brand-deep) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform .1s ease, background .12s ease;
  }
  .gm-actions button:active { transform: scale(.94); background: rgba(62,143,201,.18) !important; }
  .gm-actions button.danger {
    border-color: rgba(210,84,74,.24) !important;
    background: rgba(210,84,74,.07) !important;
    color: var(--c-red) !important;
  }
  .gm-actions button.danger:active { background: rgba(210,84,74,.16) !important; }

  /* 顶部群信息 */
  .gm-head { text-align: center; padding: 4px 0 12px; }
  .gm-hname, .gm-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--c-text) !important;
    letter-spacing: .3px;
  }
  .gm-hsub, .gm-sub {
    font-size: 11.5px !important;
    color: var(--c-text-3) !important;
    margin-top: 5px !important;
  }

  /* 公告条 */
  .gm-notice {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
    padding: 11px 13px !important;
    margin: 6px 0 12px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.18), rgba(143,208,242,.05)) !important;
    border: 1px solid rgba(62,143,201,.16) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    min-height: 0 !important;
  }
  .gm-notice::before { display: none !important; }
  .gm-notice .ico-svg { flex: none; }

  /* 搜索框 + 邀请码按钮 */
  .gm-search {
    height: 40px !important;
    border-radius: 13px !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }
  .gm-invite {
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
  }
  /* 成员列表滚动区 */
  .gm-wrap { max-height: 52vh; overflow-y: auto; padding-right: 2px; }
  .gm-wrap::-webkit-scrollbar { width: 4px; }
  .gm-wrap::-webkit-scrollbar-thumb { background: rgba(62,143,201,.25); border-radius: 2px; }
  /* ==================== 专属红包选择器 v2 ==================== */
  .pk-excl { margin: 12px 0 4px; }
  .pk-excl .pk-label {
    display: block;
    font-size: 11px; font-weight: 700; color: var(--c-text-3);
    letter-spacing: .6px; margin: 0 0 8px 2px;
  }
  /* 谁能领：滑块式切换
     整条是一块浅灰底，中间一块白滑片跟着选项走。
     位置靠容器上的 data-on 属性驱动（JS 里 syncExclUI 会设）。 */
  .pk-excl-opts {
    display: flex;
    gap: 0;
    position: relative;
    background: var(--c-bg-1);
    border-radius: 13px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(30,70,105,.06);
  }
  .pk-excl-opts::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; bottom: 4px;
    width: calc(50% - 4px);
    border-radius: 10px;
    background: #fff;
    box-shadow:
      0 2px 9px rgba(61,143,199,.20),
      0 0 0 1px rgba(61,143,199,.12),
      inset 0 1px 0 rgba(255,255,255,.9);
    transform: translateX(0);
    transition: transform .34s cubic-bezier(.32,1.28,.5,1);
    pointer-events: none;
  }
  .pk-excl-opts[data-on="one"]::before {
    transform: translateX(100%);
  }
  .pk-exo {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-3);
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color .24s ease, transform .12s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overflow: hidden;
  }
  .pk-exo.on {
    color: var(--c-brand-deep);
    font-weight: 800;
  }
  /* 按下时的圆形扩散反馈 */
  .pk-exo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: radial-gradient(circle at 50% 50%,
      rgba(61,143,199,.26) 0%, rgba(61,143,199,.10) 45%, transparent 70%);
    opacity: 0;
    transform: scale(.55);
    transition: opacity .32s ease, transform .32s ease;
    pointer-events: none;
  }
  .pk-exo:active::after {
    opacity: 1;
    transform: scale(1);
    transition: opacity .05s ease, transform .12s ease;
  }
  .pk-exo:active { transform: scale(.965); }
  /* 已选的人 */
  .pk-picked {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(62,143,201,.07);
    border: 1px solid rgba(62,143,201,.16);
  }
  .pk-picked.hidden { display: none !important; }
  .pk-picked-av {
    width: 26px; height: 26px;
    border-radius: 9px;
    flex: none;
    background-size: cover;
    background-position: center;
    background-color: rgba(62,143,201,.15);
  }
  .pk-picked-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pk-picked-change {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-brand-deep);
    cursor: pointer;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(62,143,201,.12);
  }
  .pk-picked-change:active { background: rgba(62,143,201,.22); }

  /* 选人浮层
     注意 z-index：红包面板那边有一条 `html body .sheet { z-index: 8000 !important }`
     的强制样式，浮层原来是 400，被整个盖在下面 —— 点了「指定一个人」
     DOM 里确实创建了，但用户看不见也点不到，表现就是「按了没反应」。
     必须高于 8000。 */
  .pk-pick-sheet {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(6,18,28,.42);
    display: flex;
    align-items: flex-end;
    animation: fadeIn .14s ease forwards;
  }
  .pk-pick-box {
    width: 100%;
    max-height: 66vh;
    background: var(--c-surface);
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: sheetUp .22s cubic-bezier(.2,.9,.3,1) forwards;
  }
  .pk-pick-box h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-text);
    margin: 0 0 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--c-line);
    text-align: center;
  }
  .pk-pick-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .pk-pick-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 10px;
    border-radius: 13px;
    transition: background .12s ease;
    cursor: pointer;
  }
  .pk-pick-row:active { background: rgba(62,143,201,.10); }
  .pk-pick-av {
    width: 38px; height: 38px;
    border-radius: 12px;
    flex: none;
    background-size: cover;
    background-position: center;
  }
  .pk-pick-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
  /* ==================== 红包卡片封面 v2 ==================== */
  .pkt.rp {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 14px 15px !important;
    border-radius: 16px !important;
    background: linear-gradient(148deg, #F0553F 0%, #D93B29 55%, #C22F20 100%) !important;
    box-shadow: 0 6px 20px rgba(190,53,33,.28), inset 0 1px 0 rgba(255,255,255,.22) !important;
    overflow: hidden;
  }
  /* 右上角一圈柔光，做出烫金感 */
  .pkt.rp::after {
    content: '';
    position: absolute;
    right: -30px; top: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,214,150,.30), transparent 68%);
    pointer-events: none;
  }
  .pkt.rp.done {
    background: linear-gradient(148deg, #9AA8B4 0%, #7C8B98 60%, #6B7A87 100%) !important;
    box-shadow: 0 4px 14px rgba(60,80,95,.22) !important;
  }
  .pkt.rp .rp-ico {
    width: 42px !important; height: 42px !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    display: flex; align-items: center; justify-content: center;
    flex: none;
  }
  .pkt.rp .rp-ico span {
    font-size: 19px; font-weight: 800; color: #FFF3D9;
    margin: 0 !important;
  }
  .pkt.rp .rp-body { flex: 1; min-width: 0; }
  .pkt.rp .rp-amt {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -.2px;
    font-variant-numeric: tabular-nums;
    display: flex; align-items: baseline; gap: 7px;
    margin: 0 !important;
  }
  .pkt.rp .rp-cnt {
    font-size: 11.5px;
    font-weight: 700;
    font-style: normal;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.16);
    padding: 1px 7px;
    border-radius: 7px;
    letter-spacing: 0;
  }
  .pkt.rp .rp-note {
    font-size: 11.5px !important;
    color: rgba(255,255,255,.92) !important;
    margin-top: 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1 !important;
  }
  /* 状态标签行 */
  .pkt.rp .rp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
  }
  .rp-tag {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.95);
    white-space: nowrap;
    letter-spacing: .2px;
  }
  .rp-tag.got  { background: rgba(255,255,255,.30); color: #fff; }
  .rp-tag.done { background: rgba(0,0,0,.14); color: rgba(255,255,255,.85); }
  .rp-tag.wait { background: rgba(255,235,150,.22); color: #FFEBA0; }
  .rp-tag.excl { background: rgba(255,214,150,.24); color: #FFE3B0; }

  /* 专属红包加一圈金边 */
  .pkt.rp.excl {
    box-shadow: 0 6px 20px rgba(190,53,33,.28),
                inset 0 0 0 1.5px rgba(255,214,150,.55),
                inset 0 1px 0 rgba(255,255,255,.22) !important;
  }
  /* 自己发的也能领的提示 */
  .pkt.rp .rp-self-tip {
    font-size: 10px !important;
    color: #FFF3D9 !important;
    margin-top: 6px !important;
    opacity: .9;
  }

  /* ==================== 红包卡片：压扁高度 ==================== */
  .pkt.rp {
    padding: 10px 13px !important;
    gap: 11px !important;
    border-radius: 14px !important;
  }
  .pkt.rp .rp-ico {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }
  .pkt.rp .rp-ico span { font-size: 16px !important; }
  .pkt.rp .rp-amt {
    font-size: 16.5px !important;
    line-height: 1.15 !important;
    gap: 6px;
  }
  .pkt.rp .rp-cnt {
    font-size: 10px !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
  }
  .pkt.rp .rp-note {
    font-size: 11px !important;
    margin-top: 2.5px !important;
    line-height: 1.25;
  }
  .pkt.rp .rp-meta {
    margin-top: 5px !important;
    gap: 4px !important;
  }
  .rp-tag {
    font-size: 9.5px !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
  }
  .pkt.rp .rp-self-tip {
    font-size: 9.5px !important;
    margin-top: 4px !important;
  }
  /* 转账卡片同步压一点，保持观感一致 */
  .pkt.tr { padding: 10px 13px !important; border-radius: 14px !important; }
  .pkt.tr .tr-icon { width: 34px !important; height: 34px !important; }
  .pkt.tr .tr-amt { font-size: 16.5px !important; line-height: 1.15 !important; }
  .pkt.tr .tr-note { font-size: 11px !important; margin-top: 2.5px !important; }

  /* 再压一档 */
  .pkt.rp { padding: 9px 12px !important; gap: 10px !important; }
  .pkt.rp .rp-ico { width: 32px !important; height: 32px !important; border-radius: 10px !important; }
  .pkt.rp .rp-ico span { font-size: 15px !important; }
  .pkt.rp .rp-amt { font-size: 16px !important; }
  .pkt.rp .rp-note { margin-top: 2px !important; }
  .pkt.rp .rp-meta { margin-top: 4px !important; }
  .rp-tag { padding: 2.5px 6.5px !important; font-size: 9px !important; }
  .pkt.rp .rp-self-tip { display: none !important; }
  /* 自己发的可领标记：小圆点挂在金额右侧 */
  .rp-self-dot {
    position: absolute;
    right: 9px; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #FFEBA0;
    box-shadow: 0 0 0 3px rgba(255,235,160,.24);
  }
  .pkt.tr { padding: 9px 12px !important; }
  .pkt.tr .tr-icon { width: 32px !important; height: 32px !important; }
  .pkt.tr .tr-amt { font-size: 16px !important; }
  .pkt.tr .tr-note { margin-top: 2px !important; }
  /* ==================== 我页面三张统计卡 v2 ==================== */
  .me-stats {
    display: flex !important;
    gap: 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 12px 0 4px !important;
  }
  .me-stats .stat {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
    padding: 13px 12px 12px !important;
    border-radius: 17px !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.05) !important;
    box-shadow: 0 2px 12px rgba(16,52,74,.05) !important;
    border-left: 0 !important;
    position: relative;
    overflow: hidden;
    transition: transform .13s ease, box-shadow .13s ease;
    cursor: pointer;
  }
  .me-stats .stat:active {
    transform: scale(.965);
    box-shadow: 0 1px 5px rgba(16,52,74,.10) !important;
  }
  /* 图标：小圆角方块 */
  .me-stats .stat-ico {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    margin: 0 0 9px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .me-stats .stat-ico .ico-svg { width: 15px !important; height: 15px !important; }
  .me-stats .stat-ico.s-blue  { background: linear-gradient(150deg, #D9EEFB, #A8D9F5) !important; color: #2E7BAB !important; }
  .me-stats .stat-ico.s-green { background: linear-gradient(150deg, #D6F1DF, #A2DCB8) !important; color: #22784A !important; }
  .me-stats .stat-ico.s-gold  { background: linear-gradient(150deg, #FCEDC6, #F0CE85) !important; color: #9A6A12 !important; }

  /* 数字：自动缩字号，长余额不撑破 */
  .me-stats .stat-num {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -.4px !important;
    color: var(--c-text) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .me-stats .stat-num.long  { font-size: 16.5px !important; letter-spacing: -.6px !important; }
  .me-stats .stat-num.long2 { font-size: 13.5px !important; letter-spacing: -.7px !important; }
  .me-stats .stat-label {
    font-size: 10.5px !important;
    color: var(--c-text-3) !important;
    margin-top: 3px !important;
    letter-spacing: .3px;
    white-space: nowrap;
  }

  /* ==================== 三卡：改成融合式一条 ==================== */
  .me-stats {
    display: flex !important;
    gap: 0 !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.045) !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 14px rgba(16,52,74,.045) !important;
    padding: 16px 4px !important;
    margin: 14px 0 6px !important;
    align-items: center;
  }
  .me-stats .stat {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0 6px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    overflow: visible;
    transition: opacity .12s ease, transform .12s ease;
    cursor: pointer;
  }
  /* 中间竖分割线 */
  .me-stats .stat + .stat::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(24,68,102,.10), transparent);
  }
  .me-stats .stat:active { transform: scale(.955); opacity: .8; }

  /* 图标：去掉方块底，只留彩色线描 */
  .me-stats .stat-ico {
    width: auto !important;
    height: auto !important;
    margin: 0 auto 6px !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .me-stats .stat-ico .ico-svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 2.1;
  }
  .me-stats .stat-ico.s-blue  { color: #4A9BD6 !important; }
  .me-stats .stat-ico.s-green { color: #45A574 !important; }
  .me-stats .stat-ico.s-gold  { color: #C89233 !important; }

  /* 数字：跟标题区分，中等重量 */
  .me-stats .stat-num {
    font-size: 18.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.3px !important;
    color: var(--c-text) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .me-stats .stat-num.long  { font-size: 15.5px !important; }
  .me-stats .stat-num.long2 { font-size: 13px !important; }

  /* 标签 */
  .me-stats .stat-label {
    font-size: 10.5px !important;
    color: var(--c-text-3) !important;
    margin-top: 3px !important;
    letter-spacing: .5px;
    white-space: nowrap;
  }

  /* ==================== 三栏精致化 ==================== */
  .me-stats {
    background: linear-gradient(160deg, #FFFFFF 0%, #FBFDFF 100%) !important;
    border: 1px solid rgba(24,68,102,.05) !important;
    border-radius: 20px !important;
    box-shadow: 0 3px 16px rgba(16,52,74,.05), inset 0 1px 0 rgba(255,255,255,.9) !important;
    padding: 17px 6px 15px !important;
  }
  /* 图标：改成圆形柔光底 */
  .me-stats .stat-ico {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    margin: 0 auto 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
  }
  .me-stats .stat-ico::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.7);
    pointer-events: none;
  }
  .me-stats .stat-ico .ico-svg { width: 16px !important; height: 16px !important; stroke-width: 2.05; }
  .me-stats .stat-ico.s-blue  { background: linear-gradient(150deg, #E4F2FC, #C9E6F9) !important; color: #3B8CC7 !important; }
  .me-stats .stat-ico.s-green { background: linear-gradient(150deg, #E2F5EA, #C6EBD6) !important; color: #3D9E6B !important; }
  .me-stats .stat-ico.s-gold  { background: linear-gradient(150deg, #FDF3DA, #F7E1AE) !important; color: #B98426 !important; }

  /* 数字：加极轻的蓝墨渐变 */
  .me-stats .stat-num {
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -.5px !important;
    line-height: 1.15 !important;
    background: linear-gradient(170deg, #1B4B6B 0%, #2E6E96 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1B4B6B !important;
  }
  .me-stats .stat-num.long  { font-size: 15.5px !important; }
  .me-stats .stat-num.long2 { font-size: 13px !important; }

  /* 标签：小字母距，淡 */
  .me-stats .stat-label {
    font-size: 10px !important;
    color: var(--c-text-3) !important;
    margin-top: 4px !important;
    letter-spacing: 1px;
  }
  /* 分隔线再加一点高度，更柔和 */
  .me-stats .stat + .stat::before {
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(24,68,102,.085), transparent);
  }
  /* 每格底部一个极小圆点装饰 */
  .me-stats .stat::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -7px;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    opacity: .35;
  }
  .me-stats .stat:nth-child(1)::after { background: #4A9BD6; }
  .me-stats .stat:nth-child(2)::after { background: #45A574; }
  .me-stats .stat:nth-child(3)::after { background: #C89233; }
  /* ==================== 钱包明细 v3 ==================== */
  /* 余额卡：加细网格纹理 + 金色高光 */
  .wh-card {
    background: linear-gradient(150deg, #7CC3E8 0%, #4A97CB 52%, #3579AE 100%) !important;
    border-radius: 20px !important;
    padding: 19px 19px 15px !important;
    box-shadow: 0 10px 28px rgba(52,120,170,.30), inset 0 1px 0 rgba(255,255,255,.28) !important;
  }
  .wh-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 88% 12%, rgba(255,225,160,.28), transparent 42%),
      repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px);
    pointer-events: none;
  }
  .wh-card::after {
    content: '';
    position: absolute;
    right: -28px; bottom: -52px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
    pointer-events: none;
  }
  .wh-card-balance {
    font-size: 31px !important;
    letter-spacing: -1px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
    position: relative;
  }
  .wh-card-label, .wh-card-row { position: relative; }

  /* 筛选条 */
  .wh-filters {
    display: flex;
    gap: 7px;
    margin: 14px 0 4px;
  }
  .wh-f {
    padding: 6px 13px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text-3);
    background: var(--c-bg-1);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .14s ease;
    white-space: nowrap;
  }
  .wh-f:active { transform: scale(.96); }
  .wh-f.on {
    color: var(--c-brand-deep);
    background: rgba(62,143,201,.10);
    border-color: rgba(62,143,201,.30);
    font-weight: 700;
  }

  /* 日期分组：右边带当天净额 */
  .wh-sec {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    margin: 15px 3px 7px !important;
  }
  .wh-sec em {
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .wh-sec em.plus { color: var(--c-green); }
  .wh-sec em.minus { color: var(--c-red); }

  /* 记录行：加悬停感 */
  .wh-row {
    padding: 11px 6px !important;
    border-radius: 11px;
    transition: background .12s ease;
    border-top: 1px solid rgba(24,68,102,.05) !important;
  }
  .wh-row:first-of-type { border-top: 0 !important; }
  .wh-row:active { background: rgba(62,143,201,.06); }
  .wh-ico {
    width: 38px !important; height: 38px !important;
    border-radius: 12px !important;
  }
  .wh-ico .ico-svg { width: 18px !important; height: 18px !important; }
  .wh-t { font-size: 14px !important; }
  .wh-note { font-size: 11.5px !important; }
  .wh-amt { font-size: 15px !important; letter-spacing: -.3px; }
  /* 记录行可点的小箭头 */
  .wh-row::after {
    content: '›';
    font-size: 15px;
    color: var(--c-text-3);
    opacity: .45;
    margin-left: 3px;
    flex: none;
  }
  .wh-row { cursor: pointer; }

  /* ==================== 三栏：按压 / 波纹 / 弹跳 ==================== */
  .me-stats { overflow: hidden; }
  .me-stats .stat {
    overflow: hidden !important;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s cubic-bezier(.3,1.4,.5,1), background .14s ease;
  }
  .me-stats .stat:active {
    transform: scale(.93) !important;
    opacity: 1 !important;
    background: rgba(62,143,201,.045) !important;
    border-radius: 14px;
  }
  /* 波纹 */
  .stat-ripple {
    position: absolute;
    left: 50%; top: 50%;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93,175,224,.30), rgba(93,175,224,0) 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
  .stat-ripple.go { animation: statRipple .52s ease-out; }
  @keyframes statRipple {
    0%   { transform: scale(1);   opacity: .95; }
    100% { transform: scale(18);  opacity: 0; }
  }
  /* 图标弹一下 */
  .me-stats .stat-ico.bump { animation: statBump .42s cubic-bezier(.3,1.5,.5,1); }
  @keyframes statBump {
    0%   { transform: scale(1); }
    38%  { transform: scale(1.22) translateY(-2px); }
    100% { transform: scale(1); }
  }
  /* 数字在按下时也轻微缩一下，整体更「实」 */
  .me-stats .stat-num, .me-stats .stat-label {
    position: relative;
    z-index: 1;
    transition: transform .16s ease;
  }
  .me-stats .stat-ico { position: relative; z-index: 1; }
  .me-stats .stat:active .stat-num { transform: scale(.97); }

  /* 三格之间加一层独立的按下高亮 */
  .me-stats .stat::before {
    transition: opacity .14s ease;
  }
  .me-stats .stat:active::before { opacity: .4; }

  /* ==================== 三栏：克制版按压 ==================== */
  /* 覆盖之前的夸张动效 */
  .me-stats .stat {
    transition: transform .22s cubic-bezier(.22,.61,.36,1),
                background-color .22s ease !important;
    -webkit-tap-highlight-color: transparent;
    border-radius: 15px !important;
  }
  .me-stats .stat:active {
    transform: scale(.972) !important;
    background-color: rgba(62,143,201,.055) !important;
    opacity: 1 !important;
  }
  .me-stats .stat:active .stat-ico {
    filter: brightness(1.06);
    transition: filter .2s ease;
  }
  .me-stats .stat:active .stat-num { transform: none !important; }
  /* 彻底关掉之前的波纹和弹跳 */
  .stat-ripple { display: none !important; }
  .me-stats .stat-ico.bump { animation: none !important; }
  .me-stats .stat-ico { transition: filter .2s ease, transform .22s ease; }
  .me-stats .stat:active::before { opacity: 1 !important; }

  /* ==================== 表情面板 v3 ==================== */
  #emojiPanel {
    height: 272px !important;
    min-height: 272px !important;
    max-height: 272px !important;
    padding: 0 !important;
    overflow-y: auto !important;
    background: var(--c-surface) !important;
    border-top: 1px solid var(--c-line) !important;
    -webkit-overflow-scrolling: touch;
  }
  #emojiPanel::-webkit-scrollbar { width: 3px; }
  #emojiPanel::-webkit-scrollbar-thumb { background: rgba(62,143,201,.22); border-radius: 2px; }

  /* 小标题：左边一条彩色竖线 */
  .emoji-title {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin: 13px 14px 8px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .8px;
    color: var(--c-text-3) !important;
    text-align: left !important;
  }
  .emoji-title::before {
    content: '';
    width: 2.5px; height: 11px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--c-brand-2), var(--c-brand));
    flex: none;
  }
  .emoji-title:first-child { margin-top: 12px !important; }
  /* 「＋ 添加」按钮 */
  .stk-add {
    margin-left: auto;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--c-brand-deep) !important;
    padding: 3.5px 11px !important;
    border-radius: 9px !important;
    background: rgba(62,143,201,.10) !important;
    letter-spacing: 0;
    cursor: pointer;
    transition: background .12s ease, transform .1s ease;
  }
  .stk-add:active { background: rgba(62,143,201,.22) !important; transform: scale(.95); }

  /* 表情网格：8 列、留白均匀 */
  .emoji-row {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 1px !important;
    padding: 0 9px !important;
    margin: 0 !important;
  }
  .emoji-row span {
    font-size: 21px !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 7px 0 !important;
    border-radius: 9px !important;
    cursor: pointer;
    transition: background .12s ease, transform .1s ease;
    user-select: none;
  }
  .emoji-row span:active {
    background: rgba(62,143,201,.13) !important;
    transform: scale(.88);
  }

  /* 表情包网格：5 列正方形 */
  .stk-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    padding: 0 14px !important;
    margin: 0 !important;
  }
  .stk-row .stk-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 13px !important;
    background: rgba(62,143,201,.055) !important;
    display: block;
    transition: transform .1s ease, background .12s ease;
  }
  .stk-row .stk-item:active {
    transform: scale(.92);
    background: rgba(62,143,201,.14) !important;
  }
  /* 空状态 */
  .stk-empty {
    margin: 2px 14px 6px !important;
    padding: 16px 12px !important;
    text-align: center;
    font-size: 11.5px !important;
    color: var(--c-text-3) !important;
    border-radius: 13px !important;
    background: rgba(62,143,201,.045) !important;
    border: 1px dashed rgba(62,143,201,.22);
    line-height: 1.6;
  }
  /* 最后一个分组下面留点空 */
  #emojiPanel > .emoji-row:last-child { padding-bottom: 14px !important; }
  /* 通讯录字母分组标题 */
  .conv-group {
    display: flex !important;
    align-items: center;
    gap: 7px;
    padding: 12px 6px 6px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px;
    color: var(--c-brand-deep) !important;
    background: transparent !important;
  }
  .conv-group em {
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--c-text-3);
    padding: 1px 6px;
    border-radius: 7px;
    background: rgba(62,143,201,.10);
  }
  .conv-group::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(62,143,201,.18), transparent);
  }
  /* ==================== 朋友圈 v3 ==================== */
  #moList { padding-bottom: 26px; }

  .mo-item {
    padding: 15px 14px 13px !important;
    margin: 10px 12px !important;
    border-radius: 19px !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.045) !important;
    box-shadow: 0 3px 16px rgba(16,52,74,.05) !important;
    gap: 11px !important;
  }
  .mo-av {
    width: 42px !important; height: 42px !important;
    border-radius: 13px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 2px 8px rgba(16,52,74,.08) !important;
  }
  .mo-name {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--c-text) !important;
    letter-spacing: .2px;
  }
  .mo-text {
    font-size: 14px !important;
    line-height: 1.62 !important;
    margin-top: 6px !important;
    color: #253F52 !important;
  }
  body.dark .mo-text { color: #D6E8F5 !important; }

  /* 图片：占位 + 淡入，绝不露黑底 */
  .mo-img {
    margin-top: 9px !important;
    max-width: 232px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(62,143,201,.07) !important;
    position: relative;
    min-height: 60px;
    cursor: pointer;
    transition: transform .12s ease;
  }
  .mo-img:active { transform: scale(.985); }
  .mo-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1;
    transition: opacity .2s ease;
  }
  .mo-img.mo-img-loading img { opacity: 0; }
  .mo-img.mo-img-loading::after {
    content: '';
    position: absolute; left: 50%; top: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid rgba(62,143,201,.2);
    border-top-color: rgba(62,143,201,.7);
    animation: stkSpin .7s linear infinite;
  }
  .mo-img.mo-img-err {
    background: rgba(210,84,74,.07) !important;
    min-height: 92px;
  }
  .mo-img.mo-img-err::after {
    content: '图片加载失败';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--c-red);
  }

  /* 底部操作行 */
  .mo-meta {
    margin-top: 11px !important;
    padding-top: 9px;
    border-top: 1px solid rgba(24,68,102,.05);
    font-size: 11px !important;
    color: var(--c-text-3) !important;
  }
  .mo-acts { gap: 4px !important; }
  .mo-act {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 5px 10px !important;
    border-radius: 9px;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--c-text-3) !important;
    transition: background .12s ease, color .12s ease, transform .1s ease;
  }
  .mo-act .ico-svg { width: 13px !important; height: 13px !important; stroke-width: 2; }
  .mo-act:active { background: rgba(62,143,201,.10) !important; transform: scale(.95); }
  .mo-act.on { color: #E2574C !important; }
  .mo-act.on .ico-svg { fill: #E2574C; }
  .mo-act.danger { color: var(--c-red) !important; }

  /* 点赞条 */
  .mo-likes {
    margin-top: 9px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.16), rgba(143,208,242,.05)) !important;
    font-size: 12px !important;
    color: var(--c-brand-deep) !important;
    line-height: 1.5;
  }
  .mo-heart { color: #E2574C !important; margin-right: 4px; display: inline-flex; vertical-align: -2px; }
  .mo-heart .ico-svg { width: 12px; height: 12px; fill: #E2574C; }

  /* 评论条 */
  .mo-comments {
    margin-top: 7px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    background: rgba(24,68,102,.035) !important;
  }
  .mo-cmt {
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    color: #2B4A5E !important;
    padding: 2px 0;
  }
  body.dark .mo-cmt { color: #CFE3F1 !important; }
  .mo-cmt b { color: var(--c-brand-deep) !important; font-weight: 700; }
  .mo-cmt + .mo-cmt {
    border-top: 1px solid rgba(24,68,102,.05);
    padding-top: 5px;
    margin-top: 3px;
  }

  /* ==================== 朋友圈 v4 ==================== */
  /* 顶部栏：＋按钮收小、更克制 */
  #moments .topbar .ic {
    width: 34px !important; height: 34px !important;
    border-radius: 50% !important;
    background: rgba(62,143,201,.10) !important;
    color: var(--c-brand-deep) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
  }
  #moments .topbar .ic:active { background: rgba(62,143,201,.22) !important; transform: scale(.94); }

  /* 卡片：更柔的边界 */
  .mo-item {
    padding: 16px 15px 12px !important;
    margin: 11px 12px !important;
    border-radius: 20px !important;
    background: #fff !important;
    border: 1px solid rgba(24,68,102,.04) !important;
    box-shadow: 0 1px 2px rgba(16,52,74,.03), 0 6px 20px rgba(16,52,74,.045) !important;
  }

  /* 头像：加一圈白边更像贴纸 */
  .mo-av {
    position: relative;
    width: 44px !important; height: 44px !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(16,52,74,.10) !important;
  }
  .mo-av::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
    pointer-events: none;
  }

  /* 名字：稍小、更沉 */
  .mo-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .1px;
    color: #17384F !important;
  }
  /* 正文：与名字拉开距离 */
  .mo-text {
    margin-top: 7px !important;
    font-size: 14px !important;
    line-height: 1.68 !important;
    color: #2A4658 !important;
  }

  /* 图片：更大更圆，去掉呆板矩形 */
  .mo-img {
    margin-top: 10px !important;
    max-width: 240px !important;
    border-radius: 16px !important;
    background: rgba(62,143,201,.06) !important;
    box-shadow: 0 2px 10px rgba(16,52,74,.07) !important;
  }
  .mo-img img {
    border-radius: 16px !important;
    max-height: 300px;
    object-fit: cover;
  }

  /* 操作行：图标按钮更轻 */
  .mo-meta {
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(24,68,102,.045) !important;
  }
  .mo-meta > span:first-child {
    font-size: 10.5px !important;
    letter-spacing: .2px;
    color: var(--c-text-3) !important;
    opacity: .9;
  }
  .mo-acts { gap: 2px !important; }
  .mo-act {
    padding: 5px 9px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    color: #7C93A5 !important;
    gap: 3.5px !important;
  }
  .mo-act .ico-svg { width: 12.5px !important; height: 12.5px !important; }
  .mo-act.on { color: #E2574C !important; background: rgba(226,87,76,.07) !important; }
  .mo-act.danger { color: #C9554B !important; opacity: .82; }
  .mo-act.danger .ico-svg { width: 11px !important; height: 11px !important; }

  /* 点赞条：更淡、更像微信 */
  .mo-likes {
    margin-top: 10px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    background: rgba(24,68,102,.035) !important;
    font-size: 11.5px !important;
    color: #4A6E86 !important;
    letter-spacing: .1px;
  }
  .mo-heart { margin-right: 5px !important; }
  .mo-heart .ico-svg { width: 11px !important; height: 11px !important; }

  /* 评论条 */
  .mo-comments {
    margin-top: 6px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    background: rgba(24,68,102,.035) !important;
  }
  .mo-cmt { font-size: 12.5px !important; line-height: 1.7 !important; color: #33526A !important; }
  .mo-cmt b { color: #2E6E96 !important; }
  .mo-cmt + .mo-cmt {
    border-top: 1px solid rgba(24,68,102,.045) !important;
    padding-top: 4px !important;
    margin-top: 2px !important;
  }

  /* 空状态 */
  #moList .empty { padding: 70px 24px !important; }
  /* ==================== 朋友圈顶栏：锁死高度，不再多出一截 ==================== */
  #moments {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  #moments.hidden { display: none !important; }
  #moments > .topbar {
    flex: 0 0 auto !important;
    padding: 0 16px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--c-bg-1) !important;
    border-bottom: 1px solid rgba(24,68,102,.05) !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  /* 内容区自己滚，不从顶栏偷高度 */
  #moments > .content,
  #moments #moList {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }
  /* 兼容刘海屏：用 padding 顶出去，但不改高度 */
  @supports (padding: env(safe-area-inset-top)) {
    #moments > .topbar {
      height: calc(52px + env(safe-area-inset-top)) !important;
      min-height: calc(52px + env(safe-area-inset-top)) !important;
      max-height: calc(52px + env(safe-area-inset-top)) !important;
      padding-top: env(safe-area-inset-top) !important;
    }
  }
  /* 朋友圈视频卡片 */
  .mo-vid {
    position: relative;
    margin-top: 10px;
    max-width: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: #0B1F2D;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(16,52,74,.10);
  }
  .mo-vid video {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
  }
  .mo-play {
    position: absolute;
    left: 50%; top: 50%;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgba(8,20,30,.52);
    border: 1.5px solid rgba(255,255,255,.8);
    backdrop-filter: blur(2px);
    pointer-events: none;
  }
  .mo-play::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    margin: -7px 0 0 -4px;
    border-left: 11px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }
  .mo-vid:active { transform: scale(.985); }
  /* ==================== 发动态面板 v2 ==================== */
  .mo-post-head {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-text);
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 13px;
    border-bottom: 1px solid var(--c-line);
    letter-spacing: .3px;
  }
  .mo-post-text {
    width: 100%;
    box-sizing: border-box;
    min-height: 88px;
    max-height: 180px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid var(--c-line);
    background: var(--c-bg-1);
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.65;
    font-family: inherit;
    outline: 0;
    resize: none;
    transition: border-color .14s ease;
  }
  .mo-post-text:focus { border-color: rgba(62,143,201,.42); background: var(--c-surface); }
  .mo-post-text::placeholder { color: var(--c-text-3); }

  .mo-post-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 0 4px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1.5px dashed rgba(62,143,201,.28);
    background: rgba(62,143,201,.035);
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease;
  }
  .mo-post-pick:active { background: rgba(62,143,201,.10); border-color: rgba(62,143,201,.45); }
  .mo-post-pick.has-file {
    border-style: solid;
    border-color: rgba(62,143,201,.25);
    background: rgba(62,143,201,.06);
  }
  .mo-post-pick-ico {
    width: 34px; height: 34px;
    border-radius: 11px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, #E4F2FC, #C9E6F9);
    color: #3B8CC7;
  }
  .mo-post-pick-ico .ico-svg { width: 17px; height: 17px; }
  .mo-post-pick-t {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mo-post-pick-sub {
    flex: none;
    font-size: 11px;
    color: var(--c-text-3);
  }
  /* 已选预览缩略图 */
  .mo-post-prev {
    width: 38px; height: 38px;
    border-radius: 11px;
    flex: none;
    overflow: hidden;
    position: relative;
    background: rgba(62,143,201,.10);
  }
  .mo-post-prev img,
  .mo-post-prev video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .mo-post-prev.vid { background: #0B1F2D; }
  .mo-post-prev em {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    color: #fff;
    font-style: normal;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(8,20,30,.6);
    display: flex; align-items: center; justify-content: center;
    padding-left: 1px;
  }

  .mo-post-foot {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  .mo-post-foot button {
    flex: 1;
    height: 46px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 !important;
  }
  .mo-post-foot .btn-primary:disabled {
    opacity: .7;
  }

  /* 朋友圈卡片：最后一点微调 */
  .mo-item { transition: transform .14s ease; }
  .mo-item:active { transform: scale(.995); }
  .mo-name { color: var(--c-text) !important; }
  /* ==================== 朋友圈九宫格（固定尺寸像微信） ==================== */
  .mo-grid {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    max-width: 240px;
  }
  .mo-grid.g1 { grid-template-columns: 1fr; }
  .mo-grid.g2 { grid-template-columns: repeat(2, 1fr); }
  .mo-grid.g3 { grid-template-columns: repeat(3, 1fr); }

  .mo-cell {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(62,143,201,.08);
    cursor: pointer;
    transition: transform .1s ease, opacity .1s ease;
  }
  .mo-cell:active { transform: scale(.965); opacity: .88; }
  /* 固定正方形（单图例外，给个舒服的 4:3） */
  .mo-grid.g2 .mo-cell,
  .mo-grid.g3 .mo-cell { aspect-ratio: 1 / 1; }
  .mo-grid.g1 .mo-cell { aspect-ratio: 4 / 3; border-radius: 13px; }

  .mo-cell img,
  .mo-cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mo-cell.vid { background: #0B1F2D; }
  .mo-cell .mo-play {
    position: absolute;
    left: 50%; top: 50%;
    width: 30px; height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: rgba(8,20,30,.5);
    border: 1.2px solid rgba(255,255,255,.75);
  }
  .mo-cell .mo-play::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    margin: -5px 0 0 -3px;
    border-left: 8px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
  }
  /* 单图太大时限制高度 */
  .mo-grid.g1 .mo-cell { max-height: 260px; }

  /* 发帖里的已选网格 */
  .mo-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    width: 100%;
  }
  .mo-post-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(62,143,201,.10);
  }
  .mo-post-cell img,
  .mo-post-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mo-post-cell.vid { background: #0B1F2D; }
  .mo-post-cell em {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    font-size: 8px; color: #fff; font-style: normal;
    width: 16px; height: 16px; border-radius: 50%;
    background: rgba(8,20,30,.6);
    display: flex; align-items: center; justify-content: center;
    padding-left: 1px;
  }
  .mo-post-del {
    position: absolute;
    right: 2px; top: 2px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: rgba(10,20,30,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
  }
  .mo-post-add {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1.5px dashed rgba(62,143,201,.32);
    background: rgba(62,143,201,.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--c-brand);
    font-weight: 300;
  }
  .mo-post-add:active { background: rgba(62,143,201,.13); }
  .mo-post-pick.has-file {
    display: block;
    padding: 10px;
    cursor: default;
  }

  /* 朋友圈顶栏：返回/发帖键离边 16px */
  #moments > .topbar {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
  #moments > .topbar > .ic:first-child {
    margin-left: 2px !important;
  }
  #moments > .topbar > .ic:last-child {
    margin-right: 2px !important;
  }
  /* 其它全屏页也顺手留边（收藏/搜索/邀请成员） */
  #favPage > .topbar,
  #searchPage > .topbar,
  #gmInvitePage > .topbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  /* ==================== 全局收尾：底部安全区 + 细节 ==================== */
  /* 1) 所有主页面内容区留出底部空间，不被 tabbar 遮住 */
  #app > .content {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }
  /* 2) 聊天页要留输入栏的高度 */
  #chat #msgs {
    padding-bottom: 12px !important;
  }
  /* 3) 「我」页面最后一张卡下面多留一点 */
  #app .me-card:last-of-type,
  #app .me-group-title:last-of-type + .me-card {
    margin-bottom: 6px !important;
  }

  /* 4) 三栏分隔线改成真正的等分（用伪元素中线） */
  .me-stats .stat + .stat::before {
    left: -0.5px !important;
    height: 34px !important;
    opacity: .9;
  }

  /* 5) 会话列表：时间与箭头别挤在一起 */
  #app .row .time {
    margin-right: 6px !important;
    font-variant-numeric: tabular-nums;
  }
  #app .row > .chevron, #app .row .arrow {
    margin-left: 2px !important;
    opacity: .55;
  }

  /* 6) 搜索框统一高度和圆角 */
  #convFilter, .search-input {
    height: 40px !important;
    border-radius: 13px !important;
    font-size: 13.5px !important;
  }

  /* 7) 底部导航：加一点内阴影更稳 */
  .tabbar {
    padding-bottom: env(safe-area-inset-bottom) !important;
    box-shadow: 0 -2px 16px rgba(16,52,74,.06) !important;
  }
  .tabbar > div {
    transition: color .16s ease, transform .16s ease;
  }
  .tabbar > div.on { transform: translateY(-1px); }

  /* 8) 空状态统一样式 */
  .empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    padding: 46px 24px !important;
    font-size: 13px !important;
    color: var(--c-text-3) !important;
    line-height: 1.7 !important;
  }
  .empty small { font-size: 11.5px !important; opacity: .8; }

  /* 9) 所有弹出层的按钮高度统一 */
  .row2 button, .sheet .row2 button {
    height: 46px !important;
    border-radius: 14px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
  }

  /* 10) 滚动条统一成细的 */
  .content::-webkit-scrollbar,
  #msgs::-webkit-scrollbar,
  .sheet .box::-webkit-scrollbar {
    width: 3px;
  }
  .content::-webkit-scrollbar-thumb,
  #msgs::-webkit-scrollbar-thumb,
  .sheet .box::-webkit-scrollbar-thumb {
    background: rgba(62,143,201,.18);
    border-radius: 2px;
  }
  /* ==================== 会话操作菜单 v2 ==================== */
  .cm-head {
    text-align: center;
    padding: 2px 0 13px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--c-line);
  }
  .cm-head-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cm-head-sub {
    font-size: 11px;
    color: var(--c-text-3);
    margin-top: 4px;
    letter-spacing: .5px;
  }
  .cm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background .12s ease, transform .1s ease;
  }
  .cm-row:active {
    background: rgba(62,143,201,.08);
    transform: scale(.985);
  }
  .cm-ico {
    width: 36px; height: 36px;
    border-radius: 12px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .cm-ico .ico-svg { width: 17px; height: 17px; }
  .cm-ico.c-blue   { background: linear-gradient(150deg,#E4F2FC,#C9E6F9); color:#3B8CC7; }
  .cm-ico.c-green  { background: linear-gradient(150deg,#E2F5EA,#C6EBD6); color:#3D9E6B; }
  .cm-ico.c-indigo { background: linear-gradient(150deg,#E8EAFB,#CFD5F5); color:#5566B5; }
  .cm-ico.c-gold   { background: linear-gradient(150deg,#FDF3DA,#F7E1AE); color:#B98426; }
  .cm-ico.c-slate  { background: linear-gradient(150deg,#EDF1F5,#D9E2EA); color:#5B7183; }
  .cm-ico.c-red    { background: linear-gradient(150deg,#FBE1E4,#F3C2C8); color:#C9554B; }

  .cm-body { flex: 1; min-width: 0; }
  .cm-body b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: .1px;
  }
  .cm-body i {
    display: block;
    font-size: 11px;
    font-style: normal;
    color: var(--c-text-3);
    margin-top: 3px;
    line-height: 1.4;
  }
  .cm-arrow {
    flex: none;
    font-size: 16px;
    color: var(--c-text-3);
    opacity: .45;
  }

  .cm-cancel {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--c-text-2);
    background: transparent;
    border: 1px solid var(--c-line);
  }
  .cm-cancel:active { background: rgba(62,143,201,.08); }
  /* ==================== 性能优化：干掉最拖 GPU 的东西 ==================== */
  /* 1) backdrop-filter 是低端机头号杀手，全部降级成半透明底 */
  * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* 2) 列表项跳过屏外渲染（Chromium 系明显提升长列表滚动） */
  #content > .row,
  .mo-item,
  .fav-row,
  .gmi-row,
  .gm-row,
  .wh-row,
  .sg-cell,
  .st-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 72px;
  }
  #msgs > .msg { contain-intrinsic-size: auto 60px; }
  .sg-cell, .st-card, .gmi-row { contain-intrinsic-size: auto 88px; }

  /* 3) 动画只动 transform / opacity，别触发重排 */
  .row, .msg, .mo-item, .fav-row, .gmi-row, .gm-row, .wh-row {
    will-change: auto !important;
  }

  /* 4) 阴影减负：把三层阴影压成一层更淡的 */
  #content > .row,
  .mo-item,
  .fav-row,
  .gmi-row,
  .me-stats,
  .gm-row {
    box-shadow: 0 1px 6px rgba(16,52,74,.045) !important;
  }

  /* 5) 过渡只写具体属性，别再 transition:all */
  .row, .msg, .bubble, .mo-item, .fav-row, .gmi-row, .gm-row, .stat, .me-card .line {
    transition-property: background-color, transform, opacity !important;
    transition-duration: .14s !important;
  }

  /* 6) 长列表里图片延迟解码 */
  #content img, #msgs img, .mo-item img, .fav-row img {
    decoding: async;
  }

  /* 7) 顶部/底部栏避免频繁重绘 */
  .topbar, .tabbar, .composer {
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  /* 8) 去掉部分装饰性动画（呼吸/漂浮会让整页持续重绘） */
  @media (prefers-reduced-motion: no-preference) {
    /* 保留必要的反馈动画，其余停掉 */
  }
  .empty-ico, .me-av-wrap {
    animation: none !important;
  }

  /* 9) 聊天气泡去掉多余内阴影 */
  .msg .bubble { box-shadow: none !important; }
  .msg.me .bubble { box-shadow: 0 1px 4px rgba(46,110,150,.18) !important; }

  /* 10) 滚动容器加合成提示 */
  #content, #msgs, #moList, .ep-body, #gmiContent {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* ==================== 性能优化 第二轮 ==================== */
  /* 1) backdrop-filter 彻底禁用（含 -webkit-） */
  html body *,
  html body .composer,
  html body .tabbar,
  html body .topbar,
  html body .sheet,
  html body .box,
  html body .pk-pick-box,
  html body .mo-play,
  html body .msg-pop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-filter: none;
  }
  /* 用纯色/半透明替代毛玻璃 */
  .msg-pop { background: rgba(18,32,46,.98) !important; }
  .composer { background: var(--c-bg-1) !important; }
  .tabbar { background: var(--c-surface) !important; }
  .sheet .box, .box { background: var(--c-surface) !important; }

  /* 2) 阴影统一减到最轻——只保留"贴边"那一层 */
  * {
    box-shadow: none;
  }
  /* 然后按需恢复极轻的 */
  #content > .row,
  .mo-item,
  .fav-row,
  .gmi-row,
  .gm-row,
  .me-stats,
  .st-card,
  .sg-cell,
  .wh-card,
  .me-top {
    box-shadow: 0 1px 5px rgba(16,52,74,.04) !important;
  }
  .tabbar {
    box-shadow: 0 -1px 10px rgba(16,52,74,.05) !important;
  }
  .wh-card {
    box-shadow: 0 6px 18px rgba(52,120,170,.22) !important;
  }
  .msg.me .bubble {
    box-shadow: 0 1px 3px rgba(46,110,150,.16) !important;
  }
  /* 红包/转账保留一点点立体感 */
  .pkt.rp, .pkt.tr {
    box-shadow: 0 2px 10px rgba(190,53,33,.18) !important;
  }
  .pkt.tr { box-shadow: 0 2px 10px rgba(24,68,102,.10) !important; }

  /* 3) 头像和图标不做滤镜 */
  img, .av, .ico-svg, .mo-av, .gmi-av, .cm-ico, .stat-ico {
    filter: none !important;
    transition: none !important;
  }

  /* 4) 减少过渡目标 */
  .ico-svg { transition: none !important; }
  /* ==================== 大图查看器 v2 ==================== */
  .zoom-wrap {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(6,14,22,.96);
    display: flex;
    flex-direction: column;
    animation: zmIn .18s ease forwards;
  }
  @keyframes zmIn { from { opacity: 0; } to { opacity: 1; } }

  .zm-bar {
    flex: 0 0 auto;
    height: 52px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: env(safe-area-inset-top);
    box-sizing: content-box;
  }
  .zm-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.10);
    color: #EAF4FB;
    cursor: pointer;
    transition: background .12s ease, transform .1s ease;
  }
  .zm-btn:active { transform: scale(.92); background: rgba(255,255,255,.22); }
  .zm-btn .ico-svg { width: 18px; height: 18px; stroke-width: 2.2; }
  .zm-count {
    font-size: 12px;
    color: rgba(234,244,251,.72);
    letter-spacing: 1px;
  }

  .zm-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 28px;
    overflow: hidden;
  }
  .zm-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.3,1);
  }
  .zm-stage img.zm-ok {
    opacity: 1;
    transform: scale(1);
  }

  .zm-loading {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    display: flex; align-items: center; justify-content: center;
  }
  .zm-loading i {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.85);
    animation: stkSpin .7s linear infinite;
    display: block;
  }
  .zm-err {
    color: rgba(255,200,195,.92);
    font-size: 13px;
  }

  /* ==================== 视频查看器 v2 ==================== */
  .video-full {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(6,14,22,.97);
    display: flex;
    flex-direction: column;
    animation: zmIn .18s ease forwards;
  }
  .vf-bar {
    flex: 0 0 auto;
    height: 52px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: env(safe-area-inset-top);
    box-sizing: content-box;
  }
  .vf-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.10);
    color: #EAF4FB;
    font-size: 15px;
    cursor: pointer;
    transition: background .12s ease, transform .1s ease;
  }
  .vf-btn:active { transform: scale(.92); background: rgba(255,255,255,.22); }
  .vf-btn .ico-svg { width: 18px; height: 18px; stroke-width: 2.2; }
  .vf-title { font-size: 12px; color: rgba(234,244,251,.72); letter-spacing: 1px; }

  .vf-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 30px;
    position: relative;
    overflow: hidden;
  }
  .vf-stage video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    background: #000;
    outline: 0;
  }
  .vf-loading {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .vf-loading i {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.85);
    animation: stkSpin .7s linear infinite;
    display: block;
  }
  /* ============ 修：已抢完的红包不能残留红色/金色装饰 ============ */
  /* 1) 已抢完：所有装饰光影全部清掉 */
  .pkt.rp.done {
    box-shadow: 0 2px 8px rgba(60,80,95,.16) !important;
    background-image: linear-gradient(148deg, #9AA8B4 0%, #7C8B98 60%, #6B7A87 100%) !important;
  }
  /* 2) 已抢完时，右上角那团暖红光直接消失 */
  .pkt.rp.done::after {
    display: none !important;
    background: none !important;
  }
  /* 3) 已抢完的专属红包：金色内描边换成中性灰边 */
  .pkt.rp.done.excl,
  .pkt.rp.excl.done {
    box-shadow: 0 2px 8px rgba(60,80,95,.16),
                inset 0 0 0 1.5px rgba(255,255,255,.24) !important;
  }
  /* 4) 所有内部元素在 done 状态下不许再带红 */
  .pkt.rp.done .rp-ico {
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.28) !important;
  }
  .pkt.rp.done .rp-ico span { color: rgba(255,255,255,.92) !important; }
  .pkt.rp.done .rp-amt { color: #fff !important; }
  .pkt.rp.done .rp-note { color: rgba(255,255,255,.86) !important; }
  .pkt.rp.done .rp-tag {
    background: rgba(0,0,0,.14) !important;
    color: rgba(255,255,255,.85) !important;
  }
  .pkt.rp.done .rp-cnt {
    background: rgba(255,255,255,.16) !important;
    color: rgba(255,255,255,.85) !important;
  }

  /* 5) 顺带：转账已收款也清干净 */
  .pkt.tr.got {
    box-shadow: 0 2px 8px rgba(60,80,95,.14) !important;
  }

  /* 6) 没抢完的专属红包保留金边，但把外发光收敛一点（原来红边太宽） */
  .pkt.rp.excl:not(.done) {
    box-shadow: 0 3px 12px rgba(190,53,33,.20),
                inset 0 0 0 1.2px rgba(255,214,150,.42) !important;
  }
  /* ==================== 媒体查看器 v3 ==================== */
  /* 环境光底衬：同一张图模糊放大，营造氛围 */
  .zm-ambient {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(46px) saturate(1.4) brightness(.5);
    opacity: .6;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.15);
  }

  .zoom-wrap,
  .video-full {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: #060F16;
    display: flex;
    flex-direction: column;
    animation: zmFade .2s ease forwards;
    overflow: hidden;
  }
  @keyframes zmFade { from { opacity: 0; } to { opacity: 1; } }

  /* 顶栏：透明浮在内容上 */
  .zm-bar, .vf-bar {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    height: 50px;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top);
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,.42), transparent);
  }
  .zm-btn, .vf-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.12);
    font-size: 15px;
    cursor: pointer;
    flex: none;
    transition: background .12s ease, transform .1s ease;
  }
  .zm-btn:active, .vf-btn:active { transform: scale(.9); background: rgba(255,255,255,.26); }
  .zm-btn .ico-svg, .vf-btn .ico-svg { width: 17px; height: 17px; stroke-width: 2.2; }
  .zm-title, .vf-title {
    font-size: 12.5px;
    color: rgba(255,255,255,.62);
    letter-spacing: 1.2px;
    font-weight: 500;
  }

  /* 舞台 */
  .zm-stage, .vf-stage {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    overflow: hidden;
  }
  .zm-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transform: scale(.94);
    transition: opacity .24s ease, transform .3s cubic-bezier(.2,.85,.3,1);
    cursor: zoom-in;
    will-change: transform;
  }
  .zm-stage img.zm-ok { opacity: 1; transform: scale(1); }

  .vf-stage video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    background: #000;
    outline: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
  }

  /* 转圈 */
  .zm-spin {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    display: flex; align-items: center; justify-content: center;
    z-index: 4;
    pointer-events: none;
  }
  .zm-spin i {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.9);
    animation: stkSpin .75s linear infinite;
    display: block;
  }
  .zm-err { color: rgba(255,190,185,.95); font-size: 13px; }

  /* 视频大播放键 */
  .vf-bigplay {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%) scale(1);
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(8,18,26,.55);
    border: 1.5px solid rgba(255,255,255,.42);
    color: rgba(255,255,255,.95);
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    padding-left: 4px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 5;
    cursor: pointer;
  }
  .vf-bigplay.show { opacity: 1; pointer-events: auto; }

  /* 图片底部操作栏 */
  .zm-foot {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 34px;
    padding: 12px 0 calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,.42), transparent);
  }
  .zm-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.85);
    cursor: pointer;
    transition: transform .1s ease, color .12s ease;
  }
  .zm-act:active { transform: scale(.92); color: #fff; }
  .zm-act .ico-svg { width: 20px; height: 20px; stroke-width: 2; }
  .zm-act em {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .5px;
    opacity: .85;
  }

  /* 视频进度条 */
  .vf-progress {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
    cursor: pointer;
  }
  .vf-bar-in {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.16);
    overflow: hidden;
  }
  .vf-bar-in i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(to right, #7CC3E8, #4A97CB);
    transition: width .12s linear;
  }
  .vf-time {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 10.5px;
    color: rgba(255,255,255,.62);
    font-variant-numeric: tabular-nums;
  }
  /* ==================== 新消息提示 v2 ==================== */
  .new-tip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%);
    bottom: 78px !important;
    z-index: 60 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px 8px 13px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
    color: #fff !important;
    background: linear-gradient(160deg, #7CC3E8, #3E8FC9) !important;
    box-shadow: 0 6px 18px rgba(62,143,201,.34) !important;
    cursor: pointer;
    white-space: nowrap;
    animation: ntIn .22s cubic-bezier(.2,.9,.3,1) forwards;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .new-tip.hidden { display: none !important; }
  .new-tip:active { transform: translateX(-50%) scale(.94); }
  /* 左侧的下箭头做成小圆点 */
  .new-tip::before {
    content: '';
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    flex: none;
  }
  .new-tip::after {
    content: '';
    position: absolute;
    left: 19px; top: 50%;
    width: 5px; height: 5px;
    margin-top: -2px;
    border-left: 1.6px solid #fff;
    border-bottom: 1.6px solid #fff;
    transform: rotate(-45deg);
  }
  #newTipN {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
  }
  @keyframes ntIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.9); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }

  /* 强制把聊天页设为定位上下文（否则 fixed 会跑偏） */
  #chat { position: relative; }
  /* 只保留一个"新消息"提示 */
  #unreadJump { display: none !important; }
  .new-tip {
    bottom: 76px !important;
    z-index: 70 !important;
  }
  /* ==================== @ 提及面板 v2 ==================== */
  .mention-panel {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(100% + 8px) !important;
    max-height: 300px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: var(--c-surface) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(24,68,102,.07) !important;
    box-shadow: 0 -8px 28px rgba(16,52,74,.14), 0 2px 8px rgba(16,52,74,.06) !important;
    display: flex;
    flex-direction: column;
    animation: mtIn .18s cubic-bezier(.2,.9,.3,1) forwards;
  }
  @keyframes mtIn {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
  }
  .mention-panel.hidden { display: none !important; }

  .mt-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px 9px;
    border-bottom: 1px solid var(--c-line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--c-text-3);
  }
  .mt-count {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--c-brand-deep);
    background: rgba(62,143,201,.10);
    padding: 2px 8px;
    border-radius: 8px;
  }

  .mt-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 7px;
  }
  .mt-list::-webkit-scrollbar { width: 3px; }
  .mt-list::-webkit-scrollbar-thumb { background: rgba(62,143,201,.22); border-radius: 2px; }

  .mt-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 13px;
    cursor: pointer;
    transition: background .1s ease, transform .1s ease;
  }
  .mt-row:active { background: rgba(62,143,201,.10); transform: scale(.985); }

  .mt-av {
    width: 34px; height: 34px;
    border-radius: 11px;
    flex: none;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  }
  .mt-av-all {
    background: linear-gradient(150deg, #FBDDE6, #F2AFC4) !important;
    color: #A63A5E !important;
  }
  .mt-av-all .ico-svg { width: 17px; height: 17px; }

  .mt-body { flex: 1; min-width: 0; }
  .mt-body b {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mt-body i {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    color: var(--c-text-3);
    margin-top: 2px;
  }
  .mt-me {
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    color: var(--c-brand-deep);
    background: rgba(62,143,201,.13);
    padding: 1px 6px;
    border-radius: 6px;
    flex: none;
  }
  .mt-on {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #45A574;
    margin-right: 4px;
    vertical-align: 1px;
  }
  .mt-all .mt-body b { color: #A63A5E; }
  /* ==================== 宽屏自适应（平板 / 桌面） ==================== */
  /* 手机端不受影响，只在 ≥600px 时生效 */
  @media (min-width: 600px) {
    /* 整页居中，两侧留出干净的背景 */
    body {
      background:
        radial-gradient(circle at 18% 8%, rgba(143,208,242,.22), transparent 46%),
        radial-gradient(circle at 82% 92%, rgba(143,208,242,.16), transparent 44%),
        #EAF3FA !important;
    }
    #app, #chat, #moments, #favPage, #searchPage, #gmInvitePage {
      max-width: 720px !important;
      margin: 0 auto !important;
      box-shadow: 0 0 0 1px rgba(24,68,102,.05), 0 10px 44px rgba(16,52,74,.08);
      border-radius: 0;
    }
    /* 顶栏跟着一起收 */
    #app > .topbar, #chat > .topbar, #moments > .topbar,
    #favPage > .topbar, #searchPage > .topbar, #gmInvitePage > .topbar {
      max-width: 720px;
      margin: 0 auto;
    }
    /* 底部导航也居中，不铺满整屏 */
    .tabbar {
      max-width: 560px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      right: auto !important;
      width: 100% !important;
    }
    /* 登录页也收一下 */
    #login .login-card, #login form, #login > div {
      max-width: 420px;
      margin-left: auto;
      margin-right: auto;
    }
    /* 弹层居中且限制宽度 */
    .sheet, .sheet-host {
      align-items: center !important;
      justify-content: center !important;
    }
    .sheet .box, .sheet-host .box {
      max-width: 520px !important;
      width: calc(100% - 40px) !important;
      margin: 0 auto !important;
      border-radius: 20px !important;
      max-height: 88vh;
      overflow-y: auto;
    }
    /* 列表行：头像和文字别被拉太开 */
    #content > .row {
      max-width: none;
    }
    /* 聊天消息别铺满整条 */
    #msgs { padding-left: 8px; padding-right: 8px; }
    .msg-col { max-width: 70% !important; }
  }

  /* 大屏（桌面）：再宽一点，但仍然收在可读范围 */
  @media (min-width: 1100px) {
    #app, #chat, #moments, #favPage, #searchPage, #gmInvitePage {
      max-width: 780px !important;
    }
    #app > .topbar, #chat > .topbar, #moments > .topbar,
    #favPage > .topbar, #searchPage > .topbar, #gmInvitePage > .topbar {
      max-width: 780px;
    }
  }

  /* 超小屏（≤340）：压缩一点内距，别挤 */
  @media (max-width: 340px) {
    #content > .row { padding-left: 10px !important; padding-right: 10px !important; }
    .row .name { font-size: 14px !important; }
    .me-stats .stat-num { font-size: 16px !important; }
    .tabbar > div { font-size: 10px !important; }
  }

  /* 宽屏底部导航：不用 transform，改成左右 auto + margin 居中 */
  @media (min-width: 600px) {
    .tabbar {
      left: 0 !important;
      right: 0 !important;
      transform: none !important;
      width: auto !important;
      max-width: 560px !important;
      margin: 0 auto !important;
      border-radius: 20px 20px 0 0 !important;
    }
    .tabbar > div {
      flex: 1 1 0 !important;
      min-width: 0 !important;
    }
  }

  /* 宽屏底部导航：固定宽度 + 左右 absolute，不参与内容宽度计算 */
  @media (min-width: 600px) {
    .tabbar {
      position: fixed !important;
      left: 50% !important;
      bottom: 0 !important;
      top: auto !important;
      right: auto !important;
      transform: translateX(-50%) !important;
      width: 520px !important;
      max-width: calc(100vw - 40px) !important;
      margin: 0 !important;
      display: flex !important;
      z-index: 80 !important;
      border-radius: 20px 20px 0 0 !important;
      box-shadow: 0 -2px 18px rgba(16,52,74,.10) !important;
    }
    .tabbar > div {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      white-space: nowrap !important;
    }
    .tabbar > div span, .tabbar > div em {
      white-space: nowrap !important;
      writing-mode: horizontal-tb !important;
    }
  }
  /* ==================== 禁止页面缩放 ==================== */
  html {
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    touch-action: manipulation;   /* 禁用双击缩放，但保留单指滚动/双指缩放给子元素 */
  }
  body {
    touch-action: manipulation;
    -webkit-touch-callout: none;  /* 长按不弹系统菜单 */
    overscroll-behavior: none;    /* 禁掉下拉刷新/边缘回弹 */
  }
  /* 输入框仍可正常输入，不受影响 */
  input, textarea, select, button {
    touch-action: manipulation;
  }
  /* ==================== iOS Safari 兼容补丁 ==================== */
  /* 1) .page 统一用安全的高度单位：先给 vh 兜底，支持 dvh 再升级 */
  #chat, #moments, #app, #favPage, #searchPage, #gmInvitePage {
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;   /* iOS 旧版兜底 */
  }

  /* 2) :has() 的兜底 —— 老 Safari 不认，改用属性/类兜底 */
  .bubble.img-bubble,
  .bubble.sticker-bubble {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  /* 3) inset 简写的兜底（iOS < 14.1） */
  .zm-ambient,
  .zoom-wrap,
  .video-full,
  .pk-pick-sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  /* 4) aspect-ratio 兜底（iOS < 15）：用 padding-top 撑正方形 */
  @supports not (aspect-ratio: 1 / 1) {
    .mo-cell,
    .stk-cell,
    .mo-post-cell,
    .gmi-av,
    .mo-post-add {
      position: relative;
      height: 0;
      padding-bottom: 100%;
    }
    .mo-cell > img,
    .mo-cell > video,
    .stk-cell > img,
    .mo-post-cell > img,
    .mo-post-cell > video,
    .mo-post-add > * {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: cover;
    }
  }

  /* 5) content-visibility 兜底（iOS < 18 支持差） */
  @supports not (content-visibility: auto) {
    #content > .row,
    #msgs > .msg,
    .mo-item,
    .fav-row,
    .gmi-row,
    .gm-row,
    .wh-row,
    .sg-cell,
    .st-card {
      content-visibility: visible;
      contain-intrinsic-size: auto;
    }
  }

  /* 6) -webkit- 前缀全覆盖 */
  .mo-cell, .stk-cell, .mo-post-cell,
  .zoom-wrap, .video-full, .mention-panel,
  .pkt.rp, .pkt.tr, .new-tip {
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
  }

  /* 7) iOS 的 100% 高度问题：body 也要撑开 */
  html, body {
    height: 100%;
    min-height: 100%;
  }
  body {
    -webkit-overflow-scrolling: touch;
  }

  /* 8) flex 里的 min-height:0（iOS 老版本对 flex 收缩处理不同） */
  #content, #msgs, #moList, .ep-body, #gmiContent {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    min-height: 0;
  }

  /* 9) 输入框在 iOS 上字号 < 16px 会引发自动放大 —— 统一 16px 起 */
  input, textarea, select {
    font-size: 16px !important;
  }
  /* 但按钮和下拉别跟着变 */
  button, .btn-primary, .btn-ghost, .pk-quick button {
    font-size: inherit;
  }
  /* 输入框视觉尺寸用 height 控，不靠字号 */
  #inputMsg, #convFilter, #gmiSearch, #dmAcc, #pkAmt, #pkCnt, #pkNote,
  #moText, .field input, .sheet input, .box input {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 12px;
  }

  /* 10) 100vh 在 iOS 地址栏展开时会溢出：给底部安全区 */
  .tabbar {
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }
  .composer {
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }
  .zm-bar, .vf-bar {
    padding-top: max(8px, env(safe-area-inset-top)) !important;
  }
  .zm-foot, .vf-progress {
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  /* 11) iOS 的橡皮筋回弹：主容器禁掉 */
  #content, #msgs, #moList {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* 12) 禁用长按弹菜单（iOS 上会很烦） */
  * {
    -webkit-touch-callout: none;
  }
  /* 但输入框和可复制的文字要保留 */
  input, textarea {
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    user-select: text;
  }
  .mo-text, .msg .bubble, .wh-t {
    -webkit-user-select: text;
    user-select: text;
  }
  /* ==================== 新消息提示 v3 ==================== */
  .new-tip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 82px !important;
    z-index: 75 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 9px 16px !important;
    border-radius: 22px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    color: #fff !important;
    background: linear-gradient(135deg, #6FBBE6 0%, #3E8FC9 100%) !important;
    box-shadow:
      0 4px 14px rgba(62,143,201,.32),
      0 0 0 1px rgba(255,255,255,.14) inset !important;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    animation: ntIn .26s cubic-bezier(.2,.9,.3,1) forwards;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .new-tip.hidden { display: none !important; }
  .new-tip:active {
    transform: translateX(-50%) scale(.94) !important;
    box-shadow: 0 2px 8px rgba(62,143,201,.28) !important;
  }
  /* 左侧箭头做成圆底小图标 */
  .new-tip::before {
    content: '';
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.24);
    flex: none;
    position: relative;
  }
  .new-tip::after {
    content: '';
    position: absolute;
    left: 12px; top: 50%;
    width: 6px; height: 6px;
    margin-top: -4px;
    border-left: 1.8px solid #fff;
    border-bottom: 1.8px solid #fff;
    transform: rotate(-45deg);
  }
  #newTipN {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
  }
  @keyframes ntIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.92); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }

  /* 顺带把"回到底部"圆钮也做精致 */
  #toBottom {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.07) !important;
    box-shadow: 0 3px 12px rgba(16,52,74,.13) !important;
    color: var(--c-brand-deep) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  #toBottom:active {
    transform: scale(.9);
    box-shadow: 0 1px 5px rgba(16,52,74,.18) !important;
  }
  #toBottom.hidden { display: none !important; }
  /* ==================== 聊天内搜索 ==================== */
  .sq-list {
    max-height: 46vh;
    overflow-y: auto;
    margin: 10px 0 4px;
    border-radius: 13px;
    background: var(--c-bg-1);
    padding: 6px;
  }
  .sq-hint {
    text-align: center;
    padding: 26px 10px;
    font-size: 12px;
    color: var(--c-text-3);
  }
  .sq-count {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--c-text-3);
    padding: 4px 8px 7px;
    letter-spacing: .5px;
  }
  .sq-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 11px;
    cursor: pointer;
    transition: background .12s ease;
  }
  .sq-row:active { background: rgba(62,143,201,.10); }
  .sq-row + .sq-row { border-top: 1px solid rgba(24,68,102,.045); }
  .sq-who {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--c-brand-deep);
  }
  .sq-txt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-text);
    word-break: break-word;
  }
  .sq-txt b {
    color: var(--c-brand);
    font-weight: 800;
    background: rgba(62,143,201,.14);
    border-radius: 3px;
    padding: 0 2px;
  }
  .sq-time {
    font-size: 10px;
    color: var(--c-text-3);
  }

  /* 跳到消息时高亮一下 */
  .msg.msg-flash {
    animation: msgFlash 1.6s ease forwards;
  }
  @keyframes msgFlash {
    0%   { background: rgba(62,143,201,.22); border-radius: 12px; }
    70%  { background: rgba(62,143,201,.12); border-radius: 12px; }
    100% { background: transparent; }
  }
  /* 搜索结果里标出命中的原名/账号 */
  .srch-hit {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-brand-deep);
    background: rgba(62,143,201,.13);
    padding: 1px 6px;
    border-radius: 6px;
    margin-right: 6px;
    vertical-align: 1px;
  }
  /* ==================== 字号设置真正生效 ==================== */
  /* zoom 打底（在 applyFont 里设置 html 的 zoom），这里做细节补偿 */
  html {
    --fs-scale: 1;
  }

  /* zoom 状态下 fixed 元素会被缩放，尺寸需要跟着还原 */
  body.fs-small .tabbar,
  body.fs-large .tabbar,
  body.fs-huge .tabbar {
    /* 已经是 zoom 后的坐标，保持原样即可 */
  }

  /* 小字号：行高收紧一点，视觉更协调 */
  body.fs-small .mo-text,
  body.fs-small .msg .bubble { line-height: 1.55; }
  body.fs-large .mo-text,
  body.fs-large .msg .bubble { line-height: 1.72; }
  body.fs-huge .mo-text,
  body.fs-huge .msg .bubble { line-height: 1.8; }

  /* 大字号时，被截断的文字给多一点空间 */
  body.fs-large .row .name,
  body.fs-huge .row .name { letter-spacing: 0; }
  body.fs-huge .row { padding-top: 14px; padding-bottom: 14px; }


  /* ==================== 卡顿：干掉列表里成倍的阴影 ==================== */
  /* 列表头像不要阴影（46 行 × 2 层 = 92 个合成负担） */
  #content > .row .av,
  #content > .row .avatar,
  #content .row .av,
  #content .row .avatar {
    box-shadow: none !important;
  }
  /* 列表行只留一层极轻的贴边阴影 */
  #content > .row {
    box-shadow: 0 1px 3px rgba(16,52,74,.03) !important;
  }
  /* 头像的白色内描边用 border 代替 inset shadow */
  #content .row .av,
  #content .row .avatar {
    outline: 1px solid rgba(255,255,255,.35);
    outline-offset: -1px;
  }
  /* 聊天气泡也别每层都带阴影 */
  #msgs .msg .av { box-shadow: none !important; }
  /* ==================== 记住账号 勾选框美化 ==================== */
  .remember {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  /* 原生 checkbox 藏起来但保留可点可聚焦 */
  .remember input[type="checkbox"] {
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
  }
  /* 自绘方块 */
  .rm-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.6px solid rgba(62,143,201,.34);
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .16s cubic-bezier(.3,1.4,.5,1);
    position: relative;
  }
  /* 对勾（用两条边画） */
  .rm-mark::after {
    content: '';
    width: 11px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    margin-top: -3px;
    transition: transform .22s cubic-bezier(.3,1.6,.5,1);
    display: block;
    border-radius: 1px;
  }
  /* 勾选态 */
  .remember input:checked + .rm-mark {
    background: linear-gradient(135deg, #6FBBE6, #3E8FC9);
    border-color: transparent;
    box-shadow: 0 3px 9px rgba(62,143,201,.32);
  }
  .remember input:checked + .rm-mark::after {
    transform: rotate(-45deg) scale(1);
  }
  /* 按下反馈 */
  .remember:active .rm-mark {
    transform: scale(.88);
  }
  /* 键盘聚焦（无障碍） */
  .remember input:focus-visible + .rm-mark {
    box-shadow: 0 0 0 3px rgba(62,143,201,.20);
  }
  /* 文字跟着状态变 */
  .remember span {
    font-size: 12.5px;
    color: #7A93A6;
    letter-spacing: .3px;
    transition: color .2s ease;
  }
  .remember input:checked ~ span {
    color: var(--c-brand-deep);
    font-weight: 600;
  }
  /* ==================== 记住账号：圆形柔和版 ==================== */
  .rm-mark {
    width: 21px !important;
    height: 21px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(62,143,201,.30) !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease, transform .16s cubic-bezier(.3,1.4,.5,1) !important;
  }
  .rm-mark::after {
    width: 8px !important;
    height: 4.5px !important;
    border-left: 1.8px solid #fff !important;
    border-bottom: 1.8px solid #fff !important;
    margin-top: -2px !important;
  }
  /* 勾选：淡蓝实底，不用饱和渐变 */
  .remember input:checked + .rm-mark {
    background: rgba(62,143,201,.88) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 6px rgba(62,143,201,.22) !important;
  }
  .remember:active .rm-mark { transform: scale(.9) !important; }
  /* 文字更淡，和页面统一 */
  .remember span {
    font-size: 12.5px !important;
    color: #8B9DAB !important;
    letter-spacing: .4px !important;
  }
  .remember input:checked ~ span {
    color: #3E8FC9 !important;
    font-weight: 500 !important;
  }
  /* ==================== 记住账号：小、淡、安静 ==================== */
  .rm-mark {
    width: 16px !important;
    height: 16px !important;
    border-radius: 4.5px !important;
    border: 1.3px solid rgba(24,68,102,.20) !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, transform .14s ease !important;
  }
  .rm-mark::after {
    width: 7px !important;
    height: 3.5px !important;
    border-left: 1.6px solid #fff !important;
    border-bottom: 1.6px solid #fff !important;
    margin-top: -2px !important;
    transition: transform .18s cubic-bezier(.3,1.5,.5,1) !important;
  }
  /* 勾上：只是淡淡一层蓝，不发光不投影 */
  .remember input:checked + .rm-mark {
    background: rgba(62,143,201,.55) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  .remember:active .rm-mark { transform: scale(.88) !important; }

  /* 文字：和右侧提示一个灰度 */
  .remember span {
    font-size: 12px !important;
    color: #8B9DAB !important;
    letter-spacing: .3px !important;
    font-weight: 400 !important;
  }
  .remember input:checked ~ span {
    color: #7A93A6 !important;
    font-weight: 400 !important;
  }
  /* 间距也收一点，别挤 */
  .remember { gap: 7px !important; }

  /* ==================== 长按消息：禁止浏览器原生复制菜单 ==================== */
  /* 气泡内文字不可选中 —— 长按只弹我们自己的菜单 */
  #msgs .msg,
  #msgs .msg *,
  #msgs .bubble,
  #msgs .bubble * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  /* 输入框和搜索框仍然可以正常选中 */
  #inputMsg, #convFilter, #sq, #gmiSearch, .sheet input, .box input {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
  }
  /* 会话列表 / 通讯录也禁掉长按选中（那些地方长按是菜单） */
  #content > .row,
  #content > .row * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }
  /* 朋友圈正文保留可选中（用户可能要复制段子） */
  .mo-text,
  .mo-text * {
    -webkit-user-select: text !important;
    user-select: text !important;
  }

  /* 消息区禁止选中（最强制） */
  #msgs {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }
  #msgs * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }
  /* ==================== 新消息提示 v4 ==================== */
  .new-tip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 68px !important;
    z-index: 75 !important;

    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px 0 6px !important;
    border-radius: 16px !important;
    box-sizing: border-box;

    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
    color: #fff !important;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    /* 单色偏深，别用亮渐变抢眼 */
    background: rgba(46,110,150,.94) !important;
    box-shadow: 0 3px 12px rgba(24,68,102,.26) !important;

    animation: ntIn .24s cubic-bezier(.2,.9,.3,1) forwards;
    transition: transform .12s ease, background .12s ease;
  }
  .new-tip.hidden { display: none !important; }
  .new-tip:active {
    transform: translateX(-50%) scale(.94) !important;
    background: rgba(46,110,150,1) !important;
  }

  /* 左侧小圆箭头（内置，不再用伪元素堆两层） */
  .new-tip::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    flex: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M6 13l6 6 6-6'/></svg>");
    background-size: 11px 11px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .new-tip::after { display: none !important; }

  #newTipN {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0;
  }

  @keyframes ntIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  /* ==================== 查看器 v4 精修 ==================== */
  /* 顶栏按钮：更细腻的玻璃质感 */
  .zm-btn, .vf-btn {
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
  }
  .zm-btn:active, .vf-btn:active {
    background: rgba(255,255,255,.28) !important;
    transform: scale(.9);
  }
  /* 倍速按钮 */
  .vf-rate {
    width: auto !important;
    min-width: 40px;
    padding: 0 9px !important;
    border-radius: 18px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
  }
  .vf-rate.on {
    background: rgba(124,195,232,.34) !important;
    border-color: rgba(124,195,232,.5) !important;
    color: #EAF7FF !important;
  }

  /* 图片舞台：给拖拽留出手感 */
  .zm-stage { touch-action: pan-y; }
  .zm-stage img { transition: opacity .24s ease, transform .28s cubic-bezier(.2,.85,.3,1); }

  /* 视频进度条：更细更精致 */
  .vf-bar-in {
    height: 3.5px !important;
    background: rgba(255,255,255,.14) !important;
    position: relative;
  }
  .vf-bar-in::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    width: 10px; height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.34);
    opacity: 0;
    transition: opacity .16s ease;
  }
  .vf-progress:active .vf-bar-in::after { opacity: 1; }
  .vf-bar-in i {
    background: linear-gradient(to right, #8FD4F5, #5FB0DE) !important;
    box-shadow: 0 0 6px rgba(143,212,245,.45);
  }
  /* 时间数字 */
  .vf-time {
    font-size: 10.5px !important;
    letter-spacing: .3px;
  }
  /* 底部操作栏：更轻的底 */
  .zm-foot {
    gap: 40px !important;
    padding-top: 14px !important;
  }
  .zm-act .ico-svg { width: 19px !important; height: 19px !important; }
  .zm-act em { font-size: 10px !important; }
  /* ==================== 图片/视频查看器：微信风格 ==================== */
  .zoom-wrap, .video-full {
    position: fixed !important;
    inset: 0 !important;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 900 !important;
    background: #000 !important;      /* 纯黑，不要环境光 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    opacity: 1;
    transition: opacity .15s ease;
    -webkit-user-select: none;
    user-select: none;
  }

  /* 图片：居中、按比例铺满可用区域，圆角去掉（微信没有圆角） */
  .zoom-wrap img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 0 !important;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    display: block;
  }
  .zoom-wrap img.zm-ok { opacity: 1; }

  /* 视频 */
  .video-full video {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: auto;
    background: #000;
    outline: 0;
    border-radius: 0 !important;
  }

  /* 右上角关闭键（微信是左上角或右上角的小 ✕，无底无框） */
  .zm-close {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.88);
    cursor: pointer;
    transition: opacity .18s ease;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
  }
  .zm-close .ico-svg { width: 19px; height: 19px; stroke-width: 2.2; }
  .zm-close:active { opacity: .6; }

  /* 点图片后控件淡出（微信的核心交互） */
  .zoom-wrap.ctrl-hidden .zm-close,
  .video-full.ctrl-hidden .zm-close,
  .video-full.ctrl-hidden .vf-bottom {
    opacity: 0;
    pointer-events: none;
  }

  /* 视频中间大播放键 */
  .vf-big {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%) scale(.9);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0,0,0,.42);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 15;
    cursor: pointer;
  }
  .vf-big.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%,-50%) scale(1);
  }

  /* 视频底部：时间 + 细进度条 */
  .vf-bottom {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    padding: 40px 16px calc(18px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to top, rgba(0,0,0,.62), transparent);
    transition: opacity .18s ease;
    z-index: 12;
  }
  .vf-cur, .vf-dur {
    font-size: 11px;
    color: rgba(255,255,255,.85);
    font-variant-numeric: tabular-nums;
    flex: none;
    min-width: 34px;
    text-align: center;
  }
  .vf-track {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.24);
    position: relative;
    cursor: pointer;
  }
  .vf-track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: #fff;
    transition: width .1s linear;
  }

  /* 加载转圈 */
  .zm-spin {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    z-index: 10;
    pointer-events: none;
    color: rgba(255,255,255,.7);
    font-size: 12px;
  }
  .zm-spin i {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2.2px solid rgba(255,255,255,.2);
    border-top-color: rgba(255,255,255,.85);
    animation: stkSpin .75s linear infinite;
    display: block;
  }
  /* ==================== 朋友圈 v5 ==================== */
  /* 顶部：加一层柔和渐变，和下面的卡片区分开 */
  #moments > .topbar {
    background: linear-gradient(180deg, #EAF5FC 0%, #F3F9FD 100%) !important;
    border-bottom: 1px solid rgba(24,68,102,.04) !important;
  }
  #moments > .topbar .title {
    font-size: 16.5px !important;
    font-weight: 800 !important;
    letter-spacing: .5px;
  }

  /* 内容区背景：极淡的斜向渐变，不是死白 */
  #moments > .content,
  #moments #moList {
    background: linear-gradient(178deg, #F3F9FD 0%, #EAF3FA 100%);
  }

  /* 卡片：去掉硬边，改用柔和投影分层 */
  .mo-item {
    margin: 12px 12px !important;
    padding: 16px 15px 13px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow:
      0 1px 2px rgba(16,52,74,.035),
      0 8px 22px rgba(16,52,74,.05) !important;
    transition: transform .16s cubic-bezier(.2,.9,.3,1);
  }
  .mo-item:active { transform: scale(.993); }

  /* 头像：加一圈白边 + 轻投影，像贴在卡片上 */
  .mo-av {
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
    box-shadow:
      0 0 0 2px #fff,
      0 3px 10px rgba(16,52,74,.10) !important;
  }

  /* 名字 + 时间排一行（更紧凑） */
  .mo-name {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #163A52 !important;
    letter-spacing: .1px;
  }

  /* 正文：字距和行高都松开一点 */
  .mo-text {
    margin-top: 8px !important;
    font-size: 14.5px !important;
    line-height: 1.72 !important;
    color: #29465B !important;
    letter-spacing: .1px;
  }

  /* 图片/视频网格：更紧凑的间距 */
  .mo-grid {
    margin-top: 11px !important;
    gap: 5px !important;
    max-width: 246px !important;
  }
  .mo-cell {
    border-radius: 11px !important;
    box-shadow: 0 1px 4px rgba(16,52,74,.06);
  }
  .mo-grid.g1 .mo-cell {
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(16,52,74,.07);
  }
  /* 单图不做死板 4:3，给到 3:2 更自然 */
  .mo-grid.g1 .mo-cell { aspect-ratio: 3 / 2 !important; max-height: 280px; }

  /* 操作行：上边线更淡，图标更小 */
  .mo-meta {
    margin-top: 13px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(24,68,102,.04) !important;
  }
  .mo-meta > span:first-child {
    font-size: 10.5px !important;
    color: #8FA6B6 !important;
  }
  .mo-act {
    padding: 5px 9px !important;
    font-size: 11px !important;
    color: #7C93A5 !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }
  .mo-act .ico-svg { width: 12.5px !important; height: 12.5px !important; }
  .mo-act.on {
    color: #E2574C !important;
    background: rgba(226,87,76,.06) !important;
  }

  /* 点赞 / 评论：统一成浅灰块，靠文字区分 */
  .mo-likes {
    margin-top: 10px !important;
    padding: 9px 11px !important;
    border-radius: 10px !important;
    background: rgba(24,68,102,.032) !important;
    font-size: 11.5px !important;
    color: #4E6E85 !important;
    line-height: 1.5;
  }
  .mo-heart {
    display: inline-flex;
    vertical-align: -2px;
    margin-right: 5px;
  }
  .mo-heart .ico-svg { width: 11px !important; height: 11px !important; fill: #E2574C; }

  .mo-comments {
    margin-top: 7px !important;
    padding: 9px 11px !important;
    border-radius: 10px !important;
    background: rgba(24,68,102,.032) !important;
  }
  .mo-cmt {
    font-size: 12.5px !important;
    line-height: 1.68 !important;
    color: #35546B !important;
    padding: 1px 0;
  }
  .mo-cmt b { color: #2E6E96 !important; font-weight: 700; }
  .mo-cmt + .mo-cmt {
    border-top: 1px solid rgba(24,68,102,.04) !important;
    padding-top: 5px !important;
    margin-top: 3px !important;
  }

  /* 发帖按钮：更轻 */
  #moments .topbar .ic:last-child {
    width: 32px !important;
    height: 32px !important;
    border-radius: 11px !important;
    background: rgba(62,143,201,.11) !important;
    color: var(--c-brand-deep) !important;
    font-size: 19px !important;
  }

  /* 空状态 */
  #moList .empty {
    padding: 80px 24px !important;
    color: #8FA6B6 !important;
  }

  /* ==================== 长按消息：最终版（针对 iOS/微信内核） ==================== */
  /* 1) html/body 级别先关掉，防某些内核从父级继承 */
  html, body {
    -webkit-touch-callout: none;
  }
  /* 2) 整个聊天页所有文字不可选（输入区例外） */
  #chat, #chat * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }
  /* 3) 输入区放行 */
  #chat #inputMsg,
  #chat #inputMsg *,
  #chat textarea,
  #chat input {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
  }
  /* 4) 选中态透明（万一还是选上了，也看不见） */
  #chat ::selection {
    background: transparent !important;
    color: inherit !important;
  }
  #chat ::-moz-selection {
    background: transparent !important;
    color: inherit !important;
  }
  /* ==================== 查看器：iOS 相册风格 ==================== */
  .zoom-wrap {
    position: fixed !important;
    inset: 0 !important;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 900 !important;
    background: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
  }

  /* 顶部毛玻璃栏 */
  .zm-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: calc(52px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
    z-index: 20;
    box-sizing: border-box;
  }
  .zm-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.92);
    cursor: pointer;
    font-size: 16px;
    transition: background .14s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .zm-icon:active { background: rgba(255,255,255,.18); transform: scale(.9); }
  .zm-icon .ico-svg { width: 18px; height: 18px; stroke-width: 2.2; }
  .zm-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    letter-spacing: .5px;
  }

  /* 舞台 */
  .zm-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }
  .zoom-wrap img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    will-change: transform;
  }

  /* 底部工具条 */
  .zm-bottom {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    padding: 14px 0 calc(20px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    background: linear-gradient(to top, rgba(0,0,0,.52), transparent);
    z-index: 20;
  }
  .zm-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.88);
    cursor: pointer;
    transition: transform .12s ease, color .12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .zm-tool .ico-svg { width: 21px; height: 21px; stroke-width: 1.9; }
  .zm-tool em {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .4px;
  }
  .zm-tool:active { transform: scale(.9); color: #fff; }

  /* 转圈 */
  .zm-spin {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    z-index: 10;
    pointer-events: none;
    color: rgba(255,255,255,.7);
    font-size: 12px;
  }
  .zm-spin i {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2.4px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.85);
    animation: stkSpin .75s linear infinite;
    display: block;
  }
  .zm-err { color: rgba(255,190,185,.92); }

  /* 视频：沿用同一套顶栏/底栏 */
  .video-full {
    position: fixed !important;
    inset: 0 !important;
    z-index: 900 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .video-full video {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    background: #000;
    outline: 0;
    border-radius: 0;
  }
  .vf-big {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%) scale(.88);
    width: 66px; height: 66px;
    border-radius: 50%;
    background: rgba(0,0,0,.42);
    color: #fff;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    padding-left: 5px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 15;
    cursor: pointer;
  }
  .vf-big.show { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
  /* ==================== 视频页：对齐图片风格 ==================== */
  .video-full {
    position: fixed !important;
    inset: 0 !important;
    z-index: 900 !important;
    background: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1;
  }
  .vf-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .vf-stage video {
    max-width: 100vw;
    max-height: 100%;
    width: 100%;
    background: #000;
    outline: 0;
    opacity: 0;
    transition: opacity .22s ease;
  }
  .vf-stage.ready video { opacity: 1; }

  /* 倍速按钮 */
  .vf-rate {
    width: auto !important;
    min-width: 40px;
    padding: 0 10px !important;
    border-radius: 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: rgba(255,255,255,.14) !important;
  }
  .vf-rate.on {
    background: rgba(124,195,232,.36) !important;
    color: #EAF7FF !important;
  }

  /* 底部进度区 */
  .vf-bottom {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 34px 16px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    z-index: 20;
    transition: opacity .18s ease;
  }
  .vf-bottom .vf-time {
    font-size: 11px;
    color: rgba(255,255,255,.88);
    font-variant-numeric: tabular-nums;
    flex: none;
    min-width: 36px;
    text-align: center;
    letter-spacing: .3px;
  }
  .vf-track {
    flex: 1;
    height: 3.5px;
    border-radius: 2px;
    background: rgba(255,255,255,.22);
    position: relative;
    cursor: pointer;
  }
  .vf-track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(to right, #9DDBF7, #6FBEE9);
    box-shadow: 0 0 6px rgba(157,219,247,.5);
    transition: width .1s linear;
  }

  /* 控件隐藏 */
  .video-full.ctrl-hidden .zm-top,
  .video-full.ctrl-hidden .vf-bottom { opacity: 0; pointer-events: none; }
  .zm-top { transition: opacity .18s ease; }
  /* ==================================================================
     UI 统一规范 v1（第 1 轮：设计令牌 + 基础一致性）
     目标：把全站零散写死的字号/圆角/间距，收敛到一套令牌里。
     ================================================================== */
  :root {
    /* —— 字号阶梯（1.2 倍频） —— */
    --t-xs: 10.5px;   /* 极小：标签、辅助 */
    --t-sm: 11.5px;   /* 小：说明文字 */
    --t-bs: 12.5px;   /* 基础小：次要信息 */
    --t-md: 13.5px;   /* 正文小：列表副标题 */
    --t-lg: 14.5px;   /* 正文：消息、名字 */
    --t-xl: 16px;     /* 标题小 */
    --t-2xl: 18px;    /* 标题 */
    --t-3xl: 22px;    /* 大标题 */
    --t-4xl: 30px;    /* 数字 */

    /* —— 字重 —— */
    --w-normal: 400;
    --w-mid: 500;
    --w-bold: 600;
    --w-black: 700;
    --w-heavy: 800;

    /* —— 圆角阶梯 —— */
    --r-1: 8px;
    --r-2: 11px;
    --r-3: 14px;
    --r-4: 17px;
    --r-5: 20px;
    --r-pill: 999px;

    /* —— 间距阶梯（4 的倍数） —— */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;

    /* —— 阴影 —— */
    --sh-1: 0 1px 3px rgba(16,52,74,.04);
    --sh-2: 0 2px 8px rgba(16,52,74,.05);
    --sh-3: 0 4px 16px rgba(16,52,74,.07);
    --sh-4: 0 10px 30px rgba(16,52,74,.09);

    /* —— 语义色 —— */
    --ok: #3D9E6B;
    --warn: #C89233;
    --danger: #C9554B;
    --info: #3E8FC9;
  }

  /* ============ 第 1 项：全站圆角统一 ============ */
  /* 卡片类统一 --r-4（17px），小元件 --r-2（11px） */
  #content > .row,
  .mo-item,
  .fav-row,
  .gmi-row,
  .gm-row,
  .me-card,
  .st-card,
  .me-stats {
    border-radius: var(--r-4) !important;
  }
  .me-stats .stat,
  .sg-cell,
  .cm-row,
  .wh-row,
  .gmi-check,
  .stk-cell {
    border-radius: var(--r-2) !important;
  }
  /* 按钮统一胶囊或 --r-3 */
  .btn-primary, .btn-ghost, .row2 button {
    border-radius: var(--r-3) !important;
  }

  /* ============ 第 2 项：字号统一 ============ */
  /* 列表主标题 14.5，副标题 11.5 */
  #content > .row .name,
  .gmi-name,
  .gm-name,
  .cm-body b,
  .fav-t,
  .wh-t {
    font-size: var(--t-lg) !important;
    font-weight: var(--w-bold) !important;
  }
  #content > .row .last,
  .gmi-sub,
  .gm-sub2,
  .cm-body i,
  .fav-m,
  .wh-m {
    font-size: var(--t-sm) !important;
    font-weight: var(--w-normal) !important;
  }
  /* 分组小标题 */
  .conv-group,
  .wh-sec,
  .mo-meta > span:first-child,
  .gmi-sec {
    font-size: var(--t-xs) !important;
    font-weight: var(--w-black) !important;
    letter-spacing: .8px !important;
  }

  /* ============ 第 3 项：间距统一 ============ */
  #content { padding-left: var(--s-3); padding-right: var(--s-3); }
  #content > .row {
    padding: var(--s-3) !important;
    margin-bottom: var(--s-2) !important;
  }
  .mo-item {
    margin-left: var(--s-3) !important;
    margin-right: var(--s-3) !important;
    margin-bottom: var(--s-2) !important;
  }

  /* ============ 第 4 项：阴影统一 ============ */
  #content > .row,
  .mo-item,
  .fav-row,
  .gmi-row,
  .gm-row {
    box-shadow: var(--sh-1) !important;
  }
  .me-card, .me-stats, .st-card {
    box-shadow: var(--sh-2) !important;
  }

  /* ============ 第 5 项：交互反馈统一 ============ */
  /* 所有可点元素：按下缩 97% + 轻微变色 */
  #content > .row:active,
  .mo-item:active,
  .fav-row:active,
  .gmi-row:active,
  .gm-row:active,
  .cm-row:active,
  .wh-row:active,
  .sg-cell:active,
  .st-card:active,
  .me-card .line:active,
  .mo-act:active,
  .zm-tool:active {
    transform: scale(.975);
    transition: transform .1s ease;
  }

  /* ============ 第 6 项：滚动条统一 ============ */
  ::-webkit-scrollbar { width: 3px; height: 3px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(62,143,201,.22);
    border-radius: var(--r-pill);
  }
  ::-webkit-scrollbar-thumb:active { background: rgba(62,143,201,.4); }

  /* ============ 第 7 项：分割线统一 ============ */
  .me-card .line + .line,
  .row + .row,
  .mo-cmt + .mo-cmt {
    border-top-color: rgba(24,68,102,.045) !important;
  }

  /* ============ 第 8 项：焦点态（无障碍） ============ */
  button:focus-visible,
  input:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid rgba(62,143,201,.55);
    outline-offset: 2px;
  }
  button:focus:not(:focus-visible) { outline: none; }

  /* ============ 第 9 项：禁用态统一 ============ */
  button:disabled,
  .btn-primary:disabled {
    opacity: .45 !important;
    filter: grayscale(.3);
    cursor: not-allowed;
  }

  /* ============ 第 10 项：文字省略统一 ============ */
  .name, .last, .gmi-name, .gm-name, .fav-t, .wh-t, .cm-body b, .st-t {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 修：图片查看器的舞台高度必须撑满 */
  .zoom-wrap {
    display: flex !important;
    flex-direction: column !important;
  }
  .zm-stage {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  .zm-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }
  /* 缩略图条：横排 */
  .zm-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
  }
  .zm-th { flex: 0 0 auto !important; }
  /* ==================== 图片查看器：绝对定位布局（最可靠） ==================== */
  .zoom-wrap {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 900 !important;
    background: #000 !important;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
  }

  /* 看大图：整张图完整显示（contain），四周留黑边是正常的。
     想看细节用双指放大 + 拖动，不要靠 cover 硬裁。 */
  #zmImg {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    transform: none;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0 !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 3;
  }

  /* 舞台容器不参与布局，只做事件接收 */
  .zm-stage {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1;
  }
  .zm-stage img {
    /* 上面 #zmImg 已经定义，这里清空避免冲突 */
  }

  /* 顶栏 */
  .zm-top {
    position: absolute !important;
    top: 0; left: 0; right: 0;
    height: 52px;
    padding: 0 12px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
    z-index: 20 !important;
    box-sizing: border-box;
  }

  /* 缩略图条 */
  .zm-thumbs {
    position: absolute !important;
    left: 0; right: 0;
    bottom: 74px;
    height: 58px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 18 !important;
    background: linear-gradient(to top, rgba(0,0,0,.35), transparent);
    box-sizing: border-box;
    scrollbar-width: none;
  }
  .zm-thumbs::-webkit-scrollbar { display: none; }

  /* 底栏 */
  .zm-bottom {
    position: absolute !important;
    left: 0; right: 0;
    bottom: 0;
    height: 74px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 52px;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
    z-index: 20 !important;
    box-sizing: border-box;
  }

  /* 转圈 */
  .zm-spin {
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    z-index: 15 !important;
    pointer-events: none;
  }

  /* 视频：同样绝对定位 */
  .video-full {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 900 !important;
    background: #000 !important;
    overflow: hidden;
  }
  #vfVideo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    background: #000;
    outline: 0;
    z-index: 3;
  }
  .vf-stage {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    display: block !important;
    padding: 0 !important;
  }
  .vf-big {
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%) scale(.9);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    padding-left: 5px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 15 !important;
  }
  .vf-big.show { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
  .vf-bottom {
    position: absolute !important;
    left: 0; right: 0;
    bottom: 0;
    height: 70px;
    padding: 0 16px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0));
    z-index: 20 !important;
    box-sizing: border-box;
  }
  /* ==================== 图片/视频查看器：最终版 ==================== */
  .zoom-wrap {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 900 !important;
    background: #000 !important;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    opacity: 1;
  }
  #zmImg {
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
    width: auto; height: auto;
    object-fit: contain;
    display: block;
    will-change: transform;
    transform-origin: center center;
  }

  .video-full {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 900 !important;
    background: #000 !important;
    overflow: hidden;
    opacity: 1;
  }
  #vfVideo {
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
    width: auto; height: auto;
    background: #000;
    outline: 0;
    display: block;
  }

  /* 左上角关闭键 */
  .vf-close {
    position: absolute;
    left: 8px;
    top: calc(8px + env(safe-area-inset-top));
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.92);
    cursor: pointer;
    z-index: 30;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    transition: background .14s ease, transform .1s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
  }
  .vf-close .ico-svg { width: 21px; height: 21px; stroke-width: 2.4; }
  .vf-close:active { background: rgba(255,255,255,.16); transform: scale(.9); }

  /* 加载转圈 */
  .zm-spin {
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    z-index: 15;
    pointer-events: none;
    color: rgba(255,255,255,.75);
    font-size: 12px;
  }
  .zm-spin i {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2.2px solid rgba(255,255,255,.2);
    border-top-color: rgba(255,255,255,.85);
    animation: stkSpin .75s linear infinite;
    display: block;
  }
  .zm-err { color: rgba(255,190,185,.95); }

  /* 图片铺满整页：容器就是屏幕，图片在容器内最大显示 */
  #zmImg {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center center;
    display: block !important;
    transform: none;
    transform-origin: center center;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000;
  }
  /* 图片查看器：允许双指手势 */
  .zoom-wrap {
    touch-action: none !important;
    -webkit-overflow-scrolling: touch;
  }
  #zmImg {
    touch-action: none !important;
    -webkit-user-drag: none;
    user-select: none;
  }
  /* 图片：始终按比例铺满整屏，居中 */
  #zmImg {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000;
    transition: transform .26s cubic-bezier(.22,.9,.3,1);
  }

  /* ==================== 小屏 / 横屏 / 键盘 适配加固 ==================== */
  /* 1) 所有可滚动内容区，底部留出 tabbar 的空间（tabbar 60 + 边距 10 = 70，留 84） */
  #content,
  #msgs,
  #moList,
  #gmiContent,
  #favContent {
    padding-bottom: 84px !important;
    box-sizing: border-box;
  }
  /* 聊天页底部被输入栏占用，不需要再留 tabbar 空间 */
  #msgs { padding-bottom: 12px !important; }

  /* 2) 横屏（高度很小）：压缩纵向空间 */
  @media (orientation: landscape) and (max-height: 500px) {
    .tabbar {
      height: 46px !important;
      margin: 0 12px 6px !important;
      border-radius: 24px !important;
    }
    .tabbar svg { width: 18px !important; height: 18px !important; }
    .tabbar div { font-size: 9px !important; gap: 0 !important; padding: 4px 0 !important; }
    #content { padding-bottom: 62px !important; }
    .topbar { height: 44px !important; }
    .topbar .title { font-size: 15px !important; }
    /* 会话行矮一点，横屏能看到更多 */
    #content > .row { padding: 8px 10px !important; margin-bottom: 6px !important; }
    #content > .row .av { width: 34px !important; height: 34px !important; }
  }

  /* 3) 极窄屏（<=340px）进一步压缩 */
  @media (max-width: 340px) {
    #content > .row { padding: 10px 11px !important; }
    #content > .row .av { width: 40px !important; height: 40px !important; }
    #content > .row .name { font-size: 14px !important; }
    #content > .row .last { font-size: 11px !important; }
    .tabbar div { font-size: 9px !important; }
    .tabbar svg { width: 19px !important; height: 19px !important; }
  }

  /* 4) 软键盘弹出时：整个聊天页缩到键盘上方（微信效果）
        --vh 是布局视口高度，--kb-h 是键盘占掉的高度，相减就是还剩的可视区。
        以前只有 .composer 单独 fixed 到底，结果它被键盘盖住，
        消息列表也还按全屏高度算，最新几条就藏在键盘下面了。 */
  /* #chat 是 position:fixed; inset:0，只改 height 会被 bottom:0 覆盖，
     所以把 bottom 一起顶上去，高度自然就剩「键盘上方那一块」。 */
  body.kb-open #chat {
    bottom: var(--kb-h, 0px) !important;
    height: auto !important;
    max-height: none !important;
  }
  body.kb-open .composer {
    position: relative !important;
    left: auto; right: auto;
    bottom: auto;
    z-index: auto;
  }
  body.kb-open #msgs {
    padding-bottom: 12px !important;
  }
  /* 输入栏贴住键盘时不需要安全区留白（已经被键盘占了） */
  body.kb-open .composer {
    padding-bottom: 10px !important;
  }

  /* ==================== 红包金额输入框修复 ==================== */
  /* 外层行：¥ 和输入框垂直居中对齐 */
  .pk-amt-row,
  .pk-amount,
  .pk-money {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 56px;
  }

  /* 金额输入框：给足高度，字号做大（像微信红包） */
  #pkAmt {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 56px !important;
    line-height: 56px !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #163A52 !important;
    letter-spacing: .5px;
    border: 1.5px solid rgba(62,143,201,.16) !important;
    border-radius: 14px !important;
    background: #fff !important;
    outline: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  #pkAmt::placeholder {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #B4C6D4 !important;
    letter-spacing: 0;
  }
  #pkAmt:focus {
    border-color: rgba(62,143,201,.55) !important;
    box-shadow: 0 0 0 3px rgba(62,143,201,.10) !important;
  }

  /* ¥ 符号 */
  .pk-amt-row > span:first-child,
  .pk-amt-row > b,
  .pk-amt-row .pk-yen,
  .pk-amount > span:first-child {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2E6E97 !important;
    line-height: 1 !important;
    flex: none;
  }

  /* 个数输入框也一起修（同样被压扁的问题） */
  #pkCnt {
    height: 44px !important;
    line-height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    font-size: 16px !important;
    border: 1.5px solid rgba(62,143,201,.16) !important;
    border-radius: 12px !important;
    background: #fff !important;
    outline: 0 !important;
    -webkit-appearance: none;
    appearance: none;
  }
  #pkCnt:focus {
    border-color: rgba(62,143,201,.55) !important;
    box-shadow: 0 0 0 3px rgba(62,143,201,.10) !important;
  }

  /* 留言输入框 */
  #pkNote {
    height: 48px !important;
    line-height: 48px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    border: 1.5px solid rgba(62,143,201,.16) !important;
    border-radius: 12px !important;
    background: #fff !important;
    outline: 0 !important;
    -webkit-appearance: none;
    appearance: none;
  }
  #pkNote:focus {
    border-color: rgba(62,143,201,.55) !important;
    box-shadow: 0 0 0 3px rgba(62,143,201,.10) !important;
  }

  /* 键盘弹出时弹层整体上移，别被挡 */
  body.kb-open .sheet,
  body.kb-open .box {
    max-height: calc(100vh - var(--kb-h, 0px) - 20px) !important;
  }

  /* 红包金额行：.pk-amt-wrap 里是 ¥ + input */
  .pk-amt-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 56px;
  }
  .pk-yen {
    flex: none !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2E6E97 !important;
    line-height: 1 !important;
    width: auto !important;
  }

  /* ==================== 顶栏标题：群名可省略、人数不被挤 ==================== */
  .topbar .title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 4px;
  }
  .topbar .title .tt-name {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    max-width: 100%;
  }
  .topbar .title .online-tag {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: #3D9E6B !important;
    margin-left: 0 !important;
    letter-spacing: 0 !important;
  }
  .topbar .title .online-tag.offline {
    color: #9AAFBF !important;
  }
  /* 顶栏本身：让标题区能真正收缩 */
  .topbar {
    display: flex !important;
    align-items: center !important;
  }
  .topbar .title { flex: 1 1 auto !important; }
  .topbar .ic { flex: 0 0 36px !important; }

  /* ==================== 视频全屏播放器修复 ==================== */
  #vfVideo {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    background: #000 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* 播放器容器 */
  .video-full {
    display: block !important;
  }
  /* ==================== 聊天里的视频：只显示封面 ==================== */
  .video-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    max-width: 240px;
    background: #0B1F2D;
    box-shadow: 0 2px 10px rgba(11,31,45,.18);
  }
  .video-poster {
    display: block;
    width: 240px;
    height: 135px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(150deg, #16394F, #0B1F2D);
  }
  .video-poster-empty {
    background: linear-gradient(150deg, #1A425C, #0B1F2D);
  }
  .video-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    pointer-events: none;
  }
  /* 中间播放按钮 */
  .video-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    border: 1.5px solid rgba(255,255,255,.72);
    position: relative;
    backdrop-filter: blur(2px);
    box-shadow: 0 3px 12px rgba(0,0,0,.28);
  }
  .video-play::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-38%, -50%);
    width: 0; height: 0;
    border-left: 13px solid rgba(255,255,255,.95);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
  /* 左上角视频标识 */
  .video-badge {
    position: absolute;
    left: 8px; top: 8px;
    padding: 2px 7px;
    border-radius: 7px;
    background: rgba(0,0,0,.42);
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .4px;
    line-height: 1.4;
  }
  /* 右下角时长 */
  .video-dur {
    position: absolute;
    right: 8px; bottom: 8px;
    padding: 2px 7px;
    border-radius: 7px;
    background: rgba(0,0,0,.46);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
  }
  .video-wrap:active { transform: scale(.985); }

  /* ==================== 邀请成员页 v2 ==================== */
  #gmInvitePage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(178deg, #F3F9FD 0%, #EAF3FA 100%);
  }

  /* 顶栏 */
  #gmInvitePage .gmi-top {
    flex: none;
    height: 52px;
    background: linear-gradient(180deg, #EAF5FC, #F4FAFD);
    border-bottom: 1px solid rgba(24,68,102,.05);
  }
  .gmi-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: .5px;
    color: #163A52 !important;
  }

  /* 搜索框：独立一行，更大气 */
  .gmi-searchbar {
    flex: none;
    position: relative;
    margin: 10px 12px 6px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    border: 1.5px solid rgba(62,143,201,.12);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    box-sizing: border-box;
    transition: border-color .16s ease, box-shadow .16s ease;
  }
  .gmi-searchbar:focus-within {
    border-color: rgba(62,143,201,.5);
    box-shadow: 0 0 0 3px rgba(62,143,201,.09);
  }
  .gmi-search-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A9FD8;
    opacity: .55;
    line-height: 1;
    transition: opacity .16s ease;
  }
  .gmi-searchbar:focus-within .gmi-search-ico { opacity: .9; }
  .gmi-search-ico .ico-svg { width: 16px; height: 16px; }
  #gmiSearch {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 16px !important;
    color: #163A52;
    padding: 0 !important;
    box-shadow: none !important;
  }
  #gmiSearch::placeholder { color: #A8BAC8; }

  /* 已选头像条 */
  .gmi-picked {
    flex: none;
    display: flex;
    gap: 8px;
    padding: 2px 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    min-height: 0;
  }
  .gmi-picked::-webkit-scrollbar { display: none; }
  .gmi-picked:empty { display: none; }
  .gmi-pk {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    animation: gmiPop .2s cubic-bezier(.3,1.4,.5,1) forwards;
  }
  .gmi-pk::after {
    content: '';
    position: absolute;
    right: -3px; top: -3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #3E8FC9;
    border: 1.5px solid #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'><path d='M5 5l14 14M19 5L5 19'/></svg>");
    background-size: 9px 9px;
    background-position: center;
    background-repeat: no-repeat;
  }
  @keyframes gmiPop {
    from { transform: scale(.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  /* 列表区 */
  #gmiContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px 12px;
    box-sizing: border-box;
  }

  /* 分组标题 */
  #gmiContent .gmi-sec {
    font-size: 10.5px;
    font-weight: 700;
    color: #8FA6B6;
    letter-spacing: .8px;
    padding: 12px 4px 6px;
  }

  /* 好友行：卡片式 */
  #gmiContent > .gmi-row,
  #gmiContent .gmi-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 7px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16,52,74,.04);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  #gmiContent .gmi-row:active { transform: scale(.985); }
  #gmiContent .gmi-row.on {
    background: linear-gradient(135deg, #F0F8FE, #E6F3FC);
    box-shadow: 0 0 0 1.5px rgba(62,143,201,.36), 0 2px 8px rgba(62,143,201,.12);
  }

  /* 头像 */
  #gmiContent .gmi-av {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex: none;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 4px rgba(16,52,74,.08);
  }

  /* 名字 + 账号 */
  #gmiContent .gmi-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #163A52;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #gmiContent .gmi-sub {
    font-size: 11.5px;
    color: #8FA6B6;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 勾选框 */
  #gmiContent .gmi-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.6px solid rgba(24,68,102,.20);
    flex: none;
    margin-left: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .16s ease;
  }
  #gmiContent .gmi-row.on .gmi-check {
    background: linear-gradient(135deg, #6FBBE6, #3E8FC9);
    border-color: transparent;
  }
  #gmiContent .gmi-row.on .gmi-check::after {
    content: '';
    width: 9px; height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
    display: block;
  }

  /* 底部操作条 */
  .gmi-foot {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92);
    border-top: 1px solid rgba(24,68,102,.055);
    box-shadow: 0 -2px 14px rgba(16,52,74,.05);
  }
  .gmi-count {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    color: #6D8798;
    letter-spacing: .2px;
  }
  #gmiOk {
    flex: none;
    height: 42px;
    padding: 0 22px;
    border-radius: 13px;
    border: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    background: linear-gradient(135deg, #74C0E9, #3E8FC9);
    box-shadow: 0 4px 14px rgba(62,143,201,.30);
    transition: transform .12s ease, opacity .12s ease;
  }
  #gmiOk:active:not(:disabled) { transform: scale(.96); }
  #gmiOk:disabled {
    background: #D6E2EB;
    color: #9AAFBF;
    box-shadow: none;
  }

  /* 空状态 */
  #gmiContent .empty {
    padding: 70px 20px;
    text-align: center;
    color: #A8BAC8;
    font-size: 13px;
  }
  /* ==================== 发起群聊 ==================== */
  .ng-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 12px;
    margin: 4px 0 10px;
    border-radius: 13px;
    background: rgba(255,255,255,.9);
    border: 1.5px solid rgba(62,143,201,.12);
    box-sizing: border-box;
  }
  .ng-search:focus-within { border-color: rgba(62,143,201,.5); }
  .ng-search span { font-size: 13px; opacity: .45; }
  #ngQ {
    flex: 1; min-width: 0;
    border: 0 !important; outline: 0 !important;
    background: transparent !important;
    font-size: 16px !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .ng-picked {
    display: flex; gap: 7px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .ng-picked::-webkit-scrollbar { display: none; }
  .ng-picked:empty { display: none; }
  .ng-pk {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 11px;
    position: relative;
    animation: gmiPop .18s cubic-bezier(.3,1.4,.5,1) forwards;
  }
  .ng-pk::after {
    content: '';
    position: absolute;
    right: -3px; top: -3px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #3E8FC9 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round'><path d='M5 5l14 14M19 5L5 19'/></svg>") center/8px no-repeat;
    border: 1.5px solid #fff;
  }

  .ng-list {
    max-height: 44vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4px;
  }
  .ng-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin-bottom: 6px;
    border-radius: 13px;
    background: rgba(255,255,255,.86);
    transition: transform .12s ease;
  }
  .ng-row:active { transform: scale(.985); }
  .ng-row.on {
    background: linear-gradient(135deg, #F0F8FE, #E6F3FC);
    box-shadow: 0 0 0 1.5px rgba(62,143,201,.36);
  }
  .ng-av {
    width: 38px; height: 38px;
    border-radius: 11px;
    flex: none;
    background-size: cover;
    background-position: center;
  }
  .ng-info { flex: 1; min-width: 0; }
  .ng-name {
    font-size: 14px; font-weight: 600; color: #163A52;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .ng-sub {
    font-size: 11px; color: #8FA6B6; margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .ng-check {
    width: 21px; height: 21px;
    border-radius: 50%;
    border: 1.6px solid rgba(24,68,102,.20);
    flex: none;
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    transition: all .16s ease;
  }
  .ng-row.on .ng-check {
    background: linear-gradient(135deg, #6FBBE6, #3E8FC9);
    border-color: transparent;
  }
  .ng-row.on .ng-check::after {
    content: '';
    width: 8px; height: 4.5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
  }
  .ng-more {
    text-align: center;
    font-size: 12px;
    color: #3E8FC9;
    padding: 10px;
    cursor: pointer;
  }
  .ng-empty {
    text-align: center;
    font-size: 12.5px;
    color: #A8BAC8;
    padding: 26px 0;
  }

  /* 群成员搜索无结果提示 */
  .gm-nohit {
    text-align: center;
    font-size: 12.5px;
    color: #A8BAC8;
    padding: 22px 0;
  }

  /* ==================================================================
     老浏览器兼容层（Android 5-9 / 旧 iOS / 老微信内核）
     这些内核不认 gap、inset、aspect-ratio、:has()、dvh
     → 全部补一套 margin / 定位 / 高度兜底
     ================================================================== */

  /* 1) 横向排列的地方：用 margin 代替 gap（gap 不支持时也不会贴在一起） */
  .topbar .title { padding: 0 6px; }
  .topbar .ic + .ic { margin-left: 2px; }
  .topbar .title .tt-name { margin-right: 6px; }
  .topbar .title .online-tag { margin-left: 0; }

  /* 聊天顶栏：标题区左右留白，避免群名和图标挤 */
  #chat .topbar .title {
    margin: 0 4px;
    padding: 0 6px;
    overflow: hidden;
  }

  /* 2) 通用：flex 容器里的相邻子元素补间距（gap 不支持时生效） */
  .composer > * + * { margin-left: 8px; }
  .tabbar > div + div { margin-left: 0; }
  .row2 > button + button { margin-left: 8px; }
  .sg-grid > .sg-cell { margin: 4px; }
  .pk-quick > button { margin-right: 7px; }
  .pk-quick > button:last-child { margin-right: 0; }
  .gmi-foot > * + * { margin-left: 12px; }
  .zm-bottom > * + * { margin-left: 44px; }
  .zm-top > * + * { margin-left: 8px; }

  /* 3) inset 兜底 */
  .zm-stage, .vf-stage, .video-cover, .zm-thumbs {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }
  .video-cover {
    position: absolute !important;
  }

  /* 4) aspect-ratio 兜底：给固定高度 */
  .mo-cell {
    min-height: 78px;
  }
  .mo-grid.g1 .mo-cell {
    min-height: 180px;
  }

  /* 5) dvh 兜底 */
  #gmInvitePage, .chat-page, #chat {
    height: 100vh;
    height: 100%;
  }

  /* 6) :has() 不支持时：缩略图条和底栏的间距恢复默认 */
  .zoom-wrap .zm-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

  /* 7) 老内核不认识 backdrop-filter 时，给纯色底兜底 */
  .tabbar { background: rgba(255,255,255,.94) !important; }
  .topbar { background: rgba(247,252,255,.98) !important; }

  /* 8) 强制所有 flex 行不换行挤压关键文字 */
  .topbar .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 9) 字体渲染兜底 */
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* 10) 老安卓的 1px 边框发虚问题 */
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    .row, .me-card, .mo-item { border-width: 1px; }
  }

  /* 构建时间：已按需求移除 */
  .login-build-unused {
    text-align: center;
    font-size: 9.5px;
    color: rgba(122,147,166,.5);
    letter-spacing: .5px;
    margin-top: 22px;
    padding-bottom: 16px;
    user-select: text;
    -webkit-user-select: text;
  }

  /* ==================================================================
     聊天顶栏：绝对抗错位版
     不管浏览器支不支持 flex / gap，都不会挤成一团
     ================================================================== */
  #chat .topbar {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-align-items: center;
    align-items: center !important;
    height: 56px;
    padding: 0 6px;
    box-sizing: border-box;
  }
  /* 左右按钮固定宽，绝对不压缩 */
  #chat .topbar .ic {
    -webkit-flex: 0 0 40px;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px;
    display: -webkit-box;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    overflow: visible;
  }
  /* 中间的标题区：占满剩余空间，内部两行 */
  #chat .topbar .title {
    -webkit-flex: 1 1 0%;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 4px !important;
    padding: 0 !important;
    display: -webkit-box !important;
    display: flex !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center !important;
    -webkit-align-items: center;
    align-items: center !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
  }
  /* 群名：一行，超长省略 */
  #chat .topbar .title .tt-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #163A52 !important;
    letter-spacing: .2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  /* 人数：单独一行，小字，绝对不挤群名 */
  #chat .topbar .title .online-tag {
    display: block !important;
    width: 100% !important;
    margin: 1px 0 0 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #3D9E6B !important;
    letter-spacing: .2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }
  #chat .topbar .title .online-tag.offline { color: #9AAFBF !important; }

  /* ==================== :has() 兜底样式 ==================== */
  /* 机器人不支持 :has 时，靠 JS 打的 .has-xxx / .is-sticker 类 */
  .msg.has-media { margin: 9px 0 !important; }
  .msg.has-poll { background: transparent !important; }
  .bubble.is-sticker {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .msg.has-sticker { margin: 6px 0 !important; align-items: flex-start; }
  .msg-col.col-poll { max-width: 78% !important; }
  .msg-col.col-pkt { max-width: 78% !important; }
  .msg-col > .bubble.is-sticker { align-self: flex-start; }
  .msg.me .msg-col > .bubble.is-sticker { align-self: flex-end !important; }

  /* ==================== 视口高度修正 ==================== */
  /* 用 --vh（JS 设的 innerHeight）代替 100vh，避免被浏览器工具栏吃掉 */
  #chat,
  #gmInvitePage,
  #moments,
  #favPage,
  #searchPage,
  .page {
    height: var(--vh, 100vh) !important;
    max-height: var(--vh, 100vh) !important;
  }
  #msgs {
    max-height: none !important;
  }
  /* 底部固定元素不越过可视区 */
  .composer,
  .tabbar {
    bottom: 0;
  }

  /* vivo / 老内核：整个 App 容器不超出视口 */
  #app,
  #chat {
    overflow: hidden;
  }

  /* ==================== 字号分级：只放大文字，不缩放页面 ==================== */
  /* 小 */
  body.fs-small #msgs .msg .bubble { font-size: 13px !important; }
  body.fs-small #content > .row .name { font-size: 13.5px !important; }
  body.fs-small #content > .row .last { font-size: 10.5px !important; }
  body.fs-small .mo-text { font-size: 13px !important; }

  /* 大 */
  body.fs-large #msgs .msg .bubble { font-size: 15.5px !important; line-height: 1.6 !important; }
  body.fs-large #content > .row .name { font-size: 16px !important; }
  body.fs-large #content > .row .last { font-size: 12.5px !important; }
  body.fs-large .mo-text { font-size: 15.5px !important; }
  body.fs-large .topbar .title .tt-name { font-size: 17px !important; }

  /* 超大 */
  body.fs-huge #msgs .msg .bubble { font-size: 16.5px !important; line-height: 1.65 !important; }
  body.fs-huge #content > .row .name { font-size: 17px !important; }
  body.fs-huge #content > .row .last { font-size: 13.5px !important; }
  body.fs-huge .mo-text { font-size: 16.5px !important; }
  body.fs-huge .topbar .title .tt-name { font-size: 18px !important; }
  body.fs-huge .topbar .title .online-tag { font-size: 11px !important; }
  /* 超大字号时，行高和间距也放开一点，别挤 */
  body.fs-huge #content > .row { padding: 14px 13px !important; }
  body.fs-huge #msgs .msg .bubble { padding: 12px 15px !important; }

  /* 任何情况下都不允许整页缩放（双保险） */
  html, body, #app, #chat, .page {
    zoom: normal !important;
  }

  

  

  

  

  /* ==================================================================
  /* ==================================================================
     图片查看器
     · 一律 contain：整张图完整显示，绝不裁切
     · 背景纯黑，四周留白就是黑场，不刺眼
     · 看细节用双指放大 / 拖动（缩放逻辑在 __zoom 里）
     【踩过的坑】以前为了消掉黑边改成 object-fit: cover，
       结果横图上下被砍、长图左右被砍，看着「全屏但只有一部分」。
       黑边是正常的，裁掉内容才是 bug。 */
  #zmImg {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
    border-radius: 0 !important;
    display: block !important;
  }
  #zmImg.zm-tall,
  #zmImg.zm-wide {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
  }

  /* ==================================================================
     视频全屏播放器
     · 视频不铺满（避免被浏览器接管成原生全屏）
     · 关闭键 32px 半透明圆，右上角
     ================================================================== */
  #videoFull {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    z-index: 9000 !important;
    overflow: hidden !important;
  }
  /* 看视频：同样铺满。
     横屏视频左右顶满、上下裁一点；竖屏视频上下顶满、左右裁一点。 */
  #videoFull #vfVideo {
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    /* 按视频原始比例显示，完整不裁切；尺寸由画面比例决定，控制条才不会飘 */
    width: auto !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #000 !important;
    object-fit: contain !important;
    object-position: center center !important;
    z-index: 1 !important;
    touch-action: none;
  }
  #videoFull #vfClose,
  #videoFull .vf-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, .55) !important;
    color: #fff !important;
    z-index: 10 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }
  #videoFull #vfClose svg {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: -8px !important;
    margin-top: -8px !important;
    stroke: #fff !important;
    pointer-events: none !important;
  }

  /* ==================================================================
     聊天气泡圆角统一（真机实测：14px / 16px / 0px 三种混着）
     定稿：文字气泡 18px · 图片视频卡片 14px · 表情包 12px
     ================================================================== */

  /* 文字气泡 */
  html body #msgs .msg .bubble,
  html body #msgs .msg.me .bubble,
  html body #msgs .msg:not(.me) .bubble {
    border-radius: 18px !important;
  }

  /* 图片 / 视频 / 红包 / 转账 / 投票 → 14px */
  html body #msgs .img-wrap,
  html body #msgs .video-wrap,
  html body #msgs .video-bubble,
  html body #msgs .pkt,
  html body #msgs .poll-card,
  html body #msgs .bubble.img-bubble,
  html body #msgs .bubble.video-bubble,
  html body #msgs .bubble.pkt-bubble,
  html body #msgs .bubble.poll-bubble {
    border-radius: 14px !important;
  }
  html body #msgs .img-wrap img,
  html body #msgs .video-wrap video,
  html body #msgs .video-wrap .video-poster,
  html body #msgs .video-wrap img.video-poster {
    border-radius: 14px !important;
  }

  /* 表情包 → 12px */
  html body #msgs .sticker-wrap,
  html body #msgs .sticker-wrap img,
  html body #msgs .stk-item img {
    border-radius: 12px !important;
  }

  /* 头像 */
  html body #msgs .msg .av {
    border-radius: 12px !important;
  }

  /* ==================================================================
     弹层：真机实测 opacity:0 + box translateY(306px)
     · .sheet 整体是透明的 → 什么都看不见
     · .box 的 sheetUp 动画卡在起始帧 → 被推出屏幕
     ================================================================== */

  /* 1) 弹层容器：必须不透明 */
  html body #sheetHost .sheet,
  html body .sheet {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background: rgba(8, 24, 36, .42) !important;
    z-index: 8000 !important;
  }

  /* 2) 面板本体：去掉动画，直接出现 */
  html body #sheetHost .box,
  html body .sheet .box {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 560px !important;
    max-height: calc(100% - 16px) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    background: #fff !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  /* 3) 弹层里的内容别被藏 */
  html body #sheetHost .box > * {
    opacity: 1 !important;
  }

  /* ==================================================================
     群聊面板（通讯录 → 群聊）
     带渐变群头像的卡片列表 + 底部两个操作条
     ================================================================== */
  .gp-wrap { display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; }

  .gp-head { padding: 2px 4px 13px; }
  .gp-title {
    font-size: 18px; font-weight: 700; letter-spacing: .2px;
    color: var(--c-text, #12303F);
  }
  .gp-sub {
    margin-top: 4px; font-size: 12.5px;
    color: var(--c-text-3, #93A8B8);
  }

  .gp-list {
    max-height: 52vh; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0; padding: 0 2px;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
  }

  .gp-row {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    padding: 9px 8px; border-radius: 15px;
    transition: background .15s ease, transform .12s ease;
  }
  .gp-row:active { background: rgba(61,143,199,.10); transform: scale(.985); }

  .gp-av {
    width: 46px; height: 46px; border-radius: 15px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; font-weight: 600;
    text-shadow: 0 1px 2px rgba(30,90,140,.25);
    box-shadow: 0 3px 10px rgba(61,143,199,.22);
    overflow: hidden;
  }
  .gp-av img { width: 100%; height: 100%; object-fit: cover; }

  .gp-body { flex: 1; min-width: 0; }
  .gp-name {
    font-size: 15px; font-weight: 600; line-height: 1.3;
    color: var(--c-text, #12303F);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .gp-meta {
    margin-top: 3px; display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--c-text-3, #93A8B8);
  }
  .gp-meta .ico-svg { width: 12px; height: 12px; opacity: .75; }

  .gp-arrow { flex: none; color: var(--c-text-3, #93A8B8); opacity: .45; }
  .gp-arrow .ico-svg { width: 16px; height: 16px; }

  .gp-acts {
    display: flex; gap: 8px;
    margin-top: 13px; padding-top: 13px;
    border-top: 1px solid var(--c-line, rgba(74,159,216,.16));
    min-width: 0;
  }
  .gp-act {
    flex: 1 1 0; min-width: 0;      /* 关键：不加 min-width:0 按钮会被内容撑破容器 */
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 11px 4px; border-radius: 13px;
    background: rgba(61,143,199,.085);
    color: var(--c-brand, #3D8FC7);
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden;
    transition: background .15s ease, transform .12s ease;
  }
  .gp-act > span {
    overflow: hidden; text-overflow: ellipsis; min-width: 0;
  }
  .gp-act:active { background: rgba(61,143,199,.18); transform: scale(.97); }
  .gp-act .ico-svg { width: 15px; height: 15px; }
  .gp-act.primary {
    background: linear-gradient(135deg, #4A9FD8, #3D8FC7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(61,143,199,.28);
  }
  .gp-act.primary:active { background: linear-gradient(135deg, #3D8FC7, #2E7DB2); }


  /* ==================================================================
     清理本地缓存面板
     ================================================================== */
  .cc-hero { padding: 2px 4px 14px; }
  .cc-title { font-size: 18px; font-weight: 700; color: var(--c-text, #12303F); }
  .cc-sub { margin-top: 4px; font-size: 12.5px; color: var(--c-text-3, #93A8B8); }

  .cc-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; border-radius: 16px;
    background: rgba(61,143,199,.055);
    border: 1px solid var(--c-line, rgba(74,159,216,.16));
  }
  .cc-ico {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4A9FD8, #3D8FC7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(61,143,199,.26);
  }
  .cc-ico .ico-svg { width: 21px; height: 21px; }
  .cc-body { flex: 1; min-width: 0; }
  .cc-name {
    font-size: 14.5px; font-weight: 600; color: var(--c-text, #12303F);
  }
  .cc-size {
    margin-top: 3px; font-size: 12.5px; color: var(--c-text-3, #93A8B8);
  }
  .cc-size b { color: var(--c-brand, #3D8FC7); font-weight: 700; }

  .cc-note {
    margin: 13px 4px 0; font-size: 12px; line-height: 1.65;
    color: var(--c-text-3, #93A8B8);
  }

  .cc-acts { display: flex; gap: 9px; margin-top: 17px; }
  .cc-btn {
    flex: 1 1 0; min-width: 0;
    padding: 12px 8px; border-radius: 13px;
    text-align: center; font-size: 14px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s ease, transform .12s ease;
  }
  .cc-btn:active { transform: scale(.97); }
  .cc-btn.ghost {
    background: rgba(61,143,199,.08);
    color: var(--c-brand, #3D8FC7);
  }
  .cc-btn.ghost:active { background: rgba(61,143,199,.17); }
  .cc-btn.primary {
    background: linear-gradient(135deg, #4A9FD8, #3D8FC7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(61,143,199,.28);
  }
  .cc-btn.primary:active { background: linear-gradient(135deg, #3D8FC7, #2E7DB2); }
  .cc-btn[disabled] { opacity: .45; }


  /* ==================================================================
     转发面板
     ================================================================== */
  .fw-hero {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 2px 4px 12px; gap: 10px;
  }
  .fw-title { font-size: 18px; font-weight: 700; color: var(--c-text, #12303F); }
  .fw-count { flex: none; font-size: 12.5px; color: var(--c-text-3, #93A8B8); }

  .fw-search { position: relative; margin-bottom: 11px; }
  .fw-search input {
    width: 100%; height: 38px; box-sizing: border-box;
    padding: 0 13px 0 34px;
    border-radius: 12px;
    border: 1px solid var(--c-line, rgba(74,159,216,.16));
    background: rgba(61,143,199,.05);
    font-size: 14px; color: var(--c-text, #12303F);
    outline: none;
    -webkit-appearance: none;
  }
  .fw-search input::placeholder { color: var(--c-text-3, #93A8B8); }
  .fw-search input:focus { border-color: var(--c-brand, #3D8FC7); background: #fff; }
  .fw-search .ico-svg {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--c-text-3, #93A8B8);
    pointer-events: none;
  }

  .fw-list {
    max-height: 44vh; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0; padding: 0 2px;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
  }

  .fw-row {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 7px; border-radius: 13px; min-width: 0;
    transition: background .15s ease, transform .12s ease;
  }
  .fw-row:active { background: rgba(61,143,199,.10); transform: scale(.985); }

  .fw-av {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    background-size: cover; background-position: center;
    box-shadow: 0 2px 7px rgba(61,143,199,.16);
  }

  .fw-body { flex: 1; min-width: 0; }
  .fw-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .fw-name {
    font-size: 14.5px; font-weight: 600; line-height: 1.3;
    color: var(--c-text, #12303F);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0;
  }
  .fw-tag {
    flex: none; font-size: 10.5px; line-height: 1.5;
    padding: 1px 6px; border-radius: 6px;
    background: rgba(61,143,199,.13);
    color: var(--c-brand, #3D8FC7);
    font-weight: 600;
  }
  .fw-tag.dm {
    background: rgba(46,158,107,.13);
    color: #2E9E6B;
  }
  .fw-last {
    margin-top: 3px; font-size: 12px;
    color: var(--c-text-3, #93A8B8);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .fw-empty {
    padding: 28px 0; text-align: center;
    font-size: 13px; color: var(--c-text-3, #93A8B8);
  }

  .fw-acts { display: flex; margin-top: 14px; }
  .fw-cancel {
    flex: 1 1 0; min-width: 0;
    padding: 12px 8px; border-radius: 13px;
    text-align: center; font-size: 14px; font-weight: 600;
    background: rgba(61,143,199,.08);
    color: var(--c-brand, #3D8FC7);
    transition: background .15s ease, transform .12s ease;
  }
  .fw-cancel:active { background: rgba(61,143,199,.17); transform: scale(.98); }


  /* ==================================================================
     好友卡片菜单（通讯录长按）
     ================================================================== */
  .fm-card {
    display: flex; align-items: center; gap: 13px;
    padding: 2px 4px 16px;
  }
  .fm-av {
    width: 56px; height: 56px; border-radius: 17px; flex: none;
    background-size: cover; background-position: center;
    box-shadow: 0 4px 14px rgba(61,143,199,.20);
    position: relative;
  }
  .fm-av .fm-dot {
    position: absolute; right: -2px; bottom: -2px;
    width: 15px; height: 15px; border-radius: 50%;
    background: #2E9E6B;
    border: 2.5px solid #fff;
  }
  .fm-info { flex: 1; min-width: 0; }
  .fm-name {
    font-size: 17px; font-weight: 700; line-height: 1.3;
    color: var(--c-text, #12303F);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .fm-sub {
    margin-top: 3px; font-size: 12.5px;
    color: var(--c-text-3, #93A8B8);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .fm-remark {
    display: inline-block; margin-top: 6px;
    padding: 2px 8px; border-radius: 7px;
    font-size: 11.5px; font-weight: 600;
    background: rgba(61,143,199,.11);
    color: var(--c-brand, #3D8FC7);
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .fm-list {
    border-top: 1px solid var(--c-line, rgba(74,159,216,.16));
    padding-top: 6px;
  }
  .fm-item {
    display: flex; align-items: center; justify-content: flex-start; gap: 11px;
    padding: 11px 8px; border-radius: 12px; min-width: 0;
    text-align: left;
    transition: background .15s ease, transform .12s ease;
  }
  .fm-item:active { background: rgba(61,143,199,.09); transform: scale(.99); }

  .fm-ico {
    width: 30px; height: 30px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(61,143,199,.10);
    color: var(--c-brand, #3D8FC7);
  }
  .fm-ico .ico-svg { width: 16px; height: 16px; }

  .fm-txt {
    flex: 1; min-width: 0;
    font-size: 15px; color: var(--c-text, #12303F);
    text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .fm-extra {
    flex: none; font-size: 12px; color: var(--c-text-3, #93A8B8);
    max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .fm-arrow { flex: none; color: var(--c-text-3, #93A8B8); opacity: .4; }
  .fm-arrow .ico-svg { width: 15px; height: 15px; }

  .fm-item.danger { justify-content: flex-start; text-align: left; }
  .fm-item.danger .fm-ico { background: rgba(226,87,76,.10); color: #E2574C; }
  .fm-item.danger .fm-txt { color: #E2574C; font-weight: 600; text-align: left; }


  /* ==================================================================
     转账 / 红包卡片：图标不再往外投影
     原来 .tr-icon 有 0 2px 8px 的彩色投影，图标离卡片左边只有 13px，
     8px 的晕正好糊在卡片左侧内部 → 看着就是"左边有一团阴影"
     改成只有一道顶部内高光，干净且对称
     ================================================================== */
  .pkt .tr-icon,
  .pkt .rp-ico,
  .pkt .pkt-ico {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.38) !important;
  }
  .pkt.tr.got .tr-icon,
  .pkt.rp.done .rp-ico {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.30) !important;
  }

  /* 卡片本身的阴影压薄一点，四边均匀 */
  .pkt.tr,
  .pkt.tr.got,
  .pkt.tr.got.done {
    box-shadow: 0 1px 5px rgba(24,68,102,.07), 0 0 0 1px rgba(62,143,201,.05) !important;
  }


  /* ==================================================================
     @ 选人面板 v2
     · 头像大一点，行距舒展
     · 在线只留一个绿点（不再每行写"在线/离线"）
     · 搜索关键字高亮
     · 列表底部渐隐，提示还能滑
     ================================================================== */
  .mention-panel {
    max-height: 44vh !important;
    border-radius: 20px !important;
    border: 1px solid rgba(24,68,102,.08) !important;
    box-shadow: 0 -10px 34px rgba(16,52,74,.15), 0 2px 10px rgba(16,52,74,.05) !important;
    overflow: hidden !important;
  }

  .mention-panel .mt-head {
    padding: 13px 15px 11px !important;
    font-size: 12px !important;
    letter-spacing: .3px !important;
    color: var(--c-text) !important;
    font-weight: 700 !important;
  }
  .mention-panel .mt-count {
    font-size: 10.5px !important;
    padding: 2px 9px !important;
    border-radius: 8px !important;
  }

  .mention-panel .mt-list {
    padding: 6px 6px 9px !important;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
  }

  .mention-panel .mt-row {
    gap: 12px !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
  }
  .mention-panel .mt-row:active {
    background: rgba(62,143,201,.11) !important;
  }

  .mention-panel .mt-av {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45) !important;
  }

  .mention-panel .mt-body b {
    font-size: 14px !important;
    gap: 6px !important;
  }
  .mention-panel .mt-body i {
    margin-top: 3px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    opacity: .8;
  }

  /* 关键字高亮 */
  .mention-panel mark {
    background: rgba(232,169,60,.30) !important;
    color: inherit !important;
    padding: 0 1px;
    border-radius: 3px;
    font-weight: 800;
  }

  /* 在线绿点（代替"在线"两个字） */
  .mention-panel .mt-live {
    width: 6px; height: 6px; border-radius: 50%;
    background: #45A574; flex: none;
    box-shadow: 0 0 0 2px rgba(69,165,116,.18);
  }
  .mention-panel .mt-acc {
    font-size: 11px;
    color: var(--c-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 「所有人」那一行更醒目一点 */
  .mention-panel .mt-all {
    background: linear-gradient(135deg, rgba(251,221,230,.55), rgba(242,175,196,.32)) !important;
    margin-bottom: 4px;
  }
  .mention-panel .mt-all:active {
    background: linear-gradient(135deg, rgba(251,221,230,.85), rgba(242,175,196,.55)) !important;
  }
  .mention-panel .mt-all b { color: #A63A5E !important; }
  .mention-panel .mt-all i { color: #C4708D !important; opacity: 1 !important; }

  /* 没搜到 */
  .mention-panel .mt-empty {
    padding: 22px 12px 26px;
    text-align: center;
    font-size: 12.5px;
    color: var(--c-text-3);
  }


  /* ==================================================================
     @ 选人面板：布局修正
     原来的 position:absolute + bottom:calc(100% + 8px) 找不到定位父级，
     会飘出屏幕。改成和表情面板一样的流内块，自然贴在输入框上方
     ================================================================== */
  .mention-panel {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 8px 7px !important;
    max-height: 42vh !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: var(--c-surface) !important;
    border: 1px solid rgba(24,68,102,.08) !important;
    box-shadow: 0 -6px 22px rgba(16,52,74,.12), 0 2px 8px rgba(16,52,74,.05) !important;
    display: flex !important;
    flex-direction: column !important;
    animation: mtIn .16s cubic-bezier(.2,.9,.3,1) forwards;
    flex: 0 0 auto;
  }
  .mention-panel.hidden { display: none !important; }


  /* 邀请成员：搜索命中高亮 / 备注旁边的真实昵称 */
  #gmInvitePage mark.gmi-hl {
    background: rgba(232,169,60,.30);
    color: inherit;
    padding: 0 1px;
    border-radius: 3px;
    font-weight: 800;
  }
  #gmInvitePage .gmi-real {
    font-style: normal;
    font-weight: 500;
    font-size: 11.5px;
    color: #93A8B8;
    margin-left: 6px;
  }


  /* ==================================================================
     转账卡片高度对齐红包
     实测：红包 70px（正文三行），转账 57px（正文两行），并排看一高一矮
     这里给转账补最小高度，内容上下居中，两种卡片就齐平了
     ================================================================== */
  .pkt.tr {
    min-height: 70px !important;
  }
  /* 跟红包用同一个间距 */
  .pkt.tr {
    gap: 10px !important;
  }


  /* 发起群聊：搜索图标改成矢量 SVG */
  .ng-search span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px;
    flex: none;
    color: #4A9FD8;
    opacity: .55 !important;
    transition: opacity .16s ease;
  }
  .ng-search:focus-within span { opacity: .95 !important; }
  .ng-search span .ico-svg { width: 16px; height: 16px; }

  /* 搜索结果高亮 */
  .ng-name mark.ng-hl {
    background: rgba(232,169,60,.30);
    color: inherit;
    padding: 0 1px;
    border-radius: 3px;
    font-weight: 800;
  }
  .ng-real {
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    color: #93A8B8;
    margin-left: 5px;
  }


  /* ==================================================================
     视频气泡兜底
     封面 img 加载失败会被 display:none，而 .video-wrap 是 inline-block
     没有固定高度 → 整条气泡塌成 0，看着就是"视频显示不出来"
     ================================================================== */
  .video-wrap.video-no-poster {
    min-width: 240px;
    min-height: 135px;
    background: linear-gradient(150deg, #1A425C 0%, #0B1F2D 100%);
  }
  .video-wrap.video-no-poster .video-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* 封面还在生成时，先给个同尺寸的占位块，避免气泡跳动 */
  .video-wrap:has(.video-poster:not([src=""])) {
    min-width: 240px;
    min-height: 135px;
  }


  /* MOFIX-V6 朋友圈图片溢出与视觉重排 */
  /* ------------------------------------------------------------------
     1) 真 bug：.mo-cell 的 min-height 兜底把格子撑爆
        .mo-grid  max-width 246px
        但 .mo-cell min-height 180px + aspect-ratio 3/2
        → 宽度被反推成 270px，比容器宽 24px，图片溢出到卡片外
     ------------------------------------------------------------------ */
  #moList .mo-cell,
  #moList .mo-grid.g1 .mo-cell,
  #moList .mo-grid.g2 .mo-cell,
  #moList .mo-grid.g3 .mo-cell {
    min-height: 0 !important;
    max-height: none !important;
  }

  /* 2) 单图：按真实比例显示，超高才裁 */
  #moList .mo-grid.g1 {
    max-width: 252px !important;
  }
  #moList .mo-grid.g1 .mo-cell {
    aspect-ratio: auto !important;
    max-height: 330px !important;
    border-radius: 15px !important;
    box-shadow: 0 2px 12px rgba(16,52,74,.09) !important;
  }
  #moList .mo-grid.g1 .mo-cell img {
    width: 100% !important;
    height: auto !important;
    max-height: 330px !important;
    object-fit: cover !important;
    display: block !important;
  }
  /* 3) 多图：正方形九宫格 */
  #moList .mo-grid.g2 .mo-cell,
  #moList .mo-grid.g3 .mo-cell {
    aspect-ratio: 1 / 1 !important;
  }
  #moList .mo-grid.g2,
  #moList .mo-grid.g3 {
    max-width: 252px !important;
  }
  #moList .mo-cell { border-radius: 12px !important; }
  #moList .mo-cell img,
  #moList .mo-cell video {
    object-fit: cover !important;
    border-radius: inherit !important;
    display: block !important;
  }

  /* 4) 卡片 */
  #moList .mo-item {
    border-radius: 20px !important;
    padding: 16px !important;
    margin: 0 12px 11px !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid rgba(255,255,255,.92) !important;
    box-shadow:
      0 1px 2px rgba(16,52,74,.05),
      0 4px 16px rgba(16,52,74,.055) !important;
  }
  #moList .mo-item:first-child { margin-top: 12px !important; }

  /* 5) 头像 / 名字 / 正文 */
  #moList .mo-av {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(16,52,74,.13) !important;
  }
  #moList .mo-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #12303F !important;
    margin-bottom: 4px !important;
  }
  #moList .mo-text {
    font-size: 14.5px !important;
    line-height: 1.68 !important;
    color: #22495E !important;
    margin-top: 2px !important;
  }

  /* 6) 操作行：做成小胶囊 */
  #moList .mo-meta {
    margin-top: 12px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    font-size: 11.5px !important;
    color: #9BAEC0 !important;
    align-items: center !important;
  }
  #moList .mo-acts { gap: 3px !important; }
  #moList .mo-act {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    color: #6D8DA4 !important;
    background: rgba(143,208,242,.11) !important;
  }
  #moList .mo-act .ico-svg { width: 13px !important; height: 13px !important; }
  #moList .mo-act:active { transform: scale(.94); background: rgba(143,208,242,.24) !important; }
  #moList .mo-act.on { color: #E2574C !important; background: rgba(226,87,76,.12) !important; }
  #moList .mo-act.danger { color: #D2544A !important; background: rgba(210,84,74,.09) !important; }

  /* 7) 点赞区 */
  #moList .mo-likes {
    margin-top: 9px !important;
    padding: 9px 12px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, rgba(143,208,242,.18), rgba(143,208,242,.06)) !important;
    font-size: 12.5px !important;
    color: #3D6E8C !important;
    line-height: 1.5 !important;
  }
  #moList .mo-likes .mo-heart .ico-svg { width: 13px !important; height: 13px !important; }

  /* 8) 评论区 */
  #moList .mo-comments {
    margin-top: 8px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    background: rgba(237,245,252,.9) !important;
  }
  #moList .mo-cmt {
    font-size: 13px !important;
    line-height: 1.62 !important;
    color: #2A4A5E !important;
  }
  #moList .mo-cmt b { color: #3D8FC7 !important; font-weight: 700 !important; }
  #moList .mo-cmt + .mo-cmt {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(74,159,216,.10) !important;
  }

  /* 9) 顶栏 */
  #moments > .topbar {
    background: rgba(255,255,255,.82) !important;
    backdrop-filter: blur(18px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
    border-bottom: 1px solid rgba(74,159,216,.09) !important;
  }

  /* 10) 深色兜底 */
  body.dark #moList .mo-item { background: rgba(22,38,54,.94) !important; }
  body.dark #moList .mo-name { color: #E4EFF8 !important; }
  body.dark #moList .mo-text { color: #BBD2E2 !important; }
  body.dark #moList .mo-comments { background: rgba(255,255,255,.06) !important; }
  body.dark #moList .mo-cmt { color: #C6D9E7 !important; }


  /* MOFIX-V7 点赞不跳顶部 + 视觉收敛 */
  /* 内容区：背景更平，卡片不再"浮"在强渐变上 */
  #moments,
  #moments > .content,
  #moments #moList {
    background: linear-gradient(178deg, #F1F8FD 0%, #E9F2FA 100%) !important;
  }

  /* 卡片：降低存在感 —— 不再像一张张白纸贴在蓝底上 */
  #moList .mo-item {
    background: rgba(255,255,255,.84) !important;
    border: 1px solid rgba(255,255,255,.7) !important;
    border-radius: 17px !important;
    padding: 15px !important;
    margin: 0 12px 9px !important;
    box-shadow:
      0 1px 2px rgba(16,52,74,.03),
      0 3px 12px rgba(16,52,74,.04) !important;
  }
  #moList .mo-item:first-child { margin-top: 11px !important; }
  /* 悬停/按下时轻微浮起，作为交互反馈 */
  #moList .mo-item:active {
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 2px 14px rgba(16,52,74,.07) !important;
  }

  /* 单图更饱满，别在右边空一大块 */
  #moList .mo-grid.g1 { max-width: 272px !important; }
  #moList .mo-grid.g1 .mo-cell { max-height: 340px !important; }
  #moList .mo-grid.g1 .mo-cell img { max-height: 340px !important; }
  #moList .mo-grid.g2,
  #moList .mo-grid.g3 { max-width: 272px !important; }

  /* 文字区更舒展 */
  #moList .mo-name { font-size: 14.5px !important; margin-bottom: 5px !important; }
  #moList .mo-text { font-size: 14.5px !important; line-height: 1.7 !important; color: #23485C !important; }

  /* 时间行：更轻，别再抢戏 */
  #moList .mo-meta {
    margin-top: 11px !important;
    font-size: 11px !important;
    color: #A6B7C6 !important;
  }

  /* 操作按钮：更小更含蓄 */
  #moList .mo-act {
    font-size: 11.5px !important;
    padding: 4px 9px !important;
    background: rgba(143,208,242,.09) !important;
    color: #7B97AC !important;
  }
  #moList .mo-act.on {
    color: #DE5B50 !important;
    background: rgba(222,91,80,.10) !important;
  }

  /* 点赞 / 评论块：融进卡片，不要两块各占一片 */
  #moList .mo-likes {
    margin-top: 8px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    background: rgba(218,238,250,.62) !important;
    font-size: 12px !important;
    color: #48748F !important;
  }
  #moList .mo-comments {
    margin-top: 6px !important;
    padding: 9px 11px !important;
    border-radius: 11px !important;
    background: rgba(232,243,251,.72) !important;
  }
  #moList .mo-cmt { font-size: 12.5px !important; line-height: 1.6 !important; }

  /* 顶栏：不再用强模糊，跟内容同一个色系 */
  #moments > .topbar {
    background: rgba(243,249,253,.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(74,159,216,.07) !important;
  }

  body.dark #moList .mo-item { background: rgba(20,34,48,.86) !important; border-color: rgba(255,255,255,.05) !important; }
  body.dark #moments, body.dark #moments > .content, body.dark #moments #moList {
    background: linear-gradient(178deg, #0B1A26 0%, #09151F 100%) !important;
  }


  /* MOFIX-V8 点赞局部更新 */
  /* 点赞区：名字单独一层，方便点赞时增删 */
  #moList .mo-likes-txt { display: inline; }
  #moList .mo-likes {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  #moList .mo-likes .mo-heart { margin-top: 1px; }

  /* ==================== 余额交易大厅 ==================== */

  .ex-bal {
    text-align: center; font-size: 12.5px; color: var(--c-text-3);
    padding: 9px 0 14px;
  }
  .ex-bal b { color: var(--c-brand-deep); font-size: 15px; font-weight: 800; }

  .ex-field { margin-bottom: 14px; }
  .ex-lab {
    font-size: 11.5px; font-weight: 700; color: var(--c-text-3);
    letter-spacing: .4px; margin: 0 0 7px 2px;
  }
  .ex-req {
    display: inline-block; font-size: 9.5px; font-weight: 700;
    background: rgba(226,87,76,.12); color: #D9534F;
    padding: 1px 6px; border-radius: 4px; margin-left: 4px;
  }

  .ex-amt-row {
    display: flex; align-items: center; gap: 8px;
    background: var(--c-bg-1); border-radius: 13px; padding: 0 14px;
    border: 1.5px solid transparent; transition: border-color .16s;
  }
  .ex-amt-row:focus-within { border-color: var(--c-brand); }
  .ex-yen { font-size: 20px; font-weight: 800; color: var(--c-text-3); }
  .ex-amt-row input {
    flex: 1; height: 54px; border: 0; background: transparent; outline: none;
    font-size: 24px; font-weight: 800; color: var(--c-text);
    font-variant-numeric: tabular-nums;
  }
  .ex-amt-row input::placeholder { color: var(--c-text-3); font-weight: 500; font-size: 20px; }

  .ex-quick { display: flex; gap: 7px; margin-top: 9px; }
  .ex-quick b {
    flex: 1; text-align: center; font-size: 12px; font-weight: 700;
    color: var(--c-text-2); background: var(--c-bg-1);
    border-radius: 9px; padding: 8px 0; cursor: pointer;
    transition: background .14s, color .14s;
  }
  .ex-quick b:active { background: rgba(61,143,201,.16); color: var(--c-brand-deep); }

  .ex-pays { display: flex; gap: 7px; margin-bottom: 9px; }
  .ex-pay {
    flex: 1; text-align: center; font-size: 12.5px; font-weight: 600;
    color: var(--c-text-3); background: var(--c-bg-1);
    border-radius: 11px; padding: 10px 0; cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .16s ease;
  }
  .ex-pay.on {
    color: var(--c-brand-deep); background: rgba(62,143,201,.10);
    border-color: var(--c-brand); font-weight: 800;
  }

  .ex-input {
    width: 100%; height: 44px; padding: 0 13px; box-sizing: border-box;
    border-radius: 12px; border: 1.5px solid transparent;
    background: var(--c-bg-1); font-size: 13.5px; color: var(--c-text);
    outline: none; transition: border-color .16s;
  }
  .ex-input:focus { border-color: var(--c-brand); }
  .ex-input::placeholder { color: var(--c-text-3); font-size: 12.5px; }

  .ex-qr {
    height: 120px; border-radius: 13px; cursor: pointer;
    background: var(--c-bg-1);
    border: 1.5px dashed rgba(61,143,201,.28);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: border-color .16s, background .16s;
  }
  .ex-qr:active { background: rgba(61,143,201,.08); border-color: var(--c-brand); }
  .ex-qr-empty { font-size: 13px; font-weight: 600; color: var(--c-brand-deep); }
  .ex-qr img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

  .ex-tip {
    font-size: 11.5px; color: #D9534F; min-height: 16px;
    text-align: center; margin-top: 8px; line-height: 1.5;
  }

  /* 选项卡 */
  .ex-tabs {
    display: flex; gap: 8px; margin-bottom: 14px;
    background: var(--c-bg-1); border-radius: 12px; padding: 4px;
  }
  .ex-tab {
    flex: 1; text-align: center; font-size: 13px; font-weight: 600;
    color: var(--c-text-3); padding: 9px 0; border-radius: 9px;
    cursor: pointer; transition: all .22s ease;
  }
  .ex-tab.on {
    background: #fff; color: var(--c-brand-deep); font-weight: 800;
    box-shadow: 0 2px 8px rgba(61,143,201,.16);
  }

  .ex-hint {
    font-size: 11px; color: var(--c-text-3); text-align: center;
    padding: 0 0 10px;
  }
  .ex-loading {
    text-align: center; font-size: 12.5px; color: var(--c-text-3); padding: 30px 0;
  }
  .ex-sec {
    font-size: 11.5px; font-weight: 700; color: var(--c-text-3);
    padding: 12px 4px 7px; letter-spacing: .4px;
  }

  /* 大厅里的单子行 */
  .ex-row {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 13px; padding: 12px 13px;
    margin-bottom: 8px; cursor: pointer;
    box-shadow: 0 1px 5px rgba(24,68,102,.06);
    transition: transform .12s ease;
  }
  .ex-row:active { transform: scale(.985); }
  .ex-row-amt {
    flex: none; min-width: 82px;
    font-size: 18px; font-weight: 800; color: var(--c-brand-deep);
    font-variant-numeric: tabular-nums;
  }
  .ex-row-mid { flex: 1; min-width: 0; }
  .ex-row-seller {
    font-size: 13px; font-weight: 700; color: var(--c-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ex-row-pay {
    font-size: 11px; color: var(--c-text-3); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ex-row-time { flex: none; font-size: 10.5px; color: var(--c-text-3); }

  .ex-badge {
    display: inline-block; font-size: 9.5px; font-weight: 700;
    padding: 1px 6px; border-radius: 4px; margin-left: 6px;
    vertical-align: middle;
  }
  .ex-badge.wait { background: rgba(217,154,43,.14); color: #C8871F; }
  .ex-badge.taken { background: rgba(61,143,201,.14); color: var(--c-brand-deep); }
  .ex-badge.paid { background: rgba(59,167,118,.16); color: #2E8B62; }
  .ex-badge.done { background: rgba(120,140,155,.14); color: #6B7F8E; }
  .ex-badge.cancel { background: rgba(150,150,150,.12); color: #98A6B0; }

  .ex-empty {
    text-align: center; font-size: 13px; color: var(--c-text-3);
    padding: 44px 20px; line-height: 1.9;
  }
  .ex-empty-ico { font-size: 34px; margin-bottom: 10px; opacity: .55; }
  .ex-empty small { font-size: 11.5px; opacity: .8; }

  /* 订单详情 */
  .ex-d-amt {
    text-align: center; font-size: 34px; font-weight: 800;
    color: var(--c-text); font-variant-numeric: tabular-nums;
    padding: 6px 0 4px;
  }
  .ex-d-status {
    text-align: center; font-size: 12px; font-weight: 700;
    padding: 3px 0 16px;
  }
  .ex-d-status.wait { color: #C8871F; }
  .ex-d-status.taken { color: var(--c-brand-deep); }
  .ex-d-status.paid { color: #2E8B62; }
  .ex-d-status.done { color: #6B7F8E; }
  .ex-d-status.cancel { color: #98A6B0; }

  .ex-d-rows {
    background: var(--c-bg-1); border-radius: 13px; padding: 4px 14px;
  }
  .ex-d-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 9px 0; font-size: 12.5px;
    border-bottom: 1px solid rgba(120,180,230,.10);
  }
  .ex-d-row:last-child { border-bottom: 0; }
  .ex-d-row span { color: var(--c-text-3); flex: none; }
  .ex-d-row b { color: var(--c-text); font-weight: 600; text-align: right; word-break: break-all; }

  .ex-d-sec {
    font-size: 11.5px; font-weight: 700; color: var(--c-text-3);
    padding: 16px 4px 8px; letter-spacing: .4px;
  }
  .ex-d-qr {
    background: var(--c-bg-1); border-radius: 13px; padding: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .ex-d-qr img { max-width: 220px; max-height: 220px; object-fit: contain; display: block; border-radius: 8px; }
  .ex-d-qr-tip {
    font-size: 10.5px; color: var(--c-text-3); text-align: center; padding: 6px 0 0;
  }

  .ex-d-tip {
    font-size: 11.5px; line-height: 1.7; color: var(--c-text-3);
    background: rgba(61,143,201,.07); border-radius: 10px;
    padding: 10px 12px; margin-top: 14px;
  }

  .ex-d-btns {
    display: flex; flex-direction: column; gap: 9px; margin-top: 16px;
  }
  .ex-btn {
    width: 100%; height: 46px; border: 0; border-radius: 13px;
    font-size: 14.5px; font-weight: 700; cursor: pointer;
    transition: transform .12s ease, opacity .12s;
  }
  .ex-btn:active { transform: scale(.985); }
  .ex-btn:disabled { opacity: .6; }
  .ex-btn.primary {
    background: linear-gradient(135deg, #4BA8E0, #3D8FC7);
    color: #fff; box-shadow: 0 6px 18px rgba(61,143,201,.26);
  }
  .ex-btn.ghost {
    background: var(--c-bg-1); color: var(--c-text-2);
  }

  /* 钱包明细页上的两个入口按钮 */
  .ex-entry {
    display: flex; gap: 10px; margin: 12px 0 4px;
  }
  .ex-entry button {
    flex: 1; height: 44px; border: 0; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .ex-entry .sell {
    background: rgba(59,167,118,.12); color: #2E8B62;
  }
  .ex-entry .buy {
    background: linear-gradient(135deg, #4BA8E0, #3D8FC7);
    color: #fff; box-shadow: 0 5px 14px rgba(61,143,201,.24);
  }


  /* ==================== 卖余额 · 全屏页 ==================== */
  .ex-full {
    /* 必须高过 #chat（它实际是 40），否则从聊天页打开的全屏页会被盖住 */
    z-index: 45 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #F2F7FB !important;
  }
  .ex-full.hidden { display: none !important; }
  .ex-full > .topbar { flex: 0 0 auto !important; }
  .ex-top .title { font-size: 16.5px; font-weight: 800; letter-spacing: .5px; }
  .ex-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px !important;
  }
  .ex-scroll::-webkit-scrollbar { width: 0; }

  /* 顶部余额卡 */
  .ex-hero {
    background: linear-gradient(135deg, #4BA8E0 0%, #3D8FC7 62%, #3580B4 100%);
    border-radius: 20px;
    padding: 20px 22px 22px;
    margin: 14px 0 16px;
    box-shadow: 0 10px 26px rgba(61,143,201,.26);
    position: relative;
    overflow: hidden;
  }
  .ex-hero::after {
    content: '';
    position: absolute; right: -40px; top: -50px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,.10);
  }
  .ex-hero-label {
    font-size: 12px; color: rgba(255,255,255,.82);
    letter-spacing: .6px; margin-bottom: 8px;
  }
  .ex-hero-bal {
    font-size: 34px; font-weight: 800; color: #fff;
    font-variant-numeric: tabular-nums; letter-spacing: -.5px;
    line-height: 1.1;
  }

  /* 卡片 */
  .ex-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px 16px 14px;
    margin-bottom: 13px;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
  }
  .ex-card-t {
    font-size: 13px; font-weight: 800; color: #12303F;
    letter-spacing: .3px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
  }
  .ex-need {
    font-size: 9.5px; font-weight: 700; color: #D9534F;
    background: rgba(217,83,79,.10); padding: 1.5px 6px; border-radius: 5px;
  }
  .ex-opt { font-size: 10px; font-weight: 600; color: #93A8B8; }

  /* 大号金额输入 */
  .ex-bigamt {
    display: flex; align-items: baseline; gap: 6px;
    border-bottom: 2px solid rgba(61,143,201,.16);
    padding: 2px 0 10px;
    transition: border-color .18s;
  }
  .ex-bigamt:focus-within { border-bottom-color: #3D8FC7; }
  .ex-bigamt-cny {
    font-size: 26px; font-weight: 800; color: #3D8FC7;
    flex: none; line-height: 1;
  }
  .ex-bigamt input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    font-size: 38px !important; font-weight: 800; color: #12303F;
    font-variant-numeric: tabular-nums; letter-spacing: -.8px;
    padding: 0; height: 52px;
  }
  .ex-bigamt input::placeholder {
    color: #C5D5E1; font-weight: 600; font-size: 34px;
  }

  /* 快捷金额 */
  .ex-chips { display: flex; gap: 8px; margin-top: 14px; }
  .ex-chips b {
    flex: 1; text-align: center; font-size: 13px; font-weight: 700;
    color: #4A6B80; background: #F1F6FA; border-radius: 11px;
    padding: 11px 0; cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .16s ease;
  }
  .ex-chips b:active {
    background: rgba(61,143,201,.14); color: #3D8FC7;
    border-color: rgba(61,143,201,.35); transform: scale(.97);
  }

  /* 分段选择（收款方式） */
  .ex-seg {
    display: flex; gap: 0; position: relative;
    background: #F2F7FB; border-radius: 13px; padding: 4px;
    margin-bottom: 11px;
  }
  .ex-seg-item {
    flex: 1; text-align: center; font-size: 13px; font-weight: 600;
    color: #7A92A5; padding: 10px 0; border-radius: 10px;
    cursor: pointer; position: relative; z-index: 1;
    transition: color .22s ease, transform .12s ease;
    user-select: none;
  }
  .ex-seg-item.on { color: #2C7EB8; font-weight: 800; }
  .ex-seg-item:active { transform: scale(.96); }

  /* 输入行 */
  .ex-line-input {
    width: 100%; height: 46px; box-sizing: border-box;
    padding: 0 14px; border-radius: 12px;
    border: 1.5px solid rgba(120,160,190,.16);
    background: #FAFCFE;
    font-size: 14px; color: #12303F; outline: none;
    transition: border-color .16s, background .16s;
  }
  .ex-line-input:focus {
    border-color: #3D8FC7; background: #fff;
  }
  .ex-line-input::placeholder { color: #A8BAC8; font-size: 13px; }

  /* 收款码上传框 */
  .ex-qrbox {
    height: 150px; border-radius: 15px; cursor: pointer;
    background: #FAFCFE;
    border: 1.6px dashed rgba(61,143,201,.30);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    transition: border-color .16s, background .16s;
  }
  .ex-qrbox:active { background: rgba(61,143,201,.06); border-color: #3D8FC7; }
  .ex-qrbox-empty {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: #3D8FC7; font-size: 13px; font-weight: 700;
  }
  .ex-qrbox-empty .ico-svg { width: 34px; height: 34px; opacity: .72; }
  .ex-qrbox img {
    max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  }
  .ex-hint-mini {
    font-size: 11px; color: #93A8B8; margin-top: 9px;
    line-height: 1.6;
  }

  /* 隐私说明 */
  .ex-privacy {
    font-size: 10.5px; color: #93A8B8; line-height: 1.6;
    margin-top: 8px; padding-left: 2px;
  }
  .ex-privacy::before {
    content: '';
    display: inline-block; width: 11px; height: 11px;
    margin-right: 4px; vertical-align: -1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A8B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
  }

  /* 警告条 */
  .ex-warn {
    background: rgba(217,83,79,.08);
    border: 1px solid rgba(217,83,79,.18);
    border-radius: 12px; padding: 11px 13px;
    font-size: 12px; color: #D9534F; line-height: 1.6;
    margin-bottom: 12px;
  }

  /* 底部悬浮操作条 */
  .ex-foot {
    flex: 0 0 auto;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(120,160,190,.12);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 13px;
    box-shadow: 0 -4px 18px rgba(24,68,102,.06);
  }
  .ex-foot-info {
    flex: 1; min-width: 0; font-size: 12px; color: #7A92A5;
    line-height: 1.5;
  }
  .ex-foot button {
    flex: none; min-width: 132px; height: 48px;
    border: 0; border-radius: 14px;
    background: linear-gradient(135deg, #4BA8E0, #3D8FC7);
    color: #fff; font-size: 15.5px; font-weight: 800;
    letter-spacing: .5px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(61,143,201,.30);
    transition: transform .12s ease, opacity .12s;
  }
  .ex-foot button:active { transform: scale(.97); }
  .ex-foot button:disabled {
    background: #D7E3EC; color: #93A8B8;
    box-shadow: none; cursor: default;
  }


  /* ==================== 交易大厅 · 全屏 ==================== */
  .ex-halltop {
    flex: 0 0 auto;
    padding: 12px 14px 4px;
    background: #F2F7FB;
  }
  .ex-tabs2 {
    display: flex; gap: 0; position: relative;
    background: #E6EFF6; border-radius: 13px; padding: 4px;
  }
  .ex-tab2 {
    flex: 1; text-align: center; font-size: 13.5px; font-weight: 600;
    color: #7A92A5; padding: 10px 0; border-radius: 10px;
    cursor: pointer; transition: all .24s cubic-bezier(.32,1.2,.5,1);
    user-select: none;
  }
  .ex-tab2.on {
    background: #fff; color: #2C7EB8; font-weight: 800;
    box-shadow: 0 2px 9px rgba(61,143,201,.16);
  }
  .ex-tab2:active { transform: scale(.97); }
  .ex-hallsub {
    font-size: 11.5px; color: #93A8B8; text-align: center;
    padding: 12px 0 8px; line-height: 1.5;
  }

  /* 大厅里的单子卡片 */
  .ex-card-row {
    background: #fff; border-radius: 17px;
    padding: 15px 16px; margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
    transition: transform .12s ease, box-shadow .16s;
    position: relative;
    overflow: hidden;
  }
  .ex-card-row:active {
    transform: scale(.985);
    box-shadow: 0 1px 6px rgba(24,68,102,.08);
  }
  .ex-cr-top {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 9px;
  }
  .ex-cr-amt {
    font-size: 25px; font-weight: 800; color: #12303F;
    font-variant-numeric: tabular-nums; letter-spacing: -.4px;
    line-height: 1.1;
  }
  .ex-cr-amt small {
    font-size: 13px; font-weight: 700; color: #93A8B8;
    margin-left: 3px; letter-spacing: 0;
  }
  .ex-cr-time { font-size: 11px; color: #A8BAC8; flex: none; }

  .ex-cr-mid {
    display: flex; align-items: center; gap: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(120,160,190,.10);
  }
  .ex-cr-av {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    background: linear-gradient(135deg,#7CC4EA,#4BA8E0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 800;
  }
  .ex-cr-info { flex: 1; min-width: 0; }
  .ex-cr-name {
    font-size: 12.5px; font-weight: 700; color: #34566E;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ex-cr-meta {
    font-size: 10.5px; color: #93A8B8; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ex-cr-cd {
    flex: none; font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 7px;
    background: rgba(217,154,43,.12); color: #C8871F;
    white-space: nowrap;
  }
  .ex-cr-tag {
    flex: none; font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 7px;
    background: rgba(61,143,201,.10); color: #2C7EB8;
  }

  /* 我的订单里的状态徽标 */
  .ex-st {
    flex: none; font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 7px;
  }
  .ex-st.wait   { background: rgba(217,154,43,.13); color: #C8871F; }
  .ex-st.taken  { background: rgba(61,143,201,.13); color: #2C7EB8; }
  .ex-st.paid   { background: rgba(59,167,118,.14); color: #2E8B62; }
  .ex-st.done   { background: rgba(120,140,155,.13); color: #6B7F8E; }
  .ex-st.cancel { background: rgba(150,150,150,.11); color: #98A6B0; }
  .ex-st.dispute { background: rgba(217,83,79,.12); color: #D9534F; }
  .ex-badge.dispute { background: rgba(217,83,79,.12); color: #D9534F; }
  .ex-dtop-st.dispute { background: rgba(255,255,255,.28); }
  .ex-d-status.dispute { color: #D9534F; }
  /* 申诉按钮（次要危险操作） */
  .ex-btn.warn {
    background: rgba(217,83,79,.09);
    color: #C9433E;
    border: 1.5px solid rgba(217,83,79,.22);
  }
  .ex-btn.warn:active { background: rgba(217,83,79,.16); }

  /* 分组标题 */
  .ex-gt {
    font-size: 11.5px; font-weight: 800; color: #7A92A5;
    letter-spacing: .5px; padding: 14px 4px 9px;
    display: flex; align-items: center; gap: 7px;
  }
  .ex-gt::before {
    content: ''; width: 3px; height: 12px; border-radius: 2px;
    background: linear-gradient(180deg,#4BA8E0,#3D8FC7);
  }
  .ex-gt i {
    font-style: normal; font-weight: 600; color: #A8BAC8;
    font-size: 10.5px; margin-left: auto;
  }

  /* 空状态 */
  .ex-empty2 {
    text-align: center; padding: 70px 30px; line-height: 1.9;
  }
  .ex-empty2-ico {
    width: 68px; height: 68px; margin: 0 auto 16px;
    border-radius: 22px; background: #E6EFF6;
    display: flex; align-items: center; justify-content: center;
    color: #A8C4D8;
  }
  .ex-empty2-ico .ico-svg { width: 32px; height: 32px; }
  .ex-empty2-t { font-size: 14px; font-weight: 700; color: #7A92A5; }
  .ex-empty2-s { font-size: 11.5px; color: #A8BAC8; margin-top: 6px; }


  /* ==================== 订单详情 · 全屏 ==================== */
  .ex-dtop {
    background: linear-gradient(135deg, #4BA8E0 0%, #3D8FC7 70%, #3580B4 100%);
    border-radius: 20px;
    padding: 26px 22px 24px;
    margin: 14px 0 15px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(61,143,201,.24);
    position: relative; overflow: hidden;
  }
  .ex-dtop::after {
    content: '';
    position: absolute; right: -46px; bottom: -56px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,.09);
  }
  .ex-dtop-amt {
    font-size: 40px; font-weight: 800; color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px; line-height: 1.1;
    position: relative; z-index: 1;
  }
  .ex-dtop-st {
    display: inline-block; font-size: 12px; font-weight: 800;
    margin-top: 10px; padding: 4px 13px; border-radius: 20px;
    background: rgba(255,255,255,.22); color: #fff;
    letter-spacing: .5px;
    position: relative; z-index: 1;
  }
  .ex-dtop-st.done   { background: rgba(255,255,255,.28); }
  .ex-dtop-st.cancel { background: rgba(255,255,255,.14); color: rgba(255,255,255,.72); }

  /* 倒计时条 */
  .ex-countdown {
    background: rgba(217,154,43,.10);
    border: 1px solid rgba(217,154,43,.22);
    border-radius: 13px;
    padding: 12px 14px;
    margin-bottom: 13px;
    font-size: 13px; color: #B07A18;
    text-align: center; line-height: 1.5;
  }
  .ex-countdown b {
    font-size: 17px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #C8871F; margin: 0 2px;
  }

  /* 键值行 */
  .ex-kv {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 14px; padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(120,160,190,.09);
  }
  .ex-kv:last-child { border-bottom: 0; }
  .ex-kv span { color: #93A8B8; flex: none; }
  .ex-kv b {
    color: #12303F; font-weight: 600; text-align: right;
    word-break: break-all; line-height: 1.5;
  }

  /* 收款码展示 */
  .ex-qrshow {
    background: #FAFCFE; border-radius: 15px;
    padding: 14px; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(120,160,190,.12);
    transition: background .16s;
  }
  .ex-qrshow:active { background: rgba(61,143,201,.06); }
  .ex-qrshow img {
    max-width: 230px; max-height: 230px;
    object-fit: contain; display: block; border-radius: 8px;
  }

  /* 提示条 */
  .ex-note {
    background: rgba(61,143,201,.07);
    border-radius: 13px;
    padding: 13px 15px;
    font-size: 12.5px; color: #4A6B80;
    line-height: 1.75;
    margin-bottom: 13px;
  }
  .ex-note b { color: #C8871F; font-weight: 700; }

  /* 底部按钮组 */
  #exDetailBtns .ex-btn { width: auto; padding: 0 22px; }
  #exDetailBtns { flex: none; }


  /* 群转账：选收款人行 */
  .pk-to-pick {
    display: flex !important; align-items: center; gap: 8px;
    cursor: pointer;
  }
  .pk-to-pick b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pk-to-act {
    flex: none; font-size: 12px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg,#4BA8E0,#3D8FC7);
    padding: 4px 12px; border-radius: 9px;
    box-shadow: 0 2px 8px rgba(61,143,201,.24);
  }
  .pk-to-pick:active .pk-to-act { transform: scale(.96); }

  /* 上次用的收款模板 */
  .ex-tpl {
    background: linear-gradient(135deg, #EAF6FF 0%, #E2F1FB 100%);
    border: 1.5px solid rgba(61,143,201,.18);
    border-radius: 17px;
    padding: 13px 15px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .16s;
  }
  .ex-tpl:active {
    transform: scale(.985);
    box-shadow: 0 2px 10px rgba(61,143,201,.12);
  }
  .ex-tpl-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
  }
  .ex-tpl-t {
    font-size: 11.5px; font-weight: 800; color: #2C7EB8;
    letter-spacing: .4px;
  }
  .ex-tpl-t::before {
    content: '';
    display: inline-block; width: 12px; height: 12px;
    margin-right: 4px; vertical-align: -2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232C7EB8'%3E%3Cpath d='M13 2L4.5 13.5h6L11 22l8.5-11.5h-6z'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
  }
  .ex-tpl-use {
    font-size: 11.5px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg,#4BA8E0,#3D8FC7);
    padding: 4px 11px; border-radius: 8px;
    box-shadow: 0 2px 7px rgba(61,143,201,.24);
  }
  .ex-tpl-body {
    display: flex; align-items: center; gap: 11px;
  }
  .ex-tpl-qr {
    width: 48px; height: 48px; flex: none;
    border-radius: 11px; overflow: hidden;
    background: #fff;
    border: 1px solid rgba(61,143,201,.14);
    display: flex; align-items: center; justify-content: center;
  }
  .ex-tpl-qr img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
  .ex-tpl-info { flex: 1; min-width: 0; }
  .ex-tpl-name {
    font-size: 14px; font-weight: 800; color: #12303F;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ex-tpl-pay {
    font-size: 11px; color: #5F7A8C; margin-top: 2px;
  }


  /* ==================== 钱包明细 · 全屏 ==================== */
  .wh-hero {
    background: linear-gradient(135deg, #4BA8E0 0%, #3D8FC7 62%, #3580B4 100%);
    border-radius: 20px;
    padding: 22px 22px 18px;
    margin: 14px 0 14px;
    box-shadow: 0 10px 26px rgba(61,143,201,.26);
    position: relative; overflow: hidden;
  }
  .wh-hero::after {
    content: '';
    position: absolute; right: -44px; top: -54px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,.10);
  }
  .wh-hero-label {
    font-size: 12px; color: rgba(255,255,255,.82);
    letter-spacing: .6px; margin-bottom: 8px;
  }
  .wh-hero-bal {
    font-size: 36px; font-weight: 800; color: #fff;
    font-variant-numeric: tabular-nums; letter-spacing: -.8px;
    line-height: 1.1; position: relative; z-index: 1;
  }
  .wh-hero-stats {
    display: flex; gap: 0; margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.18);
    position: relative; z-index: 1;
  }
  .wh-hs {
    flex: 1; text-align: center;
  }
  .wh-hs b {
    display: block; font-size: 14px; font-weight: 800;
    color: #fff; font-variant-numeric: tabular-nums;
  }
  .wh-hs span {
    display: block; font-size: 10.5px; color: rgba(255,255,255,.68);
    margin-top: 3px;
  }
  .wh-hs b.in { color: #9DF0C4; }
  .wh-hs b.out { color: #FFC2BD; }

  /* 卖 / 买 两个大按钮 */
  .wh-acts {
    display: flex; gap: 11px; margin-bottom: 14px;
  }
  .wh-act {
    flex: 1; border: 0; border-radius: 17px;
    padding: 15px 12px 13px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .16s;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
  }
  .wh-act:active { transform: scale(.97); }
  .wh-act.sell {
    background: linear-gradient(135deg, #E9F9F1 0%, #DCF4E9 100%);
    border: 1.5px solid rgba(59,167,118,.20);
  }
  .wh-act.buy {
    background: linear-gradient(135deg, #4BA8E0, #3D8FC7);
    box-shadow: 0 6px 18px rgba(61,143,201,.26);
  }
  .wh-act-ico {
    width: 34px; height: 34px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2px;
  }
  .wh-act-ico .ico-svg { width: 19px; height: 19px; }
  .wh-act.sell .wh-act-ico { background: rgba(59,167,118,.16); color: #2E8B62; }
  .wh-act.buy .wh-act-ico { background: rgba(255,255,255,.22); color: #fff; }
  .wh-act-t {
    font-size: 14.5px; font-weight: 800;
  }
  .wh-act.sell .wh-act-t { color: #26794F; }
  .wh-act.buy .wh-act-t { color: #fff; }
  .wh-act-s {
    font-size: 10.5px; font-weight: 600;
  }
  .wh-act.sell .wh-act-s { color: rgba(46,139,98,.72); }
  .wh-act.buy .wh-act-s { color: rgba(255,255,255,.78); }

  /* 筛选分段 */
  .wh-seg {
    display: flex; gap: 0; background: #E6EFF6;
    border-radius: 13px; padding: 4px; margin-bottom: 14px;
  }
  .wh-sg {
    flex: 1; text-align: center; font-size: 13px; font-weight: 600;
    color: #7A92A5; padding: 9px 0; border-radius: 10px;
    cursor: pointer; transition: all .22s cubic-bezier(.32,1.2,.5,1);
    user-select: none;
  }
  .wh-sg.on {
    background: #fff; color: #2C7EB8; font-weight: 800;
    box-shadow: 0 2px 9px rgba(61,143,201,.15);
  }
  .wh-sg:active { transform: scale(.97); }

  /* 日期分组 */
  .wh-gsec {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px 9px;
    font-size: 11.5px; font-weight: 700; color: #7A92A5;
  }
  .wh-gsec em {
    font-style: normal; font-size: 11px; font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .wh-gsec em.plus { color: #2E8B62; }
  .wh-gsec em.minus { color: #D9534F; }

  .wh-glist {
    background: #fff; border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
  }

  /* 收支行 */
  .wh-row2 {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(120,160,190,.09);
    transition: background .14s;
  }
  .wh-row2:last-child { border-bottom: 0; }
  .wh-row2:active { background: rgba(61,143,201,.05); }
  .wh-ic {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .wh-ic .ico-svg { width: 19px; height: 19px; }
  .wh-ic.in { background: rgba(59,167,118,.12); color: #2E8B62; }
  .wh-ic.out { background: rgba(217,83,79,.10); color: #D9534F; }
  .wh-in { flex: 1; min-width: 0; }
  .wh-t2 {
    font-size: 13.5px; font-weight: 700; color: #12303F;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wh-m2 {
    font-size: 11px; color: #93A8B8; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wh-amt2 {
    flex: none; font-size: 15px; font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .wh-amt2.plus { color: #2E8B62; }
  .wh-amt2.minus { color: #12303F; }


  /* ==================== 交易三页面 精修 ==================== */

  /* 倒计时里的时钟图标 */
  .ex-cd-ico {
    width: 13px; height: 13px;
    display: inline-block; vertical-align: -2px;
    margin-right: 3px;
    opacity: .9;
  }

  /* 滚动区加一点内阴影，暗示可以滚 */
  .ex-scroll {
    scroll-behavior: smooth;
  }

  /* 卡片入场：轻微上浮 */
  @keyframes exCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
  .ex-card, .ex-card-row, .wh-glist {
    animation: exCardIn .2s cubic-bezier(.2,.9,.3,1) both;
  }
  .ex-card:nth-child(2) { animation-delay: .03s; }
  .ex-card:nth-child(3) { animation-delay: .06s; }
  .ex-card:nth-child(4) { animation-delay: .09s; }
  .ex-card:nth-child(5) { animation-delay: .12s; }

  /* 余额卡的柔光 */
  .ex-hero, .wh-hero {
    position: relative;
  }
  .ex-hero::before, .wh-hero::before {
    content: '';
    position: absolute; left: -30%; top: -120%;
    width: 160%; height: 260%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.10) 0%, transparent 62%);
    pointer-events: none;
  }

  /* 大金额数字加一点字距收紧 + 阴影 */
  .ex-hero-bal, .wh-hero-bal {
    text-shadow: 0 2px 12px rgba(20,60,95,.18);
  }

  /* 快捷金额按钮按下更有手感 */
  .ex-chips b:active {
    transform: scale(.94);
  }

  /* 收款方式选中态加内发光 */
  .ex-seg-item.on {
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(61,143,201,.14), inset 0 1px 0 rgba(255,255,255,.9);
  }

  /* 收款码框：传完之后加绿边表示已就绪 */
  .ex-qrbox.filled {
    border-style: solid;
    border-color: rgba(59,167,118,.35);
    background: #F6FCF9;
  }

  /* 底部操作条：按钮渐变更立体 */
  .ex-foot button {
    background: linear-gradient(160deg, #55B0E6 0%, #3D8FC7 55%, #3481B8 100%);
    box-shadow: 0 6px 18px rgba(61,143,201,.30), inset 0 1px 0 rgba(255,255,255,.22);
  }

  /* 大厅卡片：右侧加个细微箭头感 */
  .ex-card-row {
    position: relative;
  }
  .ex-card-row::after {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, transparent, rgba(61,143,201,.14), transparent);
    opacity: 0; transition: opacity .18s;
  }
  .ex-card-row:active::after { opacity: 1; }

  /* 钱包：收支行的图标加内阴影 */
  .wh-ic {
    box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
  }

  /* 钱包：卖出/充值按钮加轻微立体 */
  .wh-act.sell {
    box-shadow: 0 2px 10px rgba(59,167,118,.12), inset 0 1px 0 rgba(255,255,255,.7);
  }
  .wh-act.buy {
    box-shadow: 0 6px 18px rgba(61,143,201,.26), inset 0 1px 0 rgba(255,255,255,.20);
  }

  /* 详情页大金额也加阴影 */
  .ex-dtop-amt {
    text-shadow: 0 2px 14px rgba(20,60,95,.20);
  }

  /* 空状态图标加底色渐变 */
  .ex-empty2-ico {
    background: linear-gradient(135deg, #EDF4FA, #E2EEF7);
    box-shadow: inset 0 1px 3px rgba(120,160,190,.10);
  }


  /* ==================== 申诉 / 仲裁 ==================== */

  /* 详情页申诉状态框 */
  .ex-dispute-box {
    background: rgba(217,83,79,.07);
    border: 1.5px solid rgba(217,83,79,.20);
    border-radius: 15px;
    padding: 15px 16px;
    margin-bottom: 14px;
  }
  .ex-dispute-t {
    font-size: 14px; font-weight: 800; color: #C9433E;
    margin-bottom: 8px;
  }
  .ex-dispute-d {
    font-size: 12.5px; color: #7A4A48; line-height: 1.7;
    background: rgba(255,255,255,.7);
    border-radius: 10px; padding: 9px 11px;
    margin-bottom: 9px;
    word-break: break-word;
  }
  .ex-dispute-tip {
    font-size: 11px; color: #A8696A; line-height: 1.6;
  }

  /* 申诉弹窗 */
  .ex-dp-amt {
    text-align: center; font-size: 13px; color: #5F7A8C;
    font-weight: 600; padding: 2px 0 14px;
  }
  .ex-dp-warn {
    background: rgba(217,154,43,.10);
    border-radius: 11px;
    padding: 11px 13px;
    font-size: 11.5px; color: #A87B1E; line-height: 1.65;
    margin-bottom: 15px;
  }
  .ex-dp-label {
    font-size: 11.5px; font-weight: 700; color: #93A8B8;
    letter-spacing: .4px; margin: 0 0 8px 2px;
  }
  .ex-dp-chips {
    display: flex; flex-direction: column; gap: 7px;
    margin-bottom: 15px;
  }
  .ex-dp-chip {
    font-size: 13px; font-weight: 600; color: #4A6B80;
    background: #F4F8FB; border-radius: 11px;
    padding: 11px 13px; cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .16s ease;
    text-align: left;
    line-height: 1.5;
  }
  .ex-dp-chip.on {
    background: rgba(217,83,79,.08);
    border-color: rgba(217,83,79,.30);
    color: #C9433E; font-weight: 700;
  }
  .ex-dp-chip:active { transform: scale(.985); }
  .ex-dp-input {
    width: 100%; box-sizing: border-box;
    border-radius: 12px; border: 1.5px solid rgba(120,160,190,.16);
    background: #FAFCFE;
    padding: 11px 13px;
    font-size: 13.5px; color: #12303F;
    line-height: 1.6; resize: none; outline: none;
    font-family: inherit;
  }
  .ex-dp-input:focus { border-color: #3D8FC7; background: #fff; }
  .ex-dp-input::placeholder { color: #A8BAC8; font-size: 12.5px; }
  .ex-dp-tip {
    font-size: 11.5px; color: #D9534F;
    min-height: 16px; text-align: center; margin-top: 8px;
  }

  /* 底部署名 */


  /* ==================== 群成员管理 · 全屏 ==================== */
  #gmpPage { z-index: 45 !important; background: #F2F7FB !important; }

  .gmp-hero {
    background: linear-gradient(135deg, #4BA8E0 0%, #3D8FC7 65%, #3580B4 100%);
    border-radius: 20px;
    padding: 20px 22px;
    margin: 14px 0 13px;
    box-shadow: 0 10px 26px rgba(61,143,201,.24);
    position: relative; overflow: hidden;
  }
  .gmp-hero::after {
    content: '';
    position: absolute; right: -44px; top: -52px;
    width: 156px; height: 156px; border-radius: 50%;
    background: rgba(255,255,255,.09);
  }
  .gmp-hero-name {
    font-size: 21px; font-weight: 800; color: #fff;
    letter-spacing: .3px; line-height: 1.3;
    position: relative; z-index: 1;
    word-break: break-word;
  }
  .gmp-hero-sub {
    font-size: 12px; color: rgba(255,255,255,.80);
    margin-top: 7px; position: relative; z-index: 1;
  }

  /* 群公告卡 */
  .gmp-notice {
    display: flex; align-items: flex-start; gap: 9px;
    background: #fff; border-radius: 15px;
    padding: 13px 15px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
    font-size: 12.5px; color: #34566E; line-height: 1.7;
    cursor: pointer;
    transition: background .14s;
    word-break: break-word;
  }
  .gmp-notice:active { background: rgba(61,143,201,.05); }
  .gmp-notice .gmp-nico {
    flex: none; width: 16px; height: 16px;
    color: #3D8FC7; margin-top: 1px;
  }
  .gmp-notice.empty { color: #93A8B8; }

  /* 管理按钮行 */
  .gmp-acts {
    display: flex; gap: 9px; margin-bottom: 14px;
  }
  .gmp-acts button {
    flex: 1; height: 40px;
    border: 1.5px solid rgba(61,143,201,.18);
    border-radius: 12px;
    background: #fff; color: #2C7EB8;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: transform .12s, background .14s;
  }
  .gmp-acts button:active {
    transform: scale(.97);
    background: rgba(61,143,201,.08);
  }

  /* 搜索框 */
  .gmp-search {
    width: 100%; height: 42px; box-sizing: border-box;
    padding: 0 14px; margin-bottom: 14px;
    border-radius: 12px; border: 1.5px solid transparent;
    background: #fff; font-size: 13.5px; color: #12303F;
    outline: none;
    box-shadow: 0 1px 6px rgba(24,68,102,.04);
    transition: border-color .16s;
  }
  .gmp-search:focus { border-color: #3D8FC7; }
  .gmp-search::placeholder { color: #A8BAC8; }

  /* 分组标题 */
  .gmp-sec {
    font-size: 11.5px; font-weight: 800; color: #7A92A5;
    letter-spacing: .5px; padding: 4px 4px 9px;
    display: flex; align-items: center; gap: 7px;
  }
  .gmp-sec::before {
    content: ''; width: 3px; height: 12px; border-radius: 2px;
    background: linear-gradient(180deg,#4BA8E0,#3D8FC7);
  }
  .gmp-sec i {
    font-style: normal; font-weight: 600; color: #A8BAC8;
    font-size: 10.5px; margin-left: auto;
  }

  /* 成员列表卡 */
  .gmp-list {
    background: #fff; border-radius: 17px;
    overflow: hidden; margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
  }
  .gmp-row {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(120,160,190,.08);
    transition: background .13s;
  }
  .gmp-row:last-child { border-bottom: 0; }
  .gmp-row:active { background: rgba(61,143,201,.05); }

  .gmp-av {
    width: 40px; height: 40px; flex: none;
    border-radius: 13px;
    background-size: cover; background-position: center;
    background-color: #E6EFF6;
    position: relative;
  }
  /* 在线绿点 */
  .gmp-av.on::after {
    content: '';
    position: absolute; right: -1px; bottom: -1px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #34C759;
    border: 2px solid #fff;
  }

  .gmp-info { flex: 1; min-width: 0; }
  .gmp-name {
    font-size: 13.5px; font-weight: 700; color: #12303F;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gmp-tag {
    flex: none; font-size: 9.5px; font-weight: 800;
    padding: 1.5px 6px; border-radius: 5px;
    background: rgba(61,143,201,.12); color: #2C7EB8;
  }
  .gmp-tag.owner { background: rgba(200,135,31,.14); color: #C8871F; }
  .gmp-tag.me { background: rgba(46,139,98,.13); color: #2E8B62; }
  .gmp-sub2 {
    font-size: 11px; color: #A8BAC8; margin-top: 2px;
  }

  .gmp-btns { display: flex; gap: 5px; flex: none; }
  .gmp-btns button {
    height: 27px; padding: 0 9px;
    border: 1px solid rgba(61,143,201,.18);
    border-radius: 8px;
    background: #FAFCFE; color: #2C7EB8;
    font-size: 11px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
    transition: background .13s, transform .12s;
  }
  .gmp-btns button:active { transform: scale(.94); }
  .gmp-btns button.danger {
    color: #D9534F;
    border-color: rgba(217,83,79,.18);
    background: rgba(217,83,79,.05);
  }

  /* 底部操作 */
  .gmp-bottom { margin-bottom: 34px; }
  .gmp-bigbtn {
    width: 100%; height: 46px;
    border: 0; border-radius: 14px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-bottom: 9px;
    transition: transform .12s, opacity .12s;
  }
  .gmp-bigbtn:active { transform: scale(.985); }
  .gmp-bigbtn.primary {
    background: linear-gradient(135deg, #4BA8E0, #3D8FC7);
    color: #fff;
    box-shadow: 0 6px 18px rgba(61,143,201,.26);
  }
  .gmp-bigbtn.ghost {
    background: #fff; color: #2C7EB8;
    border: 1.5px solid rgba(61,143,201,.18);
  }
  .gmp-bigbtn.leave {
    background: rgba(217,83,79,.06); color: #D9534F;
    border: 1.5px solid rgba(217,83,79,.16);
    margin-top: 18px;
  }
  .gmp-bigbtn svg { width: 17px; height: 17px; }

  /* ==================== 交易 / 钱包 UI 美化补丁 ==================== */
  /* 大厅卡片：左侧渐变条 + 更立体的阴影 */
  .ex-card-row {
    border: 1px solid rgba(120,160,190,.10);
    box-shadow: 0 5px 18px rgba(24,68,102,.07);
  }
  .ex-card-row::before {
    content: '';
    position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #6FC0EE, #3D8FC7);
  }
  .ex-card-row:active { box-shadow: 0 2px 8px rgba(24,68,102,.10); }

  /* 金额用渐变字 */
  .ex-cr-amt {
    font-size: 28px;
    background: linear-gradient(135deg, #1B6CA5 0%, #43A6E3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* 倒计时按紧急程度变色 */
  .ex-cr-cd.calm   { background: rgba(61,143,201,.10); color: #2C7EB8; }
  .ex-cr-cd.warn   { background: rgba(217,154,43,.15); color: #C8871F; }
  .ex-cr-cd.urgent { background: rgba(217,83,79,.13);  color: #D9534F; }

  /* 支付方式色点 */
  .ex-cr-pay { display: inline-flex; align-items: center; gap: 5px; }
  .ex-cr-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
  .ex-cr-dot.alipay { background: #1677FF; }
  .ex-cr-dot.wechat { background: #07C160; }
  .ex-cr-dot.bank   { background: #7A6BC4; }
  .ex-cr-dot.other  { background: #93A8B8; }

  /* 支付方式的软件图标 */
  .ex-pay-ico {
    width: 17px; height: 17px; border-radius: 5px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 800; color: #fff;
    letter-spacing: 0; line-height: 1;
    font-style: normal;
  }
  .ex-pay-ico.alipay { background: #1677FF; box-shadow: 0 2px 6px rgba(22,119,255,.28); }
  .ex-pay-ico.wechat { background: #07C160; box-shadow: 0 2px 6px rgba(7,193,96,.28); }
  .ex-pay-ico.bank   { background: #7A6BC4; box-shadow: 0 2px 6px rgba(122,107,196,.28); }
  .ex-pay-ico.other  { background: #93A8B8; }

  /* 大厅头像 */
  .ex-cr-av { overflow: hidden; }
  .ex-cr-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* 卡片右侧箭头 */
  .ex-cr-arrow { width: 14px; height: 14px; color: #C6D6E2; flex: none; }

  /* 钱包 hero：一道斜光 + 余额描影 */
  .wh-hero::before {
    content: '';
    position: absolute; left: -20%; top: -70%;
    width: 150%; height: 150%;
    background: linear-gradient(102deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
    transform: rotate(6deg);
    pointer-events: none;
  }
  .wh-hero-bal { text-shadow: 0 2px 12px rgba(10,50,80,.18); }

  /* 买卖两个按钮更分明 */
  .wh-act.sell {
    background: linear-gradient(135deg, #F1FCF6 0%, #DFF7EB 100%);
    box-shadow: 0 5px 16px rgba(46,139,98,.13);
  }
  .wh-act.buy {
    background: linear-gradient(135deg, #52B2EA 0%, #3583BE 100%);
    box-shadow: 0 7px 20px rgba(61,143,201,.28);
  }
  .wh-act.buy .wh-act-ico { background: rgba(255,255,255,.24); }

  /* 钱包明细：按类型上色 */
  .wh-ic.k-redpacket { background: rgba(217,83,79,.11);  color: #D9534F; }
  .wh-ic.k-transfer  { background: rgba(61,143,201,.11); color: #2C7EB8; }
  .wh-ic.k-ex_sell   { background: rgba(217,154,43,.13); color: #C8871F; }
  .wh-ic.k-ex_buy    { background: rgba(59,167,118,.13); color: #2E8B62; }
  .wh-ic.k-ex_refund { background: rgba(122,107,196,.12); color: #7A6BC4; }
  .wh-ic.k-admin     { background: rgba(120,140,155,.13); color: #5E7686; }

  .wh-row2:hover { background: rgba(61,143,201,.035); }

  /* 卖余额：快捷金额选中态 */
  .ex-chips b.on {
    background: linear-gradient(135deg, #4FAEE6, #3583BE);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(61,143,201,.28);
  }

  /* ==================== 视频播放器 v2 ==================== */
  #videoFull { background: #000 !important; }

  /* 顶部栏 */
  .vf-top {
    position: absolute; left: 0; right: 0; top: 0; z-index: 6;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 14px 34px;
    background: linear-gradient(180deg, rgba(0,0,0,.66), rgba(0,0,0,0));
    transition: opacity .2s ease;
  }
  .vf-top.hide { opacity: 0; pointer-events: none; }
  .vf-back {
    width: 34px; height: 34px; flex: none;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.16); color: #fff;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .vf-back svg { width: 18px; height: 18px; }
  .vf-title {
    color: #fff; font-size: 14px; font-weight: 600; opacity: .92;
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* 中间大播放键 */
  .vf-center {
    position: absolute; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .vf-play {
    width: 68px; height: 68px; border-radius: 50%; border: 0;
    background: rgba(0,0,0,.40);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; display: flex; align-items: center; justify-content: center;
    pointer-events: auto;
    transition: transform .12s ease, opacity .2s ease;
  }
  .vf-play:active { transform: scale(.92); }
  .vf-play svg { width: 30px; height: 30px; margin-left: 3px; }
  .vf-center.playing .vf-play { opacity: 0; pointer-events: none; }

  /* 底部控制区 */
  .vf-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 30px 16px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0));
    transition: opacity .2s ease;
  }
  .vf-bottom.hide { opacity: 0; pointer-events: none; }

  .vf-bar {
    position: relative; height: 4px; border-radius: 3px;
    background: rgba(255,255,255,.22);
    margin-bottom: 12px; cursor: pointer;
  }
  .vf-bar::after {                           /* 加大可点区域 */
    content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px;
  }
  .vf-buf {
    position: absolute; left: 0; top: 0; bottom: 0;
    border-radius: 3px; background: rgba(255,255,255,.32); width: 0;
  }
  .vf-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #6FC0EE, #3D8FC7);
    width: 0;
  }
  .vf-dot {
    position: absolute; left: 0; top: 50%;
    width: 12px; height: 12px; margin-left: -6px;
    border-radius: 50%; background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(61,143,201,.34);
    transition: transform .12s ease;
  }
  .vf-bar.drag .vf-dot { transform: translateY(-50%) scale(1.25); }

  .vf-row { display: flex; align-items: center; gap: 12px; }
  .vf-time {
    color: rgba(255,255,255,.88); font-size: 12px; font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .vf-actions { margin-left: auto; display: flex; gap: 8px; }
  .vf-btn {
    width: 34px; height: 34px; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.13); color: #fff;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .12s;
  }
  .vf-btn:active { transform: scale(.92); }
  .vf-btn svg { width: 17px; height: 17px; }

  /* ==================== 红包详情（全屏） ==================== */
  .pk-hero {
    margin: 14px 0 0;
    border-radius: 20px;
    padding: 24px 20px 20px;
    background: linear-gradient(150deg, #E8574C 0%, #C93F38 60%, #A8322C 100%);
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
    box-shadow: 0 12px 30px rgba(201, 63, 56, .26);
  }
  .pk-hero::after {
    content: '';
    position: absolute; right: -50px; top: -60px;
    width: 170px; height: 170px; border-radius: 50%;
    background: rgba(255, 255, 255, .10);
  }
  .pk-hero.tr {
    background: linear-gradient(150deg, #52B2EA 0%, #3583BE 60%, #2A6C9E 100%);
    box-shadow: 0 12px 30px rgba(61, 143, 201, .26);
  }
  .pk-hero-ico {
    width: 54px; height: 54px; margin: 0 auto 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .17);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
  }
  .pk-hero-ico .ico-svg { width: 28px; height: 28px; }
  .pk-hero-note {
    font-size: 16.5px; font-weight: 800; letter-spacing: .3px;
    position: relative; z-index: 1;
  }
  .pk-hero-by {
    font-size: 11.5px; opacity: .84; margin-top: 5px;
    position: relative; z-index: 1;
  }
  .pk-hero-amt {
    font-size: 40px; font-weight: 800; letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 2px; line-height: 1.1;
    position: relative; z-index: 1;
  }

  /* 三个统计格子 */
  .pk-stats {
    display: flex; background: #fff; border-radius: 16px;
    margin-top: 14px; padding: 15px 0;
    box-shadow: 0 2px 10px rgba(24, 68, 102, .05);
  }
  .pk-stat { flex: 1; text-align: center; position: relative; }
  .pk-stat + .pk-stat::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 22px;
    background: rgba(120, 160, 190, .16);
  }
  .pk-stat b {
    display: block; font-size: 17px; font-weight: 800; color: #12303F;
    font-variant-numeric: tabular-nums;
  }
  .pk-stat span { display: block; font-size: 10.5px; color: #93A8B8; margin-top: 3px; }

  /* 领取记录 */
  .pk-sec {
    margin: 20px 2px 9px;
    font-size: 12px; font-weight: 700; color: #7A92A5;
    letter-spacing: .3px;
  }
  .pk-list {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(24, 68, 102, .05);
  }
  .pk-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(120, 160, 190, .09);
  }
  .pk-row:last-child { border-bottom: 0; }
  .pk-row.mine { background: rgba(200, 135, 31, .055); }
  .pk-av {
    width: 36px; height: 36px; border-radius: 12px; flex: none;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 800; overflow: hidden;
  }
  .pk-who {
    flex: 1; min-width: 0;
    font-size: 13.5px; font-weight: 700; color: #12303F;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pk-time {
    font-size: 10.5px; color: #93A8B8; font-weight: 600; margin-top: 2px;
  }
  .pk-lucky {
    display: inline-block; font-size: 9.5px; font-weight: 800;
    padding: 1px 6px; border-radius: 5px;
    background: rgba(200, 135, 31, .15); color: #C8871F;
    margin-left: 5px;
  }
  .pk-get {
    flex: none; font-size: 15px; font-weight: 800; color: #C8871F;
    font-variant-numeric: tabular-nums;
  }
  .pk-empty {
    background: #fff; border-radius: 16px;
    padding: 42px 0; text-align: center;
    color: #93A8B8; font-size: 13px;
    box-shadow: 0 2px 10px rgba(24, 68, 102, .05);
  }
  .pk-btns {
    display: flex; gap: 10px;
    margin: 20px 0 34px;
  }
  .pk-btns .btn-primary, .pk-btns .btn-ghost {
    flex: 1; height: 46px; border-radius: 14px;
    font-size: 15px; font-weight: 800; margin: 0;
  }

  /* ==================== @ 提醒谁（全屏） ==================== */
  .mt-search {
    position: relative; flex: none;
    padding: 8px 14px 10px;
    background: #EDF5FC;
  }
  .mt-search input {
    width: 100%; height: 42px;
    border-radius: 13px;
    border: 1.5px solid rgba(120, 160, 190, .16);
    background: #fff;
    padding: 0 14px 0 40px;
    font-size: 14px; font-family: inherit;
    color: #12303F; outline: 0;
  }
  .mt-search input:focus { border-color: #4A9FD8; }
  .mt-search svg {
    position: absolute; left: 28px; top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px; color: #93A8B8;
    pointer-events: none;
  }
  .mt-row2 {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(120, 160, 190, .08);
    cursor: pointer;
    transition: background .12s;
  }
  .mt-row2:active { background: rgba(61, 143, 201, .06); }
  .mt-av2 {
    width: 44px; height: 44px; border-radius: 15px; flex: none;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 800;
    overflow: hidden; position: relative;
  }
  .mt-av2 .dot-on {
    position: absolute; right: -1px; bottom: -1px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #2E9E6B; border: 2px solid #fff;
  }
  .mt-info2 { flex: 1; min-width: 0; }
  .mt-info2 b {
    display: block; font-size: 14px; font-weight: 700; color: #12303F;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mt-info2 i {
    display: block; font-size: 11.5px; color: #93A8B8;
    font-style: normal; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mt-info2 mark {
    background: rgba(200, 135, 31, .24); color: inherit;
    border-radius: 3px; padding: 0 1px;
  }
  .mt-go {
    width: 28px; height: 28px; border-radius: 50%; flex: none;
    background: rgba(61, 143, 201, .09); color: #2C7EB8;
    display: flex; align-items: center; justify-content: center;
  }
  .mt-go svg { width: 15px; height: 15px; }
  .mt-hit {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; color: #2E9E6B; font-weight: 700;
  }
  .mt-empty2 {
    padding: 70px 24px; text-align: center;
    color: #93A8B8; font-size: 13.5px; line-height: 1.9;
  }

  /* ==================== 全屏页顶栏固定高度 ==================== */
  /* 之前顶栏高度跟着内容/安全区飘，某些手机打开会多出一截。
     这里统一钉死：54px + 刘海安全区，上下都不许撑大 */
  .page > .topbar,
  .ex-full > .topbar,
  #chat > .topbar {
    flex: 0 0 auto !important;
    height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    max-height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  /* .page 是 position:fixed + inset:0，高度本来就由视口决定；
     再压一个 100dvh 会随地址栏收起/展开而变，就是「多一截」的来源 */
  .page.ex-full {
    height: auto !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  /* ==================== 顶栏高度最终锁定 ==================== */
  /* 之前用 calc(54px + env(safe-area-inset-top))：Safari 首次渲染时 env 是 0、
     布局完成后才变成 44，顶栏就「有时候突然变高」。
     这里彻底写死 54px，不参与安全区计算，所有页面统一 */
  .topbar,
  .page > .topbar,
  .ex-full > .topbar,
  #chat > .topbar,
  #me > .topbar {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* ==================== 外观设置：字号预览跟着变 ==================== */
  /* --fs-scale 之前只在 applyFont 里设了，CSS 没人用它，
     所以点「大 / 超大」预览文字纹丝不动。这里让它真正生效 */
  .ap-preview {
    font-size: calc(14px * var(--fs-scale, 1)) !important;
    transition: font-size .16s ease;
    line-height: 1.6;
  }

  /* ==================== 名片（全屏） ==================== */
  .pf-hero {
    text-align: center;
    padding: 26px 20px 20px;
    background: linear-gradient(180deg, rgba(97, 178, 232, .16), rgba(97, 178, 232, 0));
  }
  .pf-av2 {
    width: 88px; height: 88px; margin: 0 auto 14px;
    border-radius: 30px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 32px; font-weight: 800;
    box-shadow: 0 10px 26px rgba(24, 68, 102, .18);
    position: relative; overflow: hidden;
  }
  .pf-av2 .dot {
    position: absolute; right: 4px; bottom: 4px;
    width: 15px; height: 15px; border-radius: 50%;
    background: #2E9E6B; border: 3px solid #fff;
  }
  .pf-name2 { font-size: 22px; font-weight: 800; color: #12303F; letter-spacing: .3px; }
  .pf-acc2 { font-size: 12.5px; color: #93A8B8; margin-top: 5px; }
  .pf-tags2 {
    display: flex; gap: 6px; justify-content: center;
    flex-wrap: wrap; margin-top: 13px;
  }
  .pf-tag2 {
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 8px;
    background: rgba(61, 143, 201, .10); color: #2C7EB8;
  }
  .pf-tag2.green { background: rgba(46, 158, 107, .13); color: #2E9E6B; }
  .pf-tag2.gold  { background: rgba(201, 138, 60, .15); color: #A8701F; }

  .pf-card {
    background: #fff; border-radius: 18px;
    margin: 0 14px 14px;
    padding: 2px 16px;
    box-shadow: 0 2px 10px rgba(24, 68, 102, .05);
  }
  .pf-line2 {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(120, 160, 190, .09);
    font-size: 13.5px;
  }
  .pf-line2:last-child { border-bottom: 0; }
  .pf-line2 span { color: #7A92A5; }
  .pf-line2 b { color: #12303F; font-weight: 700; }
  .pf-groups2 {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 12px 0 16px;
  }
  .pf-group2 {
    font-size: 11.5px; font-weight: 600;
    padding: 5px 10px; border-radius: 9px;
    background: rgba(61, 143, 201, .09); color: #2C7EB8;
  }
  .pf-acts2 {
    display: flex; gap: 10px;
    margin: 6px 14px 30px;
  }
  .pf-acts2 button {
    flex: 1; height: 46px; border-radius: 14px;
    font-size: 15px; font-weight: 800; margin: 0;
  }

  /* ==================== 名片美化 v2 ==================== */
  .pf-hero { position: relative; overflow: hidden; }
  .pf-hero::before {
    content: '';
    position: absolute; left: 50%; top: -90px;
    width: 260px; height: 260px;
    margin-left: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97,178,232,.22), rgba(97,178,232,0));
    pointer-events: none;
  }
  .pf-av2 {
    box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 14px 32px rgba(24,68,102,.20);
    position: relative; z-index: 1;
  }
  .pf-name2 { position: relative; z-index: 1; }
  .pf-acc2 { position: relative; z-index: 1; }
  .pf-tags2 { position: relative; z-index: 1; }
  .pf-tag2 { border: 1px solid rgba(61,143,201,.10); }

  /* 三栏统计卡 */
  .pf-stats {
    display: flex;
    background: #fff; border-radius: 18px;
    margin: 0 14px 12px;
    padding: 16px 0;
    box-shadow: 0 4px 16px rgba(24,68,102,.06);
    border: 1px solid rgba(120,160,190,.08);
  }
  .pf-stat { flex: 1; text-align: center; position: relative; }
  .pf-stat + .pf-stat::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 24px;
    background: rgba(120,160,190,.14);
  }
  .pf-stat b {
    display: block; font-size: 19px; font-weight: 800; color: #12303F;
    font-variant-numeric: tabular-nums; line-height: 1.1;
  }
  .pf-stat span { display: block; font-size: 10.5px; color: #93A8B8; margin-top: 4px; }
  .pf-stat.green b { color: #2E9E6B; }
  .pf-stat.gold b { color: #C8871F; }
  .pf-stat.red b { color: #E2574C; }

  /* 交易信用小标题 */
  .pf-sub {
    margin: 4px 18px 8px;
    font-size: 11.5px; font-weight: 700; color: #7A92A5;
    letter-spacing: .3px;
  }
  .pf-trade { margin-top: 0; }

  /* 资料卡线条更轻 */
  .pf-line2 { font-size: 13px; }
  .pf-line2 b { font-variant-numeric: tabular-nums; }

  /* ==================== 名片美化 v3：封面 + 悬浮头像 ==================== */
  .pf-cover {
    height: 128px;
    background: linear-gradient(135deg, #63B9EA 0%, #3D8FC7 55%, #2F7BB0 100%);
    position: relative; overflow: hidden;
    flex: none;
  }
  .pf-cover::before {
    content: '';
    position: absolute; left: -36px; bottom: -80px;
    width: 170px; height: 170px; border-radius: 50%;
    background: rgba(255, 255, 255, .09);
  }
  .pf-cover::after {
    content: '';
    position: absolute; right: -46px; top: -72px;
    width: 210px; height: 210px; border-radius: 50%;
    background: rgba(255, 255, 255, .11);
  }

  .pf-hero { padding-top: 0; }
  .pf-hero::before { display: none; }

  .pf-av3 {
    width: 92px; height: 92px;
    margin: -46px auto 12px;
    border-radius: 30px;
    border: 4px solid #fff;
    box-shadow: 0 12px 28px rgba(24, 68, 102, .22);
    position: relative; z-index: 2;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; font-weight: 800;
    overflow: visible;
  }
  .pf-av3 .dot {
    position: absolute; right: -2px; bottom: -2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #2E9E6B; border: 3px solid #fff;
  }

  /* 签名 / 留言 */
  .pf-sign {
    margin: 10px 30px 0;
    font-size: 12.5px; color: #7A92A5;
    text-align: center; line-height: 1.7;
    padding: 8px 12px;
    border-radius: 11px;
    background: rgba(97, 178, 232, .08);
  }

  /* 按钮加图标 */
  .pf-acts2 button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .pf-acts2 button .ico-svg { width: 16px; height: 16px; flex: none; }

  /* 封面顶满宽度、头像别被 hero 的 overflow 裁掉 */
  .pf-cover {
    margin: 0 -14px;
    width: auto;
  }
  .pf-hero {
    overflow: visible !important;
  }
  .pf-av3 {
    margin: -46px auto 12px;
    z-index: 3;
  }

  /* ==================== @ 弹窗美化 ==================== */
  .mention-panel {
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -12px 44px rgba(24, 68, 102, .18) !important;
    overflow: hidden !important;
    background: #fff !important;
  }
  .mention-panel .mt-head {
    padding: 14px 16px 10px !important;
    border-bottom: 1px solid rgba(120, 160, 190, .10);
    margin-bottom: 2px;
  }
  .mention-panel .mt-head span { display: inline-flex; align-items: center; gap: 6px; }
  .mention-panel .mt-count {
    background: rgba(61, 143, 201, .10) !important;
    color: #2C7EB8 !important;
    font-weight: 800 !important;
  }

  /* 「所有人」那一行：从粉底改成淡蓝渐变 */
  .mention-panel .mt-all {
    background: linear-gradient(135deg, rgba(97, 178, 232, .16), rgba(61, 143, 201, .09)) !important;
    border: 1px solid rgba(61, 143, 201, .14) !important;
    margin-bottom: 4px !important;
  }
  .mention-panel .mt-all .mt-av-all {
    background: linear-gradient(135deg, #5FB6E8, #3583BE) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(61, 143, 201, .28) !important;
  }
  .mention-panel .mt-all .mt-av-all .ico-svg { width: 18px !important; height: 18px !important; }
  .mention-panel .mt-all b { color: #2C7EB8 !important; }
  .mention-panel .mt-all i { color: rgba(44, 126, 184, .72) !important; }

  /* 在线小绿点 */
  .mention-panel .mt-live {
    display: inline-block !important;
    width: 6px !important; height: 6px !important;
    border-radius: 50% !important;
    background: #2E9E6B !important;
    box-shadow: 0 0 0 2px rgba(46, 158, 107, .16) !important;
    flex: none;
  }

  .mention-panel .mt-row + .mt-row { margin-top: 2px; }
  .mention-panel .mt-row:active { transform: scale(.985); }
  .mention-panel .mt-list {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .mention-panel .mt-av {
    box-shadow: 0 2px 8px rgba(24, 68, 102, .10) !important;
  }

  /* 会话列表：@ 提醒红字 */
  .at-flag {
    color: #E2574C;
    font-weight: 800;
    margin-right: 2px;
  }

  /* ==================== 群成员操作菜单 ==================== */
  .ms-head {
    display: flex; align-items: center; gap: 13px;
    padding: 2px 2px 16px;
    text-align: left;
  }
  .ms-av {
    width: 54px; height: 54px; border-radius: 18px; flex: none;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; font-weight: 800;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 14px rgba(24, 68, 102, .14);
  }
  .ms-av .ms-dot {
    position: absolute; right: 1px; bottom: 1px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #2E9E6B; border: 2px solid #fff;
  }
  .ms-info { min-width: 0; flex: 1; }
  .ms-info b {
    display: block; font-size: 17px; font-weight: 800; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ms-info i {
    display: block; font-style: normal; font-size: 12px;
    color: var(--dim); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ms-list { border-top: 1px solid var(--line); }
  .ms-item {
    display: flex; align-items: center; gap: 13px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px; font-weight: 600; color: var(--text);
    cursor: pointer;
  }
  .ms-item:last-child { border-bottom: 0; }
  .ms-item:active { background: rgba(61, 143, 201, .05); }
  .ms-ico {
    width: 34px; height: 34px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(61, 143, 201, .10); color: #2C7EB8;
  }
  .ms-ico .ico-svg { width: 18px; height: 18px; }
  .ms-item.danger .ms-ico { background: rgba(226, 87, 76, .11); color: #E2574C; }
  .ms-item.danger .ms-t { color: #E2574C; }
  .ms-t { flex: 1; }
  .ms-arrow { color: var(--faint); font-size: 18px; }

  /* 操作项文字贴着图标左对齐 */
  .ms-item { justify-content: flex-start; text-align: left; }
  .ms-t { flex: 1; text-align: left; }

  /* 名片：比群成员管理页（z-index 45）高，从群成员页点进来不会被盖住 */
  #profilePage { z-index: 56 !important; }

  /* ==================== 聊天页：有人@你 跳转按钮 ==================== */
  .at-jump {
    position: relative;
    width: 36px !important; height: 36px !important;
    color: #E2574C !important;
    font-weight: 800;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
  }
  .at-jump:active { background: rgba(226, 87, 76, .10) !important; }
  .at-jump .aj-txt { line-height: 1; }
  .at-jump .aj-dot {
    position: absolute; top: 0; right: -1px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 9px;
    background: #E2574C; color: #fff;
    font-size: 9.5px; font-weight: 800; font-style: normal;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #fff;
    box-sizing: border-box;
  }

  /* ==================== 聊天页：有人@你 浮动提示条 ==================== */
  .at-jump-bar {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    top: 62px;
    z-index: 35;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 8px 24px rgba(24, 68, 102, .18);
    font-size: 13px; font-weight: 700;
    color: #C2453C;
    cursor: pointer;
    border: 1px solid rgba(226, 87, 76, .14);
    animation: atjumpIn .22s ease;
    white-space: nowrap;
  }
  .at-jump-bar:active { transform: translateX(-50%) scale(.97); }
  .at-jump-bar .ajb-ico {
    width: 18px; height: 18px; border-radius: 6px;
    background: #E2574C; color: #fff;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex: none;
  }
  .at-jump-bar .ajb-arrow { color: #E2574C; font-size: 12px; opacity: .7; }
  @keyframes atjumpIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  /* 「有人@你」改到右下角 */
  .at-jump-bar {
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: 92px !important;
    transform: none !important;
    animation: atjumpInR .22s ease !important;
  }
  .at-jump-bar:active { transform: scale(.96) !important; }
  @keyframes atjumpInR {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to   { opacity: 1; transform: none; }
  }

  /* 「有人@你」：挪到公告条右下方 + 红渐变胶囊 */
  .at-jump-bar {
    left: auto !important;
    right: 12px !important;
    bottom: auto !important;
    top: 62px;
    height: 34px;
    padding: 0 14px 0 4px;
    border-radius: 17px;
    background: linear-gradient(135deg, #FF7A6B, #E2574C) !important;
    color: #fff !important;
    border: 0 !important;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(226, 87, 76, .32), 0 1px 0 rgba(255, 255, 255, .25) inset;
    animation: atjumpInR .22s ease !important;
  }
  .at-jump-bar:active { transform: scale(.96) !important; }
  .at-jump-bar .ajb-ico {
    width: 26px; height: 26px; border-radius: 13px;
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
    font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex: none;
  }
  .at-jump-bar .ajb-txt { letter-spacing: .2px; }
  .at-jump-bar .ajb-arrow { color: #fff !important; opacity: .85; font-size: 11px; }

  /* 「有人@你」：再往下让一点、阴影收一收 */
  .at-jump-bar {
    border-radius: 18px !important;
    box-shadow: 0 6px 18px rgba(226, 87, 76, .26) !important;
    height: 36px !important;
    padding: 0 15px 0 5px !important;
  }

  /* 「有人@你」半透明：透出底下的内容，不挡视线 */
  .at-jump-bar {
    background: linear-gradient(135deg, rgba(255, 122, 107, .82), rgba(226, 87, 76, .82)) !important;
    backdrop-filter: blur(10px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    box-shadow: 0 6px 18px rgba(226, 87, 76, .22) !important;
  }

  /* 「有人@你」：QQ 那样贴在输入框上方居中 */
  .at-jump-bar {
    top: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    animation: atjumpFade .2s ease !important;
  }
  @keyframes atjumpFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* 新消息提示：贴到输入框上方，点击回到底部 */
  .new-tip {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 34 !important;
    padding: 8px 16px !important;
    border-radius: 18px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(143, 208, 242, .96), rgba(62, 143, 201, .96)) !important;
    box-shadow: 0 6px 18px rgba(74, 159, 216, .28) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap;
    cursor: pointer;
  }
  .new-tip:active { transform: translateX(-50%) scale(.96); }
  .new-tip .nt-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border-radius: 9px;
    background: rgba(255, 255, 255, .22);
    font-size: 10px; font-weight: 800;
  }

  /* 新消息提示：再精修一版 */
  .new-tip {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    height: 36px !important;
    padding: 0 15px 0 5px !important;
    border-radius: 18px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(96, 176, 232, .96), rgba(58, 138, 194, .96)) !important;
    border: 1px solid rgba(255, 255, 255, .30) !important;
    box-shadow: 0 8px 22px rgba(58, 138, 194, .26), 0 1px 0 rgba(255, 255, 255, .22) inset !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    white-space: nowrap;
    cursor: pointer;
    animation: ntIn .2s ease !important;
  }
  .new-tip:active { transform: translateX(-50%) scale(.96); }
  .new-tip .nt-arrow {
    width: 26px !important; height: 26px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .22) !important;
    font-size: 12px !important; font-weight: 800 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    flex: none;
  }
  @keyframes ntIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  /* ==================== 整体 UI 统一（设计系统） ==================== */
  :root {
    --sh-md: 0 6px 20px rgba(56, 116, 160, .10);
    --sh-lg: 0 12px 32px rgba(56, 116, 160, .14);
    --radius-btn: 14px;
    --radius-card: 18px;
    --radius-inp: 14px;
    --brand: #3A8AC6;
  }
  /* 按钮：统一圆角、统一按压反馈 */
  .btn-primary, .btn-ghost, .btn-danger, .btn-soft {
    border-radius: var(--radius-btn) !important;
  }
  .btn-primary:active, .btn-ghost:active, .btn-danger:active { transform: scale(.97); }
  /* 卡片 / 弹层：统一圆角与阴影 */
  .card, .sheet .box, .login-box, .pf-card, .pk-stats, .pk-list {
    border-radius: var(--radius-card) !important;
  }
  .sheet .box { box-shadow: var(--sh-lg) !important; }
  /* 输入框 */
  .inp, .input, textarea#inputMsg {
    border-radius: var(--radius-inp) !important;
  }
  /* 顶栏更轻一点 */
  .topbar { background: rgba(255, 255, 255, .70) !important; }
  /* 会话列表行：hover/按下更柔和 */
  .row:active { background: rgba(61, 143, 201, .05) !important; }
  /* 徽章与标签统一圆角 */
  .pf-tag2, .pk-lucky, .tag { border-radius: 9px !important; }
  /* 底部 tabbar 更浮起来 */
  .tabbar { box-shadow: 0 10px 30px rgba(56, 116, 160, .14) !important; }

  /* 「有人@你」改成跟整体蓝白 UI 一致的风格（原来红渐变太跳） */
  .at-jump-bar {
    background: rgba(255, 255, 255, .96) !important;
    color: #2C7EB8 !important;
    border: 1px solid rgba(61, 143, 201, .18) !important;
    box-shadow: 0 8px 24px rgba(56, 116, 160, .16) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  }
  .at-jump-bar .ajb-ico {
    background: linear-gradient(135deg, #5FB6E8, #3583BE) !important;
    color: #fff !important;
  }
  .at-jump-bar .ajb-arrow {
    color: #2C7EB8 !important;
    opacity: .8;
  }
  /* 新消息提示：也收成同一个白底/蓝字体系？保持蓝渐变但降饱和，和顶栏更搭 */
  .new-tip {
    background: linear-gradient(135deg, rgba(96, 176, 232, .95), rgba(58, 138, 194, .95)) !important;
  }

  /* 未领取的红包：只露出份数 */
  .pk-locked-tip {
    margin: 2px 0 4px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #B4574C;
  }

  /* ==================== 上传进度条 ==================== */
  .upload-bar {
    position: absolute;
    left: 12px; right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    z-index: 39;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-radius: 14px;
    padding: 11px 14px;
    box-shadow: 0 10px 28px rgba(24, 68, 102, .18);
    border: 1px solid rgba(120, 160, 190, .14);
    animation: ubIn .2s ease;
  }
  @keyframes ubIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .ub-track {
    height: 6px; border-radius: 3px;
    background: rgba(61, 143, 201, .13);
    overflow: hidden;
  }
  .ub-fill {
    height: 100%; width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, #5FB6E8, #3583BE);
    transition: width .16s ease;
  }
  .ub-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 7px;
    font-size: 11.5px;
  }
  .ub-txt { color: #5F7A8C; font-weight: 600; }
  .ub-pct { color: #2C7EB8; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* 上传进度条美化 v2 */
  .upload-bar {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 11px 14px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .97) !important;
    border: 1px solid rgba(120, 160, 190, .12) !important;
    box-shadow: 0 10px 30px rgba(24, 68, 102, .16) !important;
  }
  .upload-bar .ub-ico {
    width: 36px; height: 36px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, #63B9EA, #3583BE);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 14px rgba(53, 131, 190, .30);
  }
  .upload-bar .ub-ico svg { width: 18px; height: 18px; }
  .upload-bar .ub-body { flex: 1; min-width: 0; }
  .upload-bar .ub-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0; margin-bottom: 6px;
    font-size: 11.5px;
  }
  .upload-bar .ub-txt { color: #5F7A8C; font-weight: 600; }
  .upload-bar .ub-pct { color: #2C7EB8; font-weight: 800; font-variant-numeric: tabular-nums; }
  .upload-bar .ub-track {
    height: 5px; border-radius: 3px;
    background: rgba(61, 143, 201, .13);
    overflow: hidden;
  }
  .upload-bar .ub-fill {
    height: 100%; width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, #63B9EA, #3583BE);
    box-shadow: 0 0 10px rgba(99, 185, 234, .45);
    transition: width .16s ease;
  }

  /* 带 display 的浮层组件：hidden 时必须真的消失
     （之前 .upload-bar 用 display:flex !important，把 .hidden 的 display:none 盖掉了，
      结果一进聊天页就挂着 0% 的进度条） */
  .upload-bar.hidden,
  .new-tip.hidden,
  .at-jump-bar.hidden { display: none !important; }

  /* 上传条图标：矢量 SVG，按类型（视频/图片/文件）切换 */
  .upload-bar .ub-ico svg {
    width: 20px; height: 20px;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .upload-bar .ub-ico {
    background: linear-gradient(135deg, #63B9EA, #3583BE) !important;
  }

  /* ==================== 「更多」面板：底部贴底 + 美化 ==================== */
  .sheet .box {
    border-radius: 26px 26px 0 0 !important;
    padding: 18px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -20px 48px rgba(24, 68, 102, .20) !important;
  }
  .sheet .sg-title {
    margin: 12px 4px 9px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #7A92A5 !important;
    letter-spacing: .4px !important;
  }
  .sheet .sg-grid {
    gap: 10px !important;
    margin-bottom: 2px !important;
  }
  .sheet .sg-cell {
    border-radius: 16px !important;
    padding: 12px 8px 10px !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(120, 160, 190, .10) !important;
    transition: transform .12s ease, background .12s ease !important;
  }
  .sheet .sg-cell:active {
    transform: scale(.96) !important;
    background: rgba(61, 143, 201, .06) !important;
  }
  .sheet .sg-ico {
    width: 44px !important; height: 44px !important;
    border-radius: 14px !important;
    margin-bottom: 7px !important;
    box-shadow: 0 4px 12px rgba(56, 116, 160, .14) !important;
  }
  .sheet .sg-ico svg { width: 21px !important; height: 21px !important; }
  .sheet .sg-t { font-size: 12.5px !important; font-weight: 700 !important; }
  .sheet .sg-d { font-size: 10.5px !important; color: #93A8B8 !important; margin-top: 2px !important; }

  /* 弹层贴底：手机浏览器（华为/夸克等）用 layout viewport 算 inset:0，
     底部工具栏会把面板顶起来，看着就是不贴底。改用 100dvh 跟可视区走 */
  .sheet {
    height: 100dvh !important;
    max-height: 100dvh !important;
    top: 0 !important;
    bottom: auto !important;
  }
  .sheet .box {
    border-radius: 26px 26px 0 0 !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 弹层：高度交给 JS（innerHeight）精确控制，别再依赖 dvh */
  .sheet {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: auto !important;
  }

  /* 弹层贴底：清掉可能存在的内边距/外边距，flex-end 对齐到底 */
  .sheet {
    padding: 0 !important;
    margin: 0 !important;
    align-items: flex-end !important;
  }
  .sheet .box {
    margin: 0 !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* ==================== 聊天内「更多功能」面板（不弹窗） ==================== */
  .more-panel {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    max-height: 44vh;
    overflow-y: auto;
    background: rgba(250, 253, 255, .97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    flex: none;
  }
  .more-panel .mp-group-title {
    margin: 8px 4px 8px;
    font-size: 11px; font-weight: 800;
    color: #7A92A5; letter-spacing: .4px;
  }
  .more-panel .mp-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 8px;
  }
  .more-panel .mp-cell {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(120, 160, 190, .10);
    padding: 11px 6px 9px;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
  }
  .more-panel .mp-cell:active {
    transform: scale(.96);
    background: rgba(61, 143, 201, .05);
  }
  .more-panel .mp-ico {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(56, 116, 160, .14);
  }
  .more-panel .mp-ico svg { width: 19px; height: 19px; }
  .more-panel .mp-ico.red    { background: linear-gradient(150deg, #FFD3CC, #F0634F); }
  .more-panel .mp-ico.blue   { background: linear-gradient(150deg, #CFEAFB, #4FA8D8); }
  .more-panel .mp-ico.green  { background: linear-gradient(150deg, #CEEEDC, #3AAE79); }
  .more-panel .mp-ico.gold   { background: linear-gradient(150deg, #FBEBC2, #E0A83C); }
  .more-panel .mp-ico.purple { background: linear-gradient(150deg, #DCD3F5, #7C6BD0); }
  .more-panel .mp-ico.gray   { background: linear-gradient(150deg, #E3EDF5, #8FA6B6); }
  .more-panel .mp-t { font-size: 12px; font-weight: 700; color: var(--text); }
  .more-panel .mp-d {
    font-size: 10px; color: #93A8B8; margin-top: 2px;
    text-align: center; line-height: 1.3;
  }

  /* 更多面板再优化：滑入动效 + 格子精修 */
  .more-panel {
    animation: mpIn .2s ease;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(24, 68, 102, .10);
  }
  @keyframes mpIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
  .more-panel .mp-group-title {
    margin: 10px 6px 8px;
    font-size: 11px;
    font-weight: 800;
    color: #7A92A5;
    display: flex; align-items: center; gap: 6px;
  }
  .more-panel .mp-group-title::before {
    content: '';
    width: 3px; height: 11px; border-radius: 2px;
    background: linear-gradient(180deg, #63B9EA, #3583BE);
  }
  .more-panel .mp-grid { gap: 9px; }
  .more-panel .mp-cell {
    padding: 12px 6px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(24, 68, 102, .04);
  }
  .more-panel .mp-ico {
    width: 40px; height: 40px;
    border-radius: 13px;
    margin-bottom: 7px;
    box-shadow: 0 5px 12px rgba(56, 116, 160, .16);
  }
  .more-panel .mp-ico svg { width: 20px; height: 20px; }
  .more-panel .mp-t { font-size: 12.5px; }
  .more-panel .mp-d {
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* 头像：<img> 渲染（浏览器拦背景图时也能显示） */
  .av { position: relative; overflow: hidden; }
  .av .av-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; border-radius: inherit;
  }

  /* 搜索模式切换（搜内容 / 搜人名） */
  .sq-modes {
    display: flex; gap: 8px; margin: 2px 0 12px;
  }
  .sq-modes .sq-mode {
    flex: 1; height: 34px; border-radius: 11px;
    border: 1.5px solid rgba(120, 160, 190, .18);
    background: #F7FBFF; color: #5F7A8C;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
  }
  .sq-modes .sq-mode.on {
    border-color: #4A9FD8;
    background: rgba(74, 159, 216, .10);
    color: #2C7EB8;
  }

  /* 好友申请卡片（新的朋友） */
  .fr-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; margin-bottom: 10px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 14px rgba(24, 68, 102, .06);
    border: 1px solid rgba(120, 160, 190, .08);
  }
  .fr-av {
    width: 46px; height: 46px; border-radius: 14px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 18px;
    box-shadow: 0 4px 12px rgba(56, 116, 160, .18);
  }
  .fr-body { flex: 1; min-width: 0; }
  .fr-name { font-size: 15px; font-weight: 800; color: #12303F; }
  .fr-sub {
    font-size: 12px; color: #93A8B8; margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .fr-ok {
    height: 34px; padding: 0 16px; border: 0; border-radius: 11px;
    background: linear-gradient(135deg, #4CBF8B, #2E9E6B);
    color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 158, 107, .25);
  }
  .fr-ok:active { transform: scale(.96); }
  .fr-no {
    height: 34px; padding: 0 14px; border-radius: 11px;
    border: 1.5px solid rgba(120, 160, 190, .20);
    background: #fff; color: #5F7A8C; font-weight: 700; font-size: 13px; cursor: pointer;
  }
  .fr-no:active { background: rgba(61, 143, 201, .05); }

  /* ==================== 交易大厅 UI 优化 ==================== */
  .ex-halltop { padding: 12px 16px 10px; }
  .ex-tabs2 {
    display: flex; gap: 8px; margin-bottom: 10px;
  }
  .ex-tab2 {
    flex: 1; text-align: center; padding: 10px 0;
    font-size: 14px; font-weight: 700; color: #5F7A8C;
    background: #F4F9FD; border-radius: 12px; cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .16s ease;
  }
  .ex-tab2.on {
    background: rgba(61, 143, 201, .12);
    color: #2C7EB8;
    border-color: rgba(61, 143, 201, .35);
  }
  .ex-hallsub { font-size: 11.5px; color: #93A8B8; text-align: center; }
  .ex-scroll { padding: 0 14px 20px; }
  .ex-row {
    border-radius: 16px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 3px 12px rgba(24, 68, 102, .05) !important;
    border: 1px solid rgba(120, 160, 190, .08) !important;
  }
  .ex-row:active { transform: scale(.985); }
  .ex-row-amt { font-size: 20px !important; font-weight: 800 !important; }
  .ex-empty2 { padding: 60px 20px !important; }
  .ex-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
  .ex-foot-info { font-size: 11.5px !important; color: #93A8B8 !important; text-align: center; }

  /* 交易大厅防诈提示条 */
  .ex-fraud-tip {
    margin: 0 14px 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 233, 210, .95), rgba(255, 214, 179, .95));
    border: 1px solid rgba(224, 168, 60, .35);
    box-shadow: 0 4px 14px rgba(224, 168, 60, .15);
    font-size: 12px; line-height: 1.6; color: #8A5A17;
  }
  .ex-fraud-tip b { display: block; font-size: 12.5px; margin-bottom: 2px; color: #B4560C; }
  .ex-fraud-tip span { display: block; color: #8A5A17; }
  body.dark .ex-fraud-tip { background: rgba(255, 214, 179, .14); color: #F0C98A; }
  body.dark .ex-fraud-tip b { color: #FFD9A0; }

  /* ==================== 群红包权限 ==================== */
  .gmp-pk-hero {
    display: flex; align-items: center; gap: 12px;
    margin: 12px 14px 10px; padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFF6EA, #FFE6CE);
    border: 1px solid rgba(224, 138, 60, .22);
    box-shadow: 0 8px 20px rgba(224, 138, 60, .12);
  }
  .gmp-pk-hero-ico {
    width: 46px; height: 46px; border-radius: 15px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #F7AE4F, #E06B3C);
    box-shadow: 0 8px 16px rgba(224, 107, 60, .30);
  }
  .gmp-pk-hero-ico svg { width: 25px; height: 25px; }
  .gmp-pk-hero-t { font-size: 15.5px; font-weight: 800; color: #8A4A12; letter-spacing: .5px; }
  .gmp-pk-hero-s { font-size: 11.5px; line-height: 1.65; color: #A2713F; margin-top: 3px; }

  .gmp-pk-stats { display: flex; gap: 10px; margin: 0 14px 12px; }
  .gmp-pk-stat {
    flex: 1; padding: 11px 14px; border-radius: 15px;
    background: #fff; border: 1px solid var(--c-line);
    box-shadow: 0 4px 12px rgba(24, 68, 102, .05);
    display: flex; align-items: baseline; gap: 7px;
  }
  .gmp-pk-stat b { font-size: 21px; font-weight: 800; color: var(--c-brand-deep); font-variant-numeric: tabular-nums; }
  .gmp-pk-stat span { font-size: 11.5px; color: var(--c-text-3); }
  .gmp-pk-stat.fast b { color: #D9543F; }

  .gmp-pk-search { margin: 0 14px 10px; }

  /* 一键全选 / 清空 */
  .gmp-pk-quick { display: flex; gap: 8px; margin: 0 14px 10px; }
  .gmp-pk-qbtn {
    flex: 1; height: 38px; border-radius: 12px;
    border: 1px solid rgba(240, 162, 74, .35);
    background: linear-gradient(135deg, rgba(255, 246, 226, .96), rgba(255, 232, 194, .96));
    color: #8A5A17; font-size: 12.5px; font-weight: 700;
  }
  .gmp-pk-qbtn:active { transform: scale(.97); }
  .gmp-pk-qbtn.ghost {
    background: #fff; border-color: var(--c-line-strong); color: var(--c-text-3); font-weight: 600;
  }
  body.dark .gmp-pk-qbtn {
    background: rgba(240, 162, 74, .14); border-color: rgba(240, 162, 74, .26); color: #FFD9A0;
  }
  body.dark .gmp-pk-qbtn.ghost {
    background: rgba(255, 255, 255, .05); border-color: var(--c-line-strong); color: #8FA6B6;
  }

  .gmp-pk-list { margin: 0 14px; }
  .gmp-pk-row {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; margin-bottom: 8px;
    border-radius: 16px; background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: 0 3px 12px rgba(24, 68, 102, .045);
    transition: border-color .18s, box-shadow .18s;
  }
  .gmp-pk-row.is-fast {
    border-color: rgba(217, 84, 63, .34);
    box-shadow: 0 4px 16px rgba(217, 84, 63, .12);
  }
  .gmp-pk-av {
    width: 42px; height: 42px; border-radius: 14px; flex: none;
    background-size: cover; background-position: center;
    background-color: rgba(120, 160, 190, .16);
  }
  .gmp-pk-info { flex: 1; min-width: 0; }
  .gmp-pk-name {
    font-size: 13.5px; font-weight: 700; color: var(--c-text);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gmp-pk-sub { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }
  .gmp-pk-warn { font-size: 10.5px; color: #D9543F; margin-top: 3px; font-weight: 600; }

  .gmp-pk-switches { display: flex; gap: 7px; flex: none; }
  .gmp-pk-sw {
    position: relative;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 11px 7px 9px; border-radius: 999px;
    border: 1px solid var(--c-line-strong);
    background: rgba(120, 160, 190, .08);
    font-size: 11.5px; font-weight: 700; color: var(--c-text-3);
    transition: all .16s;
  }
  .gmp-pk-sw i {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(120, 160, 190, .45);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
    transition: all .16s;
  }
  .gmp-pk-sw.on {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--c-brand), var(--c-brand-deep));
    box-shadow: 0 4px 12px rgba(62, 143, 201, .28);
  }
  .gmp-pk-sw.on i { background: #fff; box-shadow: none; }
  .gmp-pk-sw.fast.on {
    background: linear-gradient(135deg, #F08A4B, #D9543F);
    box-shadow: 0 4px 12px rgba(217, 84, 63, .3);
  }
  .gmp-pk-sw:active { transform: scale(.95); }

  .gmp-pk-foot { margin: 16px 14px 8px; }
  .gmp-pk-save {
    width: 100%; height: 48px; border-radius: 16px; border: none;
    font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 1px;
    background: linear-gradient(135deg, #F0A24A, #D9543F);
    box-shadow: 0 10px 22px rgba(217, 84, 63, .26);
  }
  .gmp-pk-save:active { transform: scale(.985); }
  .gmp-pk-save[disabled] { opacity: .55; }
  .gmp-pk-tip { margin-top: 9px; text-align: center; font-size: 11px; color: var(--c-text-3); line-height: 1.6; }
  .gmp-pk-empty { padding: 40px 0; text-align: center; font-size: 12.5px; color: var(--c-text-3); }

  /* 红包气泡上的权限小标 */
  .rp-tag.rule { background: rgba(255, 255, 255, .26); color: #FFE9C8; }
  .rp-tag.fast {
    background: linear-gradient(135deg, #FFD98A, #F0A24A);
    color: #7A3A0E; font-weight: 800;
  }

  /* 红包详情里的权限提示 */
  .pk-grab-tip {
    margin: 12px 14px; padding: 11px 14px; border-radius: 14px;
    font-size: 12px; line-height: 1.65;
    background: rgba(62, 143, 201, .08);
    border: 1px solid rgba(62, 143, 201, .18);
    color: var(--c-brand-deep);
  }
  .pk-grab-tip.blocked {
    background: linear-gradient(135deg, rgba(255, 239, 232, .96), rgba(255, 226, 214, .96));
    border-color: rgba(217, 84, 63, .24); color: #A2402E;
  }
  .pk-grab-tip.blocked b { display: block; font-size: 12.5px; margin-bottom: 2px; color: #C0452F; }
  .pk-grab-tip.blocked span { display: block; color: #A66A56; }
  .pk-grab-tip.fast {
    background: linear-gradient(135deg, rgba(255, 246, 226, .96), rgba(255, 232, 194, .96));
    border-color: rgba(224, 168, 60, .3); color: #8A5A17;
  }

  /* 发红包弹窗里的名单提醒 */
  .pk-grab-hint { display: none; }
  .pk-grab-hint.warn {
    display: block; margin: 2px 0 8px; padding: 10px 12px;
    border-radius: 13px; font-size: 11.5px; line-height: 1.6;
    background: linear-gradient(135deg, rgba(255, 246, 226, .96), rgba(255, 232, 194, .96));
    border: 1px solid rgba(224, 168, 60, .32); color: #8A5A17;
  }
  .pk-grab-hint.warn i { display: block; font-style: normal; color: #A6762E; font-size: 10.5px; margin-top: 2px; }

  /* 领取记录里的「秒抢」小标 */
  .pk-auto {
    display: inline-block; margin-left: 6px; padding: 1px 6px;
    border-radius: 999px; font-size: 9.5px; font-weight: 800;
    background: linear-gradient(135deg, #FFD98A, #F0A24A); color: #7A3A0E;
    vertical-align: 1px;
  }

  body.dark .gmp-pk-hero {
    background: linear-gradient(135deg, rgba(240, 162, 74, .16), rgba(217, 84, 63, .12));
    border-color: rgba(240, 162, 74, .22);
  }
  body.dark .gmp-pk-hero-t { color: #FFD9A0; }
  body.dark .gmp-pk-hero-s { color: #D8AE7E; }
  body.dark .gmp-pk-stat,
  body.dark .gmp-pk-row { background: rgba(255, 255, 255, .05); }
  body.dark .gmp-pk-stat b { color: #9FD3F0; }
  body.dark .gmp-pk-stat.fast b { color: #FFA891; }
  body.dark .gmp-pk-name { color: #E8F1F8; }
  body.dark .gmp-pk-sw { background: rgba(255, 255, 255, .08); color: #8FA6B6; }
  body.dark .gmp-pk-sw.on { background: linear-gradient(135deg, #3E8FC9, #245E87); color: #fff; }
  body.dark .gmp-pk-sw.fast.on { background: linear-gradient(135deg, #F08A4B, #C0452F); }
  body.dark .pk-grab-tip { background: rgba(62, 143, 201, .12); }
  body.dark .pk-grab-tip.blocked { background: rgba(217, 84, 63, .14); color: #FFB59F; }
  body.dark .pk-grab-tip.blocked b { color: #FFC4AE; }
  body.dark .pk-grab-tip.blocked span { color: #D8A08C; }
  body.dark .pk-grab-hint.warn { background: rgba(224, 168, 60, .14); border-color: rgba(224, 168, 60, .26); color: #FFD9A0; }
  body.dark .pk-grab-hint.warn i { color: #D8AE7E; }

  /* 红包系统提示条（谁领了你的红包 / 几秒领完） */
  .pkt-sys { margin: 10px 0; }
  .pkt-sys .sys-tag {
    background: linear-gradient(135deg, rgba(240, 162, 74, .16), rgba(217, 84, 63, .12));
    color: #A55A18;
    border: 1px solid rgba(240, 162, 74, .26);
    font-weight: 600;
  }
  body.dark .pkt-sys .sys-tag {
    background: rgba(240, 162, 74, .16) !important;
    color: #F0C98A !important;
    border-color: rgba(240, 162, 74, .3);
  }
  .pk-done-tip {
    margin: 0 14px 12px; text-align: center;
    font-size: 12px; font-weight: 700; color: #C0452F;
    background: rgba(217, 84, 63, .08);
    border: 1px dashed rgba(217, 84, 63, .26);
    border-radius: 12px; padding: 8px 10px;
  }
  body.dark .pk-done-tip { color: #FFB59F; background: rgba(217, 84, 63, .12); }

  /* 钱包明细里的「秒抢」小标 */
  .wh-auto {
    display: inline-block; margin-left: 6px; padding: 1px 6px;
    border-radius: 999px; font-size: 9.5px; font-weight: 800;
    background: linear-gradient(135deg, #FFD98A, #F0A24A); color: #7A3A0E;
    vertical-align: 1px;
  }
  body.dark .wh-auto { background: linear-gradient(135deg, #C98F3A, #A2662A); color: #FFF2D8; }

  /* ==================== 利息宝 ==================== */
  .ib-card {
    background: linear-gradient(135deg, #FFF8E8 0%, #FFF1D4 100%);
    border: 1.5px solid rgba(201,143,58,.22);
    border-radius: 18px;
    padding: 15px 16px 13px;
    margin: 0 0 14px;
    box-shadow: 0 4px 16px rgba(201,143,58,.10);
  }
  body.dark .ib-card {
    background: linear-gradient(135deg, #2C2619, #2A2316);
    border-color: rgba(201,143,58,.30);
    box-shadow: 0 4px 16px rgba(0,0,0,.24);
  }
  .ib-top { display: flex; align-items: center; justify-content: space-between; }
  .ib-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: #7A5320; }
  body.dark .ib-title { color: #E8C88A; }
  .ib-ico {
    width: 22px; height: 22px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,143,58,.16); color: #B27B2B;
    font-size: 12.5px; font-weight: 800; line-height: 1;
  }
  .ib-ico .ico-svg { width: 14px; height: 14px; }
  .ib-rate {
    font-size: 10.5px; font-weight: 700; color: #B27B2B;
    background: rgba(201,143,58,.14); padding: 2px 7px; border-radius: 6px;
  }
  .ib-days { font-size: 11px; color: rgba(122,83,32,.55); }
  .ib-nums { display: flex; gap: 20px; margin: 12px 0 0; }
  .ib-n b {
    display: block; font-size: 22px; font-weight: 800; color: #5C4013;
    font-variant-numeric: tabular-nums; letter-spacing: -.4px;
  }
  .ib-n b.up { font-size: 16px; color: #2E8B62; }
  body.dark .ib-n b { color: #F3DFB4; }
  body.dark .ib-n b.up { color: #7FDCB2; }
  .ib-n span { display: block; font-size: 10.5px; color: rgba(122,83,32,.55); margin-top: 2px; }
  .ib-est { font-size: 11.5px; color: rgba(122,83,32,.72); margin: 9px 0 11px; }
  .ib-est b { color: #C9761B; font-size: 13px; }
  .ib-est i { font-style: normal; font-size: 10.5px; color: rgba(122,83,32,.45); margin-left: 6px; }
  body.dark .ib-est, body.dark .ib-est i, body.dark .ib-n span, body.dark .ib-days { color: rgba(232,200,138,.55); }
  body.dark .ib-est b { color: #E7B063; }
  .ib-btns { display: flex; gap: 9px; }
  .ib-btn {
    flex: 1; height: 36px; border-radius: 11px; border: 0;
    font-size: 13px; font-weight: 800; cursor: pointer;
    transition: transform .12s ease;
  }
  .ib-btn:active { transform: scale(.97); }
  .ib-btn.in {
    background: linear-gradient(135deg, #E8B55C, #C98F3A); color: #fff;
    box-shadow: 0 4px 12px rgba(201,143,58,.22);
  }
  .ib-btn.out {
    background: rgba(255,255,255,.85); color: #8A6224;
    border: 1px solid rgba(201,143,58,.28);
  }
  body.dark .ib-btn.out { background: rgba(255,255,255,.06); color: #E8C88A; }
  .ib-btn[disabled] { opacity: .45; }
  .ib-off { margin-top: 9px; font-size: 11px; color: #C1483F; }
  .ib-note { margin-top: 9px; font-size: 10px; color: rgba(122,83,32,.42); }

  /* ==================== 利息宝 存取整页 ==================== */
  /* 钱包明细页在 DOM 里排在后面，同级 z-index 会被它盖住，这里抬高一层 */
  #ibPage { z-index: 49 !important; }
  #ibDetailPage { z-index: 47 !important; }
  .ib-scroll { padding-top: 4px !important; }
  .ib-hero {
    margin: 12px 0 14px;
    border-radius: 20px;
    padding: 17px 18px 16px;
    background: linear-gradient(135deg, #4BA8E0 0%, #3D8FC7 62%, #3580B4 100%);
    box-shadow: 0 10px 26px rgba(61,143,201,.24);
    color: #fff; position: relative; overflow: hidden;
  }
  .ib-hero::after {
    content: ''; position: absolute; right: -40px; top: -52px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,.12);
  }
  .ib-hero-top {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; z-index: 1;
  }
  .ib-hero-name { font-size: 12px; color: rgba(255,255,255,.84); letter-spacing: .4px; }
  .ib-badge {
    font-size: 10.5px; font-weight: 800; color: #FFF3D8;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    padding: 3px 9px; border-radius: 8px;
  }
  .ib-hero-num {
    font-size: 34px; font-weight: 800; margin-top: 7px;
    letter-spacing: -.7px; font-variant-numeric: tabular-nums;
    position: relative; z-index: 1;
  }
  .ib-hero-sub { font-size: 11.5px; color: rgba(255,255,255,.74); margin-top: 6px; position: relative; z-index: 1; }

  .ib-card {
    background: #fff; border-radius: 18px;
    padding: 14px 15px 13px; margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(24,68,102,.06);
  }
  body.dark .ib-card { background: #14202B; box-shadow: 0 2px 12px rgba(0,0,0,.22); }
  .ib-form-t { font-size: 12px; font-weight: 700; color: #7A92A5; }
  .ib-amt {
    display: flex; align-items: center; gap: 6px;
    margin-top: 7px; padding: 2px 0 6px;
    border-bottom: 2px solid rgba(201,143,58,.26);
    transition: border-color .18s;
  }
  .ib-amt:focus-within { border-bottom-color: #C98F3A; }
  .ib-amt-cny { font-size: 24px; font-weight: 800; color: #C98F3A; line-height: 1; flex: none; }
  .ib-amt input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    font-size: 38px !important; font-weight: 800; color: #12303F;
    font-variant-numeric: tabular-nums; letter-spacing: -.7px;
    /* 之前弹层里金额框没高度，字挤在顶上；这里写死高度 */
    height: 56px; line-height: 56px; padding: 0;
  }
  body.dark .ib-amt input { color: #E7F1F8; }
  .ib-amt input::placeholder { color: #C5D5E1; font-weight: 600; font-size: 32px; }
  .ib-quick { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
  .ib-quick b {
    flex: 1 1 0; min-width: 62px; text-align: center;
    font-size: 13px; font-weight: 700; color: #8A6224;
    background: rgba(201,143,58,.08);
    border: 1.5px solid rgba(201,143,58,.16);
    border-radius: 11px; padding: 10px 0;
    cursor: pointer; transition: all .16s ease;
  }
  .ib-quick b:active { transform: scale(.97); background: rgba(201,143,58,.18); }
  .ib-quick b.all { color: #3D8FC7; background: rgba(61,143,201,.07); border-color: rgba(61,143,201,.18); }
  body.dark .ib-quick b { color: #E8C88A; background: rgba(201,143,58,.12); border-color: rgba(201,143,58,.22); }
  .ib-est-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12.5px; color: #6B8497; padding: 6px 0;
  }
  .ib-est-row b { font-size: 14px; color: #C9761B; font-variant-numeric: tabular-nums; }
  .ib-est-row b.muted { font-size: 11.5px; font-weight: 600; color: #93A8B8; }
  body.dark .ib-est-row { color: #9FB6C6; }
  body.dark .ib-est-row b.muted { color: #7E97A7; }
  .ib-tips { margin: 2px 2px 0; }
  .ib-tip {
    display: flex; gap: 8px; align-items: flex-start;
    font-size: 11.5px; color: #8AA2B4; line-height: 1.55; margin: 5px 0;
  }
  .ib-tip i {
    flex: none; width: 16px; height: 16px; border-radius: 50%;
    background: rgba(61,143,201,.10); color: #3D8FC7;
    font-style: normal; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
  }
  .ib-warn {
    margin: 10px 2px 0; font-size: 12px; color: #D9534F;
    background: rgba(217,83,79,.08); border-radius: 10px; padding: 9px 12px;
  }
  .ib-foot button {
    background: linear-gradient(135deg, #E8B55C, #C98F3A) !important;
    box-shadow: 0 6px 18px rgba(201,143,58,.30) !important;
    color: #fff !important;
  }
  .ib-foot button:disabled { opacity: .45; box-shadow: none !important; }
  .ib-foot .ib-ghost-btn {
    min-width: 104px;
    background: #fff !important;
    color: #B27B2B !important;
    border: 1.5px solid rgba(201,143,58,.32) !important;
    box-shadow: none !important;
  }
  body.dark .ib-foot .ib-ghost-btn { background: #1B2836 !important; color: #E8C88A !important; }
  .ib-days { cursor: pointer; }
  .ib-days:active { opacity: .6; }

  /* ---- 利息宝详情页 ---- */
  .ib-detail-card { padding: 14px 15px 6px; }
  .ibd-grid { display: flex; gap: 10px; }
  .ibd-cell { flex: 1; text-align: center; padding: 4px 0 10px; }
  .ibd-cell b {
    display: block; font-size: 16px; font-weight: 800; color: #12303F;
    font-variant-numeric: tabular-nums;
  }
  body.dark .ibd-cell b { color: #E7F1F8; }
  .ibd-cell b.up { color: #2E8B62; }
  .ibd-cell span { display: block; font-size: 10.5px; color: #8AA2B4; margin-top: 3px; }
  .ibd-next, .ibd-est {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: #6B8497;
    border-top: 1px solid rgba(120,160,190,.12);
    padding: 10px 2px;
  }
  .ibd-next b { font-size: 12.5px; font-weight: 800; color: #3D8FC7; }
  .ibd-est b { font-size: 13px; font-weight: 800; color: #C9761B; font-variant-numeric: tabular-nums; }
  body.dark .ibd-next, body.dark .ibd-est { color: #9FB6C6; border-top-color: rgba(255,255,255,.08); }
  .ibd-sec {
    display: flex; align-items: baseline; justify-content: space-between;
    font-size: 13px; font-weight: 800; color: #12303F; margin-bottom: 6px;
  }
  body.dark .ibd-sec { color: #E7F1F8; }
  .ibd-sec i { font-style: normal; font-size: 10.5px; font-weight: 600; color: #9DB2C1; }
  .ibd-list { margin-top: 2px; }
  .ibd-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-top: 1px solid rgba(120,160,190,.10);
  }
  .ibd-item:first-child { border-top: 0; }
  .ibd-txt { min-width: 0; }
  .ibd-txt b { display: block; font-size: 13px; font-weight: 700; color: #1F3D52; }
  body.dark .ibd-txt b { color: #DCEAF4; }
  .ibd-txt span { display: block; font-size: 10.5px; color: #8AA2B4; margin-top: 2px; }
  .ibd-amt { flex: none; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .ibd-amt.plus { color: #2E8B62; }
  .ibd-amt.minus { color: #C1483F; }
  .ibd-empty { padding: 16px 0 12px; text-align: center; font-size: 12px; color: #9DB2C1; }

  /* ==================== 合并转发的聊天记录 ==================== */
  .bubble.hist-bubble, .msg.me .bubble.hist-bubble {
    background: transparent !important; padding: 0 !important;
    box-shadow: none !important; border: none !important;
  }
  .bubble.hist-bubble::before { display: none !important; }
  .hist-card {
    width: 232px; border-radius: 15px; overflow: hidden;
    background: #fff; border: 1px solid var(--c-line);
    box-shadow: 0 5px 16px rgba(24, 68, 102, .09);
    cursor: pointer;
  }
  .hist-top { display: flex; align-items: center; gap: 10px; padding: 13px 12px; }
  .hist-ico {
    width: 40px; height: 40px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4FA8D8, #245E87); color: #fff;
    box-shadow: 0 5px 12px rgba(62, 143, 201, .26);
  }
  .hist-ico svg { width: 21px; height: 21px; }
  .hist-body2 { flex: 1; min-width: 0; }
  .hist-title {
    font-size: 13.5px; font-weight: 700; color: var(--c-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .hist-sub { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }
  .hist-arrow { color: var(--c-text-3); font-size: 19px; font-weight: 300; }
  .hist-foot {
    padding: 7px 12px; font-size: 10.5px; color: var(--c-text-3);
    background: rgba(120, 160, 190, .07);
    border-top: 1px solid var(--c-line);
    display: flex; align-items: center; gap: 5px;
  }
  .hist-view-head { text-align: center; }
  .hist-view-title { font-size: 16px; font-weight: 800; color: var(--c-text); }
  .hist-view-sub { font-size: 11.5px; color: var(--c-text-3); margin-top: 3px; }
  .hist-scroll { max-height: 52vh; overflow-y: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
  .hist-row {
    padding: 9px 11px; border-radius: 12px; margin-bottom: 8px;
    background: rgba(120, 160, 190, .07);
  }
  .hist-who {
    font-size: 11.5px; color: var(--c-text-3);
    display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px;
  }
  .hist-text {
    font-size: 13.5px; color: var(--c-text); line-height: 1.55;
    word-break: break-word; white-space: pre-wrap;
  }
  .hist-img { max-width: 100%; border-radius: 10px; display: block; margin-top: 2px; }
  .hist-video { font-size: 13px; color: var(--c-text-2); }
  .hist-empty { text-align: center; color: var(--c-text-3); font-size: 12.5px; padding: 30px 0; }
  body.dark .hist-card { background: rgba(255, 255, 255, .06); }
  body.dark .hist-title { color: #E8F1F8; }
  body.dark .hist-foot { background: rgba(255, 255, 255, .04); }
  body.dark .hist-row { background: rgba(255, 255, 255, .05); }
  body.dark .hist-text { color: #E8F1F8; }

  /* ==================== 多选栏 / 聊天记录界面优化 ==================== */
  /* 多选时：输入框让位、给消息列表留出底部空间，操作栏不再压着聊天记录 */
  .chat-select .composer { visibility: hidden !important; pointer-events: none !important; }
  .chat-select #msgs { padding-bottom: 108px !important; }
  .select-bar {
    left: 10px !important; right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    padding: 8px 10px !important; gap: 6px !important;
    border-radius: 16px !important;
  }
  .select-bar .sb-n {
    flex: 1 1 auto !important; min-width: 0;
    font-size: 12.5px !important; white-space: nowrap;
    color: var(--c-text-2) !important;
  }
  .select-bar .sb-btn {
    height: 34px !important; padding: 0 10px !important;
    font-size: 12.5px !important; border-radius: 10px !important;
    white-space: nowrap; flex: 0 0 auto;
  }
  @media (max-width: 340px) {
    .select-bar { padding: 7px 8px !important; gap: 5px !important; }
    .select-bar .sb-btn { padding: 0 7px !important; font-size: 12px !important; height: 32px !important; }
    .select-bar .sb-n { font-size: 11.5px !important; }
  }

  /* 聊天记录卡片再精致一点 */
  .hist-card { width: 238px !important; box-shadow: 0 6px 18px rgba(24, 68, 102, .11) !important; }
  .hist-foot { letter-spacing: .3px; }

  /* 聊天记录详情：标题栏 + 关闭钮 + 头像色块 */
  .hist-view { position: relative; }
  .hist-view-head { position: relative; padding: 2px 30px 10px; }
  .hist-close {
    position: absolute; top: -4px; right: -2px;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1; color: var(--c-text-3);
    background: rgba(120, 160, 190, .10); cursor: pointer;
  }
  .hist-close:active { transform: scale(.92); }
  .hist-who { align-items: center; }
  .hist-av {
    width: 20px; height: 20px; border-radius: 6px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff; margin-right: 6px;
  }
  .hist-time { margin-left: auto; font-size: 10.5px; color: var(--c-text-3); }
  .hist-scroll { max-height: 58vh !important; }
  .hist-img { max-height: 190px; object-fit: cover; }





  /* ==================== 聊天记录 UI v2（美化） ==================== */
  .hist-card{
    width: 240px !important; border-radius: 16px !important;
    border: 1px solid rgba(24,68,102,.07) !important;
    box-shadow: 0 10px 26px rgba(16,52,74,.10), 0 2px 6px rgba(16,52,74,.05) !important;
    transition: transform .14s ease, box-shadow .2s ease;
  }
  .hist-card:active{ transform: scale(.98); }
  .hist-top{ padding: 14px 13px !important; gap: 11px !important; }
  .hist-ico{
    width: 42px !important; height: 42px !important; border-radius: 13px !important;
    background: linear-gradient(145deg, #6FBFE8, #246A98) !important;
    box-shadow: 0 6px 14px rgba(46,110,150,.28), inset 0 1px 0 rgba(255,255,255,.35) !important;
  }
  .hist-title{ font-size: 13.8px !important; }
  .hist-sub{ font-size: 10.8px !important; margin-top: 3px !important; }
  .hist-foot{
    padding: 8px 13px !important;
    background: linear-gradient(180deg, rgba(143,208,242,.10), rgba(143,208,242,.16)) !important;
    border-top: 1px solid rgba(24,68,102,.05) !important;
    display: flex; align-items: center; gap: 4px;
  }
  .hist-foot::after{ content: '›'; margin-left: auto; color: var(--c-text-3); font-size: 13px; }

  .hist-view{ background: var(--c-surface, #fff); border-radius: 22px 22px 0 0; padding: 16px 16px 18px !important; }
  .hist-view-head{ padding: 4px 30px 12px !important; }
  .hist-view-title{ font-size: 17px !important; letter-spacing: .5px; }
  .hist-view-sub{ font-size: 11.5px !important; margin-top: 4px !important; color: var(--c-text-3); }
  .hist-close{
    width: 30px !important; height: 30px !important; border-radius: 50% !important;
    background: rgba(120,160,190,.12) !important; color: var(--c-text-3) !important; font-size: 18px !important;
  }
  .hist-scroll{
    background: linear-gradient(180deg, #F4FAFF, #EAF4FC) !important;
    border-radius: 16px !important; padding: 10px !important; max-height: 54vh !important;
  }
  .hist-row{
    background: #fff !important; border-radius: 14px !important;
    border: 1px solid rgba(24,68,102,.05) !important;
    box-shadow: 0 2px 8px rgba(16,52,74,.05) !important;
    padding: 10px 12px !important; margin-bottom: 9px !important;
  }
  .hist-row:last-child{ margin-bottom: 0 !important; }
  .hist-who{ font-size: 11.5px !important; gap: 7px !important; margin-bottom: 5px !important; }
  .hist-av{ width: 22px !important; height: 22px !important; border-radius: 7px !important; font-size: 10.5px !important; }
  .hist-time{ font-size: 10px !important; }
  .hist-text{ font-size: 13.5px !important; line-height: 1.6 !important; }
  .hist-img{ border-radius: 10px !important; max-height: 180px !important; }
  .hist-video{ font-size: 13px !important; color: var(--c-text-2) !important; }
  .hist-empty{ padding: 36px 0 !important; }
  body.dark .hist-view{ background: #12283C !important; }
  body.dark .hist-scroll{ background: linear-gradient(180deg, #0E2133, #0C1B29) !important; }
  body.dark .hist-row{ background: #16304A !important; border-color: rgba(255,255,255,.06) !important; }
  /* ==================== 聊天记录 · 全屏查看 ==================== */
  #historyPage{ z-index: 70; }
  #historyPage .hist-meta{
    text-align: center; padding: 8px 0 10px;
    color: var(--c-text-3); font-size: 11.5px; letter-spacing: .2px;
  }
  #histList{ padding: 2px 12px 28px; }
  .hist-row{
    display: flex; gap: 11px; padding: 12px; margin-bottom: 10px;
    background: var(--c-surface, #fff);
    border-radius: 16px; border: 1px solid rgba(24,68,102,.05);
    box-shadow: 0 2px 10px rgba(16,52,74,.055);
  }
  .hist-av-wrap{ position: relative; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; }
  .hist-av-fallback{
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
  }
  .hist-av-img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hist-body{ flex: 1; min-width: 0; }
  .hist-who{ display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .hist-name{ font-size: 13px; font-weight: 700; color: var(--c-text); }
  .hist-time{ font-size: 10.5px; color: var(--c-text-3); flex: none; }
  .hist-text{ font-size: 14.5px; color: var(--c-text); line-height: 1.6; word-break: break-word; }
  .hist-img{ max-width: 100%; border-radius: 10px; margin-top: 5px; display: block; }
  .hist-media{ font-size: 13.5px; color: var(--c-text-3); }
  .hist-loading, .hist-empty{ text-align: center; color: var(--c-text-3); padding: 46px 0; font-size: 13px; }
  body.dark #historyPage{ background: #08151F; }
  body.dark .hist-row{ background: #16304A !important; border-color: rgba(255,255,255,.07) !important; }
  body.dark .hist-name, body.dark .hist-text{ color: #E8F1F8; }
  /* ==================== 新的朋友（好友申请）v2 ==================== */
  .fr-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
  .fr-head h3{ margin: 0 !important; }
  .fr-count{ font-size: 11.5px; color: var(--c-text-3); }
  .fr-list{ display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding-right: 2px; }
  .fr-card{
    display: flex; gap: 11px; align-items: center; padding: 12px;
    border-radius: 16px; background: var(--c-surface, #fff);
    border: 1px solid rgba(24,68,102,.06);
    box-shadow: 0 2px 10px rgba(16,52,74,.05);
  }
  .fr-av{ position: relative; width: 44px; height: 44px; border-radius: 13px; overflow: hidden; flex: none; }
  .fr-av-fb{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
  .fr-av img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .fr-body{ flex: 1; min-width: 0; }
  .fr-name{ font-size: 14.5px; font-weight: 700; color: var(--c-text); }
  .fr-sub{ font-size: 11px; color: var(--c-text-3); margin-top: 1px; }
  .fr-hello{ font-size: 12.5px; color: var(--c-text-2); margin-top: 5px; }
  .fr-time{ font-size: 10.5px; color: var(--c-text-3); margin-top: 3px; }
  .fr-acts{ display: flex; flex-direction: column; gap: 6px; flex: none; }
  .fr-ok{
    height: 30px; padding: 0 13px; border-radius: 10px; border: 0;
    font-size: 12.5px; font-weight: 700; color: #fff;
    background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
  }
  .fr-no{
    height: 30px; padding: 0 13px; border-radius: 10px;
    border: 1px solid var(--c-line); font-size: 12.5px; color: var(--c-text-3); background: transparent;
  }
  .fr-empty{ text-align: center; padding: 38px 0; color: var(--c-text-3); font-size: 12.5px; }
  .fr-empty-ico{ font-size: 30px; margin-bottom: 8px; }
  body.dark .fr-card{ background: #16304A !important; border-color: rgba(255,255,255,.07) !important; }
  body.dark .fr-name{ color: #E8F1F8; }
  body.dark .fr-hello{ color: #B9CFE0; }


  /* ==================== 炸金花（娱乐筹码） ==================== */
  .zjh-hit {
    margin: 10px 12px 6px; border-radius: 18px; padding: 13px 14px;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #1E6B4C 0%, #14452F 62%, #0C2A1D 100%);
    box-shadow: 0 10px 24px rgba(12,42,29,.28);
    color: #fff; cursor: pointer; position: relative; overflow: hidden;
  }
  .zjh-hit::after {
    content: ''; position: absolute; right: -34px; top: -46px;
    width: 132px; height: 132px; border-radius: 50%;
    background: rgba(255,255,255,.07);
  }
  .zjh-hit-art { display: flex; flex: none; }
  .zjh-hit-art span {
    width: 24px; height: 34px; border-radius: 6px; background: #fff;
    color: #C1483F; font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.22); margin-left: -7px;
    transform: rotate(-9deg);
  }
  .zjh-hit-art span:first-child { margin-left: 0; }
  .zjh-hit-art span:nth-child(2) { transform: rotate(0deg) translateY(-3px); background: #FFF7EA; }
  .zjh-hit-art span:nth-child(3) { transform: rotate(9deg); color: #1B2A36; background: #EEF5FB; }
  .zjh-hit-txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
  .zjh-hit-txt b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .3px; }
  .zjh-hit-txt span { display: block; font-size: 11px; color: rgba(255,255,255,.72); margin-top: 3px; }
  .zjh-hit-go { flex: none; font-size: 12px; font-weight: 800; color: #FFD98A; position: relative; z-index: 1; }

  /* ---- 房间页 ---- */
  .zjh-page .content { padding-top: 6px; }
  .zjh-hero {
    position: relative; margin: 12px 0 4px; border-radius: 20px; padding: 18px;
    background: linear-gradient(135deg, #1E6B4C 0%, #14452F 62%, #0C2A1D 100%);
    color: #fff; box-shadow: 0 12px 26px rgba(12,42,29,.26); overflow: hidden;
  }
  .zjh-hero::after {
    content: ''; position: absolute; right: -40px; top: -60px;
    width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08);
  }
  .zjh-hero-l { font-size: 12px; color: rgba(255,255,255,.78); letter-spacing: .5px; }
  .zjh-chips { font-size: 36px; font-weight: 800; color: #FFE3A6; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
  .zjh-hero-sub { font-size: 10.5px; color: rgba(255,255,255,.6); margin-top: 4px; }
  .zjh-daily {
    position: absolute; right: 16px; bottom: 18px; z-index: 1;
    height: 32px; padding: 0 13px; border: 1px solid rgba(255,227,166,.5);
    border-radius: 10px; background: rgba(255,227,166,.14);
    color: #FFE3A6; font-size: 12px; font-weight: 800;
  }
  .zjh-sec-t { margin: 16px 2px 9px; font-size: 13px; font-weight: 800; color: #12303F; }
  .zjh-room {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 16px; padding: 13px 14px; margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(24,68,102,.05);
  }
  .zjh-room-l { flex: 1; min-width: 0; }
  .zjh-room-l b { display: block; font-size: 14.5px; font-weight: 800; color: #12303F; }
  .zjh-room-l span { display: block; font-size: 11px; color: #8AA2B4; margin-top: 2px; }
  .zjh-room-m { flex: none; text-align: center; width: 42px; }
  .zjh-room-m b { display: block; font-size: 15px; font-weight: 800; color: #3D8FC7; }
  .zjh-room-m span { display: block; font-size: 10px; color: #9DB2C1; }
  .zjh-join {
    flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 11px;
    font-size: 13px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #3BA776, #2E8B62);
    box-shadow: 0 4px 12px rgba(46,139,98,.24);
  }
  .zjh-join[disabled] { background: #DCE7EF; color: #9DB2C1; box-shadow: none; }
  .zjh-rules {
    margin-top: 8px; padding: 14px 15px; border-radius: 16px;
    background: rgba(255,255,255,.72); color: #6B8497;
    font-size: 11.5px; line-height: 1.7;
  }
  .zjh-rules b { display: block; color: #12303F; font-size: 12.5px; font-weight: 800; margin-bottom: 5px; }
  .zjh-rules p { margin: 3px 0; }
  .zjh-warn { color: #C1483F !important; }

  /* ---- 牌桌（v2：更像赌桌） ---- */
  .zjh-table-page {
    background:
      radial-gradient(circle at 50% 14%, rgba(255,255,255,.09), transparent 48%),
      radial-gradient(circle at 50% 44%, #1B6A49 0%, #124a33 46%, #0A2C1F 80%, #061C14 100%) !important;
    color: #fff; z-index: 46 !important; overflow: hidden;
  }
  .zjh-table-page .topbar { background: transparent !important; border-bottom: 0 !important; box-shadow: none !important; position: relative; z-index: 5; }
  .zjh-table-page .title { color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
  .zjh-table-page .topbar .ic { color: #fff !important; }
  .zjh-chips-mini { font-size: 13px; font-weight: 800; color: #FFE7AE; padding-right: 14px; }

  .zjh-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
  .zjh-table-wrap { position: absolute; left: 8px; right: 8px; top: 46px; bottom: 210px; }
  .zjh-table-rim {
    position: absolute; inset: 0; border-radius: 46% / 50%;
    padding: 9px;
    background: linear-gradient(160deg, #4A3A22 0%, #7A5A31 16%, #3B2C18 40%, #23190E 76%, #2E2213 100%);
    box-shadow: 0 22px 46px rgba(0,0,0,.5), inset 0 0 20px rgba(0,0,0,.65), inset 0 2px 0 rgba(255,226,170,.22);
  }
  .zjh-table-felt {
    position: absolute; inset: 9px; border-radius: 46% / 50%;
    background: radial-gradient(ellipse at 50% 32%, #2C9065 0%, #1C6A4B 38%, #134E37 70%, #0B3423 100%);
    box-shadow: inset 0 0 80px rgba(0,0,0,.55), inset 0 0 20px rgba(255,255,255,.06);
    border: 1px solid rgba(255,226,170,.16);
    overflow: hidden;
  }
  .zjh-table-felt::after {
    content: ''; position: absolute; inset: 14%;
    border-radius: 46% / 50%;
    border: 1px dashed rgba(255,255,255,.07);
  }
  .zjh-felt-mark {
    position: absolute; left: 50%; top: 13%; transform: translateX(-50%);
    font-size: 10px; letter-spacing: 8px; font-weight: 800;
    color: rgba(255,255,255,.10);
  }
  .zjh-pot { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
  .zjh-pot span { font-size: 10.5px; letter-spacing: 4px; color: rgba(255,255,255,.55); }
  .zjh-pot b {
    display: block; font-size: 34px; font-weight: 800; color: #FFE7AE;
    font-variant-numeric: tabular-nums; line-height: 1.15;
    text-shadow: 0 0 20px rgba(255,208,120,.5), 0 3px 10px rgba(0,0,0,.5);
  }
  .zjh-stack { display: flex; justify-content: center; gap: 3px; margin-top: 5px; }
  .zjh-stack em {
    display: block; width: 15px; height: 15px; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #FFE9B5, #D9A03C 62%, #8B5E1E);
    box-shadow: 0 2px 0 #6E4A15, 0 4px 8px rgba(0,0,0,.35);
  }
  .zjh-stack em:nth-child(2) { transform: translateY(-4px); }
  .zjh-center { position: absolute; left: 50%; top: 68%; transform: translate(-50%, -50%); z-index: 2; }
  .zjh-waitbox { text-align: center; }
  .zjh-waitbox b { display: block; font-size: 26px; font-weight: 800; color: #FFE7AE; line-height: 1; }
  .zjh-waitbox span { font-size: 11px; color: rgba(255,255,255,.6); }
  .zjh-thinking, .zjh-yourturn {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; background: rgba(0,0,0,.30); border: 1px solid rgba(255,255,255,.14);
    white-space: nowrap;
  }
  .zjh-yourturn {
    background: linear-gradient(135deg, #FFE7AE, #E8B55C); color: #3A2306 !important;
    font-weight: 800; border-color: transparent;
    box-shadow: 0 0 24px rgba(255,214,130,.5);
    animation: zjhBreath 1.5s ease-in-out infinite;
  }
  @keyframes zjhBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

  /* 座位 */
  .zjh-seats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
  .zjh-pod { position: absolute; width: 96px; transform: translate(-50%, -50%); text-align: center; }
  .zjh-pod.p0 { left: 50%; top: 84%; }
  .zjh-pod.p1 { left: 16%; top: 68%; }
  .zjh-pod.p2 { left: 19%; top: 30%; }
  .zjh-pod.p3 { left: 50%; top: 13%; }
  .zjh-pod.p4 { left: 81%; top: 30%; }
  .zjh-pod.p5 { left: 84%; top: 68%; }
  .zjh-pod.me { display: none; }
  .zjh-avwrap { position: relative; width: 52px; height: 52px; margin: 0 auto; }
  .zjh-av {
    width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 35% 28%, #2F6E9B, #1B4463);
    border: 2px solid rgba(255,255,255,.24);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,.38);
  }
  .zjh-av img { width: 100%; height: 100%; object-fit: cover; }
  .zjh-pod.act .zjh-av {
    border-color: #FFE7AE;
    box-shadow: 0 0 0 3px rgba(255,231,174,.22), 0 0 22px rgba(255,214,130,.45);
  }
  .zjh-timerring {
    position: absolute; left: 50%; top: 26px; width: 68px; height: 68px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: conic-gradient(#FFD98A calc(var(--p, 100) * 1%), rgba(255,255,255,.07) 0);
    -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px);
    mask: radial-gradient(circle, transparent 29px, #000 30px);
    pointer-events: none;
  }
  .zjh-tag {
    position: absolute; right: -3px; bottom: 0; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(8,30,20,.92);
  }
  .zjh-tag.blind { background: #4B9FE0; color: #fff; }
  .zjh-tag.seen { background: #FFD98A; color: #4A2E05; }
  .zjh-tag.out { background: #66737D; color: #E4ECF2; }
  .zjh-plate {
    margin-top: 5px; display: inline-block; min-width: 62px;
    padding: 3px 9px; border-radius: 10px;
    background: rgba(5,22,16,.6); border: 1px solid rgba(255,255,255,.09);
  }
  .zjh-plate b {
    display: block; font-size: 10.5px; color: rgba(255,255,255,.92);
    max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .zjh-plate span { display: block; font-size: 10px; font-weight: 800; color: #FFE7AE; font-variant-numeric: tabular-nums; }
  .zjh-betchip {
    margin-top: 3px; display: inline-block; padding: 1px 7px; border-radius: 8px;
    font-size: 9.5px; font-weight: 800; color: #3A2306;
    background: linear-gradient(135deg, #FFE7AE, #E0AE55);
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
  }
  .zjh-fan { display: flex; justify-content: center; height: 26px; margin-top: 4px; }
  .zjh-fan-card { width: 19px; height: 26px; margin-left: -6px; }
  .zjh-fan-card:first-child { margin-left: 0; transform: rotate(-9deg); }
  .zjh-fan-card:nth-child(3) { transform: rotate(9deg); }
  .zjh-fan-card .zjh-card { width: 19px; height: 26px; border-radius: 4px; padding: 0; }
  .zjh-fan-card .zjh-card b { font-size: 9px; }
  .zjh-fan-card .zjh-card i { font-size: 7px; margin-top: 0; }
  .zjh-back-mini {
    display: block; width: 19px; height: 26px; border-radius: 4px;
    background: repeating-linear-gradient(45deg, #2F7FB3, #2F7FB3 3px, #256C99 3px, #256C99 6px);
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
  }
  .zjh-pod.out { opacity: .45; }
  .zjh-pod.out .zjh-plate { filter: grayscale(.5); }

  /* 我的面板 */
  .zjh-me {
    position: absolute; left: 12px; right: 12px; bottom: 6px;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 16px;
    background: linear-gradient(180deg, rgba(6,28,20,.55), rgba(4,20,14,.86));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    z-index: 4;
  }
  .zjh-me-av {
    flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
    background: #1F4F73; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; border: 2px solid rgba(255,231,174,.55);
  }
  .zjh-me-av img { width: 100%; height: 100%; object-fit: cover; }
  .zjh-me-info { flex: none; }
  .zjh-me-info b { display: block; font-size: 11px; color: #fff; }
  .zjh-me-info span { display: block; font-size: 10.5px; font-weight: 800; color: #FFE7AE; }
  .zjh-myhand { flex: 1; display: flex; justify-content: flex-end; gap: 6px; min-height: 74px; align-items: center; }
  .zjh-mycard { width: 52px; height: 74px; animation: zjhDeal .38s cubic-bezier(.2,1.4,.4,1) both; }
  .zjh-mycard .zjh-card { width: 100%; height: 100%; }
  .zjh-mycard.hidden-face .zjh-card { transform: rotateY(180deg); }
  @keyframes zjhDeal {
    from { transform: translateY(46px) scale(.55) rotate(-12deg); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .zjh-card {
    width: 100%; height: 100%; border-radius: 8px; background: #fff; color: #1B2A36;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 5px 12px rgba(0,0,0,.32), 0 1px 0 rgba(255,255,255,.7) inset;
  }
  .zjh-card b { font-size: 20px; font-weight: 800; line-height: 1; }
  .zjh-card i { font-size: 13px; font-style: normal; margin-top: 2px; }
  .zjh-card.red { color: #C1483F; }
  .zjh-card.back {
    background: repeating-linear-gradient(45deg, #2F7FB3, #2F7FB3 5px, #276A96 5px, #276A96 10px);
    color: rgba(255,255,255,.5); font-size: 12px; font-weight: 800;
  }
  .zjh-card.back span { opacity: .75; }

  /* 特效层 */
  .zjh-fx { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
  .zjh-flychip {
    position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #FFE9B5, #D9A03C 62%, #8B5E1E);
    box-shadow: 0 2px 0 #6E4A15, 0 5px 12px rgba(0,0,0,.4);
    color: #5A3A08; font-size: 8px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: transform .52s cubic-bezier(.34,.9,.3,1), opacity .52s ease;
  }
  .zjh-conf {
    position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px;
    background: linear-gradient(180deg, #FFE7AE, #E0AE55);
    animation: zjhFall 1.5s ease-in forwards;
  }
  .zjh-conf.grey { background: linear-gradient(180deg, #9FB2BF, #6F8390); }
  @keyframes zjhFall {
    to { transform: translate(var(--dx, 0), 108vh) rotate(var(--rz, 180deg)); opacity: .05; }
  }
  .zjh-winner {
    position: absolute; left: 50%; top: 32%; z-index: 9;
    transform: translate(-50%, -50%) scale(.82); opacity: 0;
    pointer-events: none; transition: all .26s cubic-bezier(.2,1.3,.4,1);
  }
  .zjh-winner.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .zjh-winner-card {
    text-align: center; padding: 12px 24px; border-radius: 18px;
    background: linear-gradient(160deg, rgba(255,231,174,.97), rgba(224,174,85,.97));
    color: #3A2306;
    box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.4);
  }
  .zjh-winner-card span { display: block; font-size: 10.5px; letter-spacing: 3px; opacity: .65; }
  .zjh-winner-card b { display: block; font-size: 20px; font-weight: 800; margin: 2px 0; }
  .zjh-winner-card em { font-style: normal; font-size: 13px; font-weight: 800; color: #8A3B00; }
  .zjh-winner.mine .zjh-winner-card { animation: zjhWinPulse 1s ease; }
  @keyframes zjhWinPulse { 0% { transform: scale(.92); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

  /* 底部操作 */
  .zjh-foot { flex: 0 0 auto; padding: 4px 12px calc(10px + env(safe-area-inset-bottom)); position: relative; z-index: 6; }
  .zjh-log { height: 32px; overflow: hidden; margin-bottom: 4px; }
  .zjh-logline { font-size: 10.5px; color: rgba(255,255,255,.45); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zjh-actions { display: flex; flex-direction: column; gap: 7px; min-height: 96px; justify-content: flex-end; }
  .zjh-acts-row { display: flex; gap: 8px; align-items: center; }
  .zjh-acts-row.sub .zjh-btn { height: 36px; font-size: 12.5px; border-radius: 12px; }
  .zjh-btn {
    flex: 1; height: 46px; border: 0; border-radius: 14px;
    font-size: 14px; font-weight: 800; color: #1B2A36;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    background: #EEF5FB; box-shadow: 0 6px 16px rgba(0,0,0,.28);
    transition: transform .1s ease, filter .12s ease;
  }
  .zjh-btn i { font-style: normal; font-size: 13px; }
  .zjh-btn:active { transform: scale(.97); filter: brightness(1.06); }
  .zjh-btn.see { background: linear-gradient(135deg, #FFE7AE, #E8B55C); color: #3A2306; }
  .zjh-btn.call { background: linear-gradient(135deg, #8AE6B8, #35A573); color: #05301F; }
  .zjh-btn.raise { background: linear-gradient(135deg, #A9DCFF, #4B9FE0); color: #06243B; }
  .zjh-btn.fold { background: rgba(255,255,255,.14); color: rgba(255,255,255,.88); box-shadow: none; }
  .zjh-btn.cmp { background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); box-shadow: none; }
  .zjh-hint { text-align: center; font-size: 12px; color: rgba(255,255,255,.6); padding: 18px 0; }
  .zjh-cmp-hint { flex: none; font-size: 12px; color: rgba(255,255,255,.7); padding-right: 4px; }
  .zjh-av, .zjh-me-av { position: relative; }
  .zjh-initial {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: #fff;
  }
  .zjh-av img, .zjh-me-av img { position: relative; z-index: 1; }

  .zjh-me-info b { display: block; font-size: 11px; color: #fff; }
  .zjh-me-bar { width: 66px; height: 3px; border-radius: 2px; margin-top: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
  .zjh-me-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFE7AE, #E0AE55); transition: width .9s linear; }
  .zjh-me-bar.done i { background: rgba(255,231,174,.35); }

  /* ---- 绗笁鐗堢編鍖栵細妗岄潰鍏夊甫 / 鐗屽爢 / 灞€鏁?/ 鐪熺墝闈?---- */
  .zjh-sheen {
    position: absolute; inset: -30%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.07) 26deg, rgba(255,255,255,0) 60deg, rgba(255,255,255,0) 360deg);
    animation: zjhSheen 16s linear infinite;
    pointer-events: none; opacity: .8;
  }
  @keyframes zjhSheen { to { transform: rotate(360deg); } }
  .zjh-round {
    position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
    font-size: 10px; letter-spacing: 2px; color: rgba(255,231,174,.62);
    padding: 2px 10px; border-radius: 8px;
    border: 1px solid rgba(255,231,174,.16);
    background: rgba(0,0,0,.16);
    white-space: nowrap;
  }
  .zjh-deck {
    position: absolute; left: 50%; top: 55.5%; transform: translateX(-50%);
    width: 40px; height: 28px; opacity: .55;
  }
  .zjh-deck i {
    position: absolute; left: 50%; top: 0; width: 22px; height: 30px;
    margin-left: -11px; border-radius: 4px;
    background: repeating-linear-gradient(45deg, #2F7FB3, #2F7FB3 4px, #266C99 4px, #266C99 8px);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 3px 8px rgba(0,0,0,.35);
  }
  .zjh-deck i:nth-child(1) { transform: rotate(-9deg) translateY(3px); }
  .zjh-deck i:nth-child(2) { transform: rotate(-3deg) translateY(1px); }
  .zjh-deck i:nth-child(3) { transform: rotate(3deg); }
  .zjh-pot.bump b { animation: zjhPotBump .45s cubic-bezier(.2,1.6,.4,1); }
  @keyframes zjhPotBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); text-shadow: 0 0 30px rgba(255,214,130,.9); }
    100% { transform: scale(1); }
  }

  /* 鐪熺墝闈細宸︿笂瑙掔偣鏁?+ 涓棿澶ц姳鑹?+ 鍙充笅瑙掗暅鍍?*/
  .zjh-card { position: relative; padding: 0 !important; overflow: hidden; }
  .zjh-card .c-tl, .zjh-card .c-br {
    position: absolute; font-size: 13px; font-weight: 800; line-height: 1;
    letter-spacing: -.5px;
  }
  .zjh-card .c-tl { left: 5px; top: 5px; }
  .zjh-card .c-br { right: 5px; bottom: 5px; transform: rotate(180deg); }
  .zjh-card .c-stl, .zjh-card .c-sbr {
    position: absolute; font-size: 9px; font-style: normal; line-height: 1;
  }
  .zjh-card .c-stl { left: 6px; top: 19px; }
  .zjh-card .c-sbr { right: 6px; bottom: 19px; transform: rotate(180deg); }
  .zjh-card .c-big {
    position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
    font-size: 30px; line-height: 1; opacity: .92;
  }
  .zjh-card.back .c-big, .zjh-card.back .c-tl, .zjh-card.back .c-br,
  .zjh-card.back .c-stl, .zjh-card.back .c-sbr { display: none; }
  .zjh-back-pat {
    position: absolute; inset: 4px; border-radius: 5px;
    border: 1px dashed rgba(255,255,255,.22);
  }
  .zjh-card.back span {
    position: relative; z-index: 1; font-size: 11px; letter-spacing: 1px;
    color: rgba(255,255,255,.72);
  }
  .zjh-fan-card .zjh-card .c-tl, .zjh-fan-card .zjh-card .c-br { font-size: 7px; left: 2px; top: 2px; right: 2px; bottom: 2px; }
  .zjh-fan-card .zjh-card .c-big { font-size: 12px; }
  .zjh-fan-card .zjh-card .c-stl, .zjh-fan-card .zjh-card .c-sbr { display: none; }

  /* 鍙戠墝/缈荤墝鍔ㄧ敾 */
  .zjh-fan-card { animation: zjhFanIn .3s cubic-bezier(.2,1.4,.4,1) both; }
  @keyframes zjhFanIn {
    from { transform: translateY(-10px) scale(.6); opacity: 0; }
    to { opacity: 1; }
  }
  .zjh-card.reveal { animation: zjhFlip .42s cubic-bezier(.3,.9,.3,1) both; }
  @keyframes zjhFlip {
    0% { transform: rotateY(96deg) scale(.96); }
    55% { transform: rotateY(-12deg) scale(1.02); }
    100% { transform: rotateY(0) scale(1); }
  }

  /* 鎴块棿鍗★細涓夋。閰嶈壊 */
  .zjh-room { position: relative; overflow: hidden; }
  .zjh-room::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, #6FD3A5, #2E8B62);
  }
  .zjh-room.fun::before { background: linear-gradient(180deg, #7FC4F0, #3D8FC7); }
  .zjh-room.pro::before { background: linear-gradient(180deg, #E8B55C, #B47A1E); }
  .zjh-room { padding-left: 17px; }
  .zjh-room-l b { display: flex; align-items: center; gap: 6px; }
  .zjh-room-l b em {
    font-style: normal; font-size: 9.5px; font-weight: 800; color: #3D8FC7;
    background: rgba(61,143,201,.10); padding: 1px 6px; border-radius: 5px;
  }

  .zjh-round:empty { display: none; }
  .zjh-deck { left: 63%; top: 47%; opacity: .5; transform: translateX(-50%) rotate(6deg); }
  .zjh-fan { height: 30px; }
  .zjh-fan-card { width: 20px; height: 27px; margin-left: -7px; transform-origin: 50% 100%; }
  .zjh-fan-card:first-child { margin-left: 0; transform: rotate(-17deg) translate(-2px, 1px); }
  .zjh-fan-card:nth-child(2) { transform: translateY(-2px); }
  .zjh-fan-card:nth-child(3) { transform: rotate(17deg) translate(2px, 1px); }

  /* ---- v4 甯冨眬鏁寸悊锛氫笉鍐嶄簰鐩稿帇 ---- */
  .zjh-table-wrap { top: 44px; bottom: 196px; }
  .zjh-round {
    left: 16px; top: 10px; transform: none;
    font-size: 9.5px; letter-spacing: 1px;
    padding: 2px 9px; border-radius: 7px;
    background: rgba(0,0,0,.22); border-color: rgba(255,231,174,.18);
  }
  .zjh-felt-mark { top: 21%; font-size: 9px; letter-spacing: 7px; }
  .zjh-pot { top: 37%; }
  .zjh-pot b { font-size: 31px; }
  .zjh-stack em { width: 13px; height: 13px; }
  .zjh-deck { left: 70%; top: 34%; opacity: .45; }
  .zjh-center { top: 55%; }

  /* 搴т綅锛氱粺涓€寰€涓婃敹锛屽埆鍘嬪埌搴曢儴闈㈡澘 */
  .zjh-pod { width: 88px; }
  .zjh-pod.p0 { display: none; }
  .zjh-pod.p1 { left: 15%; top: 62%; }
  .zjh-pod.p2 { left: 18%; top: 30%; }
  .zjh-pod.p3 { left: 50%; top: 14%; }
  .zjh-pod.p4 { left: 82%; top: 30%; }
  .zjh-pod.p5 { left: 85%; top: 62%; }
  .zjh-avwrap { width: 46px; height: 46px; }
  .zjh-av { width: 46px; height: 46px; font-size: 14px; }
  .zjh-timerring { top: 23px; width: 60px; height: 60px; }
  .zjh-timerring {
    -webkit-mask: radial-gradient(circle, transparent 26px, #000 27px);
    mask: radial-gradient(circle, transparent 26px, #000 27px);
  }
  .zjh-plate { min-width: 56px; padding: 2px 8px; border-radius: 9px; margin-top: 4px; }
  .zjh-plate b { font-size: 10px; max-width: 72px; }
  .zjh-plate span { font-size: 9.5px; }
  .zjh-betchip { position: relative; margin-top: 3px; font-size: 9px; padding: 0 6px; }
  .zjh-fan { height: 24px; margin-top: 3px; }
  .zjh-fan-card { width: 18px; height: 24px; margin-left: -6px; }
  .zjh-fan-card .zjh-card { width: 18px; height: 24px; }

  /* 鎴戠殑闈㈡澘锛氭墜鐗岀◢灏忥紝鐣欏嚭鍛煎惛鎰?*/
  .zjh-me { left: 10px; right: 10px; bottom: 4px; padding: 8px 11px; }
  .zjh-myhand { min-height: 68px; }
  .zjh-mycard { width: 48px; height: 68px; }
  .zjh-card .c-big { font-size: 27px; }
  .zjh-card .c-tl { font-size: 12px; left: 4px; top: 4px; }
  .zjh-card .c-br { font-size: 12px; right: 4px; bottom: 4px; }
  .zjh-card .c-stl { font-size: 8.5px; left: 5px; top: 17px; }
  .zjh-card .c-sbr { font-size: 8.5px; right: 5px; bottom: 17px; }

  /* 璧㈠妯箙鏀惧埌涓棿鎻愮ず鐨勪綅缃紝涓嶅啀鎸″簳姹?*/
  .zjh-winner { top: 55%; }
  .zjh-winner-card { padding: 10px 20px; border-radius: 16px; }
  .zjh-winner-card b { font-size: 18px; }

  /* 鎿嶄綔鍖烘洿绱у噾涓€鐐?*/
  .zjh-actions { min-height: 92px; }
  .zjh-btn { height: 44px; }
  .zjh-log { height: 28px; }


  /* ---- v5锛氭寜姣斾緥鎺掔増锛屽皬灞忎篃涓嶆尋 ---- */
  .zjh-stage { display: flex; flex-direction: column; }
  .zjh-board { position: relative; flex: 1 1 auto; min-height: 0; }
  .zjh-table-wrap { position: absolute; left: 3%; right: 3%; top: 2%; bottom: 2%; }
  .zjh-seats { position: absolute; left: 3%; right: 3%; top: 2%; bottom: 2%; }
  .zjh-me {
    position: relative !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    flex: 0 0 auto; margin: 6px 10px 0;
  }
  .zjh-pot { top: 38%; }
  .zjh-center { top: 64%; }
  .zjh-round { left: 10px; top: 8px; }

  .zjh-pod.p1 { left: 14%; top: 72%; }
  .zjh-pod.p2 { left: 14%; top: 24%; }
  .zjh-pod.p3 { left: 50%; top: 4%; }
  .zjh-pod.p4 { left: 86%; top: 24%; }
  .zjh-pod.p5 { left: 86%; top: 72%; }

  .zjh-winner { top: 60%; }

  /* 鐭睆锛氬瓧鍙峰拰闂磋窛閮芥敹涓€鏀?*/
  @media (max-height: 720px) {
    .zjh-pot b { font-size: 26px; }
    .zjh-pot span { font-size: 9.5px; }
    .zjh-stack em { width: 11px; height: 11px; }
    .zjh-center .zjh-yourturn { padding: 5px 12px; font-size: 11.5px; }
    .zjh-pod { width: 82px; }
    .zjh-avwrap, .zjh-av { width: 40px; height: 40px; }
    .zjh-timerring { width: 52px; height: 52px; top: 20px; }
    .zjh-timerring {
      -webkit-mask: radial-gradient(circle, transparent 22px, #000 23px);
      mask: radial-gradient(circle, transparent 22px, #000 23px);
    }
    .zjh-plate { min-width: 50px; padding: 1px 7px; }
    .zjh-plate b { font-size: 9.5px; max-width: 66px; }
    .zjh-plate span { font-size: 9px; }
    .zjh-fan { height: 21px; }
    .zjh-fan-card, .zjh-fan-card .zjh-card { width: 16px; height: 21px; }
    .zjh-mycard { width: 44px; height: 62px; }
    .zjh-myhand { min-height: 62px; }
    .zjh-card .c-big { font-size: 23px; }
    .zjh-actions { min-height: 74px; gap: 6px; }
    .zjh-btn { height: 38px; font-size: 13px; }
    .zjh-log { height: 22px; }
    .zjh-logline { font-size: 10px; }
    .zjh-round { font-size: 9px; padding: 1px 7px; }
  }

  /* v5.1：局数牌匾放中间，座位往里收 */
  .zjh-round { left: 50%; top: 7px; transform: translateX(-50%); }
  .zjh-pod.p1 { left: 16%; top: 74%; }
  .zjh-pod.p5 { left: 84%; top: 74%; }
  .zjh-pod.p3 { left: 50%; top: 12%; }
  .zjh-pot { top: 36%; }
  .zjh-center { top: 66%; }
  .zjh-log { height: 18px; }
  .zjh-logline { line-height: 18px; }
  @media (max-height: 720px) {
    .zjh-round { top: 5px; font-size: 8.5px; }
    .zjh-pod.p3 { top: 14%; }
  }
  /* 合并聊天记录里的媒体：能点、能播 */
  .hist-img { cursor: zoom-in; }
  .hist-video {
    position: relative; display: inline-block; max-width: 200px; border-radius: 10px;
    overflow: hidden; background: #0E2433; cursor: pointer; vertical-align: top;
  }
  .hist-vposter { display: block; width: 200px; max-height: 150px; object-fit: cover; opacity: .92; }
  .hist-play {
    position: absolute; left: 50%; top: 50%; width: 40px; height: 40px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.6);
  }
  .hist-play::after {
    content: ''; position: absolute; left: 15px; top: 11px;
    border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  }
  .hist-vtag {
    position: absolute; left: 6px; bottom: 6px; font-size: 10px; color: #fff;
    background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 6px; max-width: 170px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .hist-audio { cursor: pointer; color: #3D8FC7; }
  .hist-video { width: 200px; height: 130px; }
  .hist-vposter { width: 100%; height: 100%; object-fit: cover; }
  .hist-video:empty { background: #0E2433; }
  /* ---- v6：音效开关 / 赢家高亮 / 我的牌型 / 赢筹码动画 ---- */
  .zjh-sound { margin-right: 4px; opacity: .9; }
  .zjh-sound.off { opacity: .38; }
  .zjh-sound.off::after {
    content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px;
    background: currentColor; transform: rotate(-45deg); border-radius: 1px;
  }
  .zjh-sound { position: relative; }

  .zjh-pod.win .zjh-av {
    border-color: #FFD98A;
    box-shadow: 0 0 0 3px rgba(255,217,138,.25), 0 0 26px rgba(255,214,130,.6);
    animation: zjhWinGlow 1.2s ease-in-out 2;
  }
  @keyframes zjhWinGlow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
  .zjh-wintag {
    position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
    padding: 1px 8px; border-radius: 8px; font-size: 10px; font-weight: 800;
    color: #4A2E05; background: linear-gradient(135deg, #FFE7AE, #E0AE55);
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
  }

  .zjh-myhand-tag {
    display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 6px;
    font-style: normal; font-size: 10px; font-weight: 800;
    color: #4A2E05; background: linear-gradient(135deg, #FFE7AE, #E0AE55);
  }
  .zjh-flychip.to-me { animation: none; }
  /* 群成员页：懒加载头像 + 显示更多 */
  .gmp-av { overflow: hidden; }
  .gmp-av-img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
  .gmp-more {
    display: block; width: calc(100% - 32px); margin: 10px 16px 4px; height: 42px;
    border-radius: 12px; border: 1px solid var(--line, #E3EDF5);
    background: var(--card, #fff); color: var(--text, #1B3A4B);
    font-size: 13.5px; font-weight: 700;
  }
  .gmp-more:active { transform: scale(.985); }
  #msgs .msgtime { content-visibility: auto; contain-intrinsic-size: auto 26px; }
  /* 历史到底提示 */
  .msg-nomore {
    text-align: center; font-size: 11px; color: var(--dim, #8AA0AF);
    padding: 10px 0 6px;
  }
  /* ---- 交易防骗：提示条 / 首次须知 / 拉黑链接 ---- */
  .ex-fraud-tip {
    margin: 10px 12px 6px; padding: 10px 12px; border-radius: 12px;
    background: #FFF6E5; border: 1px solid #F2D9A8; color: #7A5410;
    font-size: 12.5px; line-height: 1.55; display: flex; gap: 6px; align-items: flex-start;
  }
  .ex-fraud-tip b { flex: none; font-size: 12.5px; }
  .ex-intro-mask {
    position: fixed; inset: 0; z-index: 95; background: rgba(8,26,38,.55);
    display: flex; align-items: center; justify-content: center; padding: 22px;
  }
  .ex-intro-card {
    width: 100%; max-width: 340px; background: #fff; border-radius: 18px;
    padding: 20px 18px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); text-align: left;
  }
  .ex-intro-ico { font-size: 28px; text-align: center; }
  .ex-intro-t { text-align: center; font-size: 17px; font-weight: 800; margin: 6px 0 12px; color: #12394F; }
  .ex-intro-list { font-size: 13px; line-height: 1.75; color: #3B5768; }
  .ex-intro-list div { margin-bottom: 6px; }
  .ex-intro-btn {
    width: 100%; height: 44px; margin-top: 10px; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, #3E8FC9, #2F79B0); color: #fff;
    font-size: 15px; font-weight: 700;
  }
  .ex-block-link { color: #C1483F; text-decoration: none; font-weight: 600; }
  .ex-block-link.off { color: #8AA0AF; }

  /* ============ 朋友圈：视频封面 + 付费查看 ============ */
  /* 视频格子：服务器 ffmpeg 截的封面图铺底，播放小三角盖在上面 */
  .mo-cell.vid > img.mo-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mo-cell.vid > img.mo-cover.poster-dead { visibility: hidden; }

  /* 付费动态：没付钱时那块锁住的占位 */
  .mo-locked {
    margin: 6px 0 2px; padding: 16px 14px; border-radius: 13px;
    background: linear-gradient(135deg, rgba(94,176,233,.16), rgba(46,125,209,.2));
    border: 1px dashed rgba(46,125,209,.38);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    max-width: 272px;
  }
  .mo-locked-ico { color: #2E7DD1; opacity: .9; }
  .mo-locked-ico svg { width: 22px; height: 22px; }
  .mo-locked-t { font-size: 13.5px; font-weight: 600; color: var(--c-text-1, #16324A); }
  .mo-locked-sub { font-size: 12px; color: var(--c-text-3, #8AA0AF); }
  .mo-unlock-btn {
    margin-top: 8px; border: none; cursor: pointer;
    padding: 9px 18px; border-radius: 999px;
    background: linear-gradient(135deg, #5EB0E9, #2E7DD1);
    color: #fff; font-size: 13.5px; font-weight: 600;
    box-shadow: 0 6px 14px rgba(46,125,209,.28);
  }
  .mo-unlock-btn:active { transform: scale(.97); }
  .mo-unlock-btn[disabled] { opacity: .65; }

  /* 名字后面的价格小标 */
  .mo-price-flag {
    margin-left: 8px; padding: 1px 7px; border-radius: 999px;
    font-size: 11px; font-weight: 600; vertical-align: 1px;
    color: #2E7DD1; background: rgba(46,125,209,.12);
  }
  .mo-price-flag.paid { color: #2E8B57; background: rgba(46,139,87,.14); }
  .mo-lock-hint { color: var(--c-text-3, #8AA0AF); font-size: 12.5px; }

  /* 发动态时的「付费查看」输入行 */
  .mo-post-price {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px;
    background: rgba(46,125,209,.07);
  }
  .mo-post-price-t { font-size: 13px; font-weight: 600; color: var(--c-text-1, #16324A); white-space: nowrap; }
  .mo-post-price input {
    width: 64px; padding: 6px 8px; border-radius: 9px;
    border: 1px solid rgba(46,125,209,.25); background: #fff;
    font-size: 13px; text-align: center; color: #16324A;
  }
  .mo-post-price-u { font-size: 11.5px; color: var(--c-text-3, #8AA0AF); }

  /* 登录页底部：不用登录也能看朋友圈 */
  .login-public-mo {
    display: block; text-align: center; margin-top: 14px;
    font-size: 12.5px; color: #2E7DD1; text-decoration: none; opacity: .9;
  }
  .login-public-mo:active { opacity: .6; }

  /* ============ 头衔（皇冠认证） ============ */
  .pf-tag2.verify {
    display: inline-flex; align-items: center; gap: 3px;
    color: #8A5A00; background: linear-gradient(135deg, #FFE7A8, #FFC94D);
    border: 1px solid rgba(180, 120, 0, .28); font-weight: 700;
  }
  .pf-tag2.verify svg { width: 12px; height: 12px; stroke-width: 2.2; }
  .mo-title {
    display: inline-flex; align-items: center; gap: 3px;
    margin-left: 6px; padding: 1px 7px 1px 5px; border-radius: 999px;
    font-size: 11px; font-weight: 700; color: #8A5A00;
    background: linear-gradient(135deg, #FFE7A8, #FFC94D);
    border: 1px solid rgba(180, 120, 0, .25); vertical-align: 1px;
  }
  .mo-title svg { width: 11px; height: 11px; stroke-width: 2.2; }
  #moList .mo-av:active { transform: scale(.94); }

  /* 朋友圈视频格子：封面没加载好时也不能塌成一条横杠
     （付费视频的封面在服务端要鉴权，第一下 404 时格子会 0 高 —— 这就是「长圆条」的成因）
     注意：上面 #moList .mo-grid.g1 .mo-cell 把 aspect-ratio 设成 auto 了，
     选择器要比它更具体才盖得住。 */
  #moList .mo-grid.g1 .mo-cell.vid {
    position: relative; aspect-ratio: 4 / 3 !important; height: auto !important;
    max-height: 380px !important; min-height: 0 !important;
    background: linear-gradient(135deg, #16324a, #0B1F2D); overflow: hidden;
  }
  #moList .mo-grid.g2 .mo-cell.vid,
  #moList .mo-grid.g3 .mo-cell.vid {
    position: relative; aspect-ratio: 1 / 1 !important; height: auto !important;
    background: linear-gradient(135deg, #16324a, #0B1F2D); overflow: hidden;
  }
  #moList .mo-grid .mo-cell.vid > img.mo-cover {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important;
    max-height: none !important; object-fit: cover !important; display: block !important;
  }
  #moList .mo-cell.vid > .mo-play { position: absolute; z-index: 2; }

/* 消息加载失败/重试 */
#msgs .chat-fail {
  margin: 60px auto 0; max-width: 260px; text-align: center;
  padding: 22px 18px; border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 20px rgba(24,68,102,.08);
  color: #7C99AD; font-size: 13px;
}
#msgs .chat-fail b { display: block; margin-top: 10px; color: #2E7DB2; font-weight: 700; cursor: pointer; }

/* 低端手机滚动掉帧的主因：顶栏 / 底栏 / 输入框是 fixed 的，还带毛玻璃，
   每滚一帧都要重新模糊一遍。窄屏直接换成接近实色的底，肉眼几乎看不出差别。 */
@media (max-width: 560px) {
  .topbar, .tabbar, .composer, #moments > .topbar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .topbar, #moments > .topbar { background-color: rgba(248, 252, 255, .97) !important; }
  .tabbar { background-color: rgba(249, 252, 255, .97) !important; }
  .composer { background-color: rgba(246, 251, 255, .97) !important; }
}

/* 朋友圈发动态：相册照片 / 相册视频 两个入口并排 */
.mo-post-picks { display: flex; gap: 9px; margin: 11px 0 4px; }
.mo-post-picks .mo-post-pick { flex: 1; margin: 0; min-width: 0; }
.mo-post-picks .mo-post-pick-t { font-size: 13px; }
.mo-post-picks.has-file { display: block; }
.mo-post-picks.has-file .mo-post-grid { margin: 0; }

/* 视频气泡：封面还没生成 / 加载失败时也别塌成一条 —— 给个保底尺寸和深色底，
   不然看起来就像「视频发不出去」 */
.video-wrap {
  min-width: 168px;
  min-height: 126px;
  border-radius: 14px;
  background: linear-gradient(150deg, #14384C, #0B1F2D);
  overflow: hidden;
}
.video-wrap.video-no-poster {
  background: linear-gradient(150deg, #14384C, #0B1F2D);
}
.video-wrap .video-poster { display: block; min-width: 168px; min-height: 126px; object-fit: cover; }
.video-wrap .video-poster:not([src]) { background: linear-gradient(150deg, #14384C, #0B1F2D); }


/* ==================== 图片查看器 v2 ==================== */
body.zm-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.zm2 {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .9);
  opacity: 0; transform: scale(.92);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .85, .3, 1);
  touch-action: none; overflow: hidden;
}
.zm2.in { opacity: 1; transform: scale(1); }
.zm2.out { opacity: 0; transform: scale(.9); }
.zm2-stage { position: absolute; inset: 0; overflow: hidden; }
.zm2-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.zm2-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.zm2-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transform-origin: center center; user-select: none; -webkit-user-drag: none;
  will-change: transform;
}
.zm2-top, .zm2-bottom {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
  background: rgba(18, 24, 30, .46);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 3;
}
.zm2-top { top: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.zm2-bottom { bottom: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
.zm2-top.hide { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.zm2-bottom.hide { opacity: 0; transform: translateY(100%); pointer-events: none; }
.zm2-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.zm2-btn svg { width: 19px; height: 19px; }
.zm2-btn:active { background: rgba(255, 255, 255, .28); }
.zm2-gap { flex: 1; }
.zm2-txt {
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.zm2-txt:active { background: rgba(255, 255, 255, .28); }
.zm2-ph { opacity: 0; pointer-events: none; }
.zm2-page { color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zm2-page.hide-page { opacity: 0; }
.zm2-spin { position: absolute; left: 50%; top: 50%; margin: -16px 0 0 -16px; width: 32px; height: 32px; z-index: 2; }
.zm2-spin.hide { display: none; }
.zm2-spin i { display: block; width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.26); border-top-color: #fff; animation: zm2spin .9s linear infinite; }
@keyframes zm2spin { to { transform: rotate(360deg); } }
.zm2-err { color: rgba(255, 255, 255, .82); font-size: 13px; }
.zm2-menu {
  position: absolute; right: 12px; top: calc(56px + env(safe-area-inset-top)); z-index: 6;
  min-width: 150px; padding: 6px; border-radius: 14px;
  background: rgba(28, 36, 44, .94); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.zm2-menu b { display: block; padding: 10px 12px; border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.zm2-menu b:active { background: rgba(255, 255, 255, .12); }

/* 视频查看器：底部居中的播放/暂停 + 进度条 + 时间 */
.vf-mainwrap { display: flex; align-items: center; justify-content: center; padding: 2px 0 8px; }
.vf-main {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8);
  background: rgba(10, 20, 30, .5); color: #fff; display: flex; align-items: center; justify-content: center;
}
.vf-main svg { width: 22px; height: 22px; }
.vf-main:active { background: rgba(10, 20, 30, .72); }







/* ==================== 视频查看器 v2 ==================== */
body.vf-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.vf2 {
  position: fixed; inset: 0; z-index: 9998; background: #000;
  opacity: 0; transform: scale(.92);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .85, .3, 1);
  overflow: hidden; touch-action: pan-y;
}
.vf2.in { opacity: 1; transform: scale(1); }
.vf2.out { opacity: 0; transform: scale(.9); }
.vf2 video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.vf2-spin { position: absolute; left: 50%; top: 50%; margin: -18px 0 0 -18px; width: 36px; height: 36px; z-index: 2; }
.vf2-spin i {
  display: block; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: vf2spin .9s linear infinite;
}
.vf2-spin.hide { display: none; }
@keyframes vf2spin { to { transform: rotate(360deg); } }
.vf2-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: rgba(18, 24, 30, .44);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  transition: opacity .2s ease, transform .2s ease;
}
.vf2-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(18, 24, 30, .46);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  transition: opacity .2s ease, transform .2s ease;
}
.vf2-top.hide { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.vf2-bottom.hide { opacity: 0; transform: translateY(100%); pointer-events: none; }
.vf2-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.vf2-btn svg { width: 19px; height: 19px; }
.vf2-gap { flex: 1; }
.vf2-mainwrap { display: flex; align-items: center; justify-content: center; padding: 2px 0 10px; }
.vf2-main {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .8);
  background: rgba(10, 20, 30, .5); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.vf2-main svg { width: 24px; height: 24px; }
.vf2-main:active { background: rgba(10, 20, 30, .75); }
.vf2-bar { position: relative; height: 26px; touch-action: none; cursor: pointer; }
.vf2-bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 99px; background: rgba(255, 255, 255, .22);
}
.vf2-buf, .vf2-fill {
  position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 99px; width: 0;
}
.vf2-buf { background: rgba(255, 255, 255, .34); }
.vf2-fill { background: #6fd3ff; }
.vf2-dot {
  position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.vf2-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; color: #dbe9f4; font-size: 12px; }
.vf2-time { font-variant-numeric: tabular-nums; }
.vf2-acts { display: flex; align-items: center; gap: 6px; }
.vf2-mini { width: 30px; height: 30px; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.vf2-mini svg { width: 19px; height: 19px; }
.vf2-vol {
  width: 0; opacity: 0; transition: width .2s ease, opacity .2s ease;
  accent-color: #6fd3ff;
}
.vf2-acts:hover .vf2-vol, .vf2-vol:active, .vf2-vol:focus { width: 76px; opacity: 1; }
.vf2-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1;
  display: none;
}
.vf2-arrow.off { opacity: .25; pointer-events: none; }
@media (min-width: 700px) {
  .vf2-arrow { display: block; }
  #vfPrev { left: 18px; }
  #vfNext { right: 18px; }
}
.vf2-menu {
  position: absolute; right: 12px; top: calc(56px + env(safe-area-inset-top)); z-index: 6;
  min-width: 150px; padding: 6px; border-radius: 14px;
  background: rgba(28, 36, 44, .94); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.vf2-menu b { display: block; padding: 10px 12px; border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 600; }
.vf2-menu b:active { background: rgba(255, 255, 255, .12); }
.vf2.switch video { animation: vf2sw .22s ease; }
@keyframes vf2sw { from { opacity: .15; } to { opacity: 1; } }



/* 视频查看器顶部两个按钮用绝对定位钉死左/右 */
#videoFull .vf2-top { display:block !important; }
#videoFull #vfClose { position:absolute !important; left:12px !important; top:calc(10px + env(safe-area-inset-top)) !important; }
#videoFull #vfMore { position:absolute !important; right:12px !important; top:calc(10px + env(safe-area-inset-top)) !important; }
#videoFull #vfClose svg, #videoFull #vfMore svg { width:19px; height:19px; }

/* 图片查看器顶部栏：高度固定（52px + 安全区），内容垂直居中 */
.zm2 { --zm-bar: calc(52px + env(safe-area-inset-top, 0px)); }
.zm2-top {
  height: var(--zm-bar) !important;
  min-height: var(--zm-bar) !important;
  max-height: var(--zm-bar) !important;
  padding: 0 12px !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  box-sizing: border-box !important;
  align-items: center !important;
  overflow: hidden !important;
}
.zm2-top .zm2-btn { width: 34px !important; height: 34px !important; }
.zm2-top .zm2-gap { flex: 1 1 auto !important; }

/* 关视频时的透明盾：吃掉穿透到下层的那一次点击 */
.vf2-shield { position: fixed; inset: 0; z-index: 9999; background: transparent; }

/* 视频查看器的关闭键挪到右上角：左上角跟聊天返回键重叠，点击穿透时会误退聊天 */
#videoFull #vfClose { left:auto !important; right:12px !important; }



/* ==================== 图片查看器：纯黑铺满版 ==================== */
#zoomWrap.zm2 {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  z-index: 9999 !important;
  background: #000 !important;
}
#zoomWrap .zm2-stage { position: absolute !important; inset: 0 !important; overflow: hidden !important; }
#zoomWrap .zm2-track { display: flex !important; width: 100% !important; height: 100% !important; }
#zoomWrap .zm2-slide {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100vw !important; height: 100vh !important; flex: 0 0 100% !important;
}
#zoomWrap .zm2-img {
  width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important;
  object-fit: contain !important;
  transform-origin: center center !important;
}
/* 顶部/底部固定在查看器内部，不跟图片动 */
#zoomWrap .zm2-top { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; }
#zoomWrap .zm2-bottom { position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important; }


/* 首页搜索框左侧放大镜（内联 SVG） */
#convFilterBar { position: relative; }
#convFilterBar .conv-search-ico {
  position: absolute; left: 27px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #93A9B9;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
}
#convFilterBar .conv-search-ico svg { width: 17px; height: 17px; display: block; }
body.dark #convFilterBar .conv-search-ico { color: #7C93A6; }
#convFilterBar input { padding-left: 40px !important; }

/* 视频查看器：原生播放器控件全部隐藏，底部条由 JS 定位到视频画面下沿 */
#vfVideo::-webkit-media-controls,
#vfVideo::-webkit-media-controls-enclosure,
#vfVideo::-webkit-media-controls-panel,
#vfVideo::-webkit-media-controls-play-button,
#vfVideo::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none !important; }
#vfVideo { pointer-events: auto; }

/* 视频查看器关闭键：挪到左侧、再往下一点（离开顶部返回键的位置） */
#videoFull #vfClose { left:16px !important; right:auto !important; top:calc(54px + env(safe-area-inset-top)) !important; }

/* 图片查看器顶部状态栏：高度锁死 52px（不带安全区，各机型一致） */
#zoomWrap .zm2-top {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  overflow: hidden !important;
}
#zoomWrap .zm2-top .zm2-btn { width: 34px !important; height: 34px !important; }

/* 图片占位层不挡点击，整块都能点开大图 */
.img-wrap { cursor: zoom-in; }
.img-wrap .img-ph { pointer-events: none; }

/* ==================== 支付密码 ==================== */
body.pay-lock { overflow: hidden !important; }

.pay-gate {
  position: fixed; inset: 0; z-index: 9990;
  background: linear-gradient(180deg, #EAF4FC 0%, #DCEDFA 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}
body.dark .pay-gate { background: linear-gradient(180deg, #08151F, #0B202E); }
.pay-gate-in { width: 100%; max-width: 340px; text-align: center; }
.pay-gate-ico {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #2f7fb5;
  background: linear-gradient(160deg, rgba(91,178,229,.28), rgba(91,178,229,.10));
  box-shadow: 0 10px 24px rgba(47,127,181,.18);
}
.pay-gate-ico svg { width: 34px; height: 34px; }
.pay-gate-t { font-size: 19px; font-weight: 800; color: #12374d; letter-spacing: -.2px; }
body.dark .pay-gate-t { color: #DFEFFA; }
.pay-gate-s { font-size: 12.5px; line-height: 1.6; color: #5b7d94; margin: 8px 4px 22px; }
body.dark .pay-gate-s { color: #8FA9BC; }

.pay-in {
  width: 100%; height: 48px; margin-bottom: 10px;
  border-radius: 14px; border: 1px solid rgba(120,160,190,.28);
  background: rgba(255,255,255,.92); color: #12374d;
  text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 6px;
  outline: 0;
}
body.dark .pay-in { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #E3F1FA; }
.pay-in::placeholder { letter-spacing: normal; font-size: 13.5px; font-weight: 400; color: #93A9B9; }
.pay-in:focus { border-color: #5BB2E5; box-shadow: 0 0 0 3px rgba(91,178,229,.14); }
.pay-tip { min-height: 18px; font-size: 12px; color: #d2595a; margin: 2px 0 12px; }
.pay-gate .btn-primary { width: 100%; height: 46px; border-radius: 14px; font-size: 15px; }
.pay-gate .btn-ghost { width: 100%; height: 42px; border-radius: 14px; margin-top: 8px; font-size: 13.5px; }

/* 操作前的小输入框 */
.pay-ask {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(10,26,38,.46);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.pay-ask-box {
  width: 100%; max-width: 320px; background: #fff; border-radius: 20px;
  padding: 20px 18px 16px; box-shadow: 0 22px 50px rgba(10,40,60,.28);
}
body.dark .pay-ask-box { background: #12293A; }
.pay-ask-t { font-size: 15.5px; font-weight: 800; color: #12374d; text-align: center; }
body.dark .pay-ask-t { color: #E3F1FA; }
.pay-ask-s { font-size: 11.5px; color: #7A93A6; text-align: center; margin: 6px 0 14px; }
.pay-ask-btns { display: flex; gap: 10px; }
.pay-ask-btns .btn-ghost, .pay-ask-btns .btn-primary { flex: 1; height: 42px; border-radius: 13px; font-size: 14px; }

/* 钱包余额卡里的入口 */
.wh-hero-pay {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255,255,255,.86); cursor: pointer;
}
.wh-hero-pay b { margin-left: auto; font-size: 12.5px; color: #fff; font-weight: 700; }
.wh-hero-pay .ico-svg { width: 13px; height: 13px; opacity: .8; }

/* ==================== 付费朋友圈：模糊预览 ==================== */
.mo-locked2 {
  position: relative; border-radius: 16px; overflow: hidden;
  min-height: 180px; background: #e6eff7;
  box-shadow: inset 0 0 0 1px rgba(120,160,190,.14);
}
body.dark .mo-locked2 { background: #12283A; }
.mo-blur-grid { display: grid; gap: 2px; width: 100%; height: 100%; }
.mo-blur-grid.c1 { grid-template-columns: 1fr; }
.mo-blur-grid.c2 { grid-template-columns: 1fr 1fr; }
.mo-blur-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.mo-blur-cell {
  display: block; height: 190px;
  background-size: cover; background-position: center;
  filter: blur(3px) saturate(.9);
  transform: scale(1.08);
}
.mo-locked-mask {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  background: linear-gradient(180deg, rgba(8,28,42,.16), rgba(8,28,42,.40));
  -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
  color: #fff;
}
.mo-locked2.no-blur .mo-locked-mask { background: rgba(232,242,250,.9); color: #24506b; }
.mo-locked2.no-blur .mo-locked-mask .mo-locked-t { color: #24506b !important; text-shadow: none; }
.mo-locked2.no-blur .mo-locked-mask .mo-locked-sub { color: #5b7d94 !important; }
.mo-locked-mask .mo-locked-ico {
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff;
}
.mo-locked2.no-blur .mo-locked-ico { background: rgba(47,127,181,.12); color: #2f7fb5; }
.mo-locked-mask .mo-locked-ico svg { width: 20px; height: 20px; }
.mo-locked-mask .mo-locked-t { font-size: 13.5px; font-weight: 800; color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.mo-locked-mask .mo-locked-sub { font-size: 11.5px; color: rgba(255,255,255,.86) !important; }
.mo-locked-mask .mo-unlock-btn {
  margin-top: 4px; border: 0; border-radius: 999px;
  padding: 9px 20px; font-size: 13px; font-weight: 800;
  color: #2f7fb5; background: #fff;
  box-shadow: 0 6px 16px rgba(6,24,38,.24);
}
.mo-locked-mask .mo-unlock-btn:disabled { opacity: .6; }

/* 支付密码弹窗：两个按钮必须同一水平线（.btn-ghost 全局有 margin-top:12px，会在弹窗里错位） */
.pay-ask-btns { display: flex !important; align-items: stretch !important; gap: 10px !important; }
.pay-ask-btns .btn-ghost, .pay-ask-btns .btn-primary { margin: 0 !important; flex: 1 1 0 !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; line-height: 1 !important; display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; }

/* ==================== 发红包 / 转账：全屏页 ==================== */
body.pk-lock { overflow: hidden !important; }
.pk-full {
  position: fixed; inset: 0; z-index: 1200;
  background: linear-gradient(180deg, #F4FAFE, #E9F3FB);
  display: flex; flex-direction: column;
}
body.dark .pk-full { background: linear-gradient(180deg, #0A1824, #0D2333); }
.pk-full-top {
  flex: none; display: flex; align-items: center; gap: 8px;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(120,160,190,.16);
  box-sizing: border-box;
}
body.dark .pk-full-top { background: rgba(14,32,46,.94); border-bottom-color: rgba(255,255,255,.08); }
.pk-full-top b { font-size: 16px; font-weight: 800; color: #12374d; }
body.dark .pk-full-top b { color: #E3F1FA; }
.pk-full-back {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(63,127,196,.10); color: #2f6fb0;
  display: flex; align-items: center; justify-content: center;
}
.pk-full-back svg { width: 18px; height: 18px; }
.pk-full-gap { flex: 1; }
.pk-full-body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.pk-full-body .pk-head { display: none; }
.pk-full-foot {
  margin-top: auto !important; width: 100% !important;
  position: sticky; bottom: 0;
  padding: 12px 0 calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(244,250,254,0), rgba(244,250,254,.96) 30%);
}
body.dark .pk-full-foot { background: linear-gradient(180deg, rgba(10,24,36,0), rgba(10,24,36,.96) 30%); }
.pk-full-foot .btn-ghost, .pk-full-foot .btn-primary { flex: 1; height: 46px; margin: 0 !important; }

/* 发红包 / 转账：顶部栏固定高度 52px，标题严格居中 */
.pk-full-top {
  position: relative !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.pk-full-top b {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap;
}
.pk-full-top .pk-full-back {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.pk-full-top .pk-full-gap { display: none !important; }

/* ==================== 支付密码：设置界面（细腻版） ==================== */
.pay-gate {
  position: fixed; inset: 0; z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% -10%, #E4F2FD 0%, #EAF5FC 42%, #DFEEF9 100%);
  animation: pgFade .22s ease;
}
body.dark .pay-gate {
  background: radial-gradient(120% 80% at 50% -10%, #0D2434 0%, #0A1B28 45%, #081521 100%);
}
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }

.pay-gate .pg-card {
  width: 100%; max-width: 344px;
  background: rgba(255,255,255,.94);
  border-radius: 26px;
  padding: 28px 22px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(16,52,78,.16), 0 2px 0 rgba(255,255,255,.6) inset;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: pgUp .26s cubic-bezier(.2,.85,.3,1);
}
body.dark .pay-gate .pg-card { background: rgba(18,40,56,.94); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
@keyframes pgUp { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.pay-gate .pg-ico {
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #2b7cb5;
  background: linear-gradient(160deg, #EAF6FF, #D6EBFB);
  box-shadow: 0 12px 26px rgba(43,124,181,.20), 0 1px 0 rgba(255,255,255,.9) inset;
}
.pay-gate .pg-ico.big svg { width: 30px; height: 30px; }
body.dark .pay-gate .pg-ico { background: linear-gradient(160deg, #17415C, #123246); color: #7EC8F5; box-shadow: 0 12px 26px rgba(0,0,0,.35); }

.pay-gate .pg-t { font-size: 19px; font-weight: 800; color: #12374d; letter-spacing: -.3px; }
body.dark .pay-gate .pg-t { color: #E6F3FB; }
.pay-gate .pg-s { font-size: 12.5px; line-height: 1.65; color: #5c7f96; margin: 8px 2px 0; }
body.dark .pay-gate .pg-s { color: #93AFC2; }

.pay-gate .pg-bullets {
  margin: 16px 0 18px; padding: 12px 14px;
  background: rgba(63,127,196,.06); border-radius: 14px;
  text-align: left;
}
body.dark .pay-gate .pg-bullets { background: rgba(120,190,240,.08); }
.pay-gate .pg-bullets i {
  display: flex; align-items: center; gap: 7px;
  font-style: normal; font-size: 12px; color: #4c6f88; line-height: 1.9;
}
body.dark .pay-gate .pg-bullets i { color: #9FBBCE; }
.pay-gate .pg-bullets i::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #6cb6e4; flex: none;
}

.pay-gate .pg-main-btn {
  width: 100%; height: 50px; border: 0; border-radius: 16px;
  font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: .5px;
  background: linear-gradient(135deg, #6FBEF0, #3E8ECD);
  box-shadow: 0 12px 24px rgba(62,142,205,.28);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
}
.pay-gate .pg-main-btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 6px 14px rgba(62,142,205,.24); }
.pay-gate .pg-main-btn:disabled { opacity: .7; }
.pay-gate .pg-link {
  display: block; width: 100%; margin-top: 12px; padding: 8px 0;
  border: 0; background: transparent; color: #7f9ab0;
  font-size: 13px; font-weight: 600;
}
body.dark .pay-gate .pg-link { color: #7E97A9; }

.pay-gate .pg-field { margin-bottom: 10px; }
.pay-gate .pg-s + .pg-field { margin-top: 16px; }
.pay-gate .pg-in {
  width: 100%; height: 50px;
  border-radius: 16px; border: 1px solid rgba(120,165,195,.26);
  background: #F6FAFE; color: #12374d;
  text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 8px;
  outline: 0; transition: border-color .15s, box-shadow .15s, background .15s;
}
body.dark .pay-gate .pg-in { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #E6F3FB; }
.pay-gate .pg-in::placeholder { letter-spacing: normal; font-size: 13.5px; font-weight: 400; color: #9AAEBF; }
.pay-gate .pg-in:focus {
  border-color: #6CB6E7; background: #fff;
  box-shadow: 0 0 0 4px rgba(108,182,231,.16);
}
body.dark .pay-gate .pg-in:focus { background: rgba(255,255,255,.1); }
.pay-gate .pg-tip { min-height: 18px; font-size: 12px; color: #d2595a; margin: 2px 0 10px; }

/* 钱包余额卡里的入口 */
.wh-pay-setup {
  width: 100%; margin-top: 14px; height: 44px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 14px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wh-pay-setup .ico-svg { width: 17px; height: 17px; }
.wh-pay-setup:active { background: rgba(255,255,255,.28); }
.wh-hero-pay2 {
  margin-top: 14px; padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11.5px; color: rgba(255,255,255,.62);
}
.wh-hero-pay2 .ico-svg { width: 12px; height: 12px; opacity: .8; }
.wh-hero-pay2 b { color: rgba(255,255,255,.9); font-weight: 700; }

/* ==================== 发红包 / 转账：美化 v2 ==================== */
.pk-full {
  background:
    radial-gradient(120% 70% at 50% -20%, #EAF6FF 0%, #F1F8FD 40%, #E6F1FA 100%) !important;
}
body.dark .pk-full {
  background: radial-gradient(120% 70% at 50% -20%, #0E2634 0%, #0A1B27 45%, #081420 100%) !important;
}
/* 顶部栏：固定 52px，不参与滚动 */
.pk-full-top {
  flex: none !important;
  position: relative !important;
  height: 52px !important; min-height: 52px !important; max-height: 52px !important;
  padding: 0 14px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: rgba(255,255,255,.86) !important;
  border-bottom: 1px solid rgba(120,160,190,.14) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-sizing: border-box !important;
}
body.dark .pk-full-top { background: rgba(12,30,42,.9) !important; border-bottom-color: rgba(255,255,255,.07) !important; }
.pk-full-top b {
  position: absolute !important; left: 50% !important; transform: translateX(-50%) !important;
  font-size: 16px !important; font-weight: 800 !important; letter-spacing: .5px;
  color: #12374d !important;
}
body.dark .pk-full-top b { color: #E6F3FB !important; }
.pk-full-top .pk-full-back {
  position: absolute !important; left: 10px !important; top: 50% !important; transform: translateY(-50%) !important;
  width: 34px !important; height: 34px !important; border-radius: 12px !important;
  background: rgba(63,127,196,.10) !important; color: #2f6fb0 !important;
  display: flex; align-items: center; justify-content: center;
}
.pk-full-top .pk-full-back:active { background: rgba(63,127,196,.2) !important; }

.pk-full-body { padding: 18px 18px calc(20px + env(safe-area-inset-bottom)) !important; }

/* 余额：右上角小胶囊 */
.pk-full-body .pk-balance {
  display: block; text-align: right; margin: 0 2px 12px;
  font-size: 11.5px; color: #7A93A6;
}
.pk-full-body .pk-balance b {
  display: inline-block; margin-left: 5px; padding: 3px 10px;
  border-radius: 999px; background: rgba(63,127,196,.10);
  color: #2f6fb0; font-size: 12px; font-weight: 800;
}

/* 金额卡：白底大卡 + 大号数字 */
.pk-full-body .pk-amt-wrap {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  background: #fff; border-radius: 22px;
  padding: 22px 18px 20px; margin: 0 0 16px;
  border: 0; border-bottom: 0;
  box-shadow: 0 12px 28px rgba(24,68,102,.08), 0 1px 0 rgba(255,255,255,.9) inset;
}
body.dark .pk-full-body .pk-amt-wrap { background: rgba(255,255,255,.06); box-shadow: none; }
.pk-full-body .pk-amt-wrap .pk-yen { font-size: 26px !important; font-weight: 800 !important; color: #2f6fb0 !important; }
.pk-full-body .pk-amt-wrap input {
  flex: 1 1 auto; width: auto !important; text-align: left !important;
  font-size: 42px !important; font-weight: 800 !important;
  height: 56px !important; line-height: 56px !important;
  color: #12374d !important; letter-spacing: 0;
}
body.dark .pk-full-body .pk-amt-wrap input { color: #E9F5FC !important; }
.pk-full-body .pk-amt-wrap input::placeholder { font-size: 34px !important; color: rgba(147,168,184,.45) !important; }

/* 快捷金额 */
.pk-full-body .pk-quick { gap: 9px !important; margin-bottom: 18px !important; }
.pk-full-body .pk-quick button {
  height: 44px !important; border-radius: 14px !important;
  border: 1px solid rgba(120,165,195,.22) !important;
  background: #fff !important; color: #2f6fb0 !important;
  font-size: 14.5px !important; font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(24,68,102,.05);
  transition: transform .12s ease, background .12s ease;
}
.pk-full-body .pk-quick button:active { transform: scale(.96); background: #EAF5FE !important; }
body.dark .pk-full-body .pk-quick button { background: rgba(255,255,255,.06) !important; color: #9FD3F5 !important; border-color: rgba(255,255,255,.1) !important; }

/* 行输入（个数 / 谁能领 / 留言） */
.pk-full-body .pk-row,
.pk-full-body .pk-excl {
  background: #fff; border-radius: 16px; padding: 12px 14px !important;
  margin-bottom: 10px !important; border: 0;
  box-shadow: 0 6px 18px rgba(24,68,102,.05);
  display: flex; align-items: center; gap: 10px;
}
body.dark .pk-full-body .pk-row,
body.dark .pk-full-body .pk-excl { background: rgba(255,255,255,.06); box-shadow: none; }
.pk-full-body .pk-label { font-size: 13px; color: #7A93A6; font-weight: 600; white-space: nowrap; }
.pk-full-body .pk-row input {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
  text-align: right; font-size: 15px; font-weight: 700; color: #12374d; outline: 0;
}
body.dark .pk-full-body .pk-row input { color: #E3F1FA; }

.pk-full-body #pkNote {
  width: 100%; box-sizing: border-box;
  border: 0 !important; border-radius: 16px !important;
  background: #fff !important; box-shadow: 0 6px 18px rgba(24,68,102,.05);
  height: 50px !important; padding: 0 14px !important;
  font-size: 14px !important; color: #12374d;
  margin-bottom: 14px;
}
body.dark .pk-full-body #pkNote { background: rgba(255,255,255,.06) !important; color: #E3F1FA; }
.pk-full-body #pkNote::placeholder { color: #9AAEBF !important; }

/* 提示文案 */
.pk-full-body .pk-tip {
  text-align: center; font-size: 12.5px; color: #C1483F;
  min-height: 18px; margin: 2px 0 10px;
}
.pk-full-body .pk-grab-hint {
  border-radius: 14px !important; background: rgba(217,161,59,.10) !important;
  padding: 10px 12px !important; margin-bottom: 10px !important;
}

/* 底部按钮 */
.pk-full-foot {
  display: flex !important; gap: 12px !important;
  padding: 14px 0 calc(8px + env(safe-area-inset-bottom)) !important;
}
.pk-full-foot .btn-ghost,
.pk-full-foot .btn-primary {
  flex: 1 1 0 !important; height: 50px !important; border-radius: 16px !important;
  font-size: 15px !important; font-weight: 800 !important; margin: 0 !important;
  letter-spacing: 1px;
}
.pk-full-foot .btn-ghost { background: #fff !important; color: #4C7591 !important; border: 1px solid rgba(120,165,195,.24) !important; }
.pk-full-foot .btn-primary {
  background: linear-gradient(135deg, #6FBEF0, #3E8ECD) !important;
  box-shadow: 0 12px 24px rgba(62,142,205,.28) !important;
}
.pk-full-foot .btn-primary:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(62,142,205,.22) !important; }

/* 金额卡：白底必须压过全局 input 白底 */
.pk-full-body .pk-amt-wrap { background: #fff !important; border-radius: 22px !important; }
.pk-full-body .pk-amt-wrap input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.dark .pk-full-body .pk-amt-wrap { background: rgba(255,255,255,.07) !important; }

.pk-full-body .pk-amt-wrap input { padding-left: 0 !important; }

/* 付费预览：别太糊 + 视频角标 */
.mo-blur-cell { filter: blur(1.2px) saturate(1.02) !important; transform: scale(1.04) !important; position: relative; }
.mo-blur-cell .mo-blur-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0; border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent rgba(255,255,255,.92);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.mo-blur-cell .mo-blur-dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(8,24,36,.62); color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .3px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ==================== 发红包 / 转账：细节 ==================== */
/* 顶部栏：更柔的过渡线 */
.pk-full-top { box-shadow: 0 6px 16px -12px rgba(16,52,78,.35) !important; }

/* 转账对象卡 */
.pk-full-body .pk-to,
.pk-full-body .pk-to-dm {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 12px 14px;
  margin-bottom: 12px; box-shadow: 0 6px 18px rgba(24,68,102,.05);
  font-size: 13px; color: #7A93A6;
}
body.dark .pk-full-body .pk-to,
body.dark .pk-full-body .pk-to-dm { background: rgba(255,255,255,.06); box-shadow: none; }
.pk-full-body .pk-to b { color: #12374d; font-size: 14.5px; font-weight: 800; }
body.dark .pk-full-body .pk-to b { color: #E6F3FB; }
.pk-full-body .pk-to-av {
  width: 34px; height: 34px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #2f6fb0;
  background: linear-gradient(160deg, rgba(63,127,196,.18), rgba(63,127,196,.07));
}
.pk-full-body .pk-to-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-full-body .pk-to-act {
  margin-left: auto; flex: none;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(63,127,196,.10); color: #2f6fb0;
  font-size: 12px; font-weight: 800;
}

/* 金额卡聚焦反馈 */
.pk-full-body .pk-amt-wrap { transition: box-shadow .18s ease, background .18s ease; }
.pk-full-body .pk-amt-wrap:focus-within {
  box-shadow: 0 12px 30px rgba(24,68,102,.10), 0 0 0 3px rgba(108,182,231,.16) !important;
}

/* 快捷金额选中态 */
.pk-full-body .pk-quick button.on {
  background: linear-gradient(135deg, #6FBEF0, #3E8ECD) !important;
  color: #fff !important; border-color: transparent !important;
  box-shadow: 0 8px 18px rgba(62,142,205,.28) !important;
}

/* 个数步进器 */
.pk-row-cnt { padding: 8px 10px 8px 14px !important; }
.pk-stepper {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  background: rgba(63,127,196,.06); border-radius: 12px; padding: 3px;
}
.pk-stepper button {
  width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: #fff; color: #2f6fb0; font-size: 18px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 6px rgba(24,68,102,.08);
}
.pk-stepper button:active { background: #EAF5FE; transform: scale(.96); }
.pk-stepper input {
  width: 46px !important; text-align: center !important;
  border: 0 !important; background: transparent !important;
  font-size: 15px !important; font-weight: 800 !important; color: #12374d !important;
}
body.dark .pk-stepper { background: rgba(255,255,255,.06); }
body.dark .pk-stepper button { background: rgba(255,255,255,.1); color: #9FD3F5; box-shadow: none; }
body.dark .pk-stepper input { color: #E6F3FB !important; }

/* 留言输入聚焦 */
.pk-full-body #pkNote:focus {
  box-shadow: 0 6px 18px rgba(24,68,102,.05), 0 0 0 3px rgba(108,182,231,.16) !important;
}

/* 主按钮禁用态 */
.pk-full-foot .btn-primary:disabled,
.pk-full-foot .btn-ghost:disabled {
  opacity: .5; box-shadow: none !important; transform: none !important;
}
/* 底部渐隐更自然 */
.pk-full-foot { padding-top: 18px !important; }

/* ==================== 朋友圈 UI 优化 ==================== */
#moments { background: linear-gradient(180deg, #F0F7FD 0%, #E6F2FB 55%, #DEEDF9 100%) !important; }
body.dark #moments { background: linear-gradient(180deg, #091823 0%, #0B1F2C 55%, #0A1A27 100%) !important; }

/* 卡片 */
#moments .mo-item {
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 22px !important;
  margin: 0 12px 12px !important;
  padding: 16px 16px 13px !important;
  box-shadow: 0 12px 30px -18px rgba(20,60,90,.45), 0 1px 0 rgba(255,255,255,.9) inset !important;
  transition: transform .16s ease, box-shadow .16s ease;
}
#moments .mo-item:active { transform: scale(.996); }
body.dark #moments .mo-item { background: rgba(20,42,58,.94) !important; border-color: rgba(255,255,255,.06) !important; box-shadow: none !important; }

/* 头像 */
#moments .mo-av {
  width: 44px !important; height: 44px !important;
  border-radius: 15px !important;
  box-shadow: 0 6px 14px -6px rgba(70,130,180,.5), inset 0 0 0 1.5px rgba(255,255,255,.75) !important;
  font-size: 16px !important;
}
/* 名字 / 头衔 / 价格 */
#moments .mo-name { font-size: 15px !important; font-weight: 800 !important; color: #17374C !important; line-height: 1.3; }
body.dark #moments .mo-name { color: #E4F1FA !important; }
#moments .mo-title {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 2px 8px;
  border-radius: 999px; font-size: 10.5px !important; font-weight: 700 !important;
  color: #A9791F !important;
  background: linear-gradient(135deg, rgba(255,226,158,.9), rgba(255,205,102,.55)) !important;
}
#moments .mo-title svg { width: 11px; height: 11px; }
#moments .mo-price-flag {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 2px 9px;
  border-radius: 999px; font-size: 10.5px !important; font-weight: 800 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #6FBEF0, #3E8ECD) !important;
  box-shadow: 0 4px 10px -4px rgba(62,142,205,.6);
}
#moments .mo-price-flag.paid { background: linear-gradient(135deg, #8FD3B6, #4FAE86) !important; box-shadow: none; }

/* 正文 */
#moments .mo-text {
  font-size: 15px !important; line-height: 1.7 !important;
  color: #1E3D53 !important; margin-top: 8px !important;
  word-break: break-word;
}
body.dark #moments .mo-text { color: #CFE3F0 !important; }
#moments .mo-lock-hint { color: #7FA6C1 !important; font-size: 12.5px; }

/* 图片 / 视频网格 */
#moments .mo-grid { margin-top: 11px !important; gap: 4px !important; border-radius: 16px; overflow: hidden; }
#moments .mo-cell { border-radius: 8px !important; overflow: hidden; background: #E7F1F9; }
body.dark #moments .mo-cell { background: #10293A; }
#moments .mo-grid.g1 .mo-cell { border-radius: 16px !important; }

/* 底部：时间 + 操作 */
#moments .mo-meta {
  margin-top: 12px !important;
  display: flex; align-items: center; gap: 10px;
}
#moments .mo-meta > span:first-child {
  font-size: 11.5px !important; color: #9AB0C0 !important; font-weight: 600;
}
#moments .mo-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
#moments .mo-act {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(63,127,196,.07);
  font-size: 12px !important; font-weight: 700 !important; color: #4A7591 !important;
  transition: background .14s ease, color .14s ease, transform .12s ease;
}
#moments .mo-act svg { width: 13px; height: 13px; }
#moments .mo-act:active { transform: scale(.95); background: rgba(63,127,196,.16); }
#moments .mo-act.on { color: #E2557A !important; background: rgba(226,85,122,.10); }
#moments .mo-act.on svg { fill: currentColor; }
#moments .mo-act.danger { color: #C05A5A !important; background: rgba(192,90,90,.08); }
body.dark #moments .mo-act { background: rgba(120,190,240,.12); color: #9CC3DC !important; }

/* 点赞区 */
#moments .mo-likes {
  margin-top: 10px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(74,159,216,.10), rgba(74,159,216,.04)) !important;
  font-size: 12.5px !important; color: #3E6580 !important;
  display: flex; align-items: flex-start; gap: 6px;
}
body.dark #moments .mo-likes { background: rgba(120,190,240,.10) !important; color: #A8C8DD !important; }
#moments .mo-heart { color: #E2557A; display: inline-flex; }
#moments .mo-heart svg { width: 13px; height: 13px; fill: currentColor; }

/* 评论区 */
#moments .mo-comments {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(246,251,255,.96) !important;
}
body.dark #moments .mo-comments { background: rgba(10,28,40,.6) !important; }
#moments .mo-cmt { font-size: 12.5px !important; line-height: 1.75; color: #33556C !important; }
body.dark #moments .mo-cmt { color: #B9D2E3 !important; }
#moments .mo-cmt b { color: #1F6FA8 !important; font-weight: 800; }
body.dark #moments .mo-cmt b { color: #7EC0EA !important; }
#moments .mo-cmt + .mo-cmt { margin-top: 2px; }

/* 顶部返回 / 发动态按钮更圆润 */
#moments > .topbar .ic {
  width: 34px; height: 34px; border-radius: 12px;
  background: rgba(63,127,196,.10); color: #2f6fb0;
  display: flex; align-items: center; justify-content: center;
}
body.dark #moments > .topbar .ic { background: rgba(120,190,240,.14); color: #8FC8EA; }

/* 朋友圈评论：默认一条，更多折叠 */
#moments .mo-comments .mo-cmt:nth-child(n+2) { display: none; }
#moments .mo-comments.open .mo-cmt { display: block; }
#moments .mo-cmt-more {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 7px; padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63,127,196,.08);
  color: #3E7FAE; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
#moments .mo-cmt-more::after {
  content: ''; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
#moments .mo-comments.open .mo-cmt-more::after { transform: rotate(-135deg) translateY(-1px); }
#moments .mo-cmt-more:active { background: rgba(63,127,196,.16); }
body.dark #moments .mo-cmt-more { background: rgba(120,190,240,.14); color: #8FC8EA; }

/* 朋友圈：细线分割（只去卡片，保留其他样式） */
#moments { background: #fff !important; }
body.dark #moments { background: #0E202C !important; }
body.bg-custom #moments { background: transparent !important; }
#moments .mo-item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 16px 14px !important;
  box-shadow: none !important;
  transition: none !important;
}
#moments .mo-item:active { transform: none !important; }
#moments .mo-item + .mo-item { border-top: 1px solid rgba(20, 50, 70, .08) !important; }
body.dark #moments .mo-item + .mo-item { border-top-color: rgba(255,255,255,.08) !important; }
#moments #moList > .mo-item:first-child { padding-top: 10px !important; }

/* 朋友圈：分割线版精修 */
#moments #moList { padding-top: 2px; }
#moments .mo-item { padding: 18px 15px 16px !important; }
#moments .mo-item + .mo-item { border-top: 1px solid rgba(20, 50, 70, .06) !important; }
body.dark #moments .mo-item + .mo-item { border-top-color: rgba(255,255,255,.07) !important; }
#moments .mo-av {
  width: 44px !important; height: 44px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05) !important;
}
#moments .mo-name { font-size: 15.5px !important; letter-spacing: .1px; }
#moments .mo-text { font-size: 15px !important; line-height: 1.68 !important; color: #1B3A4D !important; }
#moments .mo-title,
#moments .mo-price-flag {
  font-size: 10px !important;
  padding: 2px 8px !important;
  margin-left: 5px !important;
  vertical-align: 1px;
}
#moments .mo-grid { gap: 4px !important; border-radius: 10px !important; margin-top: 10px !important; }
#moments .mo-cell { border-radius: 8px !important; }
#moments .mo-meta { margin-top: 14px !important; }
#moments .mo-meta > span:first-child { font-size: 11.5px !important; color: #9AA7B2 !important; }
#moments .mo-act {
  padding: 5px 10px !important;
  background: rgba(0,0,0,.035) !important;
  color: #6A7B88 !important;
  font-weight: 600 !important;
}
#moments .mo-act.on { background: rgba(226,85,122,.09) !important; color: #E2557A !important; }
#moments .mo-act.danger { background: rgba(192,90,90,.07) !important; color: #C05A5A !important; }
#moments .mo-likes,
#moments .mo-comments {
  background: rgba(0,0,0,.035) !important;
  border-radius: 8px !important;
  margin-top: 10px !important;
}
body.dark #moments .mo-likes,
body.dark #moments .mo-comments { background: rgba(255,255,255,.06) !important; }
#moments .mo-likes { font-size: 12.5px !important; color: #4A6070 !important; }
#moments .mo-cmt { font-size: 13px !important; line-height: 1.7; color: #3E5566 !important; }
#moments .mo-cmt b { color: #3E7FAE !important; }
#moments .mo-cmt-more { margin-top: 8px !important; }

/* 朋友圈头像 & 长按 */
#moments .mo-av { position: relative; overflow: hidden; }
#moments .mo-av-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; border-radius: inherit;
}
#moments .mo-av .mo-av-letter {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 0;
}
#moments .mo-av.has-img .mo-av-letter { display: none; }

/* 长按图片 / 头像：不出白色高亮，也不弹“保存图片”那种系统菜单 */
#moments img,
#moments .mo-cell,
#moments .mo-cover,
#moments .mo-av,
#moments .mo-av-img,
#moments .mo-blur-cell {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
#moments img::selection,
#moments .mo-av::selection { background: transparent !important; }

/* 朋友圈：整页禁选（长按不再有白色高亮） */
#moments,
#moments *,
#moments *::before,
#moments *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-drag: none !important;
}
#moments ::selection,
#moments *::selection { background: transparent !important; color: inherit !important; }
#moments img { -webkit-user-drag: none !important; user-drag: none !important; }

/* 朋友圈九宫格：图片用背景层（长按不弹系统菜单） */
#moments .mo-bg {
  display: block; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* 单图：让背景层撑出比例（按 4:3 兜底，图片本身 cover 裁切） */
#moments .mo-grid.g1 .mo-bg { aspect-ratio: 4 / 3; }

/* 朋友圈头像：去掉白色覆盖 */
#moments .mo-av {
  box-shadow: none !important;
  background: rgba(74,159,216,.10) !important;
}
#moments .mo-av .mo-av-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  display: block;
}
/* 有背景层就不要字母了 */
#moments .mo-av .mo-av-bg + .mo-av-letter { display: none !important; }
#moments .mo-av .mo-av-letter { color: #3E7FAE !important; }

/* 点击 / 长按：不要任何白色高亮、不要焦点框 */
#moments *:focus,
#moments *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
#moments .mo-item:active,
#moments .mo-item:focus,
#moments .mo-item:focus-within,
#moments .mo-av:active,
#moments .mo-act:active {
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  transform: none !important;
}
#moments .mo-item::-moz-selection,
#moments .mo-item::selection { background: transparent !important; }

/* 点赞：等 N 人点赞 */
#moments .mo-likes-more {
  margin-left: 4px;
  color: #8A9AA8;
  font-size: 12px;
}

/* 朋友圈头像：精修 */
#moments .mo-av {
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  flex: none;
  align-self: flex-start;
  overflow: hidden;
  background: linear-gradient(160deg, #EAF4FC, #DCEBF8) !important;
  /* 描边和投影都画在元素外面，不会盖住头像本身 */
  box-shadow: 0 0 0 1px rgba(16, 52, 74, .07), 0 2px 8px -2px rgba(16, 52, 74, .12) !important;
  transition: transform .12s ease, box-shadow .12s ease;
}
body.dark #moments .mo-av {
  background: linear-gradient(160deg, #17415C, #123246) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) !important;
}
#moments .mo-av:active {
  transform: scale(.96);
  box-shadow: 0 0 0 1px rgba(16, 52, 74, .10), 0 1px 4px -1px rgba(16, 52, 74, .10) !important;
}
#moments .mo-av .mo-av-letter {
  font-size: 17px !important;
  font-weight: 800;
  color: #4A86B8 !important;
}
body.dark #moments .mo-av .mo-av-letter { color: #9FD3F5 !important; }
/* 名字第一行跟头像顶对齐一点，视觉更稳 */
#moments .mo-name { padding-top: 1px; }

/* 朋友圈评论：小头像 */
#moments .mo-cmt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
#moments .mo-cmt + .mo-cmt { margin-top: 9px !important; }
#moments .mo-cmt-av {
  width: 26px; height: 26px; flex: none;
  margin-top: 1px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(74,159,216,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; font-style: normal;
  color: #4A86B8;
  -webkit-touch-callout: none; user-select: none;
}
#moments .mo-cmt-body { flex: 1; min-width: 0; line-height: 1.7; }
body.dark #moments .mo-cmt-av { background-color: rgba(120,190,240,.18); color: #9FD3F5; }

/* 评论头像：横排修正 */
#moments .mo-comments .mo-cmt {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  gap: 8px !important;
}
#moments .mo-comments .mo-cmt + .mo-cmt {
  margin-top: 10px !important;
  border-top: 0 !important;
  padding-top: 0 !important;
}
#moments .mo-comments .mo-cmt .mo-cmt-av {
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  margin: 1px 0 0 0 !important;
}
#moments .mo-comments .mo-cmt .mo-cmt-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
}

/* 朋友圈点赞：带头像 */
#moments .mo-likes { flex-wrap: wrap; row-gap: 6px; }
#moments .mo-like-user {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 10px;
  font-size: 12.5px; color: #3E5D72;
}
#moments .mo-like-av {
  width: 22px; height: 22px; flex: none;
  border-radius: 6px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: rgba(74,159,216,.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 800; color: #4A86B8;
  -webkit-touch-callout: none; user-select: none;
}
body.dark #moments .mo-like-user { color: #A8C8DD; }
body.dark #moments .mo-like-av { background-color: rgba(120,190,240,.18); color: #9FD3F5; }

/* 名字行：和付费标签严格对齐 */
#moments .mo-name {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  line-height: 1.3 !important;
}
#moments .mo-name .mo-title,
#moments .mo-name .mo-price-flag {
  transform: none !important;
  vertical-align: baseline !important;
  margin-left: 0 !important;
  line-height: 1 !important;
  flex: none !important;
}

/* 朋友圈头像：白环版 */
#moments .mo-av {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(16,52,74,.06), 0 3px 8px -2px rgba(16,52,74,.12) !important;
}
body.dark #moments .mo-av {
  box-shadow: 0 0 0 2px rgba(16,38,54,.95), 0 0 0 3px rgba(255,255,255,.06) !important;
}
#moments .mo-item { column-gap: 11px; }

/* 朋友圈头像：白环画在外部（伪元素，绝不压到头像） */
#moments .mo-av {
  overflow: visible !important;
  box-shadow: 0 3px 8px -3px rgba(16, 52, 74, .16) !important;
}
#moments .mo-av .mo-av-bg {
  border-radius: 11px !important;
  overflow: hidden;
}
#moments .mo-av::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 2;
}
body.dark #moments .mo-av::after { border-color: rgba(22, 46, 64, .95); }

/* ==================== 发红包 / 转账：精修 v3 ==================== */
/* 整页：淡渐变 + 顶部柔光 */
.pk-full {
  background:
    radial-gradient(120% 60% at 50% -10%, #F2FAFF 0%, #EDF6FD 38%, #E4F0FA 100%) !important;
}
body.dark .pk-full {
  background: radial-gradient(120% 60% at 50% -10%, #0F2A3A 0%, #0B1E2B 45%, #08161F 100%) !important;
}
.pk-full-body { padding: 20px 18px calc(22px + env(safe-area-inset-bottom)) !important; }

/* 顶部栏：更细腻的分隔 */
.pk-full-top {
  background: rgba(255,255,255,.9) !important;
  border-bottom: 1px solid rgba(120,160,190,.10) !important;
  box-shadow: 0 8px 20px -18px rgba(16,52,78,.5) !important;
}
body.dark .pk-full-top { background: rgba(12,30,42,.92) !important; border-bottom-color: rgba(255,255,255,.06) !important; }

/* 余额胶囊 */
.pk-full-body .pk-balance { margin-bottom: 12px !important; }
.pk-full-body .pk-balance b {
  padding: 4px 11px !important;
  background: rgba(63,127,196,.09) !important;
  font-size: 12.5px !important;
}

/* 金额卡：更大圆角、更软的阴影、聚焦更亮 */
.pk-full-body .pk-amt-wrap {
  border-radius: 24px !important;
  padding: 24px 20px 22px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 14px 34px -18px rgba(24,68,102,.30), 0 1px 0 rgba(255,255,255,.9) inset !important;
}
body.dark .pk-full-body .pk-amt-wrap {
  background: rgba(255,255,255,.055) !important;
  box-shadow: none !important;
}
.pk-full-body .pk-amt-wrap:focus-within {
  box-shadow: 0 16px 38px -18px rgba(24,68,102,.36), 0 0 0 3px rgba(108,182,231,.18) !important;
}
.pk-full-body .pk-amt-wrap .pk-yen {
  font-size: 26px !important;
  margin-right: 2px;
  color: #2E7CB8 !important;
}
.pk-full-body .pk-amt-wrap input {
  font-size: 46px !important;
  height: 60px !important;
  line-height: 60px !important;
  font-weight: 800 !important;
  letter-spacing: -.5px !important;
}
.pk-full-body .pk-amt-wrap input::placeholder { font-size: 36px !important; }

/* 快捷金额：白胶囊 + 淡描边 */
.pk-full-body .pk-quick { gap: 8px !important; margin-bottom: 16px !important; }
.pk-full-body .pk-quick button {
  height: 46px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(120,165,195,.18) !important;
  background: #fff !important;
  font-size: 15px !important;
  color: #2E7CB8 !important;
  box-shadow: 0 3px 10px -4px rgba(24,68,102,.18) !important;
}
.pk-full-body .pk-quick button.on {
  background: linear-gradient(135deg, #78C4F2, #418FCE) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -6px rgba(62,142,205,.55) !important;
}

/* 行卡片（个数 / 转账对象 / 留言） */
.pk-full-body .pk-row,
.pk-full-body .pk-to,
.pk-full-body .pk-to-dm,
.pk-full-body #pkNote {
  border-radius: 18px !important;
  box-shadow: 0 6px 18px -10px rgba(24,68,102,.22) !important;
}
.pk-full-body .pk-row { padding: 10px 12px 10px 15px !important; margin-bottom: 10px !important; }
.pk-full-body .pk-row .pk-label { font-size: 13.5px !important; color: #6E879A !important; }

/* 步进器更紧凑 */
.pk-stepper { padding: 2px !important; gap: 2px !important; border-radius: 12px !important; }
.pk-stepper button { width: 32px !important; height: 32px !important; border-radius: 10px !important; font-size: 17px !important; }
.pk-stepper input { width: 42px !important; font-size: 15.5px !important; }

/* 转账对象：圆形头像 + 名字 */
.pk-full-body .pk-to-av {
  width: 38px !important; height: 38px !important;
  border-radius: 50% !important;
  font-size: 15px !important;
}
.pk-full-body .pk-to b { font-size: 15px !important; }
.pk-full-body .pk-to-act { padding: 6px 13px !important; }

/* 留言输入 */
.pk-full-body #pkNote { height: 52px !important; font-size: 14.5px !important; }

/* 底部按钮 */
.pk-full-foot { gap: 12px !important; padding: 16px 0 calc(10px + env(safe-area-inset-bottom)) !important; }
.pk-full-foot .btn-ghost,
.pk-full-foot .btn-primary {
  height: 52px !important;
  border-radius: 18px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
}
.pk-full-foot .btn-ghost {
  background: #fff !important;
  border: 1px solid rgba(120,165,195,.22) !important;
  color: #4C7591 !important;
  box-shadow: 0 4px 12px -8px rgba(24,68,102,.3) !important;
}
.pk-full-foot .btn-primary {
  background: linear-gradient(135deg, #78C4F2, #3E8ECD) !important;
  box-shadow: 0 12px 26px -10px rgba(62,142,205,.65) !important;
}

/* 金额输入：卡中卡修掉 */
#pkFull #pkAmt,
#pkAmt {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 46px !important;
  font-weight: 800 !important;
  line-height: 60px !important;
  height: 60px !important;
  letter-spacing: -.5px !important;
  color: #12374d !important;
}
body.dark #pkAmt { color: #E9F5FC !important; }
#pkAmt::placeholder {
  font-size: 36px !important;
  font-weight: 600 !important;
  color: rgba(147,168,184,.45) !important;
}

/* 转账页：对象左对齐 */
#pkFull .pk-to,
#pkFull .pk-to-dm {
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 10px !important;
}
#pkFull .pk-to-txt {
  text-align: left !important;
  flex: 0 1 auto !important;
  margin-right: auto;
}
#pkFull .pk-to-act { margin-left: auto !important; }
#pkFull .pk-to b { font-weight: 800 !important; }

/* 余额行：不要底色块 */
#pkFull .pk-balance {
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
  text-align: right !important;
  margin: 0 2px 12px !important;
  padding: 0 !important;
}

/* 外观设置：全屏版 */
#appearancePage {
  background: #F4F9FE !important;
}
body.dark #appearancePage { background: #0B1B26 !important; }
#appearancePage > .topbar {
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid rgba(120,160,190,.10) !important;
  box-shadow: 0 8px 22px -20px rgba(16,52,78,.55) !important;
}
body.dark #appearancePage > .topbar {
  background: rgba(12,30,42,.94) !important;
  border-bottom-color: rgba(255,255,255,.06) !important;
}
#appearancePage > .topbar .back {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: rgba(63,127,196,.10);
  color: #2f6fb0;
  display: flex; align-items: center; justify-content: center;
}
#appearancePage > .topbar .back:active { background: rgba(63,127,196,.2); }
body.dark #appearancePage > .topbar .back { background: rgba(120,190,240,.14); color: #8FC8EA; }
#appearancePage > .topbar .back svg { width: 19px; height: 19px; }
/* 内容区留白 + 底部安全区 */
#apBody {
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom)) !important;
  background: transparent !important;
}
/* 底部「好了」粘在底部，滚到哪都看得见 */
#apBody .ap-foot {
  position: sticky;
  bottom: 0;
  margin: 14px -16px -20px !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, rgba(244,249,254,0), rgba(244,249,254,.96) 26%, #F4F9FE 60%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex !important;
  gap: 0;
}
body.dark #apBody .ap-foot {
  background: linear-gradient(180deg, rgba(11,27,38,0), rgba(11,27,38,.96) 26%, #0B1B26 60%);
}
#apBody .ap-foot .btn-primary {
  flex: 1 !important;
  height: 50px !important;
  border-radius: 16px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #78C4F2, #3E8ECD) !important;
  box-shadow: 0 12px 26px -12px rgba(62,142,205,.6) !important;
  margin: 0 !important;
}

/* 外观：底部按钮不挡内容 */
#apBody {
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
}
#apBody .ap-foot {
  margin: 14px -16px 0 !important;
}

/* ==================== 发红包 / 转账：微信式布局 ==================== */
#pkFull,
#pkFull .pk-full {
  background: #EDEDED !important;
}
body.dark #pkFull,
body.dark #pkFull .pk-full { background: #0B1B26 !important; }

/* 顶部：白条 + 居中标题 */
#pkFull .pk-full-top {
  background: #F7F7F7 !important;
  border-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) !important;
}
body.dark #pkFull .pk-full-top { background: #12232F !important; }
#pkFull .pk-full-top b { font-size: 17px !important; font-weight: 700 !important; color: #111 !important; }
body.dark #pkFull .pk-full-top b { color: #EAF3FA !important; }
#pkFull .pk-full-back {
  background: transparent !important;
  color: #111 !important;
  width: 40px !important;
  border-radius: 0 !important;
}
body.dark #pkFull .pk-full-back { color: #EAF3FA !important; }

/* 内容区：不要内边距，靠白块自己撑 */
#pkFull .pk-full-body { padding: 0 !important; }

/* 余额：并在金额块上方一行小字 */
#pkFull .pk-balance {
  background: #EDEDED !important;
  text-align: right !important;
  padding: 10px 20px 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  color: #888 !important;
}
body.dark #pkFull .pk-balance { background: #0B1B26 !important; color: #7E93A2 !important; }
#pkFull .pk-balance b {
  background: transparent !important;
  color: #576B95 !important;
  font-size: 12.5px !important;
  padding: 0 !important;
  margin-left: 6px !important;
}

/* 金额块：整宽白块，无圆角无阴影 */
#pkFull .pk-amt-wrap {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 22px 20px 20px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  border-bottom: 1px solid #EDEDED !important;
}
body.dark #pkFull .pk-amt-wrap { background: #12232F !important; border-bottom-color: rgba(255,255,255,.06) !important; }
#pkFull .pk-amt-wrap .pk-yen {
  font-size: 28px !important;
  color: #111 !important;
  font-weight: 600 !important;
}
body.dark #pkFull .pk-amt-wrap .pk-yen { color: #EAF3FA !important; }
#pkFull #pkAmt {
  font-size: 40px !important;
  height: 52px !important;
  line-height: 52px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #111 !important;
  border-bottom: 1px solid #111 !important;
  border-radius: 0 !important;
  padding: 0 2px !important;
  background: transparent !important;
}
body.dark #pkFull #pkAmt { color: #EAF3FA !important; border-bottom-color: #EAF3FA !important; }
#pkFull #pkAmt::placeholder { font-size: 34px !important; font-weight: 500 !important; color: #C9C9C9 !important; }

/* 快捷金额：白块底部一排 */
#pkFull .pk-quick {
  background: #fff !important;
  margin: 0 !important;
  padding: 0 16px 16px !important;
  gap: 8px !important;
  border-bottom: 8px solid #EDEDED !important;
}
body.dark #pkFull .pk-quick { background: #12232F !important; border-bottom-color: #0B1B26 !important; }
#pkFull .pk-quick button {
  height: 40px !important;
  border-radius: 8px !important;
  border: 1px solid #E2E2E2 !important;
  background: #F7F7F7 !important;
  color: #333 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#pkFull .pk-quick button.on {
  background: #E8F3FD !important;
  color: #2E7CB8 !important;
  border-color: #A9D3F0 !important;
}

/* 行块：白底整行 + 上下细线 */
#pkFull .pk-row,
#pkFull .pk-to,
#pkFull .pk-to-dm,
#pkFull #pkNote {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #EDEDED !important;
  padding: 16px 20px !important;
  min-height: 56px;
}
body.dark #pkFull .pk-row,
body.dark #pkFull .pk-to,
body.dark #pkFull .pk-to-dm,
body.dark #pkFull #pkNote {
  background: #12232F !important;
  border-bottom-color: rgba(255,255,255,.06) !important;
}
#pkFull .pk-row .pk-label { font-size: 15px !important; color: #333 !important; font-weight: 500 !important; }
body.dark #pkFull .pk-row .pk-label { color: #D7E6F1 !important; }
#pkFull #pkNote {
  height: 56px !important;
  font-size: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#pkFull .pk-stepper {
  background: #F2F2F2 !important;
  border-radius: 8px !important;
}
#pkFull .pk-stepper button {
  background: #fff !important;
  color: #333 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.06) !important;
}
#pkFull .pk-stepper input { color: #111 !important; font-size: 15px !important; }

/* 转账对象行 */
#pkFull .pk-to-av { border-radius: 50% !important; width: 34px !important; height: 34px !important; background: #EEF4F8 !important; }
#pkFull .pk-to b { font-size: 15.5px !important; color: #111 !important; }
body.dark #pkFull .pk-to b { color: #EAF3FA !important; }
#pkFull .pk-to { font-size: 15px !important; color: #333 !important; justify-content: flex-start !important; }

/* 底部按钮：整宽、方角小圆角（微信那种） */
#pkFull .pk-full-foot {
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom)) !important;
  gap: 12px !important;
  background: #EDEDED !important;
  margin-top: auto !important;
}
body.dark #pkFull .pk-full-foot { background: #0B1B26 !important; }
#pkFull .pk-full-foot .btn-ghost,
#pkFull .pk-full-foot .btn-primary {
  height: 52px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
#pkFull .pk-full-foot .btn-ghost {
  background: #F2F2F2 !important;
  border: 0 !important;
  color: #444 !important;
  box-shadow: none !important;
  flex: 0 0 88px !important;
}
#pkFull .pk-full-foot .btn-primary {
  background: #1AAD19 !important;
  color: #fff !important;
  box-shadow: none !important;
  flex: 1 1 auto !important;
}
#pkFull .pk-full-foot .btn-primary:disabled { background: #9ED99D !important; }

/* ==================== 发红包 / 转账：精致版 ==================== */
#pkFull .pk-full {
  background: linear-gradient(180deg, #F6F9FC 0%, #EEF4F9 55%, #E9F0F6 100%) !important;
}
body.dark #pkFull .pk-full {
  background: linear-gradient(180deg, #0D1F2B 0%, #0B1A25 55%, #091620 100%) !important;
}

/* 顶部：白条 + 轻投影 */
#pkFull .pk-full-top {
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 1px 0 rgba(16,52,74,.05), 0 6px 18px -16px rgba(16,52,74,.5) !important;
}
body.dark #pkFull .pk-full-top { background: rgba(15,32,43,.95) !important; }
#pkFull .pk-full-top b { font-size: 17px !important; font-weight: 700 !important; letter-spacing: .3px; }

/* 内容块统一：左右留 12px、圆角、细描边 */
#pkFull .pk-full-body { padding: 12px 12px 0 !important; }
#pkFull .pk-balance {
  background: transparent !important;
  padding: 4px 6px 8px !important;
  text-align: right !important;
  margin: 0 !important;
  font-size: 12px !important;
  color: #7D93A6 !important;
}
#pkFull .pk-balance b { color: #3E7FAE !important; font-weight: 800 !important; }

#pkFull .pk-amt-wrap {
  background: #fff !important;
  border-radius: 16px 16px 0 0 !important;
  border: 1px solid rgba(16,52,74,.05) !important;
  border-bottom: 0 !important;
  box-shadow: 0 10px 26px -20px rgba(16,52,74,.45) !important;
  padding: 26px 22px 22px !important;
}
body.dark #pkFull .pk-amt-wrap { background: #12232F !important; border-color: rgba(255,255,255,.06) !important; }
#pkFull .pk-amt-wrap .pk-yen { font-size: 30px !important; color: #1F6FA8 !important; font-weight: 700 !important; }
body.dark #pkFull .pk-amt-wrap .pk-yen { color: #7EC0EA !important; }
#pkFull #pkAmt {
  font-size: 46px !important;
  height: 58px !important;
  line-height: 58px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid rgba(16,52,74,.14) !important;
  max-width: 78% !important;
  color: #12374d !important;
}
body.dark #pkFull #pkAmt { color: #EAF3FA !important; border-bottom-color: rgba(255,255,255,.16) !important; }
#pkFull #pkAmt:focus { border-bottom-color: #4FA3DC !important; }
#pkFull #pkAmt::placeholder { font-size: 36px !important; color: #C6D2DC !important; }

/* 快捷金额：跟在金额卡下沿 */
#pkFull .pk-quick {
  background: #fff !important;
  border-radius: 0 0 16px 16px !important;
  border: 1px solid rgba(16,52,74,.05) !important;
  border-top: 0 !important;
  box-shadow: 0 12px 26px -22px rgba(16,52,74,.5) !important;
  padding: 4px 16px 16px !important;
  margin: 0 0 12px !important;
  border-bottom: 1px solid rgba(16,52,74,.05) !important;
}
body.dark #pkFull .pk-quick { background: #12232F !important; border-color: rgba(255,255,255,.06) !important; }
#pkFull .pk-quick button {
  height: 42px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(16,52,74,.06) !important;
  background: #F3F7FA !important;
  color: #3B5A70 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}
#pkFull .pk-quick button.on {
  background: linear-gradient(135deg, #6FBEF0, #3E8ECD) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 16px -8px rgba(62,142,205,.6) !important;
}

/* 行块：各自成卡，间距代替细线 */
#pkFull .pk-row,
#pkFull .pk-to,
#pkFull .pk-to-dm,
#pkFull #pkNote {
  background: #fff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(16,52,74,.05) !important;
  box-shadow: 0 8px 22px -20px rgba(16,52,74,.45) !important;
  margin: 0 0 10px !important;
  padding: 14px 16px !important;
  min-height: 56px !important;
}
body.dark #pkFull .pk-row,
body.dark #pkFull .pk-to,
body.dark #pkFull .pk-to-dm,
body.dark #pkFull #pkNote {
  background: #12232F !important;
  border-color: rgba(255,255,255,.06) !important;
}
#pkFull .pk-row .pk-label { font-size: 15px !important; color: #43606F !important; font-weight: 600 !important; }
body.dark #pkFull .pk-row .pk-label { color: #C9DDEB !important; }
#pkFull .pk-stepper { background: #F3F7FA !important; border-radius: 10px !important; }
#pkFull .pk-stepper button {
  width: 32px !important; height: 32px !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #3E7FAE !important;
  box-shadow: 0 1px 3px rgba(16,52,74,.10) !important;
  font-size: 17px !important;
}
#pkFull .pk-stepper input { color: #12374d !important; font-size: 16px !important; font-weight: 800 !important; }
#pkFull #pkNote { border-radius: 14px !important; font-size: 15px !important; }

/* 转账对象 */
#pkFull .pk-to-av {
  width: 38px !important; height: 38px !important;
  border-radius: 50% !important;
  background: linear-gradient(160deg, #E8F3FC, #D8EBF9) !important;
  color: #3E7FAE !important;
  font-weight: 800 !important;
}
#pkFull .pk-to { font-size: 15px !important; color: #6A8394 !important; }
#pkFull .pk-to b { font-size: 15.5px !important; color: #12374d !important; font-weight: 800 !important; }
body.dark #pkFull .pk-to b { color: #EAF3FA !important; }

/* 转账快捷说明 chips */
#pkFull .pk-chips button {
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(62,142,205,.18) !important;
  background: rgba(255,255,255,.85) !important;
  color: #3E7FAE !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

/* 底部按钮：绿色渐变 + 阴影 */
#pkFull .pk-full-foot {
  background: transparent !important;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom)) !important;
  gap: 10px !important;
}
#pkFull .pk-full-foot .btn-ghost,
#pkFull .pk-full-foot .btn-primary {
  height: 54px !important;
  border-radius: 14px !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: .5px;
}
#pkFull .pk-full-foot .btn-ghost {
  flex: 0 0 92px !important;
  background: #fff !important;
  color: #5A7A8E !important;
  border: 1px solid rgba(16,52,74,.07) !important;
  box-shadow: 0 8px 20px -18px rgba(16,52,74,.5) !important;
}
#pkFull .pk-full-foot .btn-primary {
  background: linear-gradient(135deg, #34C759, #12A527) !important;
  box-shadow: 0 14px 28px -14px rgba(26,173,25,.65) !important;
}
#pkFull .pk-full-foot .btn-primary:active { transform: translateY(1px); }

/* 发红包：装饰细节 */
#pkFull .pk-full {
  position: relative;
}
/* 顶部一层很淡的蓝光，页面不再平 */
#pkFull .pk-full::before {
  content: '';
  position: absolute;
  left: -20%; right: -20%; top: -120px; height: 320px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(120,196,242,.20), rgba(120,196,242,0) 70%);
  pointer-events: none;
  z-index: 0;
}
#pkFull .pk-full-body { position: relative; z-index: 1; }

/* 金额卡：顶部一道细细的渐变光带 */
#pkFull .pk-amt-wrap {
  position: relative;
  overflow: hidden;
}
#pkFull .pk-amt-wrap::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(111,190,240,0), rgba(111,190,240,.85), rgba(111,190,240,0));
  opacity: .9;
}
#pkFull .pk-amt-wrap:focus-within::before {
  background: linear-gradient(90deg, rgba(111,190,240,0), #3E8ECD, rgba(111,190,240,0));
}

/* 底部按钮上方的小字 */
#pkFull .pk-foot-hint {
  text-align: center;
  font-size: 11.5px;
  color: #93A7B7;
  margin: 0 0 12px;
  letter-spacing: .2px;
}
body.dark #pkFull .pk-foot-hint { color: #6E8496; }

/* 关闭/返回按钮更轻 */
#pkFull .pk-full-back { color: #5E7A8C !important; }
body.dark #pkFull .pk-full-back { color: #9CB6C7 !important; }

/* 输入框聚焦时整卡轻微上浮的感觉 */
#pkFull .pk-amt-wrap { transition: box-shadow .2s ease, transform .2s ease; }
#pkFull .pk-amt-wrap:focus-within {
  box-shadow: 0 16px 34px -22px rgba(16,52,74,.5) !important;
  transform: translateY(-1px);
}

/* 朋友圈：展开评论修正 + 白环去掉 + 点赞头像排 */
/* 展开后的评论必须还是 flex（之前被 display:block 覆盖，头像和文字上下错位） */
#moments .mo-comments.open .mo-cmt {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}
/* 头像白环去掉 */
#moments .mo-av::after { display: none !important; content: none !important; }
#moments .mo-av { overflow: hidden !important; }

/* 点赞：只有头像，稍微重叠成一排 */
#moments .mo-likes {
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}
#moments .mo-like-user { margin: 0 0 0 -6px !important; }
#moments .mo-like-user:first-child { margin-left: 0 !important; }
#moments .mo-like-av {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 2px #fff;
}
body.dark #moments .mo-like-av { box-shadow: 0 0 0 2px #142634; }
#moments .mo-likes-more {
  margin-left: 8px !important;
  font-size: 11.5px !important;
}

/* 评论折叠：默认只露第一条（修 display:flex 覆盖） */
#moments .mo-comments:not(.open) .mo-cmt:nth-child(n+2) {
  display: none !important;
}
#moments .mo-comments.open .mo-cmt {
  display: flex !important;
}

/* 红包：个数输入 + 蓝色系回正 */
#pkFull .pk-row-cnt { display: flex !important; align-items: center !important; justify-content: space-between !important; }
#pkFull .pk-row-cnt #pkCnt {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #12374d !important;
}
body.dark #pkFull .pk-row-cnt #pkCnt { color: #E6F3FB !important; }
#pkFull .pk-row-cnt #pkCnt::placeholder { font-size: 14px !important; font-weight: 400 !important; color: #A9BCCB !important; }

/* 主按钮回到 App 的蓝色系，别跟主题打架 */
#pkFull .pk-full-foot .btn-primary {
  background: linear-gradient(135deg, #78C4F2, #3E8ECD) !important;
  box-shadow: 0 14px 28px -14px rgba(62,142,205,.62) !important;
  color: #fff !important;
}
#pkFull .pk-full-foot .btn-primary:disabled {
  background: linear-gradient(135deg, #C7E3F6, #A8CFE9) !important;
  box-shadow: none !important;
}
/* 顶部返回键也回到蓝色 */
#pkFull .pk-full-back { color: #2E7CB8 !important; }
body.dark #pkFull .pk-full-back { color: #9FD3F5 !important; }
/* 金额卡顶光带换成品牌蓝 */
#pkFull .pk-amt-wrap::before {
  background: linear-gradient(90deg, rgba(111,190,240,0), rgba(78,153,211,.9), rgba(111,190,240,0)) !important;
}

/* 专属红包：选中「指定一个人」时个数整行不显示 */
#pkFull:has(.pk-excl-opts[data-on="one"]) #pkCntRow { display: none !important; }
#pkFull #pkCntRow.hidden { display: none !important; }

/* 外观：底部按钮回内容流 */
#apBody { padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
#apBody .ap-foot {
  position: static !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#apBody .ap-foot .btn-primary {
  flex: 1 !important;
  height: 50px !important;
  border-radius: 16px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #78C4F2, #3E8ECD) !important;
  box-shadow: 0 12px 26px -14px rgba(62,142,205,.6) !important;
  margin: 0 !important;
}

/* ==================== 外观页：卡片化 v2 ==================== */
#appearancePage { background: #F5F8FB !important; }
body.dark #appearancePage { background: #0A1924 !important; }

/* 顶部栏：图标式返回，不再一块浅蓝压在标题旁边 */
#appearancePage > .topbar {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(16,52,74,.06) !important;
  box-shadow: none !important;
}
body.dark #appearancePage > .topbar { background: rgba(13,32,44,.96) !important; border-bottom-color: rgba(255,255,255,.06) !important; }
#appearancePage > .topbar .back {
  background: transparent !important;
  width: 40px !important;
  height: 40px !important;
  color: #2E7CB8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#appearancePage > .topbar .back:active { background: rgba(63,127,196,.08) !important; border-radius: 12px !important; }
body.dark #appearancePage > .topbar .back { color: #8FC8EA !important; }
#appearancePage > .topbar .back svg { width: 21px; height: 21px; }
#appearancePage > .topbar .title { font-size: 17px !important; font-weight: 800 !important; }

#apBody { padding: 14px 14px calc(22px + env(safe-area-inset-bottom)) !important; }

/* 每个区块 = 一张白卡 */
#apBody .ap-sec,
#apBody .enc-info,
#apBody .ap-switch-row {
  background: #fff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(16,52,74,.045) !important;
  box-shadow: 0 8px 22px -20px rgba(16,52,74,.5) !important;
  margin: 0 0 10px !important;
  padding: 16px !important;
}
body.dark #apBody .ap-sec,
body.dark #apBody .enc-info,
body.dark #apBody .ap-switch-row {
  background: #122430 !important;
  border-color: rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

/* 区块标题 */
#apBody .ap-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #8AA0B2 !important;
  letter-spacing: .6px;
  margin: 0 0 12px !important;
  text-transform: uppercase;
}
body.dark #apBody .ap-title { color: #6E8698 !important; }

/* 背景色卡：正方形小块 + 名字 */
#apBody .ap-bg-grid { gap: 10px !important; }
#apBody .ap-bg {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
#apBody .ap-bg-swatch {
  width: 100% !important;
  height: 64px !important;
  border-radius: 12px !important;
  border: 2px solid transparent !important;
  box-sizing: border-box !important;
  transition: border-color .15s ease, transform .12s ease;
}
#apBody .ap-bg.on .ap-bg-swatch {
  border-color: #3E8ECD !important;
  box-shadow: 0 6px 16px -10px rgba(62,142,205,.7);
}
#apBody .ap-bg:active .ap-bg-swatch { transform: scale(.97); }
#apBody .ap-bg-name { font-size: 12.5px !important; color: #4F6E83 !important; }
body.dark #apBody .ap-bg-name { color: #A9C3D5 !important; }
#apBody .ap-bg.on .ap-bg-name { color: #2E7CB8 !important; font-weight: 800; }

/* 两个小按钮 */
#apBody .ap-inline { gap: 10px !important; margin-top: 14px !important; }
#apBody .ap-chip {
  height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(62,142,205,.2) !important;
  background: rgba(232,244,253,.8) !important;
  color: #2E7CB8 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
#apBody .ap-chip.ghost {
  background: #F6F9FB !important;
  border-color: rgba(16,52,74,.08) !important;
  color: #6C8497 !important;
}

/* 字号：分段控件 */
#apBody .ap-fs-row {
  display: flex !important;
  gap: 6px !important;
  background: #F3F7FA !important;
  border-radius: 12px !important;
  padding: 4px !important;
}
body.dark #apBody .ap-fs-row { background: rgba(255,255,255,.06) !important; }
#apBody .ap-fs {
  flex: 1 1 0 !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #56727F !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
}
#apBody .ap-fs b { font-weight: 800; line-height: 1; }
#apBody .ap-fs span { font-size: 11px !important; opacity: .85; }
#apBody .ap-fs.on {
  background: #fff !important;
  color: #2E7CB8 !important;
  box-shadow: 0 3px 10px -6px rgba(16,52,74,.5);
}
body.dark #apBody .ap-fs.on { background: #1B3547 !important; color: #9FD3F5 !important; }

/* 预览 */
#apBody .ap-preview {
  margin-top: 12px !important;
  border-radius: 12px !important;
  border: 1px dashed rgba(62,142,205,.28) !important;
  background: rgba(246,251,255,.9) !important;
  padding: 14px !important;
  font-size: 14px;
  color: #3E5566;
}
body.dark #apBody .ap-preview { background: rgba(255,255,255,.045) !important; color: #C9DDEB; }

/* 加密说明：收短、变灰 */
#apBody .enc-info { padding: 14px 16px !important; }
#apBody .enc-line { font-size: 12.5px !important; line-height: 1.7 !important; color: #5E7788 !important; }
#apBody .enc-line b { color: #2E5C7E !important; font-size: 13px !important; }
#apBody .enc-line.dim { font-size: 11.5px !important; color: #93A7B7 !important; margin-top: 4px; }
body.dark #apBody .enc-line { color: #A8C3D6 !important; }

/* 开关行：左右对齐，行内不留白洞 */
#apBody .ap-switch-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  min-height: 64px;
}
#apBody .ap-sw-label { flex: 1 1 auto; min-width: 0; }
#apBody .ap-sw-label b { display: block; font-size: 14.5px !important; font-weight: 800 !important; color: #17374C !important; }
#apBody .ap-sw-label span { display: block; font-size: 11.5px !important; color: #93A7B7 !important; margin-top: 3px; line-height: 1.4; }
body.dark #apBody .ap-sw-label b { color: #E4F1FA !important; }
body.dark #apBody .ap-sw-label span { color: #7E96A8 !important; }
#apBody .ap-seg {
  flex: 0 0 auto;
  display: flex !important;
  background: #F1F5F9 !important;
  border-radius: 10px !important;
  padding: 3px !important;
  gap: 2px !important;
}
body.dark #apBody .ap-seg { background: rgba(255,255,255,.07) !important; }
#apBody .ap-seg button {
  border: 0 !important;
  background: transparent !important;
  min-width: 44px;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #6C8497 !important;
}
#apBody .ap-seg button.on {
  background: #fff !important;
  color: #2E7CB8 !important;
  box-shadow: 0 2px 8px -5px rgba(16,52,74,.6);
}
body.dark #apBody .ap-seg button.on { background: #1B3547 !important; color: #9FD3F5 !important; }

/* 底部按钮 */
#apBody .ap-foot { margin: 6px 0 0 !important; display: flex !important; }
#apBody .ap-foot .btn-primary {
  width: 100%;
  height: 52px !important;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #78C4F2, #3E8ECD) !important;
  box-shadow: 0 14px 28px -16px rgba(62,142,205,.7) !important;
}

/* 点赞头像：不再互相叠 */
#moments .mo-likes { gap: 6px !important; flex-wrap: wrap !important; }
#moments .mo-like-user {
  margin: 0 !important;
}
#moments .mo-like-av {
  width: 24px !important;
  height: 24px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.85) !important;
}
body.dark #moments .mo-like-av { box-shadow: 0 0 0 1px rgba(255,255,255,.10) !important; }

/* ==================== 红包/转账：Hero 版 ==================== */
#pkFull .pk-full {
  background: linear-gradient(180deg, #F3F9FE 0%, #E9F3FB 100%) !important;
}
body.dark #pkFull .pk-full { background: linear-gradient(180deg, #0C1F2B 0%, #091620 100%) !important; }
#pkFull .pk-full-body { padding: 14px 16px 0 !important; }

/* 余额：右上角小字 */
#pkFull .pk-balance {
  text-align: right !important;
  background: transparent !important;
  padding: 0 4px 10px !important;
  margin: 0 !important;
  font-size: 12px !important;
  color: #7D93A6 !important;
}
#pkFull .pk-balance b { color: #2E7CB8 !important; font-weight: 800 !important; font-size: 12.5px !important; }

/* 大金额卡 */
#pkFull .pk-hero {
  background: #fff !important;
  border-radius: 24px !important;
  padding: 8px 0 16px !important;
  box-shadow: 0 18px 40px -28px rgba(16,52,74,.55), 0 1px 0 rgba(255,255,255,.9) inset !important;
  margin-bottom: 12px !important;
  position: relative;
  overflow: hidden;
}
body.dark #pkFull .pk-hero { background: #12242F !important; box-shadow: none !important; }
#pkFull .pk-hero::before {
  content: '';
  position: absolute; left: 50%; top: -60px; width: 220px; height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(111,190,240,.22), rgba(111,190,240,0));
  pointer-events: none;
}
#pkFull .pk-amt-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 18px 20px 14px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 4px !important;
  position: relative;
  overflow: visible !important;
}
#pkFull .pk-amt-wrap::before { display: none !important; }
#pkFull .pk-amt-wrap .pk-yen {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1F6FA8 !important;
}
body.dark #pkFull .pk-amt-wrap .pk-yen { color: #7EC0EA !important; }
#pkFull #pkAmt {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 76% !important;
  text-align: center !important;
  font-size: 52px !important;
  font-weight: 800 !important;
  height: 68px !important;
  line-height: 68px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  letter-spacing: -.5px !important;
  color: #12374d !important;
}
body.dark #pkFull #pkAmt { color: #EAF3FA !important; }
#pkFull #pkAmt::placeholder { font-size: 40px !important; color: #C9D6E0 !important; font-weight: 700 !important; }

/* 快捷金额：卡内胶囊 */
#pkFull .pk-quick {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 6px 16px 2px !important;
  gap: 8px !important;
  border-bottom: 0 !important;
}
#pkFull .pk-quick button {
  height: 40px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(62,142,205,.16) !important;
  background: rgba(240,247,253,.9) !important;
  color: #3B6E92 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
#pkFull .pk-quick button.on {
  background: linear-gradient(135deg, #6FBEF0, #3E8ECD) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 16px -8px rgba(62,142,205,.7) !important;
}

/* 明细卡：个数 / 谁能领 / 备注 */
#pkFull .pk-row,
#pkFull .pk-excl,
#pkFull #pkNote {
  background: #fff !important;
  border: 1px solid rgba(16,52,74,.045) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px -24px rgba(16,52,74,.55) !important;
  margin: 0 0 10px !important;
  padding: 16px 16px !important;
  min-height: 58px !important;
}
body.dark #pkFull .pk-row,
body.dark #pkFull .pk-excl,
body.dark #pkFull #pkNote { background: #12242F !important; border-color: rgba(255,255,255,.06) !important; }
#pkFull .pk-row .pk-label,
#pkFull .pk-excl .pk-label { font-size: 15px !important; color: #3E5C6E !important; font-weight: 600 !important; }
#pkFull .pk-row-cnt #pkCnt {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #12374d !important;
  text-align: right !important;
}
#pkFull .pk-excl-opts {
  background: #F1F5F9 !important;
  border-radius: 11px !important;
  padding: 3px !important;
}
#pkFull .pk-exo {
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  color: #6C8497 !important;
}
#pkFull .pk-exo.on {
  background: #fff !important;
  color: #2E7CB8 !important;
  box-shadow: 0 2px 8px -5px rgba(16,52,74,.6) !important;
}
#pkFull #pkNote { height: 58px !important; font-size: 15px !important; }

/* 转账对象卡 */
#pkFull .pk-to,
#pkFull .pk-to-dm {
  background: #fff !important;
  border: 1px solid rgba(16,52,74,.045) !important;
  border-radius: 18px !important;
  margin: 0 0 12px !important;
  padding: 14px 16px !important;
  box-shadow: 0 10px 26px -24px rgba(16,52,74,.55) !important;
}
#pkFull .pk-to-av {
  width: 40px !important; height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(160deg, #E8F3FC, #D8EBF9) !important;
  color: #3E7FAE !important;
}
#pkFull .pk-to b { font-size: 15.5px !important; color: #12374d !important; font-weight: 800 !important; }
body.dark #pkFull .pk-to b { color: #EAF3FA !important; }

/* 底部 */
#pkFull .pk-full-foot { padding: 16px 0 calc(16px + env(safe-area-inset-bottom)) !important; gap: 10px !important; }
#pkFull .pk-full-foot .btn-ghost,
#pkFull .pk-full-foot .btn-primary {
  height: 54px !important;
  border-radius: 16px !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
}
#pkFull .pk-full-foot .btn-ghost {
  flex: 0 0 92px !important;
  background: rgba(255,255,255,.9) !important;
  border: 1px solid rgba(16,52,74,.07) !important;
  color: #5A7A8E !important;
  box-shadow: none !important;
}
#pkFull .pk-full-foot .btn-primary {
  background: linear-gradient(135deg, #78C4F2, #3E8ECD) !important;
  box-shadow: 0 16px 30px -16px rgba(62,142,205,.75) !important;
}

/* Hero：金额左贴 */
#pkFull .pk-amt-wrap {
  justify-content: flex-start !important;
  padding: 20px 24px 16px !important;
  gap: 2px !important;
}
#pkFull #pkAmt {
  text-align: left !important;
  font-size: 48px !important;
  height: 64px !important;
  line-height: 64px !important;
  max-width: 72% !important;
  width: auto !important;
}
#pkFull #pkAmt::placeholder { font-size: 38px !important; }
#pkFull .pk-quick button {
  border-radius: 12px !important;
  height: 42px !important;
}

/* 红包 Hero：细腻版 */
#pkFull .pk-hero {
  padding: 4px 0 14px !important;
  box-shadow: 0 18px 44px -30px rgba(16,52,74,.6), inset 0 1px 0 rgba(255,255,255,.95) !important;
}
#pkFull .pk-hero::after {
  content: "金额";
  position: absolute;
  left: 24px;
  top: 16px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #A6B9C8;
  font-weight: 700;
}
#pkFull .pk-amt-wrap { padding: 32px 24px 12px !important; }
#pkFull .pk-quick {
  border-top: 1px dashed rgba(62,142,205,.16) !important;
  margin: 6px 12px 0 !important;
  padding: 14px 4px 0 !important;
}
#pkFull .pk-quick button {
  height: 40px !important;
  border-radius: 11px !important;
  font-size: 13.5px !important;
}
#pkFull .pk-row,
#pkFull .pk-excl,
#pkFull #pkNote,
#pkFull .pk-to {
  box-shadow: 0 12px 28px -26px rgba(16,52,74,.6), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
#pkFull .pk-foot-hint {
  margin-top: 4px !important;
  font-size: 11px !important;
  color: #9DB0BF !important;
}
#pkFull .pk-full-foot .btn-primary {
  box-shadow: 0 18px 32px -18px rgba(62,142,205,.8), inset 0 1px 0 rgba(255,255,255,.35) !important;
}

/* Hero：标签归位 + 快捷金额贴合 */
#pkFull .pk-hero { position: relative !important; text-align: left !important; }
#pkFull .pk-hero::after {
  content: "金额" !important;
  position: absolute !important;
  left: 24px !important;
  top: 14px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  color: #A6B9C8 !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: left !important;
}
#pkFull .pk-quick {
  margin: 6px 14px 0 !important;
  padding: 14px 0 0 !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}
#pkFull .pk-quick button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 40px !important;
  font-size: 13px !important;
  padding: 0 !important;
}

/* 快捷金额：网格，绝不溢出 */
#pkFull .pk-quick {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#pkFull .pk-quick button {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 2px !important;
  font-size: 13px !important;
}

/* 红包卡片装饰层不吃点击 */
#pkFull .pk-hero::before,
#pkFull .pk-hero::after {
  pointer-events: none !important;
}
#pkFull .pk-amt-wrap,
#pkFull .pk-amt-wrap * {
  pointer-events: auto;
}
#pkFull #pkAmt {
  position: relative;
  z-index: 3;
  cursor: text;
}
/* 输入区更宽松一点，点哪儿都能聚焦 */
#pkFull .pk-amt-wrap { cursor: text; }

/* ==================== 头像框 20 款 ==================== */
.av[data-avframe],
.mo-av[data-avframe],
.me-avatar[data-avframe] {
  position: relative;
}
.av[data-avframe]::after,
.mo-av[data-avframe]::after,
.me-avatar[data-avframe]::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}
/* 单色环 */
.av[data-avframe="gold"]::after, .mo-av[data-avframe="gold"]::after, .me-avatar[data-avframe="gold"]::after,
.ap-af-av[data-f="gold"]::after { border: 2px solid #E7C15B; box-shadow: 0 0 10px rgba(231,193,91,.55); }
.av[data-avframe="gold2"]::after, .mo-av[data-avframe="gold2"]::after, .me-avatar[data-avframe="gold2"]::after,
.ap-af-av[data-f="gold2"]::after { border: 3px double #D2A73F; }
.av[data-avframe="silver"]::after, .mo-av[data-avframe="silver"]::after, .me-avatar[data-avframe="silver"]::after,
.ap-af-av[data-f="silver"]::after { border: 2px solid #C9D3DC; box-shadow: 0 0 8px rgba(201,211,220,.6); }
.av[data-avframe="blue"]::after, .mo-av[data-avframe="blue"]::after, .me-avatar[data-avframe="blue"]::after,
.ap-af-av[data-f="blue"]::after { border: 2px solid #6FB6E8; }
.av[data-avframe="pink"]::after, .mo-av[data-avframe="pink"]::after, .me-avatar[data-avframe="pink"]::after,
.ap-af-av[data-f="pink"]::after { border: 2px solid #F2A7C3; }
.av[data-avframe="green"]::after, .mo-av[data-avframe="green"]::after, .me-avatar[data-avframe="green"]::after,
.ap-af-av[data-f="green"]::after { border: 2px solid #7BCB96; }
.av[data-avframe="purple"]::after, .mo-av[data-avframe="purple"]::after, .me-avatar[data-avframe="purple"]::after,
.ap-af-av[data-f="purple"]::after { border: 2px solid #A98BE0; }
/* 渐变环（用遮罩抠出环形） */
.av[data-avframe="rainbow"]::after, .mo-av[data-avframe="rainbow"]::after, .me-avatar[data-avframe="rainbow"]::after,
.ap-af-av[data-f="rainbow"]::after { background: conic-gradient(#FF6B6B,#FFD86B,#7BD88B,#6BC8FF,#A98BE0,#FF6B6B); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.av[data-avframe="sunset"]::after, .mo-av[data-avframe="sunset"]::after, .me-avatar[data-avframe="sunset"]::after,
.ap-af-av[data-f="sunset"]::after { background: linear-gradient(135deg,#FF9A6B,#FF6B95); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.av[data-avframe="ocean"]::after, .mo-av[data-avframe="ocean"]::after, .me-avatar[data-avframe="ocean"]::after,
.ap-af-av[data-f="ocean"]::after { background: linear-gradient(135deg,#5EC8E8,#3E8ECD); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
/* 发光 / 线型 */
.av[data-avframe="neon"]::after, .mo-av[data-avframe="neon"]::after, .me-avatar[data-avframe="neon"]::after,
.ap-af-av[data-f="neon"]::after { border: 2px solid #39E6F0; box-shadow: 0 0 6px #39E6F0, inset 0 0 6px rgba(57,230,240,.6); }
.av[data-avframe="glow"]::after, .mo-av[data-avframe="glow"]::after, .me-avatar[data-avframe="glow"]::after,
.ap-af-av[data-f="glow"]::after { border: 2px solid rgba(255,255,255,.92); box-shadow: 0 0 12px rgba(255,255,255,.85); }
.av[data-avframe="dash"]::after, .mo-av[data-avframe="dash"]::after, .me-avatar[data-avframe="dash"]::after,
.ap-af-av[data-f="dash"]::after { border: 2px dashed #9FB6C9; }
.av[data-avframe="dot"]::after, .mo-av[data-avframe="dot"]::after, .me-avatar[data-avframe="dot"]::after,
.ap-af-av[data-f="dot"]::after { border: 3px dotted #C7A86B; }
.av[data-avframe="double"]::after, .mo-av[data-avframe="double"]::after, .me-avatar[data-avframe="double"]::after,
.ap-af-av[data-f="double"]::after { border: 2px solid #fff; outline: 2px solid #6FB6E8; outline-offset: 2px; }
/* 角标款 */
.av[data-avframe="star"]::after, .mo-av[data-avframe="star"]::after, .me-avatar[data-avframe="star"]::after,
.ap-af-av[data-f="star"]::after { content: '★'; color: #F5C451; font-size: 13px; line-height: 1; text-align: right; padding: 0 1px 2px 0; display: flex; align-items: flex-end; justify-content: flex-end; inset: -4px -4px auto auto; width: 16px; height: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.av[data-avframe="heart"]::after, .mo-av[data-avframe="heart"]::after, .me-avatar[data-avframe="heart"]::after,
.ap-af-av[data-f="heart"]::after { content: '♥'; color: #F0729B; font-size: 12px; line-height: 1; display: flex; align-items: flex-end; justify-content: flex-start; inset: auto auto -4px -4px; width: 15px; height: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.av[data-avframe="crown"]::after, .mo-av[data-avframe="crown"]::after, .me-avatar[data-avframe="crown"]::after,
.ap-af-av[data-f="crown"]::after { content: '👑'; font-size: 12px; line-height: 1; display: flex; align-items: flex-start; justify-content: center; inset: -10px 0 auto 0; height: 14px; }
.av[data-avframe="snow"]::after, .mo-av[data-avframe="snow"]::after, .me-avatar[data-avframe="snow"]::after,
.ap-af-av[data-f="snow"]::after { content: '❄'; color: #BFE3F7; font-size: 12px; line-height: 1; display: flex; align-items: flex-start; justify-content: flex-end; inset: -5px -5px auto auto; width: 15px; height: 15px; }

/* 外观页里的选择网格 */
#apBody .ap-avframe-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px 8px !important;
}
#apBody .ap-af {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
}
#apBody .ap-af-av {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, #E8F3FC, #D3E7F6);
  box-shadow: inset 0 0 0 1px rgba(16,52,74,.06);
  display: block;
}
#apBody .ap-af-av::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}
#apBody .ap-af span { font-size: 10.5px; color: #7B93A6; }
#apBody .ap-af.on .ap-af-av { box-shadow: inset 0 0 0 1px rgba(62,142,205,.3), 0 0 0 2px rgba(62,142,205,.35); }
#apBody .ap-af.on span { color: #2E7CB8; font-weight: 800; }
body.dark #apBody .ap-af-av { background: linear-gradient(160deg,#1B3547,#14293A); }
body.dark #apBody .ap-af span { color: #8AA3B5; }

/* 头像框：角标款重做（::before 定位，稳） */
.av[data-avframe]::before,
.mo-av[data-avframe]::before,
.me-avatar[data-avframe]::before,
#apBody .ap-af-av::before {
  content: '';
  position: absolute;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.av[data-avframe="star"]::before,
.mo-av[data-avframe="star"]::before,
.me-avatar[data-avframe="star"]::before,
#apBody .ap-af-av[data-f="star"]::before {
  content: '★';
  top: -6px; right: -5px;
  width: 15px; height: 15px;
  color: #F5C451;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.av[data-avframe="heart"]::before,
.mo-av[data-avframe="heart"]::before,
.me-avatar[data-avframe="heart"]::before,
#apBody .ap-af-av[data-f="heart"]::before {
  content: '♥';
  bottom: -5px; left: -4px;
  width: 14px; height: 14px;
  color: #F0729B;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.av[data-avframe="crown"]::before,
.mo-av[data-avframe="crown"]::before,
.me-avatar[data-avframe="crown"]::before,
#apBody .ap-af-av[data-f="crown"]::before {
  content: '👑';
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  width: 20px; height: 14px;
}

.av[data-avframe="snow"]::before,
.mo-av[data-avframe="snow"]::before,
.me-avatar[data-avframe="snow"]::before,
#apBody .ap-af-av[data-f="snow"]::before {
  content: '❄';
  top: -6px; right: -5px;
  width: 14px; height: 14px;
  color: #BFE3F7;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

/* 角标只画一次 */
.av[data-avframe="star"]::after, .mo-av[data-avframe="star"]::after, .me-avatar[data-avframe="star"]::after,
.av[data-avframe="heart"]::after, .mo-av[data-avframe="heart"]::after, .me-avatar[data-avframe="heart"]::after,
.av[data-avframe="crown"]::after, .mo-av[data-avframe="crown"]::after, .me-avatar[data-avframe="crown"]::after,
.av[data-avframe="snow"]::after, .mo-av[data-avframe="snow"]::after, .me-avatar[data-avframe="snow"]::after,
#apBody .ap-af-av[data-f="star"]::after,
#apBody .ap-af-av[data-f="heart"]::after,
#apBody .ap-af-av[data-f="crown"]::after,
#apBody .ap-af-av[data-f="snow"]::after {
  content: none !important;
}

/* 头像框：元素级生效 */
.av[data-avframe], .mo-av[data-avframe], .me-avatar[data-avframe] { position: relative; }

/* 在线灯：压在头像框上 */
.av .dot,
.avatar .dot,
.msg .av .dot,
.avatarHtml .dot,
div.av > .dot {
  z-index: 9 !important;
}
/* 朋友圈头像的在线灯 */
#moments .mo-av { overflow: visible !important; }
#moments .mo-av .dot,
#moments .mo-av .mo-dot {
  position: absolute !important;
  right: -3px !important;
  bottom: -3px !important;
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  background: #3FCF8E !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 1px rgba(63,207,142,.25) !important;
  z-index: 9 !important;
  pointer-events: none;
}
body.dark #moments .mo-av .dot { border-color: #142634 !important; }

/* 专属红包：选人卡片不溢出 */
#pkFull .pk-full-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px !important;
}
#pkFull .pk-excl {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
#pkFull .pk-excl .pk-label { flex: 0 0 auto; }
#pkFull .pk-excl .pk-excl-opts { margin-left: auto !important; }
#pkFull .pk-excl .pk-picked {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 2px 0 0 !important;
  padding: 8px 10px !important;
  background: #F3F7FA !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}
#pkFull .pk-picked.hidden { display: none !important; }
#pkFull .pk-picked-av {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  background-size: cover;
  background-position: center;
  flex: none;
}
#pkFull .pk-picked-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px !important;
  color: #2F4E62 !important;
}
#pkFull .pk-picked-change {
  flex: none !important;
  color: #2E7CB8 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 2px 6px;
}
/* 底部按钮区固定，不跟着滚 */
#pkFull .pk-full-foot { flex: 0 0 auto !important; }

/* ==================== 金龙缠头像 ==================== */
.av[data-aeffect="dragon"],
.mo-av[data-aeffect="dragon"],
.me-avatar[data-aeffect="dragon"] {
  position: relative;
  isolation: isolate;
}
/* 龙身：一条从右上绕到左下的金色渐变环，带鳞片纹理 */
.av[data-aeffect="dragon"]::before,
.mo-av[data-aeffect="dragon"]::before,
.me-avatar[data-aeffect="dragon"]::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  padding: 0;
  background:
    conic-gradient(from 205deg,
      rgba(245,196,81,0) 0deg,
      rgba(245,196,81,.15) 26deg,
      #F7D980 60deg,
      #E9B23F 96deg,
      #C98B22 132deg,
      #F7D980 168deg,
      rgba(245,196,81,.18) 210deg,
      rgba(245,196,81,0) 240deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  filter: drop-shadow(0 1px 2px rgba(120,72,0,.35));
  z-index: 4;
  pointer-events: none;
}
/* 鳞片高光：沿环叠一层细密的扇形明暗 */
.av[data-aeffect="dragon"]::after,
.mo-av[data-aeffect="dragon"]::after,
.me-avatar[data-aeffect="dragon"]::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background:
    repeating-conic-gradient(from 200deg,
      rgba(255,255,255,.55) 0deg 3deg,
      rgba(255,255,255,0) 3deg 9deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  opacity: .55;
  mix-blend-mode: screen;
  z-index: 5;
  pointer-events: none;
}
/* 龙首：右上角一颗金色小三角，像探出头的龙头 */
.av[data-aeffect="dragon"] .av-img::after,
.av[data-aeffect="dragon"]::marker {
  content: none;
}
.dragon-head {
  display: none;
}
/* 立体：头像本身轻微内阴影，看起来被金环缠住 */
.av[data-aeffect="dragon"],
.mo-av[data-aeffect="dragon"],
.me-avatar[data-aeffect="dragon"] {
  box-shadow: inset 0 0 0 1px rgba(255,224,150,.45), 0 2px 10px -2px rgba(200,140,30,.35) !important;
}
/* 龙首装饰（真实元素，放在右上） */
.dragon-mouth {
  position: absolute;
  right: -7px;
  top: -6px;
  width: 13px;
  height: 13px;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #FFF0B8, #F2C24E 45%, #B97C18 100%);
  border-radius: 50% 60% 45% 55%;
  transform: rotate(18deg);
  box-shadow: 0 1px 3px rgba(120,72,0,.4);
}
.dragon-mouth::before,
.dragon-mouth::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 1.6px;
  background: linear-gradient(90deg, #F7D980, rgba(247,217,128,0));
  border-radius: 2px;
  top: 3px;
  left: 9px;
  transform-origin: left center;
}
.dragon-mouth::before { transform: rotate(-18deg); }
.dragon-mouth::after { transform: rotate(12deg); }

/* 聊天 / 朋友圈：头像框加粗 */
.msg .av[data-avframe]::after,
.mo-av[data-avframe]::after {
  inset: -4px !important;
  border-width: 3px !important;
  z-index: 6 !important;
}
/* 渐变环款的宽度也一起加厚（它们靠 mask 抠环） */
.msg .av[data-avframe="rainbow"]::after,
.msg .av[data-avframe="sunset"]::after,
.msg .av[data-avframe="ocean"]::after,
.mo-av[data-avframe="rainbow"]::after,
.mo-av[data-avframe="sunset"]::after,
.mo-av[data-avframe="ocean"]::after {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)) !important;
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)) !important;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.18));
}
/* 发光类更亮一点 */
.msg .av[data-avframe="gold"]::after,
.msg .av[data-avframe="neon"]::after,
.mo-av[data-avframe="gold"]::after,
.mo-av[data-avframe="neon"]::after {
  box-shadow: 0 0 12px rgba(255,200,90,.65), inset 0 0 4px rgba(255,230,160,.5) !important;
}
/* 角标稍微放大 */
.msg .av[data-avframe]::before,
.mo-av[data-avframe]::before {
  font-size: 13px !important;
}
/* 朋友圈头像本身更大，框再外扩一点更明显 */
.mo-av[data-avframe]::after { inset: -5px !important; }
.mo-av[data-avframe="rainbow"]::after,
.mo-av[data-avframe="sunset"]::after,
.mo-av[data-avframe="ocean"]::after {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)) !important;
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)) !important;
}

/* 金龙：盘绕式（SVG） */
.av[data-aeffect="dragon"]::before,
.mo-av[data-aeffect="dragon"]::before,
.me-avatar[data-aeffect="dragon"]::before {
  content: '' !important;
  position: absolute !important;
  inset: -7px !important;
  border-radius: 0 !important;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23FFF3C9'%2F%3E%3Cstop%20offset%3D'.4'%20stop-color%3D'%23F3C955'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23B47A14'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D'M11%2C52C10%2C27%2031%2C9%2051%2C10%2074%2C11%2090%2C29%2088%2C51%2086%2C73%2067%2C89%2048%2C87'%20fill%3D'none'%20stroke%3D'url(%23g)'%20stroke-width%3D'4'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M18%2C36q5%2C5%2010%2C0M27%2C25q5%2C5%2010%2C0M40%2C18q5%2C5%2010%2C0M55%2C15q5%2C5%2010%2C0M69%2C21q5%2C5%2010%2C0M80%2C33q5%2C5%2010%2C0M87%2C47q-1%2C6-7%2C7'%20fill%3D'none'%20stroke%3D'rgba(255%2C255%2C255%2C.5)'%20stroke-width%3D'1.3'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M88%2C52l10%2C-6-3.6%2C9z'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'92'%20cy%3D'49'%20r%3D'1.2'%20fill%3D'%233B2A0A'%2F%3E%3Cpath%20d%3D'M95%2C45q6%2C-6%2010%2C-2M95%2C50q6%2C4%2010%2C1'%20fill%3D'none'%20stroke%3D'%23F3C955'%20stroke-width%3D'1.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat !important;
  -webkit-mask: none !important;
  mask: none !important;
  filter: drop-shadow(0 1px 2px rgba(120,72,0,.45)) drop-shadow(0 0 6px rgba(242,194,78,.45)) !important;
  z-index: 6 !important;
  pointer-events: none !important;
}
/* 旧的鳞片高光层不再画 */
.av[data-aeffect="dragon"]::after,
.mo-av[data-aeffect="dragon"]::after,
.me-avatar[data-aeffect="dragon"]::after {
  content: none !important;
  background: none !important;
}

/* 金龙：外扩微调 */
.av[data-aeffect="dragon"]::before,
.mo-av[data-aeffect="dragon"]::before,
.me-avatar[data-aeffect="dragon"]::before {
  inset: -10px !important;
  filter: drop-shadow(0 1px 2px rgba(120,72,0,.4)) drop-shadow(0 0 5px rgba(242,194,78,.4)) !important;
}
/* 头像本身保持干净：不要内阴影 */
.av[data-aeffect="dragon"],
.mo-av[data-aeffect="dragon"],
.me-avatar[data-aeffect="dragon"] {
  box-shadow: none !important;
}

/* 朋友圈头像框：压过「去白环」规则 */
#moments .mo-av[data-avframe]::after,
.mo-av[data-avframe]::after {
  content: '' !important;
  display: block !important;
  visibility: visible !important;
  inset: -5px !important;
  border-width: 3px !important;
  z-index: 6 !important;
}
/* 角标款仍只画一次（::after 空着） */
#moments .mo-av[data-avframe="star"]::after,
#moments .mo-av[data-avframe="heart"]::after,
#moments .mo-av[data-avframe="crown"]::after,
#moments .mo-av[data-avframe="snow"]::after {
  content: none !important;
  display: none !important;
}
/* 聊天头像框不被消息容器裁掉 */
#msgs .av[data-avframe]::after {
  z-index: 6 !important;
}

/* 聊天头像框：内边离头像 3px */
#msgs .av[data-avframe]::after,
.msg .av[data-avframe]::after {
  inset: -6px !important;
  border-width: 3px !important;
}

/* 聊天头像框：outline 方案 */
#msgs .av[data-avframe="gold"],
.msg .av[data-avframe="gold"] { outline: 3px solid #E7C15B !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="gold2"],
.msg .av[data-avframe="gold2"] { outline: 3px solid #D2A73F !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="silver"],
.msg .av[data-avframe="silver"] { outline: 3px solid #C9D3DC !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="blue"],
.msg .av[data-avframe="blue"] { outline: 3px solid #6FB6E8 !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="pink"],
.msg .av[data-avframe="pink"] { outline: 3px solid #F2A7C3 !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="green"],
.msg .av[data-avframe="green"] { outline: 3px solid #7BCB96 !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="purple"],
.msg .av[data-avframe="purple"] { outline: 3px solid #A98BE0 !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="neon"],
.msg .av[data-avframe="neon"] { outline: 3px solid #39E6F0 !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="glow"],
.msg .av[data-avframe="glow"] { outline: 3px solid rgba(255,255,255,.95) !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="dash"],
.msg .av[data-avframe="dash"] { outline: 3px dashed #9FB6C9 !important; outline-offset: 2px !important; }
#msgs .av[data-avframe="dot"],
.msg .av[data-avframe="dot"] { outline: 3px dotted #C7A86B !important; outline-offset: 2px !important; }

/* 渐变 / 角标款仍用伪元素，但保证不被裁 */
#msgs .av[data-avframe="rainbow"],
#msgs .av[data-avframe="sunset"],
#msgs .av[data-avframe="ocean"],
#msgs .av[data-avframe="double"],
#msgs .av[data-avframe="star"],
#msgs .av[data-avframe="heart"],
#msgs .av[data-avframe="crown"],
#msgs .av[data-avframe="snow"] {
  outline: 0 !important;
}
/* 不要再画一圈 border，避免和 outline 重影 */
#msgs .av[data-avframe]::after,
.msg .av[data-avframe]::after {
  border-width: 0 !important;
}
/* 双击感：outline 圆角跟随头像 */
#msgs .av[data-avframe] { border-radius: 12px; }

/* 朋友圈头像框：颜色显式 */
#moments .mo-av[data-avframe="gold"]::after,
.mo-av[data-avframe="gold"]::after { border: 3px solid #E7C15B !important; }
#moments .mo-av[data-avframe="gold2"]::after,
.mo-av[data-avframe="gold2"]::after { border: 3px solid #D2A73F !important; }
#moments .mo-av[data-avframe="silver"]::after,
.mo-av[data-avframe="silver"]::after { border: 3px solid #C9D3DC !important; }
#moments .mo-av[data-avframe="blue"]::after,
.mo-av[data-avframe="blue"]::after { border: 3px solid #6FB6E8 !important; }
#moments .mo-av[data-avframe="pink"]::after,
.mo-av[data-avframe="pink"]::after { border: 3px solid #F2A7C3 !important; }
#moments .mo-av[data-avframe="green"]::after,
.mo-av[data-avframe="green"]::after { border: 3px solid #7BCB96 !important; }
#moments .mo-av[data-avframe="purple"]::after,
.mo-av[data-avframe="purple"]::after { border: 3px solid #A98BE0 !important; }
#moments .mo-av[data-avframe="neon"]::after,
.mo-av[data-avframe="neon"]::after { border: 3px solid #39E6F0 !important; }
#moments .mo-av[data-avframe="glow"]::after,
.mo-av[data-avframe="glow"]::after { border: 3px solid rgba(255,255,255,.95) !important; }
#moments .mo-av[data-avframe="dash"]::after,
.mo-av[data-avframe="dash"]::after { border: 3px dashed #9FB6C9 !important; }
#moments .mo-av[data-avframe="dot"]::after,
.mo-av[data-avframe="dot"]::after { border: 3px dotted #C7A86B !important; }

/* 渐变 / 双环 / 角标保持各自效果，不要白边 */
#moments .mo-av[data-avframe="rainbow"]::after,
#moments .mo-av[data-avframe="sunset"]::after,
#moments .mo-av[data-avframe="ocean"]::after,
#moments .mo-av[data-avframe="double"]::after {
  border: 0 !important;
}
#moments .mo-av[data-avframe="double"] {
  outline: 3px solid #6FB6E8 !important;
  outline-offset: 2px !important;
}

/* 名片头像：框与特效 */
.pf-av3[data-avframe] { position: relative; }
.pf-av3[data-avframe]::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  pointer-events: none; z-index: 6; box-sizing: border-box;
}
.pf-av3[data-avframe="gold"]::after { border: 3px solid #E7C15B !important; }
.pf-av3[data-avframe="gold2"]::after { border: 3px solid #D2A73F !important; }
.pf-av3[data-avframe="silver"]::after { border: 3px solid #C9D3DC !important; }
.pf-av3[data-avframe="blue"]::after { border: 3px solid #6FB6E8 !important; }
.pf-av3[data-avframe="pink"]::after { border: 3px solid #F2A7C3 !important; }
.pf-av3[data-avframe="green"]::after { border: 3px solid #7BCB96 !important; }
.pf-av3[data-avframe="purple"]::after { border: 3px solid #A98BE0 !important; }
.pf-av3[data-avframe="neon"]::after { border: 3px solid #39E6F0 !important; }
.pf-av3[data-avframe="glow"]::after { border: 3px solid rgba(255,255,255,.95) !important; }
.pf-av3[data-avframe="dash"]::after { border: 3px dashed #9FB6C9 !important; }
.pf-av3[data-avframe="dot"]::after { border: 3px dotted #C7A86B !important; }

.pf-av3[data-avframe="rainbow"]::after { background: conic-gradient(#FF6B6B,#FFD86B,#7BD88B,#6BC8FF,#A98BE0,#FF6B6B); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.pf-av3[data-avframe="sunset"]::after { background: linear-gradient(135deg,#FF9A6B,#FF6B95); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.pf-av3[data-avframe="ocean"]::after { background: linear-gradient(135deg,#5EC8E8,#3E8ECD); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.pf-av3[data-avframe="double"]::after { border: 2px solid #fff !important; outline: 2px solid #6FB6E8; outline-offset: 2px; }
/* 角标款 */
.pf-av3[data-avframe]::before { content: ''; position: absolute; z-index: 7; pointer-events: none; display: flex; align-items: center; justify-content: center; line-height: 1; }
.pf-av3[data-avframe="star"]::before { content: '★'; top: -6px; right: -5px; width: 15px; height: 15px; color: #F5C451; font-size: 13px; }
.pf-av3[data-avframe="heart"]::before { content: '♥'; bottom: -5px; left: -4px; width: 14px; height: 14px; color: #F0729B; font-size: 13px; }
.pf-av3[data-avframe="crown"]::before { content: '👑'; top: -13px; left: 50%; transform: translateX(-50%); font-size: 14px; width: 20px; height: 14px; }
.pf-av3[data-avframe="snow"]::before { content: '❄'; top: -6px; right: -5px; width: 14px; height: 14px; color: #BFE3F7; font-size: 13px; }
/* 金龙特效 */
.pf-av3[data-aeffect="dragon"] { position: relative; }
.pf-av3[data-aeffect="dragon"]::before {
  content: '' !important;
  position: absolute !important;
  inset: -12px !important;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23FFF3C9'%2F%3E%3Cstop%20offset%3D'.4'%20stop-color%3D'%23F3C955'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23B47A14'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D'M11%2C52C10%2C27%2031%2C9%2051%2C10%2074%2C11%2090%2C29%2088%2C51%2086%2C73%2067%2C89%2048%2C87'%20fill%3D'none'%20stroke%3D'url(%23g)'%20stroke-width%3D'4'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M18%2C36q5%2C5%2010%2C0M27%2C25q5%2C5%2010%2C0M40%2C18q5%2C5%2010%2C0M55%2C15q5%2C5%2010%2C0M69%2C21q5%2C5%2010%2C0M80%2C33q5%2C5%2010%2C0M87%2C47q-1%2C6-7%2C7'%20fill%3D'none'%20stroke%3D'rgba(255%2C255%2C255%2C.5)'%20stroke-width%3D'1.3'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M88%2C52l10%2C-6-3.6%2C9z'%20fill%3D'url(%23g)'%2F%3E%3Ccircle%20cx%3D'92'%20cy%3D'49'%20r%3D'1.2'%20fill%3D'%233B2A0A'%2F%3E%3Cpath%20d%3D'M95%2C45q6%2C-6%2010%2C-2M95%2C50q6%2C4%2010%2C1'%20fill%3D'none'%20stroke%3D'%23F3C955'%20stroke-width%3D'1.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat !important;
  border-radius: 0 !important;
  -webkit-mask: none !important;
  mask: none !important;
  filter: drop-shadow(0 1px 2px rgba(120,72,0,.4)) drop-shadow(0 0 6px rgba(242,194,78,.45)) !important;
  z-index: 6 !important;
  pointer-events: none !important;
}

/* 金龙：贴外侧 */
.av[data-aeffect="dragon"]::before,
.mo-av[data-aeffect="dragon"]::before,
.me-avatar[data-aeffect="dragon"]::before,
.pf-av3[data-aeffect="dragon"]::before {
  inset: -16px !important;
  background-size: 100% 100% !important;
  opacity: .98;
}

/* 金龙：按比例外扩 */
.av[data-aeffect="dragon"]::before,
.mo-av[data-aeffect="dragon"]::before,
.me-avatar[data-aeffect="dragon"]::before,
.pf-av3[data-aeffect="dragon"]::before {
  inset: -25% !important;
  background-size: 100% 100% !important;
}

/* 连发消息：框收细留缝 */
#msgs .av[data-avframe],
.msg .av[data-avframe] {
  outline-width: 2px !important;
  outline-offset: 1px !important;
}
/* 相邻消息之间留 4px，两个框各占 3px 也不会贴在一起 */
#msgs .msg + .msg { margin-top: 4px !important; }
#msgs .msg.same-prev { margin-top: 3px !important; }

/* 收藏视频预览：播放键居中 */
.fav-thumb .fav-play,
.fav-thumb.vid .fav-play {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 2;
}

/* ==================== 红包/转账：细节打磨 v7 ==================== */
/* 金额数字：等宽排版不跳动 + 蓝色光标 */
#pkAmt {
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: 'tnum' on;
  caret-color: #3E8ECD;
  transition: color .15s ease;
}
#pkAmt:focus { color: #0F4C75 !important; }
body.dark #pkAmt:focus { color: #FFFFFF !important; }

/* 内容块依次浮入，别一下全砸出来 */
@keyframes pkRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
#pkFull .pk-full-body > * {
  animation: pkRise .34s cubic-bezier(.22,.78,.3,1) both;
}
#pkFull .pk-full-body > *:nth-child(1) { animation-delay: .02s; }
#pkFull .pk-full-body > *:nth-child(2) { animation-delay: .06s; }
#pkFull .pk-full-body > *:nth-child(3) { animation-delay: .1s; }
#pkFull .pk-full-body > *:nth-child(4) { animation-delay: .14s; }
#pkFull .pk-full-body > *:nth-child(5) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  #pkFull .pk-full-body > * { animation: none !important; }
}

/* 快捷金额：轻按回弹 */
#pkFull .pk-quick button { transition: transform .12s ease, box-shadow .12s ease, background .16s ease; }
#pkFull .pk-quick button:active { transform: scale(.955); }
#pkFull .pk-quick button.on { transform: translateY(-1px); }

/* 明细行：轻按反馈 + 更细的分隔 */
#pkFull .pk-row:active,
#pkFull .pk-to:active { background: #FAFCFE !important; }
body.dark #pkFull .pk-row:active,
body.dark #pkFull .pk-to:active { background: rgba(255,255,255,.04) !important; }

/* 输入框聚焦：卡片描边变蓝一点点 */
#pkFull .pk-row:focus-within,
#pkFull #pkNote:focus {
  border-color: rgba(62,142,205,.35) !important;
  box-shadow: 0 8px 22px -18px rgba(62,142,205,.8), 0 0 0 3px rgba(62,142,205,.08) !important;
}

/* 顶部返回键轻按 */
#pkFull .pk-full-back { transition: background .12s ease, transform .12s ease; }
#pkFull .pk-full-back:active { transform: scale(.94); }

/* 主按钮：内高光 + 按下位移 + 禁用态干净 */
#pkFull .pk-full-foot .btn-primary,
#pkFull .pk-full-foot .btn-ghost { transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease; }
#pkFull .pk-full-foot .btn-primary:not(:disabled) {
  box-shadow: 0 16px 30px -16px rgba(62,142,205,.75), inset 0 1px 0 rgba(255,255,255,.35) !important;
}
#pkFull .pk-full-foot .btn-primary:not(:disabled):active {
  transform: translateY(1px) scale(.995);
  box-shadow: 0 8px 18px -12px rgba(62,142,205,.7) !important;
}
#pkFull .pk-full-foot .btn-ghost:active { transform: scale(.98); }
#pkFull .pk-full-foot .btn-primary:disabled { opacity: .55; box-shadow: none !important; }

/* 底部说明字与按钮的呼吸 */
#pkFull .pk-foot-hint { margin-bottom: 10px !important; letter-spacing: .3px; }

/* 金额卡顶部的「金额」标签更轻 */
#pkFull .pk-hero::after { opacity: .9; letter-spacing: 3px !important; }

/* 拼手气 / 等额 切换 */
#pkFull .pk-mode-row {
  display: flex !important;
  gap: 6px !important;
  background: #F3F7FA !important;
  border-radius: 14px !important;
  padding: 4px !important;
  margin: 0 0 12px !important;
}
body.dark #pkFull .pk-mode-row { background: rgba(255,255,255,.06) !important; }
#pkFull .pk-mode-row .pk-mode {
  flex: 1 1 0 !important;
  text-align: center !important;
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6C8497 !important;
  background: transparent !important;
  font-style: normal !important;
}
#pkFull .pk-mode-row .pk-mode.on {
  background: #fff !important;
  color: #2E7CB8 !important;
  box-shadow: 0 3px 10px -6px rgba(16,52,74,.5) !important;
}
body.dark #pkFull .pk-mode-row .pk-mode.on { background: #1B3547 !important; color: #9FD3F5 !important; }

/* 键盘弹起：内容不许被压扁 */
#pkFull .pk-full-body {
  display: block !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
#pkFull .pk-full-body > * {
  flex-shrink: 0 !important;
  min-height: 0;
}
#pkFull .pk-hero {
  flex: none !important;
  min-height: 176px;
}
#pkFull .pk-amt-wrap {
  flex: none !important;
  min-height: 96px;
}
#pkFull #pkAmt {
  min-height: 64px !important;
  height: 64px !important;
}
#pkFull .pk-row,
#pkFull .pk-excl,
#pkFull #pkNote,
#pkFull .pk-to {
  flex: none !important;
}
/* 底部按钮固定，键盘弹起时不被顶走 */
#pkFull .pk-full-foot {
  flex: 0 0 auto !important;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(246,249,252,0), rgba(246,249,252,.95) 30%, #F6F9FC 60%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.dark #pkFull .pk-full-foot {
  background: linear-gradient(180deg, rgba(11,27,38,0), rgba(11,27,38,.95) 30%, #0B1B26 60%);
}

/* 底部按钮留出滚动空间 */
#pkFull .pk-full-body {
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
}

/* 底部按钮回到内容流，别浮在中间 */
#pkFull .pk-full-foot {
  position: static !important;
  bottom: auto !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  margin-top: 8px !important;
}

/* ===== 会员 ===== */
.vip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 3px; vertical-align: -2px;
  color: #E0A82E; flex: none;
}
.vip-badge svg { width: 13px; height: 13px; display: block; filter: drop-shadow(0 1px 1px rgba(190,130,10,.35)); }

#memberBody { padding: 14px 14px 28px; }
.mp-loading { padding: 40px 0; text-align: center; color: #7C93A5; font-size: 13px; }
.mp-hero {
  border-radius: 18px; padding: 22px 18px 20px; text-align: center;
  background: linear-gradient(150deg, #FDF6E3, #F6E7C3);
  border: 1px solid rgba(224,168,46,.35);
  box-shadow: 0 12px 26px -20px rgba(150,110,20,.7);
}
body.dark .mp-hero { background: linear-gradient(150deg, #2A2418, #3A2F1A); border-color: rgba(224,168,46,.35); }
.mp-hero.on { background: linear-gradient(150deg, #FFF4CE, #F0CE7A); }
body.dark .mp-hero.on { background: linear-gradient(150deg, #3C3018, #58431A); }
.mp-crown { color: #C8901C; }
.mp-crown svg { width: 34px; height: 34px; }
.mp-hero-t { margin-top: 6px; font-size: 18px; font-weight: 800; color: #6B4E12; letter-spacing: .5px; }
body.dark .mp-hero-t { color: #F0D79A; }
.mp-hero-s { margin-top: 5px; font-size: 12.5px; color: #8A6E33; }
body.dark .mp-hero-s { color: #C9B183; }

.mp-perks { display: flex; gap: 8px; margin: 12px 0; }
.mp-perk {
  flex: 1 1 0; background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center;
  box-shadow: 0 6px 16px -14px rgba(16,52,74,.5);
}
body.dark .mp-perk { background: #16232E; }
.mp-perk b { display: block; font-size: 13px; color: #12384F; }
body.dark .mp-perk b { color: #DCEBF5; }
.mp-perk span { display: block; margin-top: 3px; font-size: 11px; color: #7C93A5; }

.mp-plans { display: flex; gap: 10px; margin: 6px 0 12px; }
.mp-plan {
  flex: 1 1 0; border: 1.5px solid rgba(62,142,205,.18); background: #fff; border-radius: 16px;
  padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: inherit; transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
body.dark .mp-plan { background: #16232E; border-color: rgba(255,255,255,.12); }
.mp-plan b { font-size: 13px; color: #12384F; }
body.dark .mp-plan b { color: #DCEBF5; }
.mp-plan em { font-style: normal; font-size: 17px; font-weight: 800; color: #C8901C; font-variant-numeric: tabular-nums; }
.mp-plan span { font-size: 11px; color: #7C93A5; }
.mp-plan.on {
  border-color: #E0A82E; background: #FFFBF0;
  box-shadow: 0 10px 22px -18px rgba(200,144,28,.9);
  transform: translateY(-2px);
}
body.dark .mp-plan.on { background: #2C2415; }
.mp-bal { text-align: center; font-size: 12.5px; color: #7C93A5; margin-bottom: 10px; }
.mp-buy { width: 100%; margin: 0 !important; }
.mp-buy:disabled { opacity: .55; }

/* 钱包页的会员入口 */
.walet-vip {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0; padding: 13px 14px;
  border-radius: 16px; background: linear-gradient(120deg, #FFF7E2, #FFEFC9);
  border: 1px solid rgba(224,168,46,.3);
}
body.dark .walet-vip { background: linear-gradient(120deg, #2A2418, #3A2F1A); }
.walet-vip .wl-vip-ico { color: #C8901C; flex: none; }
.walet-vip .wl-vip-ico svg { width: 24px; height: 24px; }
.walet-vip .wl-vip-t { flex: 1; font-size: 13.5px; font-weight: 700; color: #6B4E12; }
body.dark .walet-vip .wl-vip-t { color: #F0D79A; }
.walet-vip .wl-vip-s { font-size: 11.5px; color: #8A6E33; font-weight: 400; }
.walet-vip .wl-vip-go {
  flex: none; height: 30px; padding: 0 13px; border-radius: 15px; border: 0;
  background: linear-gradient(135deg, #F2C14E, #D79A25); color: #4A3308;
  font-size: 12.5px; font-weight: 800; font-family: inherit;
}

/* 会员页要压在钱包页上面 */
#memberPage { z-index: 70 !important; }

/* 名片：绿点压在头像框上面 */
.pf-av3 .dot {
  z-index: 20 !important;
  right: -4px !important;
  bottom: -4px !important;
}
/* 头像框那层不吃点击 */
.pf-av3[data-avframe]::after { pointer-events: none; }

/* 名片：会员档位标签 */
.pf-tag2.vip {
  background: linear-gradient(135deg, #FFF4CE, #F3D68A) !important;
  color: #6B4E12 !important;
  border: 1px solid rgba(200,144,28,.35) !important;
  font-weight: 800 !important;
}
body.dark .pf-tag2.vip { background: linear-gradient(135deg, #3C3018, #58431A) !important; color: #F0D79A !important; }
.pf-tag2.vip svg { width: 13px; height: 13px; color: #C8901C; }

/* 会员钻石图标 */
.vip-badge .vip-diamond { width: 13px; height: 13px; display: block; }
.pf-tag2.vip .vip-diamond,
.walet-vip .vip-diamond { width: 13px; height: 13px; color: #C8901C; }
.mp-crown .vip-diamond { width: 34px; height: 34px; }
.vip-badge { color: #E0A82E; }

/* 会员勋章图标尺寸 */
.vip-badge .vip-medal { width: 13px; height: 13px; display: block; }
.pf-tag2.vip .vip-medal, .walet-vip .vip-medal { width: 13px; height: 13px; color: #C8901C; }
.mp-crown .vip-medal { width: 34px; height: 34px; }

/* 会员星芒图标尺寸 */
.vip-badge .vip-spark { width: 13px; height: 13px; display: block; }
.pf-tag2.vip .vip-spark, .walet-vip .vip-spark { width: 13px; height: 13px; color: #C8901C; }
.mp-crown .vip-spark { width: 32px; height: 32px; }

/* ===== 语音 / 视频通话 ===== */
.call-full {
  position: fixed; inset: 0; z-index: 300;
  background: #0B1620;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.call-full.hidden { display: none !important; }
.call-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.call-remote {
  width: 100%; height: 100%; object-fit: cover; background: #0B1620;
  opacity: 1; transition: opacity .3s;
}
.call-full.waiting .call-remote { opacity: 0; }
.call-avatar {
  position: absolute; width: 132px; height: 132px; border-radius: 50%;
  overflow: hidden; background: rgba(255,255,255,.08);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.9);
}
.call-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.call-full:not(.waiting):not(.audio-mode) .call-avatar { display: none; }
.call-full.waiting .call-avatar { display: block; }
.call-local {
  position: absolute; right: 14px; bottom: 132px;
  width: 104px; height: 148px; border-radius: 16px;
  object-fit: cover; background: #12222E;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.9);
  border: 1.5px solid rgba(255,255,255,.18);
}
.call-full.audio-mode .call-local { display: none; }
.call-full.audio-mode .call-remote { display: none; }
.call-full.audio-mode .call-avatar { display: block; }
.call-top {
  position: absolute; top: 42px; left: 0; right: 0; text-align: center; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.call-name { font-size: 19px; font-weight: 800; letter-spacing: .4px; }
.call-time { margin-top: 6px; font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.call-actions {
  position: absolute; left: 0; right: 0; bottom: 42px;
  display: flex; align-items: center; justify-content: center; gap: 26px;
}
.call-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.call-btn svg { width: 24px; height: 24px; }
.call-btn.hangup { background: #E8503A; width: 66px; height: 66px; }
.call-btn.off { background: rgba(255,255,255,.06); color: #9FB2C1; }
.call-mini {
  position: absolute; right: 14px; top: 44px; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff;
  display: none;
}
.call-full.mini-mode .call-mini { display: flex; align-items: center; justify-content: center; }
.call-full.mini-mode .call-stage { cursor: pointer; }

/* 来电卡片 */
.call-incoming {
  position: relative; z-index: 2; width: 78%; max-width: 320px;
  background: rgba(18,34,46,.96); border-radius: 22px; padding: 26px 20px 22px;
  text-align: center; color: #fff; box-shadow: 0 26px 60px -20px rgba(0,0,0,.9);
}
.call-incoming.hidden { display: none !important; }
.ci-av { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; background: rgba(255,255,255,.1); }
.ci-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-name { font-size: 18px; font-weight: 800; }
.ci-sub { margin-top: 6px; font-size: 13px; color: #A9C0D2; }
.ci-acts { display: flex; gap: 12px; margin-top: 22px; }
.ci-btn { flex: 1; height: 48px; border-radius: 24px; border: 0; font-size: 15px; font-weight: 800; font-family: inherit; }
.ci-btn.no { background: rgba(255,255,255,.14); color: #fff; }
.ci-btn.yes { background: linear-gradient(135deg, #3ED07A, #24A85B); color: #06301A; }

/* 聊天顶栏两个通话按钮 */
.chat-call-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 12px; color: var(--ink); }
.chat-call-btn svg { width: 20px; height: 20px; }
.chat-call-btn:active { background: rgba(62,142,205,.12); }

.chat-call-bar { display:flex; align-items:center; gap:2px; margin-left:auto; margin-right:2px; }

/* ===== App 内安全区适配 ===== */
/* 安全区由 App 给 WebView 加 padding 实现（fixed 顶栏/底栏也会一起下移），
   网页这边只做两件事：标记 in-app、把 100vh 换成动态视口。 */
html.in-app {
  --app-safe-top: 0px;
  --app-safe-bottom: 0px;
}
@supports (height: 100dvh) {
  html.in-app #chat,
  html.in-app #moments,
  html.in-app .page.ex-full {
    min-height: 100dvh;
  }
}
html.in-app .call-actions {
  padding-bottom: 6px;
}

/* ===== App 内：动画与手感 ===== */
/* 1) 去掉 WebView 的点击灰块、滚动条、长按选中 */
html.in-app {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html.in-app * {
  -webkit-tap-highlight-color: transparent;
}
html.in-app ::-webkit-scrollbar { width: 0; height: 0; }
html.in-app input,
html.in-app textarea,
html.in-app [contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
}
/* 滚动惯性（iOS 风格顺滑） */
html.in-app .content,
html.in-app #msgs,
html.in-app #moList,
html.in-app .ex-scroll,
html.in-app #pane,
html.in-app .sheet-body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 2) 页面切换：淡入 + 轻微上浮（和网页一致，但在 App 里给足时长） */
@keyframes appPageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
html.in-app .page.anim,
html.in-app #content.anim > * {
  animation: appPageIn .26s cubic-bezier(.22,.78,.3,1) both;
}
html.in-app #chat.chat-in {
  animation: appPageIn .24s cubic-bezier(.22,.78,.3,1) both;
}

/* 3) 消息进场：气泡轻弹（网页端有，App 里给更明显的反馈） */
@keyframes appMsgIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
html.in-app #msgs .msg.app-in .bubble,
html.in-app #msgs .msg.app-in .pkt,
html.in-app #msgs .msg.app-in .img-wrap {
  animation: appMsgIn .22s cubic-bezier(.22,.78,.3,1) both;
}

/* 4) 列表/卡片按压反馈：按下缩一点，松开回弹 */
html.in-app .row,
html.in-app .me-item,
html.in-app .line,
html.in-app .ct-row,
html.in-app .wl-item,
html.in-app .fav-item,
html.in-app .mp-plan,
html.in-app .pk-quick button,
html.in-app .btn,
html.in-app .tabbar > * {
  transition: transform .12s cubic-bezier(.2,.7,.3,1), background-color .14s ease, opacity .14s ease;
}
html.in-app .row:active,
html.in-app .me-item:active,
html.in-app .line:active,
html.in-app .ct-row:active,
html.in-app .wl-item:active,
html.in-app .fav-item:active {
  background-color: rgba(62,142,205,.07) !important;
}
html.in-app .btn:active,
html.in-app .mp-plan:active,
html.in-app .pk-quick button:active {
  transform: scale(.97);
}
html.in-app .tabbar > *:active {
  transform: scale(.94);
}

/* 5) 弹层：从底部滑起 + 背景淡入 */
@keyframes appSheetUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes appFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
html.in-app .sheet,
html.in-app .pop-wrap,
html.in-app .st-card,
html.in-app .about-box {
  animation: appSheetUp .26s cubic-bezier(.22,.78,.3,1) both;
}
html.in-app .mask,
html.in-app .overlay,
html.in-app .sheet-mask {
  animation: appFadeIn .18s ease both;
}

/* 6) 顶栏标题切换淡入，避免“跳字” */
@keyframes appTitleIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
html.in-app .topbar .title { animation: appTitleIn .2s ease both; }

/* 7) 红包/转账金额数字：等宽 + 进场 */
@keyframes appNumIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}
html.in-app #pkFull .pk-hero-amt,
html.in-app #pkFull .pk-amt-wrap {
  animation: appNumIn .28s cubic-bezier(.22,.78,.3,1) both;
  font-variant-numeric: tabular-nums;
}

/* 8) 尊重系统「减少动画」设置 */
@media (prefers-reduced-motion: reduce) {
  html.in-app .page.anim,
  html.in-app #chat.chat-in,
  html.in-app #msgs .msg.app-in .bubble,
  html.in-app .sheet,
  html.in-app .topbar .title {
    animation: none !important;
  }
}

/* ===== 通话入口按钮 ===== */
#chatCallBtns {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; margin-right: 4px;
}
.call-entry {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px 0 8px;
  border: 1px solid rgba(62,142,205,.22);
  border-radius: 15px;
  background: linear-gradient(135deg, #F2F9FF, #E3F1FB);
  color: #2E7CB8;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 4px 10px -8px rgba(16,52,74,.6);
  transition: transform .12s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease, background .16s ease;
}
.call-entry svg { width: 16px; height: 16px; }
.call-entry i { font-style: normal; letter-spacing: .3px; }
.call-entry:active {
  transform: scale(.94);
  box-shadow: 0 2px 6px -6px rgba(16,52,74,.5);
}
.call-entry.video {
  background: linear-gradient(135deg, #EDF8FF, #D8ECFA);
  border-color: rgba(62,142,205,.3);
}
.call-entry.audio {
  background: linear-gradient(135deg, #F1FCF6, #DCF6E7);
  border-color: rgba(46,158,107,.3);
  color: #1D8A57;
}
body.dark .call-entry {
  background: rgba(62,142,205,.16); color: #9FD3F5; border-color: rgba(255,255,255,.12);
}
body.dark .call-entry.audio { background: rgba(46,158,107,.18); color: #7FE0AB; border-color: rgba(255,255,255,.12); }
/* 群里不显示（只私聊），隐藏时不留空 */
#chatCallBtns:empty { display: none; }

/* ===== 通话界面小幅美化 ===== */
/* 等待接通：头像虚化垫底 + 细环，不再是死黑一块 */
#callFull .call-stage::before {
  content: ''; position: absolute; inset: -20px;
  background-image: var(--call-bg, none);
  background-size: cover; background-position: center;
  filter: blur(26px) saturate(1.1) brightness(.42);
  transform: scale(1.08);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
#callFull.waiting .call-stage::before { opacity: 1; }
#callFull .call-remote { position: relative; z-index: 1; }
#callFull .call-avatar { z-index: 2; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 22px 54px -26px rgba(0,0,0,.9); }
/* 计时胶囊稍微柔和一点 */
#callFull .call-time {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 8px auto 0; padding: 4px 13px;
  border-radius: 999px; background: rgba(255,255,255,.12);
  font-variant-numeric: tabular-nums;
}
/* 底部按钮：统一的柔和阴影 + 按下反馈（不改配色） */
#callFull .call-btn {
  transition: transform .12s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease;
  box-shadow: 0 14px 28px -18px rgba(0,0,0,.9);
}
#callFull .call-btn:active { transform: scale(.94); }

/* App 内：整页顶部安全区 */
html.in-app .page,
html.in-app #app,
html.in-app #chat,
html.in-app #moments {
  padding-top: var(--app-safe-top, 0px);
  box-sizing: border-box;
}
/* 顶栏自身不再额外留白（避免和上面叠加） */
html.in-app .topbar,
html.in-app .ex-top,
html.in-app #chat > .topbar {
  padding-top: 0 !important;
  height: 54px;
}
/* 底部：tabbar 与输入条避开系统导航条 */
html.in-app .tabbar {
  padding-bottom: var(--app-safe-bottom, 0px) !important;
  height: calc(58px + var(--app-safe-bottom, 0px)) !important;
}
html.in-app #chat .composer,
html.in-app .inputbar {
  padding-bottom: calc(8px + var(--app-safe-bottom, 0px)) !important;
}

/* ===== 键盘弹出：聊天输入条 ===== */
/* 网页侧兜底：键盘一开，输入条自己抬高（原生已抬 WebView 时 --kb-h 接近 0，不冲突） */
#chat { --kb-h: 0px; }
#chat.kb-open .composer,
#chat.kb-open .inputbar,
#chat.kb-open #inputBar {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
}
/* 输入条始终压在聊天页底部，别被消息盖住 */
#chat > .composer,
#chat > .inputbar,
#chat > #inputBar {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}
/* 输入框聚焦时给一点上浮阴影，视觉上“贴住键盘” */
#chat .composer:focus-within,
#chat .inputbar:focus-within {
  box-shadow: 0 -6px 18px -12px rgba(16,52,74,.35);
}
/* 红包页的输入条同理 */
#pkFull .pk-full-foot { margin-top: auto; }

/* ===== 通话界面 v3 ===== */
html body #callFull,
#callFull.call-full {
  background: linear-gradient(165deg, #EAF4FD 0%, #D8EAF8 48%, #C9E1F3 100%) !important;
}
#callFull .call-stage { overflow: hidden; }

/* 视频：远端画面做成圆角大卡，四周留一点白 */
#callFull.video-mode .call-remote {
  position: absolute; left: 12px; right: 12px; top: 108px;
  width: auto; height: calc(100% - 284px);   /* 上 96 + 下 176 */
  border-radius: 22px; object-fit: cover;
  box-shadow: 0 24px 60px -30px rgba(16,52,74,.55);
  background: #C9DDEB;
}
/* 本地小窗放到卡片右上角内侧，不压画面中心 */
#callFull.video-mode .call-local { right: 24px; top: 110px; }
#callFull.audio-mode .call-remote { display: none; }

/* 本地小窗：右上角小圆角卡 */
#callFull .call-local {
  position: absolute; right: 18px; top: 108px;
  width: 96px; height: 132px; border-radius: 16px;
  object-fit: cover; background: #B9D4E5;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 16px 34px -18px rgba(16,52,74,.5);
  z-index: 3;
}
#callFull.audio-mode .call-local { display: none; }

/* 头像（语音态 / 等待态）：白色圆底 + 柔和阴影 */
#callFull .call-avatar {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 4px solid #fff;
  box-shadow: 0 20px 46px -20px rgba(16,52,74,.5);
  display: none;
}
#callFull.audio-mode .call-avatar,
#callFull.waiting .call-avatar { display: block; }
#callFull .call-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#callFull.video-mode:not(.waiting) .call-avatar { display: none; }

/* 顶部：名字 + 状态胶囊（浅色深字） */
#callFull .call-top {
  position: absolute; top: 46px; left: 0; right: 0; text-align: center;
  color: #12384F; text-shadow: none;
}
#callFull .call-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
#callFull .call-time {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin: 9px auto 0; padding: 5px 15px;
  border-radius: 999px; background: rgba(255,255,255,.72);
  color: #4E7A97; font-size: 12.5px; letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px -12px rgba(16,52,74,.5);
}
#callFull.connected .call-time::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #2E9E6B; box-shadow: 0 0 6px rgba(46,158,107,.7);
}

/* 底部按钮：大圆 + 文字标签 */
#callFull .call-actions {
  position: absolute; left: 0; right: 0; bottom: 42px;
  display: flex; align-items: flex-start; justify-content: center; gap: 30px;
}
#callFull .call-actions > button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; font-family: inherit;
}
#callFull .call-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff; color: #2E7CB8;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -16px rgba(16,52,74,.5), 0 0 0 1px rgba(16,52,74,.04);
  transition: transform .12s cubic-bezier(.2,.7,.3,1), background .16s ease, color .16s ease;
}
#callFull .call-btn svg { width: 25px; height: 25px; }
#callFull .call-btn:active { transform: scale(.93); }
#callFull .call-btn.off { background: #2E7CB8; color: #fff; }
#callFull .call-btn.hangup {
  width: 68px; height: 68px;
  background: linear-gradient(160deg, #F4614A, #DC3520); color: #fff;
  box-shadow: 0 16px 34px -14px rgba(220,53,32,.75);
}
#callFull .call-btn + i,
#callFull .call-actions > button > i {
  font-style: normal; font-size: 11.5px; color: #5C7E94; letter-spacing: .3px;
}

/* 来电卡片：白色圆角卡 + 头像 + 两个大圆按钮 */
#callFull .call-incoming {
  position: relative; z-index: 2;
  width: 82%; max-width: 330px;
  background: rgba(255,255,255,.96);
  border-radius: 26px; padding: 30px 22px 26px;
  text-align: center; color: #12384F;
  box-shadow: 0 34px 70px -30px rgba(16,52,74,.55);
  animation: callCardIn .3s cubic-bezier(.22,.78,.3,1) both;
}
@keyframes callCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
#callFull .ci-av {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px; background: #EAF4FD; border: 3px solid #fff;
  box-shadow: 0 14px 30px -16px rgba(16,52,74,.45);
}
#callFull .ci-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
#callFull .ci-name { font-size: 19px; font-weight: 800; }
#callFull .ci-sub { margin-top: 8px; font-size: 13px; color: #7C93A5; }
#callFull .ci-acts { display: flex; gap: 40px; margin-top: 26px; justify-content: center; }
#callFull .ci-btn {
  flex: 0 0 62px; width: 62px; min-width: 62px; height: 62px; border-radius: 50%; border: 0;
  font-size: 0;   /* 图标化：文字藏起来，只留圆按钮 */
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: transform .12s ease;
}
#callFull .ci-btn:active { transform: scale(.93); }
#callFull .ci-btn.no { background: #F0513A; box-shadow: 0 14px 30px -14px rgba(240,81,58,.7); }
#callFull .ci-btn.yes { background: #33D06F; box-shadow: 0 14px 30px -14px rgba(51,208,111,.7); }
#callFull .ci-btn::after {
  font-size: 24px; color: #fff; line-height: 1;
}
#callFull .ci-btn.no::after { content: '✕'; }
#callFull .ci-btn.yes::after { content: '✓'; }
/* 卡下方补一行提示 */
#callFull .ci-acts + * { color: #7C93A5; }

/* 整层进场 */
#callFull:not(.hidden) { animation: callFadeIn .22s ease both; }
@keyframes callFadeIn {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: none; }
}

body.dark #callFull { background: linear-gradient(165deg, #16283A, #0F1F2E); }
body.dark #callFull .call-name { color: #E4F1FA; }
body.dark #callFull .call-time { background: rgba(255,255,255,.12); color: #BBD3E4; }
body.dark #callFull .call-incoming { background: rgba(22,38,54,.96); color: #E4F1FA; }
body.dark #callFull .call-btn { background: #1C3040; color: #9FD3F5; }
body.dark #callFull .call-btn.hangup { background: linear-gradient(160deg, #F4614A, #DC3520); color: #fff; }
body.dark #callFull .call-actions > button > i { color: #9FB6C9; }

/* 来电中：只留白色卡片，视频/小窗/底部按钮都藏起来 */
#callFull.ringing .call-remote,
#callFull.ringing .call-local,
#callFull.ringing .call-avatar,
#callFull.ringing .call-top,
#callFull.ringing .call-actions { display: none !important; }
#callFull.ringing .call-incoming { display: block !important; }

/* ===== 底部 tabbar：App 内不错位 ===== */
/* 关键：tabbar 是个浮起来的胶囊，不能给它加 padding（会把图标和文字压出来），
   用 margin-bottom 把整块抬到系统导航条上面就行。 */
html.in-app .tabbar {
  height: 60px !important;
  padding: 0 !important;
  margin-bottom: calc(10px + var(--app-safe-bottom, 0px)) !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
html.in-app .tabbar > div {
  padding: 6px 0 !important;
  margin: 0 6px !important;
  box-sizing: border-box !important;
}
/* 图标和文字都不许被压扁 */
html.in-app .tabbar svg { flex: none !important; }
html.in-app .tabbar div > span,
html.in-app .tabbar div > i { flex: none !important; line-height: 1.15 !important; }
/* 登录页那个滑块保持原样（它不是底部导航） */

/* ===== 通话：本地小窗只在有画面时出现 ===== */
/* 没有本地流时不占位，避免语音通话被一块灰色窗口挡着 */
#callFull .call-local {
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
#callFull.has-local .call-local {
  opacity: 1;
  pointer-events: auto;
}
#callFull.audio-mode .call-local,
#callFull.ringing .call-local {
  display: none !important;
}
/* 视频卡还没接到画面时用淡淡的底，不要一块突兀的灰 */
#callFull.video-mode .call-remote {
  background: linear-gradient(160deg, #DCEAF5, #C6DCEB) !important;
}
/* 名字为空时不要留一条空白 */
#callFull .call-name:empty { display: none; }

/* ===== 键盘：聊天页整体上顶 ===== */
/* 网页自己算的键盘高度（--kb-h）直接压聊天页的底边，
   这样输入条永远贴在键盘上沿；App 原生已经抬过 WebView 时 --kb-h 约为 0，不冲突。 */
#chat.kb-open {
  padding-bottom: var(--kb-h, 0px) !important;
  box-sizing: border-box !important;
}
#chat.kb-open .msgs {
  padding-bottom: 12px;
}
/* 输入条：键盘起来时贴住底部，不被消息盖 */
#chat .composer,
#chat .inputbar,
#chat #inputBar {
  position: relative;
  z-index: 4;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* 输入框聚焦时给它一点呼吸的空间 */
#chat.kb-open .composer textarea,
#chat.kb-open .inputbar textarea,
#chat.kb-open #inputMsg {
  scroll-margin-bottom: 24px;
}
/* 红包页也一起，键盘出来时内容区滚动 */
#pkFull.kb-open .pk-full-body {
  padding-bottom: calc(104px + var(--kb-h, 0px)) !important;
}

/* ===== 通话头像占位 ===== */
#callFull .call-avatar.no-photo {
  background: linear-gradient(160deg, #DCEAF5, #C6DCEB);
  display: flex; align-items: center; justify-content: center;
}
#callFull .call-avatar.no-photo img { display: none; }
#callFull .call-avatar-ini {
  font-size: 44px; font-weight: 800; color: #4E7A97;
  line-height: 1; letter-spacing: 0;
}

/* ===== 远端没画面时不留空卡 ===== */
/* 视频模式下，只有 has-remote 才显示远端画面；否则显示大圆头像 + 名字（像语音那样） */
#callFull.video-mode:not(.has-remote) .call-remote {
  display: none !important;
}
#callFull.video-mode:not(.has-remote) .call-avatar {
  display: block !important;
}
/* 本地小窗这时贴回右下角，不挡头像 */
#callFull.video-mode:not(.has-remote) .call-local {
  top: auto; bottom: 132px; right: 18px;
}
#callFull.video-mode:not(.has-remote) .call-avatar {
  top: 40%;
}
/* 对方画面来了再收起头像 */
#callFull.video-mode.has-remote .call-avatar {
  display: none !important;
}

/* ===== 本地小窗：拖动 + 放大 ===== */
#callFull .call-local {
  touch-action: none;
  cursor: grab;
  z-index: 5;
  transition: box-shadow .16s ease;
}
#callFull .call-local:active { cursor: grabbing; }

/* 放大态：铺成一大块（拖动位置由内联 left/top 决定） */
#callFull.big-local .call-local {
  width: min(78vw, 340px) !important;
  height: min(52vh, 460px) !important;
  border-radius: 20px !important;
  box-shadow: 0 26px 60px -26px rgba(11,39,58,.65), 0 0 0 2px rgba(255,255,255,.9) !important;
  object-fit: cover;
}
/* 放大时给对方画面留一角，别被完全盖住 */
#callFull.big-local .call-remote {
  opacity: .55;
  transition: opacity .18s ease;
}
/* 小窗贴边时给点内边距，手感更稳 */
#callFull .call-local::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
}

/* ===== 通话 v4：远端全屏（微信式）+ 本地小窗镜像 ===== */
/* 对方画面铺满整屏；本地画面缩成小窗，点一下放大、双击切前后摄像头 */
#callFull.video-mode .call-remote {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  background: #0E1B26 !important;   /* 没画面的瞬间也不要露出一块浅色 */
}
#callFull.video-mode .call-local {
  right: 14px; top: 92px;
}
/* 全屏画面之上压一层上/下渐变，名字、计时和按钮才看得清 */
#callFull.video-mode.has-remote .call-top {
  top: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px) + var(--app-safe-top, 0px)) 0 42px;
  background: linear-gradient(180deg, rgba(4,16,26,.56) 0%, rgba(4,16,26,.22) 58%, rgba(4,16,26,0) 100%);
  z-index: 6;
}
#callFull.video-mode.has-remote .call-name {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
#callFull.video-mode.has-remote .call-time {
  background: rgba(8,24,36,.42);
  color: #EDF6FD;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#callFull.video-mode.has-remote .call-actions {
  bottom: 0;
  padding: 56px 0 calc(24px + env(safe-area-inset-bottom, 0px) + var(--app-safe-bottom, 0px));
  background: linear-gradient(0deg, rgba(4,16,26,.58) 0%, rgba(4,16,26,.2) 58%, rgba(4,16,26,0) 100%);
  z-index: 6;
}
#callFull.video-mode.has-remote .call-actions > button > i {
  color: rgba(255,255,255,.86);
}
/* 本地小窗：前置摄像头镜像（看着像照镜子），后置不镜像 */
#callFull .call-local.mirror { transform: scaleX(-1); }
/* 自己画面放大时，对方还在全屏，只轻压暗一点，别把人看没了 */
#callFull.big-local .call-remote { opacity: .72; }
/* 全屏视频上的小窗：白边和投影更明显，隔着亮画面也拎得清 */
#callFull.video-mode .call-local {
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.72);
}
/* 竖屏全屏时对方是横画面也不要留黑边：cover 由上面统一处理 */

/* ===== App 内：fixed 顶栏让出状态栏 ===== */
/* 朋友圈 / 收藏 / 搜索 的 .topbar 是 position:fixed;top:0，不受父级 padding 影响，
   所以必须自己往下让状态栏高度，同时父页把内容区一起推下去（不然内容被压在顶栏底下）。 */
html.in-app #moments > .topbar,
html.in-app #favPage > .topbar,
html.in-app #searchPage > .topbar,
html.in-app #gmInvitePage > .topbar {
  position: fixed !important;
  top: var(--app-safe-top, 0px) !important;
  left: 0; right: 0;
}
html.in-app #moments,
html.in-app #favPage,
html.in-app #searchPage,
html.in-app #gmInvitePage {
  padding-top: calc(54px + var(--app-safe-top, 0px)) !important;
}
/* 顶栏后面那层列表别再自己加 padding-top，避免二次下移 */
html.in-app #moments .mo-list,
html.in-app #moments > .content {
  padding-top: 6px !important;
}
/* 状态栏底色跟页面走，别留一条生硬的空白 */
html.in-app #moments > .topbar::before,
html.in-app #favPage > .topbar::before,
html.in-app #searchPage > .topbar::before {
  content: '';
  position: fixed; left: 0; right: 0; top: 0;
  height: var(--app-safe-top, 0px);
  background: var(--c-bg-1, #F3F8FC);
  z-index: -1;
}

/* ===== 登录页：验证码 / 协议 ===== */
#capTip {
  margin: -2px 0 10px; padding: 10px 14px;
  border-radius: 14px; background: rgba(74,159,216,.10);
  border: 1px dashed rgba(74,159,216,.35);
  color: var(--blue-deep); font-size: 15px; font-weight: 700;
  letter-spacing: .5px; text-align: center;
}
#capField .eye { font-size: 17px; color: var(--blue); }
.field input.bad { color: #D6453A; }
/* 协议勾选：完全沿用 .remember 的 checkbox 外观，这里只处理换行和间距 */
.remember.agree-line {
  align-items: flex-start;
  margin: 4px 2px 12px;
  font-size: 12.5px; color: var(--muted);
  line-height: 1.55; cursor: pointer;
}
.remember.agree-line input[type=checkbox] { margin-top: 1px; }
.remember.agree-line span { flex: 1; }
.agree-line b { color: var(--blue-deep); font-weight: 700; }
.find-pwd { font-size: 12.5px; color: var(--blue); margin-left: auto; }
.login-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 小屏（矮屏 / 小机型）：整块收一收，别把按钮顶出去 */
@media (max-height: 680px) {
  #login { padding: 0 22px; }
  #login .brand { margin-bottom: 12px; }
  #login .brand h1 { font-size: 24px; }
  #login .brand .sub { font-size: 12px; margin-top: 4px; }
  #login .login-tabs { margin-bottom: 10px; }
  #login .field { margin-bottom: 9px; }
  #login .field input { height: 44px; font-size: 14px; }
  #login .btn-primary { height: 46px; margin-top: 6px; }
  #login .agree-line { font-size: 11.5px; margin-bottom: 8px; }
  #login .login-foot { font-size: 12px; }
}
@media (max-width: 340px) {
  #login { padding: 0 16px; }
  #login .brand h1 { font-size: 22px; }
  #login .field input { font-size: 13.5px; }
}
/* App 内：登录页顶部要避开状态栏 */
html.in-app #login { padding-top: calc(var(--app-safe-top, 0px) + 12px); }

/* 协议勾选：与记住账号同款 */
.remember.agree-line { align-items: center; }
.remember.agree-line input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 2px 0 0;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid var(--c-line-strong, #C8DCEA);
  background: #fff;
  accent-color: #3E8FC9;
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: background .15s ease, border-color .15s ease;
}
.remember.agree-line input[type=checkbox]:checked {
  background: linear-gradient(160deg, #8FD0F2, #3E8FC9);
  border-color: #3E8FC9;
}
.remember.agree-line input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}



/* ===== 群通话：全屏 ===== */
.gcall-full {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, #EAF4FD 0%, #D9EBF9 45%, #C9E2F3 100%);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  box-sizing: border-box;
  animation: gcIn .22s ease both;
}
.gcall-full.hidden { display: none !important; }
@keyframes gcIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.gc-bg {
  position: absolute; inset: -10%;
  background: radial-gradient(60% 45% at 50% 8%, rgba(255,255,255,.75), transparent 70%),
              radial-gradient(70% 50% at 50% 100%, rgba(120,190,235,.30), transparent 70%);
  pointer-events: none;
}

/* 顶部 */
.gc-top {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 4px 4px 10px;
}
.gc-title { font-size: 16.5px; font-weight: 800; color: #12384F; letter-spacing: .3px; }
.gc-sub { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5F7A8C; }
.gc-sub .gc-dot { width: 6px; height: 6px; border-radius: 50%; background: #33C46F; box-shadow: 0 0 8px rgba(51,196,111,.8); }
.gc-sub i { font-style: normal; color: #7C93A5; }
.gc-min-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.75); color: #2E7CB8;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -10px rgba(16,52,74,.5);
}
.gc-min-btn svg { width: 20px; height: 20px; }
.gc-min-btn:active { transform: scale(.94); }

/* 成员区：全屏网格，自动按人数排 */
.gc-members {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: grid; gap: 8px; align-content: center;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px 0 8px; overflow-y: auto;
}
.gc-members[data-n="1"] { grid-template-columns: 1fr; }
.gc-members[data-n="3"], .gc-members[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.gc-members[data-n="5"], .gc-members[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.gcall-full.gc-video .gc-members[data-n="1"] { grid-template-columns: 1fr; }

.gc-member {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF, #EAF4FD);
  box-shadow: 0 10px 26px -18px rgba(16,52,74,.5), 0 0 0 1px rgba(255,255,255,.8) inset;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 120px; padding: 12px;
}
.gcall-full.gc-video .gc-member { min-height: 0; padding: 0; aspect-ratio: 3/4; }
.gc-av {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, #CFE7F7, #9FD0ED);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #2E7CB8;
  box-shadow: 0 8px 20px -12px rgba(16,52,74,.55);
}
.gcall-full.gc-video .gc-av { width: 100%; height: 100%; border-radius: 0; }
.gc-av img { width: 100%; height: 100%; object-fit: cover; }
.gc-av video { width: 100%; height: 100%; object-fit: cover; }
.gc-name {
  margin-top: 8px; font-size: 12px; color: #4E7A97; font-weight: 600;
  max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gcall-full.gc-video .gc-name {
  position: absolute; left: 10px; bottom: 8px; margin: 0;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); font-size: 11.5px;
}
/* 静音角标 */
.gc-member.mute::after {
  content: ''; position: absolute; right: 10px; top: 10px; width: 18px; height: 18px;
  border-radius: 50%; background: #E8533C url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><path d='M4 4l16 16'/><rect x='9' y='3' width='6' height='10' rx='3'/></svg>") center/11px no-repeat;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.4);
}

/* 底部按钮 */
.gc-actions {
  position: relative; z-index: 2;
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 12px 6px 4px;
}
.gc-btn {
  background: none; border: 0; padding: 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px; color: #2E7CB8; font-family: inherit;
  transition: transform .12s cubic-bezier(.2,.7,.3,1);
}
.gc-btn:active { transform: scale(.93); }
.gc-btn > svg:first-child {
  width: 54px; height: 54px; padding: 15px; box-sizing: border-box;
  border-radius: 50%; background: #fff; color: #2E7CB8;
  box-shadow: 0 12px 26px -16px rgba(16,52,74,.6);
}
.gc-btn i { font-style: normal; font-size: 11px; color: #5F7A8C; }
.gc-btn.off > svg:first-child { background: #2E7CB8; color: #fff; }
.gc-btn.on > svg:first-child { background: linear-gradient(160deg,#7CC6F0,#3E8ECD); color: #fff; }
.gc-btn.hangup > svg:first-child {
  background: linear-gradient(160deg, #F4614A, #DC3520); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(220,53,32,.85);
}

/* 最小化后的悬浮球（可拖） */
.gcall-float {
  position: fixed; right: 16px; bottom: 120px; z-index: 71;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(150deg, #4FA3DE, #3E8ECD); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; box-shadow: 0 16px 34px -16px rgba(62,142,205,.9), 0 0 0 3px rgba(255,255,255,.6);
  touch-action: none; cursor: grab;
}
.gcall-float.hidden { display: none !important; }
.gcall-float svg { width: 22px; height: 22px; }
.gcall-float span { font-size: 9.5px; font-variant-numeric: tabular-nums; opacity: .95; }
.gcall-float .gf-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(62,142,205,.35);
  animation: gfPulse 2s ease-out infinite; pointer-events: none;
}
@keyframes gfPulse { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.18); opacity: 0; } 100% { opacity: 0; } }
.gcall-float:active { cursor: grabbing; }

body.dark .gcall-full { background: linear-gradient(170deg, #12283A, #0E1F2E); }
body.dark .gc-title { color: #E4F1FA; }
body.dark .gc-member { background: linear-gradient(160deg, #1A3040, #142635); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
body.dark .gc-btn > svg:first-child { background: #1C3040; color: #9FD3F5; }


/* ===== 潮生阁资料卡 v3 ===== */
#profilesPage, #profileDetailPage { background: linear-gradient(180deg, #F7FCFF, #E9F4FD); }

/* --- 列表：两列固定尺寸卡 --- */
.pf-list { flex: 1; overflow-y: auto; padding: 12px 12px 30px; }
.pf-grid-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  align-content: start; align-items: start;
  grid-auto-rows: max-content;   /* 行高按内容撑开，别被容器压扁 */
  padding-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}
.pf-mini { height: auto; }
.pf-mini {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px -20px rgba(16,52,74,.55), 0 0 0 1px rgba(24,68,102,.04);
  display: flex; flex-direction: column;
  transition: transform .12s cubic-bezier(.2,.7,.3,1);
}
.pf-mini:active { transform: scale(.975); }
.pf-mini-cover { position: relative; width: 100%; height: 168px; background: linear-gradient(160deg,#E7F3FC,#D6EAF7); overflow: hidden; }
.pf-mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-mini-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #9FC8E3; }
.pf-price-tag {
  position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px;
  border-radius: 11px; background: rgba(9,28,42,.62); color: #FFE9A8;
  font-size: 11px; font-weight: 800; letter-spacing: .2px;
  display: flex; align-items: center; backdrop-filter: blur(4px);
}
.pf-price-tag.free { background: rgba(46,158,107,.85); color: #fff; }
.pf-mini-n {
  position: absolute; right: 8px; bottom: 8px; height: 20px; padding: 0 7px;
  border-radius: 10px; background: rgba(9,28,42,.52); color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center;
}
.pf-mini-body { padding: 10px 11px 12px; }
.pf-mini-title {
  font-size: 13.5px; font-weight: 800; color: #12384F; letter-spacing: .2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-mini-intro {
  margin-top: 4px; font-size: 11.5px; color: #8098A8; line-height: 1.5;
  height: 34px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* --- 详情页 --- */
.pfd-body { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }
.pfd-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.pfd-imgs img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px;
  background: #EAF4FD; cursor: zoom-in; display: block;
}
.pfd-card {
  background: #fff; border-radius: 20px; padding: 16px 16px 14px; margin-bottom: 12px;
  box-shadow: 0 12px 30px -22px rgba(16,52,74,.5), 0 0 0 1px rgba(24,68,102,.045);
}
.pfd-head { font-size: 17px; font-weight: 800; color: #12384F; letter-spacing: .3px; }
.pfd-intro { margin-top: 8px; font-size: 14px; color: #4E6B7C; line-height: 1.75; white-space: pre-wrap; }
.pfd-count { margin-top: 10px; font-size: 11.5px; color: #9AB0BF; }

/* 复用 v2 的联系方式卡样式 */
.pf-lock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border-radius: 18px;
  background: linear-gradient(150deg, #F4FAFF, #E6F2FC);
  border: 1px solid rgba(74,159,216,.16);
}
.pf-lock-l { display: flex; flex-direction: column; gap: 3px; }
.pf-lock-l b { font-size: 13.5px; color: #2E7CB8; }
.pf-lock-l span { font-size: 11.5px; color: #8AA3B5; }
.pf-pay {
  height: 38px; padding: 0 18px; border-radius: 19px; border: 0; flex: none;
  background: linear-gradient(135deg, #4FA3DE, #3E8ECD); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 800;
  box-shadow: 0 10px 22px -12px rgba(62,142,205,.95);
}
.pf-pay:active { transform: scale(.95); }
.pf-pay:disabled { opacity: .7; }
.pf-contact {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 18px;
  background: linear-gradient(150deg, #F1FBF5, #E2F6EA);
  border: 1px solid rgba(46,158,107,.20);
}
.pf-contact .k { font-size: 11.5px; color: #4E9E75; flex: none; }
.pf-contact .v { flex: 1; font-size: 14px; font-weight: 700; color: #14603F; word-break: break-all; }
.pf-copy {
  flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 0;
  background: rgba(46,158,107,.14); color: #1D8A57;
  font-family: inherit; font-size: 12px; font-weight: 700;
}
.pf-empty { text-align: center; color: #8AA3B5; font-size: 13.5px; padding: 70px 24px; line-height: 1.8; }

body.dark .pf-mini, body.dark .pfd-card { background: #14252F; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
body.dark .pf-mini-title, body.dark .pfd-head { color: #E4F1FA; }
body.dark .pfd-intro { color: #A9C0CE; }

/* ===== 资料卡详情页 v2 ===== */
#profileDetailPage { background: linear-gradient(180deg, #F7FCFF 0%, #EAF4FD 100%); }
.pfd-body { flex: 1; overflow-y: auto; padding: 10px 14px 0; }

/* 首图大图 */
.pfd-hero {
  position: relative; height: 260px; border-radius: 22px; overflow: hidden;
  margin-bottom: 12px; background: #DCEBF7;
  box-shadow: 0 18px 40px -26px rgba(16,52,74,.6);
}
.pfd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pfd-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,28,42,0) 55%, rgba(9,28,42,.35));
  pointer-events: none;
}
.pfd-hero-tag {
  position: absolute; left: 14px; bottom: 14px; height: 26px; padding: 0 12px;
  border-radius: 13px; background: rgba(9,28,42,.6); color: #FFE9A8;
  font-size: 12px; font-weight: 800; display: flex; align-items: center;
  backdrop-filter: blur(6px); letter-spacing: .3px;
}

/* 主信息卡 */
.pfd-card {
  background: #fff; border-radius: 20px; padding: 18px 17px 15px;
  box-shadow: 0 14px 34px -26px rgba(16,52,74,.5), 0 0 0 1px rgba(24,68,102,.04);
  margin-bottom: 12px;
}
.pfd-head { font-size: 18px; font-weight: 800; color: #12384F; letter-spacing: .4px; }
.pfd-intro {
  margin-top: 10px; font-size: 14px; color: #4E6B7C; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.pfd-intro.pfd-muted { color: #A3B7C4; font-style: normal; }
.pfd-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(24,68,102,.07);
  font-size: 11.5px; color: #8FA7B7;
}
.pfd-meta i { width: 1px; height: 10px; background: rgba(24,68,102,.14); }

/* 其余图片：三列网格 */
.pfd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.pfd-grid img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px;
  background: #EAF4FD; cursor: zoom-in; display: block;
}

/* 联系方式：锁定态 */
.pfd-lock {
  background: linear-gradient(150deg, #F5FAFF, #E4F1FC);
  border: 1px solid rgba(74,159,216,.18);
  border-radius: 20px; padding: 16px;
  box-shadow: 0 12px 28px -24px rgba(46,124,184,.8);
}
.pfd-lock-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pfd-lock-ico {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 6px 16px -10px rgba(16,52,74,.5);
}
.pfd-lock-txt { display: flex; flex-direction: column; gap: 3px; }
.pfd-lock-txt b { font-size: 14px; color: #1F5A85; font-weight: 800; }
.pfd-lock-txt span { font-size: 11.5px; color: #7C97AA; }
.pfd-pay {
  width: 100%; height: 46px; border-radius: 15px; border: 0;
  background: linear-gradient(135deg, #58ADEB, #3E8ECD); color: #fff;
  font-family: inherit; font-size: 14.5px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 14px 28px -14px rgba(62,142,205,.95);
  transition: transform .12s cubic-bezier(.2,.7,.3,1);
}
.pfd-pay:active { transform: scale(.97); }
.pfd-pay:disabled { opacity: .75; }

/* 联系方式：已解锁 */
.pfd-contact {
  background: linear-gradient(150deg, #F2FBF6, #DFF5E8);
  border: 1px solid rgba(46,158,107,.22);
  border-radius: 20px; padding: 15px 16px 16px;
  box-shadow: 0 12px 28px -24px rgba(46,158,107,.85);
}
.pfd-contact-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pfd-contact-k { font-size: 12px; font-weight: 700; color: #3E9370; letter-spacing: .5px; }
.pfd-copy {
  height: 26px; padding: 0 12px; border-radius: 13px; border: 0;
  background: rgba(46,158,107,.16); color: #1B8A56;
  font-family: inherit; font-size: 11.5px; font-weight: 800;
}
.pfd-copy:active { transform: scale(.94); }
.pfd-contact-v { font-size: 17px; font-weight: 800; color: #14603F; word-break: break-all; letter-spacing: .3px; }

body.dark #profileDetailPage { background: linear-gradient(180deg, #0F1E28, #12242F); }
body.dark .pfd-card { background: #14252F; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
body.dark .pfd-head { color: #E4F1FA; }
body.dark .pfd-intro { color: #A9C0CE; }
body.dark .pfd-lock { background: linear-gradient(150deg, #17293A, #14252F); border-color: rgba(90,170,220,.2); }
body.dark .pfd-lock-ico { background: #1C3040; }
body.dark .pfd-lock-txt b { color: #9FD3F5; }

/* ===== 资料卡详情 v3（细腻版） ===== */
#profileDetailPage { background: #F6FAFD; }
#profileDetailPage > .topbar {
  background: rgba(246,250,253,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24,68,102,.05);
}
.pfd2-wrap { padding: 10px 14px 0; }

/* 首图：4:5 比例，圆角 24，轻投影 */
.pfd2-hero {
  border-radius: 24px; overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 20px 44px -30px rgba(16,52,74,.55);
  background: #E4EFF7;
}
.pfd2-hero img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  cursor: zoom-in;
}

/* 主信息：无卡底色，靠留白和字距 */
.pfd2-main { padding: 2px 4px 18px; }
.pfd2-title {
  font-size: 19px; font-weight: 800; color: #12384F;
  letter-spacing: .5px; line-height: 1.35;
}
.pfd2-tags { display: flex; gap: 7px; margin-top: 10px; }
.pfd2-tag {
  height: 23px; padding: 0 10px; border-radius: 12px;
  background: rgba(70,140,190,.075); color: #58809A;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  display: inline-flex; align-items: center;
}
.pfd2-tag.gold { background: rgba(201,138,60,.10); color: #A9762F; }
.pfd2-tag.green { background: rgba(46,158,107,.10); color: #2B8A5C; }

.pfd2-intro {
  margin-top: 16px; padding-left: 13px;
  border-left: 2px solid rgba(74,159,216,.28);
  font-size: 14px; color: #4A6474; line-height: 1.95;
  white-space: pre-wrap; word-break: break-word; letter-spacing: .15px;
}
.pfd2-intro.empty { color: #A9BCC9; border-left-color: rgba(24,68,102,.10); }

/* 图集：两列，4:5，圆角 16 */
.pfd2-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.pfd2-gallery img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; background: #E4EFF7; display: block; cursor: zoom-in;
}

/* 联系方式 */
.pfd2-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(24,68,102,.06);
  box-shadow: 0 10px 26px -24px rgba(16,52,74,.5);
}
.pfd2-contact.locked { display: block; }
.pfd2-contact-row { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.pfd2-lock-dot {
  width: 32px; height: 32px; border-radius: 11px; flex: none;
  background: rgba(74,159,216,.10);
  position: relative;
}
.pfd2-lock-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  transform: translate(-50%,-50%);
  background: #5E9DC7;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='4.5' y='10.5' width='15' height='10' rx='2.5'/><path d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='4.5' y='10.5' width='15' height='10' rx='2.5'/><path d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/></svg>") center/contain no-repeat;
}
.pfd2-contact-txt { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pfd2-contact-txt b { font-size: 13.5px; color: #2A4E66; font-weight: 700; letter-spacing: .2px; }
.pfd2-contact-txt span { font-size: 11.5px; color: #90A5B4; }
.pfd2-val {
  font-size: 16px !important; font-weight: 800 !important; color: #16465F !important;
  word-break: break-all; letter-spacing: .3px; margin-top: 2px;
}
.pfd2-pay {
  width: 100%; height: 44px; border-radius: 14px; border: 0;
  background: #2F7FB5; color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .6px;
  box-shadow: 0 12px 26px -16px rgba(47,127,181,.95);
  transition: transform .12s cubic-bezier(.2,.7,.3,1), background .15s ease;
}
.pfd2-pay:active { transform: scale(.98); background: #2A6F9F; }
.pfd2-pay:disabled { opacity: .6; }
.pfd2-copy {
  flex: none; height: 30px; padding: 0 13px; border-radius: 15px; border: 0;
  background: rgba(47,127,181,.09); color: #2C7CB2;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.pfd2-copy:active { transform: scale(.95); }
.pfd2-bottom { height: calc(env(safe-area-inset-bottom, 0px) + 26px); }

body.dark #profileDetailPage { background: #0F1C25; }
body.dark #profileDetailPage > .topbar { background: rgba(15,28,37,.92); border-bottom-color: rgba(255,255,255,.06); }
body.dark .pfd2-title { color: #E6F2FA; }
body.dark .pfd2-intro { color: #A3BAC9; border-left-color: rgba(120,190,235,.3); }
body.dark .pfd2-contact { background: #16262F; border-color: rgba(255,255,255,.07); }
body.dark .pfd2-contact-txt b { color: #C7DDEA; }
body.dark .pfd2-val { color: #E4F1FA !important; }

/* ===== 资料卡精细化 2026 ===== */

/* ----- 列表卡：层次与光感 ----- */
#profilesPage { background: #F6FAFD; }
#profilesPage > .topbar {
  background: rgba(246,250,253,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24,68,102,.05);
}
.pf-grid-list { gap: 13px; padding: 12px 13px 44px; }

.pf-mini {
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16,52,74,.05),
    0 10px 24px -18px rgba(16,52,74,.55);
  border: 1px solid rgba(24,68,102,.045);
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease;
}
.pf-mini:active {
  transform: scale(.972);
  box-shadow: 0 1px 2px rgba(16,52,74,.06), 0 4px 12px -10px rgba(16,52,74,.5);
}
.pf-mini-cover { height: 172px; background: linear-gradient(160deg,#EDF6FD,#DCEBF7); }
.pf-mini-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,28,42,.10), rgba(9,28,42,0) 38%);
  pointer-events: none;
}

/* 价格：深色磨砂 + 暖金字 */
.pf-price-tag {
  left: 9px; top: 9px; height: 24px; padding: 0 9px;
  border-radius: 12px;
  background: rgba(14,34,48,.55);
  backdrop-filter: blur(8px) saturate(120%);
  color: #FFDFA0; font-size: 11.5px; font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(9,28,42,.18);
}
.pf-price-tag.free {
  background: rgba(36,150,100,.82); color: #F2FFF8;
}
.pf-mini-n {
  right: 9px; bottom: 9px; height: 21px; padding: 0 8px; border-radius: 11px;
  background: rgba(14,34,48,.42); backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 700; color: #F0F7FC;
}

.pf-mini-body { padding: 11px 12px 13px; }
.pf-mini-title {
  font-size: 13.5px; font-weight: 800; color: #16394F;
  letter-spacing: .2px; line-height: 1.4;
}
.pf-mini-intro {
  margin-top: 5px; font-size: 11.5px; color: #8CA2B1;
  line-height: 1.55; height: 36px;
}

/* 空态 */
.pf-empty { color: #9BB0BE; }

/* ----- 详情页：光的层次 ----- */
#profileDetailPage { background: linear-gradient(180deg, #F8FBFE 0%, #F1F7FC 60%, #EDF5FB 100%); }
.pfd2-wrap { padding: 12px 14px 0; }

.pfd2-hero {
  border-radius: 26px;
  box-shadow:
    0 2px 6px rgba(16,52,74,.06),
    0 26px 50px -34px rgba(16,52,74,.6);
  position: relative;
}
.pfd2-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, rgba(9,28,42,0), rgba(9,28,42,.16));
  pointer-events: none;
}

.pfd2-main { padding: 4px 5px 20px; }
.pfd2-title {
  font-size: 20px; font-weight: 800; color: #123547;
  letter-spacing: .6px; line-height: 1.32;
}
.pfd2-tags { margin-top: 11px; gap: 6px; }
.pfd2-tag {
  height: 24px; padding: 0 11px; border-radius: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .25px;
}
.pfd2-tag.gold { background: rgba(201,138,60,.09); color: #A9762F; }
.pfd2-tag.green { background: rgba(46,158,107,.09); color: #2B8A5C; }

.pfd2-intro {
  margin-top: 17px; padding-left: 14px;
  border-left: 2px solid rgba(74,159,216,.22);
  font-size: 13.8px; color: #4A6474; line-height: 2;
  letter-spacing: .2px;
}

.pfd2-gallery { gap: 9px; margin-bottom: 20px; }
.pfd2-gallery img {
  border-radius: 18px;
  box-shadow: 0 8px 20px -18px rgba(16,52,74,.5);
  transition: transform .18s ease;
}
.pfd2-gallery img:active { transform: scale(.985); }

.pfd2-contact {
  border-radius: 20px; padding: 16px 16px 17px;
  background: #fff;
  border: 1px solid rgba(24,68,102,.055);
  box-shadow: 0 1px 2px rgba(16,52,74,.04), 0 16px 34px -28px rgba(16,52,74,.55);
}
.pfd2-contact-txt b { font-size: 13.5px; color: #274B60; }
.pfd2-contact-txt span { font-size: 11.5px; color: #93A8B6; }
.pfd2-pay {
  height: 46px; border-radius: 15px;
  background: linear-gradient(180deg, #3A8CC2, #2E76A8);
  box-shadow: 0 2px 0 rgba(255,255,255,.16) inset, 0 14px 28px -18px rgba(46,118,168,.95);
  font-size: 14px; letter-spacing: .8px;
}
.pfd2-pay:active { background: linear-gradient(180deg, #3480B2, #2A6A98); }
.pfd2-copy {
  background: rgba(47,127,181,.085); color: #2C7CB2;
  border-radius: 14px; height: 30px;
}
.pfd2-val { font-size: 16.5px !important; letter-spacing: .4px; color: #12455E !important; }

/* 顶栏标题略小更精致 */
#profileDetailPage > .topbar .title,
#profilesPage > .topbar .title { letter-spacing: .8px; font-weight: 800; }

/* ===== 资料卡详情 v4（白卡统一） ===== */
#profileDetailPage { background: #F0F6FB; }
#profileDetailPage > .topbar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(24,68,102,.06);
}
.pfd3-page { padding: 12px 12px 0; }
.pfd3-bottom { height: calc(env(safe-area-inset-bottom, 0px) + 26px); }

/* 整张白卡 */
.pfd3-card {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,52,74,.05), 0 14px 32px -26px rgba(16,52,74,.5);
  border: 1px solid rgba(24,68,102,.04);
}

/* 首图：卡内铺满，底部圆角由卡片裁切 */
.pfd3-hero { background: #E8F2FA; }
.pfd3-hero img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  cursor: zoom-in;
}

/* 文字区 */
.pfd3-main { padding: 16px 16px 4px; }
.pfd3-title-row { display: flex; align-items: flex-start; gap: 10px; }
.pfd3-title {
  flex: 1; font-size: 17px; font-weight: 800; color: #14394E;
  letter-spacing: .4px; line-height: 1.4;
}
.pfd3-badge {
  flex: none; margin-top: 2px; height: 24px; padding: 0 10px; border-radius: 12px;
  background: #FFF6E3; color: #B27E2E;
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  display: inline-flex; align-items: center;
}
.pfd3-badge.free { background: #E8F8EF; color: #2C8B5E; }
.pfd3-sub {
  margin-top: 7px; font-size: 11.5px; color: #96ABBA; letter-spacing: .2px;
}
.pfd3-intro {
  margin-top: 13px; font-size: 13.5px; color: #4B6575; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word; letter-spacing: .12px;
}
.pfd3-intro.empty { color: #A9BCC9; }

/* 图集：横向滑动相册 */
.pfd3-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 14px 16px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pfd3-strip::-webkit-scrollbar { display: none; }
.pfd3-strip img {
  flex: none; width: 118px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px; background: #E8F2FA; cursor: zoom-in;
  scroll-snap-align: start;
}

/* 联系方式：卡内底部条 */
.pfd3-contact {
  margin: 0 16px 16px;
  border-radius: 16px;
  background: #F5FAFF;
  border: 1px solid rgba(74,159,216,.13);
  padding: 13px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pfd3-contact-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pfd3-contact-k { font-size: 11px; color: #7E97A9; letter-spacing: .4px; }
.pfd3-contact-s { font-size: 12px; color: #8CA3B2; }
.pfd3-contact-v {
  font-size: 15px; font-weight: 800; color: #16506C;
  word-break: break-all; letter-spacing: .3px;
}
.pfd3-pay {
  flex: none; height: 36px; padding: 0 16px; border-radius: 12px; border: 0;
  background: #2E7FB5; color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .4px;
  box-shadow: 0 8px 18px -12px rgba(46,127,181,.9);
  transition: transform .12s ease, background .15s ease;
}
.pfd3-pay:active { transform: scale(.96); background: #2A6F9D; }
.pfd3-pay:disabled { opacity: .65; }
.pfd3-copy {
  flex: none; height: 30px; padding: 0 13px; border-radius: 10px; border: 0;
  background: rgba(46,127,181,.10); color: #2C7CB2;
  font-family: inherit; font-size: 12px; font-weight: 700;
}
.pfd3-copy:active { transform: scale(.95); }

body.dark #profileDetailPage { background: #0E1B24; }
body.dark #profileDetailPage > .topbar { background: rgba(22,38,47,.9); border-bottom-color: rgba(255,255,255,.06); }
body.dark .pfd3-card { background: #16262F; border-color: rgba(255,255,255,.05); }
body.dark .pfd3-title { color: #E6F2FA; }
body.dark .pfd3-intro { color: #A6BDCB; }
body.dark .pfd3-contact { background: #1A2C38; border-color: rgba(120,190,235,.16); }
body.dark .pfd3-contact-v { color: #CFE6F4; }

/* ===== 资料卡详情 v5（笔记式） ===== */
#profileDetailPage { background: #fff; }
#profileDetailPage > .topbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24,68,102,.06);
}
#profileDetailPage .pfd-body { padding: 0 0 104px; }

/* 全宽轮播 */
.pfd5-gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background: #F1F7FC;
}
.pfd5-gallery::-webkit-scrollbar { display: none; }
.pfd5-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center;
  background: #F1F7FC;
}
.pfd5-slide img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  cursor: zoom-in;
}
.pfd5-dots {
  display: flex; justify-content: center; gap: 5px;
  padding: 9px 0 0; margin-top: -26px; position: relative; z-index: 2;
  pointer-events: none;
}
.pfd5-dots i {
  width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55);
  transition: width .2s ease, background .2s ease;
}
.pfd5-dots i.on { width: 14px; background: #fff; }

/* 正文区 */
.pfd5-content { padding: 16px 16px 0; }
.pfd5-title {
  font-size: 18px; font-weight: 800; color: #14394E;
  letter-spacing: .4px; line-height: 1.45;
}
.pfd5-meta {
  display: flex; align-items: center; gap: 7px; margin-top: 11px;
  font-size: 11.5px; color: #8FA6B6;
}
.pfd5-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(150deg, #A8D8F5, #62B3E4);
  color: #fff; font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.pfd5-who { color: #55707F; font-weight: 600; }
.pfd5-dot { color: #B9CAD6; }
.pfd5-price {
  margin-left: auto; color: #A9762F; font-weight: 800; font-size: 12px;
  background: #FFF6E3; padding: 3px 9px; border-radius: 10px;
}
.pfd5-intro {
  margin-top: 14px; font-size: 14px; color: #3F5866; line-height: 1.9;
  white-space: pre-wrap; word-break: break-word; letter-spacing: .15px;
}
.pfd5-intro.empty { color: #A9BCC9; }

/* 底部固定操作栏 */
/* 底部栏改成视口固定 */
.pfd5-spacer { height: 104px; }
.pfd5-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(24,68,102,.07);
}
.pfd5-bar-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pfd5-bar-k { font-size: 11.5px; color: #7E97A9; letter-spacing: .3px; }
.pfd5-bar-s { font-size: 11.5px; color: #9BB0BE; }
.pfd5-bar-v {
  font-size: 15.5px; font-weight: 800; color: #16506C;
  word-break: break-all; letter-spacing: .3px;
}
.pfd5-pay {
  flex: none; height: 42px; padding: 0 22px; border-radius: 13px; border: 0;
  background: linear-gradient(180deg, #3D8FC6, #2E76A8); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 10px 22px -14px rgba(46,118,168,.95);
  transition: transform .12s ease, background .15s ease;
}
.pfd5-pay:active { transform: scale(.97); background: linear-gradient(180deg, #3684B8, #2A6A98); }
.pfd5-pay:disabled { opacity: .65; }
.pfd5-copy {
  flex: none; height: 34px; padding: 0 16px; border-radius: 11px; border: 0;
  background: rgba(46,127,181,.10); color: #2C7CB2;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
}
.pfd5-copy:active { transform: scale(.95); }

body.dark #profileDetailPage { background: #101E27; }
body.dark #profileDetailPage > .topbar { background: rgba(22,38,47,.95); }
body.dark .pfd5-gallery, body.dark .pfd5-slide { background: #0D1A22; }
body.dark .pfd5-title { color: #E6F2FA; }
body.dark .pfd5-intro { color: #A6BDCB; }
body.dark .pfd5-bar { background: rgba(22,38,47,.95); border-top-color: rgba(255,255,255,.07); }
body.dark .pfd5-bar-v { color: #CFE6F4; }


/* ===== 键盘：用高度收缩代替内边距 ===== */
/* #chat 是 position:fixed + height:100vh + overflow:hidden，
   padding-bottom 不会把内容推上去，只会把输入条挤出可视区（被 overflow 裁掉）。
   这里改成直接缩短 #chat 的高度，输入条自然贴上键盘上沿。 */
#chat.kb-open {
  height: calc(100vh - var(--kb-h, 0px)) !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
@supports (height: 100dvh) {
  #chat.kb-open {
    height: calc(100dvh - var(--kb-h, 0px)) !important;
  }
}
/* 键盘开着时，消息区要留出输入条高度，别被压住 */
#chat.kb-open #msgs { padding-bottom: 8px !important; }
/* 输入条本身贴底，不要额外安全区（键盘已经占了） */
#chat.kb-open .composer {
  padding-bottom: 10px !important;
  position: relative !important;
  bottom: auto !important;
}
/* 输入框聚焦时有轻微高亮，提示当前在用 */
#chat.kb-open .composer textarea,
#chat.kb-open #inputMsg {
  box-shadow: 0 0 0 2px rgba(74,159,216,.16) !important;
  transition: box-shadow .15s ease;
}

/* ===== 键盘：抬高底边（正解）===== */
/* #chat 是 .page（position:fixed; inset:0 —— 上下都贴 0），
   这种情况下 height 会被浏览器忽略，所以之前怎么设高度都没用。
   正确做法是把底边往上抬：bottom = 键盘高度。 */
html body #chat.kb-open {
  bottom: var(--kb-h, 0px) !important;
  top: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
/* 键盘开着：消息区不额外压缩，输入条自然贴底 */
html body #chat.kb-open #msgs {
  padding-bottom: 10px !important;
}
html body #chat.kb-open .composer {
  padding-bottom: 10px !important;
  position: relative !important;
  bottom: auto !important;
}
/* 输入框聚焦时的柔和高亮（正在打字那一下） */
html body #chat.kb-open .composer textarea,
html body #chat.kb-open #inputMsg {
  box-shadow: 0 0 0 2px rgba(74,159,216,.16) !important;
}

/* ===== 资料卡作者头像 ===== */
.pfd5-avatar { overflow: hidden; }
.pfd5-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 任务中心 ===== */
#taskPage { background: linear-gradient(180deg,#F7FCFF,#E9F4FD); }
.tk-wrap { flex:1; overflow-y:auto; padding: 12px 14px 30px; }
.tk-new { background:#fff; border-radius:18px; padding:13px 14px; box-shadow:0 12px 30px -22px rgba(16,52,74,.5); }
.tk-new textarea {
  width:100%; border:0; outline:none; resize:none; font-family:inherit;
  font-size:14px; line-height:1.6; color:#12384F; background:transparent;
}
.tk-new textarea::placeholder { color:#A9BCC9; }
.tk-bar { display:flex; align-items:center; gap:10px; margin-top:8px; }
.tk-hint { flex:1; font-size:11.5px; color:#93A8B6; }
#taskSend {
  height:36px; padding:0 18px; border-radius:12px; border:0;
  background:linear-gradient(160deg,#4FA3DE,#2E7CB8); color:#fff;
  font-family:inherit; font-size:13px; font-weight:800; letter-spacing:.4px;
  box-shadow:0 10px 22px -14px rgba(79,163,222,1);
}
#taskSend:active { transform:scale(.96); }
#taskSend:disabled { opacity:.6; }
.tk-list { margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.tk-item { background:#fff; border-radius:16px; padding:13px 14px; box-shadow:0 10px 26px -24px rgba(16,52,74,.55); }
.tk-item .h { display:flex; align-items:center; gap:8px; }
.tk-item .id { font-size:11.5px; color:#9AB0BF; font-variant-numeric:tabular-nums; }
.tk-item .txt { flex:1; font-size:13.5px; color:#1B3D53; line-height:1.55; word-break:break-word; }
.tk-item .res { margin-top:8px; padding:9px 11px; border-radius:10px; background:#F5FAFF; font-size:12.5px; color:#41627A; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
.tk-item .time { margin-top:7px; font-size:11px; color:#A5B8C5; }
.tk-badge { flex:none; height:21px; padding:0 9px; border-radius:11px; font-size:11px; font-weight:700; display:inline-flex; align-items:center; }
.tk-badge.pending { background:#FFF6E3; color:#A9762F; }
.tk-badge.running { background:#E6F2FC; color:#2E7CB8; }
.tk-badge.done { background:#E7F8EF; color:#2B8A5C; }
.tk-badge.failed { background:#FDECEA; color:#C0392B; }
.tk-badge.canceled { background:#F0F4F7; color:#7C93A5; }
.tk-empty { text-align:center; color:#9BB0BE; font-size:13px; padding:40px 20px; }
body.dark #taskPage { background:#0F1C25; }
body.dark .tk-new, body.dark .tk-item { background:#16262F; }
body.dark .tk-item .txt { color:#D6E8F3; }
body.dark .tk-item .res { background:#1A2C38; color:#A9C0CE; }

/* ===== 任务中心 v2 ===== */
.tk-stats { display:flex; gap:8px; margin-top:14px; }
.tk-stat {
  flex:1; background:#fff; border-radius:14px; padding:11px 8px; text-align:center;
  box-shadow:0 8px 22px -20px rgba(16,52,74,.5);
}
.tk-stat b { display:block; font-size:19px; font-weight:800; color:#12384F; font-variant-numeric:tabular-nums; }
.tk-stat span { display:block; font-size:11px; color:#93A8B6; margin-top:3px; }
.tk-stat:nth-child(1) b { color:#A9762F; }
.tk-stat:nth-child(2) b { color:#2E7CB8; }
.tk-stat:nth-child(3) b { color:#2B8A5C; }

.tk-tabs { display:flex; gap:8px; margin-top:12px; }
.tk-tabs button {
  height:30px; padding:0 14px; border-radius:15px; border:1px solid rgba(24,68,102,.10);
  background:#fff; color:#7C93A5; font-family:inherit; font-size:12.5px; font-weight:600;
}
.tk-tabs button.on { background:#2E7CB8; border-color:#2E7CB8; color:#fff; font-weight:700; }

.tk-item { position:relative; overflow:hidden; }
.tk-item.running::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg,#4FA3DE,#3ECF8E);
  animation: tkPulse 1.6s ease-in-out infinite;
}
@keyframes tkPulse { 0%,100%{opacity:.4} 50%{opacity:1} }
.tk-item .ops { display:flex; gap:8px; margin-top:9px; }
.tk-item .ops button {
  height:28px; padding:0 12px; border-radius:9px; border:1px solid rgba(24,68,102,.12);
  background:#fff; color:#5E7C8F; font-family:inherit; font-size:12px; font-weight:600;
}
.tk-item .ops button.danger { color:#C0392B; border-color:rgba(192,57,43,.2); }
.tk-item .ops button:active { transform:scale(.96); }
.tk-item.failed .res { background:#FDF2F1; color:#A23B31; }
.tk-item.done .res { background:#F1FAF5; color:#1F6E4C; }

/* ===== 任务中心 v3 ===== */
.tk-tpl { display:flex; gap:7px; overflow-x:auto; margin-top:12px; padding-bottom:2px; }
.tk-tpl::-webkit-scrollbar { display:none; }
.tk-tpl button {
  flex:none; height:29px; padding:0 13px; border-radius:15px;
  border:1px solid rgba(46,124,184,.16); background:#fff; color:#2E7CB8;
  font-family:inherit; font-size:12px; font-weight:600; letter-spacing:.2px;
}
.tk-tpl button:active { transform:scale(.95); background:#F2F9FF; }
.tk-txt.clamp {
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tk-item .more {
  margin-top:6px; font-size:12px; color:#2E7CB8; background:none; border:0;
  font-family:inherit; padding:0; text-decoration:underline; text-underline-offset:3px;
}
.tk-res-head { display:flex; align-items:center; gap:8px; margin-top:9px; }
.tk-res-head b { font-size:12px; color:#5E7C8F; font-weight:700; }
.tk-res-head .cp {
  margin-left:auto; height:24px; padding:0 10px; border-radius:8px;
  border:1px solid rgba(24,68,102,.12); background:#fff; color:#5E7C8F;
  font-family:inherit; font-size:11.5px;
}
.tk-logs { margin-top:7px; display:flex; flex-direction:column; gap:4px; }
.tk-logs .lg { font-size:11.5px; color:#7C93A5; line-height:1.6; font-family:ui-monospace,Menlo,Consolas,monospace; }
.tk-logs .lg::before { content:'· '; color:#B9CAD6; }

/* ===== 任务中心 v4 ===== */
/* 骨架屏 */
.tk-skel { background:#fff; border-radius:16px; padding:14px; margin-top:10px; }
.tk-skel i {
  display:block; height:12px; border-radius:6px; margin-bottom:9px;
  background:linear-gradient(100deg,#EEF5FA 30%,#F7FBFE 50%,#EEF5FA 70%);
  background-size:220% 100%; animation: tkShimmer 1.4s linear infinite;
}
.tk-skel i:nth-child(1){width:35%}
.tk-skel i:nth-child(2){width:88%}
.tk-skel i:nth-child(3){width:52%}
@keyframes tkShimmer { from{background-position:130% 0} to{background-position:-30% 0} }

/* 下拉刷新提示 */
.tk-ptr {
  text-align:center; font-size:12px; color:#93A8B6; height:0; overflow:hidden;
  transition:height .18s ease; display:flex; align-items:center; justify-content:center;
}
.tk-ptr.on { height:34px; }

/* 耗时标签 */
.tk-dur {
  display:inline-block; margin-left:6px; padding:1px 7px; border-radius:8px;
  background:rgba(46,124,184,.08); color:#3E7EA8; font-size:11px; font-weight:600;
}
/* 刚提交的卡片 */
.tk-item.submitting { opacity:.6; }
.tk-item.submitting .tk-badge { background:#E6F2FC; color:#2E7CB8; }

/* ===== 任务中心 v5 ===== */
.tk-stat b { transition: transform .18s cubic-bezier(.2,.7,.3,1); display:inline-block; }
.tk-stat b.bump { transform: scale(1.22); }
.tk-err {
  margin-top:10px; padding:11px 13px; border-radius:12px;
  background:#FDF2F1; border:1px solid rgba(192,57,43,.16);
  color:#A23B31; font-size:12.5px; line-height:1.6;
  display:flex; align-items:center; gap:10px;
}
.tk-err button {
  margin-left:auto; flex:none; height:28px; padding:0 12px; border-radius:8px;
  border:1px solid rgba(192,57,43,.24); background:#fff; color:#A23B31;
  font-family:inherit; font-size:12px; font-weight:600;
}
/* 分组标题 */
.tk-group { margin:14px 0 -2px; font-size:11.5px; color:#9AB0BF; letter-spacing:.6px; padding-left:2px; }

/* ===== 任务详情层 ===== */
.tk-detail { position:fixed; inset:0; z-index:60; display:flex; flex-direction:column; justify-content:flex-end; }
.tk-detail.hidden { display:none !important; }
.tk-detail-back { position:absolute; inset:0; background:rgba(9,28,42,.42); backdrop-filter:blur(2px); }
.tk-detail-card {
  position:relative; background:#fff; border-radius:22px 22px 0 0;
  max-height:82vh; overflow-y:auto; padding:16px 16px calc(env(safe-area-inset-bottom,0px) + 18px);
  box-shadow:0 -18px 40px -30px rgba(9,28,42,.6);
  animation: tkUp .22s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes tkUp { from{transform:translateY(16px);opacity:.6} to{transform:none;opacity:1} }
.tk-detail-head { display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.tk-detail-id { font-size:12px; color:#9AB0BF; font-variant-numeric:tabular-nums; }
.tk-detail-x {
  margin-left:auto; height:28px; padding:0 13px; border-radius:9px; border:1px solid rgba(24,68,102,.12);
  background:#fff; color:#5E7C8F; font-family:inherit; font-size:12px;
}
.tk-detail-sec { margin-bottom:15px; }
.tk-detail-k { font-size:11.5px; color:#93A8B6; letter-spacing:.6px; margin-bottom:6px; }
.tk-detail-v {
  font-size:13.5px; color:#1B3D53; line-height:1.75; white-space:pre-wrap; word-break:break-word;
  background:#F7FBFF; border-radius:12px; padding:11px 13px;
}
.tk-detail-logs { display:flex; flex-direction:column; gap:7px; }
.tk-detail-logs .lg {
  display:flex; gap:9px; font-size:12px; color:#4E6B7C; line-height:1.6;
  font-family:ui-monospace,Menlo,Consolas,monospace;
}
.tk-detail-logs .lg .t { flex:none; color:#A5B8C5; font-size:11px; padding-top:1px; }

/* ===== 任务中心 v7 ===== */
.tk-search {
  width:100%; height:36px; margin-top:12px; border-radius:11px;
  border:1px solid rgba(46,124,184,.16); background:#fff;
  padding:0 13px; font-size:13px; font-family:inherit; color:#12384F; outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.tk-search:focus { border-color:#4FA3DE; box-shadow:0 0 0 3px rgba(79,163,222,.13); }
.tk-search::placeholder { color:#A9BCC9; }
.tk-tpl button.tpl-add { color:#8AA3B5; border-style:dashed; }
.tk-tpl button.tpl-custom { position:relative; }

/* ===== 切页流畅感 ===== */
/* 页面切换时淡入，把「瞬间重绘」变成「柔和过渡」，主观上不卡 */
.page.tab-in { animation: tabIn .18s cubic-bezier(.22,.78,.3,1) both; }
@keyframes tabIn { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* 会话行：按下就有反馈，不用等渲染 */
#convs .conv-item:active, #convs .conv:active { background: rgba(74,159,216,.06); }
.conv-item, .conv { transition: background .12s ease; }

/* 头像图片淡入，避免「一片白然后突然出现」 */
img.av, .conv-av img, .av img { transition: opacity .18s ease; }
img.av:not([data-loaded]), .conv-av img:not([data-loaded]) { opacity: .85; }

/* ===== 右上角 ＋ 菜单（微信 QQ 样式） ===== */
#headerRight { position: relative; }
.hr-menu {
  position: fixed; z-index: 55;
  min-width: 148px; padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 40px -20px rgba(9,28,42,.45), 0 0 0 1px rgba(24,68,102,.06);
  backdrop-filter: blur(16px) saturate(140%);
  transform-origin: top right;
  animation: hrIn .16s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes hrIn { from { opacity: 0; transform: scale(.94) translateY(-4px); } to { opacity: 1; transform: none; } }
.hr-menu.hidden { display: none !important; }
.hr-item {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; border-radius: 10px;
  font-size: 13.5px; color: #1B3D53; font-weight: 600;
  transition: background .12s ease;
}
.hr-item:active { background: rgba(74,159,216,.10); }
.hr-item .hi-ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46,124,184,.10); color: #2E7CB8;
}
.hr-item .hi-ico svg { width: 15px; height: 15px; }
.hr-item.c-green .hi-ico { background: rgba(46,158,107,.10); color: #2B8A5C; }
.hr-item.c-gold .hi-ico { background: rgba(201,138,60,.10); color: #A9762F; }
.hr-sep { height: 1px; margin: 4px 8px; background: rgba(24,68,102,.07); }
body.dark .hr-menu { background: rgba(22,38,47,.97); box-shadow: 0 18px 40px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07); }
body.dark .hr-item { color: #D6E8F3; }
body.dark .hr-item:active { background: rgba(120,190,235,.12); }

/* ===== ＋ 菜单 v2 ===== */
.hr-menu {
  min-width: 172px; padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.985);
  box-shadow:
    0 2px 6px rgba(9,28,42,.06),
    0 22px 48px -24px rgba(9,28,42,.5),
    0 0 0 1px rgba(24,68,102,.055);
  backdrop-filter: blur(20px) saturate(150%);
  animation: hrIn2 .2s cubic-bezier(.18,.9,.28,1.08) both;
}
@keyframes hrIn2 {
  from { opacity: 0; transform: scale(.9) translateY(-6px); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
.hr-item {
  height: 48px; padding: 0 12px; border-radius: 11px; gap: 12px;
  font-size: 14px; font-weight: 600; color: #16394F; letter-spacing: .2px;
  transition: background .12s ease, transform .1s ease;
}
.hr-item:active { background: rgba(74,159,216,.09); transform: scale(.985); }
.hr-item .hi-ico {
  width: 32px; height: 32px; border-radius: 11px;
  background: rgba(46,124,184,.085);
  box-shadow: 0 1px 2px rgba(9,28,42,.04) inset;
}
.hr-item .hi-ico svg { width: 17px; height: 17px; }
.hr-item.c-green .hi-ico { background: rgba(46,158,107,.085); }
.hr-item.c-gold .hi-ico { background: rgba(201,138,60,.085); }
.hr-item .hi-txt { flex: 1; }
.hr-item .hi-arrow {
  color: #C3D2DD; font-size: 15px; line-height: 1; margin-right: -2px;
  transition: transform .12s ease, color .12s ease;
}
.hr-item:active .hi-arrow { transform: translateX(2px); color: #9FB6C6; }
.hr-sep { height: 1px; margin: 5px 12px; background: rgba(24,68,102,.06); }
body.dark .hr-menu { background: rgba(20,34,42,.99); box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 22px 48px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
body.dark .hr-item { color: #DCEAF4; }
body.dark .hr-item:active { background: rgba(120,190,235,.10); }
body.dark .hi-arrow { color: #4C6376; }

/* ===== 全屏弹层（发起私聊/群聊/添加朋友） ===== */
.sheet.full {
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: transparent !important;
  backdrop-filter: none !important;
}
.sheet.full .box {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg,#F7FCFF,#E9F4FD) !important;
  animation: fullIn .2s cubic-bezier(.22,.8,.3,1) both;
}
@keyframes fullIn { from { opacity: .6; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.full-head {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24,68,102,.06);
}
.full-back {
  width: 34px; height: 34px; border-radius: 11px; border: 0; flex: none;
  background: #F1F8FE; color: #2E7CB8; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.full-title { flex: 1; font-size: 16.5px; font-weight: 800; color: #12384F; letter-spacing: .4px; }
.full-body {
  flex: 1; overflow-y: auto;
  padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
}
/* 全屏里原本的卡片样式沿用，但不要额外弹层内边距 */
.sheet.full .box > h3 { display: none; }
.sheet.full .full-body input,
.sheet.full .full-body .row2 { margin-top: 10px; }

/* 全屏页：去掉内容里重复的标题 + 补齐到真全屏 */
.sheet.full { padding: 0 !important; }
.sheet.full .full-body > h3,
.sheet.full .full-body > .sheet-title,
.sheet.full .box > .full-body > h3 { display: none !important; }
.sheet.full .box { min-height: 100vh !important; }
@supports (height: 100dvh) {
  .sheet.full .box { min-height: 100dvh !important; }
}

/* 全屏页：彻底方角 */
html body .sheet.full,
html body .sheet.full .box,
html body .sheet.full .full-head,
html body .sheet.full .full-body,
html body .sheet.full #sheetBg {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  overflow: hidden !important;
}
html body .sheet.full {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}
html body .sheet.full .box {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* 内容区自带底部安全区留白，不需要容器再垫 */
html body .sheet.full .full-body {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
}

/* 全屏页：圆角归零（最高优先级） */
html body #sheetHost .sheet.full,
html body #sheetHost .sheet.full .box,
html body #sheetHost .sheet.full #sheetBg,
html body .sheet.full .box,
html body .sheet.full {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}
html body #sheetHost .sheet.full .box {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  box-shadow: none !important;
}

/* ===== 任务中心：提示条 ===== */
.tk-notice {
  background: linear-gradient(150deg, #F2F9FF, #E7F3FC);
  border: 1px solid rgba(74,159,216,.16);
  border-radius: 14px; padding: 11px 13px; margin-bottom: 12px;
  font-size: 11.8px; line-height: 1.7; color: #4E7288;
}
.tk-notice b { color: #2E7CB8; font-weight: 700; }
/* 卡片上的复制按钮更醒目 */
.tk-item .ops .kv {
  color: #2E7CB8; border-color: rgba(46,124,184,.2); background: #F7FBFF; font-weight: 700;
}

/* ===== 任务中心：检查按钮 ===== */
.tk-check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#tkCheckBtn {
  height: 38px; padding: 0 18px; border-radius: 12px; border: 0;
  background: linear-gradient(160deg, #4FA3DE, #2E7CB8); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .4px;
  box-shadow: 0 10px 22px -14px rgba(79,163,222,1);
}
#tkCheckBtn:active { transform: scale(.96); }
#tkCheckBtn:disabled { opacity: .6; }
.tk-check-hint { font-size: 11.5px; color: #93A8B6; }

/* ===== 任务中心：余额条 ===== */
.tk-token-bar {
  display: flex; align-items: center; gap: 9px;
  background: linear-gradient(150deg, #F1FAF6, #E4F5EC);
  border: 1px solid rgba(46,158,107,.16);
  border-radius: 13px; padding: 9px 12px; margin-bottom: 10px;
}
.tk-tb-k { font-size: 11.5px; color: #5A8A72; font-weight: 600; letter-spacing: .3px; }
.tk-tb-v { flex: 1; font-size: 15px; font-weight: 800; color: #1F7A4F; font-variant-numeric: tabular-nums; }
.tk-tb-v.low { color: #C0392B; }
.tk-tb-v.stale { opacity: .55; }
.tk-tb-r {
  height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(46,158,107,.2);
  background: #fff; color: #2B8A5C; font-family: inherit; font-size: 11px; font-weight: 700;
}
.tk-tb-r:active { transform: scale(.95); }

/* ===== Token 用量页 ===== */
.tk-balance-card{background:linear-gradient(160deg,#2E7CB8,#1E5E90);border-radius:20px;padding:20px 18px;color:#fff;box-shadow:0 18px 36px -24px rgba(30,94,144,.9);margin-bottom:14px}
.tkb-k{font-size:12px;opacity:.82;letter-spacing:.6px}
.tkb-v{font-size:34px;font-weight:800;line-height:1.25;margin-top:4px;font-variant-numeric:tabular-nums}
.tkb-v.low{color:#FFD6D0}
.tkb-s{font-size:11.5px;opacity:.7;margin-top:2px}
.tk-stat-row{display:flex;gap:10px;margin-bottom:16px}
.tk-stat-box{flex:1;background:#fff;border-radius:14px;padding:12px 10px;text-align:center;box-shadow:0 8px 22px -20px rgba(16,52,74,.6)}
.tk-stat-box b{display:block;font-size:17px;font-weight:800;color:#12384F;font-variant-numeric:tabular-nums}
.tk-stat-box span{display:block;font-size:11px;color:#93A8B6;margin-top:3px}
.tk-sec-title{font-size:12px;color:#93A8B6;letter-spacing:.6px;margin:4px 0 8px}
.tk-usage-list{display:flex;flex-direction:column;gap:8px;padding-bottom:30px}
.tk-use-item{background:#fff;border-radius:13px;padding:11px 13px;box-shadow:0 8px 22px -20px rgba(16,52,74,.5)}
.tk-use-top{display:flex;align-items:baseline;gap:8px}
.tk-use-what{flex:1;font-size:13px;color:#1B3D53;font-weight:600;line-height:1.5}
.tk-use-tk{font-size:12px;color:#2E7CB8;font-weight:800;font-variant-numeric:tabular-nums}
.tk-use-when{font-size:10.5px;color:#A9BCC9;margin-top:4px}
.tk-use-empty{text-align:center;color:#A9BCC9;font-size:12.5px;padding:30px 0}
#tokenPage .tk-wrap{padding:12px 14px 0}

/* Token 页顶栏按钮 */
#tokenRefresh{width:auto!important;min-width:46px;padding:0 12px;font-size:13px;font-weight:700;color:#2E7CB8;white-space:nowrap;flex:none}

/* Token 页：独立覆盖层（不进 tab 切换，避免被别的逻辑立刻隐藏） */
#tokenPage {
  position: fixed !important; inset: 0 !important;
  z-index: 90 !important;
  background: linear-gradient(180deg,#F7FCFF,#E9F4FD) !important;
  display: flex !important; flex-direction: column;
  animation: tkPageIn .18s cubic-bezier(.22,.8,.3,1) both;
}
#tokenPage.hidden { display: none !important; }
@keyframes tkPageIn { from { opacity: .7; transform: translateX(8px); } to { opacity: 1; transform: none; } }
#tokenPage .tk-wrap { flex: 1; overflow-y: auto; }

/* 登录协议行 */
.login-agree{font-size:11.5px;color:#9AB0BF;text-align:center;margin:10px 0 2px;line-height:1.6}
.login-agree a{color:#4A9FD8;text-decoration:none}

/* 通讯录 tab 红点 */
#tabbar [data-tab]{position:relative}
.tab-dot{animation:dotPop .22s cubic-bezier(.2,.9,.3,1.1) both}
@keyframes dotPop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}

/* ===== 任务检测间隔 ===== */
.tk-interval-row{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:10px 12px;
  background:#fff;border-radius:13px;box-shadow:0 8px 22px -20px rgba(16,52,74,.5)}
.tk-iv-label{font-size:12px;color:#5E7C8F;font-weight:600;flex:none}
.tk-iv-sel{flex:1;height:32px;min-width:0;border-radius:9px;border:1px solid rgba(46,124,184,.18);background:#F7FBFF;color:#12384F;font-family:inherit;font-size:13.5px;font-weight:600;padding:0 10px;outline:none;-moz-appearance:textfield}
.tk-iv-save{height:32px;padding:0 14px;border-radius:9px;border:0;
  background:linear-gradient(160deg,#4FA3DE,#2E7CB8);color:#fff;font-family:inherit;font-size:12.5px;font-weight:800}
.tk-iv-save:active{transform:scale(.96)}
.tk-iv-hint{font-size:11px;color:#93A8B6;flex:none;max-width:96px}

/* 通讯录红点（适配版） */
#tabbar [data-tab]{position:relative}
#tabbar .tab-dot{
  position:absolute;
  top:5px;
  left:50%;
  margin-left:6px;
  display:inline-flex;align-items:center;justify-content:center;
  min-width:16px;height:16px;padding:0 4px;
  border-radius:8px;
  background:#F0634F;color:#fff;
  font-size:10px;font-weight:800;line-height:1;
  letter-spacing:-.2px;
  box-shadow:0 2px 6px rgba(240,99,79,.45);
  pointer-events:none;
  transform-origin:center;
  animation:dotPop .2s cubic-bezier(.2,.9,.3,1.15) both;
}
@keyframes dotPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}

/* ===== 会话长按小卡片 ===== */
.conv-card{
  position:fixed;z-index:71;
  width:186px;padding:6px;
  background:rgba(255,255,255,.98);
  border-radius:14px;
  box-shadow:0 2px 6px rgba(9,28,42,.08),0 20px 44px -22px rgba(9,28,42,.55),0 0 0 1px rgba(24,68,102,.06);
  backdrop-filter:blur(18px) saturate(150%);
  transform-origin:top right;
  animation:convCardIn .16s cubic-bezier(.2,.85,.3,1.05) both;
}
@keyframes convCardIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
.conv-card .cm-row{
  display:flex;align-items:center;gap:10px;
  height:42px;padding:0 10px;border-radius:10px;cursor:pointer;
  transition:background .12s ease;
}
.conv-card .cm-row:active{background:rgba(74,159,216,.1)}
.conv-card .cm-ico{
  width:26px;height:26px;border-radius:8px;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:rgba(46,124,184,.09);color:#2E7CB8;
}
.conv-card .cm-ico svg{width:14px;height:14px}
.conv-card .cm-ico.c-gold{background:rgba(201,138,60,.1);color:#A9762F}
.conv-card .cm-ico.c-green{background:rgba(46,158,107,.1);color:#2B8A5C}
.conv-card .cm-ico.c-indigo{background:rgba(90,110,190,.1);color:#4A5EB8}
.conv-card .cm-ico.c-slate{background:rgba(100,120,140,.1);color:#5E7C8F}
.conv-card .cm-ico.c-red{background:rgba(192,57,43,.09);color:#C0392B}
.conv-card .cm-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.conv-card .cm-body b{font-size:13px;font-weight:600;color:#1B3D53;line-height:1.3}
.conv-card .cm-body i{display:none}
.conv-card .cm-arrow{display:none}
body.dark .conv-card{background:rgba(24,40,50,.98);box-shadow:0 2px 6px rgba(0,0,0,.3),0 20px 44px -22px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.07)}
body.dark .conv-card .cm-body b{color:#DCEAF4}
