/* 证件照在线制作 · 极简单页样式 */
:root {
  --primary: #3370ff;
  --primary-light: #eef4ff;
  --text: #1f2329;
  --text-sub: #646a73;
  --border: #dee3e8;
  --bg: #f7f8fa;
  --danger: #d9001b;
}

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* 顶栏 */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.brand { font-size: 18px; font-weight: 700; }
.privacy { font-size: 12px; color: var(--text-sub); }

/* 主布局：左控制 + 右说明 */
.layout {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.controls { flex: 1 1 640px; min-width: 320px; }
.notes { flex: 0 1 300px; min-width: 260px; }

/* 步骤 */
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  font-weight: 600;
}
.step:first-of-type { margin-top: 0; }
.step-no {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}
.step-label { font-size: 15px; }

/* 上传区 */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag {
  border-color: var(--primary);
  background: var(--primary-light);
}
.dz-icon { font-size: 30px; }
.dz-text { font-size: 15px; margin-top: 6px; }
.dz-hint { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

/* 字段 */
.field { margin: 12px 0; }
.field label { display: block; font-size: 14px; margin-bottom: 5px; }
.field select, .field input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.field input[type="range"] { width: 100%; }
.checkbox-line { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.checkbox-line input { width: auto; }

/* 预览 */
.preview-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfcfd;
  overflow: hidden;
}
.preview-empty { color: var(--text-sub); font-size: 13px; padding: 20px; }
.preview-box canvas { max-width: 100%; height: auto; display: block; }

/* 解锁区 */
.unlock { margin-top: 16px; }
.unlock input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.unlock button {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.unlock button:disabled { background: #a8b8d8; cursor: not-allowed; }
.unlock button:hover:not(:disabled) { background: #2a5fd8; }
.unlock-hint { font-size: 13px; margin-top: 6px; min-height: 18px; }
.unlock-hint.ok { color: #16a34a; }
.unlock-hint.err { color: var(--danger); }
.unlock-tip { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* 右侧说明 */
.notes h2 { font-size: 15px; margin: 14px 0 8px; }
.notes h2:first-child { margin-top: 0; }
.notes ul { padding-left: 18px; font-size: 13px; color: var(--text-sub); }
.notes li { margin: 6px 0; }
.notes b { color: var(--text); }

/* 响应式 */
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .notes { flex: 1 1 auto; }
}
