/* 善葫 H5 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #1E1A14;
  --bg-card: rgba(255,255,255,0.06);
  --border-card: rgba(255,255,255,0.08);
  --text-light: #E8DCC8;
  --text-muted: rgba(255,255,255,0.4);
  --gold: #F0C040;
  --gold-dark: #A0800E;
  --green: #7CCE7C;
  --green-dark: #5A7C4A;
  --red: #E88070;
  --blue: #60A5FA;
  --purple: #C084FC;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html, body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* 路由页面 */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
.page-tab { display: none; padding-bottom: 60px; }
.page-tab.active { display: block; }

/* 通用类 */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-epic { color: var(--purple); }
.text-rare { color: var(--blue); }

.bg-card { background: var(--bg-card); }

.container { padding: 12px; min-height: 100vh; }

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.card-gold {
  background: rgba(200,150,30,0.1);
  border-color: rgba(200,150,30,0.25);
}
.card-rare {
  background: rgba(96,165,250,0.08);
  border-color: rgba(96,165,250,0.2);
}

/* 按钮 */
.btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  display: inline-block;
}
.btn:active { transform: scale(0.95); }
.btn-primary {
  background: linear-gradient(135deg, #5A7C4A, #4A7C59);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(74,124,89,0.3);
}
.btn-gold {
  background: linear-gradient(135deg, #A0800E, #C9940E);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(180,130,20,0.3);
}
.btn-block { width: 100%; display: block; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 12px; }

/* 标签 */
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.badge-green { background: rgba(74,204,74,0.15); color: var(--green); }
.badge-gold { background: rgba(240,192,64,0.15); color: var(--gold); }
.badge-red { background: rgba(220,80,60,0.15); color: var(--red); }

.rarity-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.rarity-tag-bronze { background: rgba(180,130,80,0.2); color: #D4A860; }
.rarity-tag-silver { background: rgba(192,192,210,0.2); color: #C0C0D2; }
.rarity-tag-gold { background: rgba(240,192,64,0.2); color: var(--gold); }
.rarity-tag-jade { background: rgba(120,220,160,0.2); color: #78DCA0; }

/* 进度条 */
.progress-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5A7C4A, #C9940E); transition: width 0.6s ease; }

.xp-bar { display: flex; align-items: center; gap: 6px; }
.xp-level {
  font-size: 11px; font-weight: 700; color: var(--gold);
  min-width: 28px; text-align: center;
  background: rgba(240,192,64,0.15);
  padding: 2px 5px; border-radius: 6px;
}
.xp-bar-track { flex: 1; height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.xp-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #A0800E, #F0C040); transition: width 0.8s ease; }
.xp-bar-text { font-size: 9px; color: var(--text-muted); min-width: 32px; text-align: right; }

/* 标题 */
.section-title {
  font-size: 16px; font-weight: 500; color: var(--text-light);
  margin-bottom: 10px; display: flex; align-items: center; gap: 4px;
}
.section-title::before {
  content: ''; width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark)); border-radius: 2px;
}

.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 12px 0; }

/* 弹性布局 */
.flex-row { display: flex; flex-direction: row; align-items: center; }
.flex-between { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-1 { flex: 1; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* 资源栏 */
.resource-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  background: rgba(30,26,20,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 50;
}
.resource-item { display: flex; align-items: center; gap: 3px; }
.resource-right { margin-left: auto; }
.resource-icon { font-size: 12px; }
.resource-value { font-size: 12px; font-weight: 600; }
.resource-value-gold { color: var(--gold); }
.resource-value-green { color: var(--green); }
.resource-value-blue { color: var(--blue); }

/* 空提示 */
.empty-text {
  text-align: center; color: rgba(255,255,255,0.3);
  padding: 30px 20px; font-size: 13px;
}

/* ====== 登录页 ====== */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 30px; background: var(--bg-dark);
}
.login-header { text-align: center; margin-bottom: 40px; }
.login-logo { font-size: 60px; margin-bottom: 8px; }
.login-title { font-size: 24px; font-weight: 600; color: var(--text-light); display: block; }
.login-subtitle { font-size: 12px; color: var(--text-muted); display: block; margin-top: 4px; }
.form-item { margin-bottom: 16px; }
.form-label { font-size: 13px; color: rgba(255,255,255,0.6); display: block; margin-bottom: 6px; }
.form-input {
  width: 100%;
  border: 1px solid rgba(240,192,64,0.15);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
  background: rgba(255,255,255,0.06); color: #E8E0D0;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: rgba(240,192,64,0.4); }
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.login-footer { text-align: center; margin-top: 16px; }
.login-footer a { color: var(--text-muted); cursor: pointer; text-decoration: none; }

/* ====== TabBar ====== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: rgba(20,16,10,0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 100; backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 6px 0;
  color: rgba(255,255,255,0.4); cursor: pointer;
  font-size: 10px; transition: color 0.2s;
}
.tabbar-item.active { color: var(--gold); }
.tabbar-icon { font-size: 20px; }

/* ====== 首页 ====== */
.home-scene { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-dark); }
.room { flex: 1; position: relative; overflow: hidden; min-height: 50vh; }
.bg-room {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #141210 0%, #1E1A14 25%, #28221A 60%, #1E1A14 100%);
}
.gourd-container {
  position: absolute; bottom: 40%; left: 50%; transform: translateX(-50%); z-index: 10; cursor: pointer;
}
.gourd-body { width: 120px; height: 160px; position: relative; animation: gourdFloat 4s ease-in-out infinite; }
@keyframes gourdFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.gourd-svg { width: 120px; height: 160px; position: relative; filter: drop-shadow(0 6px 20px rgba(240,192,64,0.25)); }
.gourd-stem { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 6px; height: 12px; background: #4A6A3A; border-radius: 3px; }
.gourd-leaf { position: absolute; top: 4px; width: 20px; height: 14px; background: #6B9858; border-radius: 0 50% 50% 0; }
.gourd-leaf-l { left: 50%; transform: translateX(-100%) rotate(-30deg); border-radius: 50% 0 0 50%; }
.gourd-leaf-r { right: 50%; transform: rotate(30deg); }
.gourd-upper {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 50px; background: linear-gradient(135deg, #E0C060, #C8A840); border-radius: 50%;
}
.gourd-waist {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 16px; background: #B89840; border-radius: 50%;
}
.gourd-lower {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 76px; background: linear-gradient(135deg, #E0C060, #C8A840); border-radius: 50%;
}
.gourd-face { position: absolute; top: 60%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 2; }
.gourd-eyes { display: flex; gap: 14px; justify-content: center; margin-bottom: 4px; }
.gourd-eye {
  width: 8px; height: 8px; background: #4A3A20; border-radius: 50%; position: relative; transition: all 0.3s;
}
.gourd-eye.eye-happy { height: 3px; border-radius: 3px 3px 0 0; margin-top: 2px; }
.gourd-mouth { font-size: 12px; line-height: 1; color: #4A3A20; }
.gourd-blush { display: flex; gap: 28px; justify-content: center; margin-top: 2px; }
.blush-dot { width: 10px; height: 6px; background: rgba(200,100,80,0.2); border-radius: 50%; transition: background 0.3s; }
.blush-dot.blush-show { background: rgba(200,100,80,0.4); }
.gourd-level-badge { position: absolute; top: -8px; right: -12px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.gourd-level-icon {
  background: linear-gradient(135deg, #C9940E, #F0C040); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 7px;
  box-shadow: 0 2px 8px rgba(240,192,64,0.4);
}
.gourd-level-name { font-size: 8px; color: var(--gold); background: rgba(240,192,64,0.15); padding: 1px 5px; border-radius: 4px; }
.gourd-glow {
  position: absolute; top: 50%; left: 50%; width: 140px; height: 140px;
  transform: translate(-50%,-50%); border-radius: 50%;
  border: 2px solid rgba(240,192,64,0.15); animation: glowPulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes glowPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.3; } 50% { transform: translate(-50%,-50%) scale(1.12); opacity: 0.1; } }

.speech-bubble {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
  background: rgba(255,252,240,0.92); border-radius: 14px; padding: 12px 16px;
  font-size: 13px; line-height: 1.7; color: #3A3020; max-width: 280px;
  text-align: center; z-index: 15; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(240,192,64,0.2); white-space: pre-line;
}
.speech-bubble::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid rgba(255,252,240,0.92);
}

.particles { position: absolute; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }
.particle { position: absolute; animation: particleUp 2.5s ease-out forwards; opacity: 0; }
@keyframes particleUp { 0% { opacity:1; transform: translateY(0) scale(1); } 40% { opacity:0.9; transform: translateY(-60px) scale(1.3); } 100% { opacity:0; transform: translateY(-140px) scale(0.5) rotate(20deg); } }
.float-text { position: absolute; font-size: 14px; font-weight: 700; animation: floatUp 1.5s ease-out forwards; text-shadow: 0 1px 4px rgba(0,0,0,0.5); pointer-events: none; }
@keyframes floatUp { 0% { opacity:1; transform: translateY(0) scale(1); } 60% { opacity:1; transform: translateY(-30px) scale(1.2); } 100% { opacity:0; transform: translateY(-60px) scale(0.8); } }

.bottom-area { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; }
.intimacy-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; background: rgba(20,16,10,0.7); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(240,192,64,0.08);
}
.intimacy-label { font-size: 10px; color: var(--text-muted); }
.intimacy-center { flex: 1; text-align: center; }
.intimacy-emotion { font-size: 11px; color: var(--gold); background: rgba(240,192,64,0.1); padding: 2px 8px; border-radius: 8px; }
.intimacy-fortune { font-size: 10px; color: rgba(220,200,160,0.6); }
.star-row { display: flex; gap: 2px; }
.star { font-size: 10px; color: rgba(255,255,255,0.15); }
.star-active { color: var(--gold); }

.func-row { display: flex; justify-content: space-around; padding: 8px; background: rgba(20,16,10,0.85); }
.func-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 10px; cursor: pointer; }
.func-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,192,64,0.06); border: 1px solid rgba(255,255,255,0.06); position: relative;
}
.func-icon-emoji { font-size: 18px; }
.func-dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; background: #E85040; border-radius: 50%; }
.func-label { font-size: 10px; color: rgba(255,255,255,0.5); }
.func-label-gold { color: var(--gold); }
.func-highlight .func-icon-wrap { background: rgba(240,192,64,0.1); border-color: rgba(240,192,64,0.2); }

.input-area { display: flex; align-items: center; gap: 8px; padding: 8px 14px 14px; background: rgba(20,16,10,0.95); }
.chat-input {
  flex: 1; border: 1px solid rgba(240,192,64,0.15); border-radius: 20px;
  padding: 10px 16px; font-size: 13px; background: rgba(255,255,255,0.06); color: #E8E0D0; outline: none;
}
.chat-input::placeholder { color: rgba(255,255,255,0.3); }
.voice-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #A0800E, #C9940E);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; border: none; color: #FFF8E8;
}

/* ====== 个人中心 ====== */
.profile-page { padding-bottom: 60px; }
.char-card { position: relative; overflow: hidden; padding: 16px 12px; margin-bottom: 8px; }
.char-card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240,192,64,0.08), rgba(90,124,74,0.06), rgba(30,26,20,0.95));
  border: 1px solid rgba(240,192,64,0.12); border-radius: var(--radius);
}
.char-header { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.avatar-frame { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-frame-bronze { background: rgba(180,130,80,0.15); border: 1px solid rgba(180,130,80,0.3); }
.avatar-frame-gold { background: rgba(240,192,64,0.15); border: 1px solid rgba(240,192,64,0.3); box-shadow: 0 0 10px rgba(240,192,64,0.1); }
.avatar-circle { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #5A7C4A, #4A7C59); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 600; }
.char-info { flex: 1; }
.char-name { font-size: 18px; font-weight: 600; color: var(--text-light); display: block; }
.char-tags { display: flex; gap: 4px; margin-top: 4px; }
.char-desc { font-size: 11px; color: var(--text-muted); display: block; margin-top: 3px; }
.char-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.char-stats-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.char-stat { text-align: center; padding: 8px 6px; background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.char-stat-icon { font-size: 12px; display: block; margin-bottom: 2px; }
.char-stat-value { font-size: 13px; font-weight: 600; display: block; }
.char-stat-label { font-size: 9px; color: var(--text-muted); display: block; }

.wallet-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }
.wallet-cell-icon { font-size: 14px; display: block; margin-bottom: 2px; }
.wallet-cell-value { font-size: 16px; font-weight: 600; display: block; }
.wallet-cell-label { font-size: 10px; color: var(--text-muted); display: block; }

.menu-list { margin-bottom: 16px; }
.menu-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; cursor: pointer; }
.menu-icon-wrap { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-icon-emoji { font-size: 14px; }
.menu-text { font-size: 14px; color: var(--text-light); }
.menu-extra { font-size: 11px; }
.logout-btn { text-align: center; padding: 16px; margin-top: 20px; font-size: 14px; cursor: pointer; }

/* ====== 商城 ====== */
.sku-list { margin-bottom: 16px; }
.item-card { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.item-card-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; position: relative; }
.item-card-icon-common { background: rgba(255,255,255,0.06); }
.item-card-icon-rare { background: rgba(96,165,250,0.12); }
.item-card-icon-legendary { background: rgba(240,192,64,0.12); }
.item-card-info { flex: 1; min-width: 0; }
.item-card-name { font-size: 14px; font-weight: 500; color: var(--text-light); display: block; }
.item-card-desc { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sku-prices { margin-top: 4px; }
.sku-cash { font-size: 16px; font-weight: 600; color: var(--gold); }
.sku-original { font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.item-card-action { flex-shrink: 0; }

/* ====== 签到 ====== */
.checkin-header { text-align: center; padding: 20px; }
.checkin-title { font-size: 18px; font-weight: 500; display: block; margin-bottom: 8px; }
.streak-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.checkin-main { display: flex; justify-content: center; padding: 20px; }
.checkin-circle {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s;
}
.checkin-active { background: linear-gradient(135deg, rgba(240,192,64,0.2), rgba(200,150,30,0.1)); border: 2px solid rgba(240,192,64,0.3); }
.checkin-done { background: rgba(74,204,74,0.1); border: 2px solid rgba(74,204,74,0.2); }
.checkin-circle:active { transform: scale(0.95); }
.checkin-circle-emoji { font-size: 32px; }
.checkin-circle-text { font-size: 14px; font-weight: 600; margin-top: 4px; }
.checkin-circle-sub { font-size: 10px; color: var(--text-muted); }
.vault-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }

/* ====== 祈愿池 ====== */
.wish-pool-header { text-align: center; padding: 20px; position: relative; }
.pool-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 200px; background: radial-gradient(circle, rgba(192,132,252,0.1), transparent 70%); border-radius: 50%; }
.pool-icon { font-size: 40px; display: block; position: relative; }
.pool-title { font-size: 20px; font-weight: 600; display: block; position: relative; }
.wish-input {
  width: 100%; min-height: 60px; border: 1px solid rgba(240,192,64,0.15);
  border-radius: 8px; padding: 10px; font-size: 13px;
  background: rgba(255,255,255,0.04); color: var(--text-light);
  resize: none; outline: none; margin-bottom: 10px;
}
.wish-input::placeholder { color: rgba(255,255,255,0.3); }
.wish-actions { display: flex; gap: 8px; justify-content: center; }
.wish-card { padding: 12px; }
.wish-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wish-avatar { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #5A7C4A, #4A7C59); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex-shrink: 0; }
.wish-username { font-size: 13px; font-weight: 500; display: block; }
.wish-time { font-size: 10px; color: var(--text-muted); display: block; }
.wish-content { font-size: 13px; line-height: 1.8; margin-bottom: 8px; white-space: pre-line; }
.wish-footer { display: flex; justify-content: space-between; align-items: center; }
.wish-interactions { display: flex; gap: 10px; font-size: 12px; color: var(--text-muted); }
.wish-btns { display: flex; gap: 6px; }

/* ====== 活动 ====== */
.quest-panel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.quest-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.quest-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: rgba(240,192,64,0.1); flex-shrink: 0; }
.quest-title { font-size: 14px; font-weight: 500; }
.quest-desc { font-size: 11px; color: var(--text-muted); }
.quest-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.quest-reward-item { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: rgba(240,192,64,0.1); color: var(--gold); }

/* ====== 钱包 ====== */
.wallet-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.wallet-card { border-radius: var(--radius); padding: 12px; text-align: center; }
.wallet-card-gold { background: rgba(200,150,30,0.1); border: 1px solid rgba(200,150,30,0.2); }
.wallet-card-green { background: rgba(74,124,89,0.1); border: 1px solid rgba(74,124,89,0.2); }
.wallet-card-dark { background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.15); }
.wallet-card-icon { font-size: 14px; }
.wallet-card-label { font-size: 10px; color: var(--text-muted); }
.wallet-card-value { font-size: 22px; font-weight: 700; display: block; margin: 4px 0; }
.wallet-card-sub { font-size: 9px; color: var(--text-muted); }

/* ====== 弹窗 ====== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-content {
  width: 100%; max-width: 360px; background: #2A2420;
  border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(255,255,255,0.1);
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.modal-body { margin-bottom: 16px; }
.modal-input {
  width: 80px; border: 1px solid rgba(240,192,64,0.15);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
  background: rgba(255,255,255,0.06); color: #E8E0D0; outline: none; text-align: right;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }

/* ====== 推荐 ====== */
.qrcode-img { width: 160px; height: 160px; margin: 10px auto; display: block; }
.mini-avatar { width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, #5A7C4A, #4A7C59); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; flex-shrink: 0; }
.gender-select { display: flex; gap: 8px; }
