/* ===== 设计系统 · FIDE 风格 ===== */
:root {
  --navy: #0c2d4d;
  --navy-mid: #134570;
  --navy-light: #1a5280;
  --navy-dark: #061829;
  --wood-light: #f5e6d3;
  --wood-mid: #d4a574;
  --wood-dark: #8b4513;
  --board-line: rgba(12, 45, 77, 0.06);
  --red-piece: #c41e3a;
  --red-piece-bg: #fde8e8;
  --black-piece: #2c1810;
  --black-piece-bg: #e8e0d5;
  --bg: #eef2f6;
  --bg-subtle: #e4eaf0;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --blue: #0073cf;
  --blue-light: #e8f4fc;
  --gold: #b8860b;
  --gold-light: #fef9e7;
  --purple: #5b4b8a;
  --purple-light: #f0edf7;
  --danger: #dc2626;
  --success: #059669;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(12, 45, 77, 0.04), 0 4px 20px rgba(12, 45, 77, 0.06);
  --shadow-hover: 0 8px 32px rgba(12, 45, 77, 0.12);
  --border: rgba(12, 45, 77, 0.08);
  --border-strong: rgba(12, 45, 77, 0.14);
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "KaiTi", serif;
  --sidebar-width: 320px;
  --page-col-gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== 背景 ===== */
.board-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 115, 207, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(12, 45, 77, 0.05), transparent 50%),
    linear-gradient(180deg, #f4f7fa 0%, var(--bg) 100%);
}

/* ===== 象棋棋子 ===== */
.piece {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  border: 2px solid;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 2px 6px rgba(12, 45, 77, 0.12);
}

.piece-red {
  color: var(--red-piece);
  background: radial-gradient(circle at 35% 30%, #fff5f5, var(--red-piece-bg));
  border-color: var(--red-piece);
}

.piece-black {
  color: var(--black-piece);
  background: radial-gradient(circle at 35% 30%, #faf8f5, var(--black-piece-bg));
  border-color: var(--black-piece);
}

.piece.sm {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  box-shadow: 0 4px 24px rgba(6, 24, 41, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  max-width: 1200px;
  margin: 0 auto;
}

a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon .piece {
  width: 40px;
  height: 40px;
  font-size: 20px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.35), 0 2px 8px rgba(0,0,0,0.25);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.live-badge .dot,
.tag-live .dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.main-nav {
  display: flex;
  gap: 2px;
  padding: 0 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-item {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  position: relative;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--blue);
}

.nav-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

/* ===== 统一容器 ===== */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== 页面容器 ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-label-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-more,
.card-enter,
.section-enter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-more:hover,
.card-enter:hover,
.section-enter:hover {
  color: var(--navy-light);
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h4 {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h4::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ===== Banner ===== */
.hero-banner {
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
  border: none;
  box-shadow: 0 8px 40px rgba(12, 45, 77, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 115, 207, 0.2), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}

.hero-banner-body {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-banner-text {
  flex: 1;
  min-width: 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  line-height: 1.6;
}

.trophy { font-size: 1.1rem; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.tag-live {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.tag-blue {
  background: rgba(0, 115, 207, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(0, 115, 207, 0.4);
}

.tag-gold {
  background: rgba(184, 134, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.tag-purple {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-board {
  flex-shrink: 0;
}

.mini-board {
  position: relative;
  width: 128px;
  padding: 6px;
  background: var(--wood-light);
  border: 1.5px solid var(--wood-mid);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.board-grid {
  position: relative;
  width: 108px;
  height: 120px;
  background:
    linear-gradient(90deg, var(--wood-dark) 1px, transparent 1px),
    linear-gradient(var(--wood-dark) 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: -0.5px -0.5px;
}

.board-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-top: 1px dashed rgba(139, 69, 19, 0.3);
  border-bottom: 1px dashed rgba(139, 69, 19, 0.3);
  pointer-events: none;
}

.river-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 0.5rem;
  color: var(--wood-dark);
  opacity: 0.5;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

.board-piece {
  position: absolute;
  width: 14px !important;
  height: 14px !important;
  font-size: 9px !important;
  border-width: 1px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.12);
  left: calc(var(--c) * 12px - 7px);
  top: calc(var(--r) * 12px - 7px);
  z-index: 1;
}

/* ===== 职业棋手通栏 ===== */
.pro-players-bar {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px 0 20px;
  box-shadow: 0 8px 32px rgba(12, 45, 77, 0.2);
  overflow: hidden;
}

.pro-players-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 115, 207, 0.15), transparent 60%);
  pointer-events: none;
}

.pro-players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.pro-players-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pro-players-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pro-more {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pro-more:hover {
  color: #fff;
}

.pro-players-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 22px 4px;
  scrollbar-width: thin;
  position: relative;
  z-index: 1;
}

.pro-player-card {
  position: relative;
  flex: 1 1 0;
  min-width: 160px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.pro-player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pro-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
  background: linear-gradient(transparent 35%, rgba(6, 24, 41, 0.9));
}

.pro-rank {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.pro-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pro-stats-row {
  display: flex;
  gap: 10px;
}

.pro-stats-row span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pro-stats-row em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== 直播区 ===== */
.live-section {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--page-col-gap);
  align-items: stretch;
}

.live-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.live-room-body {
  display: grid;
  grid-template-columns: 5fr 3fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  min-height: 0;
}

.live-room-body .board-stage {
  border-radius: 0;
  min-height: 340px;
}

.live-room-panel {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-left: 1px solid var(--border);
  min-height: 0;
  width: auto;
}

.live-commentator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 12px 8px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.commentator-avatar {
  width: min(78%, 148px);
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 148px;
  flex: none;
  border-radius: var(--radius);
  border: none;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 4px 16px rgba(12, 45, 77, 0.15);
}

.commentator-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 4px 12px;
  background: transparent;
  text-align: left;
}

.commentator-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.commentator-title {
  font-size: 0.65rem;
  color: var(--danger);
  font-weight: 600;
}

.live-fan-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.fan-chat-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 8px;
  min-height: 0;
}

.chat-messages li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.chat-messages li:last-child {
  border-bottom: none;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
}

.chat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-user {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.68rem;
  line-height: 1.2;
}

.chat-text {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.72rem;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.btn-chat-send {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 20px;
  transition: background 0.15s;
}

.btn-chat-send:hover {
  background: var(--navy-light);
}

.live-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.danmaku-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.danmaku-item {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  animation: danmaku-scroll 9s linear infinite;
}

@keyframes danmaku-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 520px)); }
}

.live-matches-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  min-height: 100%;
}

.live-matches-card h4 {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.live-match-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.live-match-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  flex: 1;
}

.live-match-item.is-active {
  background: var(--blue-light);
  border-color: rgba(0, 115, 207, 0.25);
  box-shadow: inset 3px 0 0 var(--blue);
}

.live-match-item:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.live-match-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-move-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: 0.02em;
}

.live-match-item.is-active .match-move-num {
  color: var(--blue);
}

.match-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-bet-sm {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.15s;
}

.btn-bet-sm:hover {
  background: #fef3c7;
  transform: scale(1.03);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 115, 207, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 115, 207, 0.08) 1px, transparent 1px);
  background-size: 10% 11.11%;
  opacity: 0.5;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  font-size: 1.4rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.video-overlay {
  position: absolute;
  z-index: 1;
  font-size: 0.78rem;
  color: #fff;
}

.video-overlay.top-left {
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-overlay.top-right {
  top: 10px;
  right: 10px;
  background: rgba(6, 24, 41, 0.7);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.video-overlay.bottom {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(6, 24, 41, 0.85));
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.live-pill {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.live-pill.sm {
  font-size: 0.58rem;
  padding: 2px 6px;
}

.rolling-bet {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.rolling-bet-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.rolling-bet-title h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.rolling-bet-title h4::before {
  display: none;
}

.rolling-icon {
  font-size: 1rem;
  line-height: 1;
}

.rolling-bet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rolling-bet-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
}

.rolling-move {
  font-weight: 800;
  color: var(--navy);
}

.rolling-label {
  color: var(--text-muted);
  font-weight: 500;
}

.rolling-odds-inline {
  color: var(--text-muted);
}

.rolling-odds-inline strong {
  color: var(--gold);
  font-weight: 800;
  margin-left: 2px;
}

.rolling-bet-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.rolling-market-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
}

.rolling-market-status.is-open {
  background: #ecfdf5;
  color: #047857;
}

.betting-market-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
}

.bet-flash {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.bet-flash.is-ok { background: #ecfdf5; color: #047857; }
.bet-flash.is-error { background: #fef2f2; color: #991b1b; }

.betting-current-market {
  padding: 8px 0 4px;
}

.betting-match-teams {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.betting-market-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.betting-amount-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.bet-amount-input {
  width: 88px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.bet-quick-amounts {
  display: flex;
  gap: 6px;
}

.bet-quick-amt {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.78rem;
}

.bet-quick-amt.is-active {
  background: var(--blue-light);
  color: var(--blue);
}

.betting-rules-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.betting-rules-card h5 {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.betting-rules-text ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.market-history-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 0.78rem;
}

.market-history-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.mh-label { font-weight: 600; color: var(--navy); }
.mh-status { color: var(--text-muted); }

.bl-odd:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.odds-type-label,
.odds-type-tag {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.odds-type-label.is-dynamic,
.odds-type-tag.is-dynamic {
  background: #eff6ff;
  color: #1d4ed8;
}

.odds-type-label.is-settled,
.odds-type-tag.is-settled {
  background: #fef3c7;
  color: #b45309;
}

.rolling-market-status.is-closed {
  background: #fef3c7;
  color: #b45309;
}

.pool-amt {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.rolling-pool-total {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.betting-pool-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.betting-pool-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  border-bottom: none;
  padding: 0 0 8px;
}

.bl-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bl-side-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.bl-pool {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
}

.bl-odd {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.bl-odd-num {
  font-size: 1.1rem;
  color: var(--blue);
}

.bl-odd:hover:not(:disabled) {
  background: var(--blue-light);
  border-color: var(--blue);
}

.betting-pool-total-line {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.betting-pool-total-line strong {
  color: var(--navy);
}

.account-coin-note {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.btn-enter {
  flex-shrink: 0;
  padding: 8px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn-enter:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ===== 竞猜专区 ===== */
.betting-zone-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--page-col-gap);
  align-items: stretch;
}

.betting-main {
  min-width: 0;
}

.betting-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.betting-card-title {
  font-size: 0.72rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.betting-card-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
}

.betting-head-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.trend-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  justify-self: center;
}

.trend-icon svg {
  width: 16px;
  height: 16px;
}

.trend-icon:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.betting-lines-card {
  padding: 16px 20px 12px;
  height: 100%;
}

.betting-account {
  display: flex;
  flex-direction: column;
}

.betting-account h4 {
  margin-bottom: 12px;
}

.account-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.account-info-list span {
  color: var(--text-muted);
  font-weight: 500;
}

.account-info-list strong {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.95rem;
}

.account-info-list .profit {
  color: var(--success);
}

.btn-recharge-block {
  width: 100%;
  margin-top: auto;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, #996515 100%);
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.04em;
}

.btn-recharge-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
}

.betting-lines {
  padding: 0;
}

.betting-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.betting-line:last-child {
  border-bottom: none;
}

.bl-match {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  justify-self: start;
}

.bl-team {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
}

.bl-vs {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.bl-odds {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  justify-self: end;
}

.bl-odd {
  min-width: 52px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}

.bl-odd:hover {
  background: #fef3c7;
  transform: scale(1.04);
}

/* ===== 可点击卡片 ===== */
.card-clickable {
  display: block;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card-clickable:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 115, 207, 0.2);
  transform: translateY(-2px);
}

.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-head-row h4 {
  margin-bottom: 0;
}

.game-records > .section-head-row {
  margin-bottom: 14px;
}

.section-head-row .section-title {
  margin-bottom: 0;
}

.record-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.record-go {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  padding: 4px 12px;
  background: var(--blue-light);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== 积分榜 ===== */
.league-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--page-col-gap);
}

.standings li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.standings li:hover {
  background: #f8fafc;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-sm);
}

.rank {
  font-weight: 800;
  color: var(--text-muted);
}

.standings li:first-child .rank {
  color: var(--gold);
}

.pts {
  font-weight: 800;
  color: var(--blue);
}

.results-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.badge.done { background: #d1fae5; color: var(--success); }
.badge.tonight { background: #fee2e2; color: var(--danger); }
.badge.tomorrow { background: #ffedd5; color: #ea580c; }

/* ===== 棋谱 ===== */
.records-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--page-col-gap);
}

.record-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.record-card-link:hover h5 {
  color: var(--blue);
}

.record-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--navy);
}

.record-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.record-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.record-board-preview {
  height: 80px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(12, 45, 77, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(12, 45, 77, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc, #eef2f6);
  background-size: 20% 11.11%, 20% 11.11%, 100% 100%;
  position: relative;
}

.record-board-preview::after {
  content: "楚河";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--navy);
  opacity: 0.35;
  letter-spacing: 0.3em;
}

/* ===== 新闻 + 社区 ===== */
.news-community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--page-col-gap);
}

.news-list li,
.community-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  transition: padding-left 0.15s;
}

.news-list li:hover,
.community-list li:hover {
  padding-left: 6px;
}

.news-list a,
.community-list a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.news-list a:hover,
.community-list a:hover { color: var(--blue); }

.news-list time,
.community-list span {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 200;
  justify-content: space-around;
  box-shadow: 0 -4px 24px rgba(6, 24, 41, 0.3);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 8px;
  transition: color 0.15s;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-item.active {
  color: #fff;
}

.nav-piece {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item.active .nav-piece {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--navy-dark);
  color: #94a3b8;
  margin-top: 0;
  padding: 48px 0 32px;
  border-top: 3px solid var(--blue);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 20px;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.78rem;
  color: #94a3b8;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.footer-social a:hover {
  background: rgba(0, 115, 207, 0.2);
  border-color: rgba(0, 115, 207, 0.4);
  color: #fff;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

.footer-disclaimer {
  margin-top: 6px;
  font-size: 0.68rem !important;
  color: #475569 !important;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .live-section { grid-template-columns: 1fr; }

  .live-room-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .live-room-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 280px;
  }

  .commentator-avatar {
    width: min(70%, 128px);
    max-height: 128px;
  }

  .live-room-body .board-stage {
    min-height: 280px;
  }

  .betting-zone-grid { grid-template-columns: 1fr; }
  .league-data { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: 1fr; }
  .news-community { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col-wide {
    grid-column: span 3;
  }

  .hero-banner-body {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-board {
    display: flex;
    justify-content: center;
  }

  .betting-line {
    grid-template-columns: 1fr auto 1fr;
  }

  .trend-icon {
    justify-self: center;
  }

  .betting-head-links {
    gap: 10px;
  }

  .pro-player-card {
    flex: 0 0 160px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .mobile-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .header-inner { padding: 12px 16px; }
  .brand-title { font-size: 0.95rem; }
  .live-badge { display: none; }

  .hero-banner { padding: 20px; }
  .rolling-bet-info { gap: 6px 10px; }
  .rolling-odds-inline { font-size: 0.75rem; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-col-wide {
    grid-column: span 2;
  }

  .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
}
