* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #fa709a, #fee140, #fbc2eb, #a6c1ee);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  position: relative;
}

/* 添加动态渐变动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 添加漂浮的光点效果 */
body::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 1;
  }
}

h1 {
  color: #444;
  margin-top: 20px;
  font-weight: 600;
  border: none;
  outline: none;
}

footer {
  position: fixed;
  right: 12px;
  bottom: 8px;
  font-size: 0.8em;
  color: rgba(0,0,0,0.35);
}

.popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333;
  animation: fadeIn 0.3s ease-in-out;
  transition: opacity 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

#startScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: none;
  outline: none;
}

#startBtn {
  padding: 15px 40px;
  font-size: 1.3em;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  outline: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: 600;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#startBtn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.15);
}

#startBtn:active {
  transform: translateY(0) scale(1.02);
}

/* 隐藏音频播放器 */
audio {
  display: none;
  visibility: hidden;
  width: 0;
  height: 0;
  position: absolute;
}

/* 移除所有可能的边框和轮廓 */
button:focus,
button:active {
  outline: none;
  border: none;
}

input, textarea, select {
  outline: none;
  border: none;
}

/* 清除所有可能的边框 */
div, h1, h2, h3, p, span {
  border: none;
  outline: none;
}

/* 移除所有元素的默认边框和轮廓 */
*:focus {
  outline: none !important;
  border: none !important;
}

*:active {
  outline: none !important;
}
