:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

#root {
  width: 100%;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
.screen-page-canvas {
  width: 100vw;
  height: 100vh;
  background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  position: relative;
}

.participants-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: transparent;
  /* 启用硬件加速 */
  transform: translateZ(0);
  will-change: transform;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
}

/* 庆祝特效 */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.9;
  animation: confettiFall 3s linear infinite;
}

.confetti-0 {
  background: #ff6b35;
  animation-delay: 0s;
  left: 10%;
}

.confetti-1 {
  background: #ffd23f;
  animation-delay: 0.3s;
  left: 30%;
}

.confetti-2 {
  background: #06d6a0;
  animation-delay: 0.6s;
  left: 50%;
}

.confetti-3 {
  background: #118ab2;
  animation-delay: 0.9s;
  left: 70%;
}

.confetti-4 {
  background: #7209b7;
  animation-delay: 1.2s;
  left: 90%;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.fireworks {
  position: absolute;
  width: 100%;
  height: 100%;
}

.firework {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: fireworkExplode 2s ease-out infinite;
  box-shadow: 0 0 10px #fff, 0 0 20px #ff6b35;
}

.firework:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.firework:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.7s;
}

.firework:nth-child(3) {
  top: 15%;
  left: 60%;
  animation-delay: 1.4s;
}

.firework-4 {
  top: 50%;
  left: 15%;
  animation-delay: 0.3s;
}

.firework-5 {
  top: 40%;
  left: 80%;
  animation-delay: 1s;
}

.firework-6 {
  top: 60%;
  right: 30%;
  animation-delay: 1.7s;
}

@keyframes fireworkExplode {
  0% {
    transform: scale(0);
    opacity: 1;
    box-shadow: 
      0 0 0 0 #ff6b35,
      0 0 0 0 #ffd23f,
      0 0 0 0 #06d6a0,
      0 0 0 0 #118ab2,
      0 0 20px #fff;
  }
  50% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 
      40px 0 0 8px #ff6b35,
      -40px 0 0 8px #ffd23f,
      0 40px 0 8px #06d6a0,
      0 -40px 0 8px #118ab2,
      28px 28px 0 6px #7209b7,
      -28px -28px 0 6px #ff6b35,
      28px -28px 0 6px #ffd23f,
      -28px 28px 0 6px #06d6a0,
      0 0 40px #fff;
  }
  100% {
    transform: scale(2);
    opacity: 0;
    box-shadow: 
      60px 0 0 0 transparent,
      -60px 0 0 0 transparent,
      0 60px 0 0 transparent,
      0 -60px 0 0 transparent,
      42px 42px 0 0 transparent,
      -42px -42px 0 0 transparent,
      42px -42px 0 0 transparent,
      -42px 42px 0 0 transparent,
      0 0 0 0 transparent;
  }
}

/* 中奖者区域 */
.winner-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1111;
  animation: popupAppear 0.5s ease-out;
}

@keyframes popupAppear {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.winner-container {
  background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/popup.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 60vw;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.winner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.winner-avatar {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  border: 8px solid #fff;
}

.winner-nickname {
  font-size: 2rem;
  color: #333;
  margin: 0;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
}

/* 默认显示样式 */
.default-display {
  text-align: center;
  padding: 30px;
  max-width: 35vw;
  position: relative;
  z-index: 200;
}

.pending-image {
  max-width: 80%;
  height: auto;
}

.participant-count {
  font-size: 32px !important;
  color: #fff  !important;
  position: absolute  !important;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}.mobile-page {
  width: 100%;
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.phone-container {
  position: relative;
  width: 375px;
  height: 812px;
  background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/phone.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  border-radius: 40px;
  overflow: hidden;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-page {
    padding: 0;
    background-color: transparent;
  }
  
  .phone-container {
    width: 100%;
    height: 100vh;
    background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/phone.jpg');
    background-size: cover;
    box-shadow: none;
    border-radius: 0;
  }
  
  .phone-screen {
    padding: 15px;
  }
}

.user-info{
  text-align: center;
  margin-bottom: 20px;
}
.form-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.form-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  background-color: white;
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
}

.lottery-btn {
  width: 100%;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lottery-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.winner-result h2 {
  color: #ff6b6b;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.no-prize-result h2 {
  color: #666;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.car-image {
  margin-bottom: 20px;
}

.car-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reset-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
}
.info-display{
  color:#000
}
.reset-btn:hover {
  background: #0056b3;
}
.user-info{
  text-align: center;
  margin-bottom: 20px;
}
.result-container p {
  color: #333;
  margin-bottom: 15px;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  background: linear-gradient(45deg, #ff5722, #ff8f00);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}.admin-page {
  width: 100%;
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.admin-phone-container {
  position: relative;
  width: 375px;
  height: 812px;
  background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/phone.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  border-radius: 40px;
  overflow: hidden;
}

.admin-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f3f4f6;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
}

.logout-btn {
  padding: 8px 16px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.form-container h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.current-winner-section {
  margin-bottom: 30px;
}

.current-winner-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 15px;
}

.winner-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.winner-avatar-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  flex-shrink: 0;
}

.winner-info-small {
  flex: 1;
}

.winner-info-small p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.winner-info-small strong {
  color: #1f2937;
}

.no-winner {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  margin: 0;
}

.admin-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.draw-btn, .clear-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.draw-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.draw-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.clear-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.clear-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.draw-btn:disabled, .clear-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: 500;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* 中奖记录 */
.records-section {
  margin-top: 20px;
  border-top: 2px solid #f3f4f6;
  padding-top: 20px;
}

.records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.records-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1f2937;
  font-weight: 600;
}

.toggle-records-btn {
  padding: 6px 12px;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-records-btn:hover {
  background: #4b5563;
}

.records-container {
  background: #f9fafb;
  border-radius: 8px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.record-item {
  background: white;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
}

.record-index {
  font-weight: bold;
  color: #3b82f6;
  font-size: 0.9rem;
  min-width: 30px;
}

.record-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}

.record-info {
  flex: 1;
}

.record-info p {
  margin: 2px 0;
  font-size: 0.85rem;
}

.record-name {
  font-weight: 600;
  color: #1f2937;
}

.record-phone {
  color: #4b5563;
}

.record-time {
  color: #6b7280;
  font-size: 0.75rem;
}

.clear-all-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-all-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.clear-all-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.no-records {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .admin-page {
    padding: 0;
    background-color: transparent;
    background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/phone.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .admin-phone-container {
    width: 100%;
    height: 100vh;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  .admin-phone-screen {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .admin-page {
    padding: 0;
    background-image: url('https://gametest23.oss-cn-beijing.aliyuncs.com/dist/phone.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .admin-phone-container {
    background: none;
  }
  
  .admin-phone-screen {
    padding: 15px;
  }
  
  .admin-header h1 {
    font-size: 1.5rem;
  }
  
  .admin-actions {
    flex-direction: column;
  }

  .records-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .record-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .record-index {
    align-self: flex-end;
  }
}* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.App {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}