* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%); color: #1e293b; min-height: 100vh; -webkit-tap-highlight-color: transparent; }

.history-item { cursor: pointer; }
.history-item .detail-box { max-height: 0; overflow-y: auto; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 12px; }
.history-item.open .detail-box { max-height: 280px; padding: 10px 12px; }
.readonly .choice-label, .readonly .flag-label { pointer-events: none; opacity: 0.7; }
.history-fields { display: flex; flex-wrap: wrap; gap: 4px 18px; white-space: nowrap; }
.history-fields span { font-size: 14px; color: #64748b; }
.history-fields b { color: #334155; font-weight: 600; }
.vas input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.vas input[type="number"]::-webkit-outer-spin-button, .vas input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================
   问卷样式（替代原 Tailwind 工具类）
   ============================================================ */
.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }

/* 单选题 */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; margin-top: 0.75rem; }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-label { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0; border-radius: 0.75rem; border: 2px solid #f1f5f9; cursor: pointer; transition: all 0.15s ease; font-size: 1rem; font-weight: 500; color: #475569; background: #f8fafc; }
.choice-label:hover { background: #f1f5f9; }
.choice-label.selected { border-color: #3b82f6; background: #eff6ff; color: #2563eb; }

/* 多选标签 */
.flag-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.flag-label { display: flex; align-items: center; gap: 0.375rem; padding: 0.45rem 0.85rem; border-radius: 0.75rem; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.15s ease; font-size: 1rem; font-weight: 500; color: #475569; background: #f8fafc; }
.flag-label::before { content: ''; width: 1rem; height: 1rem; flex: none; border: 1.5px solid #94a3b8; border-radius: 0.25rem; background: #fff; transition: all 0.15s ease; }
.flag-label:hover::before { background: #f1f5f9; }
.flag-label.selected::before { border-color: #2563eb; background: #2563eb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center/80% no-repeat; }
.flag-label:hover { background: #f1f5f9; }
.flag-label.selected { background: #eff6ff; border-color: #3b82f6; color: #2563eb; }

/* 滑杆 / 输入行 */
.range-row, .input-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.range-slider { flex: 1; height: 0.5rem; accent-color: #2563eb; }
.range-value { font-size: 1.125rem; font-weight: 700; color: #2563eb; width: 3.5rem; text-align: center; background: #eff6ff; padding: 0.375rem 0; border-radius: 0.5rem; }
.input-note { font-size: 1rem; color: #94a3b8; flex: none; }

/* 提交按钮 / 错误提示 */
.submit-btn { margin-top: 1.5rem; }
.form-error { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; }

/* 历史反馈列表 */
.history-list-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.history-item { border-bottom: 1px solid #f8fafc; }
.history-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 0.75rem; border-radius: 0.75rem; transition: background-color 0.15s ease; }
.history-row:hover { background: #f8fafc; }
.history-main { flex: 1; }
.history-date { font-size: 1rem; font-weight: 600; color: #334155; }
.history-time { font-size: 0.8125rem; color: #94a3b8; white-space: nowrap; font-weight: 500; margin-left: 0.5rem; }
.detail-line { font-size: 0.9375rem; color: #64748b; line-height: 1.625; }
.detail-line--note { margin-top: 0.25rem; }
.detail-line--muted { color: #94a3b8; }
.contact-flag { color: #ef4444; }
