:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #3b6cf6;
  --primary-d: #2f57c9;
  --text: #1f2733;
  --muted: #7a8699;
  --line: #e6eaf2;
  --ok: #1faa6b;
  --warn: #e8912d;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(30, 50, 90, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.wrap-wide { max-width: 1080px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
h1 { font-size: 22px; margin: 8px 0 4px; }
h2 { font-size: 17px; margin: 4px 0 12px; }
.muted { color: var(--muted); font-size: 13px; }

/* 步骤条 */
.steps { display: flex; gap: 8px; margin: 14px 0 18px; }
.step {
  flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px;
  background: #eef1f8; color: var(--muted); font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
}
.step.active { background: #e3ebff; color: var(--primary-d); border-color: #c3d2ff; }
.step.done { background: #e4f6ee; color: var(--ok); }

/* 表单 */
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=url], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit; background: #fbfcfe;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: #fff; }
.row { display: flex; gap: 10px; }
.row > div { flex: 1; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: none; border-radius: 10px; padding: 11px 18px; font-size: 14px;
  font-weight: 600; font-family: inherit; background: var(--primary); color: #fff;
  transition: .15s;
}
.btn:hover { background: var(--primary-d); }
.btn.ghost { background: #eef1f8; color: var(--text); }
.btn.ghost:hover { background: #e2e7f3; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.spacer { flex: 1; }

/* 上传区 */
.drop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center;
  color: var(--muted); cursor: pointer; background: #fbfcfe; transition: .15s;
}
.drop:hover { border-color: var(--primary); color: var(--primary); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb {
  position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 20px;
}
.thumb .nm { position: absolute; bottom: 0; left: 0; right: 0; font-size: 9px; background: rgba(0,0,0,.5); color:#fff; padding: 1px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 产品块 */
.product { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fbfcfe; }
.product .ph { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: #eef1f8; color: var(--muted); }

/* 草稿卡片 */
.draft { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.draft h3 { margin: 0 0 8px; font-size: 15px; }
.draft textarea { min-height: 120px; }
.kw { display: inline-block; padding: 4px 10px; margin: 3px; border-radius: 999px; background: #eef1f8; font-size: 12px; }
.bar { height: 8px; background: #e6eaf2; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ok); }

/* 语音 */
.mic { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.mic.on { background: #ffe3e3; border-color: #ff9a9a; }

/* 管理端表格 */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }
.pill { padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.pill.sent { background: #e3ebff; color: var(--primary-d); }
.pill.in_progress { background: #fff3e0; color: var(--warn); }
.pill.submitted { background: #e4f6ee; color: var(--ok); }
.copy { cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 12px; background: #fff; }
.notice { background: #fff8e8; border: 1px solid #ffe2a8; color: #8a6300; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.hidden { display: none !important; }
