/* ============================================================
   亚泰娱乐 · 彩种大厅（分类表格 + 在线彩种合并）
   依赖 theme-palettes.css 的 CSS 变量
   ============================================================ */

.hall {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* ── 左侧分类表格 ── */
.hall-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  position: sticky;
  top: 84px;
}

.hall-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.hall-nav-item img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: 0 0 auto;
  display: block;
}

.hall-nav-item .txt { min-width: 0; flex: 1 1 auto; }

.hall-nav-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-nav-item em {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-nav-item .arrow {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.6px solid var(--muted);
  border-top: 1.6px solid var(--muted);
  transform: rotate(45deg);
  opacity: .55;
  transition: opacity .18s ease, transform .18s ease;
}

.hall-nav-item:hover {
  background: var(--panel-2);
  border-color: var(--line);
}

.hall-nav-item:hover .arrow { opacity: 1; }

.hall-nav-item.is-active {
  background: var(--panel-2);
  border-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
}

.hall-nav-item.is-active .arrow {
  opacity: 1;
  border-color: var(--gold);
  transform: rotate(45deg) translate(1px, -1px);
}

/* ── 右侧彩种网格 ── */
.hall-main { min-width: 0; }

.hall-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 2px 12px;
}

.hall-title {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--text);
}

.hall-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  margin-right: 9px;
  background: var(--gold);
}

.hall-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 10px;
}

.hall-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hall-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--panel-2);
}

.hall-card .ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
}

.hall-card .ico img {
  width: 100%;
  height: 100%;
  display: block;
}

.hall-card .info { min-width: 0; flex: 1 1 auto; }

.hall-card .info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
}

.hall-card .info em {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-flag {
  flex: 0 0 auto;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}

.hall-flag.on {
  color: #7ef2c8;
  border-color: rgba(126, 242, 200, .34);
  background: rgba(126, 242, 200, .08);
}

.hall-card.is-off { opacity: .62; }
.hall-card.is-off:hover { border-color: var(--line); transform: none; }

.hall-empty {
  padding: 34px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* 默认空态（未选择分类） */
.hall-empty-hint {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 240px; padding: 40px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
}
.hall-empty-hint b {
  font-size: 16px; letter-spacing: 1px; color: var(--gold-2, #ffd75e);
  display: block; margin-bottom: 2px;
}
.hall-empty-hint span {
  font-size: 12.8px; line-height: 1.8; color: var(--muted);
}
.hall-empty-hint::before {
  content: '◀';
  font-size: 22px; color: var(--gold, #e8b23a); opacity: .75;
  animation: hallHintNudge 1.6s ease-in-out infinite;
}
@keyframes hallHintNudge {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50% { transform: translateX(-6px); opacity: 1; }
}
@media (max-width: 860px) {
  .hall-empty-hint::before { content: '▲'; animation: hallHintNudgeUp 1.6s ease-in-out infinite; }
  @keyframes hallHintNudgeUp {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50% { transform: translateY(-6px); opacity: 1; }
  }
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .hall { grid-template-columns: 248px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .hall { grid-template-columns: 1fr; }
  .hall-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hall-nav::-webkit-scrollbar { display: none; }
  .hall-nav-item {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 12px 8px 8px;
    border-color: var(--line);
  }
  .hall-nav-item em { display: none; }
  .hall-nav-item .arrow { display: none; }
  .hall-nav-item.is-active { box-shadow: none; }
  .hall-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .hall-card { padding: 9px 10px; gap: 9px; }
  .hall-card .ico { width: 36px; height: 36px; border-radius: 10px; }
  .hall-card .info b { font-size: 12.5px; }
  .hall-flag { display: none; }
}
