/* 首页 Hero + 底部图标导航（参照 Axie App 的信息层级：公告 / 问候 / 大 banner / 排行榜） */

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  display: flex;
  z-index: 50;
  background: rgba(14, 9, 8, .96);
  border-top: 1px solid rgba(216, 178, 92, .28);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .55);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: none;
  border: 0;
  border-top: 2px solid transparent;
  color: #9b8763;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
}
.bottom-nav button i { font-style: normal; font-size: 19px; line-height: 22px; }
.bottom-nav button.on { color: #ffd23f; border-top-color: #ffd23f; }
.bottom-nav button.on i { filter: drop-shadow(0 0 6px rgba(255, 210, 63, .5)); }
body { padding-bottom: 62px; }

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero .announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(109, 29, 22, .92), rgba(43, 13, 10, .92));
  border: 1px solid rgba(216, 178, 92, .26);
  color: #f0d9a8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 6px;
  padding: 6px 12px;
}
.hero .hero-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero .hh-title { font-size: 18px; font-weight: 800; color: #f0e3c6; letter-spacing: 1px; }
.hero .hh-sub { font-size: 11px; color: #9b8763; letter-spacing: 1px; }

/* 大 banner：暗红底 + 赛道图 */
.hero .hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(216, 178, 92, .35);
  background: #160807 url('./assets/poster3d.jpg') center 55% / cover no-repeat;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 14px 18px 20px;
  box-sizing: border-box;
}
.hero .hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 3, 2, .95) 0%, rgba(12, 3, 2, .72) 55%, rgba(12, 3, 2, .25) 100%);
}
.hero .hb-left { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; max-width: 58%; padding: 0; }
.hero .hb-tag {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffd23f;
  background: rgba(255, 210, 63, .12);
  border: 1px solid rgba(255, 210, 63, .45);
  border-radius: 4px;
  padding: 2px 8px;
}
.hero .hb-title { font-size: 24px; font-weight: 800; color: #f6e6d8; }
.hero .hb-desc { font-size: 13px; color: #c9b89d; letter-spacing: .5px; }
.hero .hb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hero .hb-right {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding: 0;
}
.hero .hb-horse {
  width: 74px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 8, 6, .85);
  border: 1px solid rgba(216, 178, 92, .35);
  text-align: center;
}
.hero .hb-horse img { width: 100%; height: 62px; object-fit: cover; display: block; }
.hero .hb-horse span { display: block; font-size: 11px; color: #e6d8ba; padding: 3px 0 4px; }

/* ---------- 排行榜 ---------- */
.hero .lb-card {
  border: 1px solid rgba(216, 178, 92, .28);
  background: linear-gradient(180deg, rgba(30, 18, 14, .96), rgba(16, 9, 7, .96));
  border-radius: 14px;
  padding: 12px;
}
.hero .lb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0; flex-wrap: wrap; }
.hero .lb-title { font-size: 14px; font-weight: 800; color: #f0e3c6; letter-spacing: 1px; }
.hero .lb-toggle {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(216, 178, 92, .35);
  background: rgba(216, 178, 92, .06);
  color: #c9b89d;
  cursor: pointer;
}
.hero .lb-card.open .lb-toggle { color: #1a0d06; background: #d8b25c; border-color: #d8b25c; font-weight: 800; }
.hero .lb-body { display: none; margin-top: 10px; }
.hero .lb-card.open .lb-body { display: block; }
.hero .lb-tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.hero .lb-tabs button {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(216, 178, 92, .35);
  background: rgba(216, 178, 92, .06);
  color: #c9b89d;
  cursor: pointer;
}
.hero .lb-tabs button.on { color: #1a0d06; background: #d8b25c; border-color: #d8b25c; font-weight: 800; }
.hero .lb-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px dashed rgba(216, 178, 92, .14);
  font-size: 13px;
  color: #e6d8ba;
}
.hero .lb-row:last-child { border-bottom: 0; }
.hero .lb-row .rk { font-weight: 800; color: #9b8763; }
.hero .lb-row .rk.top1 { color: #ffd23f; }
.hero .lb-row .rk.top2 { color: #e8e8e8; }
.hero .lb-row .rk.top3 { color: #d08a4a; }
.hero .lb-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .lb-row .vl { color: #ffd23f; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero .lb-empty { padding: 10px 4px; color: #9b8763; font-size: 12px; }

/* 多场报名中：场次切换 + 卡片堆栈 */
.hero .hb-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .hb-switch button {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(216, 178, 92, .35);
  background: rgba(216, 178, 92, .06);
  color: #c9b89d;
  cursor: pointer;
}
.hero .hb-switch button.on { color: #1a0d06; background: #d8b25c; border-color: #d8b25c; font-weight: 800; }
.hero .hb-stack { display: flex; flex-direction: column; gap: 12px; }

/* 多场报名中：场次切换与横幅之间留一点距离 */


/* 卡片里的次要操作收纳：默认折叠，点开后才出现，功能一个不少 */
.more-acts { margin-top: 8px; }
.more-acts > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: #c9b89d;
  padding: 8px 10px;
  border: 1px dashed rgba(216, 178, 92, .3);
  border-radius: 8px;
  text-align: center;
  user-select: none;
}
.more-acts > summary::-webkit-details-marker { display: none; }
.more-acts > summary::after { content: ' ▾'; }
.more-acts[open] > summary::after { content: ' ▴'; }
.more-acts[open] > summary { margin-bottom: 8px; }
.more-acts .quick { margin-top: 0; }

/* ---------- 统一视觉（放在最后加载，压住前面几套旧主题，避免同一张卡出现四套配色） ---------- */
.card {
  background: linear-gradient(180deg, rgba(26, 15, 12, .92), rgba(15, 9, 7, .92));
  border: 1px solid rgba(216, 178, 92, .22);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.venue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(216, 178, 92, .07);
  border-left: 3px solid #d8b25c;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #f0e3c6;
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin: 9px 0; }
.stat-row .s {
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(216, 178, 92, .16);
  border-left: 2px solid rgba(216, 178, 92, .45);
  border-radius: 4px;
  padding: 7px 6px;
  text-align: center;
}
.stat-row .s span { display: block; font-size: 11.5px; color: #9b8763; letter-spacing: 1px; }
.stat-row .s b { font-size: 15px; color: #ffd23f; font-weight: 800; }
.msg { font-size: 12.5px; color: #a89579; line-height: 1.6; padding: 3px 0; }
.next {
  font-size: 12.5px;
  color: #e6cf9a;
  background: rgba(216, 178, 92, .07);
  border-left: 2px solid rgba(216, 178, 92, .55);
  border-radius: 0 6px 6px 0;
  padding: 7px 10px;
  margin-top: 8px;
  line-height: 1.6;
}
.rules .msg { font-size: 12.5px; line-height: 1.7; }

@media (max-width: 640px) {
  .hero { padding: 8px 10px 2px; gap: 8px; }
  .hero .hh-title { font-size: 16px; }
  .hero .hh-sub { display: none; }
  .hero .announce { font-size: 11px; padding: 5px 10px; }
  .hero .hero-banner { min-height: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 10px; }
  .hero .hb-left { max-width: none; }
  .hero .hb-right { justify-content: flex-end; gap: 6px; }
  .hero .hb-title { font-size: 19px; }
  .hero .hb-desc { font-size: 12px; }
  .hero .hb-horse { width: 54px; }
  .hero .hb-horse img { height: 44px; }
  .hero .lb-row { font-size: 12px; padding: 6px 4px; }
  .hero .hb-switch button { font-size: 11px; padding: 4px 9px; }
  .bottom-nav { border-radius: 0; max-width: none; }
  /* 顶部风险提示条在手机上收窄，避免占掉整屏 */
  #rmNoticeBar { font-size: 10.5px !important; line-height: 1.45 !important; padding: 5px 8px !important; }
}
