/* 织梦堂 - WAP精武堂风格 CSS */
/* 仿老式WAP文字游戏，绿色终端风格 */

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

body {
  background: #1a1a1a;
  font-family: "Courier New", "Monaco", "WenQuanYi Micro Hei", monospace;
  color: #33ff33;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

#game-container {
  max-width: 420px;
  margin: 0 auto;
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #003300;
  border-right: 1px solid #003300;
}

/* 顶部状态栏 */
#title-bar {
  background: #001a00;
  border-bottom: 2px solid #00aa00;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.status-name {
  font-size: 16px;
  font-weight: bold;
  color: #00ff00;
}

.status-title {
  font-size: 12px;
  color: #88ff88;
}

.status-item {
  font-size: 11px;
  color: #66dd66;
}

.status-bar-wrap {
  margin-top: 4px;
}

.status-bar {
  height: 6px;
  background: #003300;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2px;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.exp-bar {
  background: linear-gradient(90deg, #00aa00, #00ff00);
}

.ap-bar {
  background: linear-gradient(90deg, #0088aa, #00ccff);
}

/* 游戏画面区域 */
#screen-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 300px;
}

#game-screen {
  min-height: 100%;
}

.screen-line {
  margin-bottom: 3px;
  word-break: break-all;
}

.dim {
  color: #228822;
}

.hl {
  color: #00ff00;
  font-weight: bold;
}

.hint {
  color: #888;
  font-size: 12px;
}

/* 菜单项 */
.menu-item {
  padding: 6px 8px;
  margin: 2px 0;
  border: 1px solid #003300;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.menu-item:hover,
.menu-item:active {
  background: #003300;
}

.menu-item:active {
  background: #005500;
}

.menu-num {
  color: #00ff00;
  font-weight: bold;
  margin-right: 4px;
}

/* 战斗高亮 */
.battle-highlight {
  color: #ffff00;
}

.battle-win {
  color: #00ff88;
  font-weight: bold;
}

.battle-loss {
  color: #ff4444;
}

/* 底部菜单栏 */
#menu-bar {
  display: flex;
  justify-content: space-around;
  background: #001a00;
  border-top: 2px solid #00aa00;
  padding: 6px 0;
  position: sticky;
  bottom: 0;
}

.bottom-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
}

.bottom-menu-item:hover,
.bottom-menu-item:active {
  background: #003300;
}

.bottom-menu-item.active {
  background: #005500;
}

.bottom-menu-item.active .menu-icon {
  transform: scale(1.2);
}

.menu-icon {
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}

.menu-label {
  font-size: 10px;
  color: #88ff88;
}

/* 离线收益通知 */
#offline-notice {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #003300;
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  max-width: 280px;
}

/* 滚动条样式 */
#screen-container::-webkit-scrollbar {
  width: 4px;
}

#screen-container::-webkit-scrollbar-track {
  background: #0a0a0a;
}

#screen-container::-webkit-scrollbar-thumb {
  background: #00aa00;
  border-radius: 2px;
}

/* 响应式 */
@media (max-width: 420px) {
  body {
    font-size: 13px;
  }
  #game-container {
    border: none;
  }
}
