/* ============================================================
   暖星共语 —— 全局样式（柔和暖色调 + 毛玻璃）
   ============================================================ */
:root {
  --bg-deep: #1a1730;
  --bg-warm: #2a2348;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #fff7ee;
  --text-dim: rgba(255, 247, 238, 0.62);
  --gold: #ffd66b;
  --blue: #5aa9ff;
  --purple: #b98cff;
  --red: #ff6b6b;
  --pink: #ff9ecb;
  --cyan: #8ee7ff;
  --green: #7be0a8;
  --warm: #ffb27d;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(10, 8, 30, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 30%, #2d2652 0%, #17132b 60%, #0e0b1d 100%);
  user-select: none;
}

button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }

/* ---------- 屏幕容器 ---------- */
.screen { position: fixed; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02);} to { opacity: 1; transform: scale(1);} }

/* 3D 画布容器 */
.stage { position: absolute; inset: 0; }
.stage canvas { display: block; width: 100%; height: 100%; }

/* ---------- 顶部品牌 ---------- */
.brand {
  position: absolute; top: 22px; left: 26px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.brand .logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(20, 26, 54, 0.55);
  border: 1px solid rgba(255, 214, 120, .35);
  box-shadow: 0 0 22px rgba(90, 160, 255, .45), inset 0 0 12px rgba(120, 190, 255, .25);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.brand .logo svg { filter: drop-shadow(0 0 6px rgba(120, 190, 255, .55)); }
.brand .logo::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(255, 210, 120, .35);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .7;} 50% { transform: scale(1.25); opacity: .15;} }
.brand h1 { font-size: 22px; letter-spacing: 3px; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.brand small { display: block; font-size: 11px; letter-spacing: 4px; color: var(--text-dim); font-weight: 400; }

/* 顶部右侧状态 */
.top-right {
  position: absolute; top: 22px; right: 26px; z-index: 20;
  display: flex; gap: 10px; align-items: center;
}
.pill {
  padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text); font-size: 13px; transition: all .25s;
}
button.pill:hover { background: var(--glass-strong); transform: translateY(-1px); }
.pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 8px var(--green); }

/* 用户头像 */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  color: #3a2a10;
  font-size: 13px;
  font-weight: 600;
  margin-right: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 版权信息栏 */
.copyright-bar {
  position: fixed !important;
  bottom: 72px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
  z-index: 5;
  pointer-events: none;
  display: block !important;
}
.copyright-bar .sep {
  margin: 0 8px;
  opacity: .5;
}
@media (max-width: 768px) {
  .copyright-bar { font-size: 9px; bottom: 68px !important; }
  .copyright-bar .sep { display: none; }
  .copyright-bar span:last-child { display: none; }
}

/* 圆形图标按钮（音乐开关等） */
.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; cursor: pointer;
}
button.icon-btn:hover { background: var(--glass-strong); transform: translateY(-1px); }
.icon-btn .music-bars {
  position: absolute; right: 3px; bottom: 5px; display: none;
  align-items: flex-end; gap: 2px; height: 10px;
}
.icon-btn .music-bars i {
  width: 2.5px; background: var(--cyan); border-radius: 2px;
  height: 4px; animation: eq 0.9s ease-in-out infinite;
}
.icon-btn .music-bars i:nth-child(2) { animation-delay: .25s; }
.icon-btn .music-bars i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 10px; } }
.icon-btn.playing .music-bars { display: flex; }
.icon-btn.playing { border-color: rgba(123, 224, 168, .6); box-shadow: 0 0 14px rgba(123, 224, 168, .35); }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 30; display: flex; gap: 8px; padding: 8px;
  background: rgba(30, 24, 56, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 22px; border-radius: 999px; color: var(--text-dim);
  background: transparent; transition: all .3s; min-width: 78px;
}
.nav-item .icon { font-size: 22px; line-height: 1; transition: transform .3s; }
.nav-item span { font-size: 12px; letter-spacing: 1px; }
.nav-item:hover { color: var(--text); }
.nav-item:hover .icon { transform: translateY(-3px) scale(1.12); }
.nav-item.active {
  color: #3a2a10;
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  box-shadow: 0 6px 18px rgba(255, 184, 77, .4);
}

/* ---------- 玻璃面板 ---------- */
.panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.home-tip {
  position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%);
  z-index: 15; text-align: center; color: var(--text-dim); font-size: 13px;
  letter-spacing: 2px; pointer-events: none;
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .5;} 50% { opacity: 1;} }

/* 省份悬浮提示 */
#earthTooltip {
  position: fixed; z-index: 40; pointer-events: none; display: none;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(30, 24, 56, .85); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); font-size: 13px; line-height: 1.7;
  transform: translate(14px, 14px); white-space: nowrap;
}
#earthTooltip b { color: var(--gold); font-size: 15px; }

/* 心声卡片弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 9, 26, 0.6); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; animation: fadeIn .3s; }
.modal {
  width: 100%; max-width: 520px; max-height: 84vh; overflow-y: auto;
  padding: 30px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(58, 48, 102, .92), rgba(36, 29, 68, .94));
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(5, 3, 18, .6);
  animation: pop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: translateY(30px) scale(.95); opacity: 0;} to { transform: none; opacity: 1;} }
.modal h2 { font-size: 20px; margin-bottom: 18px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.modal .close {
  float: right; width: 34px; height: 34px; border-radius: 50%;
  background: var(--glass); color: var(--text); font-size: 16px;
}
.modal .close:hover { background: var(--red); }

.thought-card .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--text-dim); }
.emo-tag {
  padding: 3px 12px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,.12); border: 1px solid var(--glass-border);
}
.thought-content {
  font-size: 16px; line-height: 1.9; padding: 16px 18px;
  background: rgba(255,255,255,.07); border-radius: 16px; margin-bottom: 16px;
  border-left: 3px solid var(--gold);
}
.ai-reply {
  padding: 16px 18px; border-radius: 16px; line-height: 1.9; font-size: 14.5px;
  background: linear-gradient(135deg, rgba(255,180,90,.16), rgba(185,140,255,.14));
  border: 1px solid rgba(255, 200, 130, .25);
}
.ai-reply::before { content: '🤖 暖星AI '; display: block; font-size: 12px; color: var(--gold); margin-bottom: 6px; letter-spacing: 2px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 1px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 15px; transition: border .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.12); }
.field textarea { resize: none; line-height: 1.8; }
.field select option { background: #2a2348; color: #fff; }

.btn {
  padding: 13px 26px; border-radius: 999px; font-size: 15px; letter-spacing: 2px;
  background: linear-gradient(135deg, #ffe1a1, #ffb84d); color: #3a2a10; font-weight: 600;
  transition: all .25s; box-shadow: 0 8px 22px rgba(255,184,77,.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,184,77,.5); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); box-shadow: none; }
.btn.ghost:hover { background: var(--glass-strong); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 18px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.switch-row:last-child { border-bottom: none; }

/* ---------- 倾诉页 ---------- */
#screen-talk { background: radial-gradient(ellipse at 50% 0%, #3a2c60 0%, #1d1836 55%, #120e24 100%); }
.talk-wrap {
  flex: 1; overflow-y: auto; padding: 90px 20px 120px;
  display: flex; flex-direction: column; align-items: center;
}
.talk-box { width: 100%; max-width: 640px; }
.sticky-note {
  position: relative; padding: 26px; border-radius: 6px 6px 20px 20px;
  background: linear-gradient(160deg, #fff4d6, #ffe6a8);
  color: #4a3818; box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 30px rgba(255,255,255,.5);
}
.sticky-note::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 90px; height: 22px; background: rgba(255, 180, 90, .55);
  border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.sticky-note textarea {
  width: 100%; min-height: 130px; border: none; background: transparent;
  font-size: 16.5px; line-height: 2; color: #4a3818; resize: none;
}
.sticky-note textarea::placeholder { color: rgba(74,56,24,.5); }
.talk-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

.ai-result { width: 100%; max-width: 640px; margin-top: 22px; display: none; }
.ai-result.show { display: block; animation: pop .4s cubic-bezier(.2,1.3,.4,1); }

/* 音频播放器 */
.audio-player {
  margin-top: 16px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 14px;
}
.audio-player .play-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #8ee7ff, #5aa9ff); color: #10243f; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.waveform { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; overflow: hidden; }
.waveform i {
  width: 3px; border-radius: 2px; background: linear-gradient(to top, #5aa9ff, #b98cff);
  animation: wave 1s ease-in-out infinite; opacity: .85;
}
@keyframes wave { 0%,100% { height: 8px; } 50% { height: 34px; } }
.audio-player .audio-name { font-size: 13px; color: var(--text-dim); white-space: nowrap; }

/* 语音通话 */
.voice-modal .caller { text-align: center; padding: 10px 0 20px; }
.voice-avatar {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ff9ecb);
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  box-shadow: 0 0 0 0 rgba(255,158,203,.5);
  animation: callPulse 2s infinite;
}
@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,158,203,.45);}
  70% { box-shadow: 0 0 0 26px rgba(255,158,203,0);}
  100% { box-shadow: 0 0 0 0 rgba(255,158,203,0);}
}
.chat-log { max-height: 280px; overflow-y: auto; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; line-height: 1.7; font-size: 14.5px; }
.chat-bubble.ai { background: linear-gradient(135deg, rgba(255,180,90,.2), rgba(185,140,255,.16)); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.me { background: rgba(90,169,255,.25); align-self: flex-end; border-bottom-right-radius: 4px; }
.call-timer { text-align: center; color: var(--cyan); font-size: 20px; letter-spacing: 3px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.call-input { display: flex; gap: 10px; }
.call-input input { flex: 1; padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--glass-border); color: var(--text); }
.free-tip { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 12px; }

/* ---------- 真人陪聊聊天窗 ---------- */
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); margin-bottom: 6px; }
.chat-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(123,224,168,.35), rgba(90,169,255,.3));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.chat-status { font-size: 12px; color: var(--green); margin-top: 2px; }
.chat-status.waiting { color: var(--gold, #ffd66b); }
#companionChat .chat-log { height: 300px; max-height: 46vh; }
.chat-bubble.companion { background: linear-gradient(135deg, rgba(123,224,168,.22), rgba(90,169,255,.14)); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.sys { align-self: center; background: rgba(255,255,255,.07); font-size: 12px; color: var(--text-dim); padding: 6px 14px; border-radius: 999px; max-width: 90%; text-align: center; }
.chat-input { display: flex; gap: 10px; margin-top: 10px; }
.chat-input input {
  flex: 1; padding: 12px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 14px;
}
.chat-input input:focus { outline: none; border-color: rgba(123,224,168,.6); }
.chat-input .btn { flex-shrink: 0; padding: 10px 20px; }

/* ---------- 语音消息 / 计费条 / 录音按钮 ---------- */
.voice-msg {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(123,224,168,.22), rgba(90,169,255,.18));
  border: 1px solid var(--glass-border); font-size: 13px;
}
.chat-bubble.me .voice-msg { background: rgba(90,169,255,.3); }
.bill-bar {
  margin-top: 8px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px dashed var(--glass-border);
  font-size: 12px; color: var(--text-dim); line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.rec-btn { border-radius: 999px !important; width: 42px; height: 42px; padding: 0 !important; font-size: 16px; flex-shrink: 0; }
.rec-btn.recording { background: linear-gradient(135deg, rgba(255,107,107,.35), rgba(255,158,90,.3)) !important; animation: recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,107,.4); } 50% { box-shadow: 0 0 0 8px rgba(255,107,107,0); } }
.rec-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; margin-right: 6px; animation: recPulse 1s ease-in-out infinite; }
.call-btn { border-radius: 999px !important; }
.call-btn.calling { background: linear-gradient(135deg, rgba(123,224,168,.3), rgba(90,169,255,.25)) !important; border-color: var(--green) !important; color: var(--green); animation: callPulse 1.2s ease-in-out infinite; }
@keyframes callPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(123,224,168,.4); } 50% { box-shadow: 0 0 0 8px rgba(123,224,168,0); } }

/* ---------- 小世界 ---------- */
#screen-world { background: #0e0b1d; }
.world-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.world-overlay > * { pointer-events: auto; }

/* 摇杆 */
.joystick {
  position: absolute; left: 30px; bottom: 40px; width: 118px; height: 118px;
  border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); touch-action: none;
}
.joystick .stick {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
  margin: -26px 0 0 -26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,214,107,.85));
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.world-btns { position: absolute; right: 24px; bottom: 40px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.round-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); color: var(--text); font-size: 24px;
  transition: all .2s;
}
.round-btn:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.round-btn.big { width: 76px; height: 76px; font-size: 30px; background: linear-gradient(135deg, rgba(255,158,203,.85), rgba(185,140,255,.85)); }

.world-top {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: 92vw;
}
.world-chip {
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); color: var(--text); transition: all .25s;
}
.world-chip:hover { background: var(--glass-strong); }
.world-chip.active { background: linear-gradient(135deg, #ffe1a1, #ffb84d); color: #3a2a10; border-color: transparent; font-weight: 600; }
.world-chip .online { font-size: 11px; opacity: .75; margin-left: 4px; }

.interact-tip {
  position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 999px; font-size: 15px; letter-spacing: 1px;
  background: linear-gradient(135deg, rgba(255,225,161,.92), rgba(255,178,125,.92));
  color: #3a2a10; font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,.35);
  display: none; animation: pop .25s;
}
.player-label {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 2px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap;
  background: rgba(20,16,40,.65); border: 1px solid var(--glass-border);
  transform: translate(-50%, -100%);
}

/* 小世界入口选择 */
.world-entry {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(14,11,29,.78); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.world-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; width: 100%; max-width: 960px; }
.world-card {
  padding: 26px 22px; border-radius: 22px; cursor: pointer;
  border: 1px solid var(--glass-border); transition: all .3s;
  background: rgba(255,255,255,.07);
}
.world-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.13); box-shadow: var(--shadow); }
.world-card .emoji { font-size: 40px; display: block; margin-bottom: 12px; }
.world-card h3 { font-size: 18px; margin-bottom: 6px; }
.world-card .theme { font-size: 12px; color: var(--gold); margin-bottom: 10px; }
.world-card p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ---------- 游戏 ---------- */
#screen-game { background: #0c0a1a; }
.game-hud { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 14px; }
.hud-item {
  padding: 10px 20px; border-radius: 999px; font-size: 15px;
  background: rgba(30,24,56,.6); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); letter-spacing: 1px;
}
.hud-item b { color: var(--gold); font-size: 19px; margin-left: 6px; }
.crosshair {
  position: absolute; top: 50%; left: 50%; z-index: 15;
  width: 26px; height: 26px; transform: translate(-50%,-50%); pointer-events: none;
}
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,.9); box-shadow: 0 0 6px rgba(0,0,0,.6); }
.crosshair::before { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.crosshair::after { top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; }

.game-tip { position: absolute; top: 130px; left: 50%; transform: translateX(-50%); z-index: 15; color: var(--text-dim); font-size: 13px; letter-spacing: 2px; pointer-events: none; }
.punch-btn {
  position: absolute; right: 40px; bottom: 60px; z-index: 20;
  width: 100px; height: 100px; border-radius: 50%; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  background: radial-gradient(circle at 35% 30%, #ff9d9d, #ff5a5a); color: #fff;
  box-shadow: 0 10px 30px rgba(255,90,90,.5); animation: punchBreathe 1.4s infinite;
}
@keyframes punchBreathe { 0%,100% { transform: scale(1);} 50% { transform: scale(1.07);} }
.game-end {
  position: absolute; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; background: rgba(12,9,26,.7); backdrop-filter: blur(8px);
}
.game-end.show { display: flex; }
.game-end .inner { text-align: center; padding: 44px 50px; }
.game-end h2 { font-size: 30px; color: var(--gold); margin-bottom: 12px; letter-spacing: 3px; }
.game-end p { color: var(--text-dim); margin-bottom: 24px; line-height: 1.8; }

/* ---------- 档案 / 个人中心 ---------- */
#screen-archive, #screen-me { background: radial-gradient(ellipse at 50% 0%, #322856 0%, #191430 60%, #100d22 100%); }
.page-wrap { flex: 1; overflow-y: auto; padding: 88px 18px 120px; }
.page-inner { width: 100%; max-width: 760px; margin: 0 auto; }
.page-title { font-size: 22px; letter-spacing: 3px; margin: 6px 0 20px; display: flex; align-items: center; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 20px; text-align: center; }
.stat-card .num { font-size: 30px; font-weight: 700; background: linear-gradient(135deg, #ffd66b, #ff9ecb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card .label { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; letter-spacing: 1px; }

.block { padding: 22px; margin-bottom: 16px; }
.block h3 { font-size: 15.5px; margin-bottom: 14px; letter-spacing: 2px; color: var(--gold); }

.chart-canvas { width: 100%; height: 180px; }

.prescription {
  padding: 16px 18px; border-radius: 16px; line-height: 1.9; font-size: 14.5px;
  background: linear-gradient(135deg, rgba(123,224,168,.14), rgba(142,231,255,.12));
  border: 1px solid rgba(123,224,168,.3);
}

/* 心声墙列表 */
.thought-list { display: flex; flex-direction: column; gap: 12px; }
.thought-item { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.thought-item .ti-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.thought-item .ti-content { font-size: 14.5px; line-height: 1.8; margin-bottom: 8px; }
.thought-item .ti-ai { font-size: 13px; color: var(--gold); line-height: 1.7; }
.thought-item .ti-ops { margin-top: 8px; display: flex; gap: 8px; }

/* 捏脸 */
.avatar-studio { display: flex; gap: 22px; flex-wrap: wrap; }
.avatar-preview {
  width: 190px; height: 240px; border-radius: 20px; flex-shrink: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.avatar-controls { flex: 1; min-width: 240px; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.color-dot { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.color-dot.sel { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 12px rgba(255,255,255,.5); }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.opt-chip { padding: 7px 15px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); color: var(--text); }
.opt-chip.sel { background: linear-gradient(135deg, #ffe1a1, #ffb84d); color: #3a2a10; border-color: transparent; font-weight: 600; }

.member-card {
  padding: 26px; border-radius: 22px; text-align: center;
  background: linear-gradient(150deg, rgba(255,214,107,.2), rgba(255,158,203,.16));
  border: 1px solid rgba(255,214,107,.4);
}
.member-card .crown { font-size: 44px; }
.member-card .price { font-size: 40px; font-weight: 700; color: var(--gold); margin: 8px 0; }
.member-card .price small { font-size: 15px; color: var(--text-dim); font-weight: 400; }
.member-card ul { list-style: none; margin: 16px 0 20px; text-align: left; display: inline-block; }
.member-card li { padding: 5px 0; color: var(--text-dim); font-size: 14px; }
.member-card li::before { content: '✦ '; color: var(--gold); }

/* 会员等级切换（VIP / SVIP） */
.tier-tab {
  flex: 1; padding: 10px 8px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); color: var(--text);
  transition: all .2s; cursor: pointer;
}
.tier-tab.sel {
  background: linear-gradient(135deg, rgba(255,214,107,.3), rgba(255,158,203,.26));
  border-color: var(--gold); color: var(--gold); box-shadow: 0 0 16px rgba(255,214,107,.35);
}

/* 会员卡种（月 / 季 / 年） */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.plan-item {
  padding: 12px 8px; border-radius: 16px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); transition: all .2s;
}
.plan-item:hover { background: rgba(255,255,255,.12); }
.plan-item.sel { border-color: var(--gold); background: linear-gradient(135deg, rgba(255,214,107,.2), rgba(255,158,203,.15)); box-shadow: 0 0 14px rgba(255,214,107,.28); }
.plan-item .plan-name { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.plan-item .plan-price { font-size: 14px; color: var(--text); }
.plan-item .plan-price b { font-size: 20px; color: var(--gold); }
.plan-item .plan-price small { font-size: 11px; color: var(--text-dim); }

/* 省份心声墙 */
.wall-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wall-header h2 { font-size: 19px; letter-spacing: 2px; }

/* 游戏入口卡片 */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 8px; }
.game-card { padding: 22px 16px; border-radius: 18px; text-align: center; cursor: pointer; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); transition: all .3s; }
.game-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.game-card.off { opacity: .45; cursor: not-allowed; }
.game-card .g-emoji { font-size: 36px; display: block; margin-bottom: 10px; }
.game-card h4 { font-size: 15px; margin-bottom: 6px; }
.game-card p { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.game-card .soon { display: inline-block; margin-top: 8px; font-size: 11px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text-dim); }

.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  z-index: 200; padding: 12px 26px; border-radius: 999px; font-size: 14px; letter-spacing: 1px;
  background: rgba(40,32,72,.92); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
  opacity: 0; transition: all .35s; pointer-events: none; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255,107,107,.6); }
.toast.ok { border-color: rgba(123,224,168,.6); }

/* ---------- 支付弹窗 ---------- */
.pay-amount { text-align: center; color: var(--gold); font-size: 18px; margin: 6px 0 18px; }
.pay-amount span { font-size: 44px; font-weight: 800; }
.pay-amount small { font-size: 13px; color: var(--text-dim); }
.pay-channels, .pay-methods { display: flex; gap: 10px; margin-top: 8px; }
.pay-ch, .pay-m {
  flex: 1; padding: 12px 6px; border-radius: 14px; font-size: 14px;
  background: rgba(255,255,255,.07); border: 1px solid var(--glass-border);
  color: var(--text); transition: all .2s;
}
.pay-ch:active, .pay-m:active { transform: scale(.95); }
.pay-ch.active, .pay-m.active {
  background: linear-gradient(135deg, rgba(255,214,107,.22), rgba(255,158,203,.18));
  border-color: var(--gold); box-shadow: 0 0 14px rgba(255,214,107,.3);
  font-weight: 600;
}
.pay-status { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 14px; line-height: 1.8; min-height: 22px; }
.pay-status a { color: var(--cyan); text-decoration: underline; }

/* 统一按钮按压反馈（移动端顺手） */
.nav-item:active, .icon-btn:active, .pill:active, .round-btn:active,
.world-chip:active, .opt-chip:active, .color-dot:active, .pay-ch:active, .pay-m:active {
  transform: scale(.93);
}

/* ============================================================
   页面顶部栏（返回按钮+标题）
   ============================================================ */
.screen-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   文本按钮（行内链接式按钮）
   ============================================================ */
.btn-text {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
}

/* ============================================================
   响应式适配
   ============================================================ */

/* 平板 */
/* === 全局动画 === */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === 响应式 === */
@media (max-width: 900px) {
  .world-cards { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 */
@media (max-width: 640px) {
  /* 兜底：任何子元素轻微溢出都不产生横向滚动 */
  body { overflow-x: hidden; }
  /* 顶部品牌与按钮 */
  .brand { top: 12px; left: 12px; gap: 8px; }
  .brand .logo { width: 38px; height: 38px; }
  .brand h1 { font-size: 16px; letter-spacing: 1px; }
  .brand small { font-size: 9px; letter-spacing: 2px; }
  .top-right { top: 12px; right: 10px; gap: 7px; }
  .pill { padding: 7px 12px; font-size: 12px; }
  .icon-btn { width: 36px; height: 36px; font-size: 15px; }

  /* 底部导航：贴边铺满 */
  .bottom-nav { bottom: 10px; left: 10px; right: 10px; transform: none; width: auto; justify-content: space-around; gap: 2px; padding: 6px 4px; border-radius: 22px; }
  .nav-item { flex: 1; min-width: 0; padding: 7px 2px; flex-direction: column; gap: 3px; }
  .nav-item .icon { font-size: 19px; }
  .nav-item span { font-size: 10px; letter-spacing: 0; }

  /* 首页提示 */
  .home-tip { font-size: 12.5px; padding: 0 26px; }

  /* 内容页 */
  .page-wrap { padding: 76px 12px 104px; }
  .page-title { font-size: 18px; letter-spacing: 1px; }
  .panel { padding: 18px 16px; border-radius: 18px; }
  .block { padding: 18px 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 8px; }
  .stat-card .num { font-size: 24px; }
  .world-cards { grid-template-columns: 1fr; gap: 12px; }
  .world-entry { padding: 14px; }

  /* 弹窗：全屏化 */
  .modal-mask { padding: 0; }
  .modal { width: 100%; max-width: 100% !important; min-height: 100vh; border-radius: 0; padding: 26px 20px 30px; overflow-y: auto; }
  .modal h2 { font-size: 18px; }
  .chat-log { max-height: 42vh; }
  .chat-input .btn { padding: 10px 14px; }

  /* 小世界触控 */
  .joystick { left: 18px; bottom: 92px; width: 104px; height: 104px; }
  .joystick .stick { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .world-btns { right: 16px; bottom: 96px; gap: 10px; }
  .round-btn { width: 54px; height: 54px; font-size: 21px; }
  .round-btn.big { width: 66px; height: 66px; font-size: 26px; }
  .world-top { top: 64px; }
  .world-chip { padding: 8px 13px; font-size: 12.5px; }

  /* 游戏 HUD */
  .game-hud { top: 64px; gap: 10px; }
  .hud-item { padding: 7px 12px; font-size: 12px; }
  .hud-item b { font-size: 16px; }
  .game-tip { top: 108px; font-size: 12px; padding: 0 20px; text-align: center; }
  .punch-btn { padding: 14px 34px; font-size: 18px; }
  .game-end .inner { padding: 30px 24px; }
  .game-end h2 { font-size: 24px; }

  /* 会员卡片 */
  .member-card .price { font-size: 34px; }

  /* 捏脸 */
  .avatar-studio { flex-direction: column; }
  .avatar-preview { width: 100%; height: 260px; }

  /* 提示气泡 */
  #earthTooltip { max-width: 56vw; font-size: 12px; }
  .toast { font-size: 13px; padding: 11px 20px; }
}

/* 超小屏 */
@media (max-width: 360px) {
  .brand h1 { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pay-channels, .pay-methods { flex-wrap: wrap; }
  .pay-ch, .pay-m { flex: 1 1 30%; }
}

/* ============================================================
   视觉润色（去模板感）：星空氛围层 + 细腻边框与内发光
   ============================================================ */
html, body { position: relative; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,214,120,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(142,231,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 80%, rgba(185,140,255,.3) 50%, transparent 51%),
    radial-gradient(2px 2px at 12% 78%, rgba(255,214,120,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 45%, rgba(255,255,255,.2) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 88%, rgba(123,224,168,.25) 50%, transparent 51%);
  background-size: 240px 240px, 200px 200px, 260px 260px, 220px 220px, 200px 200px, 260px 260px, 240px 240px, 220px 220px;
  animation: twinkle 7s ease-in-out infinite alternate;
  opacity: .7;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }

/* 玻璃面板内发光 + 渐变描边 */
.panel, .modal {
  position: relative;
  background:
    linear-gradient(165deg, rgba(70,58,120,.55), rgba(40,32,74,.7)) padding-box,
    linear-gradient(160deg, rgba(255,214,120,.35), rgba(142,231,255,.18), rgba(185,140,255,.3)) border-box;
  border: 1px solid transparent;
}
.panel::after, .modal::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -30px 60px rgba(20,14,48,.35);
}
/* 主按钮光泽 */
.btn {
  background: linear-gradient(135deg, #ffe9b8, #ffd98a 40%, #ffb84d);
  box-shadow: 0 8px 22px rgba(255,184,77,.4), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn.ghost { background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }

/* 输入框柔光聚焦 */
.field input:focus, .field textarea:focus, .field select:focus,
.chat-input input:focus, .call-input input:focus {
  border-color: rgba(255,214,120,.65);
  box-shadow: 0 0 0 3px rgba(255,214,120,.12);
}

/* 底部导航柔化（弱化胶囊模板感） */
.bottom-nav {
  background: rgba(24, 19, 46, 0.72);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(5,3,18,.55), inset 0 1px 0 rgba(255,255,255,.12);
}

/* ============ 第三批新组件：返回按钮 / 时光胶囊 / 媒体预览 / 升级卡 ============ */
.back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 30;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(24,19,46,.72);
  color: #fff7ee;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .2s;
}
.back-btn:hover { background: rgba(90,70,180,.7); border-color: rgba(255,214,107,.5); }

.capsule-entry {
  position: absolute;
  right: 16px;
  bottom: 96px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,214,107,.35);
  background: linear-gradient(145deg, rgba(90,70,180,.82), rgba(58,42,110,.82));
  color: #fff7ee;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(5,3,18,.5);
  transition: transform .2s;
}
.capsule-entry:hover { transform: translateY(-3px); border-color: rgba(255,214,107,.7); }
.capsule-entry .ce-sub { font-size: 10px; font-weight: 400; opacity: .75; }

.talk-media-preview {
  margin: 10px 2px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
}

.switch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }

.up-card {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,214,107,.35);
  background: rgba(255,214,107,.08);
  color: #fff7ee;
  cursor: pointer;
  transition: all .2s;
}
.up-card:hover { background: rgba(255,214,107,.2); transform: translateY(-2px); }
.up-card b { font-size: 13px; color: var(--gold); }
.up-card small { font-size: 11px; opacity: .8; }
#upgradeBox { display: flex; gap: 8px; flex-wrap: wrap; }

/* 时光胶囊列表 */
#capsuleMineList .thought-item, #capsuleInboxList .thought-item { margin-bottom: 10px; }
#capsuleMineList audio, #capsuleInboxList audio { width: 100%; }

/* ============================================================
   全面美化升级 v2 —— 更精致的毛玻璃 + 更流畅的交互
   ============================================================ */

/* 全局优化 */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 毛玻璃面板升级 */
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.15);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.panel:hover {
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2);
}

/* 按钮升级 */
.btn {
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  font-weight: 600;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .5s;
}
.btn:hover::before { left: 100%; }
.btn.ghost {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.btn.ghost:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.35);
}

/* 输入框升级 */
.field input, .field textarea, .field select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  transition: all .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,214,107,.15);
}

/* 弹窗升级 */
.modal {
  background: linear-gradient(160deg, rgba(58,48,102,.95), rgba(30,24,56,.97));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.15);
}
.modal h2 {
  background: linear-gradient(135deg, #fff, #ffd66b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 会员卡美化 */
.member-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,214,107,.15), rgba(185,140,255,.12));
  border: 1px solid rgba(255,214,107,.3);
  box-shadow: 0 8px 32px rgba(255,184,77,.15), inset 0 1px 0 rgba(255,255,255,.15);
}
.member-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,214,107,.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.member-card .crown {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(255,184,77,.5));
}

/* 套餐卡片美化 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.plan-item {
  padding: 14px 8px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  transition: all .25s;
}
.plan-item:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}
.plan-item.sel {
  background: linear-gradient(135deg, rgba(255,214,107,.25), rgba(255,184,77,.15));
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(255,184,77,.3);
}
.plan-name { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.plan-price { font-size: 18px; font-weight: 700; color: var(--gold); }
.plan-price small { font-size: 11px; color: var(--text-dim); font-weight: 400; }

/* 等级切换标签 */
.tier-tab {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all .25s;
}
.tier-tab.sel {
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  color: #3a2a10;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,184,77,.4);
}

/* 积分卡美化 */
.member-card:first-of-type {
  background: linear-gradient(135deg, rgba(123,224,168,.15), rgba(142,231,255,.1));
  border-color: rgba(123,224,168,.3);
}
.member-card:first-of-type::before {
  background: radial-gradient(circle, rgba(123,224,168,.2), transparent 70%);
}

/* 登录注册弹窗美化 */
#modalAuth .modal {
  background: linear-gradient(160deg, rgba(58,48,102,.97), rgba(30,24,56,.98));
}
#modalAuth .opt-chip {
  padding: 10px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all .25s;
}
#modalAuth .opt-chip.sel {
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  color: #3a2a10;
  border-color: transparent;
  font-weight: 600;
}
.free-tip {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  text-align: center;
}

/* 陪聊界面美化 */
.voice-modal .caller {
  padding: 20px 0;
  text-align: center;
}
.voice-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #8ee7ff, #5aa9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(90,169,255,.4);
  animation: avatarPulse 2s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,100% { box-shadow: 0 8px 24px rgba(90,169,255,.4); }
  50% { box-shadow: 0 8px 32px rgba(90,169,255,.7), 0 0 0 8px rgba(90,169,255,.1); }
}
.call-timer {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 10px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.chat-log {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  margin-bottom: 16px;
}
.chat-msg {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.7;
  font-size: 14px;
  animation: msgIn .3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.ai {
  background: linear-gradient(135deg, rgba(142,231,255,.15), rgba(90,169,255,.1));
  border: 1px solid rgba(142,231,255,.25);
  margin-right: auto;
}
.chat-msg.user {
  background: linear-gradient(135deg, rgba(255,214,107,.2), rgba(255,184,77,.1));
  border: 1px solid rgba(255,214,107,.3);
  margin-left: auto;
}
.call-input {
  display: flex;
  gap: 10px;
}
.call-input input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  font-size: 14px;
}
.call-input input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,214,107,.15);
}

/* 情绪档案美化 */
#screen-archive .page-wrap {
  padding-top: 80px;
}
.archive-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.archive-stat {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.15);
  text-align: center;
}
.archive-stat .num {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd66b, #ff9ecb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.archive-stat .label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 心声列表美化 */
.thought-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thought-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: all .25s;
}
.thought-item:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  transform: translateX(4px);
}
.thought-item .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.thought-item .content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 底部导航美化 */
.bottom-nav {
  background: rgba(20,16,40,.7);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  padding: 6px;
}
.nav-item {
  padding: 8px 18px;
  border-radius: 999px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.nav-item.active {
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  box-shadow: 0 4px 16px rgba(255,184,77,.5);
}

/* 页面标题美化 */
.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #ffd66b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 响应式适配 —— 手机端 */
@media (max-width: 768px) {
  .brand { top: 14px; left: 16px; }
  .brand h1 { font-size: 16px; letter-spacing: 2px; }
  .brand .logo { width: 36px; height: 36px; }
  .top-right { top: 14px; right: 16px; }
  .bottom-nav {
    bottom: 16px;
    padding: 4px;
    gap: 4px;
  }
  .nav-item {
    padding: 6px 12px;
    min-width: 56px;
  }
  .nav-item .icon { font-size: 18px; }
  .nav-item span { font-size: 10px; }
  .modal {
    padding: 20px;
    max-height: 90vh;
    margin: 10px;
  }
  .modal h2 { font-size: 18px; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .plan-item { padding: 10px 4px; }
  .page-wrap { padding: 70px 14px 100px !important; }
  .talk-wrap { padding: 70px 14px 100px; }
  .archive-stats { grid-template-columns: repeat(2, 1fr); }
  .member-card { padding: 16px; }
  .call-timer { font-size: 24px; }
  .voice-avatar { width: 64px; height: 64px; font-size: 28px; }
}

/* 响应式适配 —— PC端大屏优化 */
@media (min-width: 1200px) {
  .page-inner { max-width: 900px; }
  .talk-box { max-width: 720px; }
  .modal { max-width: 520px; }
  .bottom-nav { gap: 12px; }
  .nav-item { padding: 12px 28px; min-width: 90px; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }

/* 选项芯片美化 */
.opt-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.opt-chip:hover { background: rgba(255,255,255,.12); color: var(--text); }
.opt-chip.sel {
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  color: #3a2a10;
  border-color: transparent;
  font-weight: 600;
}

/* 开关美化 */
.switch-row input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: all .25s;
}
.switch-row input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: all .25s;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.switch-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
}
.switch-row input[type="checkbox"]:checked::before {
  left: 22px;
}

/* SVG 图标（阿里巴巴矢量图标库风格） */
.svg-icon {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
.nav-item .icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 26px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
.nav-item .icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}
.me-func-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.me-func-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}
.menu-item svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
}

/* 加载动画 */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .5s ease both; }

/* ============================================================
   个人中心新布局（参考社交APP风格）
   ============================================================ */
.me-page {
  padding: 0 16px 100px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  overflow-y: auto;
}
.me-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px 16px;
}
.me-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.me-header-actions {
  display: flex;
  gap: 8px;
}
.me-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.me-icon-btn:hover {
  background: var(--glass-strong);
  transform: scale(1.05);
}

/* 用户信息卡片 */
.me-user-card {
  background: linear-gradient(135deg, rgba(125,224,168,.18), rgba(142,231,255,.12));
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}
.me-user-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,214,107,.15), transparent 70%);
  border-radius: 50%;
}
.me-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.me-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe1a1, #ffb84d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(255,255,255,.35);
  overflow: hidden;
  flex-shrink: 0;
}
.me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.me-user-text {
  flex: 1;
}
.me-hi {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.me-hi span {
  color: var(--gold);
}
.me-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.me-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,214,107,.25), rgba(255,184,77,.15));
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(255,214,107,.3);
}
.me-character {
  font-size: 64px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}

/* 积分卡 */
.me-credit-card {
  background: linear-gradient(135deg, rgba(125,224,168,.14), rgba(142,231,255,.08));
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.1);
}
.me-credit-left {
  flex: 1;
}
.me-credit-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.me-credit-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.me-credit-num span {
  font-size: 32px;
}
.me-credit-tip {
  font-size: 11px;
  color: var(--text-dim);
  opacity: .8;
}
.me-credit-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.me-credit-right .btn-text {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
  padding: 0;
}

/* 功能入口网格 */
.me-func-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: var(--glass);
  border-radius: 16px;
  padding: 16px 8px;
  border: 1px solid var(--glass-border);
}
.me-func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s;
  padding: 4px;
}
.me-func-item:hover {
  transform: translateY(-2px);
}
.me-func-item:active {
  transform: scale(0.95);
}
.me-func-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,214,107,.2), rgba(255,184,77,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255,214,107,.2);
}
.me-func-label {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* 数据统计 */
.me-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: var(--glass);
  border-radius: 16px;
  padding: 16px 8px;
  border: 1px solid var(--glass-border);
}
.me-stat-item {
  text-align: center;
}
.me-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.me-stat-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* 会员卡 */
.me-member-card {
  margin-bottom: 16px;
}

/* 分区 */
.me-section {
  background: var(--glass);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.me-section-title {
  display: none;
}

/* 用户信息卡：头像编辑 / 昵称可点 / 背景更换 */
.me-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.me-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b4dff, #9a7bff);
  border: 2px solid rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s;
  z-index: 2;
}
.me-avatar-edit:hover { transform: scale(1.15); }
.me-hi {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.me-hi:hover span { text-decoration: underline; text-underline-offset: 3px; }
.me-hi::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7'/%3E%3Cpath d='M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .7;
}
.me-card-bg-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  transition: transform .2s;
}
.me-card-bg-btn:hover { transform: rotate(30deg) scale(1.1); }

/* 手机端适配 */
@media (max-width: 480px) {
  .me-page {
    padding: 0 12px 100px;
  }
  .me-character {
    font-size: 48px;
  }
  .me-func-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .me-func-label {
    font-size: 10px;
  }
  .me-stat-num {
    font-size: 18px;
  }
}

/* ============================================================
   全界面 PC/手机 增强适配（第六批）：聊天/支付/表单按钮在窄屏自动换行
   ============================================================ */
@media (max-width: 640px) {
  /* 陪聊输入区：手机端输入框独占一行，按钮整行排列 */
  .chat-input { flex-wrap: wrap; }
  .chat-input input { flex: 1 1 100%; }
  .call-input { flex-wrap: wrap; }
  .call-input input { flex: 1 1 100%; }
  /* 一键倾诉操作区：按钮两两换行 */
  .talk-actions { flex-wrap: wrap; gap: 8px; }
  .talk-actions .btn { flex: 1 1 44%; margin: 0 !important; }
  /* 支付弹窗按钮换行 */
  .pay-actions { flex-wrap: wrap; }
  .pay-actions .btn { flex: 1 1 100%; }
  /* 积分卡：窄屏上下排列 */
  .me-credit-card { flex-wrap: wrap; gap: 8px; }
  .me-credit-right { display: flex; gap: 8px; width: 100%; justify-content: flex-end; }
  /* 功能图标网格：窄屏五列贴边 */
  .me-func-grid { gap: 2px; }
  /* 会员卡计划：窄屏保持三列但压缩内边距 */
  .plan-item { padding: 8px 2px; }
  .plan-price { font-size: 13px; }
  /* 隐私弹窗文字缩进适配 */
  #modalPrivacy .modal { max-height: 88vh; }
}

/* PC 大屏：核心内容区限宽居中，避免拉满全屏 */
@media (min-width: 1400px) {
  .page-inner { max-width: 960px; }
  .talk-wrap { max-width: 900px; margin: 0 auto; }
  .talk-box { max-width: 780px; }
  .modal { max-width: 560px; }
  .me-page { max-width: 640px; }
}

/* ============================================================
   支付二维码（弹窗内扫码支付，不跳转）
   ============================================================ */
.pay-qr-box { text-align: center; padding: 16px 0 6px; }
.pay-qr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 216px; height: 216px; padding: 8px; border-radius: 14px;
  background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.pay-qr img, .pay-qr canvas { display: block; width: 200px; height: 200px; }
.pay-qr-tip { margin-top: 10px; font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.pay-qr-tip b { color: var(--gold); }
.pay-qr-link { margin-top: 8px; font-size: 12px; }

/* 第八批：资源仓库 / 心情视频 */
.res-item { position:relative; }
.res-del { position:absolute; top:-7px; right:-7px; width:24px; height:24px; border-radius:50%; border:none; background:#e5484d; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.35); z-index:2; }
.res-audio { width:170px; min-height:150px; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px; border-radius:14px; border:1px solid var(--glass-border); background:rgba(255,255,255,.06); text-align:center; font-size:13px; color:var(--text-dim); }
.res-audio small { opacity:.6; }
.res-item video::-webkit-media-controls-panel { background:rgba(10,8,30,.8); }
#modalVideoGen .pay-m { flex:0 0 auto; padding:8px 14px; border-radius:10px; border:1px solid var(--glass-border); background:rgba(255,255,255,.06); color:inherit; cursor:pointer; font-size:13px; }
#modalVideoGen .pay-m.active { border-color:var(--gold,#ffd66b); color:var(--gold,#ffd66b); box-shadow:0 0 0 1px rgba(255,214,107,.4); }
#modalVideoGen textarea:focus { outline:none; border-color:var(--gold,#ffd66b); }/* AI 漫剧工坊 v2 分步工作台 */
.comic-tabs{display:flex;gap:4px;background:rgba(255,255,255,.05);border:1px solid var(--glass-border);border-radius:12px;padding:4px;margin-bottom:14px;flex-wrap:wrap}
.comic-tabs span{flex:1;min-width:56px;text-align:center;padding:8px 4px;border-radius:9px;font-size:13px;color:var(--text-dim);cursor:pointer;transition:.2s;white-space:nowrap}
.comic-tabs span.active{background:linear-gradient(135deg,rgba(255,214,107,.22),rgba(255,214,107,.08));color:#ffd66b;font-weight:600}
.comic-step{animation:fadeUp .25s ease}
.btn-sm{background:rgba(255,255,255,.08);border:1px solid var(--glass-border);border-radius:8px;padding:5px 10px;font-size:12px;color:inherit;cursor:pointer;white-space:nowrap}
.btn-sm:disabled{opacity:.5;cursor:not-allowed}