* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a1525;
  --table: linear-gradient(135deg, #0d5c3a 0%, #0a4029 100%);
  --card-bg: #fff;
  --gold: #d4a93a;
  --red: #d23a3a;
  --text: #e8eef6;
  --muted: #94a3b8;
  --panel: #131e33;
  --border: #1f2d47;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-header { flex: 0 0 auto; }

.screen { display: none; }
.screen.active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* 牌桌固定不滚动 — 内部 table-wrap 自适应,action-panel 始终在底部可见 */
#table-screen.active { overflow: hidden; }
/* 其他页面允许内容溢出滚动 */
#lobby.active, #home-screen.active, #auth-screen.active { overflow-y: auto; }
main.home-main, main.bank-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* ---- 大厅 ---- */
#auth-screen { align-items: center; justify-content: center; padding: 20px; overflow: auto; }
#lobby { align-items: center; justify-content: flex-start; padding: 20px; overflow: auto; }
.lobby-box {
  background: var(--panel);
  padding: 40px; border-radius: 16px;
  width: 100%; max-width: 520px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lobby-box.wide { max-width: 760px; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lobby-head h1 { font-size: 28px; margin: 0; }
.me-info { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.me-name { font-weight: 600; color: var(--gold); }
.me-balance b { color: var(--text); font-size: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1; padding: 10px; background: #1a2741;
  border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; cursor: pointer; font-size: 14px;
}
.tab.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.block { width: 100%; }
.hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }
.error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* 科创50 ticker */
.market-ticker {
  background: #0e1a2c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 4px 0 20px;
}
.market-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.market-title { font-weight: 600; color: var(--gold); }
.market-stocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}
.market-stock {
  background: #182438; border-radius: 6px;
  padding: 6px 8px; font-size: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.market-stock .name { color: var(--muted); font-size: 11px; }
.market-stock .price { font-weight: 600; }
.market-stock .pct.up { color: #d23a3a; }
.market-stock .pct.down { color: #2db855; }
.market-stock .pct.flat { color: var(--muted); }
.market-index-val.up { color: #ff4d4d; }
.market-index-val.down { color: #2db855; }

/* 买入弹窗 */
.modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.modal-actions button { flex: 1; }
#buyin-slider { width: 100%; margin: 12px 0; }
#buyin-quick { display: flex; gap: 6px; margin-top: 8px; }
#buyin-quick button { flex: 1; }

/* 大厅 tabs */
.lobby-tabs { margin: 18px 0 12px; }
.lobby-tab-panel { display: block; }
.lobby-tab-panel.hidden { display: none; }
.section-title { margin: 16px 0 10px; font-size: 14px; color: var(--muted); }

/* 股票表格 */
.stock-list-head, .stock-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
}
.stock-list-head { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.stock-list {
  max-height: 380px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.stock-row {
  background: #182438; border-radius: 6px;
  border: 1px solid transparent;
}
.stock-row:hover { border-color: var(--gold); }
.stock-row .code { color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.stock-row .price { font-weight: 600; }
.stock-row .up { color: #ff4d4d; }
.stock-row .down { color: #2db855; }
.stock-row .flat { color: var(--muted); }
.stock-row button {
  padding: 6px 10px; font-size: 12px;
  background: var(--gold); color: #1a1a1a;
}

/* 持仓汇总 */
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.portfolio-summary .stat-box {
  background: #182438; border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border);
}
.portfolio-summary .stat-box .label { font-size: 11px; color: var(--muted); }
.portfolio-summary .stat-box b { display: block; font-size: 18px; margin-top: 4px; }
.portfolio-summary .stat-box .up { color: #ff4d4d; }
.portfolio-summary .stat-box .down { color: #2db855; }

/* 成交流水 */
.trades-list {
  max-height: 200px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px;
}
.trade-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  padding: 6px 10px;
  background: #182438; border-radius: 6px;
}
.trade-item .buy { color: #ff4d4d; }
.trade-item .sell { color: #2db855; }

@media (max-width: 600px) {
  .stock-list-head, .stock-row {
    grid-template-columns: 1fr 1fr auto;
    font-size: 12px;
  }
  .stock-row .code, .stock-row .name { grid-column: span 1; }
  .stock-list-head span:nth-child(3),
  .stock-list-head span:nth-child(4) { display: none; }
}

/* ===========================
   通用页面 header / nav
   =========================== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand { font-size: 18px; font-weight: 600; color: var(--gold); text-decoration: none; white-space: nowrap; }
.page-nav { display: flex; gap: 4px; flex-wrap: nowrap; }
.nav-link {
  padding: 8px 14px; color: var(--muted);
  text-decoration: none; border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  display: inline-block;
}
.nav-link:hover { background: #1a2741; color: var(--text); }
.nav-link.active { background: var(--gold); color: #1a1a1a; }

/* 下拉菜单 */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown button.nav-link { background: transparent; cursor: pointer; }
.nav-dropdown.active button.nav-link { background: var(--gold); color: #1a1a1a; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; min-width: 200px; z-index: 200;
  padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 13px;
  white-space: nowrap;
}
.dropdown-item:hover { background: #1a2741; color: var(--gold); }

/* 顶部 4 币余额条 */
.me-info .bal {
  background: #182438; padding: 3px 8px; border-radius: 12px;
  font-size: 11px; font-family: ui-monospace, monospace;
  display: inline-flex; align-items: center; gap: 3px;
}
.me-info .bal b { color: var(--gold); font-size: 12px; }
.me-info .bal.cny b { color: #ffd700; }
.me-info .bal.usd b { color: #5dd896; }
.me-info .bal.hkd b { color: #ff8c42; }
.me-info .bal.usdt b { color: #b15dff; }
.me-info { gap: 4px; flex-wrap: wrap; }

/* (旧 800px 强制 static 规则已删,mobile dropdown 改为绝对定位 + 触发即开) */

/* 主页 */
.home-main {
  max-width: 900px; margin: 0 auto;
  padding: 30px 20px;
  display: flex; flex-direction: column; gap: 24px;
}
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.app-card {
  background: var(--panel); padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.2s;
}
.app-card:hover {
  background: #1a2741; border-color: var(--gold);
  transform: translateY(-2px);
}
.app-card-icon { font-size: 32px; line-height: 1; }
.app-card-title { font-size: 18px; font-weight: 600; }
.app-card-sub { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* 炒股页 双栏布局 */
.stocks-main {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  padding: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.stock-list-pane, .stock-detail-pane {
  background: var(--panel);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.stock-list-pane .stock-list {
  flex: 1; max-height: none;
  overflow-y: auto;
}
.stock-list-pane .stock-row {
  cursor: pointer;
  grid-template-columns: 1fr 1.4fr auto auto;
}
.stock-list-pane .stock-row.active {
  background: #2a3b5f;
  border-color: var(--gold);
}
.market-summary {
  padding: 8px 4px 12px;
  font-size: 13px;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.market-summary b { font-size: 16px; }
.market-summary .up { color: #ff4d4d; }
.market-summary .down { color: #2db855; }
.empty-detail {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--muted);
}
.detail { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.detail.hidden { display: none; }
.detail-head { display: flex; justify-content: space-between; align-items: center; }
.detail-head h2 { font-size: 22px; color: var(--gold); }
.detail-head .muted { font-family: ui-monospace, monospace; font-size: 12px; }
.detail-quote { text-align: right; }
.detail-quote b { font-size: 28px; display: block; }
.detail-quote .up { color: #ff4d4d; }
.detail-quote .down { color: #2db855; }

.kline-wrap {
  background: #0e1a2c;
  padding: 12px;
  border-radius: 8px;
  display: flex; flex-direction: column;
  gap: 6px;
  height: 480px;
}
/* Chart.js 推荐:每个 canvas 都包在 position:relative 的 wrapper 里,canvas absolute 填充 */
.chart-pane { position: relative; width: 100%; }
.chart-pane.main { flex: 1; min-height: 0; }
.chart-pane.sub { height: 80px; flex-shrink: 0; }
.chart-pane.sub.hidden { display: none; }
.chart-pane canvas {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}
.kline-toolbar { display: flex; gap: 4px; margin-bottom: 8px; align-items: center; }
.ind-toggle { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; user-select: none; cursor: pointer; }
.ind-toggle input { margin: 0; }

/* 基本面 */
.fundamentals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.fundamentals .fund {
  background: #182438; border-radius: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  font-size: 12px;
}
.fundamentals .fund-label { color: var(--muted); font-size: 11px; }
.fundamentals .fund-val { font-weight: 600; margin-top: 2px; }
.fundamentals .fund-val.up { color: #ff4d4d; }
.fundamentals .fund-val.down { color: #2db855; }

/* ===== 倒爷 ===== */
.trader-main {
  max-width: 1100px; margin: 0 auto;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.trader-card {
  background: var(--panel); padding: 16px; border-radius: 12px;
  border: 1px solid var(--border);
}
.trader-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.trader-head h2 { font-size: 20px; flex-shrink: 0; }
.trader-stats { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.stat-item { font-size: 13px; padding: 4px 10px; background: #182438; border-radius: 14px; }
.stat-item b { color: var(--gold); }
.stat-item.gold { background: linear-gradient(135deg, #d4a93a44, #d4a93a22); }
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.city-btn {
  background: #182438; border-radius: 8px;
  padding: 16px; text-align: center;
  cursor: pointer; border: 1px solid var(--border);
  font-size: 16px; transition: all 0.15s;
}
.city-btn:hover { background: #243353; border-color: var(--gold); }
.city-btn.current {
  background: linear-gradient(135deg, #d4a93a44, #d4a93a22);
  border-color: var(--gold); cursor: default;
  position: relative;
}
.city-btn.current::after { content: '⭐当前'; font-size: 11px; color: var(--gold); display: block; margin-top: 4px; }

.market-table { background: #0e1a2c; border-radius: 8px; overflow: hidden; }
.market-head-row, .market-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 10px; align-items: center;
  padding: 10px 14px;
}
.market-head-row { background: #1a2741; color: var(--muted); font-size: 12px; }
.market-row { border-top: 1px solid var(--border); font-size: 13px; }
.market-row .price-cell { font-weight: 600; color: var(--gold); }
.market-row button { padding: 4px 12px; font-size: 12px; margin-right: 4px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.compare-table th, .compare-table td {
  padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--border);
}
.compare-table th { background: #1a2741; color: var(--muted); font-weight: normal; font-size: 11px; }
.compare-table td.cell-min { background: rgba(45,184,85,0.15); color: #5dd896; font-weight: 600; }
.compare-table td.cell-max { background: rgba(255,77,77,0.15); color: #ff8080; font-weight: 600; }

/* ===== 拍卖盲猜 ===== */
.auction-main {
  max-width: 1200px; margin: 0 auto;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.auction-card {
  background: var(--panel); padding: 16px; border-radius: 12px;
  border: 1px solid var(--border);
}
.budget-bar {
  background: #0e1a2c; padding: 10px 14px;
  border-radius: 6px; font-size: 13px; margin-top: 10px;
}
.budget-bar b { color: var(--gold); }
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.item-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.item-card.revealed { border-color: var(--gold); }
.item-img {
  aspect-ratio: 4/3; background: #0a1525;
  display: flex; align-items: center; justify-content: center;
}
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-img .no-img { color: var(--muted); font-size: 13px; }
.item-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.item-title { font-weight: 600; font-size: 14px; }
.item-desc { font-size: 12px; line-height: 1.4; max-height: 60px; overflow: hidden; }
.bid-row { display: flex; gap: 6px; align-items: center; }
.bid-input {
  flex: 1; padding: 6px 8px; background: #0a1525;
  border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; font-size: 13px;
}
.bid-btn { padding: 6px 12px; font-size: 12px; }
.reveal-line { font-size: 13px; }
.score-line { font-size: 16px; font-weight: 600; margin-top: 4px; }
.score-line.up { color: #ff4d4d; }
.score-line.down { color: #2db855; }
.period-btn {
  background: #1a2741; color: var(--muted);
  padding: 5px 12px; font-size: 12px;
  border: 1px solid var(--border);
}
.period-btn.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

.stock-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.stock-stats .stat-box {
  background: #182438; border-radius: 6px;
  padding: 10px;
  border: 1px solid var(--border);
}
.stock-stats .stat-box .label { font-size: 11px; color: var(--muted); }
.stock-stats .stat-box b { display: block; font-size: 15px; margin-top: 4px; }
.stock-stats .stat-box .up { color: #ff4d4d; }
.stock-stats .stat-box .down { color: #2db855; }

.trade-pane {
  background: #0e1a2c;
  padding: 14px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.trade-row {
  display: flex; align-items: center; gap: 10px;
}
.trade-row label { width: 60px; color: var(--muted); font-size: 13px; }
.trade-row input {
  flex: 1; padding: 8px;
  background: #0a1525; border: 1px solid var(--border);
  color: var(--text); border-radius: 6px;
}
.held { font-size: 12px; text-align: center; padding-top: 4px; }
.held .up { color: #ff4d4d; }
.held .down { color: #2db855; }

@media (max-width: 900px) {
  .stocks-main {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .stock-list-pane { max-height: 50vh; }
}
@media (max-width: 600px) {
  /* 紧凑顶栏 */
  .page-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand { font-size: 16px; }
  /* nav 改为水平滚动条,不换行不挤压 */
  .page-nav {
    order: 3; width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .page-nav::-webkit-scrollbar { display: none; }
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .nav-dropdown { flex-shrink: 0; position: static; }
  .nav-dropdown button.nav-link {
    padding: 6px 10px; font-size: 13px;
    border: none;
  }
  /* 抽屉打开时背景遮罩 */
  body.nav-drawer-open::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 9998;
  }
}

/* mobile 底部抽屉(menu 元素已被 JS 移到 body 末尾,所以不在 mobile media 内嵌套) */
@media (max-width: 600px) {
  .dropdown-menu.mobile-drawer-open {
    display: block !important;
    position: fixed !important;
    top: auto !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important;
    max-height: 70vh; overflow-y: auto;
    border-radius: 14px 14px 0 0;
    padding: 14px 10px 24px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.7);
    z-index: 9999;
    background: var(--panel);
    border: 1px solid var(--border);
    border-bottom: none;
    animation: drawer-slide-up 0.18s ease-out;
  }
  .dropdown-menu.mobile-drawer-open .dropdown-item {
    padding: 14px 16px; font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .dropdown-menu.mobile-drawer-open .dropdown-item:last-child { border-bottom: none; }
  @keyframes drawer-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  /* 货币余额:更紧凑 */
  .me-info { font-size: 11px; gap: 3px; }
  .me-info .me-name { font-size: 12px; }
  .me-info .bal {
    padding: 2px 6px; font-size: 10px;
  }
  .me-info .bal b { font-size: 11px; }
  /* 退出按钮缩小 */
  .me-info button#logout-btn {
    padding: 4px 10px; font-size: 12px;
  }
  /* 其他页面适配 */
  .stocks-main { padding: 8px; }
  /* 移动端:主 K 线区放大,让用户看清折线 + 蜡烛影线;volume/MACD 缩高 */
  .kline-wrap { height: 380px; gap: 4px; }
  .chart-pane.main { flex: 2.2; min-height: 200px; }  /* 主图占大部分 */
  .chart-pane.sub { height: 60px; }
  .kline-toolbar { flex-wrap: wrap; }
  .ind-toggle { font-size: 11px; }
}

/* 排行榜(精致版)*/
.board-section { background: var(--panel); padding: 18px; border-radius: 12px; border: 1px solid var(--border); }
.lb-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.lb-fx { font-size: 12px; }
/* 排行榜:PC 端紧凑(行高减小 + 大屏 2 列并排) */
.leaderboard { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 1100px) { .leaderboard { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; } }
.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px; align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #1a2741 0%, #182438 100%);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.12s, box-shadow 0.12s;
}
.lb-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.lb-row.me { border: 1px solid var(--gold); box-shadow: 0 0 0 2px rgba(212,169,58,0.18); }
.lb-row.lb-podium-1 {
  background: linear-gradient(135deg, #3d2a08 0%, #2a1f10 100%);
  border-color: #d4a93a;
}
.lb-row.lb-podium-2 {
  background: linear-gradient(135deg, #2c2c3d 0%, #1f1f2e 100%);
  border-color: #c0c0c0;
}
.lb-row.lb-podium-3 {
  background: linear-gradient(135deg, #322012 0%, #211410 100%);
  border-color: #cd7f32;
}
.lb-rank {
  font-size: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.lb-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-line1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lb-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-total { font-weight: 800; color: var(--gold); font-size: 15px; flex-shrink: 0; }
.lb-bar {
  background: rgba(0,0,0,0.35);
  height: 4px; border-radius: 2px;
  overflow: hidden;
}
.lb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e6c14d);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.lb-podium-1 .lb-bar-fill { background: linear-gradient(90deg, #ffd700, #ffea80); }
.lb-podium-2 .lb-bar-fill { background: linear-gradient(90deg, #d4d4d4, #f0f0f0); }
.lb-podium-3 .lb-bar-fill { background: linear-gradient(90deg, #cd7f32, #e09858); }
.lb-line2 { font-size: 11px; line-height: 1.4; }

/* 银行 */
.bank-main {
  max-width: 1100px; margin: 0 auto;
  padding: 20px;
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.bank-card {
  background: var(--panel); padding: 18px; border-radius: 12px;
  border: 1px solid var(--border);
}
.bank-card:first-of-type { grid-column: 1 / -1; }
.fx-display {
  background: linear-gradient(135deg, #133, #244);
  padding: 16px; border-radius: 8px; margin-bottom: 16px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.fx-rate { display: flex; align-items: baseline; gap: 6px; }
.fx-rate b { font-size: 28px; color: var(--gold); }
.fx-form .tabs { margin-bottom: 12px; }
.prod-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.prod-tab {
  flex: 1; background: #1a2741; color: var(--muted);
  border: 1px solid var(--border); padding: 8px; font-size: 13px;
}
.prod-tab.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.product-list { display: flex; flex-direction: column; gap: 6px; }
.product-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 12px; background: #182438; border-radius: 8px;
}
.product-name { font-weight: 600; }
.product-sub { font-size: 12px; }
.product-apr b { color: var(--gold); font-size: 18px; margin-right: 4px; }
.account-list { display: flex; flex-direction: column; gap: 6px; }
.account-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto auto;
  gap: 10px; align-items: center;
  padding: 10px; background: #182438; border-radius: 6px;
  font-size: 13px;
}
.account-row button { padding: 4px 10px; font-size: 12px; }
.account-row .badge {
  background: var(--gold); color: #1a1a1a; padding: 2px 8px;
  border-radius: 10px; font-size: 11px; text-align: center;
}

/* 贷款 */
.loan-products { display: flex; flex-direction: column; gap: 6px; }
.loan-list { display: flex; flex-direction: column; gap: 6px; }
.loan-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr 1fr 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  background: #182438; border-radius: 6px;
  font-size: 13px;
}
.loan-row.repaid { opacity: 0.55; }
.loan-row.overdue { background: #3b1c1c; border-left: 3px solid var(--red); }
.loan-row button { padding: 4px 12px; font-size: 12px; }
.loan-row .badge {
  padding: 2px 8px; border-radius: 10px; font-size: 11px; text-align: center;
}
.badge-green { background: #2db855; color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-grey { background: #4a5666; color: var(--muted); }

/* ===== 拉斯维加斯 hub ===== */
.vegas-main {
  max-width: 1200px; margin: 0 auto;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.vegas-hero {
  background: linear-gradient(135deg, #2a1738, #441e3a);
  padding: 18px 22px; border-radius: 12px;
  border: 1px solid var(--gold);
}
.vegas-hero h1 { font-size: 22px; color: var(--gold); margin-bottom: 4px; }
.vegas-game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.game-card {
  background: var(--panel); padding: 14px; border-radius: 10px;
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.15s;
  min-height: 130px;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.game-card.poker:hover { background: #1b2538; }
.game-card.zjh:hover { background: #2a1c2e; }
.game-emoji { font-size: 22px; }
.game-title { font-size: 15px; font-weight: 600; color: var(--gold); }
.game-sub { color: var(--muted); font-size: 12px; line-height: 1.4; flex: 1; }
.game-rooms {
  font-size: 11px; color: #34d399;
  background: rgba(52,211,153,0.1);
  padding: 3px 8px; border-radius: 12px;
  display: inline-block; margin-top: 4px;
  width: fit-content;
}
.vegas-card {
  background: var(--panel); padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border);
}
.vegas-card .section-title { font-size: 14px; margin-bottom: 8px; }
@media (max-width: 480px) {
  .vegas-game-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .game-card { padding: 10px; min-height: 100px; }
  .game-emoji { font-size: 18px; }
  .game-title { font-size: 13px; }
  .game-sub { font-size: 11px; }
}

.center-msg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--muted); font-size: 14px;
}

/* ===== 比鸡 ===== */
.biji-main {
  max-width: 1200px; margin: 0 auto;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.biji-status {
  background: linear-gradient(135deg, #2a3f5b, #1a2f4b);
  padding: 12px 18px; border-radius: 8px;
  font-size: 15px; text-align: center;
  border: 1px solid var(--border);
}
.biji-piles {
  display: flex; flex-direction: column; gap: 8px;
}
.pile {
  background: #0e1a2c; padding: 12px; border-radius: 8px;
  border: 1px solid var(--border);
}
.pile-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.pile-score { color: var(--gold); font-weight: 600; }
.pile-slots {
  min-height: 80px; display: flex; gap: 8px; flex-wrap: wrap;
  cursor: pointer;
}
.card-slot-empty {
  width: 50px; height: 70px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 6px;
}
.biji-hand {
  background: var(--panel); padding: 14px; border-radius: 8px;
  border: 1px solid var(--border);
}
.hand-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  min-height: 90px;
}
.hand-row .card.selected {
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(212, 169, 58, 0.5);
  border-color: var(--gold);
}
.biji-actions {
  display: flex; gap: 8px; align-items: center;
}
.biji-others {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.other-player {
  background: #182438; padding: 10px; border-radius: 8px;
  border: 1px solid var(--border); font-size: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.other-player.you { border-color: var(--gold); background: #2a3a5a; }
.op-name { font-weight: 600; }
.op-chips { color: var(--gold); }
.op-status { color: var(--muted); }
.biji-result {
  background: var(--panel); padding: 16px; border-radius: 12px;
  border: 1px solid var(--gold);
}
.biji-result h3 { color: var(--gold); margin-bottom: 12px; }
.settle-row {
  display: grid; grid-template-columns: 1fr 2fr auto;
  gap: 12px; padding: 8px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.settle-name { font-weight: 600; }
.settle-piles { font-size: 12px; color: var(--muted); }
.settle-piles-detail {
  font-size: 11px; color: var(--muted);
  padding: 4px 8px; margin-bottom: 8px;
}
.mini-card {
  display: inline-block; padding: 1px 4px;
  background: #fff; color: #000;
  border-radius: 2px; margin: 0 1px;
  font-family: monospace; font-size: 11px;
}
.mini-card.red { color: #d00; }

/* lasvegas hub 比鸡卡 */
.game-card.biji:hover { background: #2e2418; }

/* ===== 店王 ===== */
.sk-lobby { max-width: 900px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.sk-hero {
  background: linear-gradient(135deg, #1b3a4b, #2a4f3a);
  padding: 24px; border-radius: 12px; border: 1px solid var(--gold);
}
.sk-hero h1 { color: var(--gold); font-size: 26px; margin-bottom: 6px; }
.sk-rules ul { list-style: none; padding: 0; }
.sk-rules ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sk-rules { background: var(--panel); padding: 18px; border-radius: 12px; border: 1px solid var(--border); }
.sk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sk-mode {
  background: var(--panel); padding: 18px; border-radius: 12px;
  border: 1px solid var(--border);
}
.sk-mode.highlight { border-color: var(--gold); background: #2a2418; }
.sk-mode h3 { margin-bottom: 8px; }
.sk-mode p { font-size: 13px; margin-bottom: 12px; }
.prize-table { font-size: 13px; line-height: 1.7; margin-bottom: 12px; color: var(--muted); }
.prize-table b { color: var(--gold); }
.sk-board, .sk-ach { background: var(--panel); padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.ach-item { padding: 8px 10px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.ach-item.earned { color: var(--gold); }
.ach-item.locked { color: var(--muted); }
.ach-icon { margin-right: 6px; }

/* 游戏画面 */
.sk-game { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 1100px; margin: 0 auto; }
.sk-statusbar {
  background: var(--panel); padding: 14px; border-radius: 12px;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sk-time { display: flex; gap: 8px; align-items: baseline; }
.sk-time span:nth-child(1) { font-weight: 600; }
.sk-time span:nth-child(2) { font-size: 22px; color: var(--gold); font-family: ui-monospace, monospace; }
.sk-stats { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.sk-stat {
  background: #182438; padding: 6px 12px; border-radius: 20px;
  display: flex; gap: 6px; align-items: baseline;
  font-size: 12px;
}
.sk-stat b { color: var(--gold); font-size: 14px; }
.sk-controls {
  background: var(--panel); padding: 14px; border-radius: 12px;
  border: 1px solid var(--border);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.sk-shop-info { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.sk-shop-info b { color: var(--gold); }
.sk-actions { flex: 1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.price-row { display: flex; align-items: center; gap: 8px; font-size: 12px; flex: 1; min-width: 240px; }
.price-row input[type="range"] { flex: 1; min-width: 100px; }

.sk-event {
  background: linear-gradient(135deg, #2a1f3a, #3a1f2a);
  padding: 18px; border-radius: 12px; border: 2px solid var(--gold);
  animation: slide-in 0.3s ease;
}
.sk-event.hidden { display: none; }
@keyframes slide-in { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ev-text { font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.ev-timer { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.ev-timer b { color: var(--red); font-size: 16px; }
.ev-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-options button { padding: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.ev-delta { font-size: 11px; opacity: 0.8; font-weight: normal; }

.sk-ticker {
  background: var(--panel); padding: 14px; border-radius: 12px;
  border: 1px solid var(--border);
  max-height: 200px; overflow-y: auto;
}
.sk-ticker h4 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ticker-item { padding: 4px 0; font-size: 12px; border-bottom: 1px dashed var(--border); }
.ticker-item.down { color: #ff8080; }
.ticker-item.event { color: var(--gold); font-weight: 600; }

.res-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin: 12px 0; font-size: 13px;
}
.res-stats div { background: #182438; padding: 8px; border-radius: 6px; text-align: center; }
.res-stats b { color: var(--gold); display: block; font-size: 16px; }

@media (max-width: 700px) {
  .sk-modes { grid-template-columns: 1fr; }
  .ev-options { grid-template-columns: 1fr; }
}

/* ===== 每日小游戏 ===== */
.mg-main { max-width: 1100px; margin: 0 auto; padding: 20px; }
.mg-hero {
  background: linear-gradient(135deg, #3b2d1a, #2d3b1a);
  padding: 22px; border-radius: 12px; border: 1px solid var(--gold);
  margin-bottom: 16px;
}
.mg-hero h1 { color: var(--gold); font-size: 24px; margin-bottom: 4px; }
.mg-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.mg-card {
  background: var(--panel); padding: 18px; border-radius: 12px;
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.mg-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.mg-icon { font-size: 36px; margin-bottom: 8px; }
.mg-title { font-weight: 600; font-size: 16px; }
.mg-sub { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.mg-status { margin-top: 10px; font-size: 13px; }

/* 领奖弹窗 */
.reward-emoji { font-size: 60px; }

/* 签到 */
.ck-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px; margin: 14px 0;
}
.ck-day {
  background: #182438; padding: 10px 4px; border-radius: 6px;
  text-align: center; font-size: 11px; border: 1px solid var(--border);
}
.ck-day.claimed { background: #2a4f3a; border-color: var(--gold); }
.ck-day .ck-r { color: var(--gold); font-weight: 600; margin-top: 4px; font-size: 12px; }

/* 转盘 */
.wheel-wrap { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 24px; color: var(--red); z-index: 2;
}
.wheel {
  width: 280px; height: 280px; border-radius: 50%;
  border: 4px solid var(--gold);
  position: relative;
  transition: transform 3s cubic-bezier(.2,.7,.2,1);
}
.wheel-label {
  position: absolute; top: 50%; left: 50%;
  transform-origin: 0 0; font-size: 11px; color: #fff;
  font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  white-space: nowrap;
}

/* 打地鼠 */
.mole-info { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.mole-info b { color: var(--gold); font-size: 18px; }
.mole-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.mole-cell {
  aspect-ratio: 1; background: #2a4f3a; border-radius: 12px;
  position: relative; cursor: pointer; transition: transform 0.1s;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; user-select: none;
}
.mole-cell.active::after { content: '🐹'; font-size: 40px; }
.mole-cell.active.gold::after { content: '👑'; font-size: 40px; }
.mole-cell:active { transform: scale(0.95); }

/* 算术 */
.math-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.math-info b { color: var(--gold); font-size: 16px; }
.math-q {
  font-size: 36px; padding: 24px; margin: 14px 0;
  background: #0e1a2c; border-radius: 12px;
  font-family: ui-monospace, monospace;
}
.math-q.shake { animation: shake 0.3s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.math-input input {
  width: 100%; padding: 14px; font-size: 22px;
  background: #0a1525; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  text-align: center;
}

/* 翻牌 */
.mem-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.mem-info b { color: var(--gold); }
.mem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-bottom: 14px;
}
.mem-cell {
  aspect-ratio: 1; background: #2a3b5f;
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; user-select: none;
  transition: transform 0.2s;
}
.mem-cell.flipped { background: #d4a93a; color: #1a1a1a; }

/* 2048 */
.p2048-info { display: flex; justify-content: space-around; margin-bottom: 10px; font-size: 13px; }
.p2048-info b { color: var(--gold); font-size: 18px; }
.p2048-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 6px; padding: 8px; background: #182438; border-radius: 8px;
  margin: 14px auto; aspect-ratio: 1;
  width: 100%; max-width: 320px;
  box-sizing: border-box;
}
.p2048-cell {
  background: #2a3b5f; border-radius: 6px;
  aspect-ratio: 1;
  min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; color: #fff;
  transition: background 0.1s;
}
.p2048-cell.t2 { background: #3a4a6c; }
.p2048-cell.t4 { background: #4a5a7c; }
.p2048-cell.t8 { background: #d4a93a; }
.p2048-cell.t16 { background: #d49a3a; }
.p2048-cell.t32 { background: #c14e4e; }
.p2048-cell.t64 { background: #c12e4e; font-size: 20px; }
.p2048-cell.t128 { background: #9b5dbf; font-size: 20px; }
.p2048-cell.t256 { background: #5db05d; font-size: 18px; }
.p2048-cell.t512 { background: #5dbfbf; font-size: 18px; }
.p2048-cell.t1024 { background: #ff6b6b; font-size: 16px; }
.p2048-cell.t2048 { background: #ffd700; color: #1a1a1a; font-size: 16px; }
.p2048-cell.t4096 { background: #ff1493; font-size: 14px; }

/* ===== 主页分区 ===== */
.home-sections { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .home-sections { grid-template-columns: 1fr 1fr; } }
.home-section { background: var(--panel); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); }
.hs-title { font-size: 14px; margin-bottom: 10px; color: var(--gold); }
.hs-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hs-card {
  background: #182438; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
  transition: all 0.15s;
}
.hs-card:hover { background: #243353; border-color: var(--gold); transform: translateY(-1px); }
.hs-card b { font-size: 13px; }
.hs-card span { color: var(--muted); font-size: 11px; }

/* ===== 加密页 ===== */
.crypto-main { max-width: 1100px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.coin-list, .my-coins { display: flex; flex-direction: column; gap: 4px; }
.coin-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 8px 12px; background: #182438; border-radius: 6px;
  font-size: 13px;
}
.coin-row .coin-name { font-weight: 600; }
.coin-row .coin-price { font-family: ui-monospace, monospace; color: var(--gold); }
.coin-row button { padding: 4px 12px; font-size: 12px; }
.ex-grid { display: flex; flex-direction: column; gap: 10px; }
.ex-row { display: flex; gap: 10px; align-items: center; }
.ex-row select {
  flex: 1; padding: 8px; background: #0a1525;
  border: 1px solid var(--border); color: var(--text); border-radius: 6px;
}

/* ===== 老虎机 ===== */
.slots-main { max-width: 800px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.slots-hero { background: linear-gradient(135deg, #5a1f1f, #5a3a1f); padding: 18px; border-radius: 12px; border: 1px solid var(--gold); }
.slots-hero h1 { color: var(--gold); font-size: 22px; }
.slots-machine {
  background: var(--panel); padding: 24px; border-radius: 12px;
  border: 2px solid var(--gold); text-align: center;
}
.reels { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.reel {
  width: 88px; height: 88px; background: #0e1a2c;
  border: 3px solid #d4a93a; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.reel.spinning { animation: reel-spin 0.1s linear infinite; }
@keyframes reel-spin { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
.slots-result { font-size: 16px; padding: 10px; min-height: 24px; }
.bet-row { display: flex; justify-content: center; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.bet-btn {
  padding: 6px 12px; background: #182438; border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; cursor: pointer; font-size: 13px;
}
.bet-btn.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.payout-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.payout-table th, .payout-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.slots-table, .slots-log { background: var(--panel); padding: 14px; border-radius: 12px; border: 1px solid var(--border); }
#spin-log div { padding: 4px 0; font-size: 12px; border-bottom: 1px dashed var(--border); }

/* ===== 21 点 ===== */
.bj-main { max-width: 900px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bj-hero { background: linear-gradient(135deg, #1a4a3a, #1a3a4a); padding: 18px; border-radius: 12px; border: 1px solid var(--gold); }
.bj-hero h1 { color: var(--gold); font-size: 22px; }
.bj-table { background: linear-gradient(180deg, #0e3a2a, #0a2018); padding: 20px; border-radius: 16px; border: 2px solid var(--gold); }
.bj-dealer, .bj-player { padding: 10px 0; }
.bj-vs { text-align: center; color: var(--gold); font-size: 22px; padding: 8px 0; }
.bj-cards { display: flex; gap: 8px; margin-top: 8px; min-height: 90px; flex-wrap: wrap; }
.bj-card {
  width: 60px; height: 88px; background: #fff; color: #000;
  border-radius: 6px; display: flex; flex-direction: column;
  justify-content: space-between; padding: 6px 8px;
  font-weight: 700; font-size: 16px;
}
.bj-card.red { color: #d00; }
.bj-card.back { background: #1a2741; color: #fff; align-items: center; justify-content: center; font-size: 32px; }
/* ── 分牌手展示 ── */
#bj-hands { display: flex; gap: 12px; flex-wrap: wrap; }
.bj-split-hand {
  flex: 1; min-width: 140px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #444;
  border-radius: 8px; padding: 8px 10px;
  opacity: 0.65; transition: opacity .2s, border-color .2s;
}
.bj-split-hand.active {
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 0 8px rgba(212,175,55,.35);
}
.bj-split-hand.done { opacity: 0.5; }
.bj-split-label {
  font-size: 12px; color: var(--gold);
  margin-bottom: 4px; font-weight: 600;
}

.bj-result {
  background: var(--panel); padding: 12px; border-radius: 8px;
  border: 1px solid var(--gold); text-align: center; font-size: 16px;
}
.bj-result.hidden { display: none; }
.bj-controls { background: var(--panel); padding: 14px; border-radius: 12px; border: 1px solid var(--border); }
.bj-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.bj-actions button { padding: 10px 18px; font-size: 14px; }
.bj-actions .hidden { display: none; }

@media (max-width: 800px) {
  .bank-main { grid-template-columns: 1fr; }
}

/* 小电视:右上角悬浮 PiP 窗口,可拖动,不挤占牌桌空间 */
.tv-area {
  position: fixed;
  top: 80px; right: 16px;
  width: 320px;
  background: var(--panel);
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  z-index: 70;
  resize: both;
  min-width: 200px; min-height: 140px;
  max-width: 90vw;
}
.tv-area.hidden { display: none; }
.tv-head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: #0e1a2c;
  font-size: 12px;
  cursor: move;
  user-select: none;
}
.tv-head button { padding: 3px 8px; font-size: 11px; }
.tv-head .muted { font-size: 11px; }
.tv-frame-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
}
.tv-frame-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
#tv-open.hidden { display: none; }
body.tv-hidden-self .tv-area { width: auto !important; }
body.tv-hidden-self .tv-frame-wrap { display: none; }
body.tv-hidden-self .tv-head::after {
  content: '已隐藏'; color: var(--muted); font-size: 11px; margin-left: 4px;
}

@media (max-width: 768px) {
  .tv-area { width: 240px; top: 70px; right: 8px; }
}

/* 表单 select 样式 */
.modal-box select, .modal-box input {
  width: 100%; margin-top: 4px;
  padding: 10px; background: #0a1525;
  border: 1px solid var(--border); color: var(--text);
  border-radius: 6px;
}
.modal-box label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.lobby-box h1 { text-align: center; font-size: 32px; margin-bottom: 24px; color: var(--gold); }
.lobby-box h2 { font-size: 16px; margin: 20px 0 12px; color: var(--muted); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%; padding: 12px;
  background: #0a1525; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; font-size: 15px;
}
.room-list { display: flex; flex-direction: column; gap: 10px; }
.room-card {
  background: #1a2741; padding: 14px 18px;
  border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.15s;
}
.room-card:hover { background: #243353; border-color: var(--gold); }
.room-card .room-meta { display: flex; flex-direction: column; gap: 4px; }
.room-card .room-name { font-weight: 600; }
.room-card .room-sub { font-size: 12px; color: var(--muted); }
.room-card .room-status {
  padding: 4px 10px; border-radius: 12px;
  font-size: 12px; background: #2a3b5f;
}
.badge-variant {
  display: inline-block;
  padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: bold;
  background: linear-gradient(135deg, #c97824, #d4a93a);
  color: #1a1a1a;
  vertical-align: middle;
  margin-left: 4px;
}
.link { display: block; text-align: center; margin-top: 20px; color: var(--muted); text-decoration: none; font-size: 13px; }
.link:hover { color: var(--gold); }

/* ---- 顶部栏 ---- */
.topbar {
  background: var(--panel); padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
}
#room-title { font-weight: 600; margin-right: 12px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---- 按钮 ---- */
button {
  padding: 10px 18px; border: none; border-radius: 8px;
  background: #2a3b5f; color: var(--text); cursor: pointer;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
button:hover { background: #344872; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.primary { background: var(--gold); color: #1a1a1a; }
button.primary:hover { background: #e6c14d; }
button.danger { background: var(--red); }
button.danger:hover { background: #e85555; }
button.warn { background: #c97824; }
button.ghost { background: transparent; border: 1px solid var(--border); }

/* ---- 牌桌 ---- */
.table-wrap {
  flex: 1; display: flex; justify-content: center; align-items: center;
  padding: 20px; position: relative;
}
.poker-table {
  width: min(95%, 1100px); aspect-ratio: 16/9;
  background: var(--table);
  border-radius: 240px;
  border: 12px solid #3a2614;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4), 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}
.community {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pot-display {
  background: rgba(0,0,0,0.4); padding: 6px 16px;
  border-radius: 16px; font-size: 14px; color: var(--gold);
}
.community-cards {
  display: flex; gap: 6px; min-height: 80px;
}
.stage-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; }

.seats {
  position: absolute; inset: 0;
}

/* 座位绝对定位通过 JS 设置 */
.seat {
  position: absolute;
  width: 130px;
  background: rgba(10, 21, 37, 0.92);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}
.seat.active { border-color: var(--gold); box-shadow: 0 0 20px rgba(212, 169, 58, 0.5); }
.seat.folded { opacity: 0.4; }
.seat.you { border-color: #4ad6ff; }
.seat-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; margin-bottom: 4px;
}
.seat-name { font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-chips { color: var(--gold); }
.seat-hole {
  display: flex; gap: 3px; justify-content: center; margin: 4px 0;
}
.seat-bet {
  text-align: center; font-size: 12px; color: var(--gold);
  background: rgba(0,0,0,0.4); border-radius: 8px; padding: 2px 6px;
  margin-top: 4px;
}
.seat-tags {
  position: absolute; top: -8px; right: -8px;
  display: flex; gap: 3px;
}
.tag { font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: bold; }
.tag.dealer { background: #fff; color: #000; }
.tag.allin { background: var(--red); }
.tag.fold { background: #555; }
.tag.wait { background: #4a6285; }

/* ---- 扑克牌 ---- */
.card {
  width: 50px; height: 70px;
  background: var(--card-bg); color: #000;
  border-radius: 6px;
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 4px 6px;
  font-weight: bold; font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.card.red { color: var(--red); }
.card.back {
  background: repeating-linear-gradient(45deg, #6b1a1a, #6b1a1a 8px, #8b2929 8px, #8b2929 16px);
  border: 2px solid #fff;
}
.card .rank { font-size: 18px; line-height: 1; }
.card .suit { font-size: 22px; text-align: right; line-height: 1; }
.card.small { width: 34px; height: 48px; font-size: 12px; padding: 3px; }
.card.small .rank { font-size: 12px; }
.card.small .suit { font-size: 14px; }

/* ---- 动作面板 ---- */
.action-panel {
  background: var(--panel); padding: 10px 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  flex: 0 0 auto;       /* 始终可见,不被牌桌挤掉 */
}
.action-panel.disabled { opacity: 0.4; pointer-events: none; }
.action-info { display: flex; gap: 24px; font-size: 14px; color: var(--muted); align-items: center; }
.action-info b { color: var(--text); }
.timer { color: var(--gold); }
.timer.urgent b { color: var(--red); animation: pulse 0.5s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.4; } }
.hidden { display: none !important; }
.quick-bets { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.quick-label { font-size: 12px; color: var(--muted); }
.quick-bet {
  padding: 6px 12px; font-size: 12px;
  background: #1a2741; border: 1px solid var(--border);
}
.quick-bet:hover { background: #243353; border-color: var(--gold); }
.quick-bet:disabled { opacity: 0.4; cursor: not-allowed; }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.raise-row {
  display: flex; gap: 10px; align-items: center;
}
.raise-row input[type="range"] { flex: 1 1 auto; min-width: 0; max-width: 400px; }
.raise-row input[type="number"] {
  width: 100px; flex: 0 0 100px; padding: 8px;
  background: #0a1525; border: 1px solid var(--border);
  color: var(--text); border-radius: 6px;
}
.raise-row button[data-action="raise"] { flex: 0 0 auto; min-width: 88px; }

/* ---- 侧栏 (桌面端: 右侧抽屉; 移动端在媒体查询里改成底部抽屉) ---- */
.side {
  position: fixed; right: 0; top: 70px; bottom: 180px;
  width: 300px;
  transition: transform 0.25s ease;
  z-index: 50;
}
.side-inner {
  position: absolute; inset: 0;
  padding: 0 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.side.collapsed { transform: translateX(100%); }

/* 切换按钮在 .side 兄弟位置,不受 .side transform 影响 */
.side-toggle {
  position: fixed;
  right: 300px; top: 86px;
  width: 28px; height: 56px;
  padding: 0;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 51;
  transition: right 0.25s ease, bottom 0.25s ease;
}
.side-toggle::before { content: '▶'; font-size: 12px; }
.side-toggle:hover { background: #1a2741; color: var(--gold); }
.side.collapsed ~ .side-toggle { right: 0; }
.side.collapsed ~ .side-toggle::before { content: '◀'; }

/* 公共牌占位 */
.card-placeholder {
  width: 50px; height: 70px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 6px;
}
.log-panel, .chat-panel {
  background: var(--panel); border-radius: 10px; padding: 12px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  min-height: 0;
}
.log-panel { flex: 1; }
.chat-panel { flex: 1; }
.log-panel h3, .chat-panel h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.log-list {
  flex: 1; overflow-y: auto; font-size: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.log-list div { padding: 3px 0; border-bottom: 1px dashed var(--border); }
.chat-input { display: flex; gap: 6px; margin-top: 8px; }
.chat-input input {
  flex: 1; padding: 6px; background: #0a1525;
  border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; font-size: 12px;
}
.chat-input button { padding: 6px 10px; font-size: 12px; }

/* ---- 提示 ---- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff;
  padding: 12px 20px; border-radius: 8px;
  opacity: 0; transition: opacity 0.3s;
  z-index: 1000; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---- 弹窗 ---- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--panel); padding: 30px;
  border-radius: 12px; min-width: 360px; max-width: 600px;
  border: 1px solid var(--gold);
}
.modal-box h2 { margin-bottom: 16px; color: var(--gold); }
.modal-box button { margin-top: 16px; width: 100%; }
.winner-line { padding: 8px 0; border-bottom: 1px solid var(--border); }
.reveal-line { display: flex; gap: 8px; align-items: center; margin: 8px 0; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================ */
/*       手机/平板 适配          */
/* ============================ */

/* 平板/小屏笔记本 */
@media (max-width: 1100px) {
  .side { width: 260px; }
  .seat { width: 110px; font-size: 12px; }
  .card { width: 42px; height: 60px; }
  .card .rank { font-size: 14px; }
  .card .suit { font-size: 18px; }
}

/* 手机 (≤768px) */
@media (max-width: 768px) {
  /* 顶部条紧凑 */
  .topbar {
    padding: 6px 8px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .topbar > div:first-child {
    display: flex; flex-direction: column;
    flex: 1 1 100%; min-width: 0;
  }
  #room-title { font-size: 13px; font-weight: 600; }
  #room-info { font-size: 10px; }
  /* mobile: 顶栏按钮排成一行 + 仅图标 */
  .topbar-actions {
    display: flex; gap: 4px; flex-wrap: wrap; flex: 1 1 100%;
  }
  .topbar-actions button {
    padding: 6px 8px; font-size: 13px;
    flex: 0 1 auto;
    min-width: 36px;
  }
  .topbar .btn-label { display: none; }  /* mobile 隐藏按钮文字,仅图标 */

  /* 牌桌:竖屏改正方形 */
  .table-wrap { padding: 6px; }
  .poker-table {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 140px;
    border-width: 6px;
  }

  /* 公共牌(下方重复定义会覆盖,这里只设 pot/stage 标签)*/
  .pot-display { font-size: 11px; padding: 3px 8px; }
  .stage-label { font-size: 10px; }

  /* 座位:窄一些,name/chips 改成上下叠避免横向挤 */
  .seat {
    width: 70px;
    padding: 4px;
    border-radius: 8px;
  }
  .seat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 10px;
    margin-bottom: 2px;
  }
  .seat-name {
    max-width: 100%; width: 100%;
    font-size: 10px;
    line-height: 1.1;
  }
  .seat-chips { font-size: 10px; width: 100%; text-align: right; }
  .seat-bet { font-size: 10px; padding: 1px 5px; }
  .card.small { width: 22px; height: 32px; font-size: 9px; padding: 1px 2px; }
  .card.small .rank { font-size: 9px; }
  .card.small .suit { font-size: 11px; }
  .tag { font-size: 8px; padding: 1px 4px; }

  /* 公共牌缩到更小,腾出空间给侧位座位 */
  .community-cards { gap: 3px; min-height: 48px; }
  .community-cards .card,
  .community-cards .card-placeholder {
    width: 30px; height: 42px;
  }
  .community-cards .card .rank { font-size: 11px; }
  .community-cards .card .suit { font-size: 13px; }

  /* 操作面板:加大触摸区域 */
  .action-panel { padding: 8px 10px 12px; gap: 8px; }
  .action-info { font-size: 12px; gap: 12px; flex-wrap: wrap; }
  .action-buttons { gap: 6px; }
  .action-buttons button {
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
    padding: 12px 6px;
    font-size: 14px;
    font-weight: 600;
  }
  .raise-row { gap: 6px; flex-wrap: wrap; }
  .raise-row input[type="range"] { flex: 1 1 100%; order: 1; min-width: 0; }
  .raise-row input[type="number"] { flex: 1 1 100px; width: auto; order: 2; }
  .raise-row button[data-action="raise"] {
    order: 3; flex: 1; min-width: 100px;
    padding: 12px; font-size: 14px;
  }
  .quick-bets { gap: 4px; }
  .quick-bet { flex: 1; padding: 8px 4px; font-size: 12px; }
  .quick-label { display: none; }

  /* 侧栏改为底部抽屉 */
  .side {
    position: fixed;
    right: 0; left: 0; top: auto; bottom: 0;
    width: 100%;
    height: 60vh;
    max-height: 480px;
    transform: translateY(100%);
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  }
  .side.collapsed { transform: translateY(100%); }
  .side:not(.collapsed) { transform: translateY(0); }
  .side-inner {
    padding: 24px 14px 14px;
    overflow: hidden;
  }
  .side-inner::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--border);
  }
  /* 悬浮 FAB 按钮:右侧垂直居中,避开顶部条和操作面板 */
  .side-toggle {
    right: 8px; top: 50%;
    bottom: auto; left: auto;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0.85;
  }
  /* 覆盖桌面端高优先级规则 */
  .side.collapsed ~ .side-toggle::before { content: '💬'; font-size: 18px; }
  /* 抽屉展开时移到右上方,不被抽屉挡住 */
  .side:not(.collapsed) ~ .side-toggle {
    top: 60px; transform: none;
    opacity: 1;
  }
  .side:not(.collapsed) ~ .side-toggle::before { content: '✕'; font-size: 18px; }

  /* 弹窗适配 */
  .modal-box {
    min-width: auto;
    width: 92vw;
    max-width: 92vw;
    padding: 20px;
  }
  .modal-box h2 { font-size: 18px; }

  /* 输入框等更紧凑 */
  .lobby-box {
    padding: 24px 20px;
    border-radius: 12px;
  }
  .lobby-box h1 { font-size: 24px; }
  .room-card { padding: 12px 14px; }
}

/* 超小屏(竖屏 iPhone SE 之类) */
@media (max-width: 380px) {
  .seat { width: 64px; padding: 3px; }
  .seat-name { max-width: 100%; font-size: 9px; }
  .seat-chips { font-size: 9px; }
  .card.small { width: 20px; height: 28px; }
  .card.small .rank { font-size: 8px; }
  .card.small .suit { font-size: 9px; }
  .community-cards .card,
  .community-cards .card-placeholder,
  .community-cards > div[style*="dashed"] {
    width: 26px !important; height: 36px !important;
  }
  .community-cards .card .rank { font-size: 10px; }
  .community-cards .card .suit { font-size: 12px; }
  .action-buttons button { padding: 10px 4px; font-size: 13px; }
}

/* 银行三向汇率 */
.fx-rates-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 10px 0 18px; align-items: center;
}
.fx-rate-pill {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #1a2741, #182438);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}
.fx-rate-pill b { color: var(--gold); font-size: 16px; font-weight: 700; }
.fx-dir-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.fx-dir-tabs .fx-dir {
  font-size: 13px;
  padding: 8px 4px;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .fx-dir-tabs { grid-template-columns: repeat(2, 1fr); }
  .fx-dir-tabs .fx-dir { font-size: 12px; }
}

/* 三大排行榜独立页 */
.rank-main {
  max-width: 1100px; margin: 0 auto;
  padding: 24px 20px 60px;
}
.rank-hero {
  text-align: center;
  margin-bottom: 24px;
}
.rank-hero h1 {
  font-size: 32px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #d4a93a, #ffd700, #d4a93a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.rank-tab {
  background: linear-gradient(135deg, #1a2741, #182438);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 12px;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.rank-tab:hover { transform: translateY(-2px); border-color: var(--gold); }
.rank-tab.active {
  background: linear-gradient(135deg, #3d2a08 0%, #1a1208 100%);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,169,58,0.25);
}
.rank-tab-emoji { font-size: 32px; line-height: 1; }
.rank-tab-title { font-weight: 800; font-size: 15px; }
.rank-tab-sub { font-size: 11px; color: var(--muted); }
.rank-board-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

/* 负值条形图 (赌神榜净亏用红色) */
.lb-bar-fill.lb-bar-neg {
  background: linear-gradient(90deg, #ff6b6b, #ff8a8a);
}

@media (max-width: 600px) {
  .rank-tabs { grid-template-columns: 1fr; }
  .rank-tab { flex-direction: row; padding: 10px 14px; justify-content: flex-start; }
  .rank-tab-emoji { font-size: 24px; }
  .rank-tab-sub { margin-left: auto; }
  .rank-hero h1 { font-size: 24px; }
}

/* ===== 卡死自救横幅 ===== */
.stuck-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 100, 60, 0.15);
  border: 1px solid rgba(255, 100, 60, 0.5);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  color: #ffb09a;
  font-size: 14px;
}
.stuck-banner button {
  flex-shrink: 0;
  margin-left: auto;
}
.stuck-banner.hidden { display: none; }


/* ===== 自救按钮 ===== */
.rescue-btn {
  background: transparent;
  border: 1px solid rgba(255, 160, 60, 0.45);
  color: rgba(255, 160, 60, 0.85);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.rescue-btn:hover {
  background: rgba(255, 140, 40, 0.18);
  color: #ffb060;
  border-color: rgba(255, 160, 60, 0.75);
}
.rescue-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
