* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  width: 100%;
  max-width: 1300px;
  min-width: 1000px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  color: white;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(30deg);
  animation: shine 8s infinite linear;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }

  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
}

.content {
  display: flex;
  padding: 30px;
  gap: 30px;
}

.wheel-section {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-container {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 20px auto;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  transition: transform 0.1s linear;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.pointer {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  background: #e52e71;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.controls {
  margin: 30px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #ff9a44, #f85a79);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  /* 新增flex布局 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 特别调整添加按钮的样式 */
#addOption {
  padding: 12px 20px;
  /* 使添加按钮更紧凑 */
  min-width: 100px;
  /* 确保按钮有最小宽度 */
}

button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  transition: all 0.6s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

button:hover::after {
  transform: rotate(30deg) translateX(100%);
}

button:active {
  transform: translateY(1px);
}

.settings-section {
  flex: 2;
  background: #f1f2f3;
  border-radius: 10px;
  padding: 25px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.settings-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  border-radius: 5px 5px 0 0;
}

.settings-section h2 {
  color: #e52e71;
  margin-bottom: 20px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;

  gap: 10px;
}

.scene-selector {
  margin-bottom: 30px;
}

.scene-selector label {
  display: block;
  font-weight: bold;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

select,
input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 1rem;
  background: white;
  transition: all 0.3s;
}

select:focus,
input:focus {
  border-color: #ff8a00;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.2);
  outline: none;
}

.custom-options {
  margin-bottom: 30px;
}

.custom-options h3 {
  margin-bottom: 15px;
  color: #ff8a00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.option-list {
  max-height: 370px;
  overflow-y: auto;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 15px;
  background: white;
}

.option-list::-webkit-scrollbar {
  width: 8px;
}

.option-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.option-list::-webkit-scrollbar-thumb {
  background: #ff8a00;
  border-radius: 10px;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
  border-radius: 8px;
}

.option-item:hover {
  background-color: #fff8e6;
  transform: translateX(5px);
}

.option-item:last-child {
  border-bottom: none;
}

.option-item span {
  flex: 1;
  font-size: 1.1rem;
  white-space: nowrap;
  /* 防止选项文字换行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-item button {
  padding: 8px 15px;
  font-size: 0.9rem;
  background: #ff4757;
  white-space: nowrap;
  /* 防止按钮文字换行 */
}

.how-to-use {
  padding: 20px;
  background: #f8f9fa;
  border-top: 2px dashed #4da6ff;
}

.how-to-use h3 {
  text-align: center;
  margin-bottom: 40px;
  color: #2f3542;
  font-size: 1.6rem;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.step {
  width: 280px;
  text-align: center;
  padding: 20px 15px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.step i {
  font-size: 3rem;
  color: #ff8a00;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #e52e71;
}

.step p {
  color: #555;
  line-height: 1.5;
}

footer {
  text-align: center;
  padding: 20px;
  background: #2f3542;
  color: #ddd;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px) {
  .content {
    flex-direction: column;
  }

  .wheel-container {
    width: 350px;
    height: 350px;
  }

  .steps {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .wheel-container {
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  button {
    width: 100%;
  }
}

/* 粒子背景效果 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* 高清文字优化 */
.high-res-text {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* 新增的模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal button{
  display: flex;
  margin: auto;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-content h3{
  text-align: center;
  margin-bottom: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;

}

.form-group textarea {
  min-height: 250px;
  resize: vertical;
  line-height: 1.75;
  color: #666;
}

.form-tip{
  font-size: 1rem;
  line-height: 1.75;
  color: #666;
  margin-bottom: 20px;
}

.form-tip a{
  font-weight: 600;
  color: #e52e71;
}

/* 场景控制区域样式 */
.scene-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.scene-controls label {
  min-width: 110px;
}

.scene-controls select {
  flex: 2;
  min-width: 200px;
}

.scene-controls button {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  font-size: 1rem;
}

/* 修改场景选项区域 */
.scene-options {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.scene-options h3 {
  margin-bottom: 15px;
  color: #ff8a00;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 调整其他样式以适配新布局 */
.settings-section {
  padding: 15px;
}

.option-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  border-radius: 8px;
  background: white;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 场景按钮容器 */
.scene-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}

.scene-buttons button {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  font-size: 1rem;
}

/* 删除按钮特殊样式 */
#deleteSceneButton {
  background: linear-gradient(90deg, #ff4757, #e52e71);
}
