/* ============================================================
   页面装修的内容样式（2026-10-31）
   外壳在 shell.css；这里只管模块库 / 模块列表 / 设置 / 手机里的块
   ============================================================ */

/* ---------- 左侧模块库 ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lib-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 9px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.lib-item:hover {
  border-color: #bdbdb4;
  box-shadow: 0 4px 12px rgba(27, 27, 24, .06);
  transform: translateY(-1px);
}
.lib-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #efefe9;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.lib-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.lib-desc { font-size: 10.5px; color: var(--faint); }

/* ---------- 中间模块列表 ---------- */
.mod-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  background: #fff;
}
.mod-item.on { border-color: #bdbdb4; background: #f7f7f2; }
.mod-item.off { opacity: .45; }
.mod-top { display: flex; align-items: center; gap: 6px; }
.m-drag { color: #c9c9c0; font-size: 11px; letter-spacing: -1px; cursor: default; }
.mod-type {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 6px;
  white-space: nowrap;
}
.mod-title {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mod-actions { display: flex; gap: 4px; margin-top: 6px; }
.mod-actions .mini { padding: 1px 7px; font-size: 11px; }

/* ---------- 右边设置 ---------- */
.set-head {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.set-sub { color: var(--muted); font-size: 11.5px; margin: -4px 0 10px; }
.set-row { margin-bottom: 12px; }
.set-row > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.set-input {
  width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
  font-size: 12.5px;
  background: #fff;
  color: var(--ink);
}
textarea.set-input { height: 70px; padding: 6px 8px; resize: vertical; }
.radios { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); }
.link {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}
.muted { color: var(--faint); font-weight: 400; }

/* 轮播图：已选的图 + 上传 + 比例 */
.picked-covers { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; min-height: 40px; }
.picked-cover {
  position: relative;
  width: 64px;
  height: 85px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f2;
}
.picked-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picked-cover button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.picked-cover i {
  position: absolute;
  left: 3px;
  bottom: 3px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  border-radius: 3px;
  padding: 0 4px;
}
.picked-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.set-row-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.lib-cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lib-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.lib-thumb {
  position: relative;
  border: 0;
  padding: 0;
  background: #f7f7f2;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-thumb.on { outline: 2px solid var(--ok); outline-offset: -2px; }
.lib-thumb i {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--ok);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.lib-thumb i:not(:empty) { display: flex; }
.lib-item-name {
  font-size: 10.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-item-acts { display: flex; gap: 3px; flex-wrap: wrap; }
.lib-item-acts button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  font: inherit;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.lib-item-acts button:hover { border-color: #bdbdb4; color: var(--ink); }
.lib-item-acts button:disabled { opacity: .4; cursor: not-allowed; }
.lib-used { font-size: 9.5px; color: var(--ok); }
.ratio-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ratio-input { width: 64px; text-align: center; }
.ratio-colon { color: var(--muted); }
.ratio-presets { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* 轮播图选图 */
.cover-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cover-opt {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: #f7f7f2;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}
.cover-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-opt.on { outline: 2px solid var(--ok); outline-offset: -2px; }
.cover-opt i {
  display: none; /* 没选中的那张不显示绿点 */
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--ok);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.cover-opt i:not(:empty) { display: flex; }

/* 手动选商品 */
.prod-pick { display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; }
.prod-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}
.prod-opt.on { border-color: var(--ok); background: #eaf2ee; }
.prod-opt img, .prod-opt .ph {
  width: 30px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: #d8d8d8;
  flex: none;
}
.prod-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-code { font-size: 10.5px; color: var(--muted); }
.prod-opt i {
  display: none; /* 没选中的那个不显示绿点 */
  margin-left: auto;
  background: var(--ok);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex: none;
}
.prod-opt i:not(:empty) { display: flex; }

/* ---------- 手机里的块（预览用） ---------- */
.screen-body.bg-default { background: #f6f6f3; }
.screen-body.bg-gray { background: #ecece6; }
.screen-body.bg-white { background: #fff; }
.screen-body.sp-compact .pv-block { margin-bottom: 8px; }
.screen-body.sp-default .pv-block { margin-bottom: 14px; }
.screen-body.sp-loose .pv-block { margin-bottom: 22px; }

.pv-search {
  margin: 10px 12px 14px;
  height: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e3e3dc;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: #a9a9a0;
}
.pv-search img { width: 13px; height: 13px; margin-right: 6px; opacity: .55; }
.pv-block { position: relative; cursor: pointer; }
.pv-block.sel { outline: 2px solid #2f6fed; outline-offset: -2px; }
.pv-banner { position: relative; }
/* 高度不写死：由 renderPvBlock 按「375 × 高 ÷ 宽」算出来，写在 style 里 */
.pv-banner img { width: 100%; display: block; object-fit: cover; }
.pv-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.pv-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.pv-dots i.on { background: #fff; }
.pv-title { font-size: 13px; font-weight: 600; padding: 10px 12px 6px; display: flex; justify-content: space-between; }
.pv-more { color: #8a8a8a; font-weight: 400; font-size: 10px; }
.pv-nav { display: grid; gap: 8px; padding: 10px 12px; }
.pv-nav-item { text-align: center; font-size: 10px; color: #333; }
.pv-nav-item img, .pv-nav-item .ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 10px;
}
.pv-nav-item span { display: block; margin-top: 4px; }
.pv-rail { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 4px; }
.pv-rail-card { flex: none; width: 92px; }
.pv-rail-card img, .pv-rail-card .ph {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 6px;
  background: #d8d8d8;
}
.pv-rail-card .n { font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-rail-card .c { font-size: 9px; color: #8a8a8a; }
.pv-grid { display: grid; gap: 8px; padding: 0 12px; }
.pv-grid-card img, .pv-grid-card .ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: #d8d8d8;
}
.pv-grid-card .n { font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-grid-card .c { font-size: 9px; color: #8a8a8a; }
.pv-brands { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.pv-brands span { border: 1px solid #e3e3dc; border-radius: 99px; padding: 3px 8px; font-size: 10px; background: #fff; }
.pv-notice {
  margin: 0 12px;
  background: #fff;
  border: 1px solid #e3e3dc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  gap: 6px;
}
.pv-notice b { color: #b03a2e; font-weight: 600; flex: none; }
.pv-empty { padding: 40px 16px; text-align: center; color: #a9a9a0; font-size: 11px; }
.pv-empty-block {
  padding: 18px 12px;
  text-align: center;
  color: #a9a9a0;
  font-size: 10px;
  border: 1px dashed #d8d8d0;
  margin: 0 12px;
  border-radius: 6px;
}

/* ---------- 图片库弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 30, .45);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head b { font-size: 14px; }
.modal-head .muted { color: var(--faint); font-size: 11.5px; }
.modal-x {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
}
.modal-x:hover { color: var(--ink); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.modal-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.modal-foot .muted { color: var(--muted); font-size: 12px; }
.modal-foot .mini:last-child { margin-left: auto; }
.modal-empty { padding: 40px 10px; text-align: center; color: var(--faint); font-size: 12px; }

/* 编辑图片弹窗在上层；看大图再上一层 */
#libEdit { z-index: 90; }
.lib-light {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lib-light[hidden] { display: none; }
.lib-light img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }

/* ---------- 小提示：浮在底下的 toast ---------- */
.deco-msg {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 90;
  max-width: 70vw;
  text-align: center;
}
.deco-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.deco-msg.bad { background: var(--bad); }

/* ============================================================
   分类 / 收藏夹 / 我的 / 商品列表 / 日期流 / 动态详情
   （2026-11-07 搭框架：左「装修项」+ 中设置；
     2026-11-07 第二刀：装修项按接口 schema 动态画，四种控件）
   ============================================================ */
#pageBuilderView { grid-column: 2; grid-row: 1; }
/* 这 6 页没有「模块列表」，工作区只留左栏 + 设置两列 */
.page-builder { grid-template-columns: 230px minmax(320px, 1fr); }

.pb-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bdbdb4;
  background: #f7f7f2;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12.5px;
  color: var(--ink);
}
.pb-crumb i { font-style: normal; color: var(--faint); }
.pb-crumb b { font-weight: 600; }
.pb-note { margin: 10px 2px 0; color: var(--faint); font-size: 10.5px; line-height: 1.7; }

/* 左栏「装修项」列表：一项一个按钮，点一下跳到中间对应设置 */
.pb-nav { display: flex; flex-direction: column; gap: 6px; }
.pb-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.pb-nav-item:hover { border-color: #bdbdb4; background: #f7f7f2; }
.pb-nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-nav-type {
  flex: none;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 6px;
}
.pb-nav-empty { color: var(--faint); font-size: 11.5px; padding: 6px 2px; }

/* 背景色一行：色块 + 十六进制 */
.pb-color-row { display: flex; align-items: center; gap: 8px; }
.pb-color {
  width: 46px;
  height: 30px;
  flex: none;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.pb-hex { width: 120px; font-variant-numeric: tabular-nums; }

/* 开关：label + 拨动开关 + 开/关两个字 */
.pb-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-switch-label { font-size: 12px; color: var(--muted); }
/* ⚠ 这里必须写 .pb-switch-row > .pb-switch：
   `.set-row > label`（0,1,1）会把开关的 label 改成 display:block，
   压过单写 .pb-switch（0,1,0），开关的横条就只剩 2px 边框（2026-11-07 栽过一次）。 */
.pb-switch-row > .pb-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--muted);
  user-select: none;
  margin-bottom: 0;
}
.pb-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pb-switch-track {
  display: block;
  width: 38px;
  height: 21px;
  flex: none;
  border-radius: 99px;
  background: #d8d8d0;
  border: 1px solid #c9c9c0;
  position: relative;
  transition: background .16s, border-color .16s;
}
.pb-switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: left .16s;
}
.pb-switch input:checked + .pb-switch-track { background: #2f6fed; border-color: #2f6fed; }
.pb-switch input:checked + .pb-switch-track i { left: 19px; }
.pb-switch input:focus-visible + .pb-switch-track { outline: 2px solid #9db8f5; outline-offset: 2px; }
.pb-switch-text { min-width: 14px; }

/* 总控（2026-11-09）：各页显示 / 隐藏开关集中一页 */
.master-intro { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
/* 总控：一键开关（2026-11-13） */
.master-all {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfbf7;
}
.master-all-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.master-all-main b { font-size: 13px; }
.master-all-main span { font-size: 11.5px; color: var(--muted); }
.master-all-switch { flex: none; }
.master-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.master-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.master-card header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #fbfbf7; border-bottom: 1px solid var(--line);
}
.master-card header b { font-size: 13px; }
.master-card header span { font-size: 11px; color: var(--faint); }
.master-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px dashed var(--line);
}
.master-row:last-child { border-bottom: 0; }
.master-label { font-size: 12.5px; color: var(--ink); }
.master-row .pb-switch { display: inline-flex; align-items: center; gap: 7px; flex: none; cursor: pointer; font-size: 11.5px; color: var(--muted); user-select: none; }

/* 左栏点一项 → 中间那一行闪一下，确认跳到哪了 */
.pb-flash { animation: pb-flash .9s ease-out; }
@keyframes pb-flash {
  0% { background: #e8f0ff; box-shadow: inset 0 0 0 2px #9db8f5; }
  100% { background: transparent; box-shadow: inset 0 0 0 0 transparent; }
}

/* 读不出来时的提示（不是白屏） */
.pb-error { border: 1px solid #e6b0a8; background: #fdf3f1; border-radius: 8px; padding: 12px 14px; }
.pb-error b { display: block; font-size: 12.5px; color: var(--bad); margin-bottom: 6px; }
.pb-error p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* 手机里的骨架示意：只用灰块，不画真实数据 */
.pb-sk { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.pb-sk-tag {
  align-self: flex-start;
  font-size: 9.5px;
  color: #8a8a8a;
  border: 1px solid rgba(120, 120, 120, .35);
  border-radius: 99px;
  padding: 2px 8px;
  margin-bottom: 2px;
}
.pb-sk-line { height: 10px; border-radius: 5px; background: rgba(120, 120, 120, .22); }
.pb-sk-line.w40 { width: 40%; }
.pb-sk-line.w50 { width: 50%; }
.pb-sk-line.w60 { width: 60%; }
.pb-sk-line.w80 { width: 80%; }
.pb-sk-search { height: 32px; border-radius: 16px; background: rgba(120, 120, 120, .18); }
.pb-sk-split { display: flex; gap: 8px; }
.pb-sk-rail { width: 64px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.pb-sk-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-sk-row { display: flex; gap: 8px; align-items: flex-start; }
.pb-sk-thumb {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 8px;
  background: rgba(120, 120, 120, .22);
}
.pb-sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb-sk-cell { aspect-ratio: 3 / 4; border-radius: 8px; background: rgba(120, 120, 120, .22); }
.pb-sk-hero { height: 170px; border-radius: 10px; background: rgba(120, 120, 120, .22); }
.pb-sk-user { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
.pb-sk-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(120, 120, 120, .22);
}

/* ---------- 6 页各自的骨架（2026-11-07 第二刀：跟着装修项画） ---------- */

/* 分类页：搜索条 + 左栏 + 右栏商品行 */
.pb-cat-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  flex: none;
  border-radius: 16px;
  background: rgba(120, 120, 120, .16);
  padding: 0 12px;
  font-size: 11px;
  color: #8a8a8a;
}
.pb-cat-glass {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1.5px solid #a9a9a0;
  border-radius: 50%;
  position: relative;
}
.pb-cat-glass::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: #a9a9a0;
  transform: rotate(45deg);
}
.pb-cat-ph { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-cat-body { display: flex; gap: 8px; min-height: 220px; }
.pb-cat-rail {
  width: 112px;
  flex: none;
  border-radius: 8px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.pb-cat-item {
  position: relative;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #1a1a1a;
  border-radius: 4px;
}
.pb-cat-item.st-fill.on { background: #fff; font-weight: 600; }
.pb-cat-item.st-bold.on { font-weight: 700; }
.pb-cat-line {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  background: #1a1a1a;
}
.pb-cat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.pb-cat-prod { display: flex; align-items: center; gap: 8px; }
.pb-cat-prod .pb-sk-thumb { width: 52px; height: 52px; border-radius: 6px; }

/* 收藏夹：空状态 + 有收藏时的卡片 */
.pb-fav-empty { text-align: center; padding: 18px 10px 14px; }
.pb-fav-star { font-size: 30px; color: #b9b9b0; line-height: 1; margin-bottom: 8px; }
.pb-fav-title { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 5px; }
.pb-fav-text { font-size: 10.5px; color: #8a8a8a; line-height: 1.6; }
.pb-fav-sub { font-size: 9.5px; color: #8a8a8a; padding-left: 2px; }
.pb-fav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e3e3dc;
  overflow: hidden;
}
.pb-fav-row .pb-sk-lines { flex: 1; min-width: 0; }

/* 我的：顶部底色 + 头像方圆 + 卡片行 */
.pb-mine-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(120, 120, 120, .12);
}
.pb-mine-avatar { width: 46px; height: 46px; flex: none; background: rgba(120, 120, 120, .28); }
.pb-mine-head .pb-sk-lines { flex: 1; min-width: 0; }
.pb-mine-card { background: #fff; border: 1px solid #e3e3dc; border-radius: 8px; overflow: hidden; }
.pb-mine-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #333;
}
.pb-mine-cell + .pb-mine-cell { border-top: 1px solid #efefe9; }
.pb-mine-cell span { color: #a0a098; font-size: 10.5px; }

/* 商品列表：两列 / 一行一卡 + 卡片圆角 + 品牌行 */
.pb-prod-grid { display: grid; gap: 9px; }
.pb-prod-card {
  background: #fff;
  border: 1px solid #e3e3dc;
  overflow: hidden;
  min-width: 0;
}
.pb-prod-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(120, 120, 120, .22);
}
.pb-prod-info { padding: 7px 8px 9px; display: flex; flex-direction: column; gap: 6px; }

/* 日期流：年份条 + 行距 + 文案字号 */
.pb-feed-year { font-size: 15px; font-weight: 700; color: #333; line-height: 1.2; }
.pb-feed-list { display: flex; flex-direction: column; }
.pb-feed-row { display: flex; align-items: flex-start; gap: 9px; }
.pb-feed-row .pb-sk-thumb { border-radius: 6px; }
.pb-feed-copy { flex: 1; min-width: 0; color: #333; line-height: 1.55; word-break: break-all; }

/* 动态详情：大图圆角 + 文案字号 + 日期行 + 小图 */
.pb-moment-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(120, 120, 120, .22);
}
.pb-moment-copy { color: #333; line-height: 1.65; word-break: break-all; }
.pb-moment-date { font-size: 9.5px; color: #9a9a92; }
.pb-moment-thumbs { display: flex; gap: 6px; }
.pb-moment-thumb {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: rgba(120, 120, 120, .22);
}

/* 读入中 / 读不出来的手机状态 */
.pb-state {
  padding: 120px 24px;
  text-align: center;
  color: #a9a9a0;
  font-size: 12px;
  line-height: 1.9;
}
.pb-state b { display: block; color: #666; font-size: 13px; margin-bottom: 4px; }

/* 窄屏跟着首页把左栏收窄（和 shell.css 的 .workspace 断点一致） */
@media (max-width: 1400px) {
  .page-builder { grid-template-columns: 210px minmax(280px, 1fr); }
}

/* ============================================================
   2026-11-10 分类页装修：每个分类的版式 / 封面
   设置区（中栏）
   ============================================================ */
.cd-flex {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 8px;
}
.cd-list {
  flex: 1;
  min-width: 0;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cd-side { width: 360px; flex: none; }
.cd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid #f1efe7;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.cd-row:last-child { border-bottom: 0; }
.cd-row:hover { background: #f7f6f1; }
.cd-row.on { background: #1b1b18; color: #fff; }
.cd-thumb {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 4px;
  background: #e3e3e1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-badge {
  flex: none;
  font-size: 10px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid #ddd9cf;
  color: var(--muted);
  background: #faf9f5;
}
.cd-row.on .cd-badge { border-color: #4c4c47; background: #33332f; color: #d9d9d2; }

.cd-picked {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cd-picked-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.cd-picked-h .muted { font-weight: 400; font-size: 10.5px; color: var(--faint); }
.cd-lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cd-lay {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.cd-lay:hover { border-color: #c9c6ba; }
.cd-lay.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cd-lay.wide { grid-column: 1 / -1; }
.cd-lay b { font-size: 11.5px; }
.cd-lay span { font-size: 10px; color: var(--muted); line-height: 1.45; }
.cd-cover { display: flex; gap: 9px; align-items: center; margin: 10px 0 4px; }
.cd-cover-img {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 6px;
  background: #e3e3e1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-cover-img.portrait { width: 48px; height: 64px; }
.cd-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-cover-empty { font-size: 9.5px; color: #a0a099; text-align: center; line-height: 1.3; }
.cd-cover-info { min-width: 0; }
.cd-cover-state { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cd-cover-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   分类页手机预览（右栏 4 种版式，用真实分类 / 封面）
   ============================================================ */
.pb-cd-pane { flex: 1; min-width: 0; padding: 0 4px; overflow: hidden; }
.pb-cd-drill {
  height: 32px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.pb-cd-title {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0 3px;
}
.pb-cd-title::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto 0;
  background: #1a1a1a;
}
.pb-cd-hero {
  position: relative;
  height: 110px;
  margin: 2px 0 8px;
  background: #848484;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-cd-btn {
  border: 1px solid #fff;
  color: #fff;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pb-cd-cards { display: flex; flex-wrap: wrap; }
.pb-cd-card { width: calc(50% - 4px); margin-bottom: 9px; }
.pb-cd-card:nth-child(odd) { margin-right: 8px; }
.pb-cd-img { display: block; width: 100%; background: #e3e3e1; object-fit: cover; }
.pb-cd-img.square { height: 108px; }
.pb-cd-img.portrait { height: 144px; }
.pb-cd-cap {
  padding-top: 3px;
  text-align: center;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-cd-stack { padding-top: 2px; }
.pb-cd-block {
  position: relative;
  height: 218px;
  margin-bottom: 7px;
  background: #848484;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pb-cd-block.portrait { height: 291px; }
.pb-cd-block .pb-cd-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pb-cd-cover { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-cd-sname {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
  color: #fff;
  font-size: 9px;
}
.pb-cd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #efefec;
}
.pb-cd-thumb {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  background: #e3e3e1;
  overflow: hidden;
}
.pb-cd-thumb.portrait { width: 24px; height: 32px; }
.pb-cd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-cd-rname {
  flex: 1;
  min-width: 0;
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-cd-name {
  padding: 8px 0;
  border-bottom: 1px solid #efefec;
  font-size: 10px;
  color: #1a1a1a;
}

.pb-cd-grid4 { display: flex; flex-wrap: wrap; padding-top: 2px; }
.pb-cd-g4 { width: calc(50% - 4px); margin-bottom: 8px; }
.pb-cd-g4:nth-child(odd) { margin-right: 8px; }
.pb-cd-g4img { display: block; width: 100%; background: #848484; object-fit: cover; }
.pb-cd-g4img.square { height: 108px; }
.pb-cd-g4img.portrait { height: 144px; }
.pb-cd-more { text-align: center; font-size: 8.5px; color: #b0b0ac; padding: 7px 0 10px; }
.pb-cd-empty { padding: 18px 10px; text-align: center; font-size: 10px; color: #9a9a95; line-height: 1.8; }
.pb-cd-letter { padding: 6px 0 1px; font-size: 17px; font-weight: 700; }
.pb-cd-brand { padding: 7px 0; font-size: 10px; border-bottom: 1px solid #efefec; }
