:root {
  --gold: #b8942a;
  --gold-light: #d4af37;
  --purple: #7c5cbf;
  --blue: #4a8fd6;
  --bg: #f6f4ef;
  --bg2: #fdfcf9;
  --card: #ffffff;
  --card2: #f7f4ee;
  --text: #2d2a26;
  --text-dim: #8a8580;
  --text-faint: #b3ada4;
  --border: rgba(0,0,0,0.07);
  --border-gold: rgba(184,148,42,0.28);
  --grad-gold: linear-gradient(135deg, #b8942a, #d4af37);
  --grad-purple: linear-gradient(135deg, #7c5cbf, #b8942a);
  --header-bg: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,251,244,0.82) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(255,255,255,0.96) 0%, rgba(255,251,244,0.84) 100%);
  --gold-line: rgba(212,175,55,0.55);
  --cover-bg: linear-gradient(135deg, #7c5cbf, #d4af37);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(820px 520px at 82% -6%, rgba(124,92,191,0.12) 0%, transparent 62%),
    radial-gradient(720px 540px at 10% 112%, rgba(184,148,42,0.10) 0%, transparent 62%),
    radial-gradient(640px 420px at 55% 55%, rgba(74,143,214,0.06) 0%, transparent 60%),
    linear-gradient(165deg, #fdfcf9 0%, #f8f5ee 38%, #f6f4ef 72%, #f3eee5 100%);
  color: var(--text);
  height: 100vh;
  height: 100dvh; /* v1.126: 动态视口高度，解决移动浏览器地址栏/底部工具栏挡住导航 */
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* v1.130: 从精选推荐页跳转（?peer/?wallet/?recharge）→ 隐藏主程序各页面+底部导航，弹层背后不露 YONA 聊天界面（modalMask 在 .app 内，故只隐藏 .page 而非 .app） */
body.share-entry .page,
body.share-entry .tabbar,
body.share-entry .world-chat-bubble {
  display: none !important;
}
body.share-entry {
  background: linear-gradient(165deg, #0b0530 0%, #06041f 55%, #05041a 100%);
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* v1.126: 动态视口高度 */
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.page { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── 顶部栏 ── */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 1px 0 var(--gold-line), 0 6px 24px rgba(184,148,42,0.07);
  flex-shrink: 0;
  position: relative;
}
/* 金色花纹装饰线（页眉底部边缘） */
.chat-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-line) 18%, var(--border-gold) 50%,
    var(--gold-line) 82%, transparent 100%);
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-gold); flex-shrink: 0;
  overflow: hidden; border: 2px solid rgba(212,175,55,0.5);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.header-info { flex: 1; }
.name { font-size: 16px; font-weight: 700; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.status { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-online { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.dot-offline { background: #ef4444; }
.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4);
  font-size: 16px; cursor: pointer; flex-shrink: 0;
}

/* ── 消息列表 ── */
.msg-list {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  -webkit-overflow-scrolling: touch;
}
.msg-row { display: flex; gap: 8px; animation: fadeIn 0.3s ease; }
.msg-row.ai { align-self: flex-start; }
.msg-row.user { flex-direction: row-reverse; align-self: flex-end; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); flex-shrink: 0; overflow: hidden;
}
.msg-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.msg-body { max-width: 78vw; min-width: 0; }
.bubble { padding: 10px 14px; font-size: 15px; line-height: 1.5; word-break: break-word; position: relative; }
.bubble.ai { background: var(--card); border-radius: 16px 16px 16px 4px; color: var(--text); border: 1px solid var(--border); }
.bubble.user { background: var(--grad-gold); color: #1a1200; border-radius: 16px 16px 4px 16px; font-weight: 500; padding: 12px 20px; text-align: right; }
/* v1.31: 气泡特效跟随发送者皮肤（炫目加强版 · 星星用固定坐标散落，不平铺成网格） */
.bubble.user.skin-night, .g-msg-bubble.skin-night, .wc-msg-bubble.skin-night {
  background-image:
    radial-gradient(2px 2px at 18% 28%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 62% 18%, rgba(210,225,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 40% 72%, rgba(200,180,255,0.85), transparent),
    radial-gradient(2px 2px at 82% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 12% 60%, rgba(255,235,180,0.8), transparent),
    radial-gradient(1.5px 1.5px at 55% 50%, rgba(255,255,255,0.7), transparent),
    linear-gradient(135deg, #2a3a7a 0%, #5a4ab0 55%, #8a5ae0 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(122,90,208,0.5);
}
.bubble.user.skin-pink, .g-msg-bubble.skin-pink, .wc-msg-bubble.skin-pink {
  background-image:
    radial-gradient(2px 2px at 20% 25%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 75% 60%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 50% 75%, rgba(255,255,255,0.35), transparent),
    linear-gradient(135deg, #e88ab0, #f4a8c0);
  color: #4a1a2a;
}
.bubble.user.skin-gold, .g-msg-bubble.skin-gold, .wc-msg-bubble.skin-gold {
  background-image:
    radial-gradient(2px 2px at 80% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(255,255,255,0.35), transparent),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #b8860b 0%, #e8c83a 50%, #ffed8a 100%);
  color: #1a1200;
  box-shadow: 0 0 14px rgba(255,215,0,0.6);
}
/* v1.32: 星辰紫气泡（单一多段渐变 + 发光，彻底避免多层背景导致 webview 横版/超屏） */
.bubble.user.skin-star, .g-msg-bubble.skin-star, .wc-msg-bubble.skin-star {
  background-image: linear-gradient(135deg, #4a1288 0%, #7a1fa8 35%, #a832c8 70%, #d04ad8 100%);
  color: #fff;
  box-shadow: 0 0 14px rgba(180,80,220,0.6);
}
/* v1.32: 极光蓝气泡（单一多段渐变 + 发光，彻底避免横向光带导致 webview 横版/超屏） */
.bubble.user.skin-aurora, .g-msg-bubble.skin-aurora, .wc-msg-bubble.skin-aurora {
  background-image: linear-gradient(135deg, #003a5c 0%, #006a78 45%, #009a90 75%, #00c8a0 100%);
  color: #fff;
  box-shadow: 0 0 14px rgba(0,229,255,0.55);
}
/* v1.31: 帝王金 → 至尊红橙气泡（火焰火星 + 红橙渐变） */
.bubble.user.skin-emperor, .g-msg-bubble.skin-emperor, .wc-msg-bubble.skin-emperor {
  background-image:
    radial-gradient(2px 2px at 18% 22%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 75% 62%, rgba(255,220,0,0.5), transparent),
    radial-gradient(1.5px 1.5px at 42% 82%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 85% 30%, rgba(255,180,0,0.45), transparent),
    linear-gradient(135deg, #ff3d00 0%, #ff6d00 45%, #ff9800 80%, #ffb300 100%);
  color: #fff;
  box-shadow: 0 0 14px rgba(255,110,0,0.6);
}
/* v0.84: 聊天气泡金色描边 + 星星特效（贴合气泡边缘，兼容微信webview） */
.bubble.ai::before, .bubble.user::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}
/* v1.42: 5级富豪金色扫光特效（光影沿气泡扫过） */
.bubble.user.rich::before {
  border: 1.5px solid var(--gold);
  background: linear-gradient(105deg, transparent 30%, rgba(255,248,220,0.65) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: sweepLight 2.2s ease-in-out infinite;
}
.bubble.ai::after, .bubble.user::after {
  content: '✨';
  position: absolute;
  top: -9px;
  font-size: 13px;
  animation: starTwinkle 1.5s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 0 6px var(--gold);
}
.bubble.ai::after { right: -7px; }
.bubble.user::after { left: -7px; }
.msg-img { max-width: 200px; max-height: 280px; border-radius: 12px; display: block; object-fit: cover; }
.divider { text-align: center; font-size: 11px; color: var(--text-faint); padding: 4px 0; }
.divider::before, .divider::after { content: '—'; margin: 0 8px; color: var(--border); }

/* 输入中动画 */
.typing { display: flex; gap: 4px; padding: 6px 2px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: blink 1.4s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── 推荐卡片 ── */
.card-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.reco-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--border-gold);
  border-radius: 16px; padding: 12px; cursor: pointer; transition: all 0.2s;
}
.reco-card:active { background: var(--card2); transform: scale(0.98); }
.rc-avatar { width: 60px; height: 60px; border-radius: 12px; background: #efece6; flex-shrink: 0; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.rc-avatar.rc-locked { background: linear-gradient(135deg, #f3efe7, #e8e1f2); border: 1px dashed rgba(124,92,191,0.5); font-size: 22px; }
/* v1.149: 定位做成按钮样式（暗示可点击打开地图看距离） */
.rc-loc { display: inline-flex; align-items: center; gap: 4px; color: #7fb7e8; cursor: pointer; background: rgba(127,183,232,0.14); border: 1px solid rgba(127,183,232,0.42); border-radius: 8px; padding: 3px 9px; font-size: 12px; line-height: 1.4; }
.rc-loc:active { background: rgba(127,183,232,0.26); }
.rc-avatar-frame { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.rc-promo-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 6; background: linear-gradient(135deg, #ffb347 0%, #ff8c42 45%, #ff6b35 100%); color: #fff; font-size: 9px; font-weight: 800; line-height: 1.15; padding: 3px 8px; border-radius: 8px; white-space: nowrap; border: 1px solid rgba(255,255,255,0.62); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 2px 7px rgba(180,70,10,0.55); text-shadow: 0 1px 1px rgba(140,50,0,0.45); letter-spacing: 0.3px; }
.rc-avatar-frame .rc-avatar { width: 100%; height: 100%; border-radius: 12px; }
.rc-avatar-frame.avatar-frame-premium::after { border-radius: 14px; }
.rc-tag-lock { background: rgba(124,92,191,0.12); color: var(--purple); }

/* 点选 chip 容器 + 推荐结果网格 */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 48vh; overflow-y: auto; }
.rp-cell { background: var(--card); border-radius: 10px; overflow: hidden; }
.rp-cell img { width: 100%; aspect-ratio: 5/6; object-fit: cover; display: block; }
.rp-info { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 0; font-size: 12px; }
.rp-info span:first-child { color: var(--text); font-weight: 600; }
.rp-meta { padding: 2px 8px 6px; font-size: 11px; color: var(--text-dim); }
.rc-info { flex: 1; min-width: 0; }
.rc-top { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; flex-wrap: nowrap; }
.rc-name { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rc-top .badge, .rc-top .level-tag, .rc-top .rc-online { flex-shrink: 0; }
.badge { padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
/* v1.149: 达人颜值评级 → 立体按钮（赵总 2026-09-28 定：字更大、立体、带特效） */
.lv-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 4px 13px 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.5px;
  vertical-align: middle;
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 4px 10px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.42), inset 0 -2px 4px rgba(0,0,0,0.28);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  transform: translateZ(0);
}
.lv-badge .lv-text { position: relative; z-index: 1; white-space: nowrap; }
/* 基础档：立体纯色渐变按钮 */
.lv-badge.lv-c { background: linear-gradient(160deg,#6b7280,#374151); color:#e5e7eb; }
.lv-badge.lv-b { background: linear-gradient(160deg,#60a5fa,#1d4ed8); color:#fff; box-shadow:0 4px 10px rgba(29,78,216,0.5), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(0,0,0,0.3); }
.lv-badge.lv-a { background: linear-gradient(160deg,#a78bfa,#6d28d9); color:#fff; box-shadow:0 4px 10px rgba(109,40,217,0.5), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(0,0,0,0.3); }
/* S 金光立体按钮 + 扫光 */
.lv-eff-gold {
  background: linear-gradient(160deg,#fcd34d 0%,#f59e0b 45%,#b45309 100%);
  color:#fff;
  box-shadow: 0 4px 14px rgba(217,119,6,0.6), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 4px rgba(0,0,0,0.3);
}
.lv-eff-gold .lv-text {
  background: linear-gradient(110deg,#fff 20%,#fff7d6 40%,#ffef9f 50%,#fff7d6 60%,#fff 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lvSweep 2.4s linear infinite;
  text-shadow: none;
}
/* SS 玫瑰金立体按钮 + 扫光 */
.lv-eff-rose {
  background: linear-gradient(160deg,#fda4af 0%,#e11d48 50%,#9f1239 100%);
  color:#fff;
  box-shadow: 0 4px 14px rgba(225,29,72,0.6), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.3);
}
.lv-eff-rose .lv-text {
  background: linear-gradient(110deg,#ffe9ec 20%,#fff 40%,#ffd6dd 50%,#fff 60%,#ffe9ec 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lvSweep 2.4s linear infinite;
  text-shadow: none;
}
/* SSS 七彩流动按钮 */
.lv-eff-rainbow {
  background: linear-gradient(110deg,#ff0080,#ff8c00,#ffee00,#00c853,#00b0ff,#7c4dff,#ff0080);
  background-size: 300% 100%;
  color:#fff;
  animation: lvRainbowShift 3s linear infinite;
  box-shadow: 0 4px 16px rgba(124,77,255,0.65), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(0,0,0,0.25);
}
@keyframes lvRainbowShift {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}
/* v1.15x: T台竞约标记——七彩流光背景 + 文字呼吸闪烁（动态强调） */
.rc-online.tstage {
  background: linear-gradient(110deg,#ff0080,#ff8c00,#ffee00,#00c853,#00b0ff,#7c4dff,#ff0080);
  background-size: 300% 100%;
  animation: lvRainbowShift 3s linear infinite;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.rc-online.tstage .tstage-flash {
  display: inline-block;
  animation: tstagePulse 1.1s ease-in-out infinite;
}
@keyframes tstagePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.35); }
}
/* v1.15x: 达人主页/列表里 T台标记（独立使用，非 .rc-online 内） */
.tstage-flash {
  display: inline-block;
  font-weight: 700;
  animation: tstagePulse 1.1s ease-in-out infinite;
}
/* v1.149: 推荐卡片/列表里的评级标签缩小版（适配紧凑布局，主页保持大气版） */
.lv-badge.lv-sm {
  font-size: 11px;
  padding: 3px 10px;
  margin-left: 4px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 2px rgba(0,0,0,0.25);
}
.lv-badge.lv-sm .lv-star { font-size: 7px; }
@keyframes lvSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.lv-star {
  position: absolute;
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
  animation: starTwinkle 1.1s ease-in-out infinite;
  z-index: 2;
}
.lv-star-rose { color: #ffc4cf; text-shadow: 0 0 6px rgba(255,196,207,1), 0 0 12px rgba(183,110,121,0.9); }
.lv-star-rainbow { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.95); animation: starTwinkle 1.1s ease-in-out infinite, rainbowStar 1.6s linear infinite; }
.rc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.rc-tag { font-size: 10px; padding: 2px 8px; border-radius: 8px; background: rgba(139,92,246,0.18); color: #c9b3ff; }
.rc-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; }
.rc-guild { font-size: 11px; font-weight: 600; color: #2b6cb0; background: rgba(43,108,176,0.10); padding: 2px 8px; border-radius: 8px; margin-top: 4px; display: inline-block; }
.rc-price { font-size: 16px; font-weight: 700; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-left: auto; }
.rc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.rc-invite { background: linear-gradient(135deg, var(--gold), var(--purple)); color: #fff; border: none; border-radius: 14px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.rc-invite-reserve { background: rgba(0,0,0,0.05); border: 1px solid var(--border); color: var(--text-dim); }
.rc-online { font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 2px; white-space: nowrap; }
.rc-online.on { color: #0a9a58; background: rgba(10,154,88,0.12); }
.rc-online.off { color: var(--text-faint); background: rgba(0,0,0,0.05); }
.rc-wish { font-size: 10px; color: var(--gold-light); background: rgba(212,175,55,0.12); padding: 1px 6px; border-radius: 8px; }
.rc-wish-tstage { font-size: 10px; color: #fff; background: linear-gradient(135deg,#8b5cf6,#d4af37); padding: 1px 6px; border-radius: 8px; font-weight: 700; }

/* ── 浮窗导航提醒 ── */
.float-tip { position: fixed; top: 10px; right: 10px; z-index: 9998; display: flex; flex-direction: column; align-items: flex-end; }
.float-tip-arrow { font-size: 30px; line-height: 1; color: var(--gold); animation: floatArrow 1.2s ease-in-out infinite; }
.float-tip-card { background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px; padding: 14px 16px; margin-top: 2px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); max-width: 240px; }
.float-tip-title { color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.float-tip-text { color: var(--text); font-size: 13px; line-height: 1.7; }
.float-tip-btn { margin-top: 12px; width: 100%; background: var(--grad-gold); border: none; color: #fff; border-radius: 10px; padding: 8px; font-weight: 700; cursor: pointer; }
@keyframes floatArrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── 通知横幅（v1.39: 背景随皮肤主题变色，保证文字清晰）── */
.notice-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 10001; display: none; background: var(--header-bg); border-bottom: 1px solid var(--border-gold); padding: 16px 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); animation: noticeIn 0.3s ease; cursor: pointer; }
.notice-title { font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.notice-text { font-size: 14px; color: var(--text); line-height: 1.5; }
@keyframes noticeIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ── 通知中心 ── */
.menu-badge { display: inline-block; background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; margin-left: 6px; line-height: 1.4; }
.notif-item { padding: 13px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 9px; }
.notif-item.unread { border: 2px solid var(--border-gold); box-shadow: 0 0 0 1px rgba(212,175,55,0.25), 0 2px 12px rgba(212,175,55,0.14); background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(212,175,55,0.05)); position: relative; overflow: hidden; }
.notif-item.unread::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(120deg, transparent 40%, rgba(255,215,0,0.85) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: notifSweep 2.5s linear infinite;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
@keyframes notifSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}
.notif-head { display: flex; align-items: center; gap: 8px; }
.notif-title { font-size: 14px; font-weight: 700; color: var(--text); }
.notif-dot { color: #ff4d4f; font-size: 9px; }
.notif-content { font-size: 13px; color: var(--text-dim); margin-top: 5px; line-height: 1.6; }
.notif-time { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
/* v1.65: 通知设置（铃声/震动/语音播报事件） */
.notif-settings { padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.notif-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.notif-setting-row + .notif-setting-row { border-top: 1px solid var(--border); }
.notif-setting-label { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-setting-desc { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.notif-switch { width: 44px; height: 24px; border-radius: 12px; background: #d5d0c8; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.notif-switch[data-on="1"] { background: linear-gradient(135deg, #8b5cf6, #d4af37); }
.notif-switch .notif-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.notif-switch[data-on="1"] .notif-knob { left: 22px; }
.notif-voice-select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 12px; }
.notif-warn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255,159,67,0.12); border: 1px solid rgba(255,159,67,0.3); color: #e08a2e; font-size: 11px; line-height: 1.6; }

/* ── 临时群悬浮泡泡 ── */
.group-fab { position: fixed; right: 16px; bottom: 110px; width: 74px; height: 52px; border-radius: 26px; background: linear-gradient(135deg, #8b5cf6, #d4af37); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; z-index: 9998; box-shadow: 0 6px 24px rgba(139,92,246,0.5); cursor: pointer; animation: fabPop 0.3s ease; }
.group-fab-badge { position: absolute; top: -2px; right: -2px; background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center; }
@keyframes fabPop { from { transform: scale(0); } to { transform: scale(1); } }
.group-fab-menu { position: fixed; right: 16px; bottom: 172px; width: 240px; background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); z-index: 9999; overflow: hidden; animation: fabMenuIn 0.2s ease; }
.fab-menu-title { padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--gold); border-bottom: 1px solid var(--border); }
.fab-menu-item { padding: 12px 14px; font-size: 14px; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--border); }
.fab-menu-item:last-child { border-bottom: none; }
.fab-menu-item:active { background: rgba(139,92,246,0.12); }
@keyframes fabMenuIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── 认证标记 ── */
.rc-cert { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 8px; margin-left: 4px; background: linear-gradient(135deg, #7c5cbf, #b8942a); color: #fff; white-space: nowrap; }
.rc-cert-pending { background: rgba(124,92,191,0.14); color: var(--purple); }
.rc-cert-none { background: rgba(0,0,0,0.06); color: var(--text-dim); }
.rc-cert-guild { background: linear-gradient(135deg, #2b6cb0, #63b3ed); color: #fff; }

/* ── 临时小群 ── */
.group-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
.group-item-icon { font-size: 26px; }
.group-item-info { flex: 1; }
.group-item-name { font-size: 15px; font-weight: 600; color: var(--text); }
.group-item-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.group-item.unread { border-color: #d4af37; box-shadow: 0 0 0 1px rgba(212,175,55,0.4), 0 4px 14px rgba(212,175,55,0.18); }
.group-item .hb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; margin-left: 6px; vertical-align: middle; }
.contact-cat { position: relative; flex: 1; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-dim); background: var(--card); transition: all .2s ease; }
.contact-cat.active { color: var(--gold); border-color: var(--border-gold); background: rgba(212,175,55,0.08); }
.contact-cat.sweep { border: 1.5px solid #d4af37; animation: contactSweep 1.6s ease-in-out infinite; }
@keyframes contactSweep { 0%, 100% { box-shadow: 0 0 4px rgba(212,175,55,0.35); } 50% { box-shadow: 0 0 18px rgba(212,175,55,0.9); } }
/* v1.119: 公会待审核资料成员红点光扫 */
.gld-pending::after { content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; background: linear-gradient(105deg, transparent, rgba(239,68,68,0.22), transparent); animation: gldPendingSweep 2.4s linear infinite; pointer-events: none; }
@keyframes gldPendingSweep { 0% { left: -80%; } 100% { left: 140%; } }
.contact-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; padding: 0 5px; }
.group-fab.sweep { box-shadow: 0 0 0 2px rgba(212,175,55,0.85), 0 0 18px rgba(212,175,55,0.55), 0 6px 24px rgba(139,92,246,0.5); animation: fabPop 0.3s ease, fabSweep 2s linear infinite; }
@keyframes fabSweep { 0%, 100% { box-shadow: 0 0 0 2px rgba(212,175,55,0.85), 0 0 18px rgba(212,175,55,0.55), 0 6px 24px rgba(139,92,246,0.5); } 50% { box-shadow: 0 0 0 3px rgba(212,175,55,1), 0 0 30px rgba(212,175,55,0.85), 0 6px 24px rgba(139,92,246,0.5); } }
.group-chat { display: flex; flex-direction: column; height: 78vh; }
/* v1.148: 公会群聊——从顶部弹出 + 初始 2/5 高度 + 可拖拽调整大小 */
/* v1.149: 公会群聊改成浮动面板——背景不模糊、不拦截点击，可同时操作背后的页面（工作台等） */
.modal-mask.guild-chat-mask { align-items: flex-start; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.modal-sheet.guild-chat-sheet {
  pointer-events: auto;
  border-radius: 0 0 26px 26px;
  height: 40vh;
  max-height: 90vh;
  min-height: 20vh;
  overflow: hidden;
  padding: 6px 16px 12px;
  box-shadow: 0 8px 40px rgba(45,42,38,0.25), 0 2px 12px rgba(184,148,42,0.15);
}
.modal-sheet.guild-chat-sheet .group-chat { height: 100%; }
.guild-drag-handle { flex: 0 0 auto; display: flex; justify-content: center; padding: 10px 0 6px; cursor: grab; touch-action: none; }
.guild-drag-bar { width: 76px; height: 6px; border-radius: 3px; background: rgba(184,148,42,0.75); box-shadow: 0 1px 3px rgba(0,0,0,0.35); }
/* v1.149: 公会群聊浮动面板——独立容器，悬浮在工作台等上层，不遮挡背景，可同时操作 */
.guild-chat-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  width: 100%; max-width: 480px;
  height: 40vh;
  max-height: 90vh;
  min-height: 20vh;
  z-index: 10001;
  background: linear-gradient(180deg, var(--card) 0%, var(--card2) 100%);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 8px 40px rgba(45,42,38,0.25), 0 2px 12px rgba(184,148,42,0.15);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}
.guild-chat-panel .group-chat { width: 100%; height: 100%; }
.group-chat-header { display: flex; align-items: center; gap: 10px; padding: 4px 2px 12px; border-bottom: 1px solid var(--border); }
.group-back { background: none; border: none; color: var(--gold); font-size: 14px; cursor: pointer; }
.group-title { font-size: 15px; font-weight: 700; color: var(--text); }
.group-order { background: rgba(7,193,96,0.15); border: 1px solid var(--border-gold); color: var(--gold); border-radius: 6px; padding: 2px 10px; font-size: 14px; cursor: pointer; }
.group-min { margin-left: auto; background: rgba(139,92,246,0.15); border: 1px solid var(--border-gold); color: var(--gold); border-radius: 6px; padding: 2px 12px; font-size: 16px; cursor: pointer; }
.group-msgs { flex: 1; overflow-y: auto; padding: 12px 2px; display: flex; flex-direction: column; gap: 10px; }
.g-msg-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.g-msg-row.mine { align-self: flex-end; align-items: flex-end; }
.g-msg-meta { font-size: 10px; color: var(--text-faint); margin-bottom: 3px; }
.g-msg-bubble { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 9px 13px; max-width: 100%; position: relative; }
.g-msg-row.mine .g-msg-bubble { background: linear-gradient(135deg, rgba(139,92,246,0.28), rgba(212,175,55,0.18)); border-color: rgba(139,92,246,0.4); }
/* v0.84: 临时群聊气泡特效（流光边框 + 星星，随主题） */
.g-msg-bubble::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, var(--gold), #fff, var(--gold-light), #fff, var(--gold));
  background-size: 300% 300%;
  animation: goldShine 3s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.g-msg-bubble::after {
  content: '✨';
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 11px;
  animation: starTwinkle 1.5s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 0 5px var(--gold);
}
.g-msg-row.mine .g-msg-bubble::after { right: auto; left: -6px; }
/* v1.67: 无皮肤的人不上气泡特效（流光边框+星星） */
.g-msg-bubble.no-skin::before { display: none; }
.g-msg-bubble.no-skin::after { display: none; }
.g-msg-text { font-size: 14px; color: var(--text); word-break: break-word; line-height: 1.5; }
.g-msg-img { max-width: 200px; max-height: 260px; border-radius: 10px; display: block; }
.g-msg-video { max-width: 200px; max-height: 260px; border-radius: 10px; display: block; }
.g-msg-loc { font-size: 14px; color: #6ee7a0; }
.g-msg-quote { font-size: 11px; color: var(--text-faint); border-left: 2px solid var(--gold); padding-left: 8px; margin-bottom: 5px; }
.g-msg-revoked { font-size: 12px; color: var(--text-faint); font-style: italic; }
.group-replybar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(139,92,246,0.12); border-radius: 10px; margin: 6px 0; font-size: 12px; color: var(--text-dim); }
.group-replybar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-replybar button { background: none; border: none; color: var(--text-dim); cursor: pointer; }
.group-inputbar { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.group-tool { background: rgba(139,92,246,0.15); border: none; border-radius: 10px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.group-input { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--text); }
.group-send { background: linear-gradient(135deg, var(--gold), var(--purple)); border: none; color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
/* v1.149: 表情包面板 */
.group-emoji-panel { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; max-height: 150px; overflow-y: auto; background: var(--card2); border-top: 1px solid var(--border); flex: 0 0 auto; -webkit-overflow-scrolling: touch; }
.emoji-item { font-size: 24px; background: none; border: none; padding: 3px; cursor: pointer; border-radius: 6px; line-height: 1; }
.emoji-item:active { background: rgba(212,175,55,0.22); }
.group-msg-menu { position: fixed; z-index: 10000; display: none; flex-direction: column; background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.group-msg-menu button { background: none; border: none; color: var(--text); padding: 10px 18px; font-size: 13px; text-align: left; cursor: pointer; border-bottom: 1px solid var(--border); }
.group-msg-menu button:last-child { border-bottom: none; }

/* ── 订单卡片 ── */
.order-card { background: var(--card); border: 1px solid var(--border-gold); border-radius: 16px; padding: 14px; width: 100%; }
.order-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.order-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--gold); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }

/* ── v1.67: 订单卡片扫光边框（待支付/新进展，不同节点不同颜色）── */
.order-sweep { position: relative; }
.order-sweep::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 2px;
  background: linear-gradient(120deg, transparent 30%, var(--sweep-color, #d4af37) 50%, transparent 70%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orderSweep 2.8s linear infinite;
  pointer-events: none;
}
@keyframes orderSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

/* v1.86: 我的聚会栏光扫边框（有未处理订单/新邀约/未读通知时） */
.menu-sweep { position: relative; }
.menu-sweep::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(120deg, transparent 30%, #ffd75e 50%, transparent 70%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orderSweep 2.8s linear infinite;
  pointer-events: none;
}

/* ── 快捷操作 ── */
.quick-bar { display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; flex-shrink: 0; }
.chip {
  white-space: nowrap; padding: 7px 14px; border-radius: 18px;
  font-size: 12px; background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3); color: var(--purple);
  cursor: pointer; flex-shrink: 0;
}
.chip:active { background: rgba(139,92,246,0.3); }

/* ── 输入区 ── */
.input-bar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--tabbar-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -1px 0 var(--gold-line), 0 -6px 24px rgba(184,148,42,0.06);
  flex-shrink: 0;
  position: relative;
}
/* 金色花纹装饰线（输入框顶部边缘） */
.input-bar::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-line) 20%, var(--border-gold) 50%,
    var(--gold-line) 80%, transparent 100%);
}
.input-bar input {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 10px 16px; color: var(--text); font-size: 15px; outline: none;
}
.input-bar input:focus { border-color: rgba(212,175,55,0.5); }
.img-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); font-size: 18px; cursor: pointer; flex-shrink: 0; }
.send-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--grad-gold); color: #1a1200; font-size: 20px; cursor: pointer; flex-shrink: 0; }

/* ── 子页头部 ── */
.sub-header { padding: 16px 16px 8px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: space-between; }
.sub-title { font-size: 19px; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; flex-shrink: 0; }
.sub-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.filter-btn { background: rgba(139,92,246,0.2); color: var(--purple); border: 1px solid rgba(139,92,246,0.4); border-radius: 8px; padding: 5px 12px; font-size: 13px; cursor: pointer; flex-shrink: 0; }

/* ── 组局页眉导航（圆形 emoji 图标按钮，紧凑不挤）── */
.party-header { gap: 10px; }
.party-header-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.party-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; flex-shrink: 0; line-height: 1; }

/* ── v1.44: 页眉圆形图标按钮（精美）── */
.header-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.header-btn {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
  box-shadow: 0 0 0 1.5px rgba(212,175,55,0.45), 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}
.header-btn:active { transform: scale(0.88); }
.header-btn .hb-icon { display: block; line-height: 1; }
.header-btn .hb-dot {
  position: absolute; top: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff4d4f; border: 2px solid var(--card);
  display: none;
}
.header-btn .hb-dot.show { display: block; }

/* ── v1.44: 世界群聊聊天泡泡（缩小后）── */
.world-chat-bubble {
  position: fixed; right: 16px; bottom: 92px;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.68), rgba(212,175,55,0.68));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9996;
  box-shadow: 0 4px 18px rgba(139,92,246,0.35);
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.world-chat-bubble:active { transform: scale(0.9); }
.world-chat-bubble .hb-dot {
  position: absolute; top: 0; right: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ff4d4f; border: 2px solid #fff; display: none;
}
.world-chat-bubble .hb-dot.show { display: block; }

/* ── v1.44: 红包结果卡片（精美 UI）── */
.rp-result-mask {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.rp-result-card {
  width: 100%; max-width: 300px;
  background: linear-gradient(180deg, #fff7e6, #fff);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  animation: rpPop 0.28s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
@keyframes rpPop { from { transform: scale(0.78); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rp-result-head {
  padding: 20px 16px 16px;
  background: linear-gradient(135deg, #ff6b4a, #ff9f43);
  color: #fff;
}
.rp-result-title { font-size: 13px; opacity: 0.95; }
.rp-result-amount { font-size: 38px; font-weight: 800; margin-top: 2px; line-height: 1.1; }
.rp-result-amount small { font-size: 16px; font-weight: 600; }
.rp-result-body { padding: 16px; }
.rp-sender-frame {
  width: 66px; height: 66px; border-radius: 16px;
  margin: 0 auto 10px; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 2px; cursor: pointer; flex-shrink: 0;
}
.rp-sender-avatar {
  width: 100%; height: 100%; border-radius: 14px;
  object-fit: cover; display: block;
}
.rp-sender-name { font-size: 15px; font-weight: 700; color: var(--text); }
.rp-sender-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.rp-result-actions { display: flex; gap: 8px; margin-top: 14px; }
.rp-btn { flex: 1; padding: 11px 6px; border-radius: 22px; font-size: 14px; cursor: pointer; border: none; }
.rp-btn-invite { background: linear-gradient(135deg, #8b5cf6, #d4af37); color: #fff; font-weight: 600; }
.rp-btn-close { background: var(--card2); color: var(--text-dim); border: 1px solid var(--border); }
.world-chat {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50vh;  /* v1.45: 默认占 1/2 屏，可拖动 1/4~1/2 */
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
  box-shadow: 0 -6px 28px rgba(0,0,0,0.18), inset 0 2px 0 rgba(212,175,55,0.6), inset 0 0 0 1px rgba(212,175,55,0.28);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    radial-gradient(130% 60% at 50% 0%, rgba(212,175,55,0.12), transparent 60%),
    radial-gradient(110% 70% at 90% 100%, rgba(139,92,246,0.08), transparent 65%),
    linear-gradient(180deg, rgba(253,250,243,0.68), rgba(255,255,255,0.74) 45%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.world-chat-grip {
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
  flex-shrink: 0;
}
.world-chat-grip::before {
  content: '';
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
}
.world-chat-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.world-chat-title { font-weight: 700; font-size: 15px; color: var(--text); }
.world-chat-anon { font-size: 11px; color: var(--text-faint); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-chat-anon-btn { flex: 0 0 auto; font-size: 12px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border-gold); background: rgba(255,255,255,0.12); color: var(--text); cursor: pointer; white-space: nowrap; position: relative; z-index: 5; min-height: 30px; touch-action: manipulation; pointer-events: auto; }
.world-chat-close { border: none; background: transparent; color: var(--text-dim); font-size: 18px; cursor: pointer; }
.world-chat-min { border: none; background: transparent; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 2px; }
.world-chat-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; }
.world-chat-inputbar { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.world-chat-row1 { display: flex; gap: 6px; align-items: center; }
.world-chat-row2 { display: flex; gap: 8px; align-items: center; }
.world-chat-tool { height: 30px; padding: 0 12px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 12px; cursor: pointer; flex-shrink: 0; border: 1px solid var(--border-gold); background: rgba(212,175,55,0.08); color: var(--text-dim); }
.world-chat-emoji-panel { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--card2); max-height: 200px; flex-shrink: 0; }
.wc-emoji-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.wc-emoji-tab { font-size: 12px; padding: 3px 11px; border-radius: 12px; background: var(--card); color: var(--text-dim); cursor: pointer; border: 1px solid var(--border); transition: all 0.15s; }
.wc-emoji-tab.active { background: linear-gradient(135deg,#8b5cf6,#d4af37); color: #fff; border-color: transparent; }
.wc-emoji-grid { display: flex; flex-wrap: wrap; gap: 4px; overflow-y: auto; }

/* ── v1.65: T台全屏大板块（乳白轻奢主题） ── */
.tstage-page {
  background:
    radial-gradient(120% 50% at 50% -10%, var(--gold-line), transparent 55%),
    radial-gradient(90% 40% at 100% 0%, rgba(139,92,246,0.09), transparent 60%),
    radial-gradient(80% 40% at 0% 100%, var(--gold-line), transparent 60%),
    linear-gradient(160deg, var(--bg2), var(--bg) 40%, var(--card2) 75%, var(--bg));
}
.tstage-header {
  border-bottom: 1px solid var(--border-gold);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}
.tstage-header .sub-title {
  background: linear-gradient(120deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 900; letter-spacing: 1px;
}
.tstage-sub { font-size: 11px; color: var(--text-faint); letter-spacing: 2px; }
.tstage-main { padding: 12px; overflow-y: auto; }
.tstage-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tstage-tab {
  flex: 1; padding: 9px 0; text-align: center; border-radius: 14px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--border-gold);
  transition: all 0.2s;
}
.tstage-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1200; border-color: transparent;
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}
.tstage-card {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-gold);
  background: linear-gradient(160deg, var(--card), var(--card2));
  box-shadow: 0 6px 18px rgba(184,148,42,0.14);
}

/* ── v1.65: T台金粉飘落特效（从天而降） ── */
.tstage-goldrain {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 1; overflow: hidden;
}
.gold-dust {
  position: absolute; top: -12px;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #f5d76e 45%, #d4af37 80%);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(212,175,55,0.85);
  animation: goldFall linear infinite;
}
@keyframes goldFall {
  0% { transform: translateY(-12px) rotate(0deg) scale(1); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(360deg) scale(0.55); opacity: 0; }
}

/* ── v1.65: 竞约栏秀场背景（聚光灯 + 舞台地板纹理） ── */
.tstage-runway {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(90% 32% at 50% 0%, var(--gold-line), transparent 65%),
    radial-gradient(55% 25% at 28% 0%, rgba(139,92,246,0.1), transparent 60%),
    linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: 0 8px 28px rgba(184,148,42,0.16), inset 0 0 0 1px var(--border);
}
.tstage-runway::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background:
    repeating-linear-gradient(90deg, rgba(184,148,42,0.08) 0 2px, transparent 2px 30px),
    linear-gradient(0deg, rgba(212,175,55,0.14), transparent);
  pointer-events: none;
}
.wc-emoji { font-size: 24px; cursor: pointer; padding: 4px; border-radius: 8px; transition: transform 0.1s; }
.wc-emoji:active { transform: scale(1.3); }
.wc-emoji-img { width: 42px; height: 42px; padding: 2px; display: flex; align-items: center; justify-content: center; }
.wc-emoji-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.wc-emoji-add { font-size: 22px; font-weight: 700; color: var(--text-dim); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: 8px; }
.wc-msg-img { max-width: 60%; border-radius: 12px; cursor: pointer; align-self: flex-start; }
.wc-msg-video { max-width: 70%; max-height: 260px; border-radius: 12px; align-self: flex-start; background: #000; }
.wc-msg.mine .wc-msg-video { align-self: flex-end; }
.wc-msg.mine .wc-msg-img { align-self: flex-end; }
.world-chat-input { flex: 1; border: 1px solid var(--border); border-radius: 18px; padding: 8px 12px; font-size: 14px; background: var(--bg); color: var(--text); }
.world-chat-send { border: none; background: var(--grad-gold); color: #1a1200; border-radius: 16px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.wc-msg { margin-bottom: 10px; display: flex; flex-direction: column; }
.wc-msg-name { font-size: 12px; color: var(--text-dim); margin-bottom: 3px; font-weight: 600; letter-spacing: 0.3px; }
.wc-msg-bubble { display: inline-block; max-width: 76%; padding: 9px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); word-break: break-word; align-self: flex-start; border: 1px solid var(--wc-bubble-border, var(--border-gold)); box-shadow: 0 2px 10px rgba(0,0,0,0.06), var(--wc-bubble-glow, 0 0 0 1px rgba(212,175,55,0.05)); position: relative; animation: wcPop 0.25s ease-out; }
.wc-msg-bubble::before { content: ''; position: absolute; top: 12px; left: -6px; width: 11px; height: 11px; background: rgba(255,255,255,0.5); border-left: 1px solid var(--wc-bubble-border, var(--border-gold)); border-bottom: 1px solid var(--wc-bubble-border, var(--border-gold)); transform: rotate(45deg); border-bottom-left-radius: 3px; }
.wc-msg.mine .wc-msg-bubble { align-self: flex-end; background: var(--grad-gold); color: #1a1200; border: none; box-shadow: 0 2px 12px var(--wc-bubble-glow-mine, rgba(212,175,55,0.35)); }
.wc-msg.mine .wc-msg-bubble::before { left: auto; right: -6px; background: linear-gradient(135deg, #e0b53e, #c9a227); border: none; }
.wc-msg.mine .wc-msg-name { align-self: flex-end; }
@keyframes wcPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wc-sys { text-align: center; font-size: 11px; color: var(--text-faint); margin: 8px 0; }
.world-chat-quote { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-top: 1px dashed var(--border); background: rgba(212,175,55,0.06); font-size: 11px; }
.wc-msg-quote { font-size: 11px; color: var(--text-dim); background: rgba(139,92,246,0.08); border-left: 2px solid var(--gold); padding: 2px 8px; border-radius: 4px; margin: 2px 0; max-width: 78%; align-self: flex-start; }
.wc-msg.mine .wc-msg-quote { align-self: flex-end; }
.wc-msg-revoked { font-size: 12px; color: var(--text-faint); font-style: italic; align-self: flex-start; }
.redpacket-rain { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.rp-drop {
  position: absolute; top: -90px;
  width: 56px; height: 68px;
  cursor: pointer; pointer-events: auto;
  animation: rpFall linear forwards;
  filter: drop-shadow(0 0 10px rgba(255,107,74,0.55));
}
.rp-body {
  position: relative; width: 100%; height: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff6040, #e8382a 52%, #c92a1c);
  box-shadow: inset 0 -7px 14px rgba(0,0,0,0.28), inset 0 3px 5px rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  animation: rpSway 2.4s ease-in-out infinite;
}
.rp-body::before {  /* 金色封口 */
  content: '';
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 62%; height: 9px; border-radius: 5px;
  background: linear-gradient(180deg, #ffedb0, #e6b93f 55%, #c89a20);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.rp-gold {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff8dc, #f7d977 45%, #d4af37 90%);
  color: #a57808; font-weight: 800; font-size: 18px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(255,224,130,0.85);
  animation: rpGoldPulse 1.3s ease-in-out infinite;
}
.rp-shine {  /* 流动光泽 */
  position: absolute; inset: 4px; border-radius: 7px;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.4) 46%, transparent 60%);
  background-size: 220% 100%;
  animation: rpShine 2.8s linear infinite;
  pointer-events: none;
}
@keyframes rpFall {
  0% { transform: translateY(0) rotate(-9deg); }
  50% { transform: translateY(56vh) rotate(8deg); }
  100% { transform: translateY(114vh) rotate(-7deg); }
}
@keyframes rpSway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@keyframes rpShine {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}
.rp-particle {
  position: absolute; top: -20px;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d8, #f5d76e 55%, transparent);
  box-shadow: 0 0 8px rgba(255,220,120,0.9);
  pointer-events: none;
  animation: rpParticleFall linear forwards;
}
@keyframes rpParticleFall {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(115vh) scale(0.4); opacity: 0; }
}
@keyframes rpGoldPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,224,130,0.6); }
  50% { box-shadow: 0 0 20px rgba(255,224,130,1), 0 0 34px rgba(255,215,0,0.6); }
}

/* ── 首页：场景筛选 ── */
.scene-tabs { display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; flex-shrink: 0; }
.scene-chip {
  white-space: nowrap; padding: 7px 16px; border-radius: 18px;
  font-size: 13px; background: rgba(0,0,0,0.04);
  border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; flex-shrink: 0;
}
.scene-chip.active { background: var(--grad-gold); color: #fff; border-color: transparent; font-weight: 600; }

/* ── 首页列表 ── */
.home-list { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.loading { text-align: center; color: var(--text-faint); padding: 40px 0; font-size: 14px; }
.reco-card.full { width: 100%; }

/* ── 我的页 ── */
.mine-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
.asset-card {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border-gold); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(184,148,42,0.06);
}
.asset-row { display: flex; }
.asset-item { flex: 1; text-align: center; cursor: pointer; transition: transform 0.15s ease; }
.asset-item:active { transform: scale(0.94); }
.asset-val { font-size: 18px; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.asset-label { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
/* v1.115: YO享商城入口 */
.yo-mall-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, #2b1a4a, #4a2b7a, #2b1a4a);
  border: 1px solid var(--border-gold); border-radius: 18px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,92,246,0.25);
}
.yo-mall-entry:active { transform: scale(0.98); }
.yo-mall-entry-icon { font-size: 28px; }
.yo-mall-entry-body { flex: 1; min-width: 0; }
.yo-mall-entry-title { font-size: 15px; font-weight: 800; color: #fff; }
.yo-mall-entry-desc { font-size: 11px; color: rgba(255,255,255,0.72); margin-top: 2px; }
/* v1.115: YO享商城弹窗（商家列表 + 商品列表） */
.mall-merchant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mall-merchant { background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px; padding: 14px 10px; text-align: center; cursor: pointer; }
.mall-merchant:active { transform: scale(0.97); }
.mall-merchant-icon { font-size: 30px; line-height: 1; }
.mall-merchant-name { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 6px; }
.mall-merchant-desc { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.mall-product { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px; margin-bottom: 8px; }
.mall-product-icon { font-size: 26px; flex-shrink: 0; }
.mall-product-body { flex: 1; min-width: 0; }
.mall-product-name { font-size: 13px; font-weight: 700; color: var(--text); }
.mall-product-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.mall-product-price { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 3px; }
.mall-redeem-btn { flex-shrink: 0; padding: 7px 12px; font-size: 12px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #8b5cf6, #d4af37); }
/* v1.116: YO享商城三子分类 + 美团式商家卡片 */
.mall-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.mall-tab { flex: 1; text-align: center; padding: 8px 4px; font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--card2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.mall-tab.active { color: #fff; background: linear-gradient(135deg, #8b5cf6, #d4af37); border-color: transparent; }
.mall-shop-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px; padding: 10px; margin-bottom: 10px; cursor: pointer; overflow: hidden; }
.mall-shop-card:active { transform: scale(0.98); }
.mall-shop-cover { width: 76px; height: 76px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.mall-shop-info { flex: 1; min-width: 0; }
.mall-shop-name { font-size: 15px; font-weight: 700; color: var(--text); }
.mall-shop-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.mall-shop-meta { font-size: 10px; color: var(--text-faint); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-shop-arrow { font-size: 20px; color: var(--text-faint); flex-shrink: 0; }

.menu-group { background: var(--card); border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--card2); }
.menu-icon { font-size: 20px; }
.menu-text { font-size: 15px; font-weight: 500; color: var(--text); }
.menu-desc { font-size: 12px; color: var(--text-faint); }
.menu-arrow { margin-left: auto; color: var(--text-faint); font-size: 20px; }

/* ── 底部 Tab 导航 ── */
.tabbar {
  display: flex; flex-shrink: 0;
  background: var(--tabbar-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -1px 0 var(--gold-line), 0 -8px 28px rgba(184,148,42,0.08);
  padding-bottom: env(safe-area-inset-bottom);
  position: relative;
}
/* 金色花纹装饰线（导航栏顶部边缘） */
.tabbar::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-line) 16%, var(--border-gold) 50%,
    var(--gold-line) 84%, transparent 100%);
}
.tab {
  flex: 1; text-align: center; padding: 8px 0 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tab-icon { font-size: 22px; filter: grayscale(1) opacity(0.5); transition: all 0.2s; }
.tab-text { font-size: 11px; color: var(--text-faint); }
.tab.active .tab-icon { filter: none; transform: scale(1.1); }
.tab.active .tab-text { color: var(--gold); font-weight: 600; }

/* ── 弹层 ── */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(61,52,40,0.42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; z-index: 10000;
}
.modal-sheet {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--card) 0%, var(--card2) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 26px 26px 0 0; padding: 28px 20px 24px;
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -8px 40px rgba(45,42,38,0.20), 0 -2px 12px rgba(184,148,42,0.12);
  position: relative;
  isolation: isolate;  /* v1.94: 建立层叠上下文，让极光/特效层 z-index:-1 落在内容之下 */
}
/* v1.34: 全屏弹窗（个人主页等） */
.modal-sheet.sheet-full {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  align-self: stretch;
  border-radius: 0;
  padding: 20px 16px;
}
/* v1.146: 达人主页重新排版——作品移到屏幕中间（头部=身份信息，中间=作品，底部=信用分/口碑/按钮） */
.modal-sheet.sheet-full.cd-full {
  padding: 16px 16px 24px;
}
.modal-sheet.sheet-full.cd-full .media-page-list {
  height: 46vh;
}
.modal-sheet.sheet-full.cd-full .media-page,
.modal-sheet.sheet-full.cd-full .media-blur-bg {
  border-radius: 12px;
}
.modal-sheet.sheet-full.cd-full .sheet-title {
  margin-top: 0;
}
/* v0.91: 弹窗边界弹簧动画（左右滑到边缘的防误滑反馈） */
@keyframes edgeShakeL {
  0% { transform: translateX(0); }
  30% { transform: translateX(-52px); }
  100% { transform: translateX(0); }
}
@keyframes edgeShakeR {
  0% { transform: translateX(0); }
  30% { transform: translateX(52px); }
  100% { transform: translateX(0); }
}
.modal-sheet.edge-shake-left { animation: edgeShakeL 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
.modal-sheet.edge-shake-right { animation: edgeShakeR 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
.modal-sheet::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-line) 20%, var(--border-gold) 50%,
    var(--gold-line) 80%, transparent 100%);
  border-radius: 26px 26px 0 0;
}
.sheet-title { font-size: 18px; font-weight: 800; color: var(--gold); margin-bottom: 16px; text-align: center; letter-spacing: 0.5px; }
.sheet-btn {
  display: block; width: 100%; padding: 14px; border-radius: 14px;
  background: var(--grad-gold); color: #fff; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; margin-top: 16px;
  box-shadow: 0 4px 18px rgba(212,175,55,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.sheet-btn:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(212,175,55,0.25); }
/* v1.139: 紧凑小按钮（内联、自适应宽度，替代默认大按钮 sheet-btn） */
.btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: auto; padding: 7px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  margin: 0; box-shadow: none; line-height: 1.3;
}
.btn-sm:active { transform: scale(0.97); }
.sheet-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; outline: none; margin-bottom: 10px;
}
.sheet-input:focus { border-color: rgba(212,175,55,0.5); }
.sheet-label { font-size: 13px; color: var(--text-dim); margin: 8px 0 4px; }
.sheet-close { text-align: center; color: var(--text-faint); padding: 12px; font-size: 14px; cursor: pointer; }
/* v1.110: 返回按钮 → 左上角小箭头（底部返回被浏览器导航栏挡住看不见） */
.sheet-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 60;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}
/* v1.110: 有返回键的弹窗，顶部留白 + 标题避让，避免返回键遮挡标题/内容 */
.modal-sheet.has-back:not(.sheet-full) { padding-top: 52px; }
.modal-sheet.has-back .sheet-title { padding: 0 48px; }
.modal-sheet.has-back:not(.sheet-full) .sheet-title { margin-top: 0; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,60%,100% { opacity: 0.2; } 30% { opacity: 1; } }

/* ===== 推荐卡片流（modal 弹层内）===== */
.swipe-wrap { display: flex; flex-direction: column; min-height: 70vh; }
.swipe-header { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 12px; }
.swipe-title { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.swipe-sub { font-size: 12px; color: var(--text-dim); flex: 1; }
.swipe-close { background: rgba(0,0,0,0.05); border: 1px solid var(--border); color: var(--text-dim); width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.swipe-stage { flex: 1; position: relative; overflow: hidden; border-radius: 20px; min-height: 420px; }
.swipe-card { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 20px; overflow: hidden; background: #0d0d18; }
.swipe-img { width: 100%; height: 100%; min-height: 420px; object-fit: contain; background: #0d0d18; display: block; }
.swipe-img-empty { display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: 14px; }
.swipe-media-count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; z-index: 2; }
.swipe-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(5,5,10,0.92)); color: #fff; }
.swipe-idrow { display: flex; align-items: center; gap: 10px; }
.swipe-id { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.swipe-level { background: var(--grad-gold); color: #14120a; font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(212,175,55,0.4); }
.swipe-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.swipe-tag { background: rgba(255,255,255,0.12); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.swipe-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.swipe-price-yen { font-size: 15px; color: var(--gold-light); font-weight: 600; }
.swipe-price b { font-size: 26px; color: var(--gold-light); font-weight: 800; }
.swipe-price-note { font-size: 11px; color: var(--text-dim); margin-left: 4px; }
.swipe-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; }
.swipe-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.2); transition: all 0.3s; }
.swipe-dots span.on { width: 20px; background: var(--grad-gold); }
.swipe-actions { display: flex; gap: 10px; margin-top: 8px; }
.swipe-act { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 6px; border-radius: 14px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.swipe-act:active { transform: scale(0.96); }
.swipe-act span { font-size: 16px; }
.swipe-act.swipe-fav { background: rgba(214,69,69,0.10); border: 1px solid rgba(214,69,69,0.3); color: #d64545; }
.swipe-act.swipe-order { background: var(--grad-gold); color: #14120a; font-weight: 800; box-shadow: 0 4px 16px rgba(212,175,55,0.35); }
.swipe-act.swipe-share { background: rgba(124,92,191,0.12); border: 1px solid rgba(124,92,191,0.35); color: var(--purple); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.94); display: flex; align-items: center; justify-content: center; z-index: 10002; touch-action: pan-y; }
.cb-media-item.dragging { opacity: 0.6; transform: scale(1.15); z-index: 5; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.lightbox-count {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; background: rgba(0,0,0,0.5);
  padding: 4px 12px; border-radius: 14px; pointer-events: none;
}
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  color: #fff; font-size: 30px; cursor: pointer; z-index: 2;
  width: 40px; height: 40px; line-height: 40px; text-align: center;
  background: rgba(0,0,0,0.5); border-radius: 50%;
}
.lightbox-stage video { max-width: 100%; max-height: 100%; border-radius: 8px; }
.swipe-stage, .swipe-stage .swipe-img {
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* ── v0.71: 账号区 / 世界圈 / 商城 ── */
.account-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #2a1f00, #4a3400);
  border-radius: 16px; padding: 16px; margin-bottom: 12px;
}
.account-main { display: flex; align-items: center; gap: 12px; }
.account-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-gold); display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.account-name { color: #fff; font-weight: 700; font-size: 16px; }
.account-levels { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.level-tag { font-size: 11px; padding: 2px 10px; border-radius: 10px; font-weight: 600; line-height: 1.4; display: inline-flex; align-items: center; justify-content: center; }
.level-tag.star { background: linear-gradient(135deg,#ff0080,#7928ca); color: #fff; }
.level-tag.rich { background: linear-gradient(135deg,#d4af37,#f0d080); color: #1a1200; }
.level-tag.membership { background: linear-gradient(135deg,#b8860b,#ffd700); color: #1a1200; }
.level-tag.ai-avatar-tag { background: linear-gradient(135deg,#8b5cf6,#d4af37); color: #fff; cursor: pointer; border: none; }
.account-btn {
  padding: 8px 16px; border-radius: 20px; border: none;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.account-btn.logged { background: rgba(220,60,60,0.35); color: #ffb3b3; }

.world-feed { flex: 1; overflow-y: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.moment-card {
  background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--border);
}
.moment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.moment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--card2);
}
.moment-author { flex: 1; min-width: 0; }
.moment-name { font-weight: 600; color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moment-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.moment-levels .level-tag { margin-left: 0 !important; }
.moment-time { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.moment-content { color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 10px; word-break: break-word; }
.moment-content a.moment-link { color: #4aa3ff; text-decoration: underline; word-break: break-all; }
/* v1.110: 世界圈动态文案最多 5 行，超出点击「全文」展开 */
.moment-content.moment-clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.moment-content.moment-clamp.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.moment-more { display: inline-block; margin: 2px 0 8px; font-size: 13px; color: var(--gold); cursor: pointer; user-select: none; }
.moment-topic {
  display: block; width: fit-content;
  margin: 8px 0;
  padding: 3px 12px;
  font-size: 11px; line-height: 1.5;
  color: var(--gold);
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 12px;
  cursor: pointer;
}
.moment-media { display: grid; gap: 5px; margin-bottom: 10px; max-width: 78%; }
.moment-grid-1 { grid-template-columns: 1fr; max-width: 66%; }
.moment-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 70%; }
.moment-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 76%; }
.moment-media img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 7px; border: 1px solid rgba(212,175,55,0.32);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); cursor: pointer;
  background: rgba(0,0,0,0.04); display: block;
}
.moment-grid-1 img { aspect-ratio: auto; max-height: 22vh; object-fit: contain; border: none; box-shadow: none; background: transparent; }
.moment-media video { width: 100%; height: 100%; object-fit: cover; }
.moment-video-box { position: relative; border-radius: 7px; overflow: hidden; cursor: pointer; border: 1px solid rgba(212,175,55,0.32); aspect-ratio: 1; }
.moment-video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; pointer-events: none; backdrop-filter: blur(2px); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
/* v1.120: 语音条（世界圈动态 + 世界群聊） */
.moment-audio { display: inline-flex; align-items: center; gap: 6px; background: var(--card2); border: 1px solid var(--border-gold); border-radius: 16px; padding: 7px 14px; margin-bottom: 10px; cursor: pointer; font-size: 13px; color: var(--text); }
.moment-audio-icon { font-size: 15px; }
.moment-audio-label { color: var(--text-dim); font-size: 12px; }
.wc-msg-audio { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; }
.wc-audio-icon { font-size: 15px; }
.g-msg-audio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 2px 4px; }
.moment-actions { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.moment-action {
  background: none; border: none; color: var(--text-dim); font-size: 13px;
  cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 2px;
}
.moment-action.liked { color: #ff4d6d; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-item {
  background: var(--card); border-radius: 12px; padding: 12px; text-align: center;
  border: 1px solid var(--border); cursor: pointer;
}
.shop-item.owned { border-color: var(--gold); }
.shop-item-frame {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.shop-item-name { font-size: 12px; color: var(--text); font-weight: 600; }
.shop-item-price { font-size: 11px; color: var(--gold); margin-top: 4px; font-weight: 700; }
.shop-item-state { font-size: 10px; color: var(--text-faint); margin-top: 4px; }

/* ── v0.72: UI 美化 — 动态鎏金头像框 / 描边纹理 / 字体排版 ── */

/* 全局字体加大，排版更透气 */
body { font-size: 16px; }
.menu-text { font-size: 16px; }
.menu-desc { font-size: 12px; }
.menu-item { padding: 14px 16px; }
.menu-group { padding: 10px 12px; gap: 2px; }
.sheet-title { font-size: 18px; }
.bubble { font-size: 16px; padding: 12px 16px; }
.moment-content { font-size: 15px; line-height: 1.7; }
.moment-name { font-size: 15px; }
.moment-time { font-size: 12px; }
.sub-title { font-size: 18px; }
.asset-val { font-size: 20px; }
.asset-label { font-size: 12px; }
.level-tag { font-size: 12px; padding: 3px 12px; }

/* 动态鎏金头像框 */
@keyframes goldFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes goldSpin { to { transform: rotate(360deg); } }
@keyframes sweepLight {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.avatar-frame {
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(120deg, #b8942a, #d4af37, #b8942a);
  box-shadow: 0 0 14px rgba(212,175,55,0.45), 0 2px 8px rgba(184,148,42,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-size: 24px;
}

/* 账号区描边 + 纹理 */
.account-card {
  border: 1px solid rgba(212,175,55,0.42);
  box-shadow: 0 6px 24px rgba(184,148,42,0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.account-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.6' opacity='0.5'%3E%3Cpath d='M0 40 Q20 20 40 40 T80 40'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}

/* 世界圈卡片描边 */
.moment-card {
  border: 1px solid rgba(184,148,42,0.2);
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
}
.moment-actions { gap: 20px; }
.moment-action { font-size: 14px; }
.world-feed { padding: 14px; }

/* 商城道具卡片 */
.shop-item { padding: 14px 12px; border-radius: 14px; }
.shop-item-name { font-size: 13px; }
.shop-item-price { font-size: 12px; }
.shop-item-frame { width: 60px; height: 60px; font-size: 28px; }

/* ── v0.73: 世界圈 FAB 发布按钮 + 评论排版 ── */
#page-world { position: relative; }
.world-fab {
  position: absolute;
  right: 18px;
  bottom: 78px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7c5cbf, #d4af37);
  box-shadow: 0 6px 20px rgba(184,148,42,0.4), 0 3px 10px rgba(0,0,0,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: transform 0.15s, box-shadow 0.15s;
}
.world-fab:active { transform: scale(0.9); }
.fab-icon { font-size: 26px; line-height: 1; }

/* 评论输入区排版（输入框不挤压、按钮不出格） */
.comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.comment-input-row .cmt-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.comment-input-row .cmt-send {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #7c5cbf, #d4af37);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.comment-input-row .cmt-anon {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
}
.comment-input-row .cmt-anon.on {
  background: linear-gradient(135deg, #8b5cf6, #d4af37);
  color: #fff;
  border-color: transparent;
}

/* ── 头像裁剪 ── */
.crop-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
.crop-wrap canvas {
  display: block;
  width: 280px;
  height: 280px;
  touch-action: none;
}
.crop-mask {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1000px rgba(0,0,0,0.55);
  pointer-events: none;
}

/* ── 个人主页（抖音式） ── */
.profile-page {
  border-radius: 0;
  background: var(--bg);
  min-height: 100vh;
}
.profile-cover {
  height: 220px;
  background: var(--cover-bg);
  position: relative;
}
/* v1.42: 封面与下方内容衔接处羽化过渡（更高强度） */
.profile-cover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 96px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.10) 30%, var(--bg) 88%);
  pointer-events: none;
}
.profile-cover video.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.profile-publish {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.profile-publish:active { transform: scale(0.92); }
.profile-cover-btn {
  position: absolute;
  right: 62px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.profile-cover-btn:active { transform: scale(0.95); }
.profile-body { padding: 0 16px 16px; }
.profile-head { margin-top: -40px; display: flex; align-items: flex-end; gap: 12px; position: relative; z-index: 2; }
.profile-head-info { flex: 1; min-width: 0; padding-bottom: 2px; }
.profile-name { position: absolute; left: 16px; bottom: 48px; z-index: 3; display: inline-block; text-align: left; font-size: 18px; font-weight: 700; color: var(--text); word-break: break-word; padding: 5px 14px; }
.profile-name::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.32)); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); border: 1px solid rgba(212,175,55,0.55); box-shadow: 0 2px 12px rgba(0,0,0,0.12); z-index: -1; }
.profile-edit-btn {
  text-align: center;
  margin: 10px auto 0;
  width: fit-content;
  padding: 6px 18px;
  border-radius: 18px;
  border: 1px solid rgba(124,92,191,0.4);
  color: var(--purple);
  font-size: 13px;
  cursor: pointer;
  background: rgba(124,92,191,0.08);
}
.profile-edit-btn:active { transform: scale(0.96); }
.profile-edit-btn-sm {
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 14px;
}
.profile-edit-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.profile-edit-row .profile-edit-btn { margin: 0; }
.profile-signature {
  text-align: left;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  padding: 0;
  word-break: break-word;
}
.profile-wish {
  text-align: left;
  font-size: 13px;
  color: var(--gold);
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(212,175,55,0.08);
  border: 1px dashed rgba(212,175,55,0.4);
  border-radius: 10px;
  width: fit-content;
  margin-left: 0;
  margin-right: 0;
}
.rc-profile {
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid rgba(124,92,191,0.4);
  background: rgba(124,92,191,0.08);
  color: var(--purple);
  font-size: 12px;
  cursor: pointer;
  width: 100%;
}
.rc-profile:active { transform: scale(0.96); }
.profile-levels { display: flex; justify-content: flex-start; gap: 8px; margin-top: 4px; }
/* v1.69: 个人主页关注/打赏按钮（查看他人主页） */
.profile-actions { display: flex; gap: 10px; margin-top: 12px; }
.profile-follow-btn, .profile-tip-btn {
  flex: 1; padding: 9px 0; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.profile-follow-btn {
  border: 1px solid rgba(124,92,191,0.5); background: linear-gradient(135deg,#8b5cf6,#7c5cbf); color: #fff;
}
.profile-follow-btn.followed { background: rgba(124,92,191,0.15); color: var(--purple); border: 1px solid rgba(124,92,191,0.5); }
.profile-tip-btn {
  border: 1px solid rgba(212,175,55,0.5); background: linear-gradient(135deg,#b8942a,#d4af37); color: #fff;
}
.profile-follow-btn:active, .profile-tip-btn:active { transform: scale(0.96); }
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.profile-stat { text-align: center; }
.profile-stat b { display: block; font-size: 17px; font-weight: 700; color: var(--text); }
.profile-stat span { font-size: 12px; color: var(--text-dim); }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 12px;
}
.profile-grid-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--card2);
  cursor: pointer;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.12), 0 2px 8px rgba(184,148,42,0.08);
}
.profile-grid-item img, .profile-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-grid-item .grid-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.profile-empty { grid-column: 1 / -1; text-align: center; color: var(--text-faint); padding: 30px 0; }

/* ── v0.82: 纯文字作品（行式）+ 删除按钮 ── */
.profile-text-item {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.profile-text-content { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-item-del {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-grid-item .profile-item-del {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
}

/* ── v0.75: 高价头像框 跑马灯流动 + 小星星特效 ── */
@keyframes marqueeSpin { to { transform: rotate(360deg); } }
@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
/* v1.35: 详情页照片框鎏金描边（光影随边框流动，非整框旋转） */
.photo-frame-gold {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  padding: 4px;
  background: linear-gradient(120deg, #b8942a, #d4af37, #b8942a);
  box-shadow: 0 0 18px rgba(212,175,55,0.45), 0 2px 10px rgba(184,148,42,0.3);
}
.photo-frame-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,236,170,0) 42%,
    rgba(255,236,170,0.95) 50%,
    rgba(255,236,170,0) 58%,
    transparent 70%
  );
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sweepLight 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}
.photo-frame-gold > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 13px; }
.avatar-frame-premium { position: relative; }
/* v1.37: 超过1万(富豪Lv5+)的头像框——扫光叠加在原有金色边框上（不外扩） */
.avatar-frame-sweep { position: relative; }
.avatar-frame-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(105deg,
    transparent 26%,
    rgba(255,248,220,0) 38%,
    rgba(255,248,220,0.95) 50%,
    rgba(255,248,220,0) 62%,
    transparent 74%
  );
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sweepLight 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
.frame-star {
  position: absolute;
  font-size: 14px;
  pointer-events: none;
  animation: starTwinkle 1.1s ease-in-out infinite;
  z-index: 12;
  text-shadow: 0 0 7px rgba(255,240,160,1), 0 0 14px rgba(255,215,0,0.95);
  filter: drop-shadow(0 0 3px rgba(255,215,0,0.9));
}
/* v1.74: T台皇冠（金色+宝石+光晕，享受头像框扫光）+ 竞约位入场动画 */
.tstage-crown { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 34px; height: 23px; z-index: 14; pointer-events: none; filter: drop-shadow(0 0 4px rgba(255,215,0,0.55)); }
.tstage-crown-sweep { animation: crownShine 2.2s ease-in-out infinite; }
@keyframes crownShine {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255,215,0,0.5)) brightness(1); }
  50% { filter: drop-shadow(0 0 9px rgba(255,240,170,0.95)) brightness(1.28); }
}
.tstage-slot { animation: tstageIn 0.5s ease both; }
.tstage-slot-top { animation: tstageInTop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
@keyframes tstageIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes tstageInTop { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }
/* 七彩流光星星（橙红至尊/七彩流光头像框） */
@keyframes rainbowStar {
  0% { filter: hue-rotate(0deg) brightness(1.3) drop-shadow(0 0 5px rgba(255,255,255,0.95)); }
  100% { filter: hue-rotate(360deg) brightness(1.3) drop-shadow(0 0 5px rgba(255,255,255,0.95)); }
}
.frame-star-rainbow {
  animation: starTwinkle 1.1s ease-in-out infinite, rainbowStar 1.6s linear infinite;
  font-size: 16px;
  text-shadow: 0 0 9px rgba(255,255,255,0.95), 0 0 16px rgba(255,215,0,0.9);
}
/* v1.120: 昵称文字流动（群聊昵称头像框特效） */
@keyframes nameFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes nameFlowY {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 220%; }
}
.wc-name-star { display: inline-block; margin-left: 3px; font-size: 12px; animation: starTwinkle 1.1s ease-in-out infinite, rainbowStar 1.6s linear infinite; text-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 14px rgba(255,215,0,0.8); }

/* ── v0.75: 等级 Lv6+ 火焰特效 ── */
@keyframes fireBlaze {
  0%, 100% { box-shadow: 0 0 6px rgba(255,100,0,0.75), 0 0 16px rgba(255,50,0,0.5); transform: translateY(0); }
  50% { box-shadow: 0 0 12px rgba(255,160,0,0.95), 0 0 24px rgba(255,80,0,0.75); transform: translateY(-1px); }
}
@keyframes fireFlicker {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}
.level-tag.fire {
  background: linear-gradient(180deg, #ffc93c, #ff7a00 35%, #ff3d00 60%, #ff9800 85%, #ffd700);
  background-size: 100% 220%;
  color: #fff;
  animation: fireBlaze 1.1s ease-in-out infinite, fireFlicker 0.9s ease-in-out infinite;
  text-shadow: 0 0 5px rgba(255,255,255,0.75);
  position: relative;
}

/* ── v0.75: 皮肤鎏金闪耀（个人中心底纹 + 边框）── */
@keyframes goldShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.profile-skin { position: relative; overflow: hidden; }
.profile-skin::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  padding: 12px;
  background: linear-gradient(120deg, var(--gold), #fff, var(--gold-light), #fff, var(--gold));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: goldShine 3s linear infinite;
  pointer-events: none;
  z-index: 10;
}
/* 1万以上皮肤：星星特效（散落在个人中心） */
.skin-star {
  position: absolute;
  font-size: 13px;
  pointer-events: none;
  z-index: 8;
  text-shadow: 0 0 7px rgba(255,240,160,1), 0 0 13px rgba(255,215,0,0.85);
}
.profile-skin::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 42%),
    radial-gradient(circle at 82% 88%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 42%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--gold-light) 10%, transparent), transparent 60%);
  z-index: 2;
}

/* ── v1.32: 个人主页皮肤背景特效（访客可见的炫目背景，星星固定坐标散落）── */
.profile-page.pskin-night {
  background:
    radial-gradient(2px 2px at 18% 20%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 65% 15%, rgba(210,225,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(200,180,255,0.85), transparent),
    radial-gradient(2px 2px at 85% 45%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 12% 55%, rgba(255,235,180,0.8), transparent),
    radial-gradient(ellipse at 20% 30%, rgba(122,80,220,0.32), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(60,110,255,0.26), transparent 55%),
    linear-gradient(160deg, #0a0a1e, #1a1c35 50%, #241b3a);
}
.profile-page.pskin-pink {
  background:
    radial-gradient(2px 2px at 20% 25%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 75% 60%, rgba(255,255,255,0.35), transparent),
    radial-gradient(ellipse at 20% 20%, rgba(255,150,190,0.28), transparent 50%),
    linear-gradient(160deg, #fff0f5, #ffe4ec 55%, #ffd6e7);
}
.profile-page.pskin-gold {
  background:
    radial-gradient(2px 2px at 80% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(ellipse at 25% 15%, rgba(255,215,0,0.3), transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(255,180,0,0.25), transparent 50%),
    linear-gradient(160deg, #1a1200, #2a1f00 50%, #3d2b00);
}
.profile-page.pskin-star {
  background:
    radial-gradient(ellipse at 20% 15%, rgba(200,120,255,0.35), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(140,60,220,0.3), transparent 55%),
    linear-gradient(160deg, #1a0a3a, #3a1a6a 40%, #6a2a9a 70%, #9a4ac0);
}
.profile-page.pskin-aurora {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(0,229,255,0.28), transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(0,255,170,0.22), transparent 55%),
    linear-gradient(160deg, #001a30, #0a3a60 35%, #0a6a70 65%, #1a9a8a);
}
.profile-page.pskin-emperor {
  background:
    radial-gradient(2px 2px at 18% 22%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 75% 62%, rgba(255,220,0,0.5), transparent),
    radial-gradient(1.5px 1.5px at 42% 82%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 85% 30%, rgba(255,180,0,0.45), transparent),
    radial-gradient(ellipse at 30% 15%, rgba(255,87,34,0.35), transparent 50%),
    radial-gradient(ellipse at 72% 78%, rgba(255,152,0,0.3), transparent 50%),
    linear-gradient(160deg, #2a0800, #5a1800 40%, #8a2a00 70%, #c04000);
}

/* ── v1.31: 皮肤全局主题（炫目加强版）── */
body.theme-night {
  --bg: #0f1021; --bg2: #14152b; --card: #1a1c35; --card2: #202240;
  --text: #e8e6f0; --text-dim: #9a97b0; --text-faint: #5f5c78;
  --border: rgba(255,255,255,0.08);
  --header-bg: linear-gradient(180deg, rgba(26,28,53,0.95) 0%, rgba(20,21,43,0.85) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(26,28,53,0.96) 0%, rgba(20,21,43,0.88) 100%);
  --gold-line: rgba(212,175,55,0.45);
  --border-gold: rgba(212,175,55,0.3);
  --cover-bg: linear-gradient(135deg, #4a1a7a, #1a1c35);
  --purple: #c9b3ff;
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(122,80,220,0.38), transparent 45%),
    radial-gradient(ellipse at 85% 38%, rgba(60,110,255,0.30), transparent 45%),
    radial-gradient(ellipse at 40% 85%, rgba(160,60,210,0.32), transparent 45%),
    radial-gradient(1.6px 1.6px at 10% 18%, rgba(255,255,255,1), transparent),
    radial-gradient(1.2px 1.2px at 30% 8%, rgba(210,225,255,0.95), transparent),
    radial-gradient(2px 2px at 52% 25%, rgba(255,255,255,0.95), transparent),
    radial-gradient(1.3px 1.3px at 70% 12%, rgba(255,240,180,0.95), transparent),
    radial-gradient(1.8px 1.8px at 88% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.1px 1.1px at 22% 45%, rgba(220,200,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 65% 55%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.2px 1.2px at 40% 70%, rgba(200,230,255,0.85), transparent),
    radial-gradient(1.9px 1.9px at 80% 78%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.4px 1.4px at 12% 68%, rgba(255,235,180,0.85), transparent),
    linear-gradient(160deg, #0a0a1e 0%, #151733 40%, #22173f 70%, #2a1a4a 100%);
  color: var(--text);
}
body.theme-pink {
  --bg: #fff0f5; --bg2: #fff5f9; --card: #ffffff; --card2: #fff0f5;
  --text: #4a3a44; --text-dim: #b08a98; --text-faint: #d4b8c2;
  --border: rgba(255,150,190,0.18);
  --header-bg: linear-gradient(180deg, rgba(255,240,245,0.95) 0%, rgba(255,228,236,0.85) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(255,240,245,0.96) 0%, rgba(255,228,236,0.88) 100%);
  --gold-line: rgba(255,107,157,0.5);
  --border-gold: rgba(255,107,157,0.3);
  --gold: #ff6b9d;
  --gold-light: #ff9dbb;
  --cover-bg: linear-gradient(135deg, #ff6b9d, #d4af37);
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255,150,190,0.30), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(255,150,190,0.28), transparent 42%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,150,190,0.05) 0 42px, transparent 42px 84px),
    linear-gradient(160deg, #fff0f5 0%, #ffe4ec 55%, #ffd6e7 100%);
  color: var(--text);
}
body.theme-gold {
  --bg: #1a1200; --bg2: #241a02; --card: #2a1f00; --card2: #332600;
  --text: #f5e8c8; --text-dim: #c8b98a; --text-faint: #8a7a50;
  --border: rgba(255,215,0,0.20);
  --header-bg: linear-gradient(180deg, rgba(42,31,0,0.95) 0%, rgba(26,18,0,0.85) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(42,31,0,0.96) 0%, rgba(26,18,0,0.88) 100%);
  --gold-line: rgba(255,215,0,0.5);
  --border-gold: rgba(255,215,0,0.35);
  --gold: #ffd700;
  --gold-light: #ffe066;
  --cover-bg: linear-gradient(135deg, #ffd700, #7a4a00);
  --purple: #e0c8ff;
  background-image:
    radial-gradient(ellipse at 22% 12%, rgba(255,215,0,0.35), transparent 48%),
    radial-gradient(ellipse at 78% 70%, rgba(255,180,0,0.30), transparent 48%),
    radial-gradient(ellipse at 50% 45%, rgba(255,235,120,0.18), transparent 55%),
    radial-gradient(1.4px 1.4px at 15% 25%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.6px 1.6px at 60% 15%, rgba(255,245,180,0.9), transparent),
    radial-gradient(1.2px 1.2px at 82% 45%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 35% 70%, rgba(255,240,160,0.85), transparent),
    radial-gradient(1.1px 1.1px at 70% 85%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.3px 1.3px at 48% 30%, rgba(255,255,255,0.7), transparent),
    linear-gradient(160deg, #1a1200 0%, #2a1f00 50%, #3d2b00 100%);
  color: var(--text);
}
body.theme-star {
  --bg: #1a0a3a; --bg2: #241050; --card: #2a154a; --card2: #33205a;
  --text: #efe7fb; --text-dim: #b09ad0; --text-faint: #6a5588;
  --border: rgba(156,80,220,0.24);
  --header-bg: linear-gradient(180deg, rgba(58,26,106,0.95) 0%, rgba(26,10,58,0.85) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(58,26,106,0.96) 0%, rgba(26,10,58,0.88) 100%);
  --gold-line: rgba(206,147,216,0.5);
  --border-gold: rgba(156,80,220,0.35);
  --gold: #ce93d8;
  --gold-light: #e1bee7;
  --cover-bg: linear-gradient(135deg, #7a2ab0, #4a1a7a);
  --purple: #e1bee7;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(200,120,255,0.4), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(140,60,220,0.35), transparent 45%),
    radial-gradient(ellipse at 55% 40%, rgba(255,120,220,0.22), transparent 40%),
    radial-gradient(1.6px 1.6px at 15% 20%, rgba(255,255,255,1), transparent),
    radial-gradient(1.3px 1.3px at 45% 8%, rgba(235,200,255,0.95), transparent),
    radial-gradient(2px 2px at 70% 30%, rgba(255,255,255,0.95), transparent),
    radial-gradient(1.8px 1.8px at 85% 75%, rgba(220,160,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 30% 80%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 55% 55%, rgba(235,190,255,0.9), transparent),
    radial-gradient(1.1px 1.1px at 78% 18%, rgba(255,255,255,0.8), transparent),
    linear-gradient(160deg, #1a0a3a 0%, #3a1a6a 40%, #6a2a9a 70%, #9a4ac0 100%);
  color: var(--text);
}
body.theme-aurora {
  --bg: #001a30; --bg2: #052a45; --card: #0a2540; --card2: #0d3050;
  --text: #dff7ff; --text-dim: #7fd0d8; --text-faint: #4a8890;
  --border: rgba(0,229,255,0.22);
  --header-bg: linear-gradient(180deg, rgba(10,50,74,0.95) 0%, rgba(0,26,48,0.85) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(10,50,74,0.96) 0%, rgba(0,26,48,0.88) 100%);
  --gold-line: rgba(0,229,255,0.5);
  --border-gold: rgba(0,229,255,0.35);
  --gold: #00e5ff;
  --gold-light: #80f0ff;
  --cover-bg: linear-gradient(135deg, #0a8a8a, #0a3a60);
  --purple: #b3e5fc;
  background-image:
    linear-gradient(115deg, rgba(0,229,255,0.32) 0%, transparent 30%, rgba(0,255,170,0.28) 45%, transparent 65%, rgba(120,80,255,0.30) 80%, transparent 100%),
    radial-gradient(ellipse at 15% 8%, rgba(0,229,255,0.30), transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(0,255,170,0.24), transparent 45%),
    linear-gradient(160deg, #001a30 0%, #0a3a60 35%, #0a6a70 65%, #1a9a8a 100%);
  background-size: 250% 100%, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text);
}
body.theme-emperor {
  --bg: #2a0800; --bg2: #3a1000; --card: #3a1400; --card2: #4a1a00;
  --text: #fde8d8; --text-dim: #d0a080; --text-faint: #9a6a48;
  --border: rgba(255,87,34,0.24);
  --header-bg: linear-gradient(180deg, rgba(74,26,0,0.95) 0%, rgba(42,12,0,0.85) 100%);
  --tabbar-bg: linear-gradient(0deg, rgba(74,26,0,0.96) 0%, rgba(42,12,0,0.88) 100%);
  --gold-line: rgba(255,87,34,0.55);
  --border-gold: rgba(255,87,34,0.38);
  --gold: #ff5722;
  --gold-light: #ff8a50;
  --cover-bg: linear-gradient(135deg, #ff5722, #b71c1c);
  --purple: #ffb380;
  background-image:
    radial-gradient(ellipse at 30% 15%, rgba(255,87,34,0.38), transparent 48%),
    radial-gradient(ellipse at 72% 78%, rgba(255,152,0,0.34), transparent 48%),
    radial-gradient(ellipse at 50% 45%, rgba(255,120,40,0.20), transparent 55%),
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 65% 18%, rgba(255,220,150,0.9), transparent),
    radial-gradient(1.2px 1.2px at 82% 55%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.6px 1.6px at 38% 78%, rgba(255,200,120,0.85), transparent),
    linear-gradient(160deg, #2a0800 0%, #5a1800 40%, #8a2a00 70%, #c04000 100%);
  color: var(--text);
}

/* ── v1.31: 皮肤背景流光 + 炫目特效 ── */
@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes auroraFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* 流星划过（暗夜星空 / 星辰紫） */
@keyframes meteorFall {
  0% { transform: translate(110vw, -8vh) rotate(38deg); opacity: 0; }
  6% { opacity: 1; }
  28% { opacity: 1; }
  34% { transform: translate(-25vw, 95vh) rotate(38deg); opacity: 0; }
  100% { transform: translate(-25vw, 95vh) rotate(38deg); opacity: 0; }
}
/* 金色流光扫过（土豪金） */
@keyframes goldSweep {
  0% { background-position: -220% 0; }
  100% { background-position: 220% 0; }
}
/* 火焰光晕呼吸（至尊红橙） */
@keyframes fireGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
body.theme-night, body.theme-pink, body.theme-gold,
body.theme-star, body.theme-aurora, body.theme-emperor {
  background-size: 100% 100%;
  /* v1.122: 去掉 bgFlow(background-position 动画) + 250% 尺寸——QQ浏览器软键盘弹出时重绘导致整屏模糊 */
}
/* 暗夜星空 / 星辰紫：流星划过 */
body.theme-night::before, body.theme-star::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 150px; height: 3px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(180,160,255,0.6) 100%);
  filter: drop-shadow(0 0 6px #fff);
  animation: meteorFall 6s ease-in infinite;
  pointer-events: none;
}
body.theme-star::before { animation-duration: 5s; }
/* 土豪金：金色流光扫过 */
body.theme-gold::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,215,0,0.22) 50%, transparent 58%);
  background-size: 250% 100%;
  animation: goldSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
/* 至尊红橙：火焰光晕呼吸 + 流光 */
body.theme-emperor::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,87,34,0.35), transparent 60%);
  pointer-events: none;
}

/* ── v0.77: 按钮/卡片动效修饰 ── */
.sheet-btn, .account-btn, .menu-item, .shop-item, .rc-btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.sheet-btn:active, .account-btn:active, .shop-item:active, .rc-btn:active {
  transform: scale(0.95);
}
.sheet-btn:hover, .account-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 4px 14px rgba(184,148,42,0.32);
}
.menu-item:hover {
  box-shadow: 0 4px 16px rgba(184,148,42,0.18);
  transform: translateY(-1px);
}
.shop-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184,148,42,0.22);
}

/* ── v0.77: 他人主页欢迎特效 ── */
@keyframes welcomeIn {
  0% { opacity: 0; transform: translateY(26px) scale(0.94); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-welcome {
  animation: welcomeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── v0.79: 发布动态媒体预览 + 删除按钮 ── */
.moment-media-item {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
}
.moment-media-item img, .moment-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-act {
  position: absolute;
  font-size: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
.media-act[data-act="play"] { left: 4px; bottom: 4px; background: rgba(0,0,0,0.6); }
.media-act[data-act="up"] { top: 4px; right: 4px; }
.media-act[data-act="down"] { bottom: 4px; right: 4px; }
.media-act.del { top: 4px; left: 4px; background: rgba(220,50,50,0.82); }
.media-drag-hint {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}
/* ── v0.85: 打赏规则 + 打赏人列表 ── */
.tip-rules {
  background: rgba(124,92,191,0.08);
  border: 1px solid rgba(124,92,191,0.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}
.tip-rules-title { font-weight: 700; color: var(--purple); margin-bottom: 4px; }
.tip-list { display: flex; flex-direction: column; gap: 8px; }
.tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.tip-item:active { transform: scale(0.98); }
.tip-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card2);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tip-info { flex: 1; }
.tip-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tip-levels { display: flex; align-items: center; gap: 4px; margin-top: 2px; flex-wrap: nowrap; }
.tip-time { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.tip-amount { font-size: 14px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.tip-invite {
  flex-shrink: 0;
  border: 1px solid var(--purple);
  background: rgba(124,92,191,0.1);
  color: var(--purple);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}

/* ── v0.86: 作品详情 + 评论弹幕 ── */
.moment-detail-media { display: flex; flex-direction: column; gap: 8px; }
.moment-detail-media img, .moment-detail-media video {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  background: #000;
}
/* ── v0.87: 书页重叠翻页 ── */
.media-stack { position: relative; touch-action: pan-y; }
.media-page-list { position: relative; height: 46vh; }
.media-page {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.32);
}
.media-page::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06));
  pointer-events: none;
}
.media-page img, .media-page video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}
.media-page video { pointer-events: none; }
/* v1.122: 移动端 webview 把 video 渲染成原生层导致 z-index 失效、视频盖在最前；
   加 translateZ(0) 强制合成层，让所有 video 遵守 CSS 层叠（修复全屏 lightbox 被视频遮挡） */
video {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
/* v1.65: 作品详情照片留白——模糊背景填充（半透高模糊，贴近照片内容，替代金色留白） */
.media-blur-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px);
  transform: scale(1.12);
  opacity: 0.55;
  border-radius: 12px;
  pointer-events: none;
}
/* v1.65: 作品详情照片容器背景改透明，只留金色细描边，让模糊背景透出（羽化衔接） */
.media-page .photo-frame-gold {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  background: transparent;
  padding: 3px;
}
/* v1.122: 相框金描边放到作品上层（::after z-index 高于照片），不被照片压住 */
.media-page .photo-frame-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 3px solid rgba(212,175,55,0.85);
  border-radius: 13px;
  box-shadow: 0 0 20px rgba(212,175,55,0.35), 0 4px 16px rgba(0,0,0,0.22);
  z-index: 3;
}
/* v1.66: 推荐详情照片留白——模糊背景填充（同世界圈作品详情，模糊填充+透明容器+金描边） */
.reco-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.reco-photo-wrap .photo-frame-gold {
  background: transparent;
  padding: 3px;
  box-shadow: inset 0 0 0 3px rgba(212,175,55,0.85), 0 0 20px rgba(212,175,55,0.35), 0 4px 16px rgba(0,0,0,0.22);
}
.media-page-hint {
  position: relative;
  z-index: 99;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  margin-top: 40px;
  padding-bottom: 4px;
}

.moment-comments-danmu {
  margin-top: 12px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px 0;
  overflow: hidden;
}
.danmu-close {
  text-align: right;
  font-size: 11px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0 10px;
  margin-bottom: 4px;
}
.danmu-lane {
  overflow: hidden;
  white-space: nowrap;
  margin: 4px 0;
}
.danmu-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: danmuScroll 22s linear infinite;
}
.danmu-item {
  display: inline-block;
  margin-right: 28px;
  font-size: 12px;
  line-height: 1.6;
}
.danmu-name { color: var(--gold); }
.danmu-text { color: var(--text-dim); }
@keyframes danmuScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.heart-float {
  position: fixed;
  font-size: 22px;
  pointer-events: none;
  z-index: 99999;
  animation: heartFloat 1.2s ease-out forwards;
}
@keyframes heartFloat {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  30% { transform: translate(-50%, -90%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -240%) scale(0.9); opacity: 0; }
}

.moment-del {
  margin-left: auto;
  align-self: flex-start;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-dim);
  opacity: 0.7;
  padding: 2px;
}
.moment-del:hover { opacity: 1; }

/* ============ v0.59: 信用分卡片 + 口碑区 ============ */
.credit-card {
  margin: 10px 12px 0;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
}
.credit-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.credit-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.credit-level {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #d4af37);
  color: #fff;
  font-weight: 600;
}
.credit-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.credit-score {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.credit-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.credit-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8b5cf6, #d4af37);
  transition: width 0.5s ease;
}
.credit-events {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
}
.rep-box {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
}
.rep-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.14);
  color: #6d4fc2;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin: 0 4px 4px 0;
}
.rep-review {
  padding: 8px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.rep-stars { color: var(--gold); font-size: 12px; }
.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  margin-bottom: 8px;
}
.lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.lb-rank-1 { background: linear-gradient(135deg, #ffd700, #ffb300); }
.lb-rank-2 { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); }
.lb-rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.lb-rank-n { background: rgba(139, 92, 246, 0.3); color: var(--text); }

/* ============================================================
   v2.0 奢华付费皮肤重做（星辰紫 / 极光蓝 / 帝王金）
   聊天气泡：多段流光渐变 + 细腻纹理 + 主题色光扫 + 发光描边
   个人主页：Seedream 高清特效背景图 + 缓慢漂移 + 主题斜光扫
   仅用背景/伪元素动画，不新增 DOM（兼容微信 webview，防飞出/超屏）
   ============================================================ */

/* ---- 通用关键帧 ---- */
@keyframes skinFlow {        /* 气泡表面流光斜移 */
  0%   { background-position: 0% 0%, 0 0, 0 0; }
  100% { background-position: 220% 0%, 0 0, 0 0; }
}
@keyframes pskinDrift {      /* 主页背景缓慢漂移 */
  0%   { background-position: 42% 32%; }
  50%  { background-position: 58% 68%; }
  100% { background-position: 42% 32%; }
}
@keyframes pskinSweep {      /* 主页一道主题光斜扫 */
  0%   { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  12%  { opacity: .9; }
  55%  { opacity: .9; }
  100% { transform: translateX(230%) skewX(-18deg); opacity: 0; }
}
@keyframes bubbleSheen {     /* 气泡光带周期扫过 */
  0%   { transform: translateX(-140%) skewX(-20deg); opacity: 0; }
  18%  { opacity: .85; }
  70%  { opacity: .85; }
  100% { transform: translateX(150%) skewX(-20deg); opacity: 0; }
}
@keyframes skinStarTwinkle { 0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)} }

/* ============ 聊天气泡（本人发送 .bubble.user / 群聊 .g-msg-bubble） ============ */
.bubble.user.skin-star, .g-msg-bubble.skin-star, .wc-msg-bubble.skin-star {
  border: 1.5px solid rgba(216,168,255,.85);
  color: #fff;
  background-image:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34) 48%, rgba(214,170,255,.22) 52%, transparent 68%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #3b0f78 0%, #6a1bb0 38%, #9a2fc8 70%, #c646de 100%);
  background-size: 220% 100%, auto, auto;
  animation: skinFlow 3.4s linear infinite;
  box-shadow: 0 0 16px rgba(168,85,240,.55), inset 0 0 12px rgba(255,255,255,.12);
  text-shadow: 0 1px 3px rgba(40,0,80,.55);
}
.bubble.user.skin-aurora, .g-msg-bubble.skin-aurora, .wc-msg-bubble.skin-aurora {
  border: 1.5px solid rgba(120,240,255,.85);
  color: #f2fdff;
  background-image:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.36) 48%, rgba(120,255,230,.22) 52%, transparent 68%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #01304d 0%, #03606f 38%, #059486 70%, #12c79e 100%);
  background-size: 240% 100%, auto, auto;
  animation: skinFlow 4.0s linear infinite;
  box-shadow: 0 0 16px rgba(0,224,210,.5), inset 0 0 12px rgba(180,255,250,.12);
  text-shadow: 0 1px 3px rgba(0,40,50,.55);
}
.bubble.user.skin-emperor, .g-msg-bubble.skin-emperor, .wc-msg-bubble.skin-emperor {
  border: 1.5px solid rgba(255,214,120,.95);
  color: #fff;
  background-image:
    linear-gradient(115deg, transparent 28%, rgba(255,244,200,.42) 48%, rgba(255,190,80,.26) 52%, transparent 68%),
    repeating-linear-gradient(135deg, rgba(255,235,170,.10) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #4a0e02 0%, #8c2405 36%, #c6490a 66%, #f08a12 100%);
  background-size: 230% 100%, auto, auto;
  animation: skinFlow 3.6s linear infinite;
  box-shadow: 0 0 18px rgba(255,140,30,.6), inset 0 0 12px rgba(255,225,160,.16);
  /* v1.131: 四方向深色描边，红橙渐变底上文字清晰不糊（世界群聊也适用） */
  text-shadow: -1px -1px 0 rgba(70,15,0,.85), 1px -1px 0 rgba(70,15,0,.85), -1px 1px 0 rgba(70,15,0,.85), 1px 1px 0 rgba(70,15,0,.85), 0 2px 4px rgba(70,15,0,.5);
  -webkit-text-stroke: 0.4px rgba(70,15,0,.65);
}

/* 付费皮肤气泡：伪元素升级为光扫层（覆盖默认金描边），不再只显示静态金边 */
.bubble.user.skin-star::before,
.bubble.user.skin-aurora::before,
.bubble.user.skin-emperor::before {
  border: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: bubbleSheen 2.8s ease-in-out infinite;
  border-radius: inherit;
  z-index: 0;
}
/* 气泡内文字抬到光扫层之上 */
.bubble.user.skin-star, .bubble.user.skin-aurora, .bubble.user.skin-emperor { position: relative; z-index: 1; }

/* ============ 个人主页：高清特效背景图（静止，去掉漂移动画避免背景边框闪烁） ============ */
.profile-page.pskin-star,
.profile-page.pskin-aurora,
.profile-page.pskin-emperor {
  background-color: #0b0718;
  background-repeat: no-repeat;
  background-size: 118% auto;
  background-position: 50% 40%;
}
.profile-page.pskin-star   { background-image: linear-gradient(180deg, rgba(20,8,48,.42), rgba(12,5,30,.72)), url('../assets/skin_star.jpg'); }
.profile-page.pskin-aurora { background-image: linear-gradient(180deg, rgba(2,26,46,.42), rgba(1,16,30,.72)), url('../assets/skin_aurora.jpg'); }
.profile-page.pskin-emperor{ background-image: linear-gradient(180deg, rgba(50,12,2,.40), rgba(28,7,1,.74)), url('../assets/skin_emperor.jpg'); }

/* 主页内容卡片在奢华底上保证可读（轻磨砂托底） */
.profile-page.pskin-star .profile-body,
.profile-page.pskin-aurora .profile-body,
.profile-page.pskin-emperor .profile-body { position: relative; z-index: 3; }

/* 付费皮肤 ::after：主题色一道光静态光晕（去掉 pskinSweep 扫光动画避免边框闪烁） */
.profile-page.pskin-star::after,
.profile-page.pskin-aurora::after,
.profile-page.pskin-emperor::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16) 45%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.16) 55%, transparent);
  width: 46%;
  transform: translateX(-130%) skewX(-18deg);
  z-index: 2;
}
.profile-page.pskin-aurora::after { animation-delay: 1.4s; }
.profile-page.pskin-emperor::after {
  background: linear-gradient(90deg, transparent, rgba(255,225,150,.18) 45%, rgba(255,235,180,.32) 50%, rgba(255,225,150,.18) 55%, transparent);
  animation-delay: 2.7s;
}
.profile-page.pskin-star::after { animation-delay: .4s; }

/* 主页散落星星随主题着色 + 更灵动 */
.profile-page.pskin-star .skin-star   { color: #e9c8ff; text-shadow: 0 0 8px #c46bff, 0 0 14px rgba(180,80,255,.8); }
.profile-page.pskin-aurora .skin-star { color: #bafaff; text-shadow: 0 0 8px #39e6ff, 0 0 14px rgba(0,229,255,.8); }
.profile-page.pskin-emperor .skin-star{ color: #ffe6a8; text-shadow: 0 0 8px #ffc233, 0 0 15px rgba(255,170,40,.9); }

/* 尊重"减少动态效果"系统偏好（省电/无障碍） */
@media (prefers-reduced-motion: reduce) {
  .bubble.user.skin-star, .bubble.user.skin-aurora, .bubble.user.skin-emperor,
  .profile-page.pskin-star, .profile-page.pskin-aurora, .profile-page.pskin-emperor,
  .bubble.user.skin-star::before, .bubble.user.skin-aurora::before, .bubble.user.skin-emperor::before,
  .profile-page.pskin-star::after, .profile-page.pskin-aurora::after, .profile-page.pskin-emperor::after {
    animation: none !important;
  }
}

/* ===== v1.81: 达人主页装修特效（皮肤/特效粒子动画）===== */
.profile-effect-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  border-radius: inherit;
}
.pfx {
  position: absolute;
  left: 0;
  bottom: -24px;
  border-radius: 50%;
  opacity: 0;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform, opacity;
}
/* v1.88: 特效多种图案（花样变化）—— 圆形光点 / 菱形金片 / 四角星 / 流星 */
.pfx-dot {
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255,255,255,0));
  box-shadow: 0 0 8px rgba(255,255,255,.9);
  animation-name: pfxFloat;
}
.pfx-diamond {
  border-radius: 2px;
  background: linear-gradient(135deg, #fff, #ffd76a);
  box-shadow: 0 0 10px rgba(255,200,60,.9);
  animation-name: pfxSpin;
}
.pfx-star4 {
  border-radius: 0;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  background: radial-gradient(circle, #fff, #d7c8ff);
  animation-name: pfxFloat;
}
.pfx-spark {
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #ff9d5c 55%, rgba(255,80,0,0));
  box-shadow: 0 0 10px rgba(255,140,60,.9);
  animation-name: pfxFloat;
}
@keyframes pfxSpin {
  0% { transform: translateY(0) rotate(0deg) scale(.6); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .6; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) rotate(360deg) scale(1.2); opacity: 0; }
}
.pfx-star {
  background: radial-gradient(circle, #fff, rgba(255,255,255,0));
  box-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 16px rgba(200,220,255,.6);
  animation-name: pfxFloat;
}
@keyframes pfxFloat {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .9; }
  85% { opacity: .6; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) scale(1.1); opacity: 0; }
}
.pfx-stream {
  position: absolute;
  top: -35%; left: -40%;
  width: 220%; height: 30%;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 30%, rgba(255,215,0,.28) 45%, rgba(120,255,255,.22) 55%, rgba(255,255,255,.1) 70%, transparent);
  transform: rotate(15deg);
  animation-name: pfxStream;
  animation-duration: 3s;
}
@keyframes pfxStream {
  0% { transform: translateX(-60%) rotate(15deg); }
  100% { transform: translateX(60%) rotate(15deg); }
}
.pfx-gold {
  background: radial-gradient(circle, #ffe28a, rgba(255,180,40,0));
  box-shadow: 0 0 10px rgba(255,200,60,.9);
  animation-name: pfxRise;
}
@keyframes pfxRise {
  0% { transform: translateY(0) scale(.5); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .6; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) scale(1.2); opacity: 0; }
}
/* v1.112: 皇家之辉特效（金色皇冠上升 + 金光） */
.pfx-crown {
  border-radius: 0;
  background: none;
  animation-name: pfxRise;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.95));
}
.pfx-fire {
  background: radial-gradient(circle, #fff, #ffd54f 40%, rgba(255,80,0,0));
  box-shadow: 0 0 12px #ff6a00, 0 0 24px rgba(255,100,0,.7);
  animation-name: pfxFire;
}
@keyframes pfxFire {
  0% { transform: translateY(0) scale(.4); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: .7; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) scale(1.4); opacity: 0; }
}
.pfx-galaxy {
  background: radial-gradient(circle, #fff, #a78bfa 40%, rgba(120,80,255,0));
  box-shadow: 0 0 12px #8b5cf6, 0 0 22px rgba(139,92,246,.8);
  animation-name: pfxGalaxy;
}
@keyframes pfxGalaxy {
  0% { transform: translateY(0) translateX(0) scale(.5); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) translateX(26px) scale(1.3); opacity: 0; }
}
.pfx-dragon {
  background: radial-gradient(circle, #fff, #ffd700 40%, rgba(255,180,0,0));
  box-shadow: 0 0 14px #ffd700, 0 0 30px rgba(255,200,0,.8);
  animation-name: pfxDragon;
}
@keyframes pfxDragon {
  0% { transform: translateY(0) scale(.3) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: .8; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) scale(1.5) rotate(360deg); opacity: 0; }
}
/* v1.90: 新增动效形状 —— 金色星星 / 雷电 / 火焰 / 七彩流光 */
.pfx-goldstar {
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  background: radial-gradient(circle, #fff7d0, #ffd700 60%, rgba(255,180,0,0));
  box-shadow: 0 0 12px rgba(255,200,0,.9), 0 0 22px rgba(255,180,0,.5);
  animation-name: pfxTwinkle;
}
.pfx-lightning {
  border-radius: 0;
  background: linear-gradient(180deg, #fff, #a0e8ff 40%, #4facfe 70%, rgba(120,220,255,0));
  box-shadow: 0 0 12px #4facfe, 0 0 28px rgba(79,172,254,.7);
  clip-path: polygon(50% 0%, 100% 32%, 58% 38%, 78% 62%, 30% 58%, 55% 100%, 35% 55%, 20% 38%);
  animation-name: pfxLightning;
}
.pfx-flame {
  border-radius: 0;
  clip-path: polygon(50% 0%, 60% 22%, 72% 42%, 62% 62%, 50% 78%, 38% 62%, 28% 42%, 40% 22%);
  background: linear-gradient(180deg, #fffef0 0%, #ffd54f 28%, #ff9800 52%, #ff4d00 76%, rgba(180,30,0,0) 100%);
  box-shadow: 0 0 12px rgba(255,110,0,0.7);
  animation-name: pfxRiseFire;
}
.pfx-rainbow {
  border-radius: 50%;
  background: conic-gradient(#ff5f6d, #ffc371, #4ade80, #4facfe, #a78bfa, #ff5f6d);
  box-shadow: 0 0 10px rgba(255,255,255,.85), 0 0 20px rgba(139,92,246,.6);
  animation-name: pfxTwinkle;
}
@keyframes pfxTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(180deg); }
}
@keyframes pfxLightning {
  0% { opacity: 0; transform: translateY(-130vh) scaleY(.6); }
  4% { opacity: 1; transform: translateY(0) scaleY(1); }
  18% { opacity: .85; }
  30% { opacity: 0; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(0) scaleY(1); }
}
@keyframes pfxRiseFire {
  0% { transform: translateY(0) scale(.5); opacity: 0; }
  18% { opacity: 1; }
  80% { opacity: .7; }
  100% { transform: translateY(calc(-1 * (100vh + 48px))) scale(1.3); opacity: 0; }
}
/* v1.91: 固定屏幕内闪烁星星（流光溢彩金色 / 星空银河七彩） */
.pfx-fixed-star {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  animation: starTwinkle 1.1s ease-in-out infinite;
  text-shadow: 0 0 7px rgba(255,240,160,1), 0 0 14px rgba(255,215,0,0.95);
}
.pfx-fixed-rainbow {
  animation: starTwinkle 1.1s ease-in-out infinite;
  text-shadow: 0 0 9px rgba(255,255,255,0.95), 0 0 16px rgba(255,215,0,0.9);
}
/* v1.94: 星星缓慢摆动（transform 平移+微旋转，与 opacity 闪烁 / 七彩 filter 不冲突） */
@keyframes starSway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(3px) rotate(-5deg); }
  75% { transform: translateX(-3px) rotate(5deg); }
}
/* v1.91: 神龙降世——树枝状开叉闪电（SVG，贯穿全屏从天而降闪击） */
.pfx-fork-lightning {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  pointer-events: none;
  z-index: 12;
  filter: drop-shadow(0 0 9px #4facfe) drop-shadow(0 0 26px rgba(79,172,254,0.85)) drop-shadow(0 0 44px rgba(120,200,255,0.5));
  animation: forkLightning 2.6s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes forkLightning {
  0% { opacity: 0; transform: translateY(-120%) scaleY(0.7); }
  3% { opacity: 1; transform: translateY(0) scaleY(1); }
  8% { opacity: 0.2; }
  12% { opacity: 0.9; }
  20% { opacity: 0; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(0) scaleY(1); }
}
/* v1.94: 雷鸣闪烁——打雷瞬间全屏蓝白闪光（瞬时照亮，不持续遮挡照片） */
.pfx-thunder-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(210,235,255,0.95), rgba(140,190,255,0.4) 45%, transparent 75%);
  animation: thunderFlash 2.6s ease-in-out infinite;
  will-change: opacity;
}
@keyframes thunderFlash {
  0% { opacity: 0; }
  2% { opacity: 1; }
  6% { opacity: 0; }
  11% { opacity: 0.55; }
  15% { opacity: 0; }
  100% { opacity: 0; }
}
/* v1.96: 凤凰涅槃——底部火焰光晕（radial-gradient 柔和过渡，去左右光晕和 blur 防频闪） */
.pfx-fire-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 70% at 50% 100%, rgba(255,100,0,0.55) 0%, rgba(255,150,40,0.3) 42%, transparent 75%);
  animation: fireGlowBreath 2.4s ease-in-out infinite;
  will-change: opacity;
}
@keyframes fireGlowBreath {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   v0.62: 🎉 组局广场 + AI 组局策划师
   ════════════════════════════════════════════════════════════ */
.party-tool-btn {
  padding: 9px 10px; font-size: 13px; font-weight: 700; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border-gold); color: var(--text);
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.party-tool-btn:active { transform: scale(0.97); }
.party-actions { display: flex; gap: 10px; margin: 14px 0 12px; }
.party-action-btn {
  flex: 1; padding: 12px 10px; font-size: 14px; font-weight: 700; border-radius: 14px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.12); transition: transform 0.12s;
}
.party-action-btn:active { transform: scale(0.97); }
.party-scenes { display: flex; flex-wrap: nowrap; gap: 8px; margin: 2px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.party-scene-chip {
  flex: 0 0 auto; padding: 7px 13px; font-size: 12px; border-radius: 18px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  white-space: nowrap; transition: all 0.15s;
}
.party-scene-chip.active {
  background: linear-gradient(135deg, #8b5cf6, #d4af37); color: #fff; border-color: transparent;
  font-weight: 700; box-shadow: 0 3px 10px rgba(139,92,246,0.3);
}
.party-lobby { margin-top: 4px; }
.party-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 15px; margin-bottom: 10px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.12s;
}
.party-card:active { transform: scale(0.985); background: var(--card2); }
.party-card-head { display: flex; align-items: center; gap: 8px; }
.party-scene-tag {
  flex: 0 0 auto; font-size: 11px; padding: 3px 9px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(212,175,55,0.16));
  color: var(--gold); font-weight: 700; white-space: nowrap;
}
.party-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-count {
  flex: 0 0 auto; font-size: 12px; color: var(--text-dim); white-space: nowrap;
  padding: 2px 8px; border-radius: 10px; background: var(--card2);
}
.party-count.nearfull { color: #07c160; font-weight: 700; background: rgba(7,193,96,0.12); }
.party-progress { height: 6px; border-radius: 4px; background: rgba(184,148,42,0.12); overflow: hidden; margin-top: 11px; }
.party-progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8b5cf6, #d4af37); transition: width 0.3s; }
.party-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--text-dim); margin-top: 9px; }
.party-meta-item { display: inline-flex; align-items: center; white-space: nowrap; }
.party-field-label { display: block; font-size: 12px; color: var(--text-dim); margin: 10px 0 5px; font-weight: 600; }
.party-field-row { display: flex; flex-wrap: wrap; gap: 6px; }
.party-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border-gold); border-radius: 12px; background: var(--card);
  color: var(--text); outline: none;
}
.party-input:focus { border-color: var(--gold); }
.party-plan-card {
  background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}
.party-plan-sec { font-size: 12px; font-weight: 700; color: var(--gold); margin: 12px 0 5px; }
.party-plan-recs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; -webkit-overflow-scrolling: touch; touch-action: pan-x; scroll-snap-type: x proximity; }
.party-plan-rec {
  flex: 0 0 auto; width: 66px; text-align: center; cursor: pointer; scroll-snap-align: start;
}
.party-plan-rec img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-gold); }
.party-plan-rec .ppr-name { font-size: 11px; color: var(--text); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-plan-rec .ppr-meta { font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.party-members { margin-top: 4px; }
.party-member {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  border-bottom: 1px dashed rgba(184,148,42,0.16); font-size: 12px;
}
.party-member:last-child { border-bottom: none; }
.pm-role { flex: 0 0 auto; color: var(--gold); font-weight: 700; }
.pm-id { flex: 1; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-pledge { flex: 0 0 auto; color: var(--text-faint); font-size: 11px; }

/* v0.63: 组局广场增强 — 双tab/时间/成员头像/状态/详情 */
.party-tabs { display: flex; gap: 6px; margin: 2px 0 12px; background: var(--card2); border-radius: 12px; padding: 4px; }
.party-tab {
  flex: 1; text-align: center; padding: 8px 0; font-size: 13px; font-weight: 700;
  color: var(--text-dim); border-radius: 9px; cursor: pointer; transition: all 0.15s;
}
.party-tab.active { background: linear-gradient(135deg, #8b5cf6, #d4af37); color: #fff; box-shadow: 0 3px 10px rgba(139,92,246,0.3); }
.party-status { flex: 0 0 auto; font-size: 10px; padding: 2px 7px; border-radius: 8px; white-space: nowrap; font-weight: 700; }
.party-status.formed { background: rgba(7,193,96,0.14); color: #07c160; }
.party-status.cancelled { background: rgba(255,77,79,0.12); color: #ff6b6b; }
.party-status.expired { background: rgba(150,150,150,0.14); color: var(--text-faint); }
.party-myrole { flex: 0 0 auto; font-size: 10px; padding: 2px 7px; border-radius: 8px; white-space: nowrap; background: rgba(139,92,246,0.14); color: #8b5cf6; font-weight: 700; }
.party-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.party-status-pill { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.party-status-pill.open { background: rgba(7,193,96,0.14); color: #07c160; }
.party-status-pill.full { background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(212,175,55,0.2)); color: var(--gold); }
.party-status-pill.cancelled { background: rgba(150,150,150,0.14); color: var(--text-faint); }
.party-status-pill.expired { background: rgba(150,150,150,0.14); color: var(--text-faint); }
.party-info-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.party-info-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.pir-icon { flex: 0 0 auto; width: 20px; text-align: center; }
.party-organizer {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px;
  background: var(--card2); border: 1px solid var(--border-gold); border-radius: 12px;
}
.pm-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-gold); flex: 0 0 auto; }
.pm-avatar-ph { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card2); font-size: 16px; flex: 0 0 auto; }
.pm-name { flex: 1; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-desc { font-size: 12px; color: var(--text-dim); line-height: 1.7; margin-top: 2px; word-break: break-word; }
.party-formed-hint {
  margin-top: 10px; padding: 10px 12px; font-size: 12px; color: #07c160; line-height: 1.6;
  background: rgba(7,193,96,0.1); border: 1px solid rgba(7,193,96,0.3); border-radius: 12px;
}

/* v0.64: 组局防鸽保证金 */
.party-deposit-tip {
  margin-top: 10px; padding: 9px 12px; font-size: 12px; color: var(--gold);
  background: rgba(212,175,55,0.1); border: 1px dashed var(--border-gold); border-radius: 10px;
}
.party-member { flex-wrap: wrap; row-gap: 6px; }
.pm-deposit {
  flex: 0 0 auto; font-size: 10px; padding: 2px 7px; border-radius: 8px; white-space: nowrap;
  background: rgba(212,175,55,0.12); color: var(--gold); font-weight: 700;
}
.pm-deposit.refunded { background: rgba(7,193,96,0.12); color: #07c160; }
.pm-deposit.forfeited { background: rgba(255,77,79,0.12); color: #ff6b6b; }
.pm-settle { flex: 0 0 100%; display: flex; gap: 8px; margin-top: 2px; }
.pm-settle-btn {
  flex: 1; padding: 6px 0; font-size: 12px; font-weight: 700; border-radius: 8px; border: none; cursor: pointer;
}
.pm-settle-btn.ok { background: rgba(7,193,96,0.14); color: #07c160; }
.pm-settle-btn.bad { background: rgba(255,77,79,0.14); color: #ff6b6b; }
.pm-checkin { font-size: 11px; padding: 2px 7px; border-radius: 9px; background: rgba(7,193,96,0.14); color: #07c160; white-space: nowrap; }

/* v1.143: 待确认报名区（发起人接受/拒绝 + 倒计时） */
.party-pending-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.party-pending-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: rgba(212,175,55,0.06); border: 1px solid var(--border-gold); border-radius: 12px;
}
.pm-approve-btn {
  flex: 0 0 auto; border: none; border-radius: 8px; padding: 5px 11px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.pm-approve-btn.ok { background: linear-gradient(135deg, #07c160, #06ad56); color: #fff; }
.pm-approve-btn.bad { background: rgba(255,77,79,0.12); border: 1px solid rgba(255,77,79,0.4); color: #ff6b6b; }

/* v0.66: 组局搜索/实况/光扫/规则 */
.party-search { margin: 8px 0; display: flex; gap: 8px; align-items: center; }
.party-search .party-input { flex: 1; min-width: 0; box-sizing: border-box; }

/* v1.142: 组局筛选面板 */
.party-filter-panel {
  margin: 0 0 10px; padding: 12px;
  background: var(--card); border: 1px solid var(--border-gold); border-radius: 14px;
}
.party-filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.party-filter-row:last-of-type { margin-bottom: 0; }
.party-filter-label { flex: 0 0 60px; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.party-filter-row .chip-wrap { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }

/* v1.142: 组局动态墙 + 热门栏 */
.party-section-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.party-section-title { font-size: 14px; font-weight: 700; color: var(--text); }
.party-media-wall, .party-hot { margin-bottom: 4px; }
.party-media-track, .party-hot-track {
  display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; scroll-snap-type: x mandatory;
}
.pw-media-item { flex: 0 0 108px; min-width: 0; max-width: 108px; scroll-snap-align: start; cursor: pointer; }
.party-media-thumb {
  position: relative; width: 108px; height: 108px; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid var(--border-gold);
}
.party-media-thumb img, .party-media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.party-media-title { display: block; max-width: 100%; font-size: 12px; color: var(--text); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-media-count { font-size: 10px; color: var(--text-faint); }
/* v1.143: 20分钟内新发实况 → 光扫 + NEW 置顶角标 */
.pw-fresh .party-media-thumb { border-color: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,0.55); }
.pw-fresh .party-media-thumb::after {
  content: ''; position: absolute; top: -60%; left: -80%; width: 50%; height: 220%;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  transform: skewX(-20deg); animation: pwSweep 2s ease-in-out infinite; pointer-events: none;
}
@keyframes pwSweep { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }
.party-media-fresh {
  position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 8px;
  font-size: 10px; color: #fff; font-weight: 700; background: linear-gradient(135deg,#ff6b6b,#ff9f43);
}
.party-media-badge {
  position: absolute; top: 4px; left: 4px; padding: 1px 6px; border-radius: 8px;
  font-size: 10px; color: #fff; font-weight: 600;
}
.party-media-badge.work { background: rgba(139,92,246,0.9); }
.party-media-badge.live { background: rgba(7,193,96,0.92); }
.party-media-badge.cover { background: rgba(212,175,55,0.9); }
.party-media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 26px; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,0.85); pointer-events: none;
}
.party-media-empty {
  flex: 0 0 auto; width: 100%; padding: 20px 0; text-align: center; font-size: 12px; color: var(--text-faint); line-height: 2;
}

/* v1.142: 热门栏卡片 */
.party-hot-card { flex: 0 0 140px; scroll-snap-align: start; cursor: pointer; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--border-gold); }
.party-hot-cover { position: relative; width: 100%; height: 88px; background: #000; }
.party-hot-cover img, .party-hot-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.party-hot-nocover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.party-hot-tag { position: absolute; top: 4px; right: 4px; font-size: 12px; }
.party-hot-body { padding: 7px 9px; }
.party-hot-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-hot-meta { font-size: 11px; color: #07c160; margin-top: 2px; }

/* v1.142: 发作品弹窗 - 组局选择 */
.party-work-parties { display: flex; flex-wrap: wrap; gap: 8px; }
.party-work-party {
  padding: 7px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim); cursor: pointer; transition: all 0.15s; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.party-work-party.active { background: linear-gradient(135deg, #07c160, #06ad56); color: #fff; border-color: transparent; font-weight: 600; }
.party-live-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; background: rgba(7,193,96,0.06); border-radius: 8px; }
.party-live-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #000; }
.party-live-tag { font-size: 11px; color: #07c160; }
.party-live-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.party-live-text { font-size: 12px; color: var(--text-dim); line-height: 1.4; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.party-card.has-live { position: relative; border: 1px solid rgba(7,193,96,0.5); overflow: hidden; }
.party-card.has-live::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(7,193,96,0.18), transparent);
  animation: party-sweep 2.2s linear infinite;
}
@keyframes party-sweep { 0% { left: -60%; } 100% { left: 130%; } }
.party-rules-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); background: rgba(0,0,0,0.05); font-size: 12px; line-height: 1; cursor: pointer; }
.party-rules-body { margin-top: 12px; max-height: 60vh; overflow-y: auto; }
.rule-item { padding: 8px 0; font-size: 13px; line-height: 1.5; border-bottom: 1px solid rgba(0,0,0,0.05); }
.party-live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.party-live-item { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.party-live-video { position: relative; border-radius: 8px; overflow: hidden; background: #000; }
.party-live-video .cd-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 30px; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,0.85); pointer-events: none; z-index: 2; }
.party-live-cell { display: flex; flex-direction: column; gap: 3px; }
.party-live-cap { font-size: 11px; color: var(--text-dim); line-height: 1.4; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-badge { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 8px; background: rgba(212,175,55,0.16); color: var(--gold); font-size: 10px; }
.party-tag { display: inline-block; padding: 6px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); color: var(--text-dim); font-size: 12px; cursor: pointer; transition: all 0.15s; }
.party-tag.active { background: linear-gradient(135deg, #ffb300, #ff9800); color: #fff; border-color: transparent; font-weight: 600; }
.party-media-video { position: relative; }
.pm-video-badge { position: absolute; top: 4px; left: 4px; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); pointer-events: none; }

/* v0.65: 组局媒体上传 */
.party-media-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.party-media-item { position: relative; width: 72px; height: 72px; flex: 0 0 auto; }
.party-media-item img, .party-media-item video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-gold); }
.party-media-video::after { content: '🎬'; position: absolute; top: 4px; left: 4px; font-size: 14px; }
.pm-del {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: #ff4d4f; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
  cursor: pointer; padding: 0;
}

/* v0.65: 导航重排（邀约/组局/世界圈/T台/我的）+ 为你推荐全屏页 */
.reco-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 14px 0; padding: 12px 14px; flex-shrink: 0; cursor: pointer;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(212,175,55,0.16));
  border: 1px solid var(--border-gold); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(184,148,42,0.08);
}
.reco-banner:active { transform: scale(0.985); }
.reco-banner-icon { font-size: 20px; }
.reco-banner-text { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.reco-banner-sub { flex: 1; min-width: 0; font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-banner-arrow { font-size: 18px; color: var(--gold); }
.page.fullpage { background: var(--bg); }
.party-main { flex: 1; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }

/* ============ v0.70: 话题广场 (Topic Plaza) ============ */
.topic-section-title { font-size: 14px; font-weight: 700; color: var(--gold); margin: 14px 0 8px; }
.topic-daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic-daily-card {
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(212,175,55,0.12));
  border: 1px solid var(--border-gold); transition: transform 0.1s;
}
.topic-daily-card:active { transform: scale(0.97); }
.topic-daily-cat { font-size: 10px; color: var(--text-faint); margin-bottom: 3px; }
.topic-daily-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.topic-daily-desc { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-bottom: 6px; }
.topic-daily-join { font-size: 11px; color: #8b5cf6; font-weight: 600; }
.topic-lb-list { display: flex; flex-direction: column; gap: 6px; }
.topic-lb-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--border);
}
.topic-lb-row:active { background: rgba(212,175,55,0.06); }
.topic-lb-rank {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #d4af37); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.topic-lb-main { flex: 1; min-width: 0; }
.topic-lb-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-lb-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.topic-lb-heat { font-size: 12px; color: #ff8c42; font-weight: 700; flex-shrink: 0; }

/* ============ v0.80: AI 情绪电台 + 每日心情签 (Mood Radio) ============ */
.mood-sign-stage { display: flex; flex-direction: column; align-items: center; padding: 24px 8px 8px; }
.mood-sign-ball {
  width: 96px; height: 96px; font-size: 52px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(139,92,246,0.35), rgba(139,92,246,0.10) 60%, transparent);
  box-shadow: 0 0 30px rgba(139,92,246,0.35), inset 0 0 20px rgba(212,175,55,0.15);
  margin-bottom: 10px; user-select: none;
}
.mood-sign-ball.shake { animation: moodShake 0.7s ease-in-out; }
@keyframes moodShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-10px) rotate(-8deg); }
  30% { transform: translateX(10px) rotate(8deg); }
  45% { transform: translateX(-8px) rotate(-6deg); }
  60% { transform: translateX(8px) rotate(6deg); }
  75% { transform: translateX(-5px) rotate(-3deg); }
  90% { transform: translateX(5px) rotate(3deg); }
}
.mood-sign-hint { font-size: 12px; color: var(--text-faint); margin-bottom: 12px; }
.mood-sign-level { font-size: 26px; font-weight: 800; color: var(--gold); margin: 4px 0 6px; }
.mood-sign-fortune { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mood-sign-motto { font-size: 13px; color: var(--text-dim); font-style: italic; margin-bottom: 12px; line-height: 1.6; text-align: center; }
.mood-sign-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.mood-sign-chip {
  font-size: 12px; color: #8b5cf6; font-weight: 600; padding: 5px 12px;
  border-radius: 20px; background: rgba(139,92,246,0.10); border: 1px solid rgba(139,92,246,0.25);
}
.mood-sign-advice { font-size: 12px; color: var(--text-dim); line-height: 1.6; text-align: center; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); margin-bottom: 14px; }

.mood-radio-list { display: flex; flex-direction: column; gap: 8px; }
.mood-radio-card { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.mood-radio-cat { font-size: 10px; color: #8b5cf6; font-weight: 700; margin-bottom: 3px; }
.mood-radio-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.mood-radio-text { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 8px; }
.mood-radio-share {
  font-size: 12px; color: #8b5cf6; font-weight: 600; padding: 6px 12px;
  border-radius: 8px; border: 1px solid rgba(139,92,246,0.3); background: rgba(139,92,246,0.08); cursor: pointer;
}
.mood-radio-share:active { background: rgba(139,92,246,0.16); }

.mood-radio-tree { margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(212,175,55,0.10)); border: 1px solid var(--border); }
.mood-tree-title { font-size: 14px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.mood-tree-q { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.mood-tree-r { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }

/* ============ v0.81: 心事树洞 (Mood Chat — AI 情感对话) ============ */
.mood-chat {
  display: flex; flex-direction: column; height: 64vh;
  margin: -6px -6px -10px; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(175deg, #1b1130 0%, #241844 42%, #16223f 100%);
}
.mood-chat::after {
  content: '✦   ✧   ✦   ✧   ✦';
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.18); font-size: 11px; letter-spacing: 7px; pointer-events: none;
}
.mood-chat-head {
  padding: 20px 16px 14px; text-align: center; position: relative;
  background: linear-gradient(180deg, rgba(139,92,246,0.28), rgba(139,92,246,0) 90%);
}
.mood-chat-title {
  font-size: 19px; font-weight: 800; color: #f5f0ff; letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(167,139,250,0.55);
}
.mood-chat-sub { margin-top: 5px; font-size: 12px; color: rgba(240,232,255,0.55); letter-spacing: 3px; }
.mood-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mood-chat-list {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 14px;
}
.mood-chat-row { display: flex; align-items: flex-start; gap: 8px; animation: mcIn 0.3s ease; }
@keyframes mcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mood-chat-row.user { justify-content: flex-end; }
.mood-chat-row.ai { justify-content: flex-start; }
.mood-chat-avatar {
  width: 36px; height: 36px; flex-shrink: 0; font-size: 20px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(167,139,250,0.5), rgba(139,92,246,0.16) 68%, transparent);
  border: 1px solid rgba(167,139,250,0.3); box-shadow: 0 0 16px rgba(139,92,246,0.4);
}
.mood-chat-bubble {
  max-width: 74%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.75;
  color: #f2edff; background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mood-chat-row.user .mood-chat-bubble {
  background: linear-gradient(135deg, #8b5cf6, #6b4ac4); color: #fff; border: none;
  border-bottom-right-radius: 6px; box-shadow: 0 4px 18px rgba(139,92,246,0.45);
}
.mood-chat-row.ai .mood-chat-bubble { border-bottom-left-radius: 6px; }
.mood-chat-mood {
  display: inline-block; font-size: 11px; font-weight: 800; color: #d6c7ff;
  background: rgba(139,92,246,0.22); border: 1px solid rgba(167,139,250,0.32);
  padding: 2px 10px; border-radius: 11px; margin-bottom: 7px;
}
.mood-chat-reply { font-size: 14px; line-height: 1.75; color: #f2edff; }
.mood-chat-suggest {
  margin-top: 9px; padding: 8px 11px; font-size: 12px; line-height: 1.6;
  color: #ffe9bb; background: rgba(212,175,55,0.13); border: 1px solid rgba(212,175,55,0.28); border-radius: 10px;
}
.mood-chat-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mood-chat-act, .mood-chat-share {
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 20px; cursor: pointer; border: none;
  transition: transform 0.08s;
}
.mood-chat-act:active, .mood-chat-share:active { transform: scale(0.95); opacity: 0.85; }
.mood-chat-act {
  color: #241844; background: linear-gradient(135deg, #cdb7ff, #a78bfa);
  box-shadow: 0 2px 12px rgba(167,139,250,0.45);
}
.mood-chat-share {
  color: #d6c7ff; background: rgba(167,139,250,0.14); border: 1px solid rgba(167,139,250,0.35);
}
.mood-chat-typing { color: rgba(242,237,255,0.6); font-style: italic; animation: moodChatPulse 1.2s ease-in-out infinite; }
@keyframes moodChatPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.mood-chat-chips {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  touch-action: pan-x;  /* v1.121: 允许横向原生滚动，纵向仍交给弹层滚动，避免左右滑chips带动整屏 */
  padding: 11px 12px; border-top: 1px solid rgba(255,255,255,0.07);
  scrollbar-width: none;
}
.mood-chat-chips::-webkit-scrollbar { display: none; }
.mood-chat-chip {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: #ded4ff;
  padding: 7px 14px; border-radius: 18px; white-space: nowrap; cursor: pointer;
  background: rgba(167,139,250,0.13); border: 1px solid rgba(167,139,250,0.3);
}
.mood-chat-chip:active { background: rgba(167,139,250,0.26); }
.mood-chat-input {
  display: flex; gap: 8px; align-items: center; padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.07); background: rgba(0,0,0,0.16);
}
.mood-chat-input input {
  flex: 1; min-width: 0; height: 42px; padding: 0 16px; border-radius: 21px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.08);
  color: #f5f0ff; font-size: 14px; outline: none;
}
.mood-chat-input input::placeholder { color: rgba(240,232,255,0.38); }
.mood-chat-input button {
  height: 42px; padding: 0 18px; border-radius: 21px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #a78bfa, #d4af37); color: #1a1030; font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 12px rgba(167,139,250,0.4);
}
.mood-chat-moments { margin-top: 10px; }
.mood-chat-moments-title { font-size: 11px; font-weight: 700; color: #c9b3ff; margin-bottom: 7px; letter-spacing: 1px; }
.mood-chat-moments-row { display: flex; flex-direction: column; gap: 7px; }
.mood-moment-card {
  display: flex; gap: 9px; align-items: center; padding: 8px; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(167,139,250,0.2);
  transition: background 0.12s; position: relative;
}
.mood-moment-card:active { background: rgba(167,139,250,0.16); }
.mood-moment-thumb {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 9px;
  background-size: cover; background-position: center; background-color: rgba(139,92,246,0.15);
}
.mood-moment-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mood-moment-body { flex: 1; min-width: 0; padding-right: 54px; }
.mood-moment-content {
  font-size: 13px; line-height: 1.5; color: #f2edff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mood-moment-meta { font-size: 11px; color: rgba(240,232,255,0.5); margin-top: 3px; }

/* ===== v0.82: 情绪日记 (Mood Journal — 情绪成长陪伴) ===== */
.mood-journal { display: flex; flex-direction: column; }
.mood-journal-head { padding: 4px 0 14px; text-align: center; }
.mood-journal-title { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 2px; }
.mood-journal-sub { margin-top: 5px; font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }
.mood-journal-body { display: flex; flex-direction: column; gap: 12px; }
.mj-section { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.mj-section-title { font-size: 14px; font-weight: 800; color: #6d4fc2; margin-bottom: 12px; letter-spacing: 0.5px; }
.mj-mood-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mj-mood-chip {
  font-size: 13px; font-weight: 600; color: #6d4fc2; padding: 7px 13px; border-radius: 18px; cursor: pointer;
  background: rgba(139,92,246,0.09); border: 1px solid rgba(139,92,246,0.25);
  transition: all 0.12s; user-select: none;
}
.mj-mood-chip:active { transform: scale(0.94); }
.mj-mood-chip.active {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: #fff;
  border-color: transparent; box-shadow: 0 2px 10px rgba(139,92,246,0.4);
}
.mj-note-input {
  width: 100%; height: 44px; padding: 0 16px; border-radius: 22px; box-sizing: border-box;
  border: 1px solid var(--border); background: var(--card2); color: var(--text);
  font-size: 14px; outline: none; margin-bottom: 12px;
}
.mj-note-input::placeholder { color: var(--text-faint); }
.mj-level-card { display: flex; gap: 14px; align-items: center; }
.mj-level-emoji {
  width: 56px; height: 56px; flex-shrink: 0; font-size: 30px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(212,175,55,0.30), rgba(139,92,246,0.10) 60%, transparent);
  box-shadow: 0 0 22px rgba(212,175,55,0.28);
}
.mj-level-info { flex: 1; min-width: 0; }
.mj-level-name { font-size: 16px; font-weight: 800; color: var(--gold); margin-bottom: 3px; }
.mj-level-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.mj-level-streak { margin-top: 5px; font-size: 12px; font-weight: 700; color: #e8890c; }
.mj-dominant { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.mj-dominant b { color: var(--gold); }
.mj-empty { font-size: 12px; color: var(--text-faint); text-align: center; padding: 10px 0; }
.mj-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mj-bar-label { width: 62px; flex-shrink: 0; font-size: 12px; color: var(--text-dim); }
.mj-bar-track { flex: 1; height: 10px; border-radius: 5px; background: var(--card2); overflow: hidden; }
.mj-bar-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #8b5cf6, #d4af37);
  transition: width 0.4s ease;
}
.mj-bar-pct { width: 42px; flex-shrink: 0; font-size: 11px; color: var(--text-faint); text-align: right; }
.mj-report-card { display: flex; flex-direction: column; gap: 8px; }
.mj-report-line { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.6; }
.mj-report-summary {
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
  padding: 10px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--border);
}
.mj-report-tip { font-size: 12px; color: #b8860b; line-height: 1.6; }
.mj-history-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 4px;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.mj-history-item:last-child { border-bottom: none; }
.mj-history-emoji { font-size: 18px; flex-shrink: 0; }
.mj-history-mood { flex-shrink: 0; font-weight: 700; color: #6d4fc2; }
.mj-history-note { flex: 1; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mj-history-date { flex-shrink: 0; font-size: 11px; color: var(--text-faint); }

.mf-del-btn {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; z-index: 3;
  border: none; cursor: pointer; background: rgba(0,0,0,0.4); color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.mf-audio-btn {
  position: absolute; top: 6px; right: 32px; width: 22px; height: 22px; border-radius: 50%; z-index: 3;
  border: none; cursor: pointer; background: rgba(139,92,246,0.55); color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.mf-del-btn:active, .mf-audio-btn:active { transform: scale(0.9); }
.moment-action.favorited { color: #d4af37; }
.follow-unfollow-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  padding: 5px 12px; border-radius: 14px; border: 1px solid rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.18); color: #ff9f9f; font-size: 12px; cursor: pointer;
}
.follow-unfollow-btn:active { background: rgba(239,68,68,0.4); }
.cat-manage-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cat-manage-name { flex: 1; font-size: 14px; color: #f2edff; }
.cat-rename-btn, .cat-del-btn {
  padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #ded4ff; font-size: 12px; cursor: pointer;
}
.cat-del-btn { border-color: rgba(239,68,68,0.4); color: #ff9f9f; }

/* ============ v1.120: 全局音频播放器 ============ */
.audio-player-panel {
  position: fixed; left: 12px; right: 12px; bottom: 90px; z-index: 10060;
  background: linear-gradient(160deg, #1f1438, #2a1c4e);
  border: 1px solid rgba(167,139,250,0.35); border-radius: 18px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.audio-player-panel .app-head { display: flex; align-items: center; justify-content: space-between; }
.audio-player-panel .app-title { font-size: 13px; font-weight: 700; color: #f2edff; }
.audio-player-panel .app-head-actions { display: flex; gap: 8px; }
.audio-player-panel .app-head-actions button {
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #d6c7ff; font-size: 13px; line-height: 1;
}
.audio-player-panel .app-list { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.audio-player-panel .app-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.05); color: #ded4ff; font-size: 13px;
}
.audio-player-panel .app-item.active { background: rgba(167,139,250,0.22); color: #fff; border: 1px solid rgba(167,139,250,0.4); }
.audio-player-panel .app-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-player-panel .app-item-dur { font-size: 11px; color: rgba(240,232,255,0.5); }
.audio-player-panel .app-item-del {
  width: 20px; height: 20px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.12); color: rgba(240,232,255,0.7); font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.audio-player-panel .app-item-del:active { background: rgba(239,68,68,0.55); color: #fff; }
.audio-player-panel .app-progress { display: flex; align-items: center; gap: 8px; }
.audio-player-panel .app-progress-bar {
  flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; cursor: pointer;
}
.audio-player-panel .app-progress-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, #a78bfa, #d4af37);
}
.audio-player-panel .app-progress-time { font-size: 11px; color: rgba(240,232,255,0.6); white-space: nowrap; }
.audio-player-panel .app-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.audio-player-panel .app-controls button {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #f2edff; font-size: 16px; flex-shrink: 0;
}
.audio-player-panel .app-controls .app-loop,
.audio-player-panel .app-controls .app-rw,
.audio-player-panel .app-controls .app-ff {
  width: 34px; height: 34px; font-size: 13px;
}
.audio-player-panel .app-controls .app-rate {
  width: auto; height: 34px; padding: 0 10px; border-radius: 17px; font-size: 13px; font-weight: 700;
}
.audio-player-panel .app-controls .app-toggle {
  width: 54px; height: 54px; font-size: 22px;
  background: linear-gradient(135deg, #a78bfa, #d4af37); color: #1a1030;
  box-shadow: 0 4px 16px rgba(167,139,250,0.5);
}
.audio-player-bubble {
  position: fixed; right: 14px; bottom: 130px; z-index: 10061;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: linear-gradient(135deg, #8b5cf6, #6b4ac4);
  box-shadow: 0 6px 20px rgba(139,92,246,0.5);
  cursor: pointer;
}
.audio-player-bubble .app-bubble-icon { font-size: 20px; }
.audio-player-bubble .app-bubble-text { font-size: 9px; color: #fff; max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-player-bubble.playing { animation: appBubblePulse 1.6s ease-in-out infinite; }
@keyframes appBubblePulse { 0%, 100% { box-shadow: 0 6px 20px rgba(139,92,246,0.5); } 50% { box-shadow: 0 6px 28px rgba(212,175,55,0.7); } }

/* ============ v1.120: 世界圈热门横栏 ============ */
.world-hot-bar { margin-bottom: 12px; }
.world-hot-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.world-hot-scroll {
  display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: none;
}
.world-hot-scroll::-webkit-scrollbar { display: none; }
.world-hot-card {
  flex-shrink: 0; width: 130px; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--card2); border: 1px solid var(--border); position: relative;
}
.world-hot-del {
  position: absolute; top: 4px; right: 4px; z-index: 6;
  width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.world-hot-thumb {
  width: 100%; height: 80px; overflow: hidden;
  background-color: rgba(139,92,246,0.12);
}
.world-hot-audio {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, rgba(7,193,96,0.16), rgba(124,92,191,0.16)); cursor: pointer;
}
.world-hot-audio-icon { font-size: 26px; }
.world-hot-audio-label { font-size: 11px; color: #4ade80; font-weight: 600; }
.world-hot-text {
  display: flex; align-items: center; justify-content: center; padding: 8px;
  font-size: 12px; line-height: 1.5; color: var(--text-dim); text-align: center;
  word-break: break-all; overflow: hidden;
}
.world-hot-info { padding: 7px 9px; }
.world-hot-content {
  font-size: 12px; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 34px;
}
.world-hot-meta { font-size: 11px; color: var(--text-faint); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== v0.84: 组局风云榜 + AI 组局复盘报告 ===== */
.plb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.plb-tab { flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 16px; color: var(--text-dim); background: var(--card); border: 1px solid var(--border-gold); cursor: pointer; }
.plb-tab.active { background: linear-gradient(135deg, #8b5cf6, #d4af37); color: #fff; border-color: transparent; }
.plb-body { max-height: 62vh; overflow-y: auto; }
.plb-note { font-size: 11px; color: var(--gold); background: rgba(212,175,55,0.1); border: 1px dashed rgba(212,175,55,0.4); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.plb-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-gold); margin-bottom: 8px; }
.plb-row-party { cursor: pointer; }
.plb-rank { flex: 0 0 auto; width: 26px; text-align: center; font-size: 15px; font-weight: 700; }
.plb-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border-gold); }
.plb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.plb-avatar-ph { font-size: 18px; }
.plb-row-main { flex: 1; min-width: 0; }
.plb-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plb-sub { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.plb-section-title { font-size: 12px; font-weight: 700; color: var(--gold); margin: 14px 0 8px; }

.prv-card { padding: 2px; }
.prv-title { font-size: 16px; font-weight: 700; color: var(--text); }
.prv-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-faint); margin-top: 6px; flex-wrap: wrap; }
.prv-summary { font-size: 13px; line-height: 1.65; color: var(--text); margin-top: 10px; background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px; padding: 10px 12px; }
.prv-stats { display: flex; gap: 8px; margin-top: 10px; }
.prv-stat { flex: 1; text-align: center; font-size: 11px; color: var(--text-faint); background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px; padding: 8px 4px; }
.prv-stat b { display: block; font-size: 16px; color: var(--gold); font-weight: 700; }
.prv-rep { font-size: 12px; color: var(--gold); margin-top: 10px; padding: 6px 10px; background: rgba(212,175,55,0.1); border-radius: 10px; }
.prv-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.prv-hl-cell { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--border-gold); }
.prv-hl-cell img, .prv-hl-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.prv-hl-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.prv-sug { font-size: 12px; line-height: 1.5; color: var(--text); padding: 7px 10px; margin-bottom: 6px; background: var(--card); border-left: 3px solid var(--gold); border-radius: 6px; }
.wb-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.wb-switch input { opacity: 0; width: 0; height: 0; }
.wb-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(120,120,128,0.3); border-radius: 26px; transition: .25s; }
.wb-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.wb-switch input:checked + .wb-slider { background: linear-gradient(135deg, #07c160, #06ad56); }
.wb-switch input:checked + .wb-slider::before { transform: translateX(20px); }

/* ===== v0.85: 组局接龙 ===== */
.party-meta-item.chain-hot { color: #ff6d3b; font-weight: 600; }
.chain-summary {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(212,175,55,0.10));
  border: 1px solid var(--border-gold); border-radius: 14px; padding: 12px; margin-bottom: 10px;
}
.chain-urgency { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; }
.chain-count { font-size: 12px; color: #ff6d3b; font-weight: 600; margin-top: 2px; }
.chain-rank { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chain-rank-item {
  font-size: 11px; color: var(--gold); background: rgba(212,175,55,0.12);
  border: 1px dashed rgba(212,175,55,0.45); border-radius: 12px; padding: 3px 9px; font-weight: 600;
}
.chain-list { max-height: 40vh; overflow-y: auto; margin-bottom: 10px; }
.chain-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 6px;
  background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px;
}
.chain-row.me { border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.08); }
.chain-pos {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d4fc2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.chain-row.me .chain-pos { background: linear-gradient(135deg, #ff8a4b, #ff6d3b); }
.chain-info { flex: 1; min-width: 0; }
.chain-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-msg { font-size: 12px; color: var(--text-dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-me-tag { font-size: 10px; color: #ff6d3b; font-weight: 700; }
.chain-paid-tag { font-size: 10px; color: #07c160; font-weight: 700; }
.chain-invited { flex: 0 0 auto; font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.chain-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chain-chip {
  font-size: 12px; color: #6d4fc2; background: rgba(139,92,246,0.10);
  border: 1px solid rgba(139,92,246,0.35); border-radius: 16px; padding: 5px 12px; cursor: pointer;
}
.chain-chip:active { background: rgba(139,92,246,0.22); }
.chain-input-row { display: flex; }



/* ===== v0.86: 组局套餐团购 + 到店核销 (Party Package O2O 闭环) ===== */
.pkg-tabs { display: flex; gap: 8px; margin-top: 12px; }
.pkg-tab {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-dim);
  padding: 9px 0; border-radius: 14px; background: rgba(139,92,246,0.06);
  border: 1px solid transparent; cursor: pointer;
}
.pkg-tab.active { color: #fff; background: linear-gradient(135deg,#8b5cf6,#6d4fc2); border-color: transparent; }
.pkg-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pkg-grid { display: flex; flex-direction: column; gap: 10px; }
.pkg-card {
  background: var(--card, #fff); border: 1px solid var(--border-gold, rgba(212,175,55,0.25));
  border-radius: 16px; padding: 12px 14px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.pkg-card:active { transform: scale(0.99); }
.pkg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pkg-scene { font-size: 12px; color: #ff7eb9; font-weight: 600; }
.pkg-size { font-size: 12px; color: var(--text-dim); }
.pkg-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.pkg-merchant { font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.pkg-items { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.pkg-item {
  font-size: 11px; color: var(--text-dim); background: rgba(139,92,246,0.07);
  border-radius: 10px; padding: 2px 8px;
}
.pkg-foot { display: flex; align-items: baseline; gap: 8px; }
.pkg-price { font-size: 17px; font-weight: 800; color: #ff5e8a; }
.pkg-price.big { font-size: 26px; }
.pkg-orig { font-size: 12px; color: var(--text-faint); text-decoration: line-through; margin-left: 4px; font-weight: 400; }
.pkg-off { font-size: 11px; color: #fff; background: #ff5e8a; border-radius: 8px; padding: 1px 6px; font-weight: 700; }
.pkg-note { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 12px; line-height: 1.6; }

.pkg-order-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-order {
  background: var(--card, #fff); border: 1px solid var(--border-gold, rgba(212,175,55,0.25));
  border-radius: 16px; padding: 12px 14px;
}
.pkg-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pkg-order-name { font-size: 14px; font-weight: 700; color: var(--text); }
.pkg-order-status { font-size: 12px; font-weight: 700; }
.pkg-order-meta { font-size: 12px; color: var(--text-dim); }
.pkg-code {
  display: flex; align-items: center; gap: 8px; background: rgba(139,92,246,0.08);
  border-radius: 12px; padding: 8px 12px; margin-bottom: 8px;
}
.pkg-code-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.pkg-code-num { font-size: 18px; font-weight: 800; letter-spacing: 3px; color: #6d4fc2; flex: 1; text-align: center; }
.pkg-code-copy {
  font-size: 11px; color: #6d4fc2; background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.4); border-radius: 8px; padding: 3px 10px; cursor: pointer;
}

.pkg-detail-head { text-align: left; }
.pkg-detail-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0; }
.pkg-detail-sec { font-size: 12px; color: var(--text-faint); font-weight: 700; margin: 12px 0 6px; letter-spacing: 1px; }
.pkg-detail-items { display: flex; flex-direction: column; gap: 5px; }
.pkg-detail-item { font-size: 13px; color: var(--text); padding: 7px 10px; background: rgba(139,92,246,0.06); border-radius: 10px; }
.pkg-detail-meta { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.pkg-code-hero {
  text-align: center; padding: 20px 12px; margin: 12px 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(212,175,55,0.10));
  border: 1px solid var(--border-gold, rgba(212,175,55,0.3)); border-radius: 18px;
}
.pkg-code-big { font-size: 34px; font-weight: 900; letter-spacing: 8px; color: #6d4fc2; margin: 8px 0; }
.pkg-code-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.pkg-local-note { font-size: 11px; color: #ff9800; margin-top: 4px; }
.pkg-code-info { font-size: 13px; color: var(--text); text-align: center; margin-bottom: 12px; }

/* ===== v0.87: 组局众筹 (Party Crowdfunding) ===== */
.cf-hall-hint {
  font-size: 12px; color: var(--gold); line-height: 1.6;
  background: rgba(255,196,0,0.10); border: 1px dashed rgba(255,196,0,0.45);
  border-radius: 12px; padding: 8px 12px; margin: 4px 0 6px;
}
.cf-empty { text-align: center; padding: 28px 16px; color: var(--text-dim); }
.cf-card {
  background: var(--card, #fff); border: 1px solid var(--border-gold, rgba(212,175,55,0.25));
  border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.cf-card:active { transform: scale(0.99); }
.cf-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cf-card-title { font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-card-status { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #ff9800; background: rgba(255,152,0,0.14); border-radius: 10px; padding: 2px 8px; }
.cf-card-status.done { color: #07c160; background: rgba(7,193,96,0.14); }
.cf-card-sub { font-size: 12px; color: var(--text-faint); margin-bottom: 2px; }
.cf-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.cf-summary {
  background: linear-gradient(135deg, rgba(255,196,0,0.10), rgba(255,152,0,0.06));
  border: 1px solid rgba(255,196,0,0.35); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px;
}
.cf-urgency { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; }
.cf-meta-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.cf-meta-row b { color: #ff9800; }
.cf-mine { font-size: 12px; color: #ff9800; font-weight: 600; margin-top: 6px; }
.cf-sec { font-size: 12px; color: var(--gold); font-weight: 700; margin: 12px 0 6px; letter-spacing: 1px; }
.cf-rank { margin-bottom: 10px; }
.cf-rank-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  background: var(--card, #fff); border: 1px solid var(--border-gold, rgba(212,175,55,0.25)); margin-bottom: 6px;
}
.cf-rank-medal { flex: 0 0 auto; width: 24px; text-align: center; font-size: 16px; }
.cf-rank-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-rank-title { flex: 0 0 auto; font-size: 10px; color: #ff9800; font-weight: 700; background: rgba(255,152,0,0.14); border-radius: 8px; padding: 2px 7px; }
.cf-rank-amt { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: #ff9800; }
.cf-anchor { font-style: normal; font-size: 10px; color: #6d4fc2; font-weight: 700; }
.cf-join { font-style: normal; font-size: 10px; color: #07c160; font-weight: 700; }
.cf-pledges { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-pledge-chip {
  font-size: 12px; color: var(--text-dim); background: rgba(255,196,0,0.10);
  border: 1px solid rgba(255,196,0,0.3); border-radius: 12px; padding: 3px 9px;
}
.cf-pledge-chip.me { color: #ff9800; border-color: rgba(255,152,0,0.5); background: rgba(255,152,0,0.14); font-weight: 700; }
.cf-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cf-chip {
  font-size: 12px; font-weight: 600; color: #ff9800; background: rgba(255,152,0,0.10);
  border: 1px solid rgba(255,152,0,0.35); border-radius: 12px; padding: 5px 10px; cursor: pointer;
}
.cf-chip:active { background: rgba(255,152,0,0.22); }
.cf-share-hint { font-size: 11px; color: var(--text-faint); flex: 0 0 auto; white-space: nowrap; }
.cf-mode-row { display: flex; gap: 8px; }
.cf-mode-btn {
  flex: 1; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  color: var(--text-dim); background: var(--card, #fff); border: 1px solid var(--border-gold, rgba(212,175,55,0.3));
}
.cf-mode-btn.on { color: #fff; background: linear-gradient(135deg, #ffb300, #ff9800); border-color: transparent; }
.cf-success-banner {
  font-size: 13px; font-weight: 700; color: #07c160; text-align: center; line-height: 1.6;
  background: rgba(7,193,96,0.12); border: 1px solid rgba(7,193,96,0.4); border-radius: 12px; padding: 12px;
}

/* ── v0.88: 分享收益中心 · 客户跟进看板 ── */
.shr-hero {
  background: linear-gradient(135deg, #8b5cf6, #d4af37);
  border-radius: 16px; padding: 18px 16px; text-align: center; color: #fff;
  box-shadow: 0 8px 20px rgba(139,92,246,0.28); margin-bottom: 12px;
}
.shr-hero-label { font-size: 12px; opacity: 0.92; }
.shr-hero-amount { font-size: 34px; font-weight: 900; line-height: 1.15; margin: 4px 0; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.shr-hero-sub { font-size: 12px; opacity: 0.92; }
.shr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.shr-stat {
  background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px;
  padding: 10px 4px; text-align: center;
}
.shr-stat-n { font-size: 20px; font-weight: 800; color: var(--gold); }
.shr-stat-l { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.shr-section {
  font-size: 14px; font-weight: 800; color: var(--text); margin: 14px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.shr-section-sub { font-size: 10px; font-weight: 400; color: var(--text-faint); }
.shr-cust {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border-gold); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.shr-cust-avatar { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(212,175,55,0.12); }
.shr-cust-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shr-cust-info { flex: 1; min-width: 0; }
.shr-cust-name { font-size: 14px; font-weight: 700; color: var(--text); }
.shr-cust-phone { font-size: 11px; font-weight: 400; color: var(--text-faint); }
.shr-cust-follow { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }
.shr-cust-right { text-align: right; flex-shrink: 0; }
.shr-stage { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; border: 1px solid; }
.shr-cust-days { font-size: 10px; color: var(--text-faint); margin-top: 4px; }
.shr-earn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border-gold); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.shr-earn-left { min-width: 0; }
.shr-earn-oid { font-size: 13px; font-weight: 600; color: var(--text); }
.shr-earn-time { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.shr-earn-amount { font-size: 16px; font-weight: 800; color: #07c160; flex-shrink: 0; }
.shr-empty { font-size: 12px; color: var(--text-faint); text-align: center; padding: 16px 8px; line-height: 1.6; }
.shr-tip { font-size: 11px; color: var(--text-dim); text-align: center; padding: 10px 6px; line-height: 1.6; background: rgba(212,175,55,0.08); border-radius: 10px; margin-top: 10px; }
