/* =====================================================================
   分享中心 · 前台样式
   ---------------------------------------------------------------------
   命名空间统一 shx-*，不触碰站内既有样式。
   视觉基调：深墨 + 鎏金，玻璃质感，桌面居中弹窗 / 手机底部全屏。
   ===================================================================== */

.shx-fab,
.shx-inline,
.shx-modal,
.shx-layer,
.shx-toast {
  --shx-gold: #C8A96A;
  --shx-gold-2: #E7CF9B;
  --shx-gold-deep: #A8843E;
  --shx-ink: #17161A;
  --shx-ink-2: #22212A;
  --shx-line: rgba(200, 169, 106, .22);
  --shx-text: #F3EDE1;
  --shx-text-2: rgba(243, 237, 225, .66);
  --shx-ease: cubic-bezier(.22, .61, .36, 1);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ============================ 悬浮入口 ============================ */
.shx-fab {
  position: fixed;
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 15px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #2A1B10;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold) 46%, var(--shx-gold-deep));
  box-shadow: 0 10px 30px rgba(88, 62, 20, .34), 0 2px 6px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .28s var(--shx-ease), box-shadow .28s var(--shx-ease), opacity .2s;
}
.shx-fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 38px rgba(88, 62, 20, .42), inset 0 1px 0 rgba(255, 255, 255, .55); }
.shx-fab:active { transform: translateY(0) scale(.98); }
.shx-fab svg { width: 19px; height: 19px; fill: currentColor; }
.shx-fab em { font-style: normal; }

.shx-fab--right { right: 22px; bottom: 26px; }
.shx-fab--left { left: 22px; bottom: 26px; }
.shx-fab--bottom-right { right: 22px; bottom: 96px; }

/* 玻璃 / 墨玉两种备选样式（后台可切） */
.shx-fab--glass {
  color: var(--shx-text);
  background: rgba(24, 23, 28, .62);
  border: 1px solid var(--shx-line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.shx-fab--glass svg { fill: var(--shx-gold); }
.shx-fab--ink {
  color: var(--shx-gold-2);
  background: linear-gradient(145deg, #24222B, #14131A);
  border: 1px solid rgba(200, 169, 106, .34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* 呼吸光环 */
.shx-fab::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 106, .5);
  opacity: 0;
  animation: shxPulse 3.4s var(--shx-ease) infinite;
  pointer-events: none;
}
.shx-fab--glass::after,
.shx-fab--ink::after { border-color: rgba(200, 169, 106, .42); }
@keyframes shxPulse {
  0% { transform: scale(.94); opacity: .55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
.shx-fab--hint { animation: shxShake 1.2s ease 2; }
@keyframes shxShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-3deg); }
  50% { transform: translateX(5px) rotate(3deg); }
  80% { transform: translateX(-3px); }
}

/* ============================ 正文内嵌条 ============================ */
.shx-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line, #E5DCC9);
  background: linear-gradient(135deg, rgba(200, 169, 106, .1), rgba(200, 169, 106, .02));
  color: var(--ink, #2B2622);
}
.shx-inline-t b { display: block; font-size: 15px; font-family: var(--serif, serif); letter-spacing: 1px; }
.shx-inline-t span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2, #6B5F55); }
.shx-inline-b { display: flex; flex-wrap: wrap; gap: 8px; }
.shx-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #E5DCC9);
  background: #fff;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .22s var(--shx-ease);
}
.shx-btn:hover { border-color: var(--c-accent, #C8A96A); transform: translateY(-1px); }
.shx-btn svg { width: 15px; height: 15px; fill: currentColor; }
.shx-btn--gold {
  border: 0;
  color: #2A1B10;
  background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold) 50%, var(--shx-gold-deep));
  box-shadow: 0 6px 18px rgba(140, 106, 44, .28);
}
.shx-btn--gold:hover { color: #2A1B10; }

/* ============================ 弹窗 ============================ */
.shx-lock { overflow: hidden; }
.shx-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--shx-ease), visibility .3s;
}
.shx-modal.on { opacity: 1; visibility: visible; }
.shx-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 14, .66);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
}
.shx-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: min(94vh, 900px);
  border-radius: 24px;
  overflow: hidden;
  color: var(--shx-text);
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(200, 169, 106, .16), transparent 60%),
    linear-gradient(160deg, #201F27, #14131A 62%, #100F14);
  border: 1px solid rgba(200, 169, 106, .2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateY(16px) scale(.985);
  transition: transform .38s var(--shx-ease);
}
.shx-modal.on .shx-sheet { transform: none; }

.shx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.shx-head-t b {
  font-size: 17px;
  font-family: var(--serif, serif);
  letter-spacing: 3px;
  background: linear-gradient(100deg, #FFF6E2, var(--shx-gold), #FFF6E2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shx-head-t span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--shx-text-2); letter-spacing: .4px; }
.shx-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: var(--shx-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}
.shx-close:hover { background: rgba(255, 255, 255, .12); transform: rotate(90deg); }
.shx-close svg { width: 17px; height: 17px; fill: currentColor; }

.shx-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  min-height: 0;
  flex: 1;
}

/* —— 预览区 —— */
.shx-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 24px 16px;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 169, 106, .09), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 9px);
}
.shx-canvas-host {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  flex: 1;
}
.shx-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  background: #fff;
  animation: shxIn .45s var(--shx-ease);
}
@keyframes shxIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.shx-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.shx-thumb {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
  opacity: .6;
  transition: .2s;
}
.shx-thumb.on { opacity: 1; border-color: var(--shx-gold); box-shadow: 0 0 0 2px rgba(200, 169, 106, .28); }
.shx-thumb i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font: 600 10px/15px "PingFang SC", sans-serif;
  text-align: center;
  font-style: normal;
}
.shx-stage-tip { font-size: 11.5px; color: rgba(243, 237, 225, .38); letter-spacing: .3px; }

/* —— 控制区 —— */
.shx-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .022);
}
.shx-tabs { display: flex; gap: 6px; padding: 12px 16px 0; }
.shx-tabs button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .04);
  color: var(--shx-text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: .2s;
}
.shx-tabs button.on {
  color: #201A10;
  background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold) 55%, var(--shx-gold-deep));
  box-shadow: 0 6px 16px rgba(140, 106, 44, .3);
}
.shx-panes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }
.shx-panes::-webkit-scrollbar { width: 8px; }
.shx-panes::-webkit-scrollbar-thumb { background: rgba(200, 169, 106, .22); border-radius: 4px; }
.shx-pane { display: none; }
.shx-pane.on { display: block; animation: shxFade .28s var(--shx-ease); }
@keyframes shxFade { from { opacity: 0; transform: translateY(6px); } }

.shx-sec { padding: 12px 0 14px; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.shx-sec:last-child { border-bottom: 0; }
.shx-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.shx-sec-h b { font-size: 13px; letter-spacing: 1.2px; }
.shx-sec-h span { font-size: 11px; color: rgba(243, 237, 225, .38); }

/* 设计卡片 */
.shx-designs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shx-dcard {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: .2s;
}
.shx-dcard:hover { border-color: rgba(200, 169, 106, .4); }
.shx-dcard.on { border-color: var(--shx-gold); background: rgba(200, 169, 106, .12); box-shadow: 0 0 0 1px rgba(200, 169, 106, .3); }
.shx-dcard-sw {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(160deg, #6E1F1A, #33100E);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.shx-dcard-sw i, .shx-dcard-sw b, .shx-dcard-sw u { position: absolute; display: block; text-decoration: none; }
.shx-dcard-sw i { left: 5px; top: 8px; width: 20px; height: 3px; background: rgba(255, 255, 255, .82); }
.shx-dcard-sw b { left: 5px; top: 15px; width: 14px; height: 3px; background: rgba(255, 255, 255, .5); }
.shx-dcard-sw u { right: 4px; bottom: 4px; width: 10px; height: 10px; background: rgba(255, 255, 255, .8); border-radius: 1px; }
.shx-sw-minimal { background: linear-gradient(160deg, #FCF9F2, #EDE4D2); }
.shx-sw-minimal i { background: #2B2622; }
.shx-sw-minimal b { background: rgba(43, 38, 34, .45); }
.shx-sw-minimal u { background: #2B2622; }
.shx-sw-magazine { background: linear-gradient(160deg, #8E6F4E, #2B1E14 70%); }
.shx-sw-verse { background: linear-gradient(160deg, #1B1A1D, #0C0B0E); }
.shx-sw-verse i { left: 6px; top: 12px; width: 18px; height: 8px; background: #C8A96A; border-radius: 2px; }
.shx-sw-night { background: linear-gradient(160deg, #1D2530, #0B0E13); }
.shx-sw-scroll { background: linear-gradient(160deg, #F6EEDC, #E4D6BA); }
.shx-sw-scroll i { background: #9A3324; }
.shx-sw-scroll u { background: #9A3324; }
.shx-sw-aurora { background: linear-gradient(150deg, #4432A8, #1B8C9B 60%, #0E1220); }
.shx-dcard-t b { display: block; font-size: 12.5px; letter-spacing: .6px; }
.shx-dcard-t i { display: block; margin-top: 2px; font-size: 10px; color: rgba(243, 237, 225, .42); font-style: normal; line-height: 1.35; }

/* 芯片按钮 */
.shx-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.shx-chips--3 .shx-chip { flex: 1 1 calc(33.33% - 7px); justify-content: center; }
.shx-chips--4 .shx-chip { flex: 1 1 calc(25% - 7px); justify-content: center; }
.shx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  color: var(--shx-text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.shx-chip i { font-style: normal; font-size: 10px; opacity: .55; }
.shx-chip:hover { border-color: rgba(200, 169, 106, .42); color: var(--shx-text); }
.shx-chip.on { border-color: var(--shx-gold); color: #2A1B10; background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold)); }
.shx-chip.on i { opacity: .7; }
.shx-chip-sh {
  display: inline-block;
  width: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .7;
}

/* 配色色卡 */
.shx-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.shx-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: .2s;
}
.shx-swatch i { position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.shx-swatch:hover { transform: scale(1.08); }
.shx-swatch.on { box-shadow: 0 0 0 2px #14131A, 0 0 0 4px var(--shx-gold); }
.shx-swatch--custom { background: conic-gradient(#C8A96A, #B4232A, #2C3A52, #26443A, #C8A96A); }
.shx-swatch--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* 滑块 */
.shx-range { margin-top: 6px; }
.shx-range label { display: flex; justify-content: space-between; font-size: 12px; color: var(--shx-text-2); margin-bottom: 4px; }
.shx-range label b { color: var(--shx-gold-2); font-weight: 600; }
.shx-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.shx-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 169, 106, .85), rgba(255, 255, 255, .12));
}
.shx-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFF3DA, var(--shx-gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.shx-range input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.shx-range input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--shx-gold); }

/* 开关 */
.shx-tgs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.shx-tg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
  color: var(--shx-text-2);
  cursor: pointer;
  transition: .18s;
  user-select: none;
}
.shx-tg input { position: absolute; opacity: 0; width: 0; height: 0; }
.shx-tg i {
  flex: 0 0 auto;
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  transition: .22s;
}
.shx-tg i::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9C9484;
  transition: .22s var(--shx-ease);
}
.shx-tg.on { color: var(--shx-text); border-color: rgba(200, 169, 106, .32); }
.shx-tg.on i { background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold-deep)); }
.shx-tg.on i::after { transform: translateX(12px); background: #2A1B10; }
.shx-tg--wide { margin-top: 10px; }
.shx-note { margin-top: 7px; font-size: 11px; line-height: 1.6; color: rgba(243, 237, 225, .38); }
.shx-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .26);
  color: var(--shx-text);
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: .2s;
}
.shx-input:focus { border-color: var(--shx-gold); box-shadow: 0 0 0 3px rgba(200, 169, 106, .14); }

/* —— 底部动作 —— */
.shx-foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: 12px 18px 14px; background: rgba(0, 0, 0, .18); }
.shx-acts { display: flex; gap: 7px; flex-wrap: wrap; }
.shx-act {
  flex: 1 1 0;
  min-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: var(--shx-text-2);
  font-size: 11.5px;
  cursor: pointer;
  transition: .2s var(--shx-ease);
}
.shx-act:hover { color: var(--shx-text); border-color: rgba(200, 169, 106, .42); transform: translateY(-2px); }
.shx-act svg { width: 19px; height: 19px; fill: currentColor; }
.shx-ic { display: inline-flex; }
.shx-act--main {
  flex: 1.5 1 0;
  color: #2A1B10;
  border: 0;
  background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold) 48%, var(--shx-gold-deep));
  box-shadow: 0 8px 22px rgba(140, 106, 44, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
  font-weight: 700;
}
.shx-act--main:hover { color: #2A1B10; }
.shx-act--main svg { fill: #2A1B10; }
.shx-act.is-busy { opacity: .6; pointer-events: none; }
.shx-saveall { margin-top: 9px; text-align: center; }
.shx-saveall .shx-btn { height: 34px; font-size: 12.5px; }
.shx-saveall b { color: var(--shx-gold-2); }

/* ============================ 浮层（微信指引 / 二维码） ============================ */
.shx-layer { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.shx-layer-mask { position: absolute; inset: 0; background: rgba(10, 9, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.shx-layer-box {
  position: relative;
  max-width: min(880px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  color: var(--shx-text);
  background: linear-gradient(160deg, #22212A, #121116);
  border: 1px solid rgba(200, 169, 106, .24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: shxIn .32s var(--shx-ease);
}
.shx-layer-x {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .4);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}
.shx-layer-x svg { width: 15px; height: 15px; fill: currentColor; }
.shx-wx { display: flex; gap: 22px; align-items: center; }
.shx-wx-img img {
  display: block;
  width: 300px;
  max-width: 40vw;
  border-radius: 12px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .55);
  -webkit-touch-callout: default;
  user-select: auto;
}
.shx-wx-tip b { font-size: 15px; letter-spacing: 1.5px; color: var(--shx-gold-2); }
.shx-wx-tip ol { margin: 10px 0 14px 18px; font-size: 12.5px; line-height: 2; color: var(--shx-text-2); }
.shx-wx-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.shx-wx-acts .shx-btn { height: 36px; font-size: 12.5px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--shx-text); }
.shx-wx-acts .shx-btn--gold { color: #2A1B10; background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold)); border: 0; }
.shx-qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 26px 6px; }
.shx-qrbox b { font-size: 15px; letter-spacing: 3px; color: var(--shx-gold-2); }
.shx-qrbox img { width: 260px; height: 260px; border-radius: 14px; background: #fff; padding: 10px; }
.shx-qrurl { font-size: 11.5px; color: var(--shx-text-2); word-break: break-all; text-align: center; max-width: 320px; }

/* Toast */
.shx-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 1400;
  transform: translate(-50%, 14px);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: #241A0E;
  font-weight: 600;
  background: linear-gradient(145deg, #FFF1D6, var(--shx-gold));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transition: .28s var(--shx-ease);
}
.shx-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 平板 ============================ */
@media (max-width: 1080px) {
  .shx-main { grid-template-columns: minmax(0, 1fr) 344px; }
  .shx-designs { grid-template-columns: 1fr; }
  .shx-head-t span { display: none; }
}

/* ============================ 手机 ============================ */
@media (max-width: 720px) {
  .shx-fab { height: 46px; padding: 0 14px 0 12px; font-size: 13px; }
  .shx-fab--right { right: 14px; bottom: 16px; }
  .shx-fab--left { left: 14px; bottom: 16px; }
  .shx-fab--bottom-right { right: 14px; bottom: 84px; }
  .shx-modal { padding: 0; align-items: stretch; }
  .shx-sheet {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  .shx-head { padding: 12px 14px 10px; }
  .shx-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42vh) minmax(0, 1fr); }
  .shx-stage { padding: 12px 12px 8px; gap: 8px; }
  .shx-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .shx-tabs { padding: 10px 12px 0; }
  .shx-panes { padding: 10px 12px 14px; }
  .shx-designs { grid-template-columns: 1fr 1fr; }
  .shx-foot { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .shx-acts { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shx-acts::-webkit-scrollbar { display: none; }
  .shx-act { flex: 0 0 auto; min-width: 66px; }
  .shx-act--main { flex: 0 0 auto; min-width: 96px; }
  .shx-stage-tip { display: none; }
  .shx-wx { flex-direction: column; gap: 14px; }
  .shx-wx-img img { width: 62vw; max-width: 62vw; }
  .shx-wx-tip ol { font-size: 12px; }
  .shx-inline { padding: 14px; }
  .shx-inline-b { width: 100%; }
  .shx-inline-b .shx-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .shx-fab::after { animation: none; }
  .shx-sheet, .shx-canvas, .shx-pane.on { animation: none; transition: none; }
}

/* =====================================================================
   卡片式分享链接（公众号图文卡）
   ---------------------------------------------------------------------
   左侧实时预览 + 右侧参数，移动端上下排布；预览用 CSS 变量描述
   模板基调，与落地页 share-card.css 同一套视觉语言。
   ===================================================================== */
.shx-layer--lc { padding: 24px; }
.shx-layer--lc .shx-layer-box {
  max-width: min(1060px, 100%);
  padding: 0;
  overflow: hidden;
  display: flex;
}
.shx-lc { display: flex; flex-direction: column; width: 100%; max-height: 92vh; min-height: 0; }
.shx-lc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 24px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, rgba(200, 169, 106, .07), transparent 60%);
}
.shx-lc-head-t b { display: block; font-size: 16px; letter-spacing: 2px; color: var(--shx-gold-2); }
.shx-lc-head-t span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--shx-text-2); }
.shx-lc-head .shx-layer-x { position: static; flex: 0 0 auto; }

.shx-lc-body { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); min-height: 0; flex: 1; }
.shx-lc-left {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 24px 18px;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(200, 169, 106, .11), transparent 58%),
    radial-gradient(90% 70% at 92% 100%, rgba(154, 51, 36, .14), transparent 60%),
    #0C0B10;
  overflow: auto;
}
.shx-lc-stage { width: 100%; display: flex; justify-content: center; }
.shx-lc-tip { font-size: 10.5px; color: rgba(243, 237, 225, .32); letter-spacing: .04em; }
.shx-lc-right { padding: 4px 20px 14px; overflow: auto; border-left: 1px solid rgba(255, 255, 255, .07); }

.shx-lc-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
}
.shx-lc-foot .shx-btn { height: 38px; font-size: 12.5px; }
.shx-lc-foot .shx-btn[disabled] { opacity: .38; cursor: not-allowed; }

/* ---------------- 卡片预览 ---------------- */
.shx-lcard {
  width: 100%; max-width: 352px;
  display: grid;
  grid-template-areas: "media" "main" "foot";
  grid-template-columns: minmax(0, 1fr);
  background: var(--lc-card);
  color: var(--lc-ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 54px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: box-shadow .2s;
}
.shx-lcard--right { grid-template-columns: minmax(0, 1fr) 34%; grid-template-areas: "main media" "foot foot"; }
.shx-lcard--text { grid-template-areas: "main" "foot"; }
.shx-lcard--gold { box-shadow: 0 24px 54px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(200, 169, 106, .45); }

.shx-lcard-media {
  grid-area: media; position: relative;
  aspect-ratio: var(--lc-ratio, 16 / 9);
  overflow: hidden; background: var(--lc-tint);
}
.shx-lcard--right .shx-lcard-media {
  aspect-ratio: 1 / 1;
  margin: 16px 16px 0 0;
  border-radius: 10px;
  align-self: start;
}
.shx-lcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shx-lcard-media--ph { display: grid; place-items: center; }
.shx-lcard-ph {
  font-family: var(--serif, "Songti SC", serif);
  font-size: 56px; font-weight: 700;
  color: var(--lc-accent); opacity: .22;
  letter-spacing: .1em;
}
.shx-lcard-cat {
  position: absolute; left: 11px; top: 11px;
  font-size: 10px; letter-spacing: .07em;
  color: #fff; padding: 2.5px 8px; border-radius: 5px;
  background: color-mix(in srgb, var(--lc-accent) 88%, #000);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.shx-lcard-cat--in {
  position: static; display: inline-block; margin-bottom: 9px;
  color: var(--lc-accent); background: var(--lc-tint);
  box-shadow: none;
}

.shx-lcard-main { grid-area: main; padding: 16px 18px 8px; min-width: 0; }
.shx-lcard--text .shx-lcard-main { padding-top: 22px; }
.shx-lcard-title {
  margin: 0 0 8px;
  font-family: var(--serif, "Songti SC", serif);
  font-weight: 700; font-size: 19px; line-height: 1.38;
  letter-spacing: .005em; color: var(--lc-ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-clamp: 3; overflow: hidden;
}
.shx-lcard--magazine .shx-lcard-title { font-size: 21px; letter-spacing: .01em; }
.shx-lcard--gold .shx-lcard-title { color: #F6E9CE; }
.shx-lcard-desc {
  margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--lc-ink2);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lc-lines, 2); line-clamp: var(--lc-lines, 2);
  overflow: hidden;
}
.shx-lcard-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 11px; font-size: 10.5px; color: var(--lc-ink3);
}
.shx-lcard-meta i { width: 2.5px; height: 2.5px; border-radius: 50%; background: currentColor; opacity: .6; }

.shx-lcard-foot {
  grid-area: foot;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 18px 14px;
  border-top: 1px solid var(--lc-line);
  margin-top: 8px;
}
.shx-lcard-dom {
  font-size: 10.5px; color: var(--lc-ink3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shx-lcard-cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 3px;
  height: 26px; padding: 0 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lc-accent) 76%, #fff), var(--lc-accent));
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--lc-accent) 85%, transparent);
}
.shx-lcard-cta i { font-style: normal; font-size: 12px; opacity: .9; }

/* ---------------- 模板选择 ---------------- */
.shx-lc-tpls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.shx-lc-tpl {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 3px 7px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  color: var(--shx-text-2); font-size: 10.5px;
  transition: .16s;
}
.shx-lc-tpl:hover { border-color: rgba(200, 169, 106, .45); color: var(--shx-text); }
.shx-lc-tpl.on { border-color: rgba(200, 169, 106, .7); background: rgba(200, 169, 106, .12); color: var(--shx-gold-2); }
.shx-lc-tpl em { font-style: normal; letter-spacing: .02em; }
.shx-lc-sw { position: relative; width: 30px; height: 23px; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.shx-lc-sw i { position: absolute; left: 3px; top: 3px; width: 24px; height: 8px; border-radius: 2px; background: #E9E3D8; }
.shx-lc-sw b { position: absolute; left: 3px; top: 14px; width: 18px; height: 3px; border-radius: 2px; background: #2B2622; opacity: .85; }
.shx-lc-sw--night { background: #171A20; }
.shx-lc-sw--night i { background: #343A44; }
.shx-lc-sw--night b { background: #EDE7DC; }
.shx-lc-sw--paper { background: #FCF8F0; }
.shx-lc-sw--paper i { background: #E3D6BC; }
.shx-lc-sw--paper b { background: #9A3324; }
.shx-lc-sw--magazine { background: #1E1A16; }
.shx-lc-sw--magazine i { height: 14px; background: #6B5442; }
.shx-lc-sw--magazine b { top: 17px; background: #FBF3E4; }
.shx-lc-sw--gold { background: #13100C; box-shadow: inset 0 0 0 1px rgba(200, 169, 106, .5); }
.shx-lc-sw--gold i { background: rgba(200, 169, 106, .3); }
.shx-lc-sw--gold b { background: #E3C88A; }

.shx-lc-color { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11.5px; color: var(--shx-text-2); }
.shx-lc-color input[type="color"] { width: 40px; height: 30px; padding: 2px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .3); }

/* ---------------- 生成结果 ---------------- */
.shx-lc-result {
  margin-top: 14px; padding: 12px 13px 13px;
  border-radius: 12px;
  background: rgba(200, 169, 106, .08);
  border: 1px solid rgba(200, 169, 106, .3);
}
.shx-lc-result-h { display: flex; align-items: baseline; justify-content: space-between; }
.shx-lc-result-h b { font-size: 12.5px; color: var(--shx-gold-2); letter-spacing: .06em; }
.shx-lc-result-h span { font-size: 10.5px; color: var(--shx-text-2); }
.shx-lc-url { display: flex; gap: 6px; margin-top: 9px; }
.shx-lc-url input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(0, 0, 0, .32); color: var(--shx-text);
  font-size: 11.5px; font-family: inherit;
}
.shx-lc-url button {
  flex: 0 0 auto; height: 34px; padding: 0 13px; border: 0; border-radius: 8px;
  background: linear-gradient(145deg, var(--shx-gold-2), var(--shx-gold));
  color: #2A1B10; font-weight: 700; font-size: 12px; cursor: pointer;
}
.shx-lc-note { margin-top: 8px; font-size: 10.5px; color: var(--shx-text-2); line-height: 1.6; }

@media (max-width: 900px) {
  .shx-layer--lc { padding: 0; align-items: stretch; }
  .shx-layer--lc .shx-layer-box { max-width: none; height: 100%; max-height: 100vh; border-radius: 0; border: 0; }
  .shx-lc { max-height: 100vh; height: 100%; }
  .shx-lc-body { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .shx-lc-left { padding: 18px 16px 14px; }
  .shx-lc-right { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 16px 16px; }
  .shx-lc-head { padding: 16px 16px 12px; }
  .shx-lc-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
  .shx-lc-foot .shx-btn { flex: 1 1 auto; justify-content: center; }
  .shx-lcard { max-width: 330px; }
}
@media (max-width: 420px) {
  .shx-lc-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shx-lcard-title { font-size: 17.5px; }
  .shx-lcard-main { padding: 14px 15px 6px; }
  .shx-lcard-foot { padding: 10px 15px 12px; }
}

/* 内嵌分享条（经文页尾部变体）：跟随内容自适应铺满，与纸张留白对齐 */
.shx-inline--tail { margin: 18px 0 6px; width: 100%; }
