/* 问卷页样式：保持与全站风格一致，组件独立命名 */

.survey-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.survey-title { font-size: 2rem; font-weight: 700; color: #1f2937; }
.survey-subtitle { font-size: 1rem; color: #64748b; margin-top: 8px; }

.survey-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* 移动端整体间距与可读性优化 */
@media (max-width: 768px) {
  .survey-hero { padding: 28px 16px; }
  .survey-title { font-size: 1.6rem; }
  .survey-subtitle { font-size: 0.95rem; }
  .survey-container { padding: 0 16px 28px; }
  .survey-steps { grid-template-columns: 1fr 1fr; }
  .step-btn { height: 42px; font-size: 14px; }
  .step-panel { padding: 12px; }
  .form-field { margin-bottom: 12px; }
  .image-card img { height: 100px; }
}

.survey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.step-btn {
  min-height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  white-space: normal; /* 允许自动换行 */
  line-height: 1.15;
}
.step-btn.active { border-color: #2563eb; color: #1d4ed8; font-weight: 600; }
.step-btn.completed { border-color: #10b981; color: #059669; background: #f0fdf4; }
.step-btn.disabled { opacity: 0.5; cursor: not-allowed; background: #f3f4f6; color: #9ca3af; }
.step-btn.disabled:hover { transform: none; }

.step-panel { background:#fff; border:1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.hidden { display: none; }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-field > label { font-weight: 600; color:#111827; font-size: 14px; }
.form-field > label.required::after { content: ' *'; color: #ef4444; margin-left: 4px; }
.form-field input[type="text"],
.form-field input[type="date"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}
.form-field textarea { min-height: 120px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.select-group { display: flex; flex-direction: column; gap: 6px; position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; }
.select-group:focus-within { box-shadow: 0 0 0 3px rgba(37,99,235,0.15); border-color: #93c5fd; }

/* 省份首字母筛选条 */
.alpha-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.alpha-btn { height: 28px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #334155; cursor: pointer; font-size: 12px; }
.alpha-btn:hover { background: #eef2ff; border-color: #93c5fd; }
.alpha-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.select-filter { height: 36px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px; font-size: 14px; position: sticky; top: 0; background: #fff; z-index: 1; }

/* 原生 select 容器高度增加，便于长列表浏览 */
.form-field select { max-height: 360px; overflow-y: auto; }
.form-field select:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-field select option { padding: 6px; }
.form-field select option:hover { background: #eef2ff; }
.form-field select:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }

/* 移动端优化：收紧内边距、让首字母条可换行 */
@media (max-width: 768px) {
  .select-group { padding: 8px; }
  .alpha-bar { gap: 4px; }
  .form-field select { max-height: 300px; }
}

.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.parts-grid label { display: flex; align-items: center; gap: 8px; background:#fff; border:1px solid #e5e7eb; border-radius: 8px; padding: 10px; }

.chips { display:flex; flex-wrap: wrap; gap: 8px; }
.chips label { background:#fff; border:1px solid #e5e7eb; border-radius: 999px; padding: 8px 12px; display:flex; align-items:center; gap:8px; }

.image-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 8px; }
.image-card { border:1px solid #e5e7eb; border-radius: 10px; background:#fff; padding: 8px; }
.image-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.image-card input { margin-top: 6px; width: 100%; }

.dynamic-questions { display: grid; gap: 8px; }
.dq-group { border: 1px dashed #e5e7eb; border-radius: 8px; padding: 10px; }
.dq-title { font-weight: 600; color:#111827; margin-bottom: 8px; }
.dq-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; align-items: center; margin: 6px 0; }
.dq-row select { height: 36px; }

.inline-other { display: none; }
.inline-other.active { display: block; }
.inline-other input { margin-top: 6px; }

.nav-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.btn-prev, .btn-next, .btn-submit {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #2563eb;
}
.btn-prev { background:#fff; color:#2563eb; }
.btn-next, .btn-submit { background:#2563eb; color:#fff; }

.consent label { display:flex; align-items:flex-start; gap:8px; }

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}


