:root {
  --site-nav-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.site-shell,
.wrap.site-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.site-tabs {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f5f9 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  backdrop-filter: blur(8px);
}

.site-tab {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font: 600 14px/20px var(--site-nav-font);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, background-color .15s, box-shadow .15s;
}
.site-tab:hover { background: #f1f5f9; color: #1e293b; }
.site-tab[aria-current="page"] {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
/* 数字彩单独配色，并固定到导航最右侧 */
.site-tab.site-tab--lottery {
  margin-left: auto;
  color: #b45309;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .12);
}
.site-tab.site-tab--lottery:hover {
  background: linear-gradient(135deg, #ffedd5 0%, #fde68a 100%);
  color: #92400e;
}
.site-tab:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

@media (max-width: 640px) {
  .site-shell,
  .wrap.site-shell { padding: 12px 12px 28px; }
  /* 手机端单行横向滚动，避免 3×2 两行占掉首屏 */
  .site-tabs,
  .site-tabs.site-tabs--with-lottery {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 2px;
    padding: 3px;
    overflow-x: auto;
    border-radius: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-tabs::-webkit-scrollbar { display: none; }
  .site-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-tab { transition: none; }
}

/* 独立页（如绕绕 2.0）用的手机两字标签 */
.site-tab-short { display: inline; }
.site-tab-full { display: none; }
@media (min-width: 641px) {
  .site-tab-short { display: none; }
  .site-tab-full { display: inline; }
}

site-nav { display: block; }
