/* 转盘增强样式 */

/* 转盘容器增强 */
.wheel-container {
  position: relative;
  margin: 30px auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.wheel-container:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.25));
}

/* 转盘画布样式增强 */
canvas {
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
}

/* 转盘指针样式增强 */
.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: #ff4d4d;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
  animation: pointerPulse 1.5s infinite;
}

@keyframes pointerPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); }
}

/* 旋转按钮样式增强 */
.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(145deg, #ff6b6b, #ff4d4d);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  overflow: hidden;
}

.spin-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.spin-button:hover:not(:disabled):before {
  left: 100%;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 7px 20px rgba(255, 77, 77, 0.5);
}

.spin-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
  box-shadow: 0 3px 10px rgba(255, 77, 77, 0.3);
}

.spin-button:disabled {
  background: linear-gradient(145deg, #cccccc, #bbbbbb);
  cursor: not-allowed;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 进度指示器样式增强 */
.progress-indicator {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #4CAF50;
  font-size: 1.2em;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 结果弹窗样式增强 */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: linear-gradient(135deg, #fff5f5, #ffe3e3);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 80%;
  transform: scale(0.9);
  animation: modalPop 0.5s forwards;
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  70% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 4rem;
  color: #ff6b6b;
  margin-bottom: 1.5rem;
  animation: iconBounce 1s ease infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.modal-content h3 {
  margin: 15px 0 25px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.modal-content button {
  padding: 12px 30px;
  background: linear-gradient(145deg, #ff6b6b, #ff4d4d);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
  transition: all 0.3s ease;
}

.modal-content button:hover {
  background: linear-gradient(145deg, #ff5252, #ff3333);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
}

.modal-content button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(255, 77, 77, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
  
  .spin-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  
  .modal-content {
    padding: 2rem;
    max-width: 90%;
  }
  
  .modal-icon {
    font-size: 3.5rem;
  }
  
  .modal-content h3 {
    font-size: 20px;
  }
  
  .modal-content button {
    padding: 10px 25px;
    font-size: 16px;
  }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
  .spin-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-icon {
    font-size: 3rem;
  }
  
  .modal-content h3 {
    font-size: 18px;
  }
  
  .modal-content button {
    padding: 8px 20px;
    font-size: 14px;
  }
}