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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f7fa;
  overflow-x: hidden;
  color: #333;
}

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #fff;
  z-index: 99999999999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader img { max-width: 80px; }

/* Shade */
#shade {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #fff;
  z-index: 9999999999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#shade-box img { max-width: 85%; max-height: 85%; }

/* Main */
#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  padding-bottom: 90px;
}

.step {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin: 0;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.step h2 {
  text-align: center;
  color: #222;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}

.step-desc {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 20px;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  background: #fafafa;
  color: #333;
}

input:focus, select:focus {
  border-color: #4CAF50;
  background: #fff;
}

input::placeholder { color: #bbb; }

select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

#photoBtn {
  width: 160px;
  height: 200px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  margin: 0 auto 8px;
  overflow: hidden;
  transition: border-color 0.3s;
  background: #fafafa;
}

#photoBtn:hover { border-color: #4CAF50; }
#photoBtn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-hint {
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
  padding: 0 10px;
}

/* Footer */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

#stepText {
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

#stepBtn {
  padding: 10px 36px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.15s;
  font-weight: 500;
}

#stepBtn:active { transform: scale(0.96); }

/* Success */
#success {
  display: none;
  min-height: 100vh;
  background: #f5f7fa;
}

.success-head {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
  text-align: center;
  padding: 50px 20px 40px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
}

.success-body {
  padding: 28px 20px;
  text-align: center;
}

#success-photo {
  max-width: 45%;
  border-radius: 10px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.success-info {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  margin: 0 auto 20px;
  max-width: 420px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.success-info div {
  padding: 10px 0;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}

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

#success-subject { color: #4CAF50; font-weight: 600; font-size: 18px; }

#success-subject-pro {
  margin-top: 6px;
  color: #666;
  font-size: 14px;
}

#success-subject-pro div { padding: 4px 0; border: none; }

.ext-btn {
  margin-top: 16px;
  padding: 12px 32px;
  background: #2196F3;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s;
}

.ext-btn:active { transform: scale(0.96); }

/* Shade box */
#shade-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 480px) {
  .step { margin: 0; padding: 20px; }
  #main { padding: 10px; padding-bottom: 80px; }
}
