/* 全局布局 - 移动端优先竖屏设计 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink-black);
  color: var(--text-primary);
  font-family: "STKaiti", "KaiTi", "楷体", "Noto Serif SC", serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.game-container {
  max-width: 428px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* 竹林小径默认场景 */
  background:
    radial-gradient(ellipse at 20% 80%, rgba(34, 139, 34, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 139, 34, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #1a2a1a 0%, #0d1f0d 100%);
}

@media (min-width: 768px) {
  body { background: #0a0a14; }
  .game-container { box-shadow: 0 0 40px rgba(0, 0, 0, 0.7); }
}

/* 顶部状态栏 */
.top-bar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(180deg, var(--ink-dark), rgba(22, 33, 62, 0.6));
  z-index: 10;
}

.player-info { display: flex; align-items: center; gap: 6px; }

.player-level {
  background: var(--gold-primary);
  color: var(--ink-black);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.player-name { font-size: 14px; }

.currency-bar { display: flex; gap: 12px; font-size: 13px; }

/* 主内容区 */
.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  position: relative;
}

/* 公告栏 */
.marquee-bar {
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 12px;
  background: rgba(22, 33, 62, 0.8);
  border-top: 1px solid var(--panel-border);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* 底部导航 */
.bottom-nav {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  background: var(--ink-dark);
  border-top: 1px solid var(--panel-border);
  z-index: 10;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.nav-btn.active { color: var(--gold-primary); }
.nav-btn:active { transform: scale(0.96); }
.nav-icon { font-size: 22px; }
.nav-label { font-size: 11px; }

/* 页面切换动画 */
.page-enter { animation: slideIn 0.3s ease-out; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
