/**
 * 全局主样式
 * 暗色沉浸主题，适合失明题材的公益游戏
 */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  color: #F7F7F7;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* 通用按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid rgba(247, 247, 247, 0.3);
  color: #F7F7F7;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  text-align: center;
}

.btn:hover {
  background: rgba(247, 247, 247, 0.1);
  border-color: rgba(247, 247, 247, 0.6);
  transform: scale(1.02);
}

.btn-primary {
  border-color: #4ECDC4;
  color: #4ECDC4;
}

.btn-primary:hover {
  background: rgba(78, 205, 196, 0.15);
}

/* 面板通用 */
.panel {
  position: fixed;
  z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 247, 247, 0.1);
  border-radius: 4px;
  padding: 24px;
}

/* 淡入淡出 */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* 呼吸动画 */
.breathe {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1.0; }
}

/* 隐藏工具 */
.hidden { display: none !important; }

/* 滑块自定义 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(247, 247, 247, 0.2);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ECDC4;
  cursor: pointer;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(247, 247, 247, 0.2);
  border-radius: 2px;
}
