/* ============ 共竞电竞 GONGJING E-SPORTS - 全局样式（贴纸糖果风） ============ */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  /* ════════════════════════════════════════════════════════════
     共竞电竞 · 设计令牌
     全部取自 logo：深靛蓝黑底 + 电光青边缘光 + 紫罗兰填充 + 品红内线
     ════════════════════════════════════════════════════════════ */

  /* ── 品牌霓虹：logo 三角上的三种光 ── */
  --neon-cyan:      #4FE0FF;   /* 电光青 · 三角外缘发光描边 */
  --neon-cyan-deep: #2BB6E8;
  --neon-violet:    #7B4CFF;   /* 电光蓝紫 · 三角主填充 */
  --neon-purple:    #A855F7;   /* 紫罗兰 · 三角顶端 */
  --neon-magenta:   #E24BB0;   /* 品红 · 三角内缘细线 */

  /* ── 深色分层：logo 背景的纵深 ── */
  --bg-base: #05061A;          /* 页面底 · logo 最深处 */
  --bg-1:    #090C24;          /* 一级面板 */
  --bg-2:    #0E1230;          /* 二级卡片 */
  --bg-3:    #151A40;          /* 三级 / 悬停 */
  --bg-4:    #1C2450;          /* 浮起 / 激活 */

  /* ── 主色系（糖果紫 → 电光青）── */
  --brand-light: #0B2130;
  --brand-soft:  #17415C;
  --brand:       #4FE0FF;
  --brand-deep:  #2BB6E8;
  --brand-hot:   #7B4CFF;
  /* ⚠️ -ink 家族在深色主题下是「前景色」而不是「深底文字」，
     本色值必须保持高亮度，否则 .modal-title / .code-text / .tab-item.active
     等 9 处文字会变成深色叠深底而不可见。详见 MEMORY.md */
  --brand-ink:   #8FE7FF;

  /* ── 辅色系（糖果青 → 赛博紫）── */
  --cyan-light: #16123A;
  --cyan-soft:  #292070;
  --cyan:       #7B4CFF;
  --cyan-deep:  #9A6BFF;
  --cyan-sky:   #A855F7;
  --cyan-ink:   #C4AEFF;

  /* ── 第三色：品红（logo 三角内缘）── */
  --pink-soft: #33152C;
  --pink:      #E24BB0;
  --pink-deep: #FF5CC0;

  /* ── 语义色 ── */
  --mint:      #0E3226;
  --mint-deep: #2FE0A0;
  --gold:      #FFC93C;
  --gold-deep: #E8A800;
  --gold-ink:  #FFD98A;

  /* ── 表面 ── */
  --cream: #05061A;
  --paper: #0E1230;
  --white: #FFFFFF;

  /* ── 文字 ── */
  --ink:       #E9EFFF;
  --ink-soft:  #A3B0D6;
  --line:      rgba(126, 152, 224, 0.14);
  --dark:      #E9EFFF;
  --dark-soft: #A3B0D6;

  /* ── 阴影：深底投射 + 霓虹光 ── */
  --shadow-brand: 0 0 24px rgba(79, 224, 255, 0.32);
  --shadow-cyan:  0 0 24px rgba(123, 76, 255, 0.34);
  --shadow-soft:  0 14px 36px rgba(0, 0, 0, 0.50);

  /* ── 渐变：呼应 logo 三角（青 → 紫 → 品红）── */
  --gradient-main: linear-gradient(135deg, #4FE0FF 0%, #7B4CFF 55%, #A855F7 100%);
  --gradient-pink: linear-gradient(135deg, #7B4CFF 0%, #A855F7 100%);
  --gradient-blue: linear-gradient(135deg, #4FE0FF 0%, #2BB6E8 100%);
  --gradient-gold: linear-gradient(135deg, #FFD86B 0%, #E8A800 100%);
  --gradient-card: linear-gradient(160deg, #151B44 0%, #0C1029 100%);

  /* ── 圆角：赛博风收紧（原 14/20/28/36）── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* ── 字体：中文靠 Noto Sans SC 重字重，拉丁走几何科技体 ── */
  --font-cute: 'Chakra Petch', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num:  'Rajdhani', 'Chakra Petch', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ 奶油波点背景 ============ */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 12% 15%, rgba(154, 107, 255,0.38) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 10%, rgba(185,165,251,0.34) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 98%, rgba(168, 85, 247,0.18) 0%, transparent 45%),
    radial-gradient(circle at 1px 1px, rgba(79, 224, 255,0.10) 2px, transparent 2.6px),
    linear-gradient(180deg, #12173A 0%, #12173A 100%);
  background-size: auto, auto, auto, 32px 32px, auto;
  z-index: -2;
}

.clouds {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  animation: floatCloud linear infinite;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before { width: 55%; height: 165%; top: -78%; left: 18%; }
.cloud::after  { width: 38%; height: 115%; top: -48%; right: 14%; }

@keyframes floatCloud {
  from { transform: translateX(-240px); }
  to { transform: translateX(calc(100vw + 240px)); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(180deg); }
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

/* ============ 顶部导航 ============ */
.top-bar {
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(126, 152, 224, 0.22);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.top-bar-logo img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  outline: 1px solid rgba(126, 152, 224, 0.20);
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  transition: transform 0.3s;
}

.top-bar-logo:hover img { transform: rotate(-6deg) scale(1.05); }

.top-bar-title {
  font-family: var(--font-cute);
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-ink);
  letter-spacing: 1px;
  line-height: 1.15;
}

.top-bar-subtitle {
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--cyan-sky);
  font-weight: 600;
  letter-spacing: 2.5px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--cyan-deep);
  color: white;
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  font-family: inherit;
}

.back-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.back-btn:active { transform: translateY(3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

/* ============ 容器 ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 36px;
  padding-top: 10px;
}

.page-title {
  font-family: var(--font-cute);
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  display: inline-block;
  position: relative;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.page-title::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -8px;
  height: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5' fill='none' stroke='%23FF85AB' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 24px 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 14px;
}

/* ============ 首页 Hero ============ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 26px auto 8px;
  padding: 10px 20px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-cute);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 1px;
  text-wrap: balance;
}

.hero-title .accent { color: var(--brand-hot); }
.hero-title .accent-blue { color: var(--cyan-sky); }

/* 仅窄屏生效的换行点（桌面端隐藏），避免标题断在词中间 */
.br-m { display: none; }
@media (max-width: 768px) { .br-m { display: inline; } }

.hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-top: 16px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-tag {
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.hero-tag:nth-child(2) { border-color: var(--cyan-soft); }
.hero-tag:nth-child(3) { border-color: var(--pink-soft); }

.hero-mascot {
  position: relative;
  flex-shrink: 0;
}

.hero-mascot img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  animation: floatY 4.5s ease-in-out infinite;
}

.hero-sticker {
  position: absolute;
  width: 46px;
  height: 46px;
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  animation: floatY 3.2s ease-in-out infinite;
}

.hero-sticker.s1 { top: -14px; right: -8px; animation-delay: 0.4s; }
.hero-sticker.s2 { bottom: 18px; left: -18px; animation-delay: 0.9s; }
.hero-sticker.s3 { bottom: -12px; right: 26px; animation-delay: 1.4s; }

/* ============ 区块标题 ============ */
.section-title {
  font-family: var(--font-cute);
  font-size: 27px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin: 46px 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  letter-spacing: 1px;
}

.section-title::before,
.section-title::after {
  content: '';
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-deep));
}

.section-title::after {
  background: linear-gradient(90deg, var(--brand-deep), transparent);
}

/* ============ 大厅玩法卡片（贴纸风） ============ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px 24px;
  margin-top: 10px;
}

.game-card {
  --card-accent: var(--brand-deep);
  --card-accent-dark: var(--brand-ink);
  --card-accent-bg: var(--brand-light);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 152, 224, 0.22);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.game-card:nth-child(4n+1) {
  --card-accent: var(--brand); --card-accent-dark: var(--brand-soft); --card-accent-bg: var(--brand-light);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.game-card:nth-child(4n+2) {
  --card-accent: var(--cyan); --card-accent-dark: var(--cyan-soft); --card-accent-bg: var(--cyan-light);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.game-card:nth-child(4n+3) {
  --card-accent: var(--pink); --card-accent-dark: var(--pink-soft); --card-accent-bg: #33152C;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.game-card:nth-child(4n+4) {
  --card-accent: var(--gold); --card-accent-dark: var(--gold-line); --card-accent-bg: var(--gold-soft);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.game-card::after {
  content: '';
  position: absolute;
  top: -42px;
  right: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--card-accent-bg);
  z-index: 0;
  transition: transform 0.35s;
}

.game-card > * { position: relative; z-index: 1; }

.game-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.game-card:nth-child(4n+2):hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.game-card:nth-child(4n+3):hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.game-card:nth-child(4n+4):hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.game-card:hover::after { transform: scale(1.35); }

.game-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  margin-bottom: 16px;
  background: var(--card-accent-bg);
  border: 1px solid rgba(126, 152, 224, 0.22);
  outline: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  transition: transform 0.3s;
}

.game-card:hover .game-card-icon {
  transform: rotate(-6deg) scale(1.06);
}

.game-card-title {
  font-family: var(--font-cute);
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.game-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.game-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card-accent);
  color: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  transition: all 0.18s;
}

.game-card:hover .game-card-action {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.game-card-action:active { transform: translateY(3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.game-card-arrow {
  transition: transform 0.25s;
  font-weight: 900;
}

.game-card:hover .game-card-arrow { transform: translateX(4px); }

/* ============ 通用糖果按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, filter 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-deep);
  color: white;
  border-color: var(--brand-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.btn-blue {
  background: var(--cyan-deep);
  color: white;
  border-color: var(--cyan-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.btn-blue:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.btn-blue:active { transform: translateY(4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.btn-outline {
  background: white;
  color: var(--brand-hot);
  border-color: var(--brand);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.btn-outline:hover { background: var(--brand-light); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.btn-outline:active { transform: translateY(3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.btn-gold {
  background: var(--gradient-gold);
  color: #FFC93C;
  border-color: var(--gold-deep);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  filter: grayscale(0.3);
}

.btn-lg { padding: 16px 44px; font-size: 17px; border-radius: 13px; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 9px; }

/* ============ 弹窗（贴纸风） ============ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(126, 152, 224, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--paper);
  border-radius: 20px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(126, 152, 224, 0.20);
  background: var(--bg-2);
  color: var(--brand-ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.modal-close:hover { background: var(--brand-deep); color: white; transform: rotate(90deg) scale(1.05); }

.modal-title {
  font-family: var(--font-cute);
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
  color: var(--brand-ink);
  letter-spacing: 1px;
}

.modal-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ============ 表单 ============ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-2);
  transition: all 0.25s;
  outline: none;
  color: var(--ink);
}

.form-input::placeholder { color: #7E8AAE; }

.form-input:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.42);
}

.form-select {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-2);
  cursor: pointer;
  outline: none;
  color: var(--ink);
}

.form-select:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.42);
}

/* ============ 结果弹窗 ============ */
.result-modal .modal {
  text-align: center;
  max-width: 400px;
}

.result-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: floatY 2.2s ease-in-out infinite;
}

.result-title {
  font-family: var(--font-cute);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.result-title.win { color: var(--brand-hot); }
.result-title.lose { color: var(--cyan-sky); }

.result-prize {
  font-family: var(--font-cute);
  font-size: 30px;
  font-weight: 400;
  color: var(--brand-ink);
  margin: 16px 0;
  padding: 18px 16px;
  background: var(--brand-light);
  border: 1px dashed rgba(126, 152, 224, 0.20);
  border-radius: var(--radius-md);
  letter-spacing: 1px;
  word-break: break-all;
}

.result-detail {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============ 中奖名单滚动（贴纸卡） ============ */
.winners-section {
  margin-top: 40px;
  background: var(--paper);
  border-radius: 16px;
  padding: 24px 26px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.winners-title {
  font-family: var(--font-cute);
  font-size: 19px;
  font-weight: 400;
  color: var(--cyan-ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.winners-list {
  height: 120px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.winners-track {
  animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px dashed var(--cyan-soft);
  font-size: 14px;
}

.winner-name {
  font-weight: 700;
  color: var(--gold-ink);
  flex-shrink: 0;
}

.winner-prize {
  color: var(--ink);
  font-weight: 500;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-time {
  color: var(--ink-soft);
  font-size: 12px;
  font-family: var(--font-num);
  flex-shrink: 0;
}

/* ============ 概率展示 ============ */
.probability-display {
  background: var(--cyan-light);
  border-radius: 13px;
  padding: 18px 22px;
  margin: 24px auto;
  max-width: 780px;
  border: 1px dashed rgba(126, 152, 224, 0.20);
}

.probability-title {
  font-size: 14px;
  color: var(--cyan-ink);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.probability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.prob-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: rgba(21, 27, 68, 0.70);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  border: 1px solid rgba(126, 152, 224, 0.16);
  box-shadow: none;
}

.prob-label { font-weight: 700; color: var(--ink); white-space: nowrap; }
.prob-prize {
  flex: 1;
  min-width: 0;
  text-align: right;
  color: var(--cyan-ink);
  font-weight: 600;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prob-value { color: var(--brand-hot); font-family: var(--font-num); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ============ 骰子（糖果方块） ============ */
.dice-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin: 34px 0;
  flex-wrap: wrap;
}

.dice-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dice-label {
  font-family: var(--font-cute);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
  padding: 8px 24px;
  border-radius: 30px;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.dice-label.boss {
  background: var(--brand-deep);
  color: white;
  border: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.dice-label.player {
  background: var(--cyan-deep);
  color: white;
  border: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.dice {
  width: 110px;
  height: 110px;
  background: var(--bg-2);
  border-radius: 16px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
  font-family: var(--font-num);
  color: var(--brand-hot);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
  transition: transform 0.2s;
  line-height: 1;
  user-select: none;
}

.dice.blue {
  border-color: var(--cyan-deep);
  color: var(--cyan-sky);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
}

.dice.rolling {
  animation: diceRoll 0.15s infinite;
}

@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.08); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============ 6x6 奖励表 ============ */
.prize-grid {
  display: grid;
  grid-template-columns: 60px repeat(6, 1fr);
  gap: 6px;
  max-width: 780px;
  margin: 28px auto;
  background: var(--cyan-deep);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.prize-cell {
  background: white;
  padding: 16px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-radius: 9px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--ink);
}

.prize-cell.header {
  background: var(--cyan-deep);
  color: white;
  font-size: 15px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  font-family: var(--font-num);
}

.prize-cell.corner {
  background: var(--brand-deep);
  color: white;
  font-size: 12px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  font-family: var(--font-cute);
}

.prize-cell.highlight {
  background: var(--gradient-pink);
  color: white;
  transform: scale(1.12);
  box-shadow: 0 6px 18px var(--shadow-brand), 0 0 0 3px #FFFFFF;
  z-index: 2;
  font-size: 18px;
}

/* ============ 房间系统（贴纸卡） ============ */
.room-join {
  max-width: 420px;
  margin: 40px auto;
  background: var(--paper);
  border-radius: 17px;
  padding: 36px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.room-status {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.status-badge {
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  color: var(--ink-soft);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.status-badge.waiting { background: var(--cyan-light); color: var(--cyan-ink); border-color: var(--cyan-soft); }
.status-badge.ready { background: #0F2A20; color: #2FE0A0; border-color: #1E5A44; }

/* ============ 骰子世界子玩法 ============ */
.sub-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.sub-game-card {
  background: var(--paper);
  border-radius: 15px;
  padding: 26px 24px;
  text-align: center;
  border: 1px solid rgba(126, 152, 224, 0.22);
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.sub-game-card:hover, .sub-game-card.active {
  border-color: var(--brand-deep);
  transform: translate(-2px, -2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.sub-game-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s;
}

.sub-game-card:hover .sub-game-icon { transform: scale(1.12) rotate(-6deg); }

.sub-game-name {
  font-family: var(--font-cute);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.sub-game-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.6;
}

.prize-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.prize-list-item {
  background: var(--brand-light);
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(126, 152, 224, 0.20);
}

.prize-list-item .die-num {
  background: var(--brand-deep);
  color: white;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-family: var(--font-num);
  flex-shrink: 0;
}

/* ============ 心跳玩法 ============ */
.heartbeat-join {
  max-width: 460px;
  margin: 30px auto;
  background: var(--paper);
  border-radius: 17px;
  padding: 36px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.heartbeat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 24px auto;
}

.heartbeat-stat-card {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  border: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.heartbeat-stat-card.guarantee { border-color: var(--cyan-soft); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.heartbeat-stat-card.remaining { border-color: var(--brand); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.heartbeat-stat-card.earned { border-color: var(--gold); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

.heartbeat-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.heartbeat-stat-value {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.heartbeat-stat-card.guarantee .heartbeat-stat-value { color: var(--cyan-sky); }
.heartbeat-stat-card.remaining .heartbeat-stat-value { color: var(--brand-hot); }
.heartbeat-stat-card.earned .heartbeat-stat-value { color: var(--gold-ink); }

.heartbeat-inputs {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.heartbeat-input-group {
  text-align: center;
}

.heartbeat-input-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.heartbeat-input-group input {
  width: 100%;
  padding: 14px 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-num);
  text-align: center;
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 10px;
  background: white;
  color: #1a1a2e;
  outline: none;
  transition: all 0.25s;
}

.heartbeat-input-group input::placeholder {
  color: #9aa3b2;
}

.heartbeat-input-group input:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.42);
}

.heartbeat-roll-section {
  text-align: center;
  margin: 32px 0;
}

.heartbeat-settlement {
  max-width: 500px;
  margin: 24px auto;
  padding: 32px;
  background: linear-gradient(135deg, #1E1220, #0C2836);
  border: 1px solid var(--gold);
  border-radius: 17px;
  text-align: center;
  animation: popIn 0.5s ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.heartbeat-settlement h2 {
  font-family: var(--font-cute);
  font-size: 32px;
  font-weight: 400;
  color: var(--brand-hot);
  margin-bottom: 12px;
}

.heartbeat-settlement p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.heartbeat-history {
  max-width: 700px;
  margin: 24px auto;
  background: var(--bg-2);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.heartbeat-history-title {
  font-family: var(--font-cute);
  font-size: 16px;
  font-weight: 400;
  color: var(--cyan-ink);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.heartbeat-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px dashed #1A1626;
  font-size: 13px;
}

.heartbeat-history-item:last-child { border-bottom: none; }
.heartbeat-history-item.win { color: var(--brand-hot); font-weight: 700; }
.heartbeat-history-item.lose { color: var(--cyan-sky); font-weight: 700; }

.dice-choice {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 22px 0;
}

.dice-choice-btn {
  padding: 18px 30px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  border-radius: 14px;
  background: var(--bg-2);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
  font-family: inherit;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.dice-choice-btn:hover, .dice-choice-btn.selected {
  background: var(--brand-deep);
  border-color: var(--brand-ink);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.dice-choice-btn .dice-preview {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
}

.dice-choice-btn .role-name { display: block; line-height: 1.25; }
.dice-choice-btn .role-hint {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.72;
  line-height: 1.25;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--ink);
  color: white;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  font-size: 14px;
  font-weight: 700;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--brand-hot); }
.toast.success { background: #2FE0A0; }

/* ============ 页脚 ============ */
.site-footer {
  text-align: center;
  margin-top: 60px;
  padding: 36px 20px 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  outline: 1px solid rgba(126, 152, 224, 0.20);
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  margin-bottom: 12px;
}

.site-footer p { font-weight: 700; color: var(--ink); }
.site-footer .footer-sub { font-weight: 400; margin-top: 4px; font-size: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .page-title { font-size: 28px; }
  .games-grid { grid-template-columns: 1fr; gap: 22px; }
  .dice { width: 84px; height: 84px; font-size: 38px; border-radius: 13px; }
  .prize-grid { grid-template-columns: 44px repeat(6, 1fr); gap: 4px; padding: 4px; border-radius: 10px; }
  .prize-cell { padding: 8px 2px; font-size: 11px; min-height: 42px; border-radius: 6px; }
  .prize-cell.header { font-size: 11px; }
  .container { padding: 20px 14px; }
  .top-bar-title { font-size: 17px; }
  .top-bar { padding: 10px 14px; }
  .heartbeat-stats { grid-template-columns: 1fr; }
  .heartbeat-inputs { grid-template-columns: 1fr; }
  .heartbeat-stat-value { font-size: 22px; }
  .dice-choice-btn { padding: 14px 20px; font-size: 14px; }
  .dice-choice-btn .dice-preview { font-size: 26px; }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 26px;
    margin-top: 14px;
  }
  .hero-mascot img { width: 190px; height: 190px; }
  .hero-title { font-size: 27px; }
  .hero-tags { justify-content: center; }
  .hero-sticker { width: 40px; height: 40px; font-size: 18px; }
  .section-title { font-size: 22px; margin: 36px 0 20px; }
  .dice-container { gap: 30px; }
  .modal { padding: 28px 22px; }
}

/* ============ 后台管理样式 ============ */
.admin-body {
  background: #131838;
}

.admin-body::before { display: none; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(154, 107, 255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(185, 165, 251,0.35) 0%, transparent 50%),
    linear-gradient(135deg, #0C2836, #1E1220);
}

.admin-login-card {
  background: var(--bg-2);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(126, 152, 224, 0.22);
  text-align: center;
}

/* 登录卡片内的表单标签需与输入框左对齐（卡片整体是居中的） */
.admin-login-card .form-label { text-align: left; }

.admin-logo {
  width: 80px; height: 80px;
  border-radius: 16px;
  margin: 0 auto 16px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  outline: 1px solid rgba(126, 152, 224, 0.22);
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.admin-login-card h2 {
  font-family: var(--font-cute) !important;
  font-weight: 400 !important;
  font-size: 27px !important;
  color: var(--ink);
  letter-spacing: 1px;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #6C7899, #A5B2D6);
  color: white;
  padding: 20px 0;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
}

.admin-sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.admin-sidebar-logo img {
  width: 52px; height: 52px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(126, 152, 224, 0.20);
}

.admin-sidebar-title {
  font-family: var(--font-cute);
  font-size: 17px;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: 1px;
}

.admin-nav {
  padding: 16px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 14px;
  font-weight: 500;
  border-left: 1px solid rgba(126, 152, 224, 0.22);
}

.admin-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.admin-nav-item.active {
  background: rgba(79, 224, 255,0.18);
  color: var(--brand);
  border-left-color: var(--brand-deep);
  font-weight: 700;
}

.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: 30px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-family: var(--font-cute);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 13px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}

.stat-card:nth-child(2) { border-top-color: var(--cyan-deep); border-color: var(--cyan-soft); }
.stat-card:nth-child(3) { border-top-color: var(--pink); border-color: var(--pink-soft); }
.stat-card:nth-child(4) { border-top-color: var(--gold); border-color: #4A3A12; }

.stat-value {
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
}

.admin-card {
  background: white;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(126, 152, 224, 0.20);
  margin-bottom: 20px;
}

.admin-card-title {
  font-family: var(--font-cute);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--brand-light);
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid rgba(126, 152, 224, 0.20);
}

.admin-table td {
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid #161B3E;
}

.admin-table tr:hover td { background: #131838; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
}

.badge-active { background: #0F2A20; color: #2FE0A0; }
.badge-inactive { background: #2A1220; color: #FF4D6D; }
.badge-used { background: #2B2410; color: var(--gold-ink); }

.code-text {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-light);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 1px;
}

.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(126, 152, 224, 0.20);
  overflow-x: auto;
}

.tab-item {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(126, 152, 224, 0.22);
  margin-bottom: -2.5px;
  white-space: nowrap;
  transition: all 0.25s;
  border-radius: 8px 8px 0 0;
}

.tab-item:hover { color: var(--brand-hot); }
.tab-item.active { color: var(--brand-ink); border-bottom-color: var(--brand-deep); }

.prize-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.prize-edit-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(126, 152, 224, 0.20);
}

.prize-edit-card h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--brand-ink);
}

.prize-edit-card input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  outline: none;
  font-family: inherit;
}

.prize-edit-card input:focus { border-color: var(--brand); }

.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.inline-form .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

@media (max-width: 768px) {
  .admin-sidebar { width: 62px; }
  .admin-sidebar-title, .admin-nav-item span { display: none; }
  .admin-main { margin-left: 62px; padding: 16px; }
}

/* ============ 首页「价格表」横向贴纸卡入口（与玩法卡片同款语言） ============ */
.pl-entry {
  --card-accent: var(--cyan-deep);
  --card-accent-dark: var(--cyan-ink);
  --card-accent-bg: var(--cyan-light);
  background: var(--paper);
  border: 1px solid rgba(126, 152, 224, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  padding: 22px 28px;
  margin: 6px 0 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  animation: popIn .4s ease both;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
}
.pl-entry::after {
  content: '';
  position: absolute;
  top: -42px;
  right: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--card-accent-bg);
  z-index: 0;
  transition: transform 0.35s;
}
.pl-entry > * { position: relative; z-index: 1; }
.pl-entry:hover {
  transform: translate(-4px, -4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.pl-entry:hover::after { transform: scale(1.35); }

.pl-entry-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  background: var(--card-accent-bg);
  border: 1px solid rgba(126, 152, 224, 0.22);
  outline: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  transition: transform 0.3s;
}
.pl-entry:hover .pl-entry-icon { transform: rotate(-6deg) scale(1.06); }

.pl-entry-body { flex: 1; min-width: 0; }
.pl-entry-title {
  font-family: var(--font-cute);
  font-size: 23px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.pl-entry-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.pl-entry-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card-accent);
  color: #FFFFFF;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  transition: all 0.18s;
}
.pl-entry:hover .pl-entry-action { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.pl-entry-action:active { transform: translateY(3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.pl-entry-arrow { font-weight: 900; transition: transform 0.25s; }
.pl-entry:hover .pl-entry-arrow { transform: translateX(4px); }

@media (max-width: 600px) {
  .pl-entry { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .pl-entry-icon { width: 54px; height: 54px; font-size: 26px; border-radius: 13px; }
  .pl-entry-title { font-size: 19px; }
  .pl-entry-desc { font-size: 13px; }
  .pl-entry-action { width: 100%; justify-content: center; }
}

/* ============ 首页顶栏「价格表」入口 ============ */
.top-pl-link {
  font-family: var(--font-cute);
  font-size: 16px;
  color: var(--brand-ink);
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.top-pl-link:hover { transform: translate(-1px, -1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.top-pl-link:active { transform: translateY(2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
@media (max-width: 600px) {
  .top-pl-link { font-size: 13px; padding: 6px 12px; }
}

/* ============ 价格表画廊（前台） ============ */
.pl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.pl-card {
  --card-accent: var(--brand-deep);
  background: var(--paper);
  border: 1px solid rgba(126, 152, 224, 0.22);
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: popIn .4s ease both;
}
.pl-card:hover {
  transform: translate(-2px, -2px) rotate(-.5deg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.pl-card-imgwrap {
  background: var(--bg-2);
  border-bottom: 1px solid rgba(126, 152, 224, 0.22);
  padding: 8px;
  position: relative;
}
.pl-card-imgwrap img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.pl-card:hover .pl-card-imgwrap img { transform: scale(1.04); }
.pl-card-cap {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pl-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, var(--bg-2));
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 999px;
  padding: 2px 12px;
  line-height: 1.5;
}
.pl-card-name {
  font-family: var(--font-cute);
  font-size: 17px;
  color: var(--ink);
  text-align: center;
  word-break: break-all;
}
.pl-empty, .pl-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-cute);
  font-size: 20px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed rgba(126, 152, 224, 0.22);
  border-radius: 15px;
}

/* ============ 价格表灯箱（自由缩放，不影响网页布局） ============ */
.pl-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(126, 152, 224, .9);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
}
.pl-viewer.active { display: flex; }
.pl-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pl-tool-btn {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  min-width: 46px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(126, 152, 224, 0.20);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.pl-tool-btn:active { transform: translateY(3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.pl-tool-close {
  background: var(--brand-deep);
  color: #FFFFFF;
  border-color: var(--brand-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.pl-tool-close:active { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.pl-zoom-level {
  font-family: var(--font-num);
  font-weight: 700;
  color: #FFFFFF;
  min-width: 64px;
  text-align: center;
  font-size: 16px;
}
.pl-viewer-stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.pl-viewer-img {
  /* 不压缩：按图片原始像素布局，缩放全部由 transform 完成，放大看到的是原图分辨率 */
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  will-change: transform;
}
.pl-viewer-hint {
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  padding: 10px;
  flex-shrink: 0;
}
.pl-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(126, 152, 224, 0.22);
  background: rgba(0,0,0,.5);
  color: #FFFFFF;
  font-size: 28px;
  font-family: var(--font-num);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s;
  -webkit-user-select: none;
  user-select: none;
}
.pl-nav-btn:hover { background: rgba(0,0,0,.75); }
.pl-nav-prev { left: 16px; }
.pl-nav-next { right: 16px; }
.pl-nav-count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 14px;
  padding: 3px 14px;
  border-radius: 14px;
  z-index: 10;
}
.pl-card-multi {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 14px;
  z-index: 2;
}

/* ============ 前台分类 Tab 栏 ============ */
.pl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}
.pl-tab {
  font-family: var(--font-cute);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pl-tab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.pl-tab.active {
  background: var(--brand-deep);
  color: #FFFFFF;
  border-color: var(--brand-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.pl-tab:active { transform: translateY(1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }

/* ============ 后台价格表管理 ============ */
.pl-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.pl-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.pl-cat-chip-label {
  font-family: var(--font-cute);
  font-size: 15px;
  color: var(--ink);
}
.pl-cat-chip-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(126, 152, 224, 0.20);
  background: var(--bg-2);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, background .12s ease;
}
.pl-cat-chip-btn:hover { transform: scale(1.1); background: var(--pink-soft); }
.pl-cat-chip-del { border-color: #FF4D6D; }
.pl-cat-chip-del:hover { background: #2A1220; }

.pl-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.pl-admin-item {
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pl-admin-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--cream);
  cursor: zoom-in;
  border-bottom: 1px solid rgba(126, 152, 224, 0.20);
  display: block;
}
.pl-admin-tag {
  align-self: flex-start;
  margin: 8px 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 999px;
  padding: 1px 10px;
}
.pl-admin-info {
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.pl-admin-title {
  font-family: var(--font-cute);
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  word-break: break-all;
}
.pl-admin-sort {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold-deep);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 14px;
  border: 1px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  z-index: 2;
}
.pl-admin-btns {
  display: flex;
  gap: 8px;
}
.pl-edit-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}
.pl-edit-img-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.btn-danger {
  background: #FF4D6D;
  border: 1px solid rgba(126, 152, 224, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  color: #FFFFFF;
}
.btn-danger:active { transform: translateY(4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
@media (max-width: 600px) {
  .pl-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .pl-card-imgwrap img { height: 170px; }
  .pl-card-cap { font-size: 15px; }
}


/* ============ 旧变量名兼容层（历史上其它主题遗留的引用，统一落到糖果体系） ============ */
:root {
  /* ── 旧变量名兼容层（历史上其它主题遗留的引用，统一落到赛博体系） ── */
  --bg            : var(--cream);
  --surface       : var(--paper);
  --surface-2     : #0B0F2A;
  --surface-3     : var(--brand-light);

  --text          : var(--ink);
  --text-soft     : #A3B0D6;
  --text-dim      : var(--ink-soft);
  --dim           : var(--ink-soft);

  --line-strong   : rgba(126, 152, 224, 0.30);

  --brand-strong  : var(--brand);
  --brand-line    : var(--brand-soft);
  --accent        : var(--cyan-sky);
  --accent-soft   : var(--cyan-light);
  --accent-line   : var(--cyan-soft);
  --accent-strong : var(--cyan-deep);
  --violet-bright : var(--brand-hot);
  --cyan-bright   : var(--cyan-deep);

  --red           : #FF4D6D;
  --red-soft      : #2A1220;
  --red-line      : #4A1F33;
  --green         : var(--mint-deep);
  --green-soft    : #0E3226;
  --green-line    : #1E5A44;
  --gold-soft     : #2B2410;
  --gold-line     : #4A3A12;

  --shadow-xs     : 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-sm     : 0 6px 16px rgba(0, 0, 0, 0.40);
  --shadow-md     : 0 12px 30px rgba(0, 0, 0, 0.48);
  --shadow-lg     : 0 22px 52px rgba(0, 0, 0, 0.58);

  --font-sans     : 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-lg          : var(--radius-lg);
  --r-btn         : 10px;
}

/* ============ emoji 图标（emojiIcon() 生成，用于少数需要独立尺寸控制的场景） ============ */
.emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-style: normal;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/* 价格表分类 emoji 稍大一点，和贴纸风一致 */
.cat-emoji { font-size: 22px; }

/* ============================================================
   共竞独有组件（模板没有的部分，用同一套糖果语言重写）
   ============================================================ */

/* ============ 幸运转盘（games/wheel） ============ */
.wheel-container { display: flex; flex-direction: column; align-items: center; margin: 26px 0; }
.wheel-wrapper { position: relative; width: 420px; height: 420px; max-width: 100%; }

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-right: 2px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid rgba(255, 255, 255, 0.16);
  filter: drop-shadow(2px 3px 0 rgba(126, 152, 224, 0.18));
  z-index: 10;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cute);
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1.25;
  text-align: center;
  color: #FFFFFF;
  background: var(--gradient-pink);
  border: 1px solid rgba(126, 152, 224, 0.22);
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 0 0 2.5px var(--brand);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 0 2.5px var(--brand-ink);
}
.wheel-center:active { transform: translate(-50%, -50%) scale(0.97); }
.wheel-center.spinning { pointer-events: none; opacity: 0.85; }

canvas#wheelCanvas {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2.5px var(--brand-soft);
}

.wheel-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #2B2410;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

/* ============ 心跳玩法 · 结单弹窗 ============ */
.settle-trophy {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 8px;
}
.settle-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.settle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: var(--brand-light);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.settle-row span:last-child { font-family: var(--font-num); font-size: 18px; }

/* ============ 后台 · 分类图标选择器 ============ */
.cat-icon-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-icon-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  background: var(--bg-2);
  border: 1px solid rgba(126, 152, 224, 0.20);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.cat-icon-opt:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46); }
.cat-icon-opt.active {
  border-color: var(--brand-ink);
  background: var(--brand-light);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

/* ============ 移动端：转盘缩放 ============ */
@media (max-width: 520px) {
  .wheel-wrapper { width: 320px; height: 320px; }
  canvas#wheelCanvas { width: 320px; height: 320px; }
  .wheel-center { width: 78px; height: 78px; font-size: 16px; }
}


/* ══════════════════════════════════════════════════════════════
   精修层：把机械换色的结果收敛成一套统一语言
   原则 —— 表面靠「深底 + 1px 微线」分层，霓虹只出现在焦点与强调
   ══════════════════════════════════════════════════════════════ */

/* ── 背景容器 ── */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cyber-bg .grid {
  position: absolute;
  inset: -2px;
  mask-image: radial-gradient(ellipse 88% 68% at 50% 30%, #000 28%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 68% at 50% 30%, #000 28%, transparent 100%);
}

.cyber-bg .tri { position: absolute; }

/* ── 背景：深空 + 柔和霓虹光晕 ── */
body::before {
  background:
    radial-gradient(ellipse at 14% 6%, rgba(123, 76, 255, 0.24) 0%, transparent 46%),
    radial-gradient(ellipse at 88% 2%, rgba(79, 224, 255, 0.15) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 102%, rgba(168, 85, 247, 0.12) 0%, transparent 52%),
    linear-gradient(180deg, #05061A 0%, #070A20 100%);
  background-size: auto, auto, auto, auto;
}

/* 光斑改由 body::before 承担，避免两层重复 */
.cyber-bg .orb { display: none; }

.cyber-bg .grid {
  background-image:
    linear-gradient(rgba(126, 152, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 152, 224, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* logo 的倒三角 —— 品牌签名，压在 hero 区背后 */
.cyber-bg .tri {
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 740px;
  height: 640px;
  background: linear-gradient(168deg, rgba(123, 76, 255, 0.30) 0%, rgba(79, 224, 255, 0.09) 52%, rgba(79, 224, 255, 0) 86%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 0 46px rgba(123, 76, 255, 0.42));
  opacity: 0.8;
}

/* ── 顶栏：深色玻璃 + 底部霓虹细线 ── */
.top-bar {
  background: rgba(5, 6, 26, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(126, 152, 224, 0.13);
  box-shadow: none;
}

.top-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 224, 255, 0.55) 24%, rgba(123, 76, 255, 0.55) 76%, transparent);
  opacity: 0.7;
}

.top-bar-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 2.5px;
}

.top-bar-subtitle { color: var(--brand); opacity: 0.8; letter-spacing: 3px; }

.top-bar-logo img {
  border-radius: 10px;
  border: 1px solid rgba(126, 152, 224, 0.30);
  box-shadow: 0 0 18px rgba(79, 224, 255, 0.20);
}

.top-bar-logo:hover img { transform: scale(1.04); }

.top-pl-link {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand);
  border-radius: 7px;
  padding: 8px 16px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-pl-link:hover {
  transform: none;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  border-color: color-mix(in srgb, var(--brand) 62%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 30%, transparent);
}

.back-btn {
  background: color-mix(in srgb, var(--cyan) 78%, transparent);
  color: #FFFFFF;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  border-radius: 7px;
  box-shadow: none;
  font-weight: 600;
}

.back-btn:hover {
  transform: none;
  box-shadow: 0 0 22px color-mix(in srgb, var(--cyan) 38%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 80%, transparent);
}

/* ── Hero ── */
.hero-badge {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  color: var(--brand);
  border-radius: 6px;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  padding: 7px 16px;
}

.hero-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 34px rgba(79, 224, 255, 0.18);
}

.hero-title .accent {
  color: var(--brand);
  text-shadow: 0 0 26px rgba(79, 224, 255, 0.55);
}

.hero-title .accent-blue {
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255, 201, 60, 0.45);
}

.hero-mascot img {
  border-radius: 18px;
  border: 1px solid rgba(126, 152, 224, 0.26);
  box-shadow: 0 0 46px rgba(123, 76, 255, 0.42), 0 26px 60px rgba(0, 0, 0, 0.55);
}

.hero-sticker {
  background: rgba(11, 15, 42, 0.92);
  border: 1px solid rgba(126, 152, 224, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

/* ── 分区标题 ── */
.section-title {
  font-weight: 700;
  letter-spacing: 2px;
}

.section-title::before,
.section-title::after {
  height: 2px;
  width: 44px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand));
  box-shadow: 0 0 10px rgba(79, 224, 255, 0.65);
}

.section-title::after { background: linear-gradient(90deg, var(--brand), transparent); }

/* ── 卡片：深色玻璃面板 + 签名霓虹条 ── */
.games-grid .game-card,
.pl-entry {
  background: linear-gradient(160deg, rgba(21, 27, 68, 0.66) 0%, rgba(10, 14, 38, 0.72) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 152, 224, 0.15);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(.2, .8, .3, 1), border-color 0.3s, box-shadow 0.3s;
}

/* 左上角霓虹标记条：呼应 logo 三角的棱，颜色随卡片轮转 */
.games-grid .game-card::before,
.pl-entry::before {
  content: '';
  position: absolute;
  top: 0; left: 22px;
  width: 26px; height: 2px;
  background: var(--card-accent);
  box-shadow: 0 0 12px var(--card-accent);
  transition: width 0.32s cubic-bezier(.2, .8, .3, 1);
  z-index: 2;
}

.games-grid .game-card:hover::before,
.pl-entry:hover::before { width: 56px; }

/* 右上角装饰：极低透明度同色光，不要色块 */
.games-grid .game-card::after,
.pl-entry::after {
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 24%, transparent) 0%, transparent 70%);
  filter: blur(4px);
}

.games-grid .game-card:hover,
.pl-entry:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 34px color-mix(in srgb, var(--card-accent) 22%, transparent);
}

/* 卡片四色轮转的悬停阴影（特异性高于原 nth-child 规则） */
.games-grid .game-card:nth-child(4n+1):hover,
.games-grid .game-card:nth-child(4n+2):hover,
.games-grid .game-card:nth-child(4n+3):hover,
.games-grid .game-card:nth-child(4n+4):hover {
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 34px color-mix(in srgb, var(--card-accent) 24%, transparent);
}

.game-card-icon,
.pl-entry-icon {
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, transparent);
  outline: none;
  border-radius: 14px;
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--card-accent) 12%, transparent);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.games-grid .game-card:hover .game-card-icon,
.pl-entry:hover .pl-entry-icon {
  transform: none;
  border-color: color-mix(in srgb, var(--card-accent) 58%, transparent);
  box-shadow:
    inset 0 0 26px color-mix(in srgb, var(--card-accent) 20%, transparent),
    0 0 24px color-mix(in srgb, var(--card-accent) 30%, transparent);
}

.game-card-title,
.pl-entry-title {
  font-weight: 700;
  letter-spacing: 0.8px;
}

.game-card-desc,
.pl-entry-desc { color: var(--ink-soft); }

/* ── 按钮：霓虹实心 + 深色字 ── */
.game-card-action,
.pl-entry-action {
  background: var(--card-accent);
  color: #05061A;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--card-accent) 30%, transparent);
  transition: box-shadow 0.24s, transform 0.24s;
}

.games-grid .game-card:hover .game-card-action,
.pl-entry:hover .pl-entry-action {
  transform: none;
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--card-accent) 48%, transparent),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 55%, transparent);
}

/* ── 页脚 ── */
.site-footer img {
  border-radius: 12px;
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 0 20px rgba(123, 76, 255, 0.28);
}

/* ── 移动端 ── */
@media (max-width: 768px) {
  .cyber-bg .tri { width: 400px; height: 350px; top: 60px; }
  .cyber-bg .grid { background-size: 40px 40px; }
  .top-bar-title { font-size: 17px; letter-spacing: 1.5px; }
  .hero-title { letter-spacing: 0; text-shadow: none; }
}

/* ══════════════════════════════════════════════════════════════
   首页信息结构调整（2026-09-12）
   首页从「hero + 卡片堆」收敛为一屏落地页：顶栏导航 + Hero + 两个 CTA。
   玩法列表独立到 /games（趣味玩法专区），价格表留在 /pricelist。
   ══════════════════════════════════════════════════════════════ */

/* ── 顶栏导航（沿用 .top-pl-link 的药丸语言） ── */
.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.top-nav-link:hover {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  border-color: color-mix(in srgb, var(--brand) 62%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 30%, transparent);
}

/* 当前所在页 */
.top-nav-link.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #05061A;
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 46%, transparent);
}

/* ── Hero：一屏落地 ── */
.hero-landing {
  min-height: calc(100vh - 320px);
  padding-top: 20px;
}

.hero-sub {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-top: 22px;
  letter-spacing: 0.4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.hero-btn .arw { transition: transform 0.22s; }
.hero-btn:hover .arw { transform: translateX(4px); }

.hero-btn-primary {
  background: var(--brand);
  color: #05061A;
  border: 1px solid var(--brand);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--brand) 34%, transparent);
}

.hero-btn-primary:hover {
  background: #7FE9FF;
  border-color: #7FE9FF;
  box-shadow: 0 10px 34px color-mix(in srgb, var(--brand) 52%, transparent);
}

.hero-btn-ghost {
  background: rgba(11, 15, 42, 0.62);
  color: var(--ink);
  border: 1px solid rgba(126, 152, 224, 0.30);
}

.hero-btn-ghost:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 11%, transparent);
  border-color: color-mix(in srgb, var(--brand) 58%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--brand) 28%, transparent);
}

/* ── 页标题下的糖果波浪 → 霓虹细线（该波浪是旧主题残留） ── */
.page-title::after {
  height: 2px;
  bottom: -10px;
  left: 12%;
  right: 12%;
  border-radius: 2px;
  background-image: none;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  box-shadow: 0 0 12px rgba(79, 224, 255, 0.55);
}

/* ── 趣味玩法专区页头 ── */
.page-header { margin-bottom: 34px; }

@media (max-width: 768px) {
  .hero-landing { min-height: 0; padding-top: 6px; }
  .hero-actions { margin-top: 26px; gap: 12px; }
  .hero-btn { flex: 1 1 100%; justify-content: center; padding: 14px 20px; }
  .top-nav { gap: 7px; }
  .top-nav-link { padding: 8px 12px; font-size: 13px; letter-spacing: 0.2px; }
}

@media (max-width: 400px) {
  .top-bar-title { font-size: 15px; letter-spacing: 1px; }
  .top-bar-logo img { width: 38px; height: 38px; }
  .top-nav-link { padding: 7px 9px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   首页入场动画：每个板块从下方隐形的状态飘到自己的位置

   没有加载层、没有幕布 ——
   页面一打开就是内容本身在浮现，不要任何中间介绍层。

   时间轴：0.05 顶栏 → 0.15 徽标 → 0.24 吉祥物 → 0.32 大标题
                 → 0.56 副标题 → 0.68 主按钮 → 0.78 次按钮 → 0.88 页脚
           约 1.8s 全部落位

   每个元素：opacity 0→1 + translateY(36px)→0 + blur(12px)→none
   模糊到清晰就是“对焦感”，这是“高级感”的来源，不要简化成纯 opacity。

   ⚠️ 规则挂在 .has-intro 下（只有首页 <body> 带）。
      style.css 是全局表，不加作用域会让其它页面的顶栏也跟着飘入。
   ⚠️ 用 animation-fill-mode: backwards，不要 both ——
      both 会把 transform/filter 永久锁在终态，演完后按钮 hover 全失效。
   ══════════════════════════════════════════════════════════════ */

@keyframes gj-emerge {
  from { opacity: 0; transform: translateY(36px); filter: blur(12px); }
  to   { opacity: 1; transform: none;             filter: none; }
}
/* 吉祥物：多一层从 92% 放大到位，层次最强 */
@keyframes gj-emerge-lg {
  from { opacity: 0; transform: translateY(30px) scale(0.92); filter: blur(14px); }
  to   { opacity: 1; transform: none;                        filter: none; }
}
@keyframes gj-fade { from { opacity: 0; } to { opacity: 1; } }

.has-intro .cyber-bg         { animation: gj-fade 1.2s ease backwards; }
.has-intro .top-bar          { animation: gj-emerge 0.90s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
.has-intro .hero-badge       { animation: gj-emerge 0.90s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards; }
.has-intro .hero-mascot      { animation: gj-emerge-lg 1.00s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards; }
.has-intro .hero-title       { animation: gj-emerge 1.00s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards; }
.has-intro .hero-sub         { animation: gj-emerge 0.90s cubic-bezier(0.16, 1, 0.3, 1) 0.56s backwards; }
.has-intro .hero-btn-primary { animation: gj-emerge 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.68s backwards; }
.has-intro .hero-btn-ghost   { animation: gj-emerge 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.78s backwards; }
.has-intro .site-footer      { animation: gj-emerge 0.90s cubic-bezier(0.16, 1, 0.3, 1) 0.88s backwards; }

/* 尊重「减少动态效果」：去掉位移与模糊，保留柔和淡入。
   不能整段禁用 —— 那会让开了该设置的用户完全看不到入场。 */
@media (prefers-reduced-motion: reduce) {
  .has-intro .cyber-bg,
  .has-intro .top-bar,
  .has-intro .hero-badge,
  .has-intro .hero-mascot,
  .has-intro .hero-title,
  .has-intro .hero-sub,
  .has-intro .hero-btn-primary,
  .has-intro .hero-btn-ghost,
  .has-intro .site-footer { animation: gj-fade 0.5s ease 0.1s both; }
}

/* ══════════════════════════════════════════════════════════════════
   趣味玩法专区 · 机台索引式排版（2026-09-12 重构）
   刻意脱离「居中标题 + 等宽卡片网格 + 药丸按钮」的模板语汇：
   改成左栏常驻信息 + 右侧编号索引，整页没有卡片、没有按钮，
   交互暗示只靠行内霓虹标线。仅作用于 .page-play，不影响其它页。
   ══════════════════════════════════════════════════════════════════ */

.page-play .container { padding-top: 46px; padding-bottom: 0; }

.play-console {
  display: grid;
  /* 左栏只做「说明」，重心留给右侧索引：1180 容器下约 250 : 838 */
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

/* ── 左栏：常驻信息 ── */
.play-side { position: sticky; top: 98px; }

.play-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.play-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.play-title {
  font-family: var(--font-cute);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 18px;
}

.play-lead {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.play-stats { display: flex; gap: 26px; }

.play-stats b {
  display: block;
  font-family: var(--font-num);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  color: var(--neon-cyan);
}

.play-stats span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--ink-soft);
}

/* ── 右栏：编号索引 ── */
.game-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.game-index-item { border-bottom: 1px solid var(--line); }

.game-index-link {
  --row-accent: var(--neon-cyan);
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 27px 22px 27px 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.35s ease;
}

/* 悬停时从左侧长出的霓虹标线 */
.game-index-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--row-accent);
  box-shadow: 0 0 16px var(--row-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.game-index-link:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent) 17%, transparent) 0%, transparent 72%);
}

.game-index-link:hover::before { transform: scaleY(1); }

.game-index-no {
  flex: 0 0 auto;
  width: 78px;
  font-family: var(--font-num);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  color: color-mix(in srgb, var(--row-accent) 26%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--row-accent) 55%, transparent);
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.game-index-link:hover .game-index-no {
  color: var(--row-accent);
  -webkit-text-stroke-color: var(--row-accent);
}

.game-index-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 26px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--row-accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--row-accent) 34%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-index-link:hover .game-index-icon {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--row-accent) 62%, transparent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--row-accent) 24%, transparent);
}

.game-index-name {
  display: block;
  font-family: var(--font-cute);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ink);
}

.game-index-desc {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.game-index-body { flex: 0 1 auto; min-width: 0; }

/* 目录式虚线引导：把名称和右侧行动点连起来，避免宽行中间空出一大块 */
.game-index-leader {
  flex: 1 1 auto;
  min-width: 26px;
  height: 0;
  border-top: 1px dashed rgba(150, 172, 226, 0.28);
  transition: border-color 0.3s ease;
}

.game-index-link:hover .game-index-leader {
  border-top-color: color-mix(in srgb, var(--row-accent) 68%, transparent);
}

.game-index-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.game-index-go i {
  font-style: normal;
  transition: transform 0.3s ease;
}

.game-index-link:hover .game-index-go { color: var(--row-accent); }
.game-index-link:hover .game-index-go i { transform: translateX(6px); }

/* 五行五色：直接取自 logo 的霓虹族 */
.game-index-item:nth-child(5n+1) .game-index-link { --row-accent: #4FE0FF; }
.game-index-item:nth-child(5n+2) .game-index-link { --row-accent: #9A6BFF; }
.game-index-item:nth-child(5n+3) .game-index-link { --row-accent: #FF5CC0; }
.game-index-item:nth-child(5n+4) .game-index-link { --row-accent: #FFC93C; }
.game-index-item:nth-child(5n+5) .game-index-link { --row-accent: #2FE0A0; }

.game-index-empty {
  padding: 40px 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── 页脚：从「居中堆叠」改成横向栏（模板感最重的一处） ── */
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-top: 76px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.site-footer .footer-sub {
  margin: 0 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .play-console { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; }
  .play-title { font-size: 30px; }
  .play-stats { gap: 20px; }
}

@media (max-width: 900px) {
  .page-play .container { padding-top: 30px; }
  .play-console { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .play-side { position: static; }
  .play-title { font-size: 34px; margin-bottom: 16px; }
  .play-lead { max-width: none; margin-bottom: 24px; }
  .play-stats { gap: 26px; }
  .play-stats b { font-size: 26px; }

  .game-index-link {
    gap: 14px;
    padding: 22px 14px 22px 16px;
  }
  .game-index-no { width: 44px; font-size: 30px; }
  .game-index-icon { display: none; }
  .game-index-name { font-size: 18px; }
}

@media (max-width: 560px) {
  .game-index-leader { display: none; }
  .game-index-go span { display: none; }
  .site-footer { flex-wrap: wrap; gap: 10px; }
  .site-footer .footer-sub { margin: 0; width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   后台深色化补丁（2026-09-12）
   ──────────────────────────────────────────────────────────────────────
   背景：糖果风→赛博风的令牌转换脚本只重写了「用 var() 引用的颜色」，
   而后台这一屏有大量**硬编码的浅色字面量**被漏掉了 ——
   .admin-sidebar 是灰蓝渐变、.stat-card / .admin-card 是 background:white。
   令牌翻转后 --ink 变成近白，于是白底配白字，整屏不可读。
   这里统一补齐。

   作用域：全部挂在 .admin-body 下。body 带这个 class 的只有
   public/admin.html，所以不会外溢到其它 10 个页面。
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. 页面底与背景层 ───────────────────────────────────────────── */
.admin-body {
  background: var(--bg-base);
}

/* hero 用的倒三角在后台没有语义，只是一坨悬空的形状 → 隐藏 */
.admin-body .cyber-bg .tri { display: none; }
.admin-body .cyber-bg .grid { opacity: 0.5; }
.admin-body .cyber-bg .orb { filter: blur(120px); opacity: 0.5; }

/* ── 2. 侧边栏：糖果灰蓝渐变 → 深色面板 ─────────────────────────── */
.admin-body .admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #0B1030 0%, #070A1E 100%);
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.admin-body .admin-sidebar-logo { border-bottom-color: var(--line); }
.admin-body .admin-sidebar-logo img { border-color: rgba(126, 152, 224, 0.20); }
.admin-body .admin-sidebar-title { color: var(--brand); font-weight: 600; }

/* 原来每个菜单项都有一条 1px 竖线，看着像表格网格 → 只给激活项保留 */
.admin-body .admin-nav-item {
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  padding-left: 22px;
  letter-spacing: 0.2px;
}
.admin-body .admin-nav-item:hover {
  background: rgba(126, 152, 224, 0.08);
  color: var(--ink);
}
.admin-body .admin-nav-item.active {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 92%);
  color: var(--brand);
  border-left-color: var(--brand);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--brand) 9%, transparent);
}

/* ── 3. 统计卡与内容卡：白底 → 深色分层表面 ─────────────────────── */
.admin-body .stat-card {
  background: linear-gradient(160deg, rgba(21, 27, 68, 0.74) 0%, rgba(9, 13, 36, 0.80) 100%);
  border: 1px solid rgba(126, 152, 224, 0.16);
  border-top: 2px solid var(--brand);
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.40);
}
/* 四色顶线：与 Logo 霓虹族对应，逐个显式写死以免被上一行的 border-top 覆盖 */
.admin-body .stat-card:nth-child(1) { border-top-color: var(--brand); }
.admin-body .stat-card:nth-child(2) { border-top-color: var(--cyan-deep); border-color: rgba(126, 152, 224, 0.16); }
.admin-body .stat-card:nth-child(3) { border-top-color: var(--pink); border-color: rgba(126, 152, 224, 0.16); }
.admin-body .stat-card:nth-child(4) { border-top-color: var(--gold); border-color: rgba(126, 152, 224, 0.16); }

.admin-body .stat-value { color: var(--ink); }
.admin-body .stat-label { color: var(--ink-soft); }

.admin-body .admin-card {
  background: linear-gradient(160deg, rgba(19, 25, 62, 0.68) 0%, rgba(9, 13, 36, 0.76) 100%);
  border: 1px solid rgba(126, 152, 224, 0.15);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
}
.admin-body .admin-card-title { color: var(--ink); }
.admin-body .admin-header h1 { color: var(--ink); }

/* ── 4. 表格：表头要比卡片「亮」才读得出层级 ─────────────────────── */
.admin-body .admin-table th {
  background: rgba(126, 152, 224, 0.09);
  color: var(--brand);
  border-bottom: 1px solid rgba(126, 152, 224, 0.20);
  letter-spacing: 0.6px;
}
.admin-body .admin-table td {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.admin-body .admin-table tbody tr:hover td { background: rgba(126, 152, 224, 0.05); }
.admin-body .admin-table tbody tr:last-child td { border-bottom: none; }

/* 表格在窄屏靠卡片自己横滚，不撑破布局（:has 只对有表格的卡生效） */
.admin-body .admin-card:has(.admin-table) { overflow-x: auto; }

/* ── 5. 弹窗：遮罩原来是浅蓝，改成深色压场 ───────────────────────── */
.admin-body .modal-overlay { background: rgba(3, 5, 20, 0.74); }
.admin-body .modal {
  background: linear-gradient(165deg, #151B44 0%, #090D24 100%);
  border: 1px solid rgba(126, 152, 224, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.66);
}
.admin-body .modal-close {
  color: var(--ink-soft);
  border-color: rgba(126, 152, 224, 0.22);
  background: rgba(126, 152, 224, 0.08);
}
.admin-body .modal-close:hover { color: #05061A; }

/* ── 6. 登录页：糖果紫雾 → 品牌霓虹 ─────────────────────────────── */
.admin-body .admin-login {
  background:
    radial-gradient(ellipse 58% 46% at 22% 14%, rgba(79, 224, 255, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 58% 52% at 78% 86%, rgba(123, 76, 255, 0.26) 0%, transparent 64%),
    var(--bg-base);
}
.admin-body .admin-login-card {
  background: linear-gradient(165deg, rgba(21, 27, 68, 0.86) 0%, rgba(9, 13, 36, 0.92) 100%);
  border: 1px solid rgba(126, 152, 224, 0.20);
}

/* ── 7. 表单与后台小控件 ────────────────────────────────────────── */
.admin-body .form-input,
.admin-body .form-select {
  background: rgba(5, 6, 26, 0.72);
  border-color: rgba(126, 152, 224, 0.20);
  color: var(--ink);
}
.admin-body .form-input:focus,
.admin-body .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.admin-body .form-input::placeholder { color: #6E7AA3; }

/* 激活码：原来 --brand-ink 深底深字（已由令牌翻转修好），这里再补底 */
.admin-body .code-text {
  color: var(--brand);
  background: rgba(126, 152, 224, 0.10);
  border: 1px solid rgba(126, 152, 224, 0.16);
}

.admin-body .prize-edit-card {
  background: rgba(5, 6, 26, 0.60);
  border-color: rgba(126, 152, 224, 0.16);
}
.admin-body .prize-edit-card h4 { color: var(--brand); }
.admin-body .prize-edit-card input {
  background: rgba(5, 6, 26, 0.72);
  border-color: rgba(126, 152, 224, 0.18);
  color: var(--ink);
}

.admin-body .cat-icon-opt {
  background: rgba(5, 6, 26, 0.60);
  border-color: rgba(126, 152, 224, 0.16);
}
.admin-body .cat-icon-opt.active {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border-color: var(--brand);
  box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 30%, transparent);
}

.admin-body .pl-cat-chip {
  background: rgba(5, 6, 26, 0.60);
  border-color: rgba(126, 152, 224, 0.16);
  box-shadow: none;
}
.admin-body .pl-cat-chip-label { color: var(--ink); }
.admin-body .pl-cat-chip-btn {
  background: rgba(126, 152, 224, 0.08);
  border-color: rgba(126, 152, 224, 0.16);
  color: var(--ink-soft);
}
.admin-body .pl-cat-chip-btn:hover { background: rgba(126, 152, 224, 0.18); }

.admin-body .pl-admin-item {
  background: rgba(5, 6, 26, 0.55);
  border-color: rgba(126, 152, 224, 0.16);
  box-shadow: none;
}
.admin-body .pl-admin-item img {
  background: #05061A;
  border-bottom-color: rgba(126, 152, 224, 0.14);
}

/* ══════════════════════════════════════════════════════════════════════
   8. 两处共享组件的白底残留（全局，非后台专属）
   .btn-outline 用在 admin + dice-world / gambling-king / heartbeat；
   .prize-cell 用在 gambling-king，原来是白底配近白字，同样不可读。
   ══════════════════════════════════════════════════════════════════════ */
.btn-outline {
  background: rgba(11, 15, 42, 0.62);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 36%, transparent);
  box-shadow: none;
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  color: var(--brand);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 26%, transparent);
}

.prize-cell {
  background: rgba(21, 27, 68, 0.70);
  border: 1px solid rgba(126, 152, 224, 0.14);
  color: var(--ink);
}
/* 高亮格里那圈纯白描边在深色下太刺眼 */
.prize-cell.highlight {
  box-shadow: 0 6px 18px var(--shadow-brand), 0 0 0 2px rgba(255, 255, 255, 0.88);
}

/* ══════════════════════════════════════════════════════════════════════
   9. 后台窄屏：原先侧边栏被压到 62px，而菜单文字是**直接文本节点**
   （HTML 里没有 <span> 包裹），旧的 `.admin-nav-item span{display:none}`
   根本没生效 → 文字被挤成竖排单字。
   改成横向滚动导航条，不用动 HTML。
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .admin-body .admin-layout { flex-direction: column; }

  .admin-body .admin-sidebar {
    position: sticky;
    top: 0; left: auto; right: auto; bottom: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    z-index: 60;
  }

  /* 手机上把 logo 块让给导航 */
  .admin-body .admin-sidebar-logo { display: none; }

  .admin-body .admin-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 末尾露半个菜单会看着像断了 → 用渐隐暗示「还能滑」 */
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
  .admin-body .admin-nav::-webkit-scrollbar { display: none; }

  .admin-body .admin-nav-item {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-left: none;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(126, 152, 224, 0.06);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
  }
  .admin-body .admin-nav-item.active {
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    border-color: color-mix(in srgb, var(--brand) 46%, transparent);
  }

  /* 侧边栏里写死 position:absolute 的退出按钮 → 拉回流内靠右 */
  .admin-body .admin-sidebar > div[style*="position:absolute"] {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    text-align: right !important;
    flex: 0 0 auto;
  }

  .admin-body .admin-main { margin-left: 0; padding: 16px 14px 28px; }
  .admin-body .admin-header { margin-bottom: 16px; }
  .admin-body .admin-header h1 { font-size: 20px; }

  .admin-body .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  .admin-body .stat-card { padding: 15px 14px; }
  .admin-body .stat-value { font-size: 26px; }
  .admin-body .admin-card { padding: 16px; }

  /* 表格按内容宽度铺开、交给卡片横滚。
     原来写死 min-width:520px，房间列表有 8 列（含「保底/剩余/吃金额」），
     列宽被压到 65px 后表头折成竖排单字。改用 max-content 让每列自适应。 */
  .admin-body .admin-table { width: max-content; min-width: 100%; }
  .admin-body .admin-table th,
  .admin-body .admin-table td { white-space: nowrap; }

  /* 奖项编辑的游戏切换条同理，右侧渐隐 */
  .admin-body .tab-bar {
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
}

/* ============ 刮刮乐后台板面管理 ============ */
.sc-surface-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.sc-surface-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
}
.sc-letter {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4FE0FF, #7B4CFF);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-meta { line-height: 1.5; }
.sc-img-box {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.sc-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sc-img {
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  object-fit: contain;
}
.sc-img-empty {
  width: 100%;
  max-width: 200px;
  height: 80px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
}
.sc-upload { flex-shrink: 0; }
.pl-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
