* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #ff6b9d;
  --primary2: #c44569;
  --primary-light: #ffe4ec;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1a1a2e;
  --text2: #6b7280;
  --text3: #9ca3af;
  --border: #f0f0f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 70px;
}

/* 顶部导航 */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 6px; }
.logo-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.coin-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 20px;
  background: var(--primary-light);
  border: none; font-size: 13px; font-weight: 600; color: var(--primary2);
  cursor: pointer;
}
.coin-img { width: 18px; height: 18px; object-fit: cover; }
.coin-icon { font-size: 14px; }
.login-btn {
  padding: 6px 16px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white; border: none; font-size: 13px; font-weight: 600; cursor: pointer;
}
.back-btn, .menu-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.game-title { font-size: 16px; font-weight: 700; color: var(--text); }

/* Banner */
.banner-section { padding: 14px 16px 8px; }
.banner-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-card { position: relative; height: 180px; display: none; }
.banner-card.active { display: block; }
.banner-img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.banner-tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: var(--primary); color: white; font-size: 11px; font-weight: 600;
  margin-bottom: 8px; width: fit-content;
}
.banner-overlay h2 { font-size: 22px; font-weight: 800; color: white; margin-bottom: 4px; }
.banner-overlay p { font-size: 12px; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.banner-play {
  padding: 7px 18px; border-radius: 20px;
  background: white; color: var(--primary); border: none;
  font-size: 13px; font-weight: 700; cursor: pointer; width: fit-content;
}
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.dot.active { width: 18px; border-radius: 3px; background: var(--primary); }

/* 搜索框 */
.search-box {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 16px 12px; padding: 10px 14px;
  background: white; border-radius: 24px; box-shadow: var(--shadow);
  color: var(--text3);
}
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text);
}

/* 分类标签 */
.main-tabs {
  display: flex; gap: 8px; padding: 0 16px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.main-tabs::-webkit-scrollbar { display: none; }
.rank-tabs {
  display: flex; gap: 8px; padding: 0 16px 8px;
}
.rank-tab {
  flex-shrink: 0; padding: 6px 14px; border-radius: 16px;
  background: white; color: var(--text2); border: none;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.rank-tab.active {
  background: var(--primary-light); color: var(--primary2); font-weight: 600;
}
.zone-tabs {
  display: flex; gap: 8px; padding: 0 16px 12px;
}
.zone-tab {
  flex-shrink: 0; padding: 6px 16px; border-radius: 16px;
  background: white; color: var(--text2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.zone-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white; border-color: transparent; font-weight: 600;
}
.main-tab {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  background: white; color: var(--text2); border: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.main-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white; font-weight: 600;
}

/* 游戏列表 */
.game-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 0 16px 16px;
}
.game-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform 0.15s;
}
.game-card:active { transform: scale(0.97); }
.game-card.disabled { opacity: 0.6; }
.card-cover {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), #fff);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.card-body { padding: 10px; }
.card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.card-desc {
  font-size: 11px; color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text3);
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.card-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 6px;
  background: var(--primary-light); color: var(--primary2); font-weight: 500;
}
.card-hot { display: flex; align-items: center; gap: 3px; }
.card-badge {
  font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 600;
}
.badge-ai { background: var(--primary-light); color: var(--primary2); }
.badge-static { background: #fef3c7; color: #b45309; }
.badge-soon { background: #f3f4f6; color: #6b7280; }

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 100;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--text3); cursor: pointer; padding: 4px;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 20px; }
.nav-label { font-size: 10px; font-weight: 500; }
.nav-publish { position: relative; }
.publish-plus {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white; font-size: 24px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255,107,157,0.4);
  margin-top: -18px;
}

/* 页脚 */
.footer { padding: 16px; text-align: center; font-size: 11px; color: var(--text3); line-height: 1.8; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  background: rgba(0,0,0,0.8); color: white;
  padding: 12px 24px; border-radius: 10px; font-size: 14px;
  z-index: 1000; opacity: 0; pointer-events: none; transition: all 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ===== 游戏内界面 ===== */
.game-body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--bg); padding-bottom: 0; }
.stats-panel {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: white; border-left: 1px solid var(--border);
  z-index: 200; transition: right 0.3s;
  display: flex; flex-direction: column;
}
.stats-panel.open { right: 0; }
.stats-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.stats-header button { background: none; border: none; color: var(--text2); font-size: 18px; cursor: pointer; }
.stats-content { padding: 16px; flex: 1; overflow-y: auto; }
.stats-tip { font-size: 13px; color: var(--text3); text-align: center; margin-top: 40px; }
.stat-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.stat-name { font-size: 13px; color: var(--text2); display: flex; justify-content: space-between; }
.stat-value { font-weight: 700; color: var(--primary); }
.stat-bar { width: 100%; height: 4px; background: var(--bg); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary2)); border-radius: 2px; }

.chat-area { flex: 1; overflow-y: auto; padding: 16px; }
.msg { margin-bottom: 14px; max-width: 85%; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg.ai { margin-right: auto; }
.msg.user { margin-left: auto; }
.msg-bubble {
  padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.msg.ai .msg-bubble { background: white; border: 1px solid var(--border); border-top-left-radius: 4px; box-shadow: var(--shadow); }
.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white; border-top-right-radius: 4px;
}

.typing-indicator {
  display: none; align-items: center; gap: 10px;
  padding: 10px 16px; background: white;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text2);
}
.typing-indicator.show { display: flex; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: bounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.input-area {
  background: white; border-top: 1px solid var(--border);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.input-row { display: flex; gap: 8px; }
#userInput {
  flex: 1; padding: 11px 16px; border-radius: 22px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; outline: none;
}
#userInput:focus { border-color: var(--primary); }
#sendBtn {
  padding: 11px 20px; border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white; border: none; font-size: 14px; font-weight: 600; cursor: pointer;
}
#sendBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.free-count { text-align: center; font-size: 11px; color: var(--text3); margin-top: 6px; }

/* ===== 登录页 ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #ffe4ec 0%, #fff0f5 50%, #ffe4ec 100%); }
.auth-card { width: 100%; max-width: 380px; background: white; border-radius: 24px; padding: 32px 24px; box-shadow: 0 20px 60px rgba(255,107,157,0.2); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.auth-logo .logo-icon { font-size: 56px; }
.auth-logo h1 { font-size: 32px; font-weight: 800; color: var(--primary); margin: 8px 0 4px; }
.auth-logo p { font-size: 13px; color: var(--text3); }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: none; font-size: 14px; font-weight: 600; color: var(--text2); border-radius: 10px; cursor: pointer; }
.auth-tab.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.auth-form.hidden { display: none; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 14px; outline: none; background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.form-group textarea { resize: vertical; font-family: inherit; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }
.auth-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white;
  font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.auth-btn:active { transform: scale(0.98); }
.auth-tip { text-align: center; font-size: 12px; color: var(--primary); margin-top: 16px; }
.auth-back { display: block; text-align: center; font-size: 13px; color: var(--text2); margin-top: 12px; text-decoration: none; }

/* ===== 书架页 ===== */
.shelf-tabs { display: flex; gap: 8px; padding: 12px 16px; }
.shelf-tab { flex: 1; padding: 10px; border: none; background: white; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text2); cursor: pointer; }
.shelf-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text3); }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }
.empty-btn { padding: 10px 24px; border-radius: 20px; border: none; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ===== 创作页 ===== */
.create-page { padding: 16px; max-width: 600px; margin: 0 auto; }
.create-tip { display: flex; gap: 12px; padding: 14px; background: var(--primary-light); border-radius: 14px; margin-bottom: 20px; }
.tip-icon { font-size: 24px; }
.create-tip strong { display: block; font-size: 14px; color: var(--primary2); margin-bottom: 2px; }
.create-tip p { font-size: 12px; color: var(--primary); }
.template-section { margin-bottom: 20px; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.template-card { padding: 16px 8px; text-align: center; border-radius: 12px; background: white; border: 1px solid var(--border); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.template-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
@media (max-width: 480px) { .template-grid { grid-template-columns: repeat(2, 1fr); } }
.my-games { margin-top: 24px; }
.my-games h3 { font-size: 16px; margin-bottom: 12px; }
.my-game-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: white; border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.my-game-info { display: flex; flex-direction: column; }
.my-game-info strong { font-size: 14px; }
.my-game-info span { font-size: 12px; color: var(--text3); }
.my-game-actions { display: flex; gap: 8px; }
.my-game-actions button { padding: 6px 12px; border-radius: 8px; border: none; font-size: 12px; font-weight: 600; cursor: pointer; background: var(--bg); color: var(--text2); }

/* ===== 广场页 ===== */
.post-form { padding: 12px 16px; background: white; border-bottom: 1px solid var(--border); }
.post-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; resize: none; outline: none; font-family: inherit; background: var(--bg); }
.post-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cancel-btn, .submit-btn { padding: 8px 16px; border-radius: 10px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.cancel-btn { background: var(--bg); color: var(--text2); }
.submit-btn { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; }
.plaza-list { padding: 12px 16px; max-width: 600px; margin: 0 auto; }
.post-card { background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.post-info { display: flex; flex-direction: column; }
.post-info strong { font-size: 14px; }
.post-info span { font-size: 11px; color: var(--text3); }
.post-content { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 12px; white-space: pre-wrap; }
.post-footer { display: flex; gap: 20px; }
.post-action { display: flex; align-items: center; gap: 4px; background: none; border: none; font-size: 13px; color: var(--text2); cursor: pointer; }
.post-action.liked { color: var(--primary); }

/* ===== 个人中心 ===== */
.profile-page { max-width: 600px; margin: 0 auto; }
.profile-guest { display: flex; flex-direction: column; align-items: center; padding: 60px 20px; }
.guest-avatar { font-size: 64px; margin-bottom: 16px; }
.profile-guest p { color: var(--text3); margin-bottom: 20px; }
.profile-user { padding: 16px; }
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary2)); display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; }
.profile-info { flex: 1; }
.profile-info h2 { font-size: 20px; font-weight: 700; }
.profile-info p { font-size: 13px; color: var(--text3); }
.edit-btn { padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border); background: white; font-size: 12px; color: var(--text2); cursor: pointer; }
.balance-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: linear-gradient(135deg, #2d1b3d, #4a2c5a); border-radius: var(--radius); margin-bottom: 16px; cursor: pointer; }
.balance-info { display: flex; align-items: baseline; gap: 4px; }
.balance-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-right: 8px; }
.balance-num { font-size: 28px; font-weight: 800; color: #ffd700; }
.balance-unit { font-size: 14px; color: #ffd700; margin-left: 4px; }
.balance-coin-img { width: 24px; height: 24px; object-fit: cover; margin-left: 4px; }
.balance-arrow { font-size: 13px; color: rgba(255,255,255,0.6); }
.profile-stats { display: flex; background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.profile-stats .stat-item { flex: 1; text-align: center; }
.profile-stats .stat-num { display: block; font-size: 20px; font-weight: 700; color: var(--primary); }
.profile-stats .stat-label { font-size: 12px; color: var(--text3); }
.vip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vip-card { padding: 14px; border-radius: 12px; cursor: pointer; }
.vip-card.member { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.vip-card.chat { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.vip-card .vip-title { font-size: 13px; font-weight: 700; color: #333; }
.vip-card .vip-status { font-size: 11px; color: #666; margin-top: 4px; }
.invite-banner { padding: 16px; background: linear-gradient(135deg, #ff6b9d, #c44569); border-radius: var(--radius); margin-bottom: 16px; color: white; cursor: pointer; }
.invite-banner h4 { font-size: 16px; font-weight: 700; }
.invite-banner p { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.menu-list { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--bg); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 20px; margin-right: 12px; }
.menu-text { flex: 1; font-size: 14px; }
.menu-arrow { color: #d1d5db; font-size: 18px; }
.logout-btn { width: 100%; padding: 14px; border-radius: 14px; border: none; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ===== 充值页 ===== */
.recharge-page { padding: 16px; max-width: 500px; margin: 0 auto; }
.recharge-balance { display: flex; align-items: baseline; gap: 6px; padding: 20px; background: linear-gradient(135deg, #2d1b3d, #4a2c5a); border-radius: var(--radius); margin-bottom: 20px; }
.recharge-balance span:first-child { font-size: 13px; color: rgba(255,255,255,0.6); margin-right: 8px; }
.recharge-balance strong { font-size: 32px; font-weight: 800; color: #ffd700; }
.recharge-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.recharge-tab { flex: 1; padding: 10px; border: none; background: white; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text2); cursor: pointer; }
.recharge-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; }
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.recharge-packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.package { position: relative; padding: 20px 8px; background: white; border: 2px solid var(--border); border-radius: 14px; text-align: center; cursor: pointer; transition: all 0.15s; }
.package.selected { border-color: var(--primary); background: var(--primary-light); }
.package-badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 2px 10px; background: var(--primary); color: white; font-size: 10px; font-weight: 700; border-radius: 8px; }
.package-coins { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.package-bonus { font-size: 11px; color: var(--text3); margin-bottom: 8px; }
.package-price { display: inline-block; padding: 6px 20px; border-radius: 16px; background: var(--bg); color: var(--text2); font-size: 14px; font-weight: 600; }
.package.selected .package-price { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; }
.recharge-btn { width: 100%; padding: 14px; border-radius: 14px; border: none; background: #d1d5db; color: white; font-size: 16px; font-weight: 700; cursor: not-allowed; margin-bottom: 16px; }
.recharge-btn:not(:disabled) { background: linear-gradient(135deg, var(--primary), var(--primary2)); cursor: pointer; }
.recharge-tip { padding: 12px; background: var(--primary-light); border-radius: 12px; font-size: 12px; color: var(--primary2); line-height: 1.6; }
.recharge-records { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.record-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--bg); }
.record-item:last-child { border-bottom: none; }
.record-info { display: flex; flex-direction: column; }
.record-info strong { font-size: 14px; }
.record-info span { font-size: 11px; color: var(--text3); }
.record-amount { font-size: 15px; font-weight: 700; color: var(--primary); }

/* ===== 设置页 ===== */
.settings-page { max-width: 600px; margin: 0 auto; padding: 16px; }
.settings-group { margin-bottom: 20px; }
.settings-label { font-size: 13px; color: var(--text3); margin-bottom: 8px; padding-left: 4px; }

/* ===== 游戏详情页 ===== */
.detail-page { max-width: 600px; margin: 0 auto; padding-bottom: 80px; }
.detail-hero { display: flex; gap: 14px; padding: 16px; background: white; }
.detail-cover { width: 110px; height: 147px; border-radius: 12px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .card-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--primary-light); }
.detail-info { flex: 1; display: flex; flex-direction: column; }
.detail-info h1 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.detail-desc { font-size: 13px; color: var(--text2); margin-bottom: 8px; line-height: 1.5; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.detail-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text3); margin-top: auto; }
.detail-section { padding: 16px; background: white; margin-top: 10px; }
.detail-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.detail-section p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.review-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.review-item:last-child { border-bottom: none; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.review-content strong { font-size: 13px; display: block; margin-bottom: 4px; }
.review-content p { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.detail-bottom { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 10px; padding: 12px 16px; background: white; border-top: 1px solid var(--border); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.detail-fav { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: white; font-size: 14px; font-weight: 600; cursor: pointer; }
.detail-play { flex: 2; padding: 12px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; font-size: 15px; font-weight: 700; cursor: pointer; }

/* ===== 评论区 ===== */
.comments-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bg); }
.comment-input { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-input input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 16px; font-size: 13px; outline: none; background: var(--bg); }
.comment-input input:focus { border-color: var(--primary); }
.comment-input button { padding: 8px 14px; border-radius: 16px; border: none; background: var(--primary); color: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.comment-list { max-height: 200px; overflow-y: auto; }
.comment-item { padding: 6px 0; font-size: 12px; }
.comment-item strong { color: var(--primary); margin-right: 6px; }
.comment-item span { color: var(--text2); }

/* ===== 签到卡片 ===== */
.checkin-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; }
.checkin-info { display: flex; align-items: center; gap: 10px; }
.checkin-icon { font-size: 28px; }
.checkin-info strong { display: block; font-size: 14px; color: #92400e; }
.checkin-info span { font-size: 11px; color: #b45309; }
.checkin-btn { padding: 6px 16px; border-radius: 16px; background: #f59e0b; color: white; font-size: 13px; font-weight: 600; }

/* ===== 游戏菜单 ===== */
.game-menu { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: flex-end; }
.game-menu-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.game-menu-panel { position: relative; margin: 60px 16px 0 0; background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2); min-width: 160px; }
.game-menu-panel .menu-item { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--bg); cursor: pointer; }
.game-menu-panel .menu-item:last-child { border-bottom: none; }
.game-menu-panel .menu-item:active { background: var(--bg); }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-panel { position: relative; background: white; border-radius: 16px; padding: 24px; width: 100%; max-width: 320px; text-align: center; }
.modal-panel h3 { font-size: 18px; margin-bottom: 16px; }
.star-rating { font-size: 36px; margin-bottom: 20px; cursor: pointer; }
.star-rating span { margin: 0 4px; transition: all 0.15s; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; padding: 10px; border-radius: 10px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.modal-actions button:first-child { background: var(--bg); color: var(--text2); }
.modal-actions button.primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: white; }
.char-create-panel { max-width: 360px; }
.gender-options { display: flex; gap: 8px; }
.gender-btn { flex: 1; padding: 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.gender-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary2); font-weight: 600; }
.tip-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.tip-amount { padding: 12px; border-radius: 10px; background: var(--primary-light); border: none; color: var(--primary2); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tip-amount:hover { background: var(--primary); color: white; }
.stardust-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fef3ff, #fff5f8);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.stardust-info { display: flex; align-items: center; gap: 8px; }
.stardust-label { font-size: 13px; color: var(--text2); }
.stardust-num { font-size: 20px; font-weight: 700; color: #a855f7; }
.stardust-tip { font-size: 11px; color: var(--text2); }
.invite-code-box {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
}
.invite-code-box span { font-size: 18px; font-weight: 700; color: var(--primary2); letter-spacing: 2px; }
.copy-btn { padding: 6px 14px; border-radius: 8px; border: none; background: var(--primary); color: white; font-size: 12px; cursor: pointer; }
.invite-tip { font-size: 12px; color: var(--text2); margin-bottom: 16px; }
.invite-use { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px; }
.invite-use p { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.icon-svg { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.icon-svg svg { width: 1em; height: 1em; display: block; }
.icon-img { width: 1em; height: 1em; object-fit: contain; vertical-align: middle; display: inline-block; }

/* ===== 社区广场（双列瀑布流） ===== */
.plaza-body { background: #f5f5f7; padding-bottom: 70px; }
.plaza-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: white; position: sticky; top: 0; z-index: 100;
}
.plaza-back {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: none; font-size: 20px; cursor: pointer; color: #333;
}
.plaza-title { font-size: 18px; font-weight: 700; color: #1a1a1a; }

.plaza-tabs {
  display: flex; gap: 24px; padding: 0 16px 12px; background: white;
  border-bottom: 1px solid #eee;
}
.plaza-tab {
  background: none; border: none; font-size: 15px; color: #999;
  cursor: pointer; padding: 4px 0; position: relative; font-weight: 500;
}
.plaza-tab.active { color: #1a1a1a; font-weight: 700; }
.plaza-tab.active::after {
  content: ''; position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
}

.plaza-post-box {
  margin: 12px; padding: 14px; background: white; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.plaza-post-box textarea {
  width: 100%; border: none; outline: none; resize: none;
  font-size: 15px; line-height: 1.5; background: transparent;
  font-family: inherit; color: #1a1a1a; min-height: 40px;
}
.plaza-post-box textarea::placeholder { color: #bbb; }
.plaza-post-tools {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.plaza-image-btn {
  width: 36px; height: 36px; border-radius: 10px; background: #f5f5f7;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.plaza-post-images {
  display: flex; gap: 6px; flex: 1; flex-wrap: wrap;
}
.composer-thumb {
  position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
}
.composer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(0,0,0,0.6); color: white;
  border: none; font-size: 12px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; line-height: 1;
}
.plaza-send-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: white; cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: opacity 0.2s;
}
.plaza-send-btn svg { width: 18px; height: 18px; }

.plaza-sort-bar {
  display: flex; gap: 8px; padding: 0 12px 12px;
}
.sort-chip {
  display: flex; align-items: center; gap: 4px; padding: 6px 14px;
  border-radius: 20px; background: white; border: none; font-size: 13px;
  color: #666; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sort-chip.active {
  background: linear-gradient(135deg, #ff6b9d, #c44569); color: white;
}

.plaza-waterfall {
  display: flex; gap: 10px; padding: 0 12px;
}
.waterfall-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.waterfall-card {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card-pinned {
  padding: 4px 10px; background: #fff3cd; color: #856404;
  font-size: 11px; font-weight: 600;
}
.card-content {
  padding: 12px; font-size: 14px; line-height: 1.5; color: #1a1a1a;
  white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-images {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  padding: 0 12px;
}
.card-images.single { grid-template-columns: 1fr; }
.card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer;
  border-radius: 6px;
}
.card-images.single .card-img { aspect-ratio: 4/3; }
.card-more {
  position: absolute; background: rgba(0,0,0,0.5); color: white;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-top: 1px solid #f5f5f7;
}
.card-author { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.card-avatar {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: #f5f5f7; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-like {
  display: flex; align-items: center; gap: 3px; background: none; border: none;
  color: #999; font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.card-like.liked { color: #ff6b9d; }
.plaza-empty {
  text-align: center; padding: 60px 20px; color: #999;
  grid-column: 1/-1;
}
.plaza-empty .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ===== 通知页 ===== */
.notify-list { max-width: 600px; margin: 0 auto; padding: 12px 16px; }
.notify-item { display: flex; gap: 10px; padding: 14px; background: white; border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.notify-item.unread { border-left: 3px solid var(--primary); }
.notify-item.read { opacity: 0.6; }
.notify-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; }
.notify-item.read .notify-dot { background: #ddd; }
.notify-content { flex: 1; }
.notify-content strong { display: block; font-size: 14px; margin-bottom: 4px; }
.notify-content p { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.notify-content span { font-size: 11px; color: var(--text3); }

/* ===== 存档提醒 ===== */
.save-warning {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #fcd34d;
  font-size: 12px; color: #92400e; line-height: 1.5;
}
.warn-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ===== 角色榜 ===== */
.char-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--bg);
}
.char-item:last-child { border-bottom: none; }
.char-rank {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.char-item:nth-child(1) .char-rank { background: #fef3c7; color: #d97706; }
.char-item:nth-child(2) .char-rank { background: #e5e7eb; color: #6b7280; }
.char-item:nth-child(3) .char-rank { background: #fed7aa; color: #ea580c; }
.char-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; overflow: hidden;
}
.char-avatar img { width: 100%; height: 100%; object-fit: cover; }
.char-info { flex: 1; min-width: 0; }
.char-info strong { font-size: 14px; display: block; margin-bottom: 2px; }
.char-info p { font-size: 11px; color: var(--text3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-like {
  padding: 6px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: white; font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.char-like.liked { background: var(--primary-light); border-color: var(--primary); color: var(--primary2); }

@media (min-width: 768px) {
  .game-list { grid-template-columns: repeat(3, 1fr); max-width: 800px; margin: 0 auto; }
  .banner-section, .search-box, .main-tabs, .footer { max-width: 800px; margin-left: auto; margin-right: auto; }
  .top-bar { padding: 12px calc(50% - 400px + 16px); }
  .bottom-nav { max-width: 500px; margin: 0 auto; border-radius: 16px 16px 0 0; }
  .chat-area, .input-area { max-width: 700px; margin: 0 auto; width: 100%; }
}
@media (min-width: 1024px) {
  .game-list { grid-template-columns: repeat(4, 1fr); max-width: 1000px; }
  .banner-section, .search-box, .main-tabs, .footer { max-width: 1000px; }
  .top-bar { padding: 12px calc(50% - 500px + 16px); }
}
/* ===== UU Game风格游戏界面 ===== */
.game-body {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  padding-bottom: 80px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 顶部状态栏 */
.ug-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ug-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.ug-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ug-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ug-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #a0a0b0;
}
.ug-stat-icon {
  font-size: 11px;
}
.ug-save-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0e0e0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ug-arrow {
  font-size: 10px;
}

/* 下拉菜单 */
.ug-menu-dropdown {
  position: absolute;
  top: 60px;
  right: 16px;
  background: #252540;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  z-index: 200;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ug-menu-item {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ug-menu-item:hover {
  background: rgba(255,107,157,0.1);
}
.ug-menu-item:last-child {
  border-bottom: none;
}

/* 模式切换 */
.ug-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 12px 16px;
}
.ug-mode-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #888;
  padding: 8px 28px;
  font-size: 14px;
  cursor: pointer;
}
.ug-mode-tab:first-child {
  border-radius: 20px 0 0 20px;
}
.ug-mode-tab:last-child {
  border-radius: 0 20px 20px 0;
}
.ug-mode-tab.active {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  border-color: transparent;
}

/* 主内容区 */
.ug-main {
  padding: 0 16px;
}
.ug-tab-content {
  display: none;
}
.ug-tab-content.active {
  display: block;
}

/* 主线故事卡片 */
.ug-story-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.ug-story-icon {
  font-size: 36px;
  color: #ff6b9d;
  margin-bottom: 12px;
}
.ug-story-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.ug-story-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.ug-regen-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

/* 消息列表 */
.ug-messages {
  margin-bottom: 100px;
}
.ug-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.ug-msg-ai {
  justify-content: flex-start;
}
.ug-msg-user {
  justify-content: flex-end;
}
.ug-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
}
.ug-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ug-msg-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.ug-msg-ai .ug-msg-bubble {
  background: rgba(255,255,255,0.08);
  color: #e0e0e0;
  border-top-left-radius: 4px;
}
.ug-msg-user .ug-msg-bubble {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  border-top-right-radius: 4px;
}
.ug-msg-system {
  text-align: center;
  width: 100%;
}
.ug-msg-system .ug-msg-bubble, .ug-msg-system {
  background: transparent;
  color: #888;
  font-size: 12px;
  padding: 4px;
}

/* 事件卡片 */
.ug-events-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.ug-events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ug-events-header span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ug-refresh-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
}
.ug-event-empty {
  color: #666;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
}
.ug-past-events {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #888;
  cursor: pointer;
}
.ug-past-count {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

/* 推进剧情按钮 */
.ug-advance-btn {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,107,157,0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 输入框（小说模式） */
.ug-input-bar {
  position: fixed;
  bottom: 70px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 50;
}
.ug-input-bar input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.ug-input-bar input::placeholder {
  color: #666;
}
.ug-input-bar button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* 底部导航 */
.ug-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  z-index: 100;
}
.ug-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: #666;
  font-size: 11px;
  cursor: pointer;
  padding: 4px;
}
.ug-nav-item.active {
  color: #ff6b9d;
}
.ug-nav-icon {
  font-size: 22px;
}

/* 手机页面 */
.ug-phone-screen {
  background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 100%);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  min-height: 500px;
}
.ug-phone-statusbar {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}
.ug-phone-hero {
  text-align: center;
  margin-bottom: 20px;
}
.ug-phone-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.ug-phone-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ug-phone-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.ug-phone-sign {
  font-size: 12px;
  color: #888;
}
.ug-phone-music {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}
.ug-music-icon {
  font-size: 28px;
}
.ug-music-info {
  flex: 1;
}
.ug-music-title {
  font-size: 14px;
  color: #fff;
}
.ug-music-sub {
  font-size: 11px;
  color: #888;
}
.ug-music-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 6px;
}
.ug-music-progress {
  width: 30%;
  height: 100%;
  background: #ff6b9d;
  border-radius: 2px;
}
.ug-music-controls {
  display: flex;
  gap: 8px;
}
.ug-music-controls button {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
}
.ug-play-btn {
  color: #ff6b9d !important;
}
.ug-phone-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ug-phone-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ug-phone-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ug-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.ug-phone-app span {
  font-size: 11px;
  color: #aaa;
}

/* 世界页面 */
.ug-world-header {
  margin-bottom: 16px;
}
.ug-world-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.ug-world-sub {
  font-size: 12px;
  color: #888;
}
.ug-world-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.ug-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}
.ug-world-section {
  margin-bottom: 16px;
}
.ug-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  color: #ddd;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ug-section-count {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: #888;
  margin-left: auto;
}
.ug-section-arrow {
  font-size: 10px;
  color: #666;
}
.ug-char-list {
  padding: 12px 0;
}

/* 设置页面 */
.ug-settings-list {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  overflow: hidden;
}
.ug-setting-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  font-size: 15px;
  color: #ddd;
}
.ug-setting-item:last-child {
  border-bottom: none;
}
.ug-setting-item:active {
  background: rgba(255,255,255,0.05);
}
.ug-setting-value {
  margin-left: auto;
  font-size: 13px;
  color: #888;
}
.ug-setting-arrow {
  margin-left: 8px;
  color: #555;
  font-size: 18px;
}

/* 头像选择弹窗 */
.ug-avatar-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.ug-avatar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.ug-avatar-header button {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
}
.ug-avatar-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.ug-avatar-tab {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding-bottom: 8px;
}
.ug-avatar-tab.active {
  color: #fff;
  border-bottom: 2px solid #ff6b9d;
}
.ug-avatar-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ug-avatar-cat {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #aaa;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}
.ug-avatar-cat.active {
  background: #ff6b9d;
  color: #fff;
}
.ug-avatar-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ug-avatar-item {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  border: 2px solid transparent;
}
.ug-avatar-item.selected {
  border-color: #ff6b9d;
}
.ug-avatar-footer {
  display: flex;
  gap: 12px;
}
.ug-avatar-footer button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.ug-avatar-footer button:first-child {
  background: rgba(255,255,255,0.1);
  color: #ccc;
}
.ug-avatar-footer button.primary {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
}

/* ===== UU Game风格首页 ===== */
.home-body {
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  padding-bottom: 80px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 顶部导航 */
.uu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.uu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.uu-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.uu-logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.uu-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uu-coin-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.uu-coin-img {
  width: 18px;
  height: 18px;
}
.uu-coin-num {
  font-size: 13px;
  font-weight: 600;
  color: #ffd700;
}
.uu-login-btn {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Banner轮播 */
.uu-banner-section {
  padding: 12px 16px 0;
  position: relative;
}
.uu-banner-wrap {
  position: relative;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
}
.uu-banner-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.uu-banner-card.active {
  opacity: 1;
}
.uu-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.uu-banner-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.3) 0%, rgba(168,85,247,0.2) 50%, rgba(0,0,0,0.7) 100%);
}
.uu-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.uu-banner-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.uu-banner-tag {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #fff;
}
.uu-banner-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.uu-banner-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  line-height: 1.4;
}
.uu-banner-plays {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.uu-banner-play {
  align-self: flex-start;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.uu-banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.uu-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.uu-dot.active {
  width: 20px;
  background: #ff6b9d;
}

/* 搜索框 */
.uu-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #888;
}
.uu-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}
.uu-search-box input::placeholder {
  color: #666;
}

/* 榜单标签 */
.uu-rank-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}
.uu-rank-tab {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #888;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}
.uu-rank-tab.active {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  border-color: transparent;
}

/* 分类标签 */
.uu-main-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.uu-main-tabs::-webkit-scrollbar {
  display: none;
}
.uu-main-tab {
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #999;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
}
.uu-main-tab.active {
  background: rgba(255,107,157,0.15);
  color: #ff6b9d;
  border-color: rgba(255,107,157,0.3);
}

/* 分区标签 */
.uu-zone-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.uu-zone-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #888;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}
.uu-zone-tab.active {
  background: rgba(255,107,157,0.15);
  color: #ff6b9d;
  border-color: rgba(255,107,157,0.3);
}

/* 游戏网格 */
.uu-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}
.uu-game-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.uu-game-card:active {
  transform: scale(0.97);
}
.uu-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.uu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uu-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
}
.uu-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  color: #fff;
}
.uu-card-info {
  padding: 8px 4px;
}
.uu-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uu-card-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.uu-card-tag {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  color: #888;
}
.uu-card-plays {
  font-size: 11px;
  color: #666;
}

/* 底部导航 */
.uu-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  z-index: 100;
}
.uu-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: #666;
  font-size: 11px;
  cursor: pointer;
  padding: 4px;
}
.uu-nav-item.active {
  color: #ff6b9d;
}
.uu-nav-icon {
  font-size: 22px;
}
.uu-nav-publish {
  position: relative;
}
.uu-publish-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(255,107,157,0.4);
}

/* 页脚 */
.uu-footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 11px;
  color: #555;
  line-height: 1.6;
}

/* UU Game风格横向游戏卡片 */
.uu-game-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uu-game-card-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.uu-game-card-horizontal:active {
  transform: scale(0.98);
  background: rgba(255,255,255,0.08);
}
.uu-rank-num {
  width: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
}
.uu-rank-1 { color: #fbbf24; }
.uu-rank-2 { color: #9ca3af; }
.uu-rank-3 { color: #d97706; }
.uu-card-cover-h {
  width: 70px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.uu-card-cover-h .uu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uu-card-cover-h .uu-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
}
.uu-card-info-h {
  flex: 1;
  min-width: 0;
}
.uu-card-title-h {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uu-card-desc-h {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uu-card-meta-h {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #666;
}
.uu-card-likes {
  color: #ff6b9d;
}
.uu-card-arrow {
  color: #444;
  font-size: 20px;
  flex-shrink: 0;
}

/* 简单对话框游戏模式 */
.game-body {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.game-back, .game-menu {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.game-menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 60px 16px 0;
}
.menu-content {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  border: 1px solid rgba(255,255,255,0.1);
}
.menu-content button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}
.menu-content button:active {
  background: rgba(255,255,255,0.1);
}
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
}
.welcome-loading {
  font-size: 14px;
}
.chat-msg {
  display: flex;
  max-width: 85%;
}
.msg-user {
  align-self: flex-end;
}
.msg-ai {
  align-self: flex-start;
}
.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.msg-user .msg-bubble {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-ai .msg-bubble {
  background: rgba(255,255,255,0.1);
  color: #eee;
  border-bottom-left-radius: 4px;
}
.msg-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 16px;
}
.msg-bubble.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
  animation: typing 1.4s infinite;
}
.msg-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}
.chat-input-area {
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  bottom: 0;
}
.input-wrapper {
  display: flex;
  gap: 8px;
}
.input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.input-wrapper input::placeholder {
  color: #666;
}
.send-btn {
  padding: 12px 20px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.send-btn:active {
  transform: scale(0.95);
}

/* 开发中页面 */
.coming-soon-body {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.coming-soon {
  text-align: center;
  padding: 40px;
}
.coming-soon-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.coming-soon h1 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.coming-soon p {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
.back-btn {
  padding: 12px 32px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== V2 游戏界面 ===== */
.game-body-v2 {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.game-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.4);
  z-index: -2;
  transform: scale(1.1);
}
.game-bg-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.3) 0%, rgba(15,15,26,0.7) 100%);
  z-index: -1;
}

/* 顶部状态栏 */
.game-topbar-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-back {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; color: #fff;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.player-info { display: flex; align-items: center; gap: 8px; }
.player-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.player-meta { display: flex; flex-direction: column; }
.player-name { font-size: 14px; font-weight: 600; }
.player-gender {
  font-size: 10px;
  background: rgba(255,107,157,0.3);
  padding: 1px 6px;
  border-radius: 8px;
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.round-num {
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 12px;
}
.topbar-menu {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; color: #fff;
  font-size: 18px; cursor: pointer;
}

/* 属性栏 */
.attr-bar {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.2);
  overflow-x: auto;
}
.attr-bar::-webkit-scrollbar { display: none; }
.attr-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 12px;
}
.attr-icon { font-size: 12px; }

/* 主内容区 */
.game-main-v2 {
  height: calc(100vh - 56px - 36px - 60px);
  overflow-y: auto;
  position: relative;
}
.tab-page { display: none; height: 100%; flex-direction: column; }
.tab-page.active { display: flex; }

/* 剧情页 */
#page-story { padding: 16px; }
.story-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}
.chat-welcome {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: rgba(255,255,255,0.6);
}
.welcome-loading { font-size: 14px; }
.chat-msg-v2 { display: flex; max-width: 85%; }
.msg-user-v2 { align-self: flex-end; }
.msg-ai-v2 { align-self: flex-start; }
.msg-bubble-v2 {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}
.msg-user-v2 .msg-bubble-v2 {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-ai-v2 .msg-bubble-v2 {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: #eee;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
.typing-v2 {
  display: flex; gap: 4px; padding: 16px;
}
.typing-v2 span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: typingV2 1.4s infinite;
}
.typing-v2 span:nth-child(2) { animation-delay: 0.2s; }
.typing-v2 span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingV2 {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* 行动选项 */
.action-section { margin-top: 12px; }
.action-toggle {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.action-count {
  background: #ff6b9d;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
}
.action-arrow { font-size: 10px; }
.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.action-btn {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.action-btn:active { background: rgba(255,107,157,0.2); }

/* 输入区 */
.chat-input-v2 {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}
.chat-input-v2 input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.chat-input-v2 input::placeholder { color: rgba(255,255,255,0.4); }
.send-btn-v2 {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 空页面 */
.page-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
}
.empty-icon { font-size: 48px; }
.empty-btn {
  padding: 8px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* 属性详情页 */
.attr-detail {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.attr-card {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.attr-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #fff;
}
.persona-input {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 13px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.attr-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.attr-row:last-child { border-bottom: none; }

/* 设置页 */
.settings-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 14px;
}
.setting-btn {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.setting-btn.danger { background: rgba(239,68,68,0.2); color: #f87171; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.2);
  transition: .3s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  transition: .3s; border-radius: 50%;
}
.switch input:checked + .slider { background: #ff6b9d; }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* 菜单弹窗 */
.game-menu-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 60px 16px 0;
}
.menu-content-v2 {
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 8px;
  min-width: 160px;
  border: 1px solid rgba(255,255,255,0.1);
}
.menu-content-v2 button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}
.menu-content-v2 button:active { background: rgba(255,255,255,0.1); }

/* 底部导航 */
.game-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 0;
  z-index: 100;
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  cursor: pointer;
}
.bottom-tab.active { color: #ff6b9d; }
.tab-icon { font-size: 20px; }

/* 角色创建弹窗 */
.create-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.create-modal[style*="display: flex"] { display: flex !important; }
.create-content {
  background: linear-gradient(180deg, #1e1e3a 0%, #16162e 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255,107,157,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.create-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.create-header h2 {
  font-size: 20px;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.create-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.create-step { padding: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.form-group input:focus { border-color: #ff6b9d; }
.identity-list, .member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.identity-item, .member-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.identity-item b, .member-item b {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}
.identity-item span, .member-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.identity-item.selected, .member-item.selected {
  background: rgba(255,107,157,0.15);
  border-color: #ff6b9d;
}
.pace-list {
  display: flex;
  gap: 8px;
}
.pace-item {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
}
.pace-item.active {
  background: rgba(255,107,157,0.15);
  border-color: #ff6b9d;
  color: #fff;
}
.create-next, .create-prev {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.create-next {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: #fff;
}
.create-prev {
  background: rgba(255,255,255,0.1);
  color: #fff;
  margin-right: 8px;
}
.create-btns {
  display: flex;
  gap: 8px;
}
.create-btns button { flex: 1; margin-top: 0; }

/* 页面通用 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-header h3 { margin: 0; font-size: 16px; color: #fff; }
.add-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ff6b9d;
  background: rgba(255,107,157,0.15);
  color: #ff6b9d;
  font-size: 13px;
  cursor: pointer;
}
.add-btn-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #ff6b9d;
  background: rgba(255,107,157,0.15);
  color: #ff6b9d;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 人脉卡片 */
.contacts-list { padding: 12px 16px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
  position: relative;
}
.contact-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.contact-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,107,157,0.2);
  color: #ff6b9d;
  font-weight: normal;
  margin-left: 6px;
}
.contact-desc { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; margin-bottom: 6px; }
.contact-stats { display: flex; gap: 12px; font-size: 11px; color: rgba(255,255,255,0.5); }
.contact-del {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  cursor: pointer;
}

/* 事件卡片 */
.events-list { padding: 12px 16px; }
.event-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.event-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.event-round {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-weight: normal;
  margin-left: 6px;
}
.event-desc { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 8px; }
.event-del {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  font-size: 11px;
  cursor: pointer;
}

/* 资产页 */
.asset-section { padding: 12px 16px; }
.asset-section + .asset-section { border-top: 1px solid rgba(255,255,255,0.08); }
.goals-list, .assets-list { margin-top: 8px; }
.page-empty-sm { text-align: center; padding: 20px; color: rgba(255,255,255,0.4); font-size: 13px; }
.goal-card, .asset-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.goal-title, .asset-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.goal-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: normal;
  margin-left: 6px;
}
.goal-status.进行中 { background: rgba(59,130,246,0.2); color: #60a5fa; }
.goal-status.已完成 { background: rgba(34,197,94,0.2); color: #4ade80; }
.goal-status.已放弃 { background: rgba(156,163,175,0.2); color: #9ca3af; }
.goal-desc, .asset-desc { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; margin-bottom: 6px; }
.goal-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); margin-bottom: 6px; }
.goal-bar { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #ff6b9d, #c44569); }
.goal-meta, .asset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.goal-meta button, .asset-meta button {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  font-size: 10px;
  cursor: pointer;
}
.asset-count { font-size: 12px; color: #ff6b9d; font-weight: normal; }
.asset-type { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.1); }
.asset-status { padding: 2px 6px; border-radius: 6px; background: rgba(34,197,94,0.15); color: #4ade80; }

/* 添加弹窗通用 */
.add-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.add-modal[style*="display: flex"] { display: flex !important; }
.add-content {
  background: linear-gradient(180deg, #1e1e3a 0%, #16162e 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255,107,157,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.add-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.add-header h3 { margin: 0; font-size: 17px; color: #fff; }
.add-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
}
.add-content .form-group { padding: 0 20px; margin-bottom: 14px; }
.add-content .form-group:first-of-type { margin-top: 16px; }
.add-content .form-group input,
.add-content .form-group textarea,
.add-content .form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.add-content .form-group input:focus,
.add-content .form-group textarea:focus { border-color: #ff6b9d; background: rgba(255,255,255,0.1); }
.add-content .form-group textarea { resize: vertical; font-family: inherit; }
.add-content .form-group input[type="range"] { padding: 0; }
.add-btns {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
}
.add-cancel, .add-save {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.add-cancel { background: rgba(255,255,255,0.1); color: #fff; }
.add-save { background: linear-gradient(135deg, #ff6b9d, #c44569); color: #fff; }

/* 可展开选项 */
.action-toggle {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,107,157,0.3);
  background: rgba(255,107,157,0.1);
  color: #ff6b9d;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
}
.action-toggle:hover { background: rgba(255,107,157,0.2); }

/* 清潭专属 */
.cheongdam-section {
  margin-bottom: 16px;
}
.cheongdam-section h4 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 10px;
  padding-left: 8px;
  border-left: 3px solid #ff6b9d;
}
.case-progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 6px;
  overflow: hidden;
}
.case-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
  transition: width 0.5s;
}
.case-text {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* 新事件弹窗 */
.event-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.event-popup[style*="display: flex"] { display: flex !important; }
.event-popup-content {
  background: linear-gradient(180deg, #1e1e3a 0%, #16162e 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255,107,157,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.event-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.event-popup-header h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.event-popup-round { font-size: 12px; color: rgba(255,255,255,0.5); }
.event-popup-tag {
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
  font-size: 12px;
}
.event-popup-body { padding: 16px 20px; }
.event-popup-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 12px 0 6px;
}
.event-popup-label:first-child { margin-top: 0; }
.event-popup-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.event-popup-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  max-height: 120px;
  overflow-y: auto;
}
.event-popup-people { display: flex; flex-wrap: wrap; gap: 6px; }
.event-person-tag {
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255,107,157,0.15);
  color: #ff6b9d;
  font-size: 12px;
}
.event-popup-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.event-popup-hint {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.event-popup-btns { display: flex; gap: 10px; }
.event-discard {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  cursor: pointer;
}
.event-confirm {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 新人脉弹窗 */
.contact-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-popup[style*="display: flex"] { display: flex !important; }
.contact-popup-content {
  background: linear-gradient(180deg, #1e1e3a 0%, #16162e 100%);
  border-radius: 24px;
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 24px;
  text-align: center;
  border: 1px solid rgba(167,139,250,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.contact-popup-title {
  font-size: 18px;
  color: #a78bfa;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.contact-popup-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 14px;
}
.contact-popup-name {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}
.contact-popup-relation {
  font-size: 13px;
  color: #a78bfa;
  margin-bottom: 10px;
}
.contact-popup-favor {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.contact-popup-favor span { color: #ff6b9d; font-weight: 600; }
.contact-popup-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 0 10px;
}
.contact-popup-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }
.contact-tag-popup {
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255,107,157,0.12);
  color: #ff6b9d;
  font-size: 11px;
}
.contact-popup-btns { display: flex; gap: 10px; }
.contact-add {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.contact-reject {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
}

/* 通用游戏分区 */
.game-section {
  margin-bottom: 16px;
}
.game-section h4 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 10px;
  padding-left: 8px;
  border-left: 3px solid #ff6b9d;
}
.event-card.crisis {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}

/* 流式输出光标 */
.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #ff6b9d;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 0.8s infinite;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* 多选项确认弹窗 */
.multi-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 16px;
}
.multi-choice-content {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.multi-choice-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.multi-choice-header h3 {
  margin: 0;
  font-size: 18px;
  color: #D4AF37;
}
.multi-choice-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  display: block;
}
.multi-choice-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.mc-question {
  margin-bottom: 20px;
}
.mc-question-title {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.5;
}
.mc-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-option {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  line-height: 1.4;
}
.mc-option:active { transform: scale(0.98); }
.mc-option.selected {
  background: rgba(212,175,55,0.12);
  border-color: #D4AF37;
  color: #D4AF37;
}
.multi-choice-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 10px;
}
.multi-cancel {
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
}
.multi-confirm {
  flex: 1.5;
  padding: 12px;
  background: linear-gradient(135deg, #D4AF37, #B8960C);
  border: none;
  border-radius: 10px;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.multi-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== v2.0 新增样式 ========== */

/* 属性栏 */
.attr-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.3);
  overflow-x: auto;
}
.attr-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}
.attr-chip .attr-icon { font-size: 14px; }
.attr-chip .attr-name { color: #ccc; }
.attr-chip .attr-val { color: #fff; font-weight: bold; }

/* 属性详情 */
.attr-detail-list {
  padding: 16px;
}
.attr-detail-item {
  margin-bottom: 16px;
}
.attr-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.attr-detail-header .attr-icon { font-size: 18px; }
.attr-detail-header .attr-name { flex: 1; color: #ddd; }
.attr-detail-header .attr-val { color: #a78bfa; font-weight: bold; }
.attr-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.attr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  border-radius: 4px;
  transition: width 0.3s;
}

/* 人脉卡片 */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
}
.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2px;
}
.contact-tag {
  font-size: 11px;
  background: rgba(167,139,250,0.2);
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: normal;
}
.contact-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.contact-stats {
  font-size: 11px;
  color: #888;
}
.contact-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

/* 事件卡片 */
.event-card {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
  border-left: 3px solid #a78bfa;
}
.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.event-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}
.event-round {
  font-size: 11px;
  color: #888;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 8px;
}
.event-desc {
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 6px;
}
.event-people {
  font-size: 12px;
  color: #a78bfa;
}
.event-delete {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(244,114,182,0.2);
  border: none;
  color: #f472b6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

/* 目标卡片 */
.goal-card {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
}
.goal-title {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}
.goal-status {
  font-size: 10px;
  background: rgba(167,139,250,0.2);
  color: #a78bfa;
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: normal;
}
.goal-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.goal-progress {
  font-size: 11px;
  color: #888;
}
.goal-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
}

/* 资产卡片 */
.asset-card {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
}
.asset-name {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}
.asset-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.asset-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
}
.asset-type {
  background: rgba(167,139,250,0.2);
  color: #a78bfa;
  padding: 1px 6px;
  border-radius: 6px;
}
.asset-status {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
  padding: 1px 6px;
  border-radius: 6px;
}
.asset-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
}

/* typing 动画 */
.typing-bubble {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}
.typing-dot {
  width: 8px;
  height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* 空状态 */
.page-empty-sm {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 13px;
}
