* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

.app-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-description {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 90%;
}

.download-btn {
  background: linear-gradient(to right, #00b09b, #96c93d);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 10px 20px rgba(0, 176, 155, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 176, 155, 0.4);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3);
}

.download-btn i {
  font-size: 22px;
}

.qr-container {
  background: white;
  padding: 20px;
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #333;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  width: 90%;
  max-width: 350px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.divider-text {
  padding: 0 15px;
  font-size: 14px;
  opacity: 0.7;
}

.device-info {
  margin-top: 20px;
  font-size: 14px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: none;
}

.device-info.show {
  display: block;
}

.footer {
  margin-top: 30px;
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* 隐藏PC端访问提示 */
.pc-warning {
  display: none;
}

/* 响应式调整 */
@media (max-width: 500px) {
  .app-icon {
    width: 100px;
    height: 100px;
  }

  .app-name {
    font-size: 28px;
  }

  .download-btn {
    padding: 16px 30px;
    font-size: 16px;
  }

  .qr-container {
    width: 220px;
    height: 220px;
  }

  .qr-code {
    width: 180px;
    height: 180px;
  }
}

/* 如果检测到PC访问，显示提示 */
@media (min-width: 768px) {
  body::after {
    content: '请用手机或平板访问';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 40px;
    text-align: center;
    z-index: 1000;
  }

  .container {
    display: none;
  }
}
