/* maker.css · 执手记账 网页端请柬制作器布局（移动优先 ~375px）
   仅补 invitation.css 未覆盖的编辑器布局；主题色来自 maker.js 注入的 --mk-accent。 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f6f5f3; color: #2b2b2e; -webkit-font-smoothing: antialiased;
}

/* 顶部栏 */
.mk-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: #fff;
  border-bottom: 1px solid #eee;
}
.mk-brand { color: var(--mk-accent, #D65A78); text-decoration: none; font-weight: 600; font-size: 15px; }
.mk-title { font-size: 16px; font-weight: 700; }
.mk-close { color: #999; text-decoration: none; font-size: 24px; line-height: 1; width: 28px; text-align: center; }

/* 来源隔离 banner */
.mk-banner {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 12px; padding: 9px 12px;
  background: #fff7ec; border: 1px solid #ffe2b8; border-radius: 10px;
  color: #9a6a16; font-size: 12.5px; line-height: 1.4;
}
.mk-banner-ico { font-size: 14px; }

/* 区块 */
.mk-root { max-width: 480px; margin: 0 auto; padding: 4px 12px 40px; }
.mk-sec { margin-top: 18px; }
.mk-sec-h { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.mk-sec-h small { font-weight: 400; color: #a89; font-size: 11.5px; margin-left: 4px; }

/* 场景卡片 */
.mk-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-scene {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.mk-scene img { width: 100%; height: 92px; object-fit: cover; display: block; }
.mk-scene .mk-scene-name {
  padding: 7px 10px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.mk-scene .mk-tag-free {
  font-size: 10px; color: #fff; background: var(--mk-accent, #D65A78);
  border-radius: 6px; padding: 1px 5px; font-weight: 600;
}
.mk-scene .mk-tag-lock { font-size: 11px; color: #b08; }
.mk-scene.on { border-color: var(--mk-accent, #D65A78); }
.mk-scene.on .mk-scene-name { color: var(--mk-accent, #D65A78); }

/* 表单 */
.mk-form { display: flex; flex-direction: column; gap: 10px; }
.mk-field { display: flex; flex-direction: column; gap: 5px; }
.mk-lab { font-size: 12.5px; color: #666; }
.mk-input {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid #e3e1dd; border-radius: 10px; background: #fff; color: #2b2b2e;
  outline: none;
}
.mk-input:focus { border-color: var(--mk-accent, #D65A78); }
.mk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; }

/* 封面选择 */
.mk-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-cover {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.mk-cover img { width: 100%; height: 84px; object-fit: cover; display: block; }
.mk-cover .mk-cover-name {
  padding: 6px 8px; font-size: 12px; font-weight: 600; background: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.mk-cover.on { border-color: var(--mk-accent, #D65A78); }
.mk-cover .mk-lock { color: #b08; font-size: 12px; }

/* 相册占位 */
.mk-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-photo-add {
  height: 84px; border: 1.5px dashed #cfccc6; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #b3afa8; font-size: 13px; background: #faf9f7;
}

/* 音乐 chips */
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip {
  padding: 8px 12px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid #e3e1dd; background: #fff; color: #444;
  display: inline-flex; align-items: center; gap: 5px;
}
.mk-chip.on { border-color: var(--mk-accent, #D65A78); color: var(--mk-accent, #D65A78); background: #fff; font-weight: 600; }
.mk-chip.lock { color: #bcb; cursor: not-allowed; background: #f4f4f2; }

/* 流程 */
.mk-timeline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mk-tl-item {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 8px 10px; font-size: 13px;
}
.mk-tl-item .mk-tl-t { color: var(--mk-accent, #D65A78); font-weight: 600; min-width: 46px; }
.mk-tl-item .mk-tl-x { margin-left: auto; color: #c33; cursor: pointer; border: none; background: none; font-size: 16px; }
.mk-tl-add { display: flex; gap: 6px; }
.mk-tl-time { flex: 0 0 90px; }
.mk-tl-title { flex: 1; }

/* 按钮 */
.mk-btn {
  border: none; border-radius: 10px; padding: 10px 14px; font-size: 14px;
  cursor: pointer; font-weight: 600;
}
.mk-btn-ghost { background: #fff; border: 1px solid #ddd; color: #555; }
.mk-btn-accent { background: var(--mk-accent, #D65A78); color: #fff; }
.mk-btn-submit {
  position: sticky; bottom: 12px; width: 100%; margin-top: 26px;
  background: var(--mk-accent, #D65A78); color: #fff; padding: 14px; font-size: 16px;
  box-shadow: 0 4px 14px rgba(214,90,120,.35);
}

/* 结果弹层 */
.mk-result {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); padding: 20px;
}
.mk-result-card {
  background: #fff; border-radius: 16px; padding: 22px 18px; max-width: 340px; width: 100%; text-align: center;
}
.mk-result-ico { font-size: 34px; }
.mk-result-card h3 { margin: 8px 0 6px; }
.mk-result-tip { font-size: 12.5px; color: #777; margin: 0 0 14px; line-height: 1.5; }
.mk-link-row { display: flex; gap: 8px; }
.mk-link-row .mk-input { flex: 1; font-size: 12px; color: #555; }
.mk-result-view { display: block; margin-top: 12px; text-decoration: none; text-align: center; }

/* toast */
.mk-toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 9px 16px; border-radius: 20px;
  font-size: 13px; z-index: 50; max-width: 80%;
}
