/* ============================================================
   欢乐捕鱼 — 样式表
   ============================================================ */

#fishGameArea {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#fishCanvas {
  display: block;
  background: #073054;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* UI 层 */
.fish-ui-layer {
  width: 100%;
  max-width: 960px;
  position: relative;
}

/* 顶部信息栏 */
.fish-top-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.95), rgba(7, 48, 84, 0.95));
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

.fish-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fish-info-label {
  font-size: 11px;
  color: #90A4AE;
  text-transform: uppercase;
}

.fish-info-value {
  font-size: 18px;
  font-weight: 700;
  color: #FFD700;
  transition: color 0.2s;
}

/* 底部控制栏 */
.fish-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.95), rgba(7, 48, 84, 0.95));
  border-radius: 10px;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

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

.fish-cannon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(79, 195, 247, 0.5);
  background: rgba(21, 101, 192, 0.3);
  color: #4FC3F7;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fish-cannon-btn:hover {
  background: rgba(21, 101, 192, 0.5);
  border-color: #4FC3F7;
  transform: scale(1.1);
}

.fish-cannon-btn:active {
  transform: scale(0.95);
}

.fish-cannon-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 2px solid #4CAF50;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  min-width: 100px;
  justify-content: center;
  transition: border-color 0.3s;
}

#fishCannonIcon {
  font-size: 20px;
}

#fishCannonLevel {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* 发射按钮 */
.fish-shoot-btn {
  padding: 8px 24px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #FF6B6B, #EE5350);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(238, 83, 80, 0.4);
}

.fish-shoot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 83, 80, 0.6);
}

.fish-shoot-btn:active {
  transform: translateY(0);
}

/* 自动按钮 */
.fish-auto-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(79, 195, 247, 0.5);
  background: rgba(21, 101, 192, 0.3);
  color: #4FC3F7;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.fish-auto-btn:hover {
  background: rgba(21, 101, 192, 0.5);
}

.fish-auto-btn.active {
  background: linear-gradient(135deg, #FFCA28, #FF6F00);
  color: #fff;
  border-color: #FFCA28;
  box-shadow: 0 0 10px rgba(255, 202, 40, 0.5);
}

/* 退出按钮 */
.fish-exit-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(144, 167, 174, 0.5);
  background: transparent;
  color: #90A4AE;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.fish-exit-btn:hover {
  background: rgba(144, 167, 174, 0.1);
  color: #cfd8dc;
}

/* 通知 */
.fish-notification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #4FC3F7;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.5s;
  max-width: 80%;
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
  .fish-top-bar {
    flex-wrap: wrap;
    gap: 4px;
  }

  .fish-info-item {
    min-width: 60px;
  }

  .fish-info-value {
    font-size: 14px;
  }

  .fish-bottom-bar {
    flex-direction: column;
    gap: 8px;
  }

  .fish-cannon-display {
    min-width: 80px;
  }

  #fishCannonIcon {
    font-size: 16px;
  }

  #fishCannonLevel {
    font-size: 12px;
  }
}
