/* 交友站 公共样式（QQ 风格，可切换主题，电脑+手机自适应） */

/* ── 主题变量（QQ 风格主题色，可通过 data-theme 切换） ── */
:root {
  --pink: #fb7299; --pink-dark: #e5607f; --blue: #00a1d6; --blue-dark: #0085ad;
  --bg: #f4f5f7; --card: #fff; --border: #e5e7eb; --text: #18191c; --sub: #9499a0;
  --green: #52b453; --red: #fa4d4d; --orange: #ffa940; --chat-left: #e8f5ff; --chat-right: #b3e19d;
  --rail-bg: #e9edf3; --rail-ic: #5f6672; --rail-active: #fff;
}
[data-theme="blue"] { --pink: #2f7cf6; --pink-dark: #1f64d6; --blue: #2f7cf6; --blue-dark: #1f64d6; --bg: #edf3fd; --rail-bg: #dce8fb; }
[data-theme="green"] { --pink: #26b573; --pink-dark: #1d9a5f; --blue: #26b573; --blue-dark: #1d9a5f; --bg: #edfaf3; --rail-bg: #dcf5e7; }
[data-theme="purple"] { --pink: #8b5cf6; --pink-dark: #7345d8; --blue: #8b5cf6; --blue-dark: #7345d8; --bg: #f4f0fd; --rail-bg: #e8e0fa; }
[data-theme="dark"] { --pink: #ff8fae; --pink-dark: #e57b9b; --blue: #5aa9e6; --blue-dark: #4790cf; --bg: #15181d; --card: #1f242c; --border: #323945; --text: #e8eaed; --sub: #8f98a5; --chat-left: #2a3444; --chat-right: #3c5a4a; --rail-bg: #101318; --rail-ic: #8f98a5; --rail-active: #2a3444; }
[data-theme="vipgold"] { --pink: #d4a017; --pink-dark: #b8860b; --blue: #d4a017; --blue-dark: #b8860b; --bg: #fdf8ec; --rail-bg: #f6ead0; --rail-active: #fff7e6; }
[data-theme="vipred"] { --pink: #c9302c; --pink-dark: #a92724; --blue: #c9302c; --blue-dark: #a92724; --bg: #fdf0ef; --rail-bg: #f5ddd9; --rail-active: #fff; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--blue); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }
.hidden { display: none !important; }

/* ── 左侧竖排导航（QQ 桌面风格） ── */
.topnav { position: fixed; left: 0; top: 0; bottom: 0; width: 64px; background: var(--rail-bg); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 10px; z-index: 60; }
.topnav .qq-logo { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.topnav .qq-links { display: flex; flex-direction: column; gap: 10px; align-items: center; flex: 1; }
.topnav .qq-links a { position: relative; width: 46px; height: 46px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; color: var(--rail-ic); text-decoration: none; }
.topnav .qq-links a:hover { background: rgba(0,0,0,.06); }
.topnav .qq-links a.active { background: var(--rail-active); box-shadow: 0 2px 8px rgba(0,0,0,.12); color: var(--pink); }
.topnav .qq-links a .lbl { font-size: 10px; line-height: 1; margin-top: 2px; }
.topnav .qq-links a.active .lbl { color: var(--pink); font-weight: 600; }
.topnav .qq-links a .rail-dot { position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff; border-radius: 9px; font-size: 9px; padding: 0 4px; min-width: 14px; text-align: center; display: none; }
.topnav .qq-links a .rail-dot.show { display: block; }
.topnav .qq-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.topnav .qq-bottom > a { font-size: 22px; color: var(--rail-ic); width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.topnav .qq-bottom > a:hover { background: rgba(0,0,0,.06); }
.topnav .avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; position: relative; }
.topnav .bell { display: none; }
.topnav .dropdown { left: 56px; right: auto; top: auto; bottom: 8px; }
.dropdown { position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.16); min-width: 160px; display: none; z-index: 80; }
.dropdown.show { display: block; }
.dropdown a, .dropdown .dd-item { display: block; padding: 11px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid #f5f6f7; white-space: nowrap; }
.dropdown a:hover, .dropdown .dd-item:hover { background: #f7f8fa; }
.dropdown .dd-item:last-child { border-bottom: none; }

/* 页面主区：桌面左侧导航占位 + 内容居中 */
@media (min-width: 768px) {
  body { padding-left: 64px; }
}
.main, .main-wide { max-width: 1100px; margin: 0 auto; padding: 16px; }
@media (max-width: 767px) {
  .topnav { display: none; }
  body { padding-left: 0; }
  .main, .main-wide { margin-left: auto; max-width: 100%; }
}

/* 按钮 */
.btn { display: inline-block; padding: 8px 18px; border: none; border-radius: 18px; background: var(--blue); color: #fff; font-size: 14px; }
.btn:hover { background: var(--blue-dark); }
.btn.pink { background: var(--pink); } .btn.pink:hover { background: var(--pink-dark); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); } .btn.ghost:hover { background: #f7f8fa; }
.btn.danger { background: var(--red); } .btn.danger:hover { opacity: .9; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 卡片 / 列表 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f5f6f7; }
.list-item:hover { background: #f7f8fa; }
.list-item.active { background: #eef4ff; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #f0f1f3; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 42px; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-time { font-size: 11px; color: var(--sub); flex-shrink: 0; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: var(--card); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }

/* toast */
#toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff; padding: 10px 22px; border-radius: 20px; font-size: 14px; z-index: 999; display: none; }

/* 弹窗 */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; align-items: center; justify-content: center; }
.modal-mask.show { display: flex; }
.modal { background: var(--card); border-radius: 12px; width: 420px; max-width: 92vw; max-height: 84vh; overflow: auto; }
.modal .hd { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal .hd .x { cursor: pointer; color: var(--sub); font-size: 18px; }
.modal .bd { padding: 16px 18px; }

/* 徽标/标签 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; }
.badge.green { background: #e8f7e9; color: var(--green); }
.badge.red { background: #ffecec; color: var(--red); }
.badge.orange { background: #fff4e0; color: var(--orange); }
.badge.gray { background: #f1f2f3; color: var(--sub); }
.badge.blue { background: #e5f4fb; color: var(--blue); }

/* 聊天气泡 */
.msg-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.msg-row .msg-body { min-width: 0; max-width: 70%; flex-shrink: 1; }
.msg-row.mine { flex-direction: row-reverse; }
.bubble { max-width: 100%; padding: 9px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.msg-row:not(.mine) .bubble { background: var(--chat-left); border-top-left-radius: 2px; }
.msg-row.mine .bubble { background: var(--chat-right); border-top-right-radius: 2px; }
.msg-row .meta { font-size: 11px; color: var(--sub); }

/* ── 商城气泡样式（装备后应用） ── */
.bubble.bub-pink { background: linear-gradient(135deg, #ffd6e7, #ffb3d1) !important; color: #7a2e4d; border: 1px solid #ff9ec4; }
.bubble.bub-mint { background: linear-gradient(135deg, #d9f7e8, #a9ecc9) !important; color: #14532d; border: 1px solid #7fd6a8; }
.bubble.bub-night { background: linear-gradient(135deg, #2c3e7a, #161f45) !important; color: #dfe6ff; border: 1px solid #3d5590; }
.bubble.bub-peach { background: linear-gradient(135deg, #ffe3c8, #ffc99b) !important; color: #7a3b12; border: 1px solid #f5b27f; }

/* 底部导航（移动端） */
.bottomnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); z-index: 50; }
.bottomnav a { flex: 1; text-align: center; padding: 8px 0 6px; font-size: 11px; color: var(--sub); }
.bottomnav a .ic { font-size: 20px; display: block; }
.bottomnav a.active { color: var(--pink); }
.bottomnav a.active .ic { transform: scale(1.08); }

/* 移动端：底部导航可见 */
@media (max-width: 767px) {
  .bottomnav { display: flex; }
  body { padding-bottom: 56px; }
}

/* ═══ 手机端全局适配 ═══ */
@media (max-width: 767px) {
  /* 弹窗在手机上尽量全宽，避免内容被截 */
  .modal { width: 94vw; max-width: 94vw; max-height: 88vh; }
  .member-pick-box { width: 92vw; max-width: 92vw; }
  .call-incoming { width: 88vw; }
  /* 输入框字号 ≥16px，防止 iOS 聚焦时自动放大页面 */
  input, textarea, select { font-size: 16px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  /* 可点击元素最小点击区域 */
  .btn { min-height: 36px; }
  .btn.sm { min-height: 32px; padding: 5px 12px; }
  .list-item { padding: 12px 14px; }
  /* toast 位置适配（顶部无桌面导航） */
  #toast { top: 14px; }
  /* 群设置/商城等卡片间距 */
  .card { margin-bottom: 12px; }
  .main, .main-wide { padding: 10px; }
  /* 商城网格手机单列更易点 */
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .crt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .dur button { padding: 8px 4px; font-size: 13px; }
  /* 头像框/气泡预览在窄屏收缩 */
  .cutout-canvas { max-width: 100%; }
  .bubble-preview { height: 190px; }
  .shop-hero { flex-wrap: wrap; }
  .shop-hero .sh-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
  .req-item, .my-req { flex-wrap: wrap; }
  /* 管理后台表格横向滚动 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 680px; }
  .search2 { flex-wrap: wrap; }
  .atabs, .shop-cat, .type-tabs { gap: 6px; }
  .atabs button, .shop-cat button, .type-tabs button { padding: 7px 12px; font-size: 13px; }
  /* 聊天输入区 */
  .chat .cinput { padding: 8px 8px; }
  .chat .cinput textarea { font-size: 16px; }
  .bubble { font-size: 15px; }
  .bubble.media img { max-width: 70vw; }
  .bubble.media video { max-width: 76vw; }
  /* 扩列区三列紧凑 */
  .expand-area { padding: 8px 10px; }
  /* 会话操作按钮组常显（hover 在手机上不生效） */
  .conv-ops { display: inline-flex; gap: 4px; }
  /* 通话控制按钮更大 */
  .call-overlay .call-controls .btn { padding: 12px 20px; }
  .call-local { width: 100px; height: 140px; }
  /* 会员/充值大按钮 */
  .vip-hero { padding: 20px 14px; }
  .vip-hero .big { font-size: 22px; }
}

/* ═══ 会员（VIP）样式 ═══ */
.vip-badge { display: inline-block; font-size: 13px; line-height: 1; margin-left: 2px; vertical-align: middle; }
.vip-frame { position: relative; display: inline-block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px var(--vc, #f7b500), 0 0 8px var(--vc, #f7b500); }
.vip-frame .vip-crown { position: absolute; top: -9px; right: -7px; font-size: 14px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.vip-tag { display: inline-block; font-size: 10px; line-height: 1.4; padding: 1px 6px; border-radius: 8px; color: #fff; margin-left: 4px; vertical-align: 1px; }
.vip-tag.lv1 { background: #f7b500; }
.vip-tag.lv2 { background: #7ec8e3; color: #1a3a4a; }
.vip-tag.lv3 { background: linear-gradient(90deg, #e0526e, #a855f7); }
.exp-chip { display: inline-block; font-size: 11px; color: var(--sub); background: #f0f1f3; border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }

/* ═══ 商城头像框（装备后包裹头像） ═══ */
.af-wrap { position: relative; display: inline-block; width: 100%; height: 100%; border-radius: 50%; }
.af-gold { border-radius: 50%; box-shadow: 0 0 0 2px #f7b500, 0 0 8px rgba(247,181,0,.55); }
.af-sakura { border-radius: 50%; box-shadow: 0 0 0 2px #ff9ec4, 0 0 8px rgba(255,158,196,.55); }
.af-starblue { border-radius: 50%; box-shadow: 0 0 0 2px #3d8bff, 0 0 10px rgba(61,139,255,.5); }
.af-rainbow { border-radius: 50%; animation: af-rainbow 2.4s linear infinite; }
@keyframes af-rainbow {
  0% { box-shadow: 0 0 0 2px #ff5f6d, 0 0 8px #ff5f6d; }
  25% { box-shadow: 0 0 0 2px #ffc371, 0 0 8px #ffc371; }
  50% { box-shadow: 0 0 0 2px #56ab2f, 0 0 8px #56ab2f; }
  75% { box-shadow: 0 0 0 2px #3d8bff, 0 0 8px #3d8bff; }
  100% { box-shadow: 0 0 0 2px #a855f7, 0 0 8px #a855f7; }
}
/* 自定义头像框（投稿图片：透明外圈盖在头像上） */
.af-custom { position: relative; display: inline-block; width: 100%; height: 100%; border-radius: 50%; }
.af-custom-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ═══ 自定义气泡（投稿图片，九宫格 border-image 自动拉伸） ═══ */
.bubble.cus-bubble { background: transparent; border-style: solid; border-color: transparent; border-radius: 0 !important; color: inherit; }

/* ═══ 创作集市 / 投稿 ═══ */
.crt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.crt-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.crt-preview { height: 150px; display: flex; align-items: center; justify-content: center; background: #f0f1f3; position: relative; overflow: hidden; }
.crt-preview img, .crt-preview .crt-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.crt-preview .crt-price-tag { position: absolute; top: 8px; right: 8px; background: var(--orange); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 8px; }
.crt-preview .crt-free-tag { position: absolute; top: 8px; right: 8px; background: var(--green); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 8px; }
.crt-preview .crt-gif-tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; border-radius: 8px; padding: 1px 6px; }
.crt-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.crt-name { font-weight: 600; font-size: 14px; }
.crt-desc { font-size: 11px; color: var(--sub); margin: 3px 0 6px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.crt-meta { font-size: 11px; color: var(--sub); margin-bottom: 6px; }
.crt-ops { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.crt-ops .btn { flex: 1; padding: 6px 8px; font-size: 12px; }
.crt-author { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.crt-author .avatar { width: 24px; height: 24px; font-size: 14px; }

/* 气泡预览（可拖动 + 可缩放） */
.bubble-preview { position: relative; height: 210px; background: repeating-conic-gradient(#eef0f3 0% 25%, #fafbfc 0% 50%) 0 0 / 20px 20px; border-radius: 10px; padding: 8px; margin-top: 10px; overflow: hidden; }
.bp-msg.draggable { position: absolute; display: inline-block; min-width: 70px; min-height: 34px; cursor: move; touch-action: none; user-select: none; color: var(--text); font-size: 14px; line-height: 1.5; word-break: break-word; z-index: 2; }
#bpShort { left: 12px; top: 14px; }
#bpLong { left: 38%; top: 118px; }
.bp-handle { position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 3px; background: var(--blue); opacity: .75; cursor: nwse-resize; z-index: 3; }
.bp-handle::after { content: '◢'; position: absolute; right: 2px; bottom: 0; font-size: 10px; color: #fff; line-height: 1; }

/* 抠图工具 */
.cutout-box { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.cutout-canvas { border: 1px dashed var(--border); border-radius: 10px; background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; max-width: 260px; }
.cutout-tools { flex: 1; min-width: 220px; }
.cutout-tools .ct-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cutout-tools label { font-size: 12px; color: var(--sub); display: block; margin-bottom: 4px; }

/* ═══ 聊天背景（装备后应用到聊天区） ═══ */
.cbg-starry { background: linear-gradient(160deg, #0b1026, #1b2a5e) !important; }
.cbg-forest { background: linear-gradient(160deg, #0f2b1d, #3e7a4f) !important; }
.cbg-ocean { background: linear-gradient(160deg, #0c3a5e, #2e8bb8) !important; }
.cbg-romantic { background: linear-gradient(160deg, #ffd6e7, #ffb3c1) !important; }

/* ═══ 空间卡片（装备后应用到动态卡片） ═══ */
.moment.mcard-guofeng { background: linear-gradient(135deg, #f7f3ec, #e8ddc9) !important; border: 1px solid #d8c8a8 !important; }
.moment.mcard-candy { background: linear-gradient(135deg, #ffe3ec, #e3f4ff) !important; border: 1px solid #f0c9dd !important; }
.moment.mcard-plain { background: #fff; }

/* 会话置顶 */
.list-item.pinned { box-shadow: inset 3px 0 0 var(--blue, #00a1d6); background: #f7fbff; }
.conv-ops { display: none; }
.list-item:hover .conv-ops { display: inline-flex; gap: 4px; }
.conv-ops button { border: 1px solid var(--border); background: var(--card); border-radius: 6px; font-size: 11px; padding: 1px 5px; cursor: pointer; color: var(--sub); }
.conv-ops button:hover { color: var(--blue); border-color: var(--blue); }

/* 好友分组 */
.fg-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; color: var(--sub); cursor: pointer; user-select: none; }
.fg-head .fg-arrow { transition: transform .15s; font-size: 10px; }
.fg-head.collapsed .fg-arrow { transform: rotate(-90deg); }
.fg-head .fg-count { margin-left: auto; font-size: 11px; color: #bbb; }
.fg-body { display: block; }
.fg-head.collapsed + .fg-body { display: none; }
.fg-menu { border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 6px; display: none; position: absolute; z-index: 30; box-shadow: 0 4px 14px rgba(0,0,0,.12); min-width: 140px; }
.fg-menu.show { display: block; }
.fg-menu div { padding: 5px 10px; font-size: 13px; cursor: pointer; border-radius: 6px; }
.fg-menu div:hover { background: #f0f1f3; }

/* 群公告 */
.g-announce { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #8c6d1f; margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.g-announce .g-a-title { font-weight: 600; flex-shrink: 0; }

/* 已读回执 */
.read-flag { font-size: 10px; color: var(--sub); margin-left: 4px; }

/* 个人标签 chips */
.tag-chip { display: inline-block; font-size: 12px; color: #1a5fb4; background: #e8f4ff; border-radius: 10px; padding: 1px 8px; margin: 2px 3px 0 0; }

/* ═══ 商城页面 ═══ */
.shop-hero { background: linear-gradient(135deg, var(--pink), var(--blue)); border-radius: 14px; padding: 20px; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.shop-hero .sh-coin { font-size: 26px; font-weight: 800; }
.shop-hero .sh-sub { font-size: 12px; opacity: .9; }
.shop-hero .sh-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.shop-cat { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.shop-cat button { padding: 6px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); color: var(--sub); font-size: 13px; }
.shop-cat button.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.shop-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; position: relative; }
.shop-item .si-preview { height: 90px; display: flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.shop-item .si-name { font-weight: 600; font-size: 14px; }
.shop-item .si-desc { font-size: 11px; color: var(--sub); margin: 4px 0 8px; line-height: 1.5; }
.shop-item .si-price { color: var(--orange); font-weight: 700; font-size: 14px; }
.shop-item .si-btn { margin-top: 8px; width: 100%; }
.shop-item.owned .si-btn { background: #e8f7e9; color: var(--green); border: 1px solid #b8e6c0; }
.shop-item.equipped .si-btn { background: #ffecec; color: var(--red); border: 1px solid #ffc9c9; }
.shop-item .si-owned-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; background: rgba(0,0,0,.5); color: #fff; border-radius: 8px; padding: 1px 6px; }

/* 气泡预览 */
.bub-prev { max-width: 70%; padding: 9px 13px; border-radius: 12px; font-size: 13px; }
.bub-prev.bub-pink { background: linear-gradient(135deg, #ffd6e7, #ffb3d1); color: #7a2e4d; border: 1px solid #ff9ec4; }
.bub-prev.bub-mint { background: linear-gradient(135deg, #d9f7e8, #a9ecc9); color: #14532d; border: 1px solid #7fd6a8; }
.bub-prev.bub-night { background: linear-gradient(135deg, #2c3e7a, #161f45); color: #dfe6ff; border: 1px solid #3d5590; }
.bub-prev.bub-peach { background: linear-gradient(135deg, #ffe3c8, #ffc99b); color: #7a3b12; border: 1px solid #f5b27f; }
/* 头像框预览 */
.af-prev { width: 56px; height: 56px; border-radius: 50%; background: #d8dbe0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='16' fill='%23aab3c2'/%3E%3C/svg%3E") center/cover no-repeat; display: inline-block; }
/* 聊天背景预览 */
.cbg-prev { width: 90%; height: 56px; border-radius: 10px; border: 1px solid var(--border); }
/* 空间卡片预览 */
.mcard-prev { width: 90%; height: 56px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sub); }

/* 充值弹窗 */
.pay-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 99; }
.pay-mask.show { display: flex; }
.pay-card { background: var(--card); border-radius: 14px; width: min(360px, 92vw); padding: 22px; text-align: center; }
.pay-card img.qr { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; margin: 10px auto; }
.pay-card .amt { font-size: 24px; font-weight: 800; color: var(--pink); margin: 6px 0; }
.pay-card .tip { font-size: 12px; color: var(--sub); margin-bottom: 12px; line-height: 1.6; }

/* 充值/申请记录 */
.req-list .req-item { border-bottom: 1px solid #f5f6f7; padding: 10px 4px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-list .req-item .r-status { margin-left: auto; }
