* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  /* 调整了渐变色角度和色彩过渡，使其更深邃柔和 */
  background: linear-gradient(145deg, #063c85 ,#f7c3d9, #bb5799);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 16px; /* 手机端外边距稍微缩小，给主体留出更多空间 */
}

.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px; /* 圆角稍微加大，更符合移动端主流审美 */

  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 36px 24px; /* 手机端内边距 */

  /* 优化阴影层次：底层大阴影 + 顶部微光高光 */
  box-shadow:
          0 30px 60px rgba(0, 0, 0, 0.5),
          inset 0 1px 1px rgba(255, 255, 255, 0.15);
  text-align: center;
}

/* 电脑/平板端大屏幕适配 */
@media (min-width: 576px) {
  .container {
    padding: 48px 40px;
  }
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e0eba3, #2d5a5d, #ea533f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.randomYesNo,
.randomNumber {
  margin-bottom: 24px;
}

.randomYesNo button,
.randomNumber button {
  width: 100%;
  padding: 18px 0; /* 略微增加高度，更适合手指点击 */
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
  color: #fff;
}

.randomYesNo button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.randomNumber button {
  background: linear-gradient(135deg, #f472b6, #fb923c);
  box-shadow: 0 8px 20px rgba(244, 114, 182, 0.3);
}

/* 悬浮效果 (主要针对电脑端) */
.randomYesNo button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.45);
}
.randomNumber button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(244, 114, 182, 0.45);
}

/* 按压效果 (手机端核心交互) - 使用 scale 产生更真实的物理按压感 */
.randomYesNo button:active,
.randomNumber button:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 输入区域重构：适配手机端 */
.input {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.input label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 600;
}

.input select {
  width: 100%; /* 撑满父元素 */
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 36px 12px 16px;
  font-size: 1rem;
  color: #e2e8f0;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c4b5fd' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  outline: none;
}

.input select:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background-color: rgba(255, 255, 255, 0.12);
}

.input select:focus {
  border-color: #a78bfa;
  background-color: rgba(167, 139, 250, 0.1);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.input select option {
  background: #1e1b4b;
  color: #e2e8f0;
}

/* 结果展示区优化 */
.result {
  margin-top: 32px;
  padding: 24px 20px;
  min-height: 95px;
  background: rgb(111 135 143 / 0.07);
  border: 2px solid rgb(0 0 0 / 0.18);
  border-radius: 20px;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 增加发光效果，让结果更引人注目 */
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.15);
  text-shadow: 0 2px 10px rgba(167, 139, 250, 0.4);
  transition: all 0.3s ease;
}