/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #3a7fe7 0%, #bb2b8f 100%);
}

/* 加载动画 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.loading-container p {
  color: #ffffff;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top: 4px solid #ffffff;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 容器样式 */
.container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 电脑端容器 */
.desktop-container {
  max-width: 400px;
}

.desktop-container .header h1 {
  font-size: 22px;
  color: #3a7fe7;
  margin-bottom: 8px;
  font-weight: bold;
}

.desktop-container .header h2 {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.qr-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

#qrcode {
  padding: 10px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.desktop-container .footer h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

.desktop-container .footer p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* 手机APP容器 */
.app-container {
  max-width: 350px;
}

.app-container h1 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.app-container p {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
}

/* 按钮样式 */
.btn {
  background-color: #3a7fe7;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn .icon {
  margin-right: 8px;
  vertical-align: middle;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 反馈提示 */
.feedback {
  margin-top: 15px;
  padding: 10px;
  background-color: #e8f5e9;
  color: #2ecc71;
  border-radius: 8px;
  font-size: 14px;
}

/* 错误提示 */
.error-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.error-message {
  color: #e74c3c;
  font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  .desktop-container .header h1 {
    font-size: 20px;
  }

  .desktop-container .header h2 {
    font-size: 16px;
  }

  .app-container h1 {
    font-size: 18px;
  }

  .app-container p {
    font-size: 14px;
  }
}