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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffeef8 0%, #fff0f5 30%, #ffe4ec 60%, #ffd6e8 100%);
  z-index: -1;
}

.bg::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 192, 203, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 218, 224, 0.25) 0%, transparent 50%);
  animation: bgMove 15s ease-in-out infinite;
}

@keyframes bgMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -2%) scale(1.02); }
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
}

.title {
  font-size: 2rem;
  color: #c71585;
  text-shadow: 0 2px 8px rgba(199, 21, 133, 0.2);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.prizes-section {
  margin-bottom: 1.5rem;
}

.prizes-title {
  font-size: 1rem;
  color: #c71585;
  margin-bottom: 0.75rem;
  font-weight: normal;
}

.prizes-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.prize-tag {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.5), rgba(255, 192, 203, 0.4));
  border-radius: 999px;
  color: #a52a5a;
  border: 1px solid rgba(199, 21, 133, 0.2);
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(199, 21, 133, 0.12);
  border: 1px solid rgba(255, 182, 193, 0.5);
}

.draw-btn {
  font-family: inherit;
  font-size: 1.35rem;
  padding: 1rem 3rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff69b4, #c71585);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(199, 21, 133, 0.35);
}

.draw-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(199, 21, 133, 0.45);
}

.draw-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.draw-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.lottery-anim {
  position: relative;
}

.lottery-hint {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.lottery-window {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.25), rgba(255, 218, 224, 0.2));
  border-radius: 16px;
  border: 2px dashed rgba(199, 21, 133, 0.3);
}

.lottery-name {
  font-size: 1.4rem;
  color: #c71585;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: transform 0.05s ease-out;
}

.lottery-name.lottery-tick {
  transform: scale(1.08);
}

.result-card .result-label {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.result-card .result-text {
  font-size: 1.6rem;
  color: #c71585;
  font-weight: bold;
  margin-bottom: 1rem;
  word-break: break-all;
}

.result-card .result-hint {
  font-size: 0.9rem;
  color: #aaa;
}

.footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #999;
}
