/* ==========================================================================
   字帖生成器 · 布局与组件样式（v1.1.0）
   作用域：全部限定在 .zitie-app 内，不触碰主题页眉页脚
   ========================================================================== */

.zitie-app,
.zitie-app * { box-sizing: border-box; }

.zitie-app [hidden] { display: none !important; }

.zitie-app {
  --zt-panel-w: 340px;
  --zt-gap: 20px;
  --zt-h: calc(100vh - 180px);
  --zt-page-h: calc(var(--zt-h) - 120px);
  --zt-bg: #f5f5f2;
  --zt-card: #ffffff;
  --zt-line: #ebebe8;
  --zt-line-soft: #efe9dd;
  --zt-text: #24332c;
  --zt-muted: #788078;
  --zt-faint: #9a9a93;
  --zt-accent: #155b43;
  --zt-accent-soft: #eef5ed;
  --zt-ink: #24332c;
  --zt-gold: #b88b42;
  --zt-preview-bg: #f7f7f5;
  --zt-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;

  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 0 28px;
  color: var(--zt-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* ==================== 面包屑 ==================== */
/* 页眉与内容之间的分隔线已按需求去掉 */
.zitie-app::before { display: none; }

.zitie-app.is-fullscreen::before { display: none; }

.zitie-app .zt-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--zt-faint);
  line-height: 1.6;
}

.zitie-app .zt-crumb a {
  color: var(--zt-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.zitie-app .zt-crumb a:hover { color: var(--zt-accent); }

.zitie-app .zt-crumb .sep { color: #c9c4bc; }

.zitie-app .zt-crumb [aria-current="page"] { color: var(--zt-text); }

/* ==================== 页面标题 ==================== */
.zitie-app .zt-hero {
  margin: 4px 0 12px;
}

.zitie-app .zt-hero-title {
  margin: 0;
  font-family: var(--zt-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--zt-text);
}

.zitie-app .zt-hero-desc {
  margin: 8px 0 0;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--zt-muted);
}

/* ==================== 同类模板切换条（单行文字项，参考站样式） ==================== */
.zitie-app .zt-gallery {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px;
  margin: 0 auto 4px;
  scrollbar-width: thin;
  scrollbar-color: #ded7cd transparent;
  -webkit-overflow-scrolling: touch;
}

.zitie-app .zt-gallery::-webkit-scrollbar { height: 5px; }

.zitie-app .zt-gallery::-webkit-scrollbar-track { background: transparent; }

.zitie-app .zt-gallery::-webkit-scrollbar-thumb {
  background: #ded7cd;
  border-radius: 999px;
}

.zitie-app .zt-g-tpl {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.zitie-app .zt-g-ico {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #b8b2a6;
  transition: color 0.15s ease;
}

.zitie-app .zt-g-name {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: #788078;
  transition: color 0.15s ease;
}

.zitie-app .zt-g-tpl:hover .zt-g-name { color: #155b43; }
.zitie-app .zt-g-tpl:hover .zt-g-ico { color: #155b43; }

.zitie-app .zt-g-tpl.is-active {
  background: #eef5ed;
}

.zitie-app .zt-g-tpl.is-active .zt-g-name {
  color: #155b43;
  font-weight: 600;
}

.zitie-app .zt-g-tpl.is-active .zt-g-ico { color: #b88b42; }

/* 目录页缩略图：真实 canvas 渲染，CSS 图案作为加载中/失败时的兜底 */
.zt-index-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  flex: 0 0 auto;
  background-color: #fff;
  border: 1px solid #ece7dc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(36, 51, 44, 0.10), 0 1px 4px rgba(36, 51, 44, 0.05);
  background-image:
    linear-gradient(to right, transparent calc(50% - 0.5px), #e9b3ad calc(50% - 0.5px), #e9b3ad calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), #e9b3ad calc(50% - 0.5px), #e9b3ad calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.zt-index-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

/* 首页专属：缩略图纸面用暖白，与首页米色背景协调 */
.zt-home .zt-index-thumb { background-color: #fffefb; }
.zt-home .zt-index-thumb canvas { background: #fffefb; }

.zt-index-thumb.kind-grid,
.zt-index-thumb.kind-essay {
  background-image:
    repeating-linear-gradient(to right, transparent 0 13px, #e9b3ad 13px 14px),
    repeating-linear-gradient(to bottom, transparent 0 13px, #e9b3ad 13px 14px);
}

.zt-index-thumb.kind-horizontal,
.zt-index-thumb.kind-math {
  background-image: repeating-linear-gradient(to bottom, transparent 0 7px, #d9d4cc 7px 8px);
}

.zt-index-thumb.kind-guwen,
.zt-index-thumb.kind-pinyin-v {
  background-image: repeating-linear-gradient(to right, transparent 0 9px, #d9d4cc 9px 10px);
}

.zt-index-thumb.kind-english {
  background-image: repeating-linear-gradient(to bottom, transparent 0 11px, #b9cfc4 11px 12px);
}

.zt-index-thumb.kind-pinyin {
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 9px, #d9d4cc 9px 10px),
    linear-gradient(to right, transparent calc(50% - 0.5px), #e9b3ad calc(50% - 0.5px), #e9b3ad calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

/* 缩略图悬浮「在线编辑」：暗色遮罩 + 居中胶囊按钮 */
.zt-index-thumb .zt-thumb-ov {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 42, 36, 0.40);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

/* 仅鼠标设备显示悬浮遮罩；手机/平板点按不触发 */
@media (hover: hover) and (pointer: fine) {
  .zt-index-card:hover .zt-thumb-ov { opacity: 1; }
}
.zt-index-card:focus-visible .zt-thumb-ov { opacity: 1; }

.zt-thumb-ov-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  border-radius: 12px;
  background: linear-gradient(160deg, #4bb386 0%, #2f9465 100%);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(21, 91, 67, 0.40);
  pointer-events: auto;
  transition: background 0.15s ease;
}

/* 鼠标移到按钮上：颜色再亮一档 */
.zt-index-card .zt-thumb-ov-btn:hover {
  background: linear-gradient(160deg, #5fc395 0%, #3aa373 100%);
}

.zt-thumb-ov-btn svg { display: block; width: 17px; height: 17px; }

.zt-thumb-ov-arrow { font-size: 16px; line-height: 1; }

/* ==================== 目录页卡片（独立于 .zitie-app，样式不外泄） ==================== */
.zt-index {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 20px 28px;
  box-sizing: border-box;
}

.zt-index-head { margin: 0 0 22px; }

.zt-index-title {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #24332c;
}

.zt-index-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #788078;
}

.zt-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 20px;
  margin: 8px 0 0;
}

/* 无外框卡片：纸面缩略图 + 投影，下方仅名称（参考站样式） */
.zt-index-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .zt-index-card:hover {
    box-shadow: none;
    transform: translateY(-2px);
  }

  .zt-index-card:hover .zt-index-thumb {
    box-shadow: 0 10px 26px rgba(36, 51, 44, 0.13), 0 2px 6px rgba(36, 51, 44, 0.07);
  }
}

.zt-index-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 10px 2px 0;
  text-align: center;
}

.zt-index-name {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #3c3f3b;
  line-height: 1.4;
}

.zt-index-desc { display: none; }

/* ==================== 工具下方 SEO 正文（限宽、与工具同页） ==================== */
.zitie-seo {
  max-width: 860px;
  margin: 56px auto 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #3a3d38;
}

.zitie-seo h2 {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 21px;
  font-weight: 600;
  color: #24332c;
  margin: 34px 0 10px;
}

.zitie-seo h2:first-child { margin-top: 0; }

.zitie-seo h3 {
  font-size: 16px;
  font-weight: 600;
  color: #24332c;
  margin: 22px 0 8px;
}

.zitie-seo p { margin: 0 0 14px; }
.zitie-seo ul { margin: 0 0 16px; padding-left: 1.25em; }
.zitie-seo li { margin-bottom: 6px; }
.zitie-seo a { color: #24785a; text-decoration: none; }
.zitie-seo a:hover { text-decoration: underline; }

/* ==================== 工具下方说明卡（图 + 文） ==================== */
.zitie-article {
  max-width: 1240px;
  margin: 22px auto 50px;
  padding: 26px;
  background: #fff;
  border: 1px solid #ebebe8;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(36, 51, 44, 0.04), 0 16px 40px rgba(36, 51, 44, 0.05);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}

.zitie-article-media {
  position: sticky;
  top: 90px;
  grid-column: 2;
  grid-row: 1;
}

.zitie-article-body {
  grid-column: 1;
  grid-row: 1;
}

.zitie-article-media canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #efeae3;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(36, 51, 44, 0.06);
}

.zitie-article-media-name {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #9a9a93;
  text-align: center;
}

.zitie-article-body { min-width: 0; }

.zitie-article-body .zitie-seo {
  max-width: none;
  margin: 0;
}

.zitie-article .faq-item {
  padding: 12px 0;
  border-top: 1px solid #f2eee8;
}

.zitie-article .faq-item:first-of-type { border-top: 0; padding-top: 4px; }

.zitie-article .faq-q {
  font-size: 14px;
  font-weight: 600;
  color: #24332c;
  margin: 0 0 4px;
}

.zitie-article .faq-a {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #4a4d47;
}

@media (max-width: 900px) {
  .zitie-article {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    margin-top: 24px;
  }
  .zitie-article-media {
    position: static;
    grid-column: 1;
    grid-row: auto;
    max-width: 200px;
  }
  .zitie-article-body {
    grid-column: 1;
    grid-row: auto;
  }
}



.zitie-app .zt-shell {
  display: flex;
  align-items: flex-start;
  gap: var(--zt-gap);
  height: auto;
  min-height: 0;
  max-width: 1240px;
  margin: 0 auto;
}

/* 桌面端：预览卡随 A4 画布撑高，左侧设置面板吸顶 */
@media (min-width: 901px) {
  .zitie-app .zt-shell { min-height: 0; }
  .zitie-app .side-col {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: var(--zt-side-h, calc(100vh - 160px));
  }
}

/* 左侧列：设置面板 + 导出/打印按钮（与原型一致：设置左、预览右） */
.zitie-app .side-col {
  flex: 0 0 var(--zt-panel-w);
  width: var(--zt-panel-w);
  max-width: var(--zt-panel-w);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* 顶部区块统一居中，与工作区同宽 */
.zitie-app > .zt-crumb {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* 标题 + 缩略图整体收进一张卡，与下方工作区同宽 */
.zitie-app .zt-head-card {
  max-width: 1240px;
  margin: 0 auto 18px;
  padding: 12px 18px 4px;
  background: linear-gradient(180deg, #faf7ee 0%, #ffffff 82%);
  border: 1px solid #ebebe8;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(36, 51, 44, 0.04), 0 16px 40px rgba(36, 51, 44, 0.05);
}

.zitie-app .zt-head-card .zt-hero { margin: 0 0 8px; }

.zitie-app .zt-head-card .zt-gallery {
  margin: 0;
  padding: 2px 0 8px;
}

/* ==================== 右侧控制面板 ==================== */
.zitie-app .panel {
  order: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--zt-card);
  border: 1px solid var(--zt-line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(36, 51, 44, 0.04), 0 16px 40px rgba(36, 51, 44, 0.05);
  overflow: hidden;
}

.zitie-app .panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--zt-line-soft);
  background: #fff;
}

.zitie-app .panel-head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.zitie-app .panel-kicker,
.zitie-app .preview-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--zt-accent);
  text-transform: uppercase;
}

.zitie-app .panel-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--zt-muted);
  background: #fff;
  border: 1px solid var(--zt-line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.zitie-app .panel-toggle svg { transition: transform 0.2s ease; }

.zitie-app .panel-title {
  margin: 0;
  font-family: var(--zt-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--zt-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.zitie-app .panel-badge {
  max-width: 60%;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--zt-muted);
  background: #f0f2f5;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zitie-app .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 4px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
}

/* 顶部字段：与下方区块一致，用分隔线而不是卡片 */
.zitie-app .top-fields {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--zt-line-soft);
}

/* ==================== 设置分组（去卡片化） ==================== */
.zitie-app .panel-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zitie-app .card {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--zt-line-soft);
  overflow: visible;
}

.zitie-app .card:last-child { border-bottom: 0; }

.zitie-app .card-title {
  display: flex;
  align-items: center;
  padding: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--zt-text);
  background: transparent;
  border-bottom: 0;
}

/* 步骤序号：与原型一致的绿色小方块（含顶部「内容设置」） */
.zitie-app .panel-body { counter-reset: zt-step; }

.zitie-app .top-fields { counter-increment: zt-step; }

.zitie-app .panel-fields > .card { counter-increment: zt-step; }

.zitie-app .top-fields > .card-title::before,
.zitie-app .panel-fields > .card > .card-title::before {
  content: counter(zt-step);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 7px;
  background: #edf3eb;
  color: var(--zt-accent);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.zitie-app .card-body {
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== 表单控件 ==================== */
.zitie-app .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zitie-app .field > label {
  font-size: 13px;
  color: var(--zt-muted);
}

.zitie-app .field input[type="text"],
.zitie-app .field textarea,
.zitie-app .field select {
  width: 100%;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--zt-text);
  border: 1px solid #dddcd3;
  border-radius: 8px;
  background: #fff;
  outline: none;
  font-family: inherit;
}

.zitie-app .field input[type="text"]:focus,
.zitie-app .field textarea:focus,
.zitie-app .field select:focus {
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(47, 158, 109, 0.12);
}

.zitie-app .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.zitie-app .row > label {
  font-size: 13px;
  color: var(--zt-muted);
  white-space: nowrap;
}

.zitie-app .row select {
  flex: 1;
  max-width: 170px;
  padding: 7px 9px;
  font-size: 13px;
  border: 1px solid #dddcd3;
  border-radius: 8px;
  background: #fff;
  outline: none;
  color: var(--zt-text);
}

.zitie-app .row select:focus { border-color: var(--zt-accent); }

/* 颜色选择按钮：色块 + 色值，点击展开站点内色板 */
.zitie-app .zt-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px 0 7px;
  background: #fff;
  border: 1px solid #dddcd3;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--zt-muted);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.zitie-app .zt-color:hover { border-color: var(--zt-accent); }

.zitie-app .zt-color-chip {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(36, 51, 44, 0.14);
}

.zitie-app .zt-color-hex {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* 色板浮层 */
.zitie-app .zt-color-pop {
  position: fixed;
  z-index: 99998;
  width: 288px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--zt-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(36, 51, 44, 0.18);
  box-sizing: border-box;
}

.zitie-app .zt-color-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zt-text);
}

.zitie-app .zt-color-pop-prev {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(36, 51, 44, 0.12);
}

.zitie-app .zt-color-pop-prev i { display: block; width: 100%; height: 100%; }

/* 色块：横向为饱和度，纵向为明度，可自由拖动取色 */
.zitie-app .zt-sv {
  position: relative;
  height: 132px;
  border-radius: 9px;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
  background-color: var(--zt-hue-color, #ff0000);
  background-image:
    linear-gradient(to top, #000000, rgba(0, 0, 0, 0)),
    linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 1px rgba(36, 51, 44, 0.12);
}

.zitie-app .zt-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* 色相条 */
.zitie-app .zt-hue {
  position: relative;
  height: 14px;
  margin-top: 12px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
  background: linear-gradient(to right,
    #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%,
    #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  box-shadow: inset 0 0 0 1px rgba(36, 51, 44, 0.12);
}

.zitie-app .zt-hue-cursor {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.zitie-app .zt-color-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.zitie-app .zt-color-custom label { flex: 0 0 auto; font-size: 12.5px; color: var(--zt-muted); }

.zitie-app .zt-color-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--zt-text);
  background: #fff;
  border: 1px solid #dddcd3;
  border-radius: 8px;
  outline: none;
}

.zitie-app .zt-color-input:focus { border-color: var(--zt-accent); }

.zitie-app .zt-color-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--zt-line-soft);
}

.zitie-app .zt-color-actions button {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

.zitie-app .zt-color-cancel {
  color: var(--zt-muted);
  background: #fff;
  border: 1px solid #dddcd3;
}

.zitie-app .zt-color-ok {
  color: #fff;
  background: var(--zt-accent);
  border: 1px solid var(--zt-accent);
}

@media (max-width: 900px) {
  .zitie-app .zt-color-pop.is-sheet {
    left: 12px;
    right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: auto;
    border-radius: 16px;
  }
  .zitie-app .zt-sv { height: 150px; }
}

.zitie-app .row input[type="number"] {
  width: 72px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--zt-text);
  border: 1px solid #dddcd3;
  border-radius: 8px;
  outline: none;
  background: #fff;
}

.zitie-app .row input[type="number"]:focus { border-color: var(--zt-accent); }

.zitie-app .setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zitie-app .setting-head label { font-size: 13px; color: var(--zt-muted); }

.zitie-app .setting-head .val {
  font-size: 12px;
  color: var(--zt-accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 滑杆：细轨道 + 小圆点，覆盖主题默认 input 样式 */
.zitie-app input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}

.zitie-app input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--zt-accent) 0%,
    var(--zt-accent) var(--zt-pct, 0%),
    #eae5de var(--zt-pct, 0%),
    #eae5de 100%
  );
}

.zitie-app input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--zt-accent);
  box-shadow: 0 1px 3px rgba(36, 51, 44, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zitie-app input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 2px 6px rgba(36, 51, 44, 0.22);
}

.zitie-app input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #eae5de;
}

.zitie-app input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--zt-accent);
}

.zitie-app input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--zt-accent);
  box-shadow: 0 1px 3px rgba(36, 51, 44, 0.18);
}

/* 主题有时会给 range 套一层输入框外观，这里强制清除 */
.zitie-app .field input[type="range"],
.zitie-app .setting input[type="range"],
.zitie-app .row input[type="range"] {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: 18px !important;
}


/* ==================== 页边距折叠面板 ==================== */
.zitie-app .margin-group {
  border: 1px solid #eff1f4;
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
}

.zitie-app .margin-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}

.zitie-app .margin-head:hover { background: #f3f6f4; }

.zitie-app .margin-title { font-size: 13px; color: var(--zt-text); flex-shrink: 0; }

.zitie-app .margin-summary {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: var(--zt-accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.zitie-app .margin-arrow {
  font-size: 12px;
  color: #9aa1ab;
  transition: transform 0.25s ease;
}

.zitie-app .margin-group.open .margin-arrow { transform: rotate(180deg); }

.zitie-app .margin-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 12px;
}

.zitie-app .margin-group.open .margin-body {
  max-height: 300px;
  padding: 4px 12px 10px;
}

.zitie-app .margin-body .setting { padding: 4px 0; }

/* ==================== 方格类型图标选择 ==================== */
.zitie-app .grid-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}

.zitie-app .grid-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 2px;
  background: #fff;
  border: 1px solid #dddcd3;
  border-radius: 9px;
  cursor: pointer;
  color: #7c838c;
  transition: all 0.18s ease;
}

.zitie-app .grid-type-btn svg { width: 32px; height: 32px; display: block; }
.zitie-app .grid-type-btn span { font-size: 11px; color: var(--zt-muted); line-height: 1; }
.zitie-app .grid-type-btn:hover { border-color: #a8d8b9; }

.zitie-app .grid-type-btn.active {
  border-color: #66cdaa;
  background: var(--zt-accent-soft);
  color: var(--zt-accent);
  box-shadow: 0 0 0 2px rgba(102, 205, 170, 0.16);
}

.zitie-app .grid-type-btn.active span { color: var(--zt-accent); font-weight: 600; }

/* ==================== 开关 ==================== */
.zitie-app .switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #d0d3d9;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  margin: 0;
}

.zitie-app .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: left 0.2s;
}

.zitie-app .switch:checked { background: var(--zt-accent); }
.zitie-app .switch:checked::after { left: 20px; }

/* ==================== 文件上传 ==================== */
.zitie-app .upload {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--zt-accent);
  border: 1px dashed #7cbf7c;
  border-radius: 8px;
  cursor: pointer;
  background: #f4faf4;
}

.zitie-app .upload:hover { background: #e8f4e8; }
.zitie-app input[type="file"] { display: none; }

.zitie-app .file-name {
  font-size: 12px;
  color: #9aa1ab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 内容预览框 ==================== */
.zitie-app .content-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--zt-text);
  border: 1px solid #dddcd3;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  overflow: hidden;
  word-break: break-all;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zitie-app .content-preview:hover {
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(47, 158, 109, 0.1);
}

/* ==================== 标题 / 信息栏 ==================== */
.zitie-app .title-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
}

.zitie-app .title-toggle-row > label { font-size: 13px; color: var(--zt-muted); }
.zitie-app .title-input { margin-top: 8px; }
.zitie-app .info-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.zitie-app .sub-block { display: flex; flex-direction: column; gap: 10px; }

.zitie-app .sub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #eff1f4;
}

.zitie-app .sub-title-text { font-size: 13px; font-weight: 600; color: var(--zt-text); }

.zitie-app #bg-settings-container > *,
.zitie-app #watermark-settings-container > * { margin-bottom: 14px; }

.zitie-app #bg-settings-container > *:last-child,
.zitie-app #watermark-settings-container > *:last-child { margin-bottom: 0; }

.zitie-app #watermark-settings-container .setting-head { margin-bottom: 4px; }

/* 对齐按钮组 */
.zitie-app .align-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zitie-app .align-label { font-size: 12px; color: #9aa1ab; }
.zitie-app .align-btns { display: flex; gap: 6px; }

.zitie-app .align-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  color: #555;
  background: #f2f3f5;
  border: 1px solid #e4e6ea;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.zitie-app .align-btn:hover { background: #e9f6ef; }

.zitie-app .align-btn.active {
  background: #66cdaa;
  border-color: #66cdaa;
  color: #fff;
}

.zitie-app #watermark-settings-container input[type="color"] {
  width: 46px;
  height: 30px;
  padding: 0;
  border: 1px solid #dddcd3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.zitie-app .sub-input {
  width: 100%;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--zt-text);
  font-family: inherit;
  border: 1px solid #dddcd3;
  border-radius: 8px;
  background: #fff;
  outline: none;
}

.zitie-app .sub-input:focus {
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(47, 158, 109, 0.12);
}

.zitie-app .info-chip {
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #666;
  background: #eef0f2;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.zitie-app .info-chip:hover { background: #e3e8e5; }
.zitie-app .info-chip.active { background: #66cdaa; color: #fff; }

/* ==================== 左侧预览 ==================== */
.zitie-app .preview-col {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zitie-app .preview-card {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--zt-card);
  border: 1px solid var(--zt-line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(36, 51, 44, 0.04), 0 16px 40px rgba(36, 51, 44, 0.05);
  overflow: hidden;
}

.zitie-app .preview-head {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--zt-line-soft);
  background: #ffffff;
}

.zitie-app .preview-title {
  font-family: var(--zt-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--zt-text);
  letter-spacing: 0.02em;
}

.zitie-app .preview-meta {
  font-size: 12px;
  color: var(--zt-faint);
  white-space: nowrap;
}

/* 居中的「放大预览」胶囊 */
.zitie-app .preview-zoom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--zt-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--zt-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.zitie-app .preview-zoom:hover {
  color: var(--zt-accent);
  border-color: #e3cdc9;
}

.zitie-app .preview {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  overscroll-behavior: contain;
  padding: 12px;
  background: var(--zt-preview-bg);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.zitie-app .preview.is-multi {
  overflow-y: auto;
  max-height: var(--zt-multi-h, 900px);
}

/* 全屏时始终在内部滚动 */
.zitie-app.is-fullscreen .preview-col {
  height: 100%;
}
.zitie-app.is-fullscreen .preview-card {
  flex: 1 1 auto;
  min-height: 0;
}
.zitie-app.is-fullscreen .preview {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  max-height: none;
}

.zitie-app .pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.zitie-app .pages canvas {
  display: block;
  width: min(720px, 100%);
  height: auto;
  max-width: 100%;
  max-height: none;
  background: #fff;
  box-shadow: 0 2px 6px rgba(36, 51, 44, 0.06), 0 18px 42px rgba(36, 51, 44, 0.1);
  border-radius: 2px;
}

/* 预览操作按钮（导出 / 打印）——桌面端位于预览工具栏右侧 */
.zitie-app .action-row {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (min-width: 901px) {
  /* 导出 / 打印：放在左侧设置栏底部，两个按钮平分宽度 */
  .zitie-app .side-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
  }
  .zitie-app .side-col .side-actions button {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
  }
}

/* 手机端由底部操作条负责，侧栏按钮隐藏 */
@media (max-width: 900px) {
  .zitie-app .side-actions { display: none; }
}

.zitie-app .action-row button {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.06s ease;
}

.zitie-app .action-row button:active { transform: translateY(1px); }

.zitie-app #btn-export {
  color: #fff;
  background: var(--zt-accent);
  border: 1px solid var(--zt-accent);
}
.zitie-app #btn-export:hover { background: #104b36; border-color: #104b36; }

.zitie-app #btn-print {
  color: var(--zt-ink);
  background: #fff;
  border: 1px solid var(--zt-line);
}
.zitie-app #btn-print:hover { border-color: #cfc8bf; background: #fbf8f4; }

/* ==================== 全屏大图查看器 ==================== */
/* 查看器头部与工具条：仅全屏显示 */
.zitie-app .viewer-bar,
.zitie-app .viewer-tools { display: none; }

.zitie-app.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: rgba(26, 32, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  --zt-h: calc(min(86vh, 900px) - 56px);
}

/* 放大预览不是整页铺满，而是一个居中的大弹窗 */
.zitie-app.is-fullscreen .zt-shell {
  display: block;
  width: min(1160px, 92vw);
  height: min(86vh, 900px);
  min-height: 0 !important;
  padding: 18px 22px 14px;
  background: #ffffff;
  border: 1px solid #ebebe8;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(18, 26, 22, 0.38);
  overflow: hidden;
}

/* 全屏时隐藏页头信息与设置面板 */
.zitie-app.is-fullscreen .zt-crumb,
.zitie-app.is-fullscreen .zt-head-card,
.zitie-app.is-fullscreen .side-col { display: none !important; }

.zitie-app.is-fullscreen .preview-col {
  width: 100%;
  height: 100%;
  gap: 0;
}

.zitie-app.is-fullscreen .viewer-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 10px;
}

.zitie-app .viewer-title {
  margin: 0;
  font-family: var(--zt-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--zt-text);
}

.zitie-app .viewer-desc {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--zt-muted);
}

.zitie-app .viewer-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--zt-muted);
  background: #fff;
  border: 1px solid var(--zt-line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.zitie-app .viewer-close:hover { color: var(--zt-accent); border-color: #e3cdc9; }

.zitie-app.is-fullscreen .viewer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 14px;
}

.zitie-app .viewer-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--zt-text);
  background: #fff;
  border: 1px solid var(--zt-line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.zitie-app .viewer-zoom-btn:hover { color: var(--zt-accent); border-color: #e3cdc9; }

.zitie-app .viewer-zoom-val {
  min-width: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--zt-text);
}

.zitie-app .viewer-fit {
  height: 38px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 13px;
  color: var(--zt-text);
  background: #fff;
  border: 1px solid var(--zt-line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.zitie-app .viewer-fit:hover { color: var(--zt-accent); border-color: #e3cdc9; }

.zitie-app.is-fullscreen .preview-card {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.zitie-app.is-fullscreen .preview-head { display: none; }

.zitie-app.is-fullscreen .preview {
  flex: 1 1 auto;
  display: block;
  height: auto;
  max-height: none;
  padding: 6px 8px 20px;
  overflow: auto;
  background: #f5f5f2;
}

.zitie-app.is-fullscreen .pages {
  width: max-content;
  margin: 0 auto;
}

.zitie-app.is-fullscreen .pages canvas {
  width: calc(720px * var(--zt-zoom, 1));
  max-width: none;
  box-shadow: 0 8px 28px rgba(36, 51, 44, 0.12);
}

body.zitie-lock { overflow: hidden; }

/* ==================== 模态框 ==================== */
.zitie-app .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.zitie-app .modal-overlay.show { display: flex; }
.zitie-app.is-fullscreen .modal-overlay { position: fixed; }

.zitie-app .modal {
  width: 600px;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zitie-app .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}

.zitie-app .modal-header .title {
  font-size: 17px;
  font-weight: 600;
  color: var(--zt-text);
}

.zitie-app .modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #9aa1ab;
  padding: 0 4px;
}

.zitie-app .modal-close:hover { color: var(--zt-text); }

.zitie-app .modal-hint {
  padding: 8px 22px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #9aa1ab;
}

.zitie-app .modal-body { padding: 0 22px; }

.zitie-app .modal-body textarea {
  width: 100%;
  height: 300px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--zt-text);
  border: 1px solid #dddcd3;
  border-radius: 10px;
  resize: vertical;
  outline: none;
  font-family: inherit;
  background: #fff;
}

.zitie-app .modal-body textarea:focus {
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(47, 158, 109, 0.12);
}

.zitie-app .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
}

.zitie-app .btn-cancel {
  padding: 9px 18px;
  font-size: 14px;
  background: #fff;
  color: #666;
  border: 1px solid #dddcd3;
  border-radius: 9px;
  cursor: pointer;
}

.zitie-app .btn-cancel:hover { background: #f1f3ee; }

.zitie-app .btn-confirm {
  padding: 9px 18px;
  font-size: 14px;
  background: #23262b;
  color: #fff;
  border: none;
  border-radius: 9px;
  cursor: pointer;
}

.zitie-app .btn-confirm:hover { background: #34433a; }

/* ==================== 强调色统一（v1.1） ==================== */
.zitie-app .switch:checked { background: var(--zt-ink); }

.zitie-app .grid-type-btn:hover { border-color: #dcc6c2; }

.zitie-app .grid-type-btn.active {
  border-color: var(--zt-accent);
  background: var(--zt-accent-soft);
  color: var(--zt-accent);
  box-shadow: 0 0 0 2px rgba(21, 91, 67, 0.14);
}

.zitie-app .grid-type-btn.active span { color: var(--zt-accent); }

.zitie-app .info-chip.active,
.zitie-app .align-btn.active {
  background: var(--zt-ink);
  border-color: var(--zt-ink);
  color: #fff;
}

.zitie-app .upload {
  color: var(--zt-accent);
  border-color: #dcc6c2;
  background: #fdf8f6;
}

.zitie-app .upload:hover { background: #fbeeea; }

.zitie-app .field input[type="text"]:focus,
.zitie-app .field textarea:focus,
.zitie-app .field select:focus,
.zitie-app .sub-input:focus,
.zitie-app .modal-body textarea:focus {
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(21, 91, 67, 0.14);
}

.zitie-app .content-preview:hover {
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(21, 91, 67, 0.12);
}

.zitie-app .card { box-shadow: none; }
.zitie-app .card-title { background: #fdfcfa; border-bottom-color: var(--zt-line-soft); }
.zitie-app .preview-fs:hover { color: var(--zt-accent); border-color: #e3cdc9; background: #fdf8f6; }

/* 手机端底部 Tab 栏与预览头按钮：桌面默认隐藏 */
.zitie-app .m-tabs,
.zitie-app .m-head-actions,
.zitie-app .m-zoom,
.zitie-app .m-header,
.zitie-app .m-page-nav { display: none; }

/* ==================== 响应式 ==================== */
/* 平板横屏 / 小笔记本：收窄面板 */
@media (max-width: 1180px) {
  .zitie-app { --zt-panel-w: clamp(300px, 30vw, 360px); --zt-gap: 14px; }
  .zitie-app .panel-body { padding: 12px; }
  .zitie-app .preview { padding: 14px; }
}

/* 平板竖屏与手机：预览在上，设置为底部抽屉 */
@media (max-width: 900px) {
  .zitie-app {
    --zt-page-h: calc((100vw - 44px) * 1.414);
    padding: 0 0 calc(84px + env(safe-area-inset-bottom));
  }

  /* App 式头部：返回 / 当前标题 / 菜单 */
  .zitie-app .m-header {
    display: flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 55;
    height: 48px;
    margin: 0 0 10px;
    padding: 0 6px;
    background: rgba(255, 253, 248, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--zt-line);
  }
  .zitie-app .m-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    padding: 0 4px;
    font-size: 14px;
    color: var(--zt-accent);
    text-decoration: none;
  }
  .zitie-app .m-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--zt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zitie-app .m-menu-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--zt-text);
    background: transparent;
    border: 0;
    border-radius: 8px;
  }
  .zitie-app .m-menu {
    position: absolute;
    top: 46px;
    right: 8px;
    min-width: 132px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--zt-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(36, 51, 44, 0.14);
    z-index: 56;
  }
  .zitie-app .m-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--zt-text);
    text-decoration: none;
    border-radius: 8px;
  }
  .zitie-app .m-menu a:hover { background: #f7f3ec; }

  /* 手机端隐藏站点页眉与页面标题卡，由 App 头部替代 */
  body.zt-m-app #masthead,
  body.zt-m-app .site-header { display: none !important; }
  body.zt-m-app { overflow-x: hidden; }
  .zitie-app .zt-crumb,
  .zitie-app .zt-head-card { display: none; }
  .zitie-app::before { display: none; }
  /* 铺满视口后给内容留出左右边距；顶部与底部留出等量间距（头部自带 10px 下边距） */
  .zitie-app .zt-shell { padding: 10px 12px 0; }

  .zitie-app .zt-shell {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  /* 手机上取消右侧列的包裹，设置抽屉与 Tab 栏各归其位 */
  .zitie-app .side-col { display: contents; }
  .zitie-app .preview-col {
    order: 1;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
  }
  .zitie-app .preview { padding: 10px; overflow-x: auto; }
  .zitie-app .preview-card { min-height: 0; }
  .zitie-app .preview .pages { width: 100%; align-items: flex-start; }
  .zitie-app .preview .pages canvas {
    width: calc(100% * var(--zt-mzoom, 1));
    max-width: none;
    max-height: none;
    height: auto;
  }

  /* 预览头：页数 / 缩放 / 导出打印 */
  .zitie-app .preview-head {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .zitie-app .preview-title { display: none; }
  .zitie-app .preview-meta { display: none; }
  /* 手机端直接展示预览，不再单独放大 */
  .zitie-app .preview-zoom { display: none; }
  /* 页码切换：‹ 1/1 › */
  .zitie-app .m-page-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    padding: 2px;
    background: #f4f0e5;
    border: 1px solid var(--zt-line);
    border-radius: 10px;
  }
  .zitie-app .m-page-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--zt-text);
    background: transparent;
    border: 0;
    border-radius: 7px;
  }
  .zitie-app .m-page-nav button:disabled { opacity: 0.3; }
  .zitie-app .m-page-nav span {
    min-width: 34px;
    text-align: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--zt-text);
  }
  /* 预览缩放：− 100% ＋ */
  .zitie-app .m-zoom {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    padding: 2px;
    background: #f4f0e5;
    border: 1px solid var(--zt-line);
    border-radius: 10px;
  }
  .zitie-app .m-zoom button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--zt-text);
    background: transparent;
    border: 0;
    border-radius: 7px;
  }
  .zitie-app .m-zoom span {
    min-width: 38px;
    text-align: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--zt-text);
  }
  .zitie-app .m-head-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .zitie-app .m-action {
    height: 30px;
    padding: 0 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--zt-ink);
    background: #fff;
    border: 1px solid var(--zt-line);
    border-radius: 8px;
    white-space: nowrap;
  }
  .zitie-app .m-action--primary {
    color: #fff;
    background: var(--zt-accent);
    border-color: var(--zt-accent);
  }

  /* 底部设置抽屉：完全收起，由 Tab 栏唤起 */
  .zitie-app .panel {
    order: 2;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 62vh;
    flex: 0 0 auto;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 38px rgba(36, 51, 44, 0.18);
    z-index: 60;
    transform: translateY(calc(100% + 90px));
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s;
  }

  .zitie-app .panel.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .zitie-app .panel-head {
    position: relative;
    cursor: pointer;
    padding: 12px 16px 12px;
    border-radius: 18px 18px 0 0;
  }
  .zitie-app .panel-head::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 36px;
    height: 5px;
    margin-left: -18px;
    border-radius: 3px;
    background: rgba(60, 60, 67, 0.22);
  }
  .zitie-app .panel-title { font-size: 15px; }
  .zitie-app .panel-toggle { display: inline-flex; }
  .zitie-app .panel.is-open .panel-toggle svg { transform: rotate(180deg); }
  .zitie-app .panel-body {
    max-height: calc(62vh - 62px);
    padding: 4px 14px calc(20px + env(safe-area-inset-bottom));
  }

  /* 桌面端的操作按钮在手机端隐藏（已移到预览头） */
  .zitie-app .action-row { display: none !important; }

  /* 底部设置分类 Tab 栏 */
  .zitie-app .m-tabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 62;
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(255, 253, 248, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--zt-line);
    box-shadow: 0 -2px 14px rgba(36, 51, 44, 0.06);
  }
  .zitie-app .m-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--zt-muted);
    cursor: pointer;
    transition: color 0.18s ease;
  }
  .zitie-app .m-tab svg { width: 20px; height: 20px; }
  .zitie-app .m-tab.is-active { color: var(--zt-accent); }
  .zitie-app .m-tab[hidden] { display: none; }

  /* 手机端只显示当前 Tab 的设置卡片 */
  .zitie-app .hide-for-tab { display: none !important; }
  .zitie-app .hide-card-title .card-title { display: none !important; }

  /* 手机端隐藏站点页脚，让生成页像独立应用 */
  body.zt-m-app #colophon,
  body.zt-m-app .site-footer { display: none !important; }

  .zitie-app .zt-hero { margin: 4px 0 14px; }
  .zitie-app .zt-hero-title { font-size: 24px; }

  .zitie-app .zt-head-card {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  /* 手机端不展示同类模板缩略图，标题卡只保留标题与说明 */
  .zitie-app .zt-head-card .zt-gallery { display: none; }

  /* 手机端不展示工具下方的 SEO 说明卡 */
  .zitie-article { display: none !important; }

  .zitie-app .zt-head-card .zt-hero { margin: 0 0 10px; }

  .zitie-app .zt-gallery {
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 0;
  }

  .zitie-app .zt-g-tpl,
  .zitie-app .zt-g-thumb { width: 92px; }
  .zitie-app .zt-g-thumb { height: 130px; }
}

@media (max-width: 520px) {
  .zitie-app .action-row button { padding: 12px 10px; font-size: 13px; }
  .zitie-app .panel-badge { display: none; }
  .zitie-app .panel-head { padding: 12px 14px; }
  .zitie-app .panel-body { padding: 10px; }
}

/* 手机全屏：允许在工具内部纵向滚动，避免内容被锁住看不到 */
@media (max-width: 900px) {
  .zitie-app.is-fullscreen { overflow-y: auto; }
  .zitie-app.is-fullscreen .zt-shell {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* ==================== 打印：只输出字帖 ==================== */
@media print {
  @page { size: A4 portrait; margin: 0; }

  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }

  /* 打印时脚本会把 .zitie-app 移到 body 下并加上 .zt-printing，
     这里隐藏其余所有顶层元素，彻底排除主题页眉、导航、侧栏、页脚 */
  body.zt-printing > *:not(.zitie-app) { display: none !important; }

  .zitie-app {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 210mm !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .zitie-app .zt-shell {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 0 !important;
  }

  .zitie-app .panel,
  .zitie-app .preview-head,
  .zitie-app .action-row,
  .zitie-app .zt-crumb,
  .zitie-app .zt-head-card,
  .zitie-app .modal-overlay { display: none !important; }

  .zitie-app .preview-col { display: block !important; height: auto !important; }
  .zitie-app .preview-card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    overflow: visible !important;
  }

  .zitie-app .preview {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .zitie-app .pages {
    display: block !important;
    width: 210mm !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  .zitie-app .pages canvas {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .zitie-app .pages canvas:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}

/* ==================== 全屏查看器：最终覆盖（含移动端） ==================== */
/* 放在文件末尾，确保优先于上面 900px 以下的响应式规则 */
.zitie-app.is-fullscreen { overflow: hidden; }

.zitie-app.is-fullscreen .zt-shell {
  display: block !important;
  height: var(--zt-h) !important;
  min-height: 0 !important;
}

.zitie-app.is-fullscreen .preview-col {
  width: 100%;
  height: 100%;
  gap: 0;
}

.zitie-app.is-fullscreen .preview-card {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.zitie-app.is-fullscreen .preview {
  display: block !important;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  padding: 6px 6px 24px !important;
  overflow: auto !important;
  background: #f4f4f1 !important;
}

.zitie-app.is-fullscreen .pages {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: max-content !important;
  margin: 0 auto !important;
}

.zitie-app.is-fullscreen .pages canvas {
  display: block !important;
  width: calc(720px * var(--zt-zoom, 1)) !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 2px !important;
  box-shadow: 0 8px 28px rgba(36, 51, 44, 0.12) !important;
}

/* 全屏查看器里不显示手机端 Tab 栏与预览头按钮 */
.zitie-app.is-fullscreen .m-tabs,
.zitie-app.is-fullscreen .m-head-actions,
.zitie-app.is-fullscreen .m-zoom { display: none !important; }

/* ==================== 首页（[zitie_home]） ==================== */
.zt-home {
  --zt-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 20px 50px;
  box-sizing: border-box;
  color: #24332c;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.zt-home * { box-sizing: border-box; }

.zt-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  align-items: center;
  /* 上下高度：352px 再加 1/5 ≈ 422px，全宽不变 */
  min-height: 422px;
  margin: 26px 0 24px;
  padding: 28px 6%;
  border: 1px solid #e7e1d4;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  /* 原型方案：整卡铺图 + 左→右米色渐变遮罩（左 97% 全遮 → 43% 处 93% → 右侧 10% 渐透） */
  background:
    linear-gradient(90deg, rgba(249, 246, 235, 0.97) 0%, rgba(249, 246, 235, 0.93) 43%, rgba(249, 246, 235, 0.1) 100%),
    url("hero-bg.jpg") center center / cover no-repeat,
    #f9f6ec;
}

/* 原型装饰框：右上角金色细线框，微旋转 */
.zt-home-hero::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 15%;
  width: 36%;
  height: 70%;
  border: 1px solid rgba(171, 148, 105, 0.25);
  border-radius: 4px;
  transform: rotate(3deg);
  pointer-events: none;
  z-index: 1;
}

.zt-home-hero > * { position: relative; z-index: 2; }

.zt-home-hero-copy { position: relative; z-index: 2; max-width: 520px; min-width: 0; align-self: start; }

/* 顶部小标签：金色短线 + 英文大写（原型 .eyebrow：12px/800/字距2px/金线22×2/间距9px） */
.zt-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #155b43;
}

.zt-home-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #b88b42;
}

.zt-home-title {
  margin: 18px 0 16px;
  font-family: var(--zt-serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 2px;
  color: #152d24;
}

/* 原型：标题上下间距相等（各 16px）；同时锁死 Kadence h1 默认的 1.5em 大边距 */
.zt-home-hero .zt-home-title { margin: 16px 0; }

.zt-home-sub {
  margin: 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.9;
  color: #53635a;
}

/* 原型 .hero-buttons：间距 12px、上边距 26px */
.zt-home-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.zt-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.zt-home-btn-arrow { margin-left: 8px; font-size: 15px; line-height: 1; }

.zt-home-btn--primary { background: #155b43; color: #fff; border: 1px solid #155b43; }
.zt-home-btn--primary:hover { background: #104b36; color: #fff; }

.zt-home-btn--ghost { background: transparent; color: #155b43; border: 1px solid #b6c7bb; }
.zt-home-btn--ghost:hover { border-color: #155b43; color: #155b43; }

.zt-home-btn--gold { padding: 11px 20px; background: #b88b42; color: #fff; border: 1px solid #b88b42; flex: 0 0 auto; }
.zt-home-btn--gold:hover { background: #a27631; color: #fff; }

.zt-home-note {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #7a8179;
}

/* 主题的段落边距会覆盖上面的 .zt-home-note，这里提高特异性 */
.zt-home-hero .zt-home-note { margin: 18px 0 0; }

/* ---------- 右侧叠纸（原型 .hero-art + .sheet-stack） ---------- */
.zt-home-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 300px;
}

/* 原型 .sheet-stack：300×330、整体转 4°；sheet 用百分比定位 */
.zt-home-stack {
  position: relative;
  width: min(300px, 82%);
  height: 330px;
  flex: 0 0 auto;
  transform: rotate(4deg);
}

.zt-home-sheet {
  position: absolute;
  width: 80%;
  height: 92%;
  top: 3%;
  left: 10%;
  padding: 20px 16px;
  background: #fffdf8;
  border: 1px solid #dcd4c4;
  border-radius: 5px;
  box-shadow: 0 12px 24px rgba(68, 53, 28, 0.1);
}

.zt-home-sheet--back {
  left: 0;
  top: 0;
  transform: rotate(-10deg);
  z-index: 1;
}

.zt-home-sheet--mid {
  left: 6%;
  top: 1%;
  transform: rotate(-3deg);
  z-index: 2;
}

.zt-home-sheet--front {
  left: 16%;
  top: 4%;
  transform: rotate(3deg);
  z-index: 3;
}

.zt-home-sheet-head {
  font-family: var(--zt-serif);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 14px;
  color: #24332c;
}

.zt-home-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.zt-home-sheet-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--zt-serif);
  font-size: 18px;
  color: #c2bdb1;
  border: 1px solid #d9d3c7;
}

.zt-home-sheet-cap {
  font-size: 10px;
  text-align: center;
  color: #8d887d;
  margin: 9px 0;
}

/* 类型入口区（原型 .section#types：标题头 + 4 张图标卡） */
.zt-home-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.zt-home-types-head { grid-column: 1 / -1; margin-bottom: 4px; }

.zt-home-types-title {
  margin: 0;
  font-family: var(--zt-serif);
  font-size: 25px;
  font-weight: 600;
  color: #24332c;
}

.zt-home-types-desc { margin: 7px 0 0; font-size: 13px; color: #788078; }

/* 原型 .type-card：边框 #e7e1d4、圆角 15px、白底 #fffdf9、内边距 19px、图标 48×48 */
.zt-home-type {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 19px;
  background: #fffdf9;
  border: 1px solid #e7e1d4;
  border-radius: 15px;
  text-decoration: none;
  color: #24332c;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.zt-home-type:hover {
  border-color: #5f9278;
  box-shadow: 0 8px 22px rgba(36, 51, 44, 0.06);
  transform: translateY(-1px);
}

/* 原型 .type-icon：48×48、圆角 12px、底 #f4f7f0、边 #d8e2d7、绿字 24px */
.zt-home-type-ico {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d8e2d7;
  border-radius: 12px;
  background: #f4f7f0;
  color: #155b43;
  font-family: var(--zt-serif);
  font-size: 24px;
  font-weight: 600;
}

.zt-home-type-txt { min-width: 0; }
.zt-home-type-txt strong { display: block; font-size: 15px; margin-bottom: 7px; }
.zt-home-type-txt small { display: block; font-size: 12px; line-height: 1.6; color: #788078; }

/* 三条 feature（原型 .feature-strip：3 列、卡 #fbfaf5、图标 23px 绿） */
.zt-home-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.zt-home-feature {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  background: #fbfaf5;
  border: 1px solid #e7e1d4;
  border-radius: 13px;
}

.zt-home-feature-ico {
  flex: 0 0 auto;
  font-size: 23px;
  color: #155b43;
}

.zt-home-feature-txt strong { display: block; font-size: 14px; color: #24332c; }
.zt-home-feature-txt small { display: block; margin-top: 5px; font-size: 12px; color: #788078; }

.zt-home-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 44px 0 16px;
}

.zt-home-sec-title {
  margin: 0;
  font-family: var(--zt-serif);
  font-size: 24px;
  font-weight: 600;
  color: #24332c;
}

.zt-home-more { font-size: 13px; color: #155b43; text-decoration: none; }
.zt-home-more:hover { color: #104b36; }

.zt-home .zt-index-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

.zt-home-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 28px 30px;
  border: 1px solid #dfe5d7;
  border-radius: 17px;
  background: linear-gradient(110deg, #e8eee2 0%, #f5f0e3 100%);
}

.zt-home-member-title {
  margin: 0 0 6px;
  font-family: var(--zt-serif);
  font-size: 21px;
  font-weight: 600;
  color: #24332c;
}

.zt-home-member-sub { margin: 0 0 12px; font-size: 13.5px; color: #667369; }

.zt-home-member-tags { display: flex; flex-wrap: wrap; gap: 18px; }

.zt-home-member-tags span {
  font-size: 12px;
  color: #53675b;
}

.zt-home-member-tags span::before {
  content: "✓ ";
  color: #b88b42;
  font-weight: 700;
}

@media (max-width: 900px) {
  .zt-home { padding: 0 16px 44px; }
  .zt-home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 28px 20px 30px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(249, 246, 236, 0.72) 0%, rgba(249, 246, 236, 0.45) 60%, rgba(249, 246, 236, 0.18) 100%),
      url("hero-bg.jpg") center top / cover no-repeat,
      #f9f6eb;
  }
  /* 装饰叠纸改为右上角局部露出，不再单独占一屏高度 */
  .zt-home-visual {
    position: absolute;
    top: -30px;
    right: -70px;
    width: 240px;
    min-height: 0;
    justify-content: flex-start;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
  }
  .zt-home-stack { transform: scale(0.62); transform-origin: 50% 0; height: 210px; margin-right: 0; zoom: 1; }
  .zt-home-sheet-grid span { font-size: 18px; }
  .zt-home-hero-copy { max-width: none; }
  .zt-home-hero .zt-home-title { font-size: 32px; margin: 14px 0 12px; }
  .zt-home-sub { font-size: 14px; margin-bottom: 0; max-width: 30em; }
  .zt-home-cta { margin-top: 20px; }
  /* 与描述文案语义重复，手机端去掉 */
  .zt-home-hero .zt-home-note { display: none; }
  .zt-home-types { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 34px; }
  /* 类型入口只留图标+名称，压缩高度 */
  .zt-home-type { min-height: 0; padding: 13px 12px; gap: 10px; }
  .zt-home-type-ico { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
  .zt-home-type-txt small { display: none; }
  .zt-home-type-txt strong { font-size: 14.5px; margin-bottom: 0; }
  /* 三条卖点改横向滑动一行 */
  .zt-home-feats {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 68%);
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .zt-home-feats::-webkit-scrollbar { display: none; }
  .zt-home-feature { scroll-snap-align: start; min-height: 0; padding: 13px 14px; }
  .zt-home .zt-index-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .zt-home-sec-head { align-items: center; margin: 30px 0 12px; }
  .zt-home-sec-title {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1f2a24;
    padding-left: 10px;
    border-left: 4px solid #35b07b;
    line-height: 1.2;
  }
  .zt-home-more { font-size: 13px; color: #8a938c; }
  .zt-home-member { padding: 20px; }
  .zt-home-member-title { font-size: 18px; }
}

@media (max-width: 560px) {
  .zt-index-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  /* 抵消主题容器边距，让两列卡片更宽（参考站边距 ~12px） */
  .zt-index { margin-left: -12px; margin-right: -12px; padding-left: 0; padding-right: 0; }
  .zt-home { margin-left: -12px; margin-right: -12px; padding-left: 4px; padding-right: 4px; }
  .zt-home-hero { padding: 24px 16px 26px; }
  .zt-home-hero .zt-home-title { font-size: 28px; }
  .zt-home-btn { height: 44px; padding: 0 14px; font-size: 13px; }
  .zt-home-visual { right: -80px; top: -34px; width: 220px; }
  .zt-home-stack { transform: scale(0.56); height: 190px; zoom: 1; }
}

/* 首页模板卡缩略图：与目录页一致，完整 A4 比例（210/297），随卡宽等比缩放 */

/* 手机端：预览区撑满到 Tab 栏上方，纸张上下留白相等（原上边距 10px 的 2 倍起） */
@media (max-width: 900px) {
  .zitie-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .zitie-app .zt-shell { flex: 1 1 auto; display: flex; flex-direction: column; }
  .zitie-app .preview-col { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .zitie-app .preview-card { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .zitie-app .preview {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
  }
  .zitie-app .preview .pages { width: 100%; margin: auto 0; }
}

/* ==========================================================================
   会员系统（v2.0.0）：卡片锁 / 字段锁 / 门禁页 / 会员中心
   ========================================================================== */

/* ---------- 目录/首页卡片：会员专享 ---------- */
.zt-index-card.zt-locked .zt-index-thumb canvas { filter: blur(4px); opacity: 0.85; }

/* V 字徽章（VIP 标识，通用） */
.zt-v-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99b52, #b88b42);
  color: #fff;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(184, 139, 66, 0.4);
}

.zt-index-card .zt-lock-badge {
  display: none;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99b52, #b88b42);
  color: #fff;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(184, 139, 66, 0.4);
}

.zt-index-card.zt-locked .zt-lock-badge { display: inline-flex; }
.zt-index-card.zt-locked:hover { border-color: #d8d2c6; box-shadow: none; transform: none; }

.zt-index-thumb { position: relative; }

/* ---------- 生成器面板：字段锁 ---------- */
.zitie-app .zt-is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.zitie-app .zt-is-locked .row,
.zitie-app .zt-is-locked .setting,
.zitie-app .zt-is-locked .grid-type-grid,
.zitie-app .zt-is-locked .align-btns { pointer-events: none; }

.zitie-app .zt-lock-chip {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99b52, #b88b42);
  color: #fff;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(184, 139, 66, 0.35);
}

.zitie-app .setting .zt-lock-chip,
.zitie-app .sub-block .zt-lock-chip { bottom: auto; top: 18px; }

.zitie-app .grid-type-btn .zt-grid-lock {
  position: absolute;
  bottom: 2px;
  right: 3px;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99b52, #b88b42);
  color: #fff;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(184, 139, 66, 0.35);
}

/* ---------- 整模板门禁页 ---------- */
.zitie-gate-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }

.zt-member-gate {
  max-width: 560px;
  margin: 6vh auto 0;
  padding: 44px 36px 40px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ebebe8;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(36, 51, 44, 0.04), 0 18px 44px rgba(36, 51, 44, 0.06);
}

.zt-member-gate-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99b52, #b88b42);
  color: #fff;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(184, 139, 66, 0.4);
}

.zt-member-gate-title {
  margin: 0 0 10px;
  font-family: var(--zt-serif, "Songti SC", serif);
  font-size: 22px;
  font-weight: 700;
  color: #24332c;
}

.zt-member-gate-sub { margin: 0 0 24px; font-size: 13.5px; line-height: 1.8; color: #788078; }

.zt-member-gate-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.zt-member-gate-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 11px;
  background: #155b43;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.zt-member-gate-btn:hover { background: #24785a; }

.zt-member-gate-btn.is-ghost {
  background: #ffffff;
  border: 1px solid #ebebe8;
  color: #4e5851;
}

.zt-member-gate-btn.is-ghost:hover { background: #f5f5f2; color: #24332c; }

/* ---------- 会员中心 [zitie_account] ---------- */
.zt-account {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  gap: 18px;
  color: #24332c;
  box-sizing: border-box;
}

.zt-account-card {
  padding: 30px 32px;
  background: #ffffff;
  border: 1px solid #ebebe8;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(36, 51, 44, 0.04);
  box-sizing: border-box;
}

.zt-account-card h2 {
  margin: 0 0 6px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
}

.zt-account-card h3 {
  margin: 0 0 14px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px;
  font-weight: 700;
}

.zt-account-sub { margin: 0 0 18px; font-size: 13.5px; line-height: 1.8; color: #788078; }
.zt-account-alt { margin: 12px 0 0; font-size: 12.5px; color: #9a9a93; }
.zt-account-alt a { color: #24785a; text-decoration: none; }
.zt-account-alt a:hover { text-decoration: underline; }

.zt-account-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.zt-account-user { font-size: 14.5px; font-weight: 600; }

.zt-account-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: #155b43;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.zt-account-badge.is-forever { background: #b88b42; }
.zt-account-badge.is-free { background: #efece4; color: #788078; }

.zt-account-redeem { display: flex; gap: 10px; }

.zt-account-redeem input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ebebe8;
  border-radius: 10px;
  background: #fff;
  color: #24332c;
  font-size: 14px;
  outline: none;
}

.zt-account-redeem input:focus { border-color: #24785a; box-shadow: 0 0 0 3px rgba(36, 120, 90, 0.12); }

.zt-account-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #155b43;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.zt-account-btn:hover { background: #24785a; }
.zt-account-btn:disabled { opacity: 0.65; cursor: default; }

.zt-account-msg { margin: 10px 0 0; font-size: 13px; min-height: 20px; }
.zt-account-msg.is-ok { color: #24785a; }
.zt-account-msg.is-err { color: #b0533f; }

/* 会员中心登录表单（wp_login_form 输出） */
.zt-account-card .login-username,
.zt-account-card .login-password { margin-bottom: 12px; }

.zt-account-card .login-username label,
.zt-account-card .login-password label,
.zt-account-card .login-remember { display: block; font-size: 12.5px; color: #788078; margin-bottom: 6px; }

.zt-account-card .login-remember { display: flex; align-items: center; gap: 6px; }

.zt-account-card .input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ebebe8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.zt-account-card .input:focus { border-color: #24785a; }

.zt-account-card .login-submit { margin-top: 16px; }

.zt-account-card .zt-reg-row { margin: 0 0 12px; }
.zt-account-card .zt-reg-row label {
  display: block;
  font-size: 12.5px;
  color: #788078;
  margin-bottom: 6px;
}

.zt-account-card .login-submit .button-primary,
.zt-account-card #wp-submit {
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #155b43;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.zt-account-benefits ul { margin: 0; padding: 0; list-style: none; }
.zt-account-benefits li { padding: 10px 0; border-top: 1px solid #f2eee8; font-size: 13.5px; line-height: 1.7; color: #4e5851; }
.zt-account-benefits li:first-child { border-top: 0; padding-top: 0; }
.zt-account-benefits strong { color: #24332c; }

@media (max-width: 560px) {
  /* 抵消主题容器边距，登录/会员卡片更宽，适配各尺寸手机 */
  .zt-account { margin-left: -12px; margin-right: -12px; padding: 16px 12px 48px; }
  .zt-account-card { padding: 22px 16px; }
  .zt-account-redeem { flex-direction: column; }
  .zt-account-btn { width: 100%; }
  .zt-member-gate { margin-top: 20px; padding: 34px 22px 30px; }
}

/* ==================== 2.1 会员体系增强（收藏 / 选项级锁 / 会员中心重做） ==================== */

/* ---------- 标题行 + 收藏按钮 ---------- */
.zitie-app .zt-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.zitie-app .zt-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e0d8c8;
  border-radius: 999px;
  background: #ffffff;
  color: #b88b42;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 0 0 auto;
}

.zitie-app .zt-fav-btn:hover { border-color: #b88b42; background: #fdf9f0; }

.zitie-app .zt-fav-btn .zt-fav-star { font-size: 14px; line-height: 1; }

.zitie-app .zt-fav-btn.is-on {
  background: #b88b42;
  border-color: #b88b42;
  color: #fff;
}

/* ---------- 格子类型选项级锁 ---------- */
.zitie-app .grid-type-btn { position: relative; }

.zitie-app .grid-type-btn.zt-grid-locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.zitie-app .grid-type-btn.zt-grid-locked:hover { border-color: #e0d8c8; }

/* ---------- 会员中心：概览卡 ---------- */
.zt-account-card h3 { display: flex; align-items: center; gap: 6px; }
.zt-account-card h3 small {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #b88b42;
  background: #f8f2e6;
  border-radius: 999px;
  padding: 1px 9px;
}

.zt-me-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zt-me-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #eef2ec;
  display: block;
  background: #f2f0e9;
}

.zt-me-info { flex: 1; min-width: 0; }

.zt-me-name {
  font-size: 17px;
  font-weight: 700;
  color: #24332c;
  margin-bottom: 5px;
}

.zt-me-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zt-me-exp { font-size: 12.5px; color: #9a9a93; }

.zt-me-renew {
  flex: 0 0 auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #155b43;
  color: #155b43;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.zt-me-renew:hover { background: #eef5ed; }

.zt-me-renew.is-cta {
  background: #155b43;
  color: #fff;
}

.zt-me-renew.is-cta:hover { background: #24785a; }

.zt-me-progress {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: #efece4;
  overflow: hidden;
}

.zt-me-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b88b42, #d9b26a);
}

/* 等级徽章配色 */
.zt-account-badge.is-life { background: #b88b42; }
.zt-account-badge.is-year { background: #155b43; }
.zt-account-badge.is-month { background: #4a7a68; }

/* ---------- 我的收藏 ---------- */
.zt-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.zt-fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fbf9f4;
  border: 1px solid #efe9dd;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.zt-fav-item:hover {
  border-color: #d8cfbe;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(36, 51, 44, 0.05);
}

.zt-fav-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: #fff;
  border: 1px solid #efe9dd;
  border-radius: 9px;
}

.zt-fav-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #24332c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-fav-go {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #9a9a93;
}

.zt-fav-item:hover .zt-fav-go { color: #24785a; }

/* ---------- 会员套餐 ---------- */
.zt-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.zt-plan {
  position: relative;
  padding: 20px 16px 16px;
  background: #fbf9f4;
  border: 1.5px solid #efe9dd;
  border-radius: 14px;
  text-align: center;
}

.zt-plan.is-hot { border-color: #d9b26a; }

.zt-plan.is-current {
  border-color: #155b43;
  background: #f2f7f2;
}

.zt-plan-hot {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #b88b42;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.zt-plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #788078;
  margin-bottom: 8px;
}

.zt-plan-price {
  font-size: 26px;
  font-weight: 800;
  color: #24332c;
  line-height: 1.2;
  margin-bottom: 6px;
}

.zt-plan-price small {
  font-size: 11.5px;
  font-weight: 500;
  color: #9a9a93;
}

.zt-plan-desc {
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a9a93;
  min-height: 34px;
  margin-bottom: 10px;
}

.zt-plan-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #b88b42;
}

.zt-plan.is-current .zt-plan-tag { color: #155b43; }

/* ---------- 账户设置 ---------- */
.zt-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: #f2f0e9;
  border-radius: 10px;
  padding: 4px;
}

.zt-tab {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #788078;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zt-tab.is-on {
  background: #fff;
  color: #24332c;
  box-shadow: 0 1px 3px rgba(36, 51, 44, 0.08);
}

.zt-field { margin-bottom: 12px; }

.zt-field label {
  display: block;
  font-size: 12.5px;
  color: #788078;
  margin-bottom: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .zt-plan-grid { grid-template-columns: 1fr; }
  .zt-fav-grid { grid-template-columns: 1fr; }
  .zt-me-top { flex-wrap: wrap; }
  .zt-me-renew { margin-left: 66px; }
}

/* ---------- 头像更换 ---------- */
.zt-me-avatar {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  cursor: pointer;
  flex: 0 0 auto;
}

.zt-me-avatar img { width: 52px; height: 52px; }

.zt-me-avatar:hover img { opacity: 0.82; }

.zt-me-cam {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #24332c;
  border: 2px solid #ffffff;
  font-size: 9px;
  line-height: 1;
}
