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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.subtitle {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.step.active .step-num { background: #07c160; color: #fff; }
.step.done .step-num { background: #07c160; color: #fff; }

.step-label {
  font-size: 11px;
  color: #999;
}

.step.active .step-label { color: #07c160; font-weight: 600; }
.step.done .step-label { color: #07c160; }

.step-connector {
  width: 32px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 4px 20px;
}

.step-connector.done { background: #07c160; }

.step-content { animation: fadeIn 0.3s ease; }

.hidden { display: none !important; }

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

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

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

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #07c160;
}

.help-text {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  line-height: 1.5;
}

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

.btn:active { opacity: 0.8; }

.btn-primary { background: #07c160; color: #fff; }

.btn-primary:disabled {
  background: #a0e0b8;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f0f0f0;
  color: #666;
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-group .btn { flex: 1; }

.result-card, .preview-card, .success-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.result-card h3, .preview-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #333;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}

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

.preview-row .label { color: #888; }

.preview-row .after { color: #07c160; font-weight: 600; }

.grant-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
  background: #e8f8ee;
  color: #07c160;
}

.goods-list { margin-bottom: 16px; }

.goods-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.goods-item.selected { border-color: #07c160; }

.goods-item .thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

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

.goods-item .desc {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-item .meta {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.goods-item .check {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  font-size: 12px;
  transition: all 0.2s;
}

.goods-item.selected .check {
  background: #07c160;
  border-color: #07c160;
  color: #fff;
}

.success-card { text-align: center; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #07c160;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-card h2 { color: #07c160; margin-bottom: 12px; }

.guide-section, .faq-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.guide-section h3, .faq-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #333;
}

.guide-section p, .faq-section li {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-section ul { padding-left: 0; list-style: none; }

.faq-section li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.faq-section li:last-child { border-bottom: none; }

.faq-section li strong { color: #333; display: block; margin-bottom: 4px; }

.loading {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading p { margin-top: 12px; color: #888; font-size: 14px; }

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f44336;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  animation: fadeIn 0.3s;
}

.toast.success { background: #07c160; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-img {
  width: 140px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  background: #fafafa;
}