/* ==========================================================================
   e路有法·青少年网络法制科普互动系统
   全屏岛屿地图导览 + 零Emoji纯手绘卡通矢量UI样式系统 (css/style.css)
   ========================================================================== */

:root {
  --bg-top: #D6F0FF;
  --bg-mid: #ECFEFF;
  --bg-bot: #FFF9DB;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --surface-cream: #FFFDF4;
  --ink: #1E293B;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --outline: #1E293B;

  --mango: #FFB800;
  --mango-deep: #D97706;
  --mango-pale: #FEF3C7;

  --sky: #0EA5E9;
  --sky-deep: #0284C7;
  --sky-pale: #E0F2FE;

  --mint: #10B981;
  --mint-deep: #059669;
  --mint-pale: #D1FAE5;

  --berry: #F43F5E;
  --berry-deep: #E11D48;
  --berry-pale: #FFE4E6;

  --violet: #8B5CF6;
  --violet-deep: #6D28D9;
  --violet-pale: #EDE9FE;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="night"] {
  --bg-top: #0F172A;
  --bg-mid: #1E1B4B;
  --bg-bot: #172554;
  --surface: #1E293B;
  --surface-soft: #283548;
  --surface-cream: #243047;
  --ink: #F8FAFC;
  --ink-secondary: #CBD5E1;
  --ink-muted: #94A3B8;
  --outline: #090D16;
  --mango-pale: rgba(255, 184, 0, 0.18);
  --sky-pale: rgba(14, 165, 233, 0.2);
  --mint-pale: rgba(16, 185, 129, 0.2);
  --berry-pale: rgba(244, 63, 94, 0.2);
  --violet-pale: rgba(139, 92, 246, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bot) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 首页大屏地图模式：全屏无边距沉浸视图 */
body.map-mode {
  overflow: hidden;
  background: #23B5D3;
}

.svg-ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

/* === 动态天空云朵背景装饰（子页面可见） === */
.sky-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
body.map-mode .sky-decor {
  display: none;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  animation: driftCloud linear infinite;
}
[data-theme="night"] .cloud {
  background: rgba(148, 163, 184, 0.12);
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 { width: 130px; height: 42px; top: 9%; left: -150px; animation-duration: 46s; }
.cloud-1::before { width: 58px; height: 58px; top: -28px; left: 22px; }
.cloud-1::after { width: 44px; height: 44px; top: -18px; left: 64px; }
.cloud-2 { width: 170px; height: 50px; top: 24%; left: -200px; animation-duration: 62s; animation-delay: -22s; opacity: 0.65; }
.cloud-2::before { width: 72px; height: 72px; top: -36px; left: 30px; }
.cloud-2::after { width: 56px; height: 56px; top: -24px; left: 86px; }

@keyframes driftCloud {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 360px)); }
}

/* === 顶部游戏化 HUD 导航栏（纯文字胶囊，无Emoji） === */
.top-hud {
  position: sticky;
  top: 0;
  z-index: 150;
  padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
}

body.map-mode .top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.hud-bar {
  max-width: min(96vw, 1440px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2.5px solid var(--outline);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--outline);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  pointer-events: auto;
}
[data-theme="night"] .hud-bar {
  background: rgba(30, 41, 59, 0.94);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.25s var(--spring);
}
.brand-box:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--mango);
  color: #1E293B;
  border: 1.5px solid #1E293B;
}

.brand-text p {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9.5px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.18s var(--spring);
  white-space: nowrap;
}

.nav-pill:hover {
  background: var(--sky-pale);
  color: var(--sky-deep);
  transform: translateY(-2px);
}

.nav-pill.active {
  background: var(--mango);
  color: #1E293B;
  border-color: #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  transform: translateY(-1px);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.coin-capsule, .rank-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--outline);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s var(--spring);
}
.coin-capsule {
  background: var(--mango-pale);
  color: #B45309;
}
[data-theme="night"] .coin-capsule { color: #FCD34D; }
.rank-capsule {
  background: var(--mint-pale);
  color: var(--mint-deep);
}
[data-theme="night"] .rank-capsule { color: #6EE7B7; }
.coin-capsule:hover, .rank-capsule:hover { transform: scale(1.05); }

.icon-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 2px solid var(--outline);
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--outline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s var(--spring);
}
.icon-btn:hover { transform: translateY(-2px); background: var(--sky-pale); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--outline); }

.mobile-menu-btn { display: none; }

/* === 全屏奇幻岛交互世界地图 (#page-home) === */
#app-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: min(95vw, 1400px);
  margin: 0 auto;
  padding: 20px max(18px, env(safe-area-inset-right)) 104px max(18px, env(safe-area-inset-left));
}

body.map-mode #app-main {
  max-width: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
}

.view-page {
  display: none;
  animation: popPage 0.3s var(--spring);
}
.view-page.active {
  display: block;
}
#page-home.active {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  animation: none;
}

@keyframes popPage {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.island-world-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 48%, #5CE1E6 0%, #22B8CF 60%, #0284C7 100%);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="night"] .island-world-viewport {
  background: radial-gradient(circle at 50% 48%, #1E3A8A 0%, #0F172A 80%);
}

.island-stage-box {
  position: relative;
  flex-shrink: 0;
  user-select: none;
}

.island-world-img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  image-rendering: auto;
}
[data-theme="night"] .island-world-img {
  filter: brightness(0.84) contrast(1.06) saturate(1.08);
}

/* 岛屿建筑交互热区与立体卡通路牌 */
.landmark-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 16%;
  height: 24%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 6px;
  z-index: 12;
  font-family: var(--font-sans);
  outline: none;
}

/* 悬停建筑光环特效 */
.landmark-halo {
  position: absolute;
  inset: 6% 8% 16% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.55) 0%, rgba(255, 184, 0, 0) 72%);
  border: 3px dashed rgba(255, 255, 255, 0);
  opacity: 0;
  transform: scale(0.88);
  transition: all 0.25s var(--spring);
  pointer-events: none;
}

.landmark-hotspot:hover .landmark-halo,
.landmark-hotspot:focus-visible .landmark-halo {
  opacity: 1;
  transform: scale(1.08);
  border-color: rgba(255, 251, 235, 0.92);
  animation: spinSlowHalo 9s linear infinite;
}

@keyframes spinSlowHalo {
  from { transform: scale(1.08) rotate(0deg); }
  to { transform: scale(1.08) rotate(360deg); }
}

/* 建筑卡通铭牌 */
.landmark-sign {
  position: relative;
  z-index: 3;
  background: #FFFFFF;
  color: #1E293B;
  border: 2.5px solid #1E293B;
  border-radius: 999px;
  box-shadow: 0 4px 0 #1E293B, 0 8px 18px rgba(15, 23, 42, 0.22);
  padding: 5px 14px 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  animation: floatSign 3.2s ease-in-out infinite;
  transition: transform 0.2s var(--spring), background 0.2s;
}
.landmark-hotspot:nth-child(even) .landmark-sign {
  animation-delay: -1.6s;
}

.sign-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #1E293B;
  flex-shrink: 0;
}

.sign-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* 悬停弹出的建筑简介气泡 */
.landmark-sub {
  position: absolute;
  bottom: calc(100% - 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.92);
  background: #1E293B;
  color: #FFFBEB;
  border: 2px solid #FFB800;
  border-radius: 12px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--spring);
  z-index: 20;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.32);
}

.landmark-hotspot:hover .landmark-sign {
  background: var(--mango);
  transform: translateY(-5px) scale(1.08);
  animation-play-state: paused;
}
.landmark-hotspot:hover .landmark-sub {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

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

/* 地图左下角轻量引导胶囊 */
.map-guide-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 125;
  background: rgba(255, 255, 255, 0.94);
  color: #1E293B;
  border: 2.5px solid #1E293B;
  border-radius: 999px;
  box-shadow: 0 4px 0 #1E293B;
  padding: 7px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}
body.map-mode .map-guide-pill {
  display: inline-flex;
}
.guide-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28);
}

/* === 通用卡通容器与立体按钮 === */
.toon-card {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 0 var(--outline);
  position: relative;
  overflow: hidden;
}

.toon-card-soft {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 0 var(--outline);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
.toon-card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--outline);
}

.section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 24px;
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: 0 5px 0 var(--outline);
  flex-wrap: wrap;
}

.section-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 2.5px solid var(--outline);
  box-shadow: 0 3px 0 var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-icon-badge svg {
  width: 28px;
  height: 28px;
}

.section-banner h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}
.section-banner p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2.5px solid #1E293B;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: transform 0.14s var(--spring), box-shadow 0.14s var(--spring), filter 0.14s;
  box-shadow: 0 4px 0 #1E293B;
  text-decoration: none;
}
.game-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 6px 0 #1E293B; }
.game-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1E293B; }
.game-btn:disabled { opacity: 0.55; pointer-events: none; }

.btn-mango { background: linear-gradient(180deg, #FFD23F 0%, #FFB800 100%); color: #1E293B; }
.btn-sky   { background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%); color: #FFFFFF; }
.btn-mint  { background: linear-gradient(180deg, #34D399 0%, #059669 100%); color: #FFFFFF; }
.btn-berry { background: linear-gradient(180deg, #FB7185 0%, #E11D48 100%); color: #FFFFFF; }
.btn-violet{ background: linear-gradient(180deg, #A78BFA 0%, #7C3AED 100%); color: #FFFFFF; }
.btn-ghost { background: var(--surface-soft); color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid var(--outline);
}
.chip-mango  { background: var(--mango-pale); color: #B45309; }
.chip-sky    { background: var(--sky-pale); color: var(--sky-deep); }
.chip-mint   { background: var(--mint-pale); color: var(--mint-deep); }
.chip-berry  { background: var(--berry-pale); color: var(--berry-deep); }
.chip-violet { background: var(--violet-pale); color: var(--violet-deep); }
[data-theme="night"] .chip-mango { color: #FDE68A; }
[data-theme="night"] .chip-sky { color: #7DD3FC; }
[data-theme="night"] .chip-mint { color: #6EE7B7; }
[data-theme="night"] .chip-berry { color: #FDA4AF; }
[data-theme="night"] .chip-violet { color: #DDD6FE; }

/* === 法律知识长廊 === */
.law-tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.law-pill-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--outline);
  transition: all 0.16s var(--spring);
}
.law-pill-btn:hover { transform: translateY(-2px); background: var(--sky-pale); }
.law-pill-btn.active {
  background: var(--sky);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.law-articles-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-card {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 0 var(--outline);
  overflow: hidden;
}

.article-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.article-head:hover { background: var(--surface-soft); }

.art-badge {
  padding: 4px 11px;
  border-radius: 10px;
  background: var(--mango);
  color: #1E293B;
  border: 2px solid #1E293B;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

.art-head-main { flex: 1; }
.art-head-main h4 { font-size: 16px; font-weight: 900; }
.art-head-main p { font-size: 13px; color: var(--ink-secondary); margin-top: 2px; }

.art-toggle-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  transition: transform 0.22s var(--spring);
}
.article-card.open .art-toggle-arrow {
  transform: rotate(180deg);
  background: var(--mango);
  color: #1E293B;
}

.article-body {
  display: none;
  padding: 0 20px 18px;
  border-top: 2px dashed rgba(100, 116, 139, 0.25);
}
.article-card.open .article-body {
  display: block;
  animation: popPage 0.24s ease;
}

.legal-verbatim {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border-left: 5px solid var(--sky);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.youyou-tip-box {
  margin-top: 12px;
  padding: 12px 15px;
  background: var(--mango-pale);
  border: 2px solid var(--outline);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.youyou-mini-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1E293B;
  object-fit: cover;
  flex-shrink: 0;
}

/* === 情景模拟判断站 === */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sc-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-story-box {
  background: var(--surface-cream);
  border: 2px solid var(--outline);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.72;
}

.sc-opt-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--outline);
  transition: all 0.15s var(--spring);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-opt-btn:hover { background: var(--sky-pale); transform: translateX(3px); }
.sc-opt-btn.is-right { background: var(--mint-pale); border-color: var(--mint-deep); color: var(--mint-deep); }
.sc-opt-btn.is-wrong { background: var(--berry-pale); border-color: var(--berry-deep); color: var(--berry-deep); }
[data-theme="night"] .sc-opt-btn.is-right { color: #6EE7B7; }
[data-theme="night"] .sc-opt-btn.is-wrong { color: #FDA4AF; }
.sc-opt-btn.locked { pointer-events: none; }

.sc-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--outline);
  font-size: 13.5px;
  line-height: 1.7;
}
.sc-feedback.show { display: block; animation: popPage 0.25s var(--spring); }
.sc-feedback.ok { background: var(--mint-pale); }
.sc-feedback.bad { background: var(--berry-pale); }

/* === 科普视频展厅 === */
.video-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.player-stage-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  border-radius: 18px;
  border: 2.5px solid var(--outline);
  overflow: hidden;
}

#real-video-el, #story-video-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.player-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-progress-track {
  flex: 1;
  min-width: 120px;
  height: 12px;
  background: var(--surface-soft);
  border: 2px solid var(--outline);
  border-radius: 99px;
  overflow: hidden;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mango), var(--mint));
  transition: width 0.15s linear;
}

.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .video-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.video-item-card {
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-item-card.playing {
  outline: 4px solid var(--mango);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 2.5px solid var(--outline);
}
.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.video-item-card:hover .video-thumb-wrap img { transform: scale(1.05); }

.video-dur-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.18);
  transition: transform 0.2s var(--spring);
}
.play-circle-svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mango);
  border: 2.5px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-item-card:hover .video-play-badge { transform: scale(1.1); }

.video-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* === 法治游乐场 / 小游戏大厅 === */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.arcade-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.arcade-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 2.5px solid var(--outline);
  overflow: hidden;
  background: var(--violet-pale);
}
.arcade-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arcade-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.game-stage-modal {
  display: none;
  margin-bottom: 24px;
  padding: 20px;
}
.game-stage-modal.active {
  display: block;
  animation: popPage 0.28s var(--spring);
}

.game-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 2px solid var(--outline);
  border-radius: 16px;
}

.canvas-arena-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  border: 3px solid var(--outline);
  border-radius: 20px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 6px 0 var(--outline);
  position: relative;
}

.game-rules-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.game-rules-overlay.show {
  display: flex;
  animation: popPage 0.24s var(--spring);
}
.game-rules-card {
  width: 100%;
  max-width: 540px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 3px solid var(--outline);
  border-radius: 22px;
  box-shadow: 0 7px 0 var(--outline);
  padding: 20px 22px;
}
.rules-target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.rules-target-box {
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid var(--outline);
  font-size: 12.5px;
  line-height: 1.65;
}

#mini-game-canvas {
  width: 100%;
  height: 420px;
  display: block;
  touch-action: none;
  cursor: pointer;
}

.touch-dpad {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

/* === 安全实验室 & 闯关 & 看板 === */
.lab-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pwd-box-input {
  width: 100%;
  padding: 13px 16px;
  border: 2.5px solid var(--outline);
  border-radius: 16px;
  font-size: 16px;
  font-family: var(--font-mono);
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}
.pwd-box-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-pale);
}

.energy-meter {
  height: 16px;
  background: var(--surface-soft);
  border: 2px solid var(--outline);
  border-radius: 99px;
  margin: 14px 0 10px;
  overflow: hidden;
}
.energy-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.3s var(--spring), background 0.3s;
}

.pwd-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.pwd-check-item {
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--outline);
  background: var(--surface-soft);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}
.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: transparent;
  flex-shrink: 0;
}
.pwd-check-item.pass {
  background: var(--mint-pale);
  color: var(--mint-deep);
}
.pwd-check-item.pass .check-dot {
  background: var(--mint);
}
[data-theme="night"] .pwd-check-item.pass { color: #6EE7B7; }

.phish-browser-mock {
  border: 2.5px solid var(--outline);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
  margin: 14px 0;
}
.phish-browser-top {
  padding: 8px 12px;
  background: var(--outline);
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.dot-r, .dot-y, .dot-g { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #FB7185; }
.dot-y { background: #FBBF24; }
.dot-g { background: #34D399; }

.phish-url-display {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  word-break: break-all;
}

.quiz-opt-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2.5px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--outline);
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.16s var(--spring);
}
.quiz-opt-btn:hover { background: var(--mango-pale); transform: translateY(-2px); }
.quiz-opt-btn.correct { background: var(--mint-pale); border-color: var(--mint-deep); }
.quiz-opt-btn.wrong { background: var(--berry-pale); border-color: var(--berry-deep); }

.opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--outline);
  background: var(--mango);
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.kpi-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.badge-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.medal-item {
  padding: 14px;
  border-radius: 16px;
  border: 2px solid var(--outline);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  filter: grayscale(0.85);
  transition: all 0.25s var(--spring);
}
.medal-item.unlocked {
  opacity: 1;
  filter: none;
  background: var(--mango-pale);
  box-shadow: 0 3px 0 var(--outline);
}
.medal-svg-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 2px solid var(--outline);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === 吉祥物“优优”右下角互动浮窗 === */
.youyou-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 340px;
}

.youyou-bubble {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 5px 0 var(--outline);
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  animation: popPage 0.25s var(--spring);
}
.youyou-dock.minimized .youyou-bubble {
  display: none;
}

.youyou-avatar-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--outline);
  overflow: hidden;
  cursor: pointer;
  background: #E0F2FE;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.22s var(--spring);
}
.youyou-avatar-btn:hover { transform: scale(1.08) rotate(5deg); }
.youyou-avatar-btn.hop { animation: mascotHop 0.45s var(--spring); }
.youyou-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes mascotHop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-14px) scale(1.1) rotate(-6deg); }
}

/* === 通用应用内弹窗 === */
.toon-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.toon-modal-backdrop.open { display: flex; }

.toon-modal-box {
  max-width: 540px;
  width: 100%;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--outline);
  padding: 24px;
  animation: popPage 0.25s var(--spring);
}

.coin-toast {
  position: fixed;
  top: 76px;
  right: 28px;
  z-index: 250;
  background: var(--mango);
  color: #1E293B;
  border: 2.5px solid #1E293B;
  box-shadow: 0 4px 0 #1E293B;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 900;
  pointer-events: none;
  animation: floatUpFade 1.5s ease forwards;
}
@keyframes floatUpFade {
  0% { opacity: 0; transform: translateY(12px) scale(0.85); }
  20% { opacity: 1; transform: translateY(0) scale(1.05); }
  80% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.95); }
}

#fx-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 240;
}

mark.hl {
  background: var(--mango);
  color: #1E293B;
  padding: 0 4px;
  border-radius: 5px;
  font-weight: 900;
}

/* === 响应式适配 === */
@media (max-width: 1220px) {
  .hud-bar { flex-wrap: wrap; }
  .mobile-menu-btn { display: inline-flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 4;
    padding-top: 8px;
    border-top: 2px dashed rgba(100, 116, 139, 0.25);
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .main-nav.open { display: flex; }
  .video-layout { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .scenario-grid, .lab-two-col, .arcade-grid, .video-cards-grid, .rules-target-grid { grid-template-columns: 1fr; }
  .kpi-4-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-wall-grid { grid-template-columns: 1fr; }
  #mini-game-canvas { height: 340px; }
  .sign-title { font-size: 12px; }
  .landmark-sign { padding: 4px 10px 4px 8px; }
  .map-guide-pill { font-size: 11.5px; left: 12px; bottom: 14px; padding: 6px 12px; }
}


/* === 双人拔河比赛专属阳光体育场舞台（还原课堂互动白板美术与逻辑） === */
.tug-stage-panel {
  display: none;
  margin-bottom: 24px;
  padding: 16px;
}
.tug-stage-panel.active {
  display: block;
  animation: popPage 0.28s var(--spring);
}

.tug-stadium-arena {
  position: relative;
  width: 100%;
  min-height: 540px;
  border-radius: 22px;
  border: 3px solid var(--outline);
  box-shadow: 0 6px 0 var(--outline);
  overflow: hidden;
  background-size: cover;
  background-position: center bottom;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 22px 20px;
  user-select: none;
}

/* 顶部分数与红蓝对抗能量条 */
.tug-top-bar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tug-team-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 253, 232, 0.94);
  border: 2.5px solid #C8DF8A;
  border-radius: 999px;
  padding: 4px 14px 4px 6px;
  box-shadow: 0 4px 10px rgba(20, 50, 10, 0.12);
}
.tug-team-score.right {
  padding: 4px 6px 4px 14px;
}

.tug-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.tug-score-num {
  font-size: 20px;
  font-weight: 900;
  color: #7A5C12;
  min-width: 44px;
  text-align: center;
}

.tug-vs-meter {
  flex: 1;
  max-width: 320px;
  height: 18px;
  background: #38BDF8;
  border: 3px solid #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  position: relative;
}
.tug-vs-red-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #FB923C 0%, #EF4444 100%);
  border-right: 3px solid #FFFFFF;
  transition: width 0.45s var(--spring);
}

/* 体育场草坪中央：小狮队 vs 小猴队拔河角色层 */
.tug-field-mascots {
  position: relative;
  z-index: 5;
  height: 145px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: height 0.35s ease;
}
.tug-stadium-arena.finale-mode .tug-field-mascots {
  height: 310px;
}

.tug-rope-group {
  position: relative;
  width: 520px;
  max-width: 90%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tug-stadium-arena.tugging-hard .tug-rope-group {
  animation: ropeTugShake 0.42s ease-in-out infinite alternate;
}
@keyframes ropeTugShake {
  from { margin-left: -10px; }
  to   { margin-left: 10px; }
}

.tug-rope-line {
  position: absolute;
  left: 72px;
  right: 72px;
  top: 68%;
  height: 9px;
  background: repeating-linear-gradient(45deg, #B45309, #B45309 8px, #D97706 8px, #D97706 16px);
  border: 2px solid #78350F;
  border-radius: 6px;
  z-index: 1;
}

.tug-red-ribbon {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -35%);
  width: 16px;
  height: 30px;
  background: #EF4444;
  border: 2px solid #991B1B;
  border-radius: 4px 4px 2px 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  z-index: 3;
}

.tug-char-fighter {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 120px;
  transition: transform 0.3s var(--spring);
}
.tug-stadium-arena.finale-mode .tug-char-fighter {
  transform: scale(1.26);
}

/* 决胜时刻四角助威气泡 */
.tug-cheer-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.tug-stadium-arena.finale-mode .tug-cheer-bubbles {
  display: block;
}
.cheer-tag {
  position: absolute;
  background: #FAF8DE;
  color: #7A9A28;
  border: 2.5px solid #C5DF88;
  border-radius: 16px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(20, 50, 10, 0.14);
  animation: cheerBounce 0.7s var(--spring) infinite alternate;
}
.cheer-tag.c1 { left: 4%; top: 18%; }
.cheer-tag.c2 { left: 7%; bottom: 12%; animation-delay: -0.25s; }
.cheer-tag.c3 { right: 5%; top: 20%; animation-delay: -0.35s; }
.cheer-tag.c4 { right: 7%; bottom: 12%; animation-delay: -0.15s; }
@keyframes cheerBounce {
  from { transform: translateY(0) scale(0.97); }
  to   { transform: translateY(-7px) scale(1.04); }
}

/* 横向绿金绸带过场横幅 (GO / 第一题 / 最后一题) */
.tug-ribbon-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  transform: translateY(-50%) scaleY(0);
  background: linear-gradient(90deg, rgba(64,138,27,0) 0%, rgba(74,152,32,0.92) 18%, rgba(74,152,32,0.92) 82%, rgba(64,138,27,0) 100%);
  border-top: 3px solid #D9F99D;
  border-bottom: 3px solid #D9F99D;
  padding: 18px 20px;
  text-align: center;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.26s var(--spring), opacity 0.22s ease;
}
.tug-ribbon-banner.show {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}
.tug-ribbon-main {
  font-size: 34px;
  font-weight: 900;
  color: #FEF08A;
  text-shadow: 0 3px 0 rgba(20, 60, 10, 0.45);
  letter-spacing: 0.06em;
}
.tug-ribbon-sub {
  font-size: 14px;
  font-weight: 800;
  color: #ECFCCB;
  margin-top: 2px;
}

/* 奶油色圆角主卡片（开始卡 / 答题卡 / 胜利结算卡） */
.tug-cream-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 780px;
  margin: auto;
  background: #FAF8DF;
  color: #4D5E1E;
  border: 3px solid #D4E89E;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(25, 55, 10, 0.18);
  padding: 24px 28px;
}

.tug-round-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #E2F76D 0%, #BCE038 100%);
  box-shadow: 0 6px 0 #8CAE1E, 0 10px 18px rgba(80, 110, 10, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s var(--spring), box-shadow 0.16s;
}
.tug-round-play-btn:hover { transform: translateY(-3px) scale(1.04); }
.tug-round-play-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #8CAE1E; }

/* 题目顶部 15s 计时胶囊 */
.tug-timer-pill {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #FAF8DF;
  border: 2.5px solid #C5DF88;
  border-radius: 16px 16px 8px 8px;
  padding: 4px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #799A22;
  box-shadow: 0 -3px 10px rgba(30,60,10,0.08);
}

.tug-pause-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #CBE66A;
  color: #FFFFFF;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tug-q-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 14px 0 18px;
  font-size: 15px;
  font-weight: 800;
  color: #556624;
}
.tug-q-opt-item {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.tug-q-opt-item.reveal-right {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 900;
}

/* 底部左右双人抢答圆形按钮组 */
.tug-dual-buzzers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 2px dashed rgba(140, 174, 30, 0.3);
  flex-wrap: wrap;
}

.tug-buzzer-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tug-buzzer-row {
  display: flex;
  gap: 14px;
}

.tug-opt-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid #9FC131;
  background: linear-gradient(180deg, #ECF98E 0%, #D2EE5A 100%);
  box-shadow: 0 5px 0 #9BBF29;
  color: #4A5D16;
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.14s var(--spring), box-shadow 0.14s, background 0.15s;
}
.tug-opt-circle:hover { transform: translateY(-2px); }
.tug-opt-circle:active { transform: translateY(3px); box-shadow: 0 1px 0 #9BBF29; }
.tug-opt-circle:disabled { opacity: 0.55; cursor: default; transform: none; }
.tug-opt-circle.picked-right {
  background: linear-gradient(180deg, #4ADE80 0%, #16A34A 100%);
  border-color: #15803D;
  box-shadow: 0 4px 0 #15803D;
  color: #FFFFFF;
  opacity: 1;
}
.tug-opt-circle.picked-wrong {
  background: linear-gradient(180deg, #FDA4AF 0%, #E11D48 100%);
  border-color: #BE123C;
  box-shadow: 0 4px 0 #BE123C;
  color: #FFFFFF;
  opacity: 1;
}

/* 卡片中央悬浮判题气泡（回答正确 / 回答错误 / +100分） */
.tug-center-toast {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(255, 255, 255, 0.97);
  border: 2.5px solid #C5DF88;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
  padding: 10px 26px 10px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  z-index: 30;
  white-space: nowrap;
}
.tug-center-toast.show {
  display: inline-flex;
  animation: popToastCenter 0.25s var(--spring) forwards;
}
@keyframes popToastCenter {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 双栏胜利结算台 */
.tug-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.tug-podium-col {
  background: #FFFFFF;
  border-radius: 18px;
  border: 2px solid #E2EFC0;
  padding: 22px 16px 18px;
  text-align: center;
  position: relative;
}
.tug-podium-col.winner {
  border: 3px solid #FACC15;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.22);
}

.tug-win-ribbon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FEF08A 0%, #FACC15 100%);
  color: #DC2626;
  border: 2.5px solid #DC2626;
  border-radius: 999px;
  padding: 3px 22px;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.22);
}

@media (max-width: 960px) {
  .arcade-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tug-q-options-grid, .tug-podium-grid { grid-template-columns: 1fr; }
  .tug-dual-buzzers { justify-content: center; }
  .tug-cream-card { padding: 18px 16px; }
  .tug-opt-circle { width: 46px; height: 46px; font-size: 17px; }
}


/* === 法律知识长廊：卡通实木书架 + 3D书籍封面展示 + 双页翻阅器 === */
.library-cabinet {
  background: linear-gradient(180deg, #E7A96B 0%, #D28B47 100%);
  border: 3px solid var(--outline);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--outline);
  padding: 22px 24px 28px;
  position: relative;
}
[data-theme="night"] .library-cabinet {
  background: linear-gradient(180deg, #5C3D24 0%, #3E2716 100%);
}

.cabinet-top-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 18px;
  background: #FFFDF4;
  color: #1E293B;
  border: 2.5px solid #1E293B;
  border-radius: 16px;
  box-shadow: 0 4px 0 #1E293B;
  flex-wrap: wrap;
}

.shelf-bay {
  background: linear-gradient(180deg, #7C4A21 0%, #5E3616 100%);
  border: 3px solid #1E293B;
  border-radius: 20px;
  padding: 32px 26px 0;
  box-shadow: inset 0 12px 24px rgba(15, 10, 5, 0.42);
  position: relative;
}

.shelf-books-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: end;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

/* 书架上整齐排列的单册精装书 */
.shelf-book-item {
  position: relative;
  height: 224px;
  border-radius: 8px 14px 4px 4px;
  border: 2.5px solid #1E293B;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 10px 12px 18px;
  color: #FFFFFF;
  text-align: center;
  box-shadow: -5px 0 0 rgba(15, 23, 42, 0.28), 4px -3px 0 #F8FAFC, 6px -3px 0 #1E293B, 0 6px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--spring), filter 0.2s;
  user-select: none;
  font-family: var(--font-sans);
}

/* 书脊左侧装订凹槽与烫金装饰线 */
.shelf-book-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-left: 1.5px solid rgba(15, 23, 42, 0.35);
}

.shelf-book-item:hover,
.shelf-book-item:focus-visible {
  transform: translateY(-16px) scale(1.03);
  filter: brightness(1.06);
  box-shadow: -5px 8px 0 rgba(15, 23, 42, 0.25), 4px -3px 0 #F8FAFC, 6px -3px 0 #1E293B, 0 18px 24px rgba(0, 0, 0, 0.42);
  z-index: 5;
}

.shelf-book-top-band {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.28);
  color: #FEF08A;
  letter-spacing: 0.04em;
}

.shelf-book-spine-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(15, 23, 42, 0.38);
  padding: 4px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.shelf-book-foot {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: #1E293B;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1.5px solid #1E293B;
}

/* 实木书架承重横隔板 */
.shelf-wood-plank {
  height: 24px;
  margin: 0 -26px;
  background: linear-gradient(180deg, #F3BA7E 0%, #D9934E 55%, #B57232 100%);
  border-top: 3px solid #1E293B;
  border-radius: 0 0 17px 17px;
  box-shadow: 0 8px 16px rgba(15, 10, 5, 0.32);
  position: relative;
  z-index: 3;
}

/* === 状态2：点击书架图书后弹出的 3D 书籍封面展示台（下方带阅读按钮） === */
.cover-showcase-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cover-showcase-backdrop.open {
  display: flex;
  animation: fadeCoverBg 0.2s ease;
}
@keyframes fadeCoverBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cover-showcase-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 440px;
  width: 100%;
  animation: popBookCover 0.34s var(--spring);
}
@keyframes popBookCover {
  from { opacity: 0; transform: translateY(24px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.book-3d-wrap {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.book-3d-cover {
  width: 288px;
  min-height: 392px;
  border-radius: 10px 22px 22px 10px;
  border: 3.5px solid #1E293B;
  padding: 22px 22px 20px 30px;
  color: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotateY(-9deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--spring);
  /* 右侧白色立体书页层叠与精装阴影 */
  box-shadow:
    6px 4px 0 #F8FAFC,
    9px 6px 0 #CBD5E1,
    12px 8px 0 #F8FAFC,
    15px 10px 0 #1E293B,
    0 22px 38px rgba(0, 0, 0, 0.48);
}
.book-3d-cover:hover {
  transform: rotateY(-2deg) rotateX(0deg) translateY(-4px);
}

/* 封面左侧精装书槽线 */
.book-3d-cover::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-left: 2px solid rgba(15, 23, 42, 0.4);
}

.cover-edition-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  color: #FEF08A;
  border: 1.5px solid rgba(254, 240, 138, 0.65);
}

.cover-art-frame {
  margin: 12px 0;
  height: 156px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.cover-title-plate {
  background: #FFFDF4;
  color: #1E293B;
  border: 2.5px solid #1E293B;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.25);
}
.cover-title-plate h3 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}
.cover-title-plate p {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  margin-top: 4px;
}

.cover-foot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.cover-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

/* === 状态3：点击【阅读】后展开的双页摊开书本阅读器 === */
.open-book-reader {
  display: none;
  background: #FFFDF6;
  color: #1E293B;
  border: 3px solid var(--outline);
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--outline);
  overflow: hidden;
  animation: popPage 0.28s var(--spring);
}
[data-theme="night"] .open-book-reader {
  background: #1E293B;
  color: #F8FAFC;
}
.open-book-reader.active {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 500px;
}

.reader-left-toc {
  background: var(--surface-soft);
  border-right: 2.5px dashed rgba(100, 116, 139, 0.35);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-article-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.16s var(--spring);
}
.toc-article-btn:hover {
  border-color: var(--sky);
  transform: translateX(3px);
}
.toc-article-btn.active {
  background: var(--mango);
  color: #1E293B;
  border-color: #1E293B;
  box-shadow: 0 3px 0 #1E293B;
}

.reader-right-page {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  .shelf-books-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .open-book-reader.active { grid-template-columns: 1fr; }
  .reader-left-toc { border-right: none; border-bottom: 2.5px dashed rgba(100, 116, 139, 0.35); }
}
@media (max-width: 580px) {
  .shelf-books-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shelf-book-item { height: 196px; }
  .book-3d-cover { width: 256px; min-height: 356px; }
  .reader-right-page { padding: 20px 18px; }
}


/* === 顶栏背景纯音乐控制胶囊与动态声波动画 === */
.bgm-capsule {
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--outline);
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--outline);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.16s var(--spring);
}
.bgm-capsule:hover {
  transform: translateY(-2px);
  background: var(--sky-pale);
}
.bgm-capsule:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--outline);
}
.bgm-capsule.playing {
  background: linear-gradient(135deg, #FEF3C7 0%, #D1FAE5 100%);
  color: #065F46;
  border-color: var(--outline);
}
[data-theme="night"] .bgm-capsule.playing {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.25) 0%, rgba(16, 185, 129, 0.28) 100%);
  color: #6EE7B7;
}
.bgm-capsule.off {
  opacity: 0.78;
}
.bgm-ico-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.bgm-ico-wrap .svg-ico {
  width: 15px;
  height: 15px;
  vertical-align: 0;
}
.bgm-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: 1px;
}
.bgm-capsule.playing .bgm-eq {
  display: inline-flex;
}
.bgm-eq i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transition: height 0.2s ease;
}
.bgm-capsule.playing .bgm-eq i:nth-child(1) {
  animation: bgmWave 0.68s ease-in-out infinite alternate;
}
.bgm-capsule.playing .bgm-eq i:nth-child(2) {
  animation: bgmWave 0.52s ease-in-out 0.16s infinite alternate;
}
.bgm-capsule.playing .bgm-eq i:nth-child(3) {
  animation: bgmWave 0.76s ease-in-out 0.3s infinite alternate;
}
.bgm-capsule.off .bgm-eq {
  display: none;
}
@keyframes bgmWave {
  0% { height: 3px; }
  100% { height: 12px; }
}
@media (max-width: 640px) {
  .bgm-capsule .bgm-label { display: none; }
  .bgm-capsule { padding: 0 9px; }
}


/* === 全终端自适应增强层（手机横屏 / 平板电脑 / PC桌面 / 2K与4K教学大屏） === */

/* 1. 平板电脑横竖屏专属优化 (768px - 1220px) */
@media (min-width: 768px) and (max-width: 1220px) {
  #app-main {
    max-width: 96vw;
    padding: 18px 20px 96px;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .arcade-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .video-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .shelf-books-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .landmark-sign {
    padding: 4px 12px 4px 9px;
  }
  .sign-title {
    font-size: 13px;
  }
  .youyou-dock {
    max-width: 300px;
    right: 14px;
    bottom: 14px;
  }
}

@media (min-width: 920px) and (max-width: 1220px) {
  .video-layout {
    grid-template-columns: 1.28fr 1fr;
    gap: 16px;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .arcade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. 手机横屏专项深度适配 (高度 <= 540px 且横屏，如 667x375 / 844x390 / 932x430) */
@media (max-height: 540px) and (orientation: landscape) {
  .top-hud {
    padding: 4px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  .hud-bar {
    padding: 3px 10px;
    border-radius: 15px;
    border-width: 2px;
    box-shadow: 0 3px 0 var(--outline);
    gap: 5px;
  }
  .brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .brand-text h1 {
    font-size: 13.5px;
  }
  .brand-tag {
    font-size: 9.5px;
    padding: 0 5px;
  }
  .brand-text p {
    display: block;
    font-size: 9px;
    line-height: 1.1;
  }
  .coin-capsule, .rank-capsule, .bgm-capsule {
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
    border-width: 1.8px;
  }
  .icon-btn {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    border-width: 1.8px;
    box-shadow: 0 2px 0 var(--outline);
  }
  .svg-ico {
    width: 14px;
    height: 14px;
  }
  .main-nav.open {
    max-height: 58dvh;
    overflow-y: auto;
    padding-top: 5px;
    gap: 4px;
  }
  .nav-pill {
    padding: 4px 9px;
    font-size: 12px;
  }

  /* 手机横屏奇幻岛地标与浮窗紧凑排布 */
  .landmark-sign {
    padding: 2.5px 8px 2.5px 6px;
    border-width: 2px;
    box-shadow: 0 2.5px 0 #1E293B, 0 4px 10px rgba(15, 23, 42, 0.18);
    gap: 4px;
  }
  .sign-dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  .sign-title {
    font-size: 11px;
  }
  .landmark-sub {
    display: none;
  }
  .map-guide-pill {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 4px 10px;
    font-size: 10.5px;
    border-width: 2px;
    box-shadow: 0 2.5px 0 #1E293B;
    gap: 6px;
  }
  .youyou-dock {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: 250px;
    gap: 7px;
  }
  .youyou-bubble {
    padding: 6px 10px;
    font-size: 10.5px;
    line-height: 1.38;
    border-radius: 13px 13px 4px 13px;
    box-shadow: 0 3px 0 var(--outline);
  }
  .youyou-avatar-btn {
    width: 40px;
    height: 40px;
    border-width: 2px;
    box-shadow: 0 3px 0 var(--outline);
  }

  /* 手机横屏内页：充分利用横向宽度双栏/多栏展示，压缩纵向留白 */
  #app-main {
    padding: 8px max(14px, env(safe-area-inset-right)) 60px max(14px, env(safe-area-inset-left));
  }
  .section-banner {
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 18px;
  }
  .section-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .section-icon-badge svg {
    width: 20px;
    height: 20px;
  }
  .section-banner h2 {
    font-size: 16.5px;
  }
  .section-banner p {
    font-size: 11.5px;
  }
  .video-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
  }
  .video-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .arcade-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .scenario-grid, .lab-two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kpi-4-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .shelf-books-row {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .shelf-book-item {
    height: 148px;
  }
  .cover-showcase-backdrop {
    padding: 8px;
  }
  .cover-showcase-stage {
    gap: 8px;
  }
  .book-3d-cover {
    width: 200px;
    min-height: 235px;
    padding: 14px 16px;
  }
  .cover-actions-bar .game-btn {
    padding: 7px 22px !important;
    font-size: 13.5px !important;
  }
  #mini-game-canvas {
    height: min(62dvh, 250px);
  }
  .game-rules-card, .toon-modal-box {
    max-height: 88dvh;
    overflow-y: auto;
    padding: 14px 18px;
  }
  .tug-stadium-arena {
    min-height: 295px;
    padding: 8px 12px 10px;
  }
  .tug-field-mascots {
    height: 82px;
  }
  .tug-char-fighter {
    width: 78px;
    height: 84px;
  }
  .tug-cream-card {
    padding: 12px 16px;
  }
  .tug-q-options-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* 3. 手机竖屏精细收口 (宽度 <= 639px 且竖屏) */
@media (max-width: 639px) and (orientation: portrait) {
  .rank-capsule {
    display: none;
  }
  .youyou-dock {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .youyou-bubble {
    max-width: 220px;
    font-size: 11.5px;
    padding: 9px 12px;
  }
  .youyou-avatar-btn {
    width: 50px;
    height: 50px;
  }
  .map-guide-pill {
    display: none !important;
  }
  .toon-modal-box {
    max-height: 86dvh;
    overflow-y: auto;
    padding: 18px;
  }
}

/* 4. 2K 宽屏显示器适配 (1700px - 2199px) */
@media (min-width: 1700px) and (max-width: 2199px) {
  html {
    font-size: 106%;
  }
  .hud-bar {
    max-width: min(94vw, 1820px);
    padding: 8px 20px;
    gap: 10px;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand-text h1 {
    font-size: 20px;
  }
  .nav-pill {
    font-size: 15px;
    padding: 7px 14px;
  }
  .coin-capsule, .rank-capsule, .bgm-capsule {
    height: 38px;
    font-size: 13.5px;
    padding: 0 13px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  #app-main {
    max-width: min(92vw, 1720px);
    padding: 26px 28px 115px;
  }
  .landmark-sign {
    padding: 7px 18px 7px 13px;
  }
  .sign-title {
    font-size: 16.5px;
  }
  .sign-dot {
    width: 13px;
    height: 13px;
  }
  .video-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .canvas-arena-wrap {
    max-width: 920px;
  }
  #mini-game-canvas {
    height: 480px;
  }
  .tug-stadium-arena {
    min-height: 620px;
  }
  .tug-cream-card {
    max-width: 920px;
  }
  .youyou-dock {
    right: 26px;
    bottom: 24px;
    max-width: 380px;
  }
  .youyou-bubble {
    font-size: 13.5px;
    padding: 13px 16px;
  }
  .youyou-avatar-btn {
    width: 68px;
    height: 68px;
  }
}

/* 5. 4K 超高清大屏 / 智慧教室互动一体机适配 (>= 2200px) */
@media (min-width: 2200px) {
  html {
    font-size: 122%;
  }
  .top-hud {
    padding: 16px 28px 0;
  }
  .hud-bar {
    max-width: min(94vw, 2480px);
    padding: 12px 28px;
    border-radius: 30px;
    border-width: 3.5px;
    box-shadow: 0 7px 0 var(--outline);
    gap: 14px;
  }
  .brand-logo {
    width: 52px;
    height: 52px;
  }
  .brand-text h1 {
    font-size: 25px;
  }
  .brand-tag {
    font-size: 13px;
    padding: 2px 10px;
  }
  .brand-text p {
    font-size: 13px;
  }
  .nav-pill {
    font-size: 18px;
    padding: 9px 19px;
  }
  .coin-capsule, .rank-capsule, .bgm-capsule {
    height: 46px;
    font-size: 16px;
    padding: 0 18px;
    border-width: 2.5px;
  }
  .icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border-width: 2.5px;
  }
  .svg-ico {
    width: 22px;
    height: 22px;
  }
  #app-main {
    max-width: min(92vw, 2260px);
    padding: 36px 36px 140px;
  }
  .section-banner {
    padding: 24px 32px;
    margin-bottom: 30px;
  }
  .section-icon-badge {
    width: 66px;
    height: 66px;
  }
  .section-icon-badge svg {
    width: 36px;
    height: 36px;
  }
  .section-banner h2 {
    font-size: 28px;
  }
  .section-banner p {
    font-size: 17px;
  }
  .landmark-sign {
    padding: 10px 26px 10px 18px;
    border-width: 3.5px;
    box-shadow: 0 6px 0 #1E293B, 0 12px 24px rgba(15, 23, 42, 0.25);
    gap: 10px;
  }
  .sign-dot {
    width: 16px;
    height: 16px;
  }
  .sign-title {
    font-size: 21px;
  }
  .landmark-sub {
    font-size: 16px;
    padding: 8px 16px;
  }
  .map-guide-pill {
    left: 34px;
    bottom: 34px;
    padding: 11px 24px;
    font-size: 17px;
  }
  .youyou-dock {
    right: 34px;
    bottom: 34px;
    max-width: 460px;
    gap: 14px;
  }
  .youyou-bubble {
    font-size: 16px;
    padding: 16px 20px;
    border-width: 3px;
  }
  .youyou-avatar-btn {
    width: 84px;
    height: 84px;
    border-width: 4px;
  }
  .video-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .shelf-book-item {
    height: 290px;
  }
  .book-3d-cover {
    width: 360px;
    min-height: 480px;
  }
  .open-book-reader.active {
    grid-template-columns: 400px 1fr;
    min-height: 640px;
  }
  .canvas-arena-wrap {
    max-width: 1120px;
  }
  #mini-game-canvas {
    height: 580px;
  }
  .tug-stadium-arena {
    min-height: 760px;
    padding: 26px 36px 32px;
  }
  .tug-cream-card {
    max-width: 1140px;
    padding: 34px 42px;
  }
}
