* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  position: relative;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

h1 {
  color: #8B4513;
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "🪷";
  position: absolute;
  right: -50px;
  top: 5px;
  font-size: 2.2rem;
}

h1::before {
  content: "🪷";
  position: absolute;
  left: -50px;
  top: 5px;
  font-size: 2.2rem;
}

.subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}

.content {
  display: flex;
  gap: 20px;
  width: 100%;
  height: auto;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
}

.panel-title {
  color: #8B4513;
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-container {
  margin-bottom: 15px;
}

.select-container label {
  display: block;
  margin-bottom: 8px;
  color: #8B4513;
  font-weight: bold;
}

.container select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8d0b3;
  border-radius: 10px;
  background: white;
  font-size: 1rem;
  color: #5d2c0a;
  outline: none;
  transition: all 0.3s;
}

.container select:focus {
  border-color: #d4a86a;
  box-shadow: 0 0 0 3px rgba(210, 180, 140, 0.3);
}

.custom-wish {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.custom-wish input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e8d0b3;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.custom-wish input:focus {
  border-color: #d4a86a;
  box-shadow: 0 0 0 3px rgba(210, 180, 140, 0.3);
}

.custom-wish-btn {
  background: #e8d0b3;
  border: none;
  border-radius: 10px;
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  color: #5d2c0a;
}

.custom-wish-btn:hover {
  background: #d4a86a;
  color: white;
}

.controls {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.control-btn {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.auto-btn {
  background: #d4a86a;
  color: white;
}

.auto-btn:hover {
  background: #b8860b;
}

.auto-btn.active {
  background: #8B4513;
}

.reset-btn {
  background: #f1e6d6;
  color: #8B4513;
}

.reset-btn:hover {
  background: #e8d0b3;
}

.fullscreen-btn {
  background: #8B4513;
  color: white;
}

.fullscreen-btn:hover {
  background: #5d2c0a;
}

.right-panel {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
}

.counter {
  font-size: 1rem;
  color: #f1e6d6;
  position: relative;
  top: -80px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 40px;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

.counter-emoji {
  font-size: 2rem;
}

.muyu-container {
  position: relative;
  margin: 20px 0;
  z-index: 10;
}

.muyu {
  width: 300px;
  height: 300px;
  background: url('./muyu.png') center/contain no-repeat;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.muyu:active {
  transform: scale(0.95);
}

.hit-animation {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.wish-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  color: #fff;
  z-index: 20;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  will-change: transform, opacity;
  /* 提升动画性能 */
}

.instructions {
  background: #f9f5f0;
  border-radius: 15px;
  padding: 15px;
  margin-top: 25px;
}

.instructions h2 {
  color: #8B4513;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions ul {
  list-style-type: none;
  padding-left: 10px;
}

.instructions li {
  margin-bottom: 8px;
  color: #5d2c0a;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.instructions li::before {
  content: "•";
  color: #d4a86a;
  font-weight: bold;
  font-size: 1.2rem;
}

.key-hint {
  position: relative;
  top: -2px;
  background: #e8d0b3;
  color: #5d2c0a;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 5px;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #8B4513;
  font-size: 0.9rem;
  padding-top: 15px;
  border-top: 1px solid #e8d0b3;
  width: 100%;
}

/* 敲击动画 */
@keyframes hitEffect {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* 心愿文字动画 */
@keyframes wishAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    color: rgba(255, 247, 204, 0.8);
    /* 初始颜色 */
  }

  50% {
    transform: translate(-50%, -200%) scale(1.2);
    /* 向上移动 */
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.55);
    /* 颜色过渡 */
  }

  100% {
    transform: translate(-50%, -400%) scale(1.5);
    /* 继续向上 */
    opacity: 0;
    color: rgba(255, 255, 255, 0);
    /* 完全透明 */
  }
}

/* 全屏样式 */
body.fullscreen {
  padding: 0;
  background: #000;
  margin-top: 0;
  overflow: hidden;
}

body.fullscreen .container {
  background: transparent;
  box-shadow: none;
  width: 100%;
  height: 100vh;
  border-radius: 0;
  padding: 0;
}

body.fullscreen .left-panel,
body.fullscreen header,
body.fullscreen footer,
body.fullscreen .wwads-cn,
body.fullscreen .nav_box{
  display: none;
}

body.fullscreen .right-panel {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.fullscreen .content {
  height: 100vh;
}

.lotus-bg {
  position: absolute;
  font-size: 10rem;
  opacity: 0.1;
  color: #fff;
  z-index: 1;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(50px, 30px) rotate(90deg);
  }

  50% {
    transform: translate(0, 60px) rotate(180deg);
  }

  75% {
    transform: translate(-50px, 30px) rotate(270deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.lotus-1 {
  top: 10%;
  left: 20%;
  animation-duration: 20s;
}

.lotus-2 {
  top: 70%;
  left: 80%;
  animation-duration: 25s;
  animation-delay: -5s;
}

.lotus-3 {
  top: 40%;
  left: 60%;
  animation-duration: 18s;
  animation-delay: -3s;
}

.lotus-4 {
  top: 80%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -7s;
}
