/* ============================================================
   dl_board · home.css
   棋牌主题（墨绿 #059669 + 琥珀 #d97706 + 古典棋盘风）
   Hero区: 棋盘网格 Bento Box 12 格布局
   ============================================================ */

/* ===========================
 * Hero 区
 * =========================== */
.hero-board {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1410 0%, #14221c 100%);
}

.board-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    /* 棋盘格纹理 */
    repeating-linear-gradient(
      0deg,
      transparent 0 60px,
      rgba(217, 119, 6, .03) 60px 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 60px,
      rgba(217, 119, 6, .03) 60px 61px
    ),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(5, 150, 105, .25), transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(217, 119, 6, .18), transparent 60%);
}

.position-relative { position: relative; z-index: 2; }

/* ===========================
 * Bento Grid · 12 格棋盘布局
 * =========================== */
.board-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
  margin: 0;
}

.board-cell {
  position: relative;
  background: linear-gradient(145deg, #14221c 0%, #1e322a 100%);
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 18px;
  padding: 20px 22px;
  overflow: hidden;
  transition: all .3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.board-cell:hover {
  border-color: rgba(217, 119, 6, .45);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(217, 119, 6, .15);
}

/* 主标题大格（占 2 列 2 行） */
.board-cell-hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: 36px 36px 32px;
  background:
    linear-gradient(145deg, rgba(5, 150, 105, .25) 0%, rgba(20, 34, 28, .95) 60%);
  border-color: rgba(5, 150, 105, .35);
}
.board-cell-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(217, 119, 6, .15), transparent 70%);
  pointer-events: none;
}

.board-piece-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d97706, #92400e);
  color: #14221c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, .45), inset 0 2px 4px rgba(255, 255, 255, .25);
}

.board-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(5, 150, 105, .18);
  border: 1px solid rgba(110, 231, 183, .35);
  border-radius: 4px;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.board-hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.board-hero-title span {
  display: block;
  background: linear-gradient(135deg, #f5e6d3 0%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.board-hero-title em {
  display: block;
  font-style: normal;
  font-size: 26px;
  margin-top: 6px;
  color: #6ee7b7;
  font-weight: 600;
  letter-spacing: 2px;
}

.board-hero-sub {
  font-size: 15px;
  color: var(--ks-text-2);
  margin-bottom: 22px;
  line-height: 1.6;
}
.board-hero-sub small {
  display: block;
  font-size: 13px;
  color: var(--ks-muted);
  margin-top: 4px;
  opacity: .85;
}

/* CTA */
.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.board-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #f0fdf4 !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(5, 150, 105, .45);
  border: 1px solid rgba(110, 231, 183, .25);
  transition: all .25s;
}
.board-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 150, 105, .6);
  color: #f0fdf4 !important;
}
.board-btn-primary i { font-size: 22px; }
.board-btn-primary span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.board-btn-primary strong { font-size: 15px; }
.board-btn-primary small { font-size: 11px; opacity: .85; font-weight: 500; }

.board-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: rgba(217, 119, 6, .15);
  border: 1px solid rgba(217, 119, 6, .35);
  color: #fbbf24 !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
}
.board-btn-ghost:hover {
  background: #d97706;
  color: #14221c !important;
}

/* ===========================
 * 数据格子（在线/奖池）
 * =========================== */
.board-cell-stat {
  text-align: center;
  padding: 24px 20px;
}
.board-cell-online {
  background: linear-gradient(145deg, rgba(5, 150, 105, .15), #14221c);
}
.board-cell-prize {
  background: linear-gradient(145deg, rgba(217, 119, 6, .18), #14221c);
}
.board-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.board-cell-online .board-stat-icon {
  background: rgba(5, 150, 105, .25);
  color: #6ee7b7;
}
.board-cell-prize .board-stat-icon {
  background: rgba(217, 119, 6, .25);
  color: #fbbf24;
}
.board-cell-stat strong {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.board-cell-online strong { color: #6ee7b7; }
.board-cell-stat span {
  display: block;
  font-size: 12px;
  color: var(--ks-muted);
}
.board-stat-pulse {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
  50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* ===========================
 * 6 大棋牌品类格（占 2 列） */
 /* =========================== */
.board-cell-games {
  grid-column: span 2;
}
.board-cell-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #d97706;
  margin: 0 0 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.board-cell-title i { font-size: 14px; }
.board-cell-title .board-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.board-games-mini {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.board-games-mini a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ks-text-2);
  transition: all .25s;
}
.board-games-mini a:hover {
  transform: translateY(-3px);
  color: #fbbf24;
}
.board-mini-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.board-games-mini small {
  font-size: 11px;
  font-weight: 600;
}

/* ===========================
 * 实时对局（占 2 列）
 * =========================== */
.board-cell-live {
  grid-column: span 2;
}
.board-live-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-live-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, .2);
  border-radius: 8px;
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.board-live-row:hover {
  background: rgba(217, 119, 6, .08);
  border-left-color: #d97706;
}
.board-live-row span:nth-child(2) {
  flex: 1;
  color: var(--ks-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-live-row b { color: #fbbf24; font-weight: 700; }
.board-live-row small {
  color: var(--ks-muted);
  font-size: 11px;
  white-space: nowrap;
}

.board-live-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}
.board-tag-xq { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.board-tag-mj { background: linear-gradient(135deg, #16a34a, #14532d); }
.board-tag-ddz { background: linear-gradient(135deg, #d97706, #92400e); }
.board-tag-wq { background: linear-gradient(135deg, #1e293b, #000); }

/* ===========================
 * 高手榜
 * =========================== */
.board-master-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-master-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, .2);
  border-radius: 8px;
  font-size: 13px;
}
.board-master-rank {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
}
.board-rank-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #14221c; }
.board-rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #14221c; }
.board-rank-3 { background: linear-gradient(135deg, #fb923c, #c2410c); }
.board-master-name {
  flex: 1;
  color: var(--ks-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-master-row small {
  font-family: "Courier New", monospace;
  color: #fbbf24;
  font-weight: 700;
}

/* ===========================
 * 今日锦标
 * =========================== */
.board-cell-tournament {
  background: linear-gradient(145deg, rgba(217, 119, 6, .2), #14221c 70%);
  border-color: rgba(217, 119, 6, .35);
}
.board-tour-info {
  margin-bottom: 12px;
}
.board-tour-info strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 4px;
}
.board-tour-info p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ks-text);
}
.board-tour-prize {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(217, 119, 6, .2);
  border: 1px solid rgba(217, 119, 6, .35);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}
.board-tour-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
}
.board-tour-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, .55);
  color: #fff !important;
}

/* ===========================
 * 等级筛选标签
 * =========================== */
.board-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 24px;
}
.board-filter-tab {
  padding: 9px 20px;
  background: var(--ks-bg-2);
  border: 1px solid var(--ks-border);
  color: var(--ks-text-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .25s;
}
.board-filter-tab:hover {
  border-color: #d97706;
  color: #fbbf24;
}
.board-filter-tab.active {
  background: linear-gradient(135deg, #d97706, #92400e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(217, 119, 6, .45);
}

/* ===========================
 * 桌位卡片
 * =========================== */
.board-table-card {
  background: linear-gradient(145deg, var(--ks-bg-2), var(--ks-bg-3));
  border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-lg);
  padding: 18px 20px;
  height: 100%;
  transition: all .3s;
}
.board-table-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, .45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
}
.board-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--ks-border);
}
.board-table-game {
  font-size: 15px;
  font-weight: 700;
  color: var(--ks-text);
}
.board-table-game i { margin-right: 6px; color: #d97706; }
.board-table-status {
  padding: 3px 10px;
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.board-status-waiting {
  background: rgba(217, 119, 6, .15);
  color: #fbbf24;
}

.board-table-players {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 14px;
}
.board-players-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.board-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.board-player span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ks-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.board-player small {
  font-size: 10px;
  color: var(--ks-muted);
  font-family: "Courier New", monospace;
}
.board-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  border: 2px solid rgba(217, 119, 6, .3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.board-player-empty .board-player-avatar {
  background: rgba(255, 255, 255, .04) !important;
  border-style: dashed;
  color: var(--ks-muted);
}
.board-player-empty span,
.board-player-empty small { color: var(--ks-muted); }

.board-table-vs {
  font-size: 14px;
  font-weight: 900;
  color: #d97706;
  flex: 0 0 auto;
}

.board-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--ks-border);
}
.board-table-foot > span {
  font-size: 12px;
  color: var(--ks-text-2);
}
.board-table-foot > span i { margin-right: 4px; color: #fbbf24; }

.board-table-btn {
  padding: 7px 18px;
  background: rgba(5, 150, 105, .2);
  border: 1px solid rgba(5, 150, 105, .35);
  color: #6ee7b7 !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
}
.board-btn-join {
  background: linear-gradient(135deg, #d97706, #92400e);
  border-color: transparent;
  color: #fff !important;
}
.board-table-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

/* ===========================
 * 锦标赛日程列表
 * =========================== */
.board-tour-list {
  background: var(--ks-bg-2);
  border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-lg);
  overflow: hidden;
  margin-top: 32px;
}
.board-tour-row {
  display: grid;
  grid-template-columns: 90px 60px 1fr 160px 120px;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ks-border);
  transition: all .25s;
}
.board-tour-row:last-child { border-bottom: none; }
.board-tour-row:hover {
  background: rgba(217, 119, 6, .06);
}

.board-tour-date {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.board-tour-date strong {
  font-size: 22px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
}
.board-tour-date small {
  font-size: 11px;
  color: var(--ks-muted);
  margin-top: 4px;
}

.board-tour-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

.board-tour-info-row h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ks-text);
  margin-bottom: 4px;
}
.board-tour-info-row p {
  font-size: 12px;
  margin: 0;
}

.board-tour-prize-row {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 8px 14px;
  background: rgba(217, 119, 6, .12);
  border: 1px solid rgba(217, 119, 6, .25);
  border-radius: 8px;
}
.board-tour-prize-row span {
  font-size: 11px;
  color: var(--ks-muted);
  letter-spacing: 1px;
}
.board-tour-prize-row strong {
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: 900;
  color: #fbbf24;
}

.board-tour-action {
  padding: 10px 18px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #f0fdf4 !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all .25s;
}
.board-tour-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, .55);
  color: #f0fdf4 !important;
}

/* ===========================
 * 棋牌学院课程卡
 * =========================== */
.board-course-card {
  background: var(--ks-bg-2);
  border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all .3s;
}
.board-course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, .45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}

.board-course-thumb {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.board-course-level {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  background: rgba(34, 197, 94, .85);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.board-level-mid { background: rgba(217, 119, 6, .9); }
.board-level-pro { background: rgba(220, 38, 38, .9); }

.board-course-body {
  padding: 18px 20px;
}
.board-course-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ks-text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.board-course-body p {
  font-size: 13px;
  margin-bottom: 12px;
}
.board-course-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ks-muted);
}
.board-course-meta i { margin-right: 4px; color: #d97706; }

/* ===========================
 * 战报资讯
 * =========================== */
.board-news-card {
  display: block;
  background: linear-gradient(145deg, var(--ks-bg-2), var(--ks-bg-3));
  border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-lg);
  padding: 26px 24px;
  text-decoration: none !important;
  color: var(--ks-text);
  height: 100%;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.board-news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #d97706, #fbbf24);
  transition: width .35s;
}
.board-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, .45);
  color: var(--ks-text);
}
.board-news-card:hover::before { width: 100%; }

.board-news-num {
  font-family: "Courier New", monospace;
  font-size: 32px;
  font-weight: 900;
  color: rgba(217, 119, 6, .25);
  line-height: 1;
  margin-bottom: 14px;
}
.board-news-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ks-text);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-news-card p {
  font-size: 13px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-news-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ks-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--ks-border);
}
.board-news-time > i:last-child {
  color: #d97706;
  transition: transform .25s;
}
.board-news-card:hover .board-news-time > i:last-child {
  transform: translateX(4px);
}

/* ===========================
 * 响应式适配
 * =========================== */
@media (max-width: 991.98px) {
  .hero-board { padding: 56px 0 48px; }
  .board-bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .board-cell-hero { grid-column: span 2; grid-row: auto; padding: 28px 24px; }
  .board-cell-games { grid-column: span 2; }
  .board-cell-live { grid-column: span 2; }
  .board-cell-master,
  .board-cell-tournament { grid-column: span 1; }
  .board-hero-title { font-size: 36px; }
  .board-hero-title em { font-size: 22px; }

  .board-tour-row {
    grid-template-columns: 70px 48px 1fr 130px 100px;
    gap: 12px;
    padding: 14px 16px;
  }
}

@media (max-width: 767.98px) {
  .hero-board { padding: 40px 0 36px; }
  .board-bento { grid-template-columns: 1fr; }
  .board-cell-hero,
  .board-cell-games,
  .board-cell-live,
  .board-cell-master,
  .board-cell-tournament,
  .board-cell-online,
  .board-cell-prize { grid-column: span 1; grid-row: auto; }
  .board-hero-title { font-size: 28px; }
  .board-hero-title em { font-size: 18px; }
  .board-actions { flex-direction: column; }
  .board-actions .btn { width: 100%; justify-content: center; }
  .board-games-mini { grid-template-columns: repeat(3, 1fr); }

  .board-tour-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
  .board-tour-date { flex-direction: row; gap: 8px; align-items: baseline; text-align: left; }
  .board-tour-prize-row { flex-direction: row; justify-content: space-between; padding: 6px 12px; }
  .board-tour-action { width: 100%; }

  .board-table-card { padding: 14px 16px; }
  .board-players-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .board-hero-title { font-size: 24px; }
  .board-cell-hero { padding: 22px 18px; }
  .board-piece-icon { width: 50px; height: 50px; font-size: 22px; }
  .board-mini-icon { width: 42px; height: 42px; font-size: 16px; }
  .board-filter-tab { padding: 7px 14px; font-size: 12px; }
}

/* ===========================
 * 棋院资质·官方认证墙（水墓卸轴风格）
 * =========================== */
.board-licenses-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.board-license-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(217, 119, 6, .04), rgba(5, 150, 105, .03)),
    repeating-linear-gradient(0deg, rgba(5, 150, 105, .04) 0 1px, transparent 1px 4px);
  background-color: #f7f1e3;
  border: 1px solid rgba(217, 119, 6, .35);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    inset 0 0 30px rgba(217, 119, 6, .06),
    0 4px 12px rgba(10, 20, 16, .25);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.board-license-tile::before,
.board-license-tile::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(217, 119, 6, .55);
  pointer-events: none;
}
.board-license-tile::before {
  top: 6px; left: 6px;
  border-right: none; border-bottom: none;
}
.board-license-tile::after {
  bottom: 6px; right: 6px;
  border-left: none; border-top: none;
}
.board-license-corner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.board-license-corner::before,
.board-license-corner::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(217, 119, 6, .55);
}
.board-license-corner::before {
  top: 6px; right: 6px;
  border-left: none; border-bottom: none;
}
.board-license-corner::after {
  bottom: 6px; left: 6px;
  border-right: none; border-top: none;
}
.board-license-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.05);
  transition: filter .35s, transform .35s;
}
.board-license-tile:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: #d97706;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .85),
    inset 0 0 30px rgba(217, 119, 6, .1),
    0 14px 28px rgba(217, 119, 6, .25);
}
.board-license-tile:hover img {
  filter: contrast(1.15) brightness(1.05);
  transform: scale(1.04);
}

.board-licenses-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 24px;
  background: rgba(5, 150, 105, .06);
  border-left: 3px solid #059669;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
}
.board-licenses-foot i {
  font-size: 22px;
  color: #d97706;
}

@media (max-width: 1199.98px) {
  .board-licenses-grid { grid-template-columns: repeat(6, 1fr); }
  .board-license-tile { height: 170px; }
}

/* 平板及以下：网格转横向滚动，一屏一张 */
@media (max-width: 991.98px) {
  .board-licenses-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    padding: 6px 4px 18px;
    margin-left: -6px;
    margin-right: -6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 119, 6, .55) transparent;
  }
  .board-licenses-grid::-webkit-scrollbar { height: 6px; }
  .board-licenses-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #d97706, #059669);
    border-radius: 3px;
  }
  .board-licenses-grid::-webkit-scrollbar-track { background: rgba(217, 119, 6, .08); border-radius: 3px; }

  .board-license-tile {
    flex: 0 0 calc(100vw - 80px) !important;
    width: calc(100vw - 80px) !important;
    max-width: 460px;
    height: calc((100vw - 80px) * .55) !important;
    max-height: 260px;
    scroll-snap-align: center;
  }
  .board-licenses-foot { font-size: 13px; padding: 16px 18px; flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 575.98px) {
  .board-license-tile {
    flex: 0 0 calc(100vw - 60px) !important;
    width: calc(100vw - 60px) !important;
    height: calc((100vw - 60px) * .58) !important;
  }
}


/* =================================================== */
/* MOBILE ENHANCED · dl_* 特殊模板 H5 自适应规则       */
/* =================================================== */
.hero img, section img, .content img, .card img { max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
  .hero { padding: 80px 20px 60px !important; }
  .hero h1 { font-size: 48px !important; line-height: 1.05 !important; }
  .hero p, .hero-lead { font-size: 16px !important; line-height: 1.7 !important; }
}

@media (max-width: 768px) {
  .hero { padding: 64px 20px 48px !important; }
  .hero h1 { font-size: 38px !important; line-height: 1.1 !important; }
  .hero h1 em { font-size: 38px !important; }
  .hero p, .hero-lead { font-size: 15px !important; line-height: 1.75 !important; }
  .hero-cta, .hero-actions { display: flex; flex-direction: column; gap: 10px; }
  .hero-cta a, .hero-actions a, .hero-cta .btn {
    width: 100%; box-sizing: border-box; padding: 14px 20px !important;
    font-size: 15px !important; text-align: center; min-height: 48px;
    border-radius: 10px !important;
  }
  .hero-stats, .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-stats strong, .stats-grid strong { font-size: 26px !important; }
  /* sections */
  section { padding: 48px 16px !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; margin-bottom: 14px; }
  .card { margin-bottom: 12px; border-radius: 12px; }
  .card-body { padding: 18px 16px; }
  h2 { font-size: 1.4rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.15rem !important; }
  .btn-lg { padding: 12px 20px !important; font-size: 15px !important; width: 100%; min-height: 48px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lot-hero, .ks-hero { padding: 60px 16px !important; }
  .lot-hero h1, .ks-hero h1 { font-size: 36px !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px !important; }
  .hero h1 em { font-size: 30px !important; }
  .lot-hero h1, .ks-hero h1 { font-size: 28px !important; }
}
