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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

.banner {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: #f5f5f5;
  border-radius: 20px 20px 0 0;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-top: -10px;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 6px;
  color: #333;
}

.subtitle {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-bottom: 20px;
}

.notice {
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: #d46b08;
  margin-bottom: 20px;
  line-height: 1.5;
}

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

.qr-container img {
  border-radius: 8px;
}

.url-text {
  text-align: center;
  font-size: 12px;
  color: #999;
  word-break: break-all;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 6px;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-appearance: none;
}

.btn:active {
  opacity: 0.8;
}

.btn-primary {
  background: #0066cc;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #0066cc;
  border: 1px solid #0066cc;
  margin-top: 12px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0066cc;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.address-row {
  display: flex;
  gap: 10px;
}

.address-row select {
  flex: 1;
  padding: 12px 8px;
  font-size: 14px;
}

.photo-upload {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}

.photo-upload:active {
  border-color: #0066cc;
}

.photo-upload.has-photo {
  border-style: solid;
  border-color: #0066cc;
  padding: 10px;
}

.photo-icon {
  font-size: 36px;
  color: #ccc;
  margin-bottom: 8px;
}

.photo-text {
  font-size: 14px;
  color: #999;
}

.photo-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  display: none;
}

.photo-upload.has-photo .photo-icon,
.photo-upload.has-photo .photo-text {
  display: none;
}

.photo-upload.has-photo .photo-preview {
  display: block;
}

#photo-input {
  display: none;
}

.info-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  width: 100px;
  flex-shrink: 0;
  color: #999;
  font-size: 13px;
}

.info-value {
  flex: 1;
  font-size: 14px;
  color: #333;
  word-break: break-all;
}

.info-photo {
  margin-top: 12px;
  text-align: center;
}

.info-photo img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
}

.loading {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #0066cc;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 16px;
  color: #52c41a;
}

.error-msg {
  background: #fff2f0;
  color: #e74c3c;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.timestamp {
  text-align: center;
  color: #ccc;
  font-size: 12px;
  margin-top: 16px;
}

/* 备案合规页脚：法规要求主页底部显著位置标明备案号码并链接工信部系统 */
.icp-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 18px 16px 26px;
  line-height: 1.9;
}

.icp-footer a {
  color: #999;
  text-decoration: none;
}

.icp-footer a:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* 公司名按要求隐藏（备案号保留并链接工信部，合规不受影响）；想恢复显示改回 block */
.icp-company {
  display: none;
}
