body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  box-sizing: border-box;
}

.container {
  max-width: 1400px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: #ff6b35;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #2a9d8f;
  border-bottom: 3px solid #2a9d8f;
  padding-bottom: 10px;
  margin-top: 30px;
  font-size: 1.8em;
}

.selection-panel {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.selection-panel h2 {
  margin-top: 0;
}

#weapon-types {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
}

.weapon-type-checkbox {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.weapon-type-checkbox:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #2a9d8f;
}

.weapon-type-checkbox input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.weapon-type-checkbox input:checked + label {
  color: #2a9d8f;
  font-weight: bold;
}

.weapon-type-checkbox label {
  cursor: pointer;
  font-size: 16px;
  margin: 0;
}

.control-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

button {
  background: linear-gradient(to right, #2a9d8f, #21867a);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #21867a, #1a6f62);
}

button:active {
  transform: translateY(1px);
}

/* 主要内容区域 - 左右布局 */
.main-content {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

/* 左侧转盘区域 */
.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
}

#wheel {
  border: 5px solid #333;
  border-radius: 50%;
  margin: 20px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
  box-sizing: border-box;
}

/* 转盘指针 */
.wheel-pointer {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 40px;
  height: 40px;
  background-color: #e74c3c;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#spin-btn {
  margin-top: 20px;
  padding: 15px 40px;
  font-size: 18px;
  background: linear-gradient(to right, #ff6b35, #e55a2b);
}

#spin-btn:hover {
  background: linear-gradient(to right, #e55a2b, #cc4e24);
}

.result-panel {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.result-panel h2 {
  margin-top: 0;
}

#result {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b35;
  min-height: 50px;
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右侧历史记录区域 */
.right-panel {
  flex: 1;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 800px;
}

.right-panel h2 {
  margin-top: 0;
}

.history-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.history-controls button {
  padding: 8px 15px;
  font-size: 14px;
  background: linear-gradient(to right, #e74c3c, #c0392b);
}

.history-controls button:hover {
  background: linear-gradient(to right, #c0392b, #a5281b);
}

#history-list {
  list-style-type: none;
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 600px;
}

#history-list li {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  background-color: white;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

#history-list li:hover {
  transform: translateX(5px);
}

#history-list li:nth-child(odd) {
  background-color: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .right-panel {
    margin-top: 30px;
    max-height: none;
  }

  #history-list {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
    padding-top: 10px;
  }

  .container {
    padding: 15px;
  }

  .wheel-container {
    width: 100%;
    height: 350px;
    max-width: 350px;
  }

  #wheel {
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 350px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  #weapon-types {
    gap: 10px;
  }

  .weapon-type-checkbox {
    padding: 6px 15px;
    font-size: 14px;
  }

  #result {
    font-size: 20px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .wheel-container {
    height: 300px;
    max-width: 300px;
  }

  #wheel {
    max-width: 300px;
    max-height: 300px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.3em;
  }

  .weapon-type-checkbox {
    padding: 5px 12px;
    font-size: 12px;
  }

  #result {
    font-size: 18px;
  }

  .control-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  button {
    width: 100%;
    max-width: 200px;
  }
}
