/* Alone的小窝 —— 长得像 iMessage / iOS，功能照着微信来 */
:root {
  --bg: #ffffff; --bg2: #f2f2f7; --card: #ffffff; --fill: rgba(120,120,128,.12); --fill2: rgba(120,120,128,.2);
  --label: #000; --label2: rgba(60,60,67,.6); --label3: rgba(60,60,67,.3); --sep: rgba(60,60,67,.18);
  --blue: #007aff; --green: #34c759; --red: #ff3b30; --orange: #ff9500; --gray-b: #e9e9eb; --bar: rgba(249,249,249,.88);
  --thought: #f4f0ff; --thought-ink: #6b5ca5;
  --stage: linear-gradient(160deg, #f3e7e9 0%, #e3eeff 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg2: #000; --card: #1c1c1e; --fill: rgba(118,118,128,.24); --fill2: rgba(118,118,128,.36);
    --label: #fff; --label2: rgba(235,235,245,.6); --label3: rgba(235,235,245,.3); --sep: rgba(84,84,88,.6);
    --blue: #0a84ff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --gray-b: #26252a; --bar: rgba(22,22,24,.86);
    --thought: #24203a; --thought-ink: #b9a9ff;
    --stage: linear-gradient(160deg, #1b1a24 0%, #0d1622 100%);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font: 17px/1.35 var(--font); color: var(--label); background: var(--stage); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- 手机外壳：电脑上是一部手机，手机上就是全屏 ---------- */
#stage { height: 100dvh; display: grid; place-items: center; }
#phone { position: relative; width: 100%; height: 100dvh; background: var(--bg); overflow: hidden;
  --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px); }
#statusbar { display: none; }
@media (min-width: 640px) and (min-height: 600px) {
  #phone { width: 402px; height: min(874px, calc(100dvh - 40px)); border-radius: 56px; border: 11px solid #111;
    box-shadow: 0 0 0 1.5px #3a3a3c, 0 30px 80px rgba(0,0,0,.35); }
  #phone::before { content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px;
    background: #000; border-radius: 20px; z-index: 50; }
  #statusbar { display: flex; position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 40; padding: 18px 34px 0 42px;
    justify-content: space-between; font-weight: 600; font-size: 16px; pointer-events: none; }
  #statusbar .r { display: flex; gap: 6px; align-items: center; }
  #statusbar svg { width: 18px; height: 18px; }
  #phone { --top: 54px; --bottom: 22px; }
}
#statusbar.light { color: #fff; }

/* ---------- 一屏一屏推进来 ---------- */
#screens { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s; will-change: transform; }
.screen.grouped { background: var(--bg2); }
.screen.enter { transform: translateX(100%); }
.screen.under { transform: translateX(-28%); opacity: .6; }
.screen.leave { transform: translateX(100%); }
.screen.up { transform: translateY(100%); }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- 顶栏 ---------- */
.nav { flex: none; padding-top: var(--top); background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep); position: relative; z-index: 5; }
.nav .row { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px; }
.nav .title { font-weight: 600; font-size: 17px; text-align: center; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .left { justify-self: start; display: flex; }
.nav .right { justify-self: end; display: flex; gap: 4px; }
.nav.plain { border-bottom-color: transparent; background: var(--bg); }
.grouped .nav.plain { background: var(--bg2); }
.back { display: flex; align-items: center; color: var(--blue); font-size: 17px; padding: 6px 4px; }
.back svg { width: 24px; height: 24px; stroke-width: 2.4; margin-right: -2px; }
.nbtn { color: var(--blue); padding: 8px; display: grid; place-items: center; font-size: 17px; }
.nbtn.text { padding: 8px 6px; }
.nbtn svg { width: 24px; height: 24px; }
.big-title { font-size: 34px; font-weight: 700; letter-spacing: .3px; padding: 4px 16px 8px; }

/* ---------- 分组列表（设置那种） ---------- */
.section { margin: 0 16px 24px; }
.section > .h { font-size: 13px; color: var(--label2); padding: 0 16px 6px; text-transform: uppercase; }
.section > .f { font-size: 13px; color: var(--label2); padding: 6px 16px 0; line-height: 1.4; }
.group { background: var(--card); border-radius: 12px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 44px; position: relative; width: 100%; text-align: left; }
.cell + .cell::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.cell.ind + .cell::before, .cell.av + .cell::before { left: 60px; }
.cell .main { flex: 1; min-width: 0; }
.cell .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .s { font-size: 14px; color: var(--label2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cell .v { color: var(--label2); text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .chev { color: var(--label3); width: 16px; height: 16px; stroke-width: 2.6; }
.cell.link { color: var(--blue); }
.cell.danger { color: var(--red); justify-content: center; }
.cell input[type=text], .cell input[type=number], .cell input[type=password], .cell select {
  border: 0; background: none; outline: none; text-align: right; color: var(--label2); min-width: 0; flex: 1; }
.cell textarea { width: 100%; border: 0; background: none; outline: none; resize: vertical; min-height: 90px; line-height: 1.45; font-size: 16px; }
.cell.col { flex-direction: column; align-items: stretch; gap: 6px; }
.cell .lab { font-size: 13px; color: var(--label2); }
.icon-sq { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.icon-sq svg { width: 18px; height: 18px; stroke-width: 2; }

/* 开关 */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--fill2); transition: .25s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: .25s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.stepper { display: flex; border-radius: 8px; background: var(--fill); overflow: hidden; flex: none; }
.stepper button { width: 46px; height: 32px; font-size: 20px; color: var(--label); }
.stepper button + button { border-left: .5px solid var(--sep); }

/* ---------- 头像 ---------- */
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; overflow: hidden;
  background: linear-gradient(180deg, #a5abb8, #858994); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 主屏幕 ---------- */
.home { background: linear-gradient(170deg, #ffd6c9 0%, #f6b9cf 35%, #b9c4f5 75%, #9fd3e8 100%); }
@media (prefers-color-scheme: dark) { .home { background: linear-gradient(170deg, #3a2633 0%, #2a2140 45%, #14263b 100%); } }
.home .widget { margin: calc(var(--top) + 26px) 24px 22px; padding: 18px 20px; border-radius: 22px; color: #fff;
  background: rgba(255,255,255,.18); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.home .widget .clock { font-size: 52px; font-weight: 300; letter-spacing: 1px; line-height: 1; }
.home .widget .date { font-size: 15px; opacity: .9; margin-top: 6px; }
.home .widget .note { font-size: 14px; opacity: .92; margin-top: 12px; line-height: 1.45; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; padding: 6px 18px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.25); position: relative; }
.app .ic { width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.app .ic svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 1.7; }
.app:active .ic { filter: brightness(.85); }
.badge { position: absolute; top: -6px; right: 2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red);
  color: #fff; font-size: 14px; font-weight: 500; display: grid; place-items: center; text-shadow: none; }
.dock { position: absolute; left: 12px; right: 12px; bottom: calc(var(--bottom) + 10px); padding: 14px 10px; border-radius: 32px;
  background: rgba(255,255,255,.28); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); display: flex; justify-content: space-around; }
.dock .app > span:not(.badge) { display: none; }

/* ---------- 信息列表 ---------- */
.search-bar { margin: 2px 16px 10px; background: var(--fill); border-radius: 10px; display: flex; align-items: center; gap: 6px; padding: 7px 8px; color: var(--label2); }
.search-bar svg { width: 17px; height: 17px; }
.search-bar input { border: 0; background: none; outline: none; flex: 1; font-size: 17px; }
.thread { display: flex; gap: 12px; padding: 10px 16px 10px 4px; align-items: flex-start; width: 100%; text-align: left; position: relative; }
.thread .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 22px; flex: none; visibility: hidden; }
.thread.unread .dot { visibility: visible; }
.thread .main { flex: 1; min-width: 0; padding-bottom: 10px; border-bottom: .5px solid var(--sep); }
.thread .top { display: flex; align-items: baseline; gap: 8px; }
.thread .name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread .time { color: var(--label2); font-size: 15px; display: flex; align-items: center; gap: 4px; }
.thread .time svg { width: 14px; height: 14px; stroke-width: 2.6; color: var(--label3); }
.thread .pre { color: var(--label2); font-size: 15px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.gav { position: relative; width: 48px; height: 48px; flex: none; }
.gav .avatar { position: absolute; width: 30px; height: 30px; font-size: 13px; border: 2px solid var(--bg); }
.gav .avatar:nth-child(1) { top: 0; left: 0; } .gav .avatar:nth-child(2) { bottom: 0; right: 0; } .gav .avatar:nth-child(3) { top: 0; right: -2px; width: 22px; height: 22px; font-size: 10px; }

/* ---------- 聊天 ---------- */
.chat-head { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--label); padding-top: 2px; }
.chat-head .avatar { width: 34px; height: 34px; font-size: 15px; }
.chat-head .n { display: flex; align-items: center; gap: 1px; }
.chat-head .n svg { width: 10px; height: 10px; stroke-width: 3; color: var(--label3); }
.chat-head .typing-t { color: var(--label2); font-size: 10px; height: 12px; }
.nav.chat .row { height: 62px; }
.msgs { padding: 10px 12px 16px; display: flex; flex-direction: column; }
.tsep { text-align: center; color: var(--label2); font-size: 12px; margin: 14px 0 8px; }
.tsep b { font-weight: 600; }
.mrow { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; position: relative; }
.mrow.me { justify-content: flex-end; }
.mrow.gap { margin-top: 10px; }
.mrow .side-av { width: 28px; height: 28px; font-size: 12px; visibility: hidden; }
.mrow.last .side-av { visibility: visible; }
.sender { font-size: 11px; color: var(--label2); margin: 8px 0 1px 46px; }
.bwrap { max-width: 76%; display: flex; flex-direction: column; }
.me .bwrap { align-items: flex-end; }
.b { padding: 7px 12px; border-radius: 18px; font-size: 17px; line-height: 1.3; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; position: relative; }
.them .b { background: var(--gray-b); color: var(--label); }
.me .b { background: var(--blue); color: #fff; }
.last .b.tail::before, .last .b.tail::after { content: ''; position: absolute; bottom: 0; height: 20px; }
.me.last .b.tail::before { right: -7px; width: 20px; background: var(--blue); border-bottom-left-radius: 16px 14px; }
.me.last .b.tail::after { right: -26px; width: 26px; background: var(--bg); border-bottom-left-radius: 10px; }
.them.last .b.tail::before { left: -7px; width: 20px; background: var(--gray-b); border-bottom-right-radius: 16px 14px; }
.them.last .b.tail::after { left: -26px; width: 26px; background: var(--bg); border-bottom-right-radius: 10px; }
.b.emoji { background: none !important; font-size: 44px; padding: 0 4px; }
.them .b.tap { cursor: pointer; }
.thought { margin: 4px 0 2px; padding: 6px 10px; border-radius: 12px; background: var(--thought); color: var(--thought-ink); font-size: 14px; line-height: 1.4;
  display: flex; gap: 6px; max-width: 100%; animation: pop .2s ease-out; }
.thought svg { width: 15px; height: 15px; margin-top: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.receipt { font-size: 11px; color: var(--label2); text-align: right; margin: 3px 4px 0 0; }
.event { text-align: center; font-size: 12px; color: var(--label2); margin: 10px 0; }
.event .th { display: block; color: var(--thought-ink); margin-top: 3px; font-size: 12px; }

/* 语音 */
.voice { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.voice .wave { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.voice .wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .8; }
.voice .sec { font-size: 14px; opacity: .85; font-variant-numeric: tabular-nums; }
.voice svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.v-text { font-size: 14px; color: var(--label2); margin: 4px 4px 0; max-width: 260px; }
/* 照片卡片（写着画面内容） */
.photo { width: 220px; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; position: relative; display: flex; align-items: flex-end; color: #fff; cursor: pointer; }
.photo .desc { padding: 12px 14px; font-size: 14px; line-height: 1.45; background: linear-gradient(transparent, rgba(0,0,0,.5)); width: 100%; }
.photo .cam { position: absolute; top: 12px; left: 12px; opacity: .85; }
.photo .cam svg { width: 20px; height: 20px; }
.real-photo { max-width: 220px; max-height: 300px; border-radius: 18px; display: block; cursor: zoom-in; }
.cap { margin-top: 4px; }
/* 转账 / 红包 */
.money { width: 236px; border-radius: 14px; overflow: hidden; color: #fff; cursor: pointer; }
.money .top { display: flex; gap: 12px; align-items: center; padding: 14px 14px 12px; }
.money .top .ic { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); display: grid; place-items: center; flex: none; }
.money .amt { font-size: 18px; font-weight: 600; }
.money .note { font-size: 13px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.money .bot { font-size: 11px; padding: 5px 14px; background: rgba(0,0,0,.08); opacity: .95; }
.money.transfer { background: linear-gradient(135deg, #ffad4d, #f7913a); }
.money.redpacket { background: linear-gradient(135deg, #f86454, #e94a3d); }
.money.done { filter: saturate(.55) brightness(1.06); }
.loc { width: 230px; border-radius: 16px; overflow: hidden; background: var(--card); border: .5px solid var(--sep); }
.loc .map { height: 100px; position: relative; background:
  linear-gradient(90deg, transparent 47%, rgba(255,255,255,.8) 48% 52%, transparent 53%), linear-gradient(0deg, transparent 60%, rgba(255,255,255,.8) 61% 64%, transparent 65%),
  linear-gradient(135deg, #cfe8c9, #e8efd8 50%, #d4e6f1); }
.loc .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); color: var(--red); }
.loc .pin svg { width: 30px; height: 30px; fill: var(--red); stroke: #fff; }
.loc .p { padding: 8px 12px; font-size: 15px; color: var(--label); }
/* 正在输入 */
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--gray-b); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--label2); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.err-row { align-self: center; margin: 10px 0; font-size: 13px; color: var(--red); text-align: center; }
.err-row button { color: var(--blue); margin-left: 6px; }

/* 输入栏 */
.composer { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(var(--bottom) + 8px); background: var(--bar);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: .5px solid var(--sep); }
.composer .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--label2); display: grid; place-items: center; flex: none; }
.composer .plus svg { width: 20px; height: 20px; stroke-width: 2.4; }
.composer .field { flex: 1; display: flex; align-items: flex-end; border: 1px solid var(--sep); border-radius: 18px; background: var(--bg); padding: 2px 3px 2px 12px; min-height: 36px; }
.composer textarea { flex: 1; border: 0; outline: none; background: none; resize: none; font-size: 17px; line-height: 1.3; padding: 6px 0; max-height: 120px; }
.composer .send { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 1px 0; flex: none; }
.composer .send svg { width: 18px; height: 18px; stroke-width: 2.8; }
.composer .send:disabled { opacity: 0; pointer-events: none; }
.drawer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; padding: 16px 12px calc(var(--bottom) + 12px); background: var(--bar); }
.drawer button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--label2); }
.drawer .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--card); display: grid; place-items: center; color: var(--label); }
.drawer .ic svg { width: 26px; height: 26px; }

/* ---------- 弹出的面板 ---------- */
.veil { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 60; opacity: 0; transition: opacity .25s; }
.veil.on { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--bg2); border-radius: 14px 14px 0 0; max-height: 92%;
  display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet.on { transform: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 6px auto 0; }
.sheet .shead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 8px; }
.sheet .shead .title { font-weight: 600; text-align: center; }
.sheet .sbody { overflow-y: auto; padding: 8px 0 calc(var(--bottom) + 16px); }
.actions { position: absolute; left: 8px; right: 8px; bottom: calc(var(--bottom) + 8px); z-index: 61; transform: translateY(120%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.actions.on { transform: none; }
.actions .g { background: var(--bar); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.actions .msg { text-align: center; font-size: 13px; color: var(--label2); padding: 14px 16px; border-bottom: .5px solid var(--sep); line-height: 1.4; }
.actions button { display: block; width: 100%; padding: 17px; font-size: 20px; color: var(--blue); border-top: .5px solid var(--sep); }
.actions .g > button:first-child, .actions .msg + button { border-top: 0; }
.actions .cancel { font-weight: 600; background: var(--card); border-radius: 14px; }
.actions .red { color: var(--red); }
.money-input { text-align: center; padding: 18px 16px 6px; }
.money-input .cur { font-size: 15px; color: var(--label2); }
.money-input input { font-size: 44px; font-weight: 600; border: 0; outline: none; background: none; width: 100%; text-align: center; }
.big-btn { display: block; margin: 16px; width: calc(100% - 32px); padding: 14px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; font-size: 17px; }
.big-btn.red { background: #f0503f; }
.big-btn.ghost { background: var(--fill); color: var(--blue); }
.big-btn:disabled { opacity: .5; }

#toast { position: absolute; left: 50%; top: calc(var(--top) + 60px); transform: translate(-50%, -10px); z-index: 90; background: rgba(30,30,32,.92); color: #fff;
  padding: 9px 16px; border-radius: 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: .22s; max-width: 86%; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.viewer { position: absolute; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; padding: 30px; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: 80%; border-radius: 6px; }
.viewer .vd { font-size: 17px; line-height: 1.6; text-align: center; max-width: 320px; }
.viewer .vd small { display: block; opacity: .6; margin-top: 14px; font-size: 13px; }

/* ---------- 资料页 ---------- */
.profile-top { display: flex; flex-direction: column; align-items: center; padding: 10px 16px 18px; gap: 6px; text-align: center; }
.profile-top .avatar { width: 96px; height: 96px; font-size: 40px; }
.profile-top .nm { font-size: 26px; font-weight: 600; margin-top: 6px; }
.profile-top .jb { color: var(--label2); font-size: 15px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px 24px; }
.quick button { background: var(--card); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--blue); font-size: 12px; }
.long-text { white-space: pre-wrap; font-size: 15px; line-height: 1.5; color: var(--label); }

/* ---------- 朋友圈 ---------- */
.cover { height: 280px; position: relative; background: linear-gradient(160deg, #8ec5fc, #e0c3fc); background-size: cover; background-position: center; margin-bottom: 40px; }
.cover .me { position: absolute; right: 16px; bottom: -28px; display: flex; align-items: flex-end; gap: 12px; color: #fff; font-weight: 600; font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cover .me .avatar { width: 72px; height: 72px; border-radius: 12px; font-size: 30px; border: 2px solid var(--bg); }
.cover .me span { margin-bottom: 34px; }
.post { display: flex; gap: 10px; padding: 14px 16px; border-bottom: .5px solid var(--sep); }
.post .avatar { width: 42px; height: 42px; border-radius: 8px; font-size: 17px; }
.post .main { flex: 1; min-width: 0; }
.post .who { color: #576b95; font-weight: 600; font-size: 16px; }
@media (prefers-color-scheme: dark) { .post .who, .cmts .w { color: #7d90a9 !important; } }
.post .txt { margin-top: 3px; white-space: pre-wrap; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; max-width: 260px; }
.pics.one { grid-template-columns: 1fr; max-width: 190px; }
.pics .photo { width: 100%; aspect-ratio: 1; border-radius: 4px; font-size: 11px; }
.pics .photo .desc { font-size: 11px; padding: 6px; line-height: 1.3; }
.pics.one .photo { aspect-ratio: 4/5; } .pics.one .photo .desc { font-size: 13px; padding: 10px; }
.pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.post .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--label2); font-size: 13px; }
.post .meta .del { color: #576b95; margin-left: 10px; }
.post .more { background: var(--fill); border-radius: 4px; padding: 0 8px; height: 22px; color: #576b95; font-weight: 700; letter-spacing: 1px; }
.pop { position: absolute; right: 44px; background: #4c4c4c; border-radius: 6px; display: flex; overflow: hidden; z-index: 5; }
.pop button { color: #fff; padding: 9px 16px; font-size: 14px; display: flex; gap: 5px; align-items: center; }
.pop button + button { border-left: 1px solid #3a3a3a; }
.pop svg { width: 16px; height: 16px; }
.likes-cmts { background: var(--fill); border-radius: 4px; margin-top: 8px; font-size: 14px; }
.likes { padding: 6px 8px; color: #576b95; display: flex; gap: 6px; align-items: flex-start; }
.likes svg { width: 15px; height: 15px; margin-top: 2px; }
.likes + .cmts { border-top: .5px solid var(--sep); }
.cmts { padding: 5px 8px; }
.cmts div { padding: 2px 0; line-height: 1.45; cursor: pointer; }
.cmts .w { color: #576b95; font-weight: 500; }
.post .thought, .cmts .thought { font-size: 13px; }

/* ---------- 钱包 / 相册 ---------- */
.wallet-card { margin: 8px 16px 24px; border-radius: 18px; padding: 22px; color: #fff; background: linear-gradient(135deg, #2b2b2e, #4a4a50); }
.wallet-card .l { font-size: 14px; opacity: .75; }
.wallet-card .n { font-size: 40px; font-weight: 600; margin-top: 6px; letter-spacing: .5px; }
.amount-plus { color: var(--green); } .amount-minus { color: var(--label); }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.album > * { aspect-ratio: 1; width: 100% !important; border-radius: 0 !important; }
.album .photo .desc { font-size: 11px; padding: 6px; }
.album img { object-fit: cover; height: 100%; cursor: zoom-in; }

/* ---------- 他的手机 ---------- */
.his { background: linear-gradient(170deg, #1e2a3a, #3b2f4a 60%, #1a1a24); color: #fff; }
.his .nav { background: transparent; border: 0; color: #fff; }
.his .nav .back, .his .nav .nbtn { color: #fff; }
.his .owner { text-align: center; margin: 18px 0 26px; }
.his .owner .avatar { width: 64px; height: 64px; font-size: 26px; margin: 0 auto 10px; }
.his .owner .s { font-size: 13px; opacity: .7; margin-top: 4px; }
.his .apps { padding: 6px 22px; }
.his .foot { text-align: center; font-size: 13px; opacity: .75; margin: 30px 20px; line-height: 1.6; }
.his .foot button { color: #9cc3ff; }
.note-card { background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 0 16px 10px; }
.note-card .nt { font-weight: 600; }
.note-card .nd { font-size: 12px; color: var(--label2); margin: 2px 0 6px; }
.note-card .nx { white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.login { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; }
.login .logo { width: 84px; height: 84px; border-radius: 20px; }
.login h1 { font-size: 26px; margin: 6px 0 0; }
.login p { color: var(--label2); margin: 0; font-size: 15px; }
.login input { width: 240px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sep); background: var(--card); text-align: center; font-size: 18px; outline: none; }
.login button { width: 240px; }
.empty-tip { text-align: center; color: var(--label2); font-size: 15px; padding: 40px 30px; line-height: 1.6; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--fill2); border-top-color: var(--label2); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.ask-frame { flex: 1; border: 0; width: 100%; background: var(--bg); }

/* 忘了开 VPN 时顶上那条 */
.vpn-banner { position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 8px); z-index: 85; padding: 10px 14px; border-radius: 14px;
  background: #ff9f0a; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.18); animation: pop .25s ease-out; }

/* 文件 / 他发来的文档 */
.filecard { width: 240px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card); border: .5px solid var(--sep); color: var(--label); }
.filecard .fi { width: 40px; height: 48px; border-radius: 6px; background: #4a7bd0; color: #fff; display: grid; place-items: center; flex: none; }
.filecard.doc { cursor: pointer; }
.filecard.doc .fi { background: var(--thought-ink); }
.filecard .fm { min-width: 0; flex: 1; }
.filecard .fn { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.filecard .fs { font-size: 12px; color: var(--label2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.filecard .fo { font-size: 12px; color: var(--blue); margin-top: 4px; }
.doc-meta { font-size: 13px; color: var(--label2); padding: 14px 18px 0; }
.doc-body { padding: 8px 18px 40px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.doc-body h1, .doc-body h2, .doc-body h3 { line-height: 1.35; margin: 1.1em 0 .5em; } .doc-body h1 { font-size: 22px; } .doc-body h2 { font-size: 19px; } .doc-body h3 { font-size: 17px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body blockquote { margin: 0 0 .8em; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body blockquote { border-left: 3px solid var(--sep); padding-left: 12px; color: var(--label2); }
.doc-body code { background: var(--fill); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.doc-body pre { background: var(--fill); padding: 10px 12px; border-radius: 10px; overflow-x: auto; }
.doc-body table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 14px; }
.doc-body th, .doc-body td { border: 1px solid var(--sep); padding: 5px 9px; }

/* 引用 */
.b, .filecard, .money, .photo, .loc { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.quote { margin-top: 4px; max-width: 100%; font-size: 13px; color: var(--label2); background: var(--fill); border-radius: 8px; padding: 5px 9px; text-align: left;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.composer { flex-wrap: wrap; }
.quote-bar { flex-basis: 100%; display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 10px; padding: 6px 6px 6px 12px; margin-bottom: 2px; }
.quote-bar .qt { flex: 1; min-width: 0; font-size: 13px; color: var(--label2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-bar .qx { width: 24px; height: 24px; border-radius: 50%; background: var(--fill2); color: var(--label2); font-size: 16px; line-height: 1; }
.mrow.flash .bwrap > :first-child { animation: flash 1.2s; }
@keyframes flash { 0%, 100% { filter: none; } 30% { filter: brightness(.75); } }
