* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans SC', sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  padding: 30px 25px;
  text-align: left;
  color: white;
}

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

.header h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.subtitle {
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.6;
}

.back-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  white-space: nowrap;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.loading,
.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  color: #666;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e3f2fd;
  border-top: 4px solid #42a5f5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

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

.error-icon {
  width: 60px;
  height: 60px;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.content {
  padding: 25px;
}

.customer-info {
  margin-bottom: 16px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
}

.info-header .icon {
  display: none;
}

.info-header h2 {
  font-size: 17px;
  font-weight: 500;
  color: #37474f;
  text-align: left;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e3f2fd;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  background: #fafafa;
}

.contact-item.is-link {
  cursor: pointer;
}

.contact-item.is-link .contact-value {
  color: #1976d2;
}

.contact-item.is-link:hover .contact-value {
  color: #0d47a1;
  text-decoration: underline;
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: #37474f;
  word-break: break-all;
}

.copy-btn {
  padding: 0;
  background: transparent;
  color: #64b5f6;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: #1976d2;
  text-decoration: underline;
}

.copy-btn:active {
  color: #0d47a1;
}

.tips {
  text-align: left;
  padding: 16px;
  background: #e1f5fe;
  border-radius: 10px;
  border: 1px solid #b3e5fc;

}

.tips p {
  color: #546e7a;
  font-size: 13px;
  line-height: 1.6;
  margin: 4px 0;
}

.no-contact {
  padding: 30px 20px;
  text-align: center;
  color: #90a4ae;
  background: white;
  border-radius: 12px;
  border: 1px solid #e3f2fd;
  margin-bottom: 20px;
}

.no-contact p {
  margin: 0;
  font-size: 14px;
}

.qrcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e3f2fd;
  margin-bottom: 20px;
}

.qrcode-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.tips a {
  color: #14455c;
}


.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header {
    padding: 25px 20px;
  }

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

  .back-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .content {
    padding: 20px;
  }

  .info-header {
    padding: 12px 15px;
  }

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

  .info-header .icon {
    display: none;
  }

  .contact-item {
    padding: 12px 14px;
  }

  .contact-value {
    font-size: 14px;
  }

  .copy-btn {
    font-size: 12px;
  }
}