/* ============================================================
 * 李连劈鱼 — 前端样式
 * 水浒主题·深蓝海洋
 * ============================================================ */

#lkfGameArea {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0D47A1;
  min-height: 100vh;
}

#lkfCanvas {
  border: 2px solid #FF6F00;
  border-radius: 8px;
  cursor: crosshair;
  max-width: 100%;
  box-shadow: 0 0 30px rgba(255, 111, 0, 0.3);
  touch-action: none;
}

/* ============================================================
 * 顶部HUD
 * ============================================================ */
.lkf-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 960px;
  max-width: 100%;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 8px 8px 0 0;
  border: 1px solid #FF6F00;
  border-bottom: none;
  color: #fff;
  font-size: 14px;
}

.lkf-hud-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lkf-coin-display {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #FFD700;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 16px;
  font-weight: bold;
  color: #FFD700;
}

.lkf-coin-display::before {
  content: '🪙 ';
}

.lkf-cannon-display {
  background: rgba(255, 111, 0, 0.15);
  border: 1px solid #FF6F00;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 14px;
  color: #FF6F00;
}

/* ============================================================
 * 底部控制栏
 * ============================================================ */
.lkf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 960px;
  max-width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 0 0 8px 8px;
  border: 1px solid #FF6F00;
  border-top: none;
  color: #fff;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
 * 能量条
 * ============================================================ */
.lkf-energy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lkf-energy-bar {
  width: 120px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #4FC3F7;
  border-radius: 6px;
  overflow: hidden;
}

.lkf-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #4FC3F7, #00BCD4);
  border-radius: 5px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(79, 195, 247, 0.6);
}

.lkf-energy-label {
  font-size: 10px;
  color: #4FC3F7;
}

/* ============================================================
 * 技能按钮
 * ============================================================ */
.lkf-skill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
  border: 2px solid #FFB74D;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.lkf-skill-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.lkf-skill-btn:active:not(:disabled) {
  transform: translateY(0);
}

.lkf-skill-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #555;
  border-color: #777;
}

.lkf-skill-btn .skill-icon {
  font-size: 20px;
}

.lkf-skill-btn .skill-name {
  font-size: 10px;
}

.lkf-skill-btn .skill-cost {
  font-size: 9px;
  opacity: 0.8;
}

.lkf-skill-btn.whirlwind {
  background: linear-gradient(135deg, #FF6F00 0%, #BF360C 100%);
}

.lkf-skill-btn.berserk {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
}

/* ============================================================
 * 道具按钮
 * ============================================================ */
.lkf-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  border: 2px solid #42A5F5;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lkf-item-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
}

.lkf-item-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lkf-item-btn .item-icon {
  font-size: 18px;
}

.lkf-item-btn .item-cost {
  font-size: 9px;
  color: #FFD700;
}

/* ============================================================
 * 炮台控制
 * ============================================================ */
.lkf-cannon-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lkf-cannon-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #FF6F00;
  background: #1a1a2e;
  color: #FF6F00;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lkf-cannon-btn:hover {
  background: #FF6F00;
  color: #fff;
}

/* ============================================================
 * 通知
 * ============================================================ */
#lkfNotification {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid #FF6F00;
  font-size: 14px;
  font-weight: bold;
  z-index: 10000;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: pre-line;
  text-align: center;
  max-width: 400px;
}

/* ============================================================
 * 连击显示
 * ============================================================ */
.lkf-combo-display {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 8px 16px;
  color: #FFD700;
  font-size: 18px;
  font-weight: bold;
  z-index: 9999;
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 768px) {
  .lkf-hud, .lkf-controls {
    width: 100%;
  }

  #lkfCanvas {
    width: 100%;
    height: auto;
  }

  .lkf-controls {
    flex-direction: column;
    gap: 8px;
  }

  .lkf-skill-btn, .lkf-item-btn {
    padding: 4px 8px;
    font-size: 10px;
  }
}
