/* ===== 50-round8.css : Round 8 面板（商店/扭蛋/称号/洗练/通知） + 布局文字美化 ===== */
/* ================= Round 8 统一面板样式（商店/扭蛋/称号/洗练/通知） ================= */
/* 复用 overlay 基础类 */
.shop-overlay, .gacha-overlay, .title-overlay, .reforge-overlay, .notify-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 2, 15, 0.82);
  z-index: 180;
  display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.shop-overlay.open, .gacha-overlay.open, .title-overlay.open, .reforge-overlay.open, .notify-overlay.open { display: flex; }

/* 复用 box 基础类 - 赛博朋克玻璃态 */
.shop-box, .gacha-box, .title-box, .reforge-box, .notify-box {
  position: relative;
  background: rgba(12, 6, 35, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 2px;
  padding: 28px 24px 24px;
  width: 92%; max-width: 760px;
  max-height: 84vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* 复用 title 主题色 */
.shop-title, .gacha-title, .title-title, .reforge-title, .notify-title {
  font-size: 22px; font-weight: 700;
  text-align: center; margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.shop-title { color: #34d399; text-shadow: 0 0 12px rgba(52, 211, 153, 0.4); }
.gacha-title { color: #f472b6; text-shadow: 0 0 12px rgba(244, 114, 182, 0.4); }
.title-title { color: #fbbf24; text-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
.reforge-title { color: #fb923c; text-shadow: 0 0 12px rgba(251, 146, 60, 0.4); }
.notify-title { color: #c084fc; text-shadow: 0 0 12px rgba(96, 165, 250, 0.4); }

/* 复用 body 滚动区 */
.shop-body, .gacha-body, .title-body, .reforge-body, .notify-body {
  flex: 1; overflow-y: auto; padding-right: 4px;
}

/* ========== 商店面板 ========== */
.shop-header { text-align: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(99,102,241,0.15); }
.shop-title-line { font-size: 16px; color: #ddd6fe; margin-bottom: 6px; font-weight: 600; }
.shop-countdown { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.shop-countdown b { color: #34d399; }
.shop-coins { font-size: 13px; color: #cbd5e1; }
.shop-coins b { color: #fbbf24; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.shop-card {
  background: rgba(52, 211, 153, 0.04);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 2px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.shop-card:hover { background: rgba(52, 211, 153, 0.08); transform: translateY(-1px); }
.shop-card.sold { opacity: 0.5; }
.shop-card-icon { font-size: 30px; line-height: 1; }
.shop-card-name { font-size: 13px; font-weight: 600; color: #fff; }
.shop-card-desc { font-size: 10px; color: #94a3b8; min-height: 28px; line-height: 1.4; }
.shop-card-amount { font-size: 14px; color: #34d399; font-weight: 700; font-family: monospace; }
.shop-card-price { font-size: 12px; color: #fbbf24; font-family: monospace; }
.shop-card-btn {
  padding: 6px 10px;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.shop-card-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3); }
.shop-card-btn.cant { background: rgba(100,116,139,0.3); color: #94a3b8; cursor: not-allowed; }
.shop-card-btn.cant:hover { transform: none; box-shadow: none; }
.shop-card-sold {
  padding: 6px 10px;
  background: rgba(100,116,139,0.2);
  color: #94a3b8;
  border-radius: 2px;
  font-size: 12px; font-weight: 600;
}

/* ========== 扭蛋机面板 ========== */
.gacha-header { text-align: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(244,114,182,0.15); }
.gacha-title-line { font-size: 16px; color: #fbcfe8; font-weight: 600; margin-bottom: 4px; }
.gacha-stats { font-size: 12px; color: #94a3b8; }
.gacha-stats b { color: #f472b6; }

.gacha-pity {
  background: rgba(244,114,182,0.05);
  border: 1px solid rgba(244,114,182,0.2);
  border-radius: 2px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.pity-row { margin-bottom: 8px; }
.pity-row:last-child { margin-bottom: 0; }
.pity-row span { font-size: 12px; color: #cbd5e1; display: block; margin-bottom: 4px; }
.pity-row b { color: #f472b6; }
.pity-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.pity-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.pity-purple { background: linear-gradient(90deg, #a855f7, #c084fc); }
.pity-gold { background: linear-gradient(90deg, #f59e0b, #d97706); }

.gacha-currency-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gacha-currency {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 12px;
  text-align: center;
}
.gacha-currency.coins { border-color: rgba(251, 191, 36, 0.2); }
.gacha-currency.dm { border-color: rgba(96, 165, 250, 0.2); }
.gacha-currency-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.gacha-currency-cost { font-size: 11px; color: #94a3b8; margin-bottom: 10px; }
.gacha-currency-btns { display: flex; gap: 6px; }
.gacha-pull-btn {
  flex: 1;
  padding: 8px 6px;
  background: linear-gradient(135deg, #f472b6, #db2777);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.gacha-pull-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(244,114,182,0.3); }
.gacha-pull-btn.gacha-pull-10 { background: linear-gradient(135deg, #ec4899, #be185d); }
.gacha-currency.dm .gacha-pull-btn { background: linear-gradient(135deg, #c084fc, #2563eb); }
.gacha-currency.dm .gacha-pull-btn.gacha-pull-10 { background: linear-gradient(135deg, #7c3aed, #1d4ed8); }

.gacha-section-title {
  font-size: 13px; font-weight: 600; color: #ddd6fe;
  margin: 12px 0 8px; padding-left: 6px; border-left: 3px solid #f472b6;
}
.gacha-empty { text-align: center; padding: 30px 20px; color: #94a3b8; font-size: 12px; }
.gacha-history-list { display: flex; flex-direction: column; gap: 6px; }
.gacha-history-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 11px;
}
.gacha-history-time { color: #94a3b8; font-family: monospace; min-width: 70px; }
.gacha-history-dots { flex: 1; display: flex; flex-wrap: wrap; gap: 3px; }
.gacha-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 4px currentColor; }
.gacha-history-cost { color: #fbbf24; font-family: monospace; }

/* ========== 称号面板 ========== */
.title-summary {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 2px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: center;
}
.title-summary-line { font-size: 13px; color: #cbd5e1; margin-bottom: 4px; }
.title-summary-line b { color: #fbbf24; }
.title-active-line { font-size: 12px; color: #94a3b8; }
.title-active-line span { font-weight: 600; }

.title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.title-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--title-color, rgba(255,255,255,0.08));
  border-radius: 2px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.title-card.locked { opacity: 0.5; }
.title-card.is-equipped {
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}
.title-card-icon { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.title-card-name { font-size: 13px; font-weight: 600; color: var(--title-color, #fff); margin-bottom: 4px; }
.title-card-rarity {
  display: inline-block;
  font-size: 9px;
  color: #fff;
  padding: 1px 8px;
  border-radius: 2px;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.title-card-desc { font-size: 10px; color: #94a3b8; min-height: 24px; line-height: 1.4; margin-bottom: 6px; }
.title-card-bonus { font-size: 10px; color: #fbbf24; margin-bottom: 8px; font-family: monospace; }
.title-card-actions { display: flex; flex-direction: column; }
.title-btn {
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  border-radius: 2px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.title-btn:hover { background: rgba(168, 85, 247, 0.3); transform: translateY(-1px); }
.title-btn.equipped { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.5); color: #86efac; }
.title-btn.locked { background: rgba(100,116,139,0.2); border-color: rgba(100,116,139,0.3); color: #64748b; cursor: not-allowed; }

/* ========== 洗练面板 ========== */
.reforge-header {
  text-align: center; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(251,146,60,0.15);
}
.reforge-title-line { font-size: 16px; color: #fed7aa; font-weight: 600; margin-bottom: 4px; }
.reforge-currencies { display: flex; justify-content: center; gap: 18px; font-size: 12px; color: #cbd5e1; }
.reforge-currencies b { color: #fbbf24; }
.reforge-empty { text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 13px; }
.reforge-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; min-height: 320px; }
.reforge-list {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
  max-height: 480px; overflow-y: auto;
}
.reforge-item {
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  transition: all 0.15s;
}
.reforge-item:hover { background: rgba(99,102,241,0.1); }
.reforge-item.selected {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.5);
  color: #ddd6fe;
}
.reforge-item-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reforge-item-slot { font-size: 10px; color: #94a3b8; }

.reforge-detail {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
  padding: 14px;
}
.reforge-detail-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #94a3b8; font-size: 12px; min-height: 280px; }
.reforge-detail-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.reforge-detail-quality {
  display: inline-block;
  font-size: 10px;
  color: #fff;
  padding: 2px 10px;
  border-radius: 2px;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.reforge-detail-section {
  font-size: 12px;
  color: #ddd6fe;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reforge-affix-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.reforge-affix {
  display: flex; align-items: center; gap: 10px;
  background: rgba(251,146,60,0.06);
  border: 1px solid rgba(251,146,60,0.15);
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 12px;
}
.reforge-affix.locked {
  background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.4);
}
.reforge-affix-icon { font-size: 16px; }
.reforge-affix-name { flex: 1; color: #ddd6fe; }
.reforge-affix-val { color: #fbbf24; font-family: monospace; font-weight: 600; }
.reforge-affix-lock-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  transition: all 0.15s;
}
.reforge-affix-lock-btn:hover { background: rgba(99,102,241,0.2); }

.reforge-action-row { margin-bottom: 8px; }
.reforge-do-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.reforge-do-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(251,146,60,0.3); }
.reforge-hint { font-size: 11px; color: #94a3b8; text-align: center; }
.reforge-hint b { color: #a78bfa; }

/* ========== 通知中心面板 ========== */
.notify-stats {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  font-size: 12px; color: #94a3b8;
}
.notify-stats b { color: #c084fc; }
.notify-clear-btn {
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 2px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.notify-clear-btn:hover { background: rgba(239, 68, 68, 0.3); }

.notify-empty { text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 13px; line-height: 1.8; }
.notify-list { display: flex; flex-direction: column; gap: 8px; }
.notify-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 2px;
  padding: 10px 12px;
  transition: all 0.2s;
}
.notify-item.type-achievement { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.05); }
.notify-item.type-error { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }
.notify-item.type-title { border-color: rgba(251, 146, 60, 0.3); background: rgba(251, 146, 60, 0.05); }
.notify-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.notify-body { flex: 1; min-width: 0; }
.notify-title { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.notify-text { font-size: 12px; color: #cbd5e1; line-height: 1.4; }
.notify-time { font-size: 10px; color: #64748b; margin-top: 4px; font-family: monospace; }

/* ========== HUD 称号显示 ========== */
.active-title-ui {
  top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}
.active-title-tag {
  text-shadow: 0 0 8px currentColor;
  letter-spacing: 0.5px;
}

/* ========== 通知红点 ========== */
.notify-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  pointer-events: none;
}

/* ========== Round 8 全局布局/文字美化 ========== */
/* 字号统一 12-14px；行高 1.4-1.6；按钮圆角 7px */
.ui, .ui-btn, button, .shop-card-name, .gacha-currency-name, .title-card-name,
.reforge-detail-name, .reforge-affix-name, .notify-title, .notify-text,
.more-menu-item, .setting-btn {
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* 文字截断 */
.reforge-item-name, .gacha-history-time, .notify-time {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 统一滚动条（所有新面板） */
.shop-body::-webkit-scrollbar,
.gacha-body::-webkit-scrollbar,
.title-body::-webkit-scrollbar,
.reforge-body::-webkit-scrollbar,
.notify-body::-webkit-scrollbar {
  width: 6px;
}
.shop-body::-webkit-scrollbar-track,
.gacha-body::-webkit-scrollbar-track,
.title-body::-webkit-scrollbar-track,
.reforge-body::-webkit-scrollbar-track,
.notify-body::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
}
.shop-body::-webkit-scrollbar-thumb,
.gacha-body::-webkit-scrollbar-thumb,
.title-body::-webkit-scrollbar-thumb,
.reforge-body::-webkit-scrollbar-thumb,
.notify-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 2px;
}
.shop-body::-webkit-scrollbar-thumb:hover,
.gacha-body::-webkit-scrollbar-thumb:hover,
.title-body::-webkit-scrollbar-thumb:hover,
.reforge-body::-webkit-scrollbar-thumb:hover,
.notify-body::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}
