/* ================================================================
   运营板块 · 公众号爆文 / 公众号仿写（2026-09-15 · 开发员12号）
   独立样式表：两个子页共用，刻意不写进 437KB 的 style.css，避免并发覆盖。
   全部沿用根变量（--primary / --grad / --card / --text / --text2 / --chip-bg / --radius），
   视觉与站内一致，不引入新色系。
   ⚠️ 注释里禁止出现星号加斜杠的序列，会提前结束注释吞掉后面的规则。
   ================================================================ */

/* ---------- Hero ---------- */
.gz-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px 18px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff6ef 0%, #fff0e4 55%, #ffe9f0 100%);
  box-shadow: 0 6px 22px rgba(249, 89, 1, 0.1);
}
.gz-hero-glow {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  right: -70px; top: -80px; pointer-events: none;
  background: radial-gradient(circle, rgba(249, 89, 1, 0.16), transparent 70%);
}
.gz-hero-glow2 {
  position: absolute; width: 140px; height: 140px; border-radius: 50%;
  left: -60px; bottom: -70px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.14), transparent 70%);
}
.gz-hero-tag {
  position: relative; display: inline-block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--primary); background: rgba(255, 255, 255, 0.86);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.gz-hero-t { position: relative; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.35; letter-spacing: 0.2px; }
.gz-hero-s { position: relative; font-size: 12.5px; color: var(--text2); line-height: 1.7; margin-top: 8px; }
.gz-hero-flow {
  position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12px; color: var(--primary); font-weight: 600;
}
.gz-hero-flow i { font-style: normal; opacity: 0.5; }

/* ---------- 步骤卡片 ---------- */
.gz-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(249, 89, 1, 0.08);
}
.gz-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; flex-wrap: wrap; }
.gz-no {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(249, 89, 1, 0.3);
}
.gz-title { font-size: 15px; font-weight: 700; color: var(--text); }
.gz-req { font-size: 11px; font-weight: 600; color: #fff; background: var(--primary-light); padding: 2px 7px; border-radius: 999px; }
.gz-opt { font-size: 11px; font-weight: 500; color: var(--text2); background: var(--chip-bg); padding: 2px 7px; border-radius: 999px; }
.gz-tip { font-size: 12px; color: var(--text2); line-height: 1.65; margin-bottom: 10px; }

/* ---------- 胶囊 ---------- */
.gz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gz-chip {
  border: none; cursor: pointer; font-family: inherit;
  background: var(--chip-bg); color: var(--text);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 15px; border-radius: 999px;
  transition: transform 0.12s, background 0.18s, box-shadow 0.18s;
}
.gz-chip:active { transform: scale(0.95); }
.gz-chip.on { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(249, 89, 1, 0.32); }
.gz-chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* 选择后的解释条 */
.gz-note {
  margin-top: 11px; font-size: 12.5px; line-height: 1.65; color: var(--text2);
  background: #fff8f3; border-left: 3px solid var(--primary-light);
  border-radius: 0 10px 10px 0; padding: 9px 12px;
}
.gz-note b { color: var(--primary); font-weight: 600; }

/* ---------- 输入 ---------- */
.gz-ta {
  width: 100%; border: none; outline: none; font-family: inherit; resize: vertical;
  background: #fff5ee; border-radius: 14px;
  padding: 13px 14px; font-size: 15px; color: var(--text); line-height: 1.65;
}
.gz-ta::placeholder { color: #c9b4a5; }
.gz-in {
  width: 100%; border: none; outline: none; font-family: inherit;
  background: #fff5ee; border-radius: 14px;
  padding: 13px 14px; font-size: 15px; color: var(--text);
}
.gz-cnt { font-size: 11.5px; color: var(--text2); text-align: right; margin-top: 6px; }
.gz-row { display: flex; gap: 8px; align-items: stretch; }
.gz-row .gz-in { flex: 1; }

/* 快捷示例 */
.gz-ideas { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gz-idea {
  border: none; cursor: pointer; font-family: inherit;
  background: #fff8f3; color: var(--primary);
  font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px;
  border: 1px dashed #ffd6bd;
}
.gz-idea:active { transform: scale(0.96); }

/* ---------- 图片素材上传 ---------- */
.gz-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 18px 12px; text-align: center; cursor: pointer;
  border: 1.5px dashed #ffcfb2; border-radius: 14px; background: #fffaf6;
  transition: border-color 0.2s, background 0.2s;
}
.gz-drop:active { background: #fff2e8; }
.gz-drop-ico { font-size: 20px; }
.gz-drop-t { font-size: 13px; font-weight: 600; color: var(--text); }
.gz-drop-s { font-size: 11.5px; color: var(--text2); }
.gz-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gz-thumbw { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #f5f5f5; }
.gz-thumbw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gz-thumbx {
  position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border: none;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gz-thumb-busy { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* 素材识别结果 */
.gz-notes { margin-top: 10px; font-size: 12.5px; color: var(--text2); line-height: 1.7; background: #f7fbf7; border-radius: 12px; padding: 10px 12px; border-left: 3px solid #b7e0b7; }

/* ---------- 折叠（补充要求） ---------- */
.gz-tog {
  border: none; background: none; font-family: inherit; cursor: pointer;
  color: var(--primary); font-size: 13px; font-weight: 600; padding: 6px 0;
}
.gz-adv { margin-top: 6px; }

/* ---------- 主按钮 ---------- */
.gz-actions { margin-top: 14px; }
.gz-main {
  width: 100%; border: none; cursor: pointer; font-family: inherit;
  background: var(--grad); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  padding: 15px; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(249, 89, 1, 0.3);
  transition: transform 0.12s, opacity 0.18s;
}
.gz-main:active { transform: scale(0.985); }
.gz-main:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.gz-ghost {
  width: 100%; border: 1.5px solid #ffd6bd; background: #fff; color: var(--primary);
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px; border-radius: 14px; cursor: pointer; margin-top: 9px;
}
.gz-ghost:active { background: #fff6ef; }
.gz-cost { font-size: 11.5px; color: var(--text2); text-align: center; margin-top: 9px; line-height: 1.6; }

/* ---------- 错误 / 进度 ---------- */
.gz-err {
  margin-top: 12px; font-size: 13px; line-height: 1.65; color: #b42318;
  background: #fff1f0; border-radius: 12px; padding: 11px 13px; border-left: 3px solid #f97066;
}
.gz-prog { margin-top: 14px; text-align: center; padding: 16px 4px 4px; }
.gz-prog-row { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13.5px; color: var(--text2); }
.gz-spin { width: 15px; height: 15px; border: 2px solid #ffd9c2; border-top-color: var(--primary); border-radius: 50%; animation: gz-spin 0.8s linear infinite; }
@keyframes gz-spin { to { transform: rotate(360deg); } }
.gz-bar { height: 4px; background: #ffeede; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.gz-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 0.5s ease; }
.gz-prog-s { font-size: 11.5px; color: var(--text2); margin-top: 9px; }

/* ---------- 结果区 ---------- */
.gz-out { margin-top: 16px; }
.gz-outhd { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gz-dim { font-size: 11.5px; font-weight: 500; color: var(--text2); }

/* 标题 3 选 */
.gz-titles { display: flex; flex-direction: column; gap: 9px; }
.gz-titleopt {
  text-align: left; font-family: inherit; cursor: pointer;
  background: #fff8f3; border: 1.5px solid transparent; border-radius: 13px;
  padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.55;
  transition: border-color 0.18s, background 0.18s;
}
.gz-titleopt.on { border-color: var(--primary); background: #fff2e8; }
.gz-titleopt em { display: block; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text2); margin-top: 5px; }

/* 骨架 */
.gz-skel { display: flex; flex-direction: column; gap: 8px; }
.gz-skelrow { background: #fbfbfb; border-radius: 12px; padding: 11px 13px; border-left: 3px solid #ffd6bd; }
.gz-skelrow b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.gz-skelrow span { font-size: 12.5px; color: var(--text2); line-height: 1.65; display: block; }
.gz-skelrow i { font-style: normal; font-size: 11.5px; color: var(--primary); display: block; margin-top: 5px; }

/* 资料线索 */
.gz-res { margin-top: 10px; }
.gz-resrow { font-size: 12.5px; color: var(--text2); line-height: 1.7; padding: 7px 0; border-bottom: 1px dashed #f0e6df; }
.gz-resrow:last-child { border-bottom: none; }
.gz-resrow b { color: var(--text); font-weight: 600; }

/* 配图建议 */
.gz-imgplan { display: flex; flex-direction: column; gap: 8px; }
.gz-imgprow { font-size: 12.5px; color: var(--text2); line-height: 1.65; background: #f8f8ff; border-radius: 11px; padding: 9px 12px; }
.gz-imgprow b { color: #5b5bd6; font-weight: 600; }

/* ---------- 文章正文渲染 ---------- */
.gz-article { margin-top: 6px; }
.gz-artmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gz-tagpill { font-size: 11.5px; font-weight: 600; color: var(--text2); background: var(--chip-bg); padding: 4px 10px; border-radius: 999px; }
.gz-artbody { background: #fff; border-radius: 14px; padding: 16px 15px; box-shadow: inset 0 0 0 1px #f3ece7; }
.gz-p { font-size: 15.5px; line-height: 1.95; color: #2b2b2b; margin: 0 0 15px; letter-spacing: 0.2px; }
.gz-p:last-child { margin-bottom: 0; }
.gz-h2 {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin: 22px 0 13px; padding-left: 11px; position: relative; line-height: 1.5;
}
.gz-h2:first-child { margin-top: 0; }
.gz-h2::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 3px; background: var(--grad);
}
.gz-quote {
  font-size: 15.5px; font-weight: 600; color: var(--primary-dark, #c2410c);
  background: #fff8f3; border-radius: 12px; padding: 12px 14px; margin: 16px 0; line-height: 1.85;
}
.gz-imgslt {
  display: flex; align-items: center; gap: 10px;
  background: #f8f8ff; border: 1.5px dashed #d8d8f5; border-radius: 13px;
  padding: 11px 13px; margin: 16px 0; font-size: 12.5px; color: #5b5bd6; line-height: 1.6;
}
.gz-imgslt-ico { font-size: 18px; flex: none; }
.gz-imgslt img { width: 100%; border-radius: 12px; display: block; margin-top: 9px; }
.gz-imgslt.done { background: #fff; border-style: solid; border-color: #ececf8; display: block; }

/* 护栏 */
.gz-warn { margin-top: 12px; font-size: 12.5px; line-height: 1.7; border-radius: 12px; padding: 11px 13px; }
.gz-warn.num { color: #92400e; background: #fffbeb; border-left: 3px solid #f59e0b; }
.gz-warn.ad { color: #b42318; background: #fff1f0; border-left: 3px solid #f97066; }
.gz-warn.ai { color: #5b21b6; background: #f5f3ff; border-left: 3px solid #a78bfa; }
.gz-warn.ok { color: #05603a; background: #ecfdf3; border-left: 3px solid #12b76a; }
.gz-warn b { font-weight: 700; }
.gz-flag { background: #fef08a; border-radius: 3px; padding: 0 2px; }

/* 操作条 */
.gz-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gz-btn {
  border: none; cursor: pointer; font-family: inherit;
  background: var(--chip-bg); color: var(--text);
  font-size: 13px; font-weight: 600; padding: 10px 15px; border-radius: 999px;
}
.gz-btn.pri { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(249, 89, 1, 0.26); }
.gz-btn.sm { font-size: 12px; padding: 8px 13px; }
.gz-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.gz-btn:active { transform: scale(0.97); }

/* ---------- 仿写：拆解表 / 体检 ---------- */
.gz-decomp { display: flex; flex-direction: column; gap: 8px; }
.gz-drow { background: #fbfbfb; border-radius: 12px; padding: 11px 13px; }
.gz-drow-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; flex-wrap: wrap; }
.gz-dseg { font-size: 11px; font-weight: 700; color: #fff; background: var(--primary-light); padding: 2px 8px; border-radius: 999px; }
.gz-dfn { font-size: 13px; font-weight: 700; color: var(--text); }
.gz-dtxt { font-size: 12.5px; color: var(--text2); line-height: 1.7; }
.gz-dtxt b { color: var(--primary); font-weight: 600; }

.gz-formula {
  text-align: center; font-size: 14.5px; font-weight: 700; color: var(--primary);
  background: #fff8f3; border-radius: 13px; padding: 14px 12px; line-height: 1.7;
}

.gz-health { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.gz-hrow { font-size: 12.5px; color: var(--text2); }
.gz-hrow-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-weight: 600; color: var(--text); }
.gz-hbar { height: 6px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.gz-hbar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.gz-hrow em { display: block; font-style: normal; font-size: 12px; color: var(--text2); margin-top: 4px; line-height: 1.6; }

.gz-list { display: flex; flex-direction: column; gap: 7px; }
.gz-li { font-size: 13px; color: var(--text); line-height: 1.75; padding-left: 16px; position: relative; }
.gz-li::before { content: '·'; position: absolute; left: 4px; top: -1px; color: var(--primary); font-weight: 700; font-size: 18px; }
.gz-li b { color: var(--primary); }

/* ---------- 抓取回显 ---------- */
.gz-fetch {
  margin-top: 11px; background: #f7fbf7; border-radius: 13px; padding: 12px 13px;
  border-left: 3px solid #b7e0b7; font-size: 13px; color: var(--text); line-height: 1.7;
}
.gz-fetch b { font-weight: 700; }
.gz-fetch .gz-dimb { color: var(--text2); font-size: 12px; font-weight: 500; }
.gz-fetch.fail { background: #fffbeb; border-left-color: #f59e0b; color: #92400e; }

/* ---------- 空态 ---------- */
.gz-empty { text-align: center; padding: 26px 14px; color: var(--text2); font-size: 13px; line-height: 1.8; }
.gz-empty-ico { font-size: 30px; display: block; margin-bottom: 8px; opacity: 0.75; }

/* ⚠️ [hidden] 必须能盖过 display:flex/grid —— 本项目已踩过 7 批同类坑 */
.gz-drop[hidden], .gz-thumbs[hidden], .gz-adv[hidden], .gz-out[hidden],
.gz-prog[hidden], .gz-err[hidden], .gz-warn[hidden], .gz-thumb-busy[hidden],
.gz-res[hidden], .gz-fetch[hidden], .gz-imgslt[hidden], .gz-hero-glow[hidden],
.gz-hero-glow2[hidden], .gz-empty[hidden], .gz-notes[hidden] { display: none !important; }

@media (max-width: 420px) {
  .gz-hero-t { font-size: 20px; }
  .gz-p { font-size: 15px; }
}

/* ================================================================
   公众号爆文 v2（2026-09-20 · 开发员17号）
   起因：用户反馈「废话太多、让用户选择的太多、不能最终生成、等待没有视觉特
   效、生成后不能拖拽编辑」。
   ------------------------------------------------------------------
   这一节只做四件事：
     ① 主输入框变成整页主角（gz-ta--lg）
     ② 高级设置收进底部折叠区（gz-advbox / gz-adv-r / gz-adv-l / gz-adv-b）
     ③ 等待期给足反馈：大号阶段文案（gz-prog-big）+ 骨架屏（gz-shim）
     ④ 成稿可拖拽编辑（gz-blks / gz-blk / gz-blkgrip / gz-blkbody / gz-blktools）
   ⚠️ 类名全部新起 —— 这个文件被「公众号爆文」和「公众号仿写」两个子页共用，
      改存量规则会波及另一个功能。
   ================================================================ */

/* ---------- ① 主输入框：整页主角 ---------- */
.gz-ta--lg {
  min-height: 92px; font-size: 15px; line-height: 1.72;
  padding: 12px 13px; font-weight: 500;
}
.gz-ta--lg::placeholder { font-weight: 400; }

/* ---------- ② 高级设置（底部折叠）---------- */
.gz-advbox {
  margin: 18px 0 4px; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(249, 89, 1, 0.06);
}
.gz-advbox .gz-tog {
  display: block; width: 100%; text-align: left; padding: 2px 0;
  font-size: 13.5px; font-weight: 600;
}
.gz-adv-r { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gz-adv-r .gz-adv-l { flex: none; width: 58px; }
.gz-adv-r .gz-in { flex: 1; min-width: 0; }
.gz-adv-l { font-size: 12.5px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.gz-adv-b { margin-top: 15px; }
.gz-adv-b .gz-note { margin-top: 7px; }

/* ---------- ③ 等待反馈 ---------- */
.gz-prog-big {
  font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0.2px;
  min-height: 22px;
}
/* 阶段文案切换时不要硬闪：给一点淡入 */
.gz-prog-big { animation: gzFadeIn 0.32s ease both; }
/* ⚠️ 动画挂在元素本身，由 JS 每次换文案时"关掉→重排→打开"重触发（见 setTip）。
   挂到 ::after 或子元素上是重触发不了的。 */
@keyframes gzFadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* 三个跳动的点（表示"还在动"，但绝不假造百分比） */
.gz-prog-dots::after {
  content: ''; display: inline-block; width: 1.1em; text-align: left;
  animation: gzDots 1.2s steps(4, end) infinite;
}
@keyframes gzDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* 骨架屏：等第一个字到达之前，别让用户盯着一片空白 */
.gz-shim {
  height: 13px; border-radius: 7px; margin-bottom: 12px;
  background: linear-gradient(90deg, #f6efe9 25%, #fdf9f6 37%, #f6efe9 63%);
  background-size: 400% 100%;
  animation: gzShim 1.5s ease infinite;
}
.gz-shim--h2 { height: 17px; width: 46%; margin: 20px 0 12px; }
.gz-shim:last-child { margin-bottom: 0; }
@keyframes gzShim { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 流式打字光标（跟着最后一个字走） */
.gz-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px;
  background: var(--primary); vertical-align: -2px; border-radius: 2px;
  animation: gzBlink 1s step-end infinite;
}
@keyframes gzBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gz-caret { animation: none; }
  .gz-shim { animation: none; }
}

/* ---------- ④ 成稿拖拽编辑 ---------- */
.gz-blks { margin: 2px 0 4px; }

/* 成稿标题（一步出稿时模型自拟，单独一行展示） */
.gz-arttl {
  font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.45;
  padding: 2px 2px 12px; margin-bottom: 12px;
  border-bottom: 1px dashed #f2e4d8;
}

.gz-blk {
  position: relative; display: flex; align-items: flex-start; gap: 6px;
  padding: 7px 8px 7px 0; border-radius: 12px;
  border: 1px solid transparent; background: transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.gz-blk + .gz-blk { margin-top: 1px; }
.gz-blk.on, .gz-blk:hover { background: #fffaf6; border-color: #ffeadb; }

/* 被拖动的块：浮起来，并给一个明确的"正在被移动"观感 */
.gz-blk.dragging {
  z-index: 40; background: #fff; border-color: var(--primary);
  box-shadow: 0 14px 30px -12px rgba(249, 89, 1, 0.55);
  cursor: grabbing;
}
/* 落点提示（虚线框，告诉用户"松手会放到这里"） */
.gz-blkph {
  height: 0; border-top: 2px dashed var(--primary); border-radius: 2px;
  margin: 4px 6px; opacity: 0.85;
}

/* 拖拽手柄：视觉上小，触控区必须够大（手机上是唯一抓手） */
.gz-blkgrip {
  flex: none; width: 30px; padding: 8px 0; margin-top: 1px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: grab; touch-action: none; border-radius: 8px;
  color: #d9c8ba;
}
.gz-blkgrip:active { cursor: grabbing; background: #fdf3ec; color: var(--primary); }
.gz-blkgrip i {
  display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor;
}
.gz-blkbody { flex: 1; min-width: 0; }
/* 块内已有的排版类（gz-p / gz-h2 / gz-quote）在块里去掉外边距，由块本身控制间距 */
.gz-blk .gz-p { margin: 0; }
.gz-blk .gz-h2 { margin: 4px 0 2px; }
.gz-blk .gz-quote { margin: 2px 0; }
.gz-blk .gz-imgslt { margin: 2px 0 4px; }

/* 块的编辑态 */
.gz-blkedit {
  width: 100%; min-height: 68px; resize: vertical;
  border: 1.5px solid var(--primary); border-radius: 10px;
  padding: 9px 10px; font-family: inherit; font-size: 14px; line-height: 1.72;
  background: #fff; color: var(--text);
}
.gz-blkedit:focus { outline: none; box-shadow: 0 0 0 3px rgba(249, 89, 1, 0.14); }

/* 块工具条（改 / 删）*/
.gz-blktools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.gz-mini {
  border: 1px solid #ffdcc4; background: #fff7f1; color: var(--primary);
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.gz-mini:active { transform: scale(0.96); }
.gz-mini--danger { border-color: #ffd5d5; background: #fff5f5; color: #d64545; }
.gz-mini--go { border: none; background: var(--grad); color: #fff; }

/* 每块右上角的常驻小按钮（手机上 hover 不可用，所以按钮要始终可见） */
.gz-blkbtns { display: flex; gap: 5px; flex: none; padding-top: 2px; }
.gz-blkbtn {
  width: 30px; height: 30px; border: none; background: #f7f1ec; color: var(--text2);
  border-radius: 9px; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gz-blkbtn:active { background: #ffeadb; color: var(--primary); }
.gz-blkbtn--del:active { background: #ffe4e4; color: #d64545; }

/* 编辑提示（只在第一次成稿时出现一次，之后不再打扰） */
.gz-draghint {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text2); line-height: 1.6;
  background: #fffaf6; border: 1px dashed #f2ddc9; border-radius: 10px;
  padding: 8px 11px; margin-bottom: 10px;
}

/* 🔴 hidden 会被 display:flex/grid 盖掉 —— 本项目踩过多次的老坑。
   .gz-ideas 是 flex，所以 `ideas.hidden = true` 设了属性但**照样显示**
   （实测：用户开始打字后灵感 chips 不收起来，看着像没生效）。
   凡是"用 JS 设 hidden 来收起"的 flex/grid 容器，都要在这里补一条。 */
.gz-ideas[hidden],
.gz-thumbs[hidden],
.gz-notes[hidden],
.gz-draghint[hidden],
.gz-blktools[hidden],
.gz-adv-r[hidden] { display: none !important; }

/* ============================================================================
   成稿 v3：公众号版式（2026-09-20 · 开发员17号）
   ----------------------------------------------------------------------------
   用户诉求：参考同行的「排版能力 + 编辑能力 + 一键复制」，再学习再优化。

   这一段的两个设计决定：
   ① **纸**：成稿渲染成一张手机宽度的推文纸（白底、居中、大标题、眉题、
      信息行、首图、正文分节）。用户要的是"看着像最终效果"，
      所以纸的样式**不跟随 App 主题变量** —— 公众号正文本来就是白底黑字。
   ② **双态**：预览态干净无手柄；点「✎ 编辑」才出现手柄。
      手柄用绝对定位（top 居中在块的上边缘），**不占布局**——
      否则一进编辑态整篇文字就会往下掉，用户会觉得"排版被我弄乱了"。
   ⚠️ 类名统一 gzp- 前缀（已过 check-css-collisions.py，全局唯一）。
   ============================================================================ */

.gz-ops--sm { margin-top: 8px; }

/* 舞台：灰底衬托白纸，让"这是一篇推文"这件事一眼可见 */
.gzp-wrap {
  margin: 12px 0 14px;
  padding: 14px 8px;
  background: #f4f2ef;
  border-radius: 14px;
  overflow: hidden;
}

.gzp-paper {
  background: #fff;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 18px 26px;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(24, 20, 16, 0.08);
  color: #333;
  font-size: 16px;
  line-height: 1.9;
  box-sizing: border-box;
  transition: box-shadow 0.18s;
}
.gzp-paper.is-edit { box-shadow: 0 0 0 2px #ffd9bd, 0 6px 20px rgba(24, 20, 16, 0.12); }

/* 顶部账号行 —— 对齐公众号正文上方那条"原创 / 日期" */
.gzp-wxbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12px; color: #9a9288; }
.gzp-orig {
  color: #576b95; border: 1px solid #cfd8e8; border-radius: 3px;
  padding: 1px 5px; font-size: 11px; line-height: 1.4;
}
.gzp-date { color: #a8a196; }

/* 标题区 */
.gzp-head { margin-bottom: 6px; }
.gzp-kicker {
  text-align: center; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; color: #b45a3c; margin-bottom: 10px; line-height: 1.6;
}
.gzp-title {
  text-align: center; font-size: 25px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.5px; color: #141414; margin-bottom: 14px; word-break: break-word;
}
.gzp-sub { text-align: center; font-size: 15px; line-height: 1.7; color: #6b6b6b; margin-bottom: 16px; }
.gzp-meta {
  padding: 14px 4px; border-top: 1px solid #e8e3dc; border-bottom: 1px solid #e8e3dc;
  text-align: center; font-size: 13.5px; line-height: 2; color: #8a8378; margin-bottom: 24px;
}
.gzp-metaline--empty { color: #cfc7bb; font-size: 12.5px; }

/* 图位（首图与正文配图共用）*/
.gzp-herowrap { margin-bottom: 26px; }
.gzp-img { border-radius: 6px; overflow: hidden; }
.gzp-img img { width: 100%; display: block; border-radius: 6px; }
.gzp-cap { font-size: 12px; color: #a8a196; line-height: 1.7; margin-top: 7px; }
.gzp-imgrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
.gzp-imgi { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.gzp-imgt { font-size: 12.5px; line-height: 1.7; color: #8a8378; margin-bottom: 3px; word-break: break-word; }
.gzp-img:not(.done) {
  background: #f6f4f1; border: 1px dashed #d8d1c8;
  padding: 32px 14px; text-align: center;
}
.gzp-img.hero:not(.done) { padding: 50px 14px; }
.gzp-mini {
  border: 1px solid #f0d9c7; background: #fff; color: #a1512c;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.gzp-mini--go { border: none; background: var(--grad); color: #fff; }
.gzp-mini:disabled { opacity: 0.55; }
.gzp-mini:active { transform: scale(0.96); }

/* 正文块 */
.gzp-inner { padding-top: 2px; }
.gzp-paper.is-edit .gzp-inner { padding-top: 14px; }
.gzp-blk { position: relative; border-radius: 6px; }
.gzp-paper.is-edit .gzp-blk:hover { box-shadow: inset 0 0 0 1px #f2e4d6; }
.gzp-paper.is-edit .gzp-blk.on { box-shadow: inset 0 0 0 1.5px #ffd0ab; }
.gzp-blk.dragging { opacity: 0.9; z-index: 3; background: #fffdfb; box-shadow: 0 8px 22px rgba(24, 20, 16, 0.16); }

.gzp-p { margin: 0 0 18px; word-break: break-word; }
.gzp-p strong { font-weight: 700; color: #141414; }
.gzp-h2 {
  margin: 28px 0 14px; padding-left: 10px; border-left: 3px solid #c0613f;
  font-size: 18px; font-weight: 700; line-height: 1.5; color: #141414;
}
.gzp-quote {
  margin: 20px 0; padding: 14px 16px; background: #faf7f3;
  border-left: 3px solid #d9a24a; border-radius: 0 4px 4px 0;
  font-size: 15.5px; line-height: 1.9; color: #5a5148;
}
.gzp-ul { margin: 0 0 18px; }
.gzp-li { display: flex; gap: 8px; margin-bottom: 8px; font-size: 16px; line-height: 1.85; }
.gzp-dot {
  flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: #c0613f; margin-top: 12px;
}
.gzp-litxt { flex: 1; min-width: 0; word-break: break-word; }
.gzp-hr { margin: 26px 0; height: 0; border-top: 1px solid #eae5de; }

/* 文末互动 */
.gzp-foot { margin-top: 4px; }
.gzp-cta {
  margin-top: 26px; padding: 16px 18px; border: 1px dashed #ddd6cc;
  border-radius: 8px; font-size: 14.5px; line-height: 1.9; color: #6b6357;
}
.gzp-cta-s { font-size: 11.5px; color: #bdb4a8; margin-top: 6px; }

/* 块手柄 —— **只在编辑态出现**，绝对定位不占布局 */
.gzp-blkbar {
  display: none; position: absolute; left: -2px; right: -2px; top: 0;
  transform: translateY(-50%);
  align-items: center; justify-content: space-between;
  pointer-events: none; z-index: 4;
}
.gzp-paper.is-edit .gzp-blkbar { display: flex; }
.gzp-grip, .gzp-hbtn { pointer-events: auto; }
.gzp-grip {
  display: flex; align-items: center; gap: 2px; cursor: grab;
  background: #fff; border: 1px solid #eee2d6; border-radius: 999px;
  padding: 5px 8px; box-shadow: 0 1px 4px rgba(24, 20, 16, 0.1);
  touch-action: none;
}
.gzp-grip i { display: block; width: 3px; height: 3px; border-radius: 50%; background: #c9b6a4; }
.gzp-grip:active { cursor: grabbing; }
.gzp-hbtn {
  width: 28px; height: 28px; border: none; background: #fff;
  border: 1px solid #eee2d6; color: #8a7d6f; border-radius: 999px;
  font-size: 12px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(24, 20, 16, 0.1); margin-left: 5px;
}
.gzp-hbtn:active { background: #ffeadb; color: var(--primary); }
.gzp-hbtn--del:active { background: #ffe4e4; color: #d64545; }
.gzp-hbtn[data-armed="1"] { width: auto; padding: 0 9px; background: #fff1f0; color: #d64545; border-color: #ffd5d5; }

/* 就地编辑器（正文块 + 标题区字段共用观感） */
.gzp-edit, .gzp-fedit {
  width: 100%; box-sizing: border-box; resize: vertical;
  border: 1.5px solid var(--primary); border-radius: 8px;
  padding: 8px 10px; font-family: inherit; font-size: 15px; line-height: 1.8;
  background: #fff; color: #333;
}
.gzp-fedit { font-size: 14px; text-align: inherit; min-height: 38px; }
.gzp-title + .gzp-fedit, .gzp-kicker + .gzp-fedit { text-align: center; }
.gzp-edit:focus, .gzp-fedit:focus { outline: none; box-shadow: 0 0 0 3px rgba(249, 89, 1, 0.14); }

.gzp-tools { margin-top: 8px; }
.gzp-trow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.gzp-trow:last-child { margin-bottom: 0; }
.gzp-chip {
  border: 1px solid #eae2d8; background: #fff; color: #7d7266;
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.gzp-chip.on { border-color: transparent; background: var(--grad); color: #fff; }
.gzp-chip:active { transform: scale(0.96); }

/* 提示条 */
.gzp-tip {
  margin-top: 10px; font-size: 12px; line-height: 1.7; color: #8a8378;
  background: #fffaf6; border: 1px dashed #f2ddc9; border-radius: 10px; padding: 9px 12px;
}
.gzp-edit-hint {
  margin-top: 8px; font-size: 12px; line-height: 1.7; color: #a1512c;
  background: #fff5ec; border-radius: 10px; padding: 9px 12px;
}
.gzp-edit-hint[hidden] { display: none !important; }

/* 摘要 / 封面：这些是"填到别处"的字段，不参与正文，所以放在纸外面 */
.gzp-sides { margin-top: 4px; }
.gzp-side {
  background: #fff; border: 1px solid #f0eae2; border-radius: 12px;
  padding: 11px 13px; margin-bottom: 8px;
}
.gzp-sideh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gzp-sidet { font-size: 12.5px; font-weight: 700; color: #8a7d6f; }
.gzp-siden { font-size: 13px; line-height: 1.8; color: #4a443c; word-break: break-word; }
