/* 首页抄心经：纸本字格 + Composition 安全输入（中老年高对比） */

.nj-cj-wrap {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  box-sizing: border-box;
}

.nj-chaojing {
  --nj-cj-ink: #1a1008;
  --nj-cj-muted: #5c4528;
  --nj-cj-ghost: #4a3420;
  --nj-cj-paper: #fff8e8;
  --nj-cj-line: rgba(70, 48, 18, 0.42);
  --nj-cj-ok: #0d3d8c;
  --nj-cj-bad: #a11010;
  --nj-cj-cur: #ffe6a8;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Songti SC", serif;
  color: var(--nj-cj-ink);
  background:
    linear-gradient(165deg, #ffffff 0%, var(--nj-cj-paper) 48%, #f3e2b8 100%);
  border: 1px solid rgba(140, 105, 50, 0.42);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(40, 20, 0, 0.1);
  padding: 0 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

/* —— 顶部独立匾额：与下方抄写本区分开 —— */
.nj-cj-masthead {
  position: relative;
  isolation: isolate;
  margin: 0 0 14px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid rgba(154, 122, 58, 0.35);
  background:
    linear-gradient(165deg, #fffdf8 0%, #f7edd4 55%, #efe0bc 100%);
  box-shadow: none;
}

.nj-cj-mast-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 13px 12px;
  background:
    linear-gradient(180deg, #6a4a22 0%, #4a3214 48%, #3a2710 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.72);
  box-shadow: inset 0 -1px 0 rgba(255, 236, 180, 0.18);
}

.nj-cj-mast-ico {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: url("visitor-map/huofo.svg") center / contain no-repeat;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background-color: transparent;
}

/* 覆盖 body.slide.slide3 h2 { color:#fff } —— 标题在深褐顶栏内 */
.nj-chaojing .nj-cj-title,
body.slide.slide3 .nj-chaojing .nj-cj-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", serif !important;
  font-size: clamp(18px, 2.4vw, 24px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  line-height: 1.35 !important;
  color: #fff4c8 !important;
  text-align: left !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

.nj-cj-mast-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 208, 120, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #f0d078;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nj-cj-mast-body {
  position: relative;
  z-index: 1;
  padding: 16px 18px 15px;
}

.nj-cj-must {
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  border-left: 3px solid rgba(189, 135, 11, 0.55);
  background: transparent;
  border-radius: 0;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.nj-cj-must-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6a4a22, #4a3214);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #fff4c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  box-shadow: 0 1px 0 rgba(255, 236, 180, 0.12) inset;
}

.nj-cj-must-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #3a2412;
  font-family: "LXGW WenKai", "KaiTi", "Microsoft YaHei", sans-serif;
}

.nj-cj-must-quote {
  font-style: normal;
  font-weight: 700;
  color: #1e4a9c;
}

.nj-cj-tips {
  margin: 0 0 14px;
  padding: 10px 12px;
  list-style: none;
  color: #5c4528;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  background: rgba(255, 252, 244, 0.55);
  border: 1px dashed rgba(154, 122, 58, 0.32);
  border-radius: 8px;
}

.nj-cj-tips li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 1em;
}

.nj-cj-tips li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9px;
  line-height: 1.9;
  color: #c9a227;
}

.nj-cj-tips li:last-child {
  margin-bottom: 0;
}

.nj-cj-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(154, 122, 58, 0.28);
}

.nj-cj-progress-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8a6a28;
}

.nj-cj-progress-track {
  flex: 1 1 auto;
  height: 7px;
  border-radius: 999px;
  background: rgba(120, 90, 40, 0.12);
  overflow: hidden;
}

.nj-cj-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6914, #c9a227);
  transition: width 0.2s ease;
}

.nj-cj-progress-text {
  flex: 0 0 auto;
  font-size: 14px;
  color: #3a2814;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 5.5em;
  text-align: right;
}

.nj-cj-mast-lotus {
  position: absolute;
  right: -3%;
  bottom: -6%;
  width: min(220px, 55%);
  height: min(140px, 55%);
  z-index: 0;
  pointer-events: none;
  background-color: #8a6a38;
  -webkit-mask: url("../jing-img/decor/lotus-ornament.svg") no-repeat right bottom / contain;
  mask: url("../jing-img/decor/lotus-ornament.svg") no-repeat right bottom / contain;
  opacity: 0.1;
}

/* 旧类名兼容（若别处仍引用） */
.nj-cj-head,
.nj-cj-hint {
  display: none;
}

@media (max-width: 560px) {
  .nj-cj-mast-badge {
    display: none;
  }

  .nj-cj-progress {
    flex-wrap: wrap;
  }

  .nj-cj-progress-label {
    width: 100%;
  }
}

/*
 * 经书三区（始终完整可见）：
 * 1. 已抄：并成一整段
 * 2. 当前：高亮 + 唯一输入框
 * 3. 未抄：灰色，一行一行等候
 */
.nj-cj-book {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 12px;
  padding: 12px 10px;
  box-sizing: border-box;
  background: #fffef9;
  border: 1px solid rgba(120, 85, 35, 0.28);
  border-radius: 12px;
}

/* 已抄：竖向一行行堆叠（如诗文）；右侧淡底「抄心经」图标，避免空白 */
.nj-cj-done-sheet {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-height: 7.5em;
  padding: 10px 8px 12px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #fffef9 0%, #fff 48%, #faf3e4 100%);
  border: 1px solid rgba(120, 85, 35, 0.22);
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none; /* 已抄文字不可点回 */
}

.nj-cj-done-sheet::after {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: min(280px, 52%);
  height: min(280px, 92%);
  background-color: #8a6a38;
  -webkit-mask: url("../jing-img/decor/chao-xinjing.svg") no-repeat center / contain;
  mask: url("../jing-img/decor/chao-xinjing.svg") no-repeat center / contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.nj-cj-done-sheet > * {
  position: relative;
  z-index: 1;
}

.nj-cj-done-empty {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  color: #8a7355;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.nj-cj-done-sheet .nj-cj-line.is-complete {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 2px 0 4px;
  border: none;
  background: transparent;
}

.nj-cj-done-sheet .nj-cj-line.is-complete .nj-cj-units {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.nj-cj-done-sheet .nj-cj-cell {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.nj-cj-done-sheet .nj-cj-unit {
  cursor: default !important;
  pointer-events: none !important;
}

.nj-cj-done-sheet .nj-cj-py {
  color: #6a5638;
  font-size: 11px;
  height: 1.15em;
  line-height: 1.15em;
}

/* 已抄定稿：深墨 + 楷体（像经文）；过程中对错仍用蓝/红 */
.nj-cj-done-sheet .nj-cj-ink {
  color: #1a1008 !important;
  font-weight: 700;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Songti SC", serif !important;
}

.nj-cj-done-sheet .nj-cj-ghost {
  opacity: 0;
}

.nj-cj-done-sheet .nj-cj-unit {
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Songti SC", serif;
}

.nj-cj-work {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nj-cj-work .nj-cj-line.is-active {
  order: 1;
}

.nj-cj-work .nj-cj-input-bar {
  order: 2;
}

.nj-cj-line {
  position: relative;
  box-sizing: border-box;
}

.nj-cj-line.is-active {
  position: relative;
  padding: 12px 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(150, 100, 30, 0.65);
  background: #fff6d8;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.28) inset;
  overflow: visible;
}

.nj-cj-line.is-active.is-composing {
  border-color: rgba(80, 120, 180, 0.45);
}

/* 当前行放大：更大格 + 米字虚线，输入更舒适 */
.nj-cj-line.is-active .nj-cj-unit {
  width: 4.15em;
}

.nj-cj-line.is-active .nj-cj-cell {
  width: 4.15em;
  height: 4.15em;
  border-width: 2px;
  border-radius: 6px;
  background-color: #fffdf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='50' x2='100' y2='50' stroke='%23c9a44a' stroke-width='1.2' stroke-dasharray='5 4' opacity='0.55'/%3E%3Cline x1='50' y1='0' x2='50' y2='100' stroke='%23c9a44a' stroke-width='1.2' stroke-dasharray='5 4' opacity='0.55'/%3E%3Cline x1='6' y1='6' x2='94' y2='94' stroke='%23c9a44a' stroke-width='1' stroke-dasharray='4 4' opacity='0.4'/%3E%3Cline x1='94' y1='6' x2='6' y2='94' stroke='%23c9a44a' stroke-width='1' stroke-dasharray='4 4' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.nj-cj-line.is-active .nj-cj-py {
  font-size: 16px;
  height: 1.55em;
  line-height: 1.55em;
  color: #3a2814;
  font-weight: 700;
}

.nj-cj-line.is-active .nj-cj-ghost {
  font-size: 1.95em;
  opacity: 0.42;
}

.nj-cj-line.is-active .nj-cj-ink {
  font-size: 2em;
}

.nj-cj-line.is-active .nj-cj-pause-mark {
  width: 0.5em;
  height: 0.5em;
  right: -0.42em;
  bottom: 0.14em;
}

.nj-cj-line.is-active .nj-cj-unit.is-pause {
  margin-right: 1.05em;
}

/* 正反馈：福气 +1 上浮渐隐 */
.nj-cj-fuqi {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  z-index: 30;
  margin: 0;
  padding: 0;
  color: #c45a12;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.9), 0 2px 8px rgba(160, 70, 10, 0.25);
  white-space: nowrap;
  pointer-events: none;
  animation: nj-cj-fuqi-rise 1.15s ease-out forwards;
}

@keyframes nj-cj-fuqi-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.86);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -52px) scale(1);
  }
}

.nj-cj-input-bar {
  position: relative;
  padding: 0 2px 4px;
}

.nj-cj-input-bar[hidden] {
  display: none !important;
}

/* 输入框外壳：明确「可打字」的表单感，照顾中老年认知 */
.nj-cj-input-shell {
  position: relative;
  display: block;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(60, 35, 10, 0.08);
}

.nj-cj-pending {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
}

/* 未抄行：去掉虚框；行距略收，给首页 FAQ 留纵向空间，仍保持可读 */
.nj-cj-line.is-pending {
  padding: 0 2px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.nj-cj-line.is-pending .nj-cj-ghost {
  color: #7a6a55;
  opacity: 0.7;
  font-weight: 700;
}

.nj-cj-line.is-pending .nj-cj-py {
  color: #9a8a70;
}

.nj-cj-line.is-pending .nj-cj-cell {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(120, 85, 35, 0.18);
}

.nj-cj-line.is-pending .nj-cj-ink {
  display: none;
}

.nj-cj-cell .nj-cj-ink,
.nj-cj-cell .nj-cj-ghost {
  pointer-events: none;
}

.nj-cj-units {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
}

.nj-cj-line.is-pending .nj-cj-units {
  gap: 3px 9px;
}

.nj-cj-line.is-active .nj-cj-units {
  margin-bottom: 6px;
  gap: 10px 12px;
}

.nj-cj-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2.75em;
  cursor: pointer;
  flex: 0 0 auto;
}

/* 断句：用经文句读图标（逗号红点 / 句号红圈），用户无需输入 */
.nj-cj-unit.is-pause {
  position: relative;
  margin-right: 0.85em;
}

.nj-cj-pause-mark {
  position: absolute;
  right: -0.38em;
  bottom: 0.12em;
  width: 0.42em;
  height: 0.42em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

.nj-cj-pause-dou {
  background-image: url("../jing-img/marks/douhao.svg");
  width: 0.4em;
  height: 0.4em;
  right: -0.34em;
  bottom: 0.18em;
}

.nj-cj-pause-ju {
  background-image: url("../jing-img/marks/juhao.svg");
  width: 0.44em;
  height: 0.44em;
  right: -0.36em;
  bottom: 0.1em;
}

.nj-cj-unit.is-line-end {
  margin-right: 0.2em;
}

.nj-cj-unit.is-pause.is-line-end {
  margin-right: 0.85em;
}

.nj-cj-done-sheet .nj-cj-pause-mark {
  opacity: 0.95;
}

.nj-cj-line.is-pending .nj-cj-pause-mark {
  opacity: 0.55;
}

.nj-cj-py {
  display: block;
  width: 100%;
  height: 1.2em;
  text-align: center;
  font-size: 11px;
  line-height: 1.2em;
  color: #4a3420;
  font-weight: 600;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
}

.nj-cj-line.is-pending .nj-cj-py {
  height: 1.15em;
  font-size: 11px;
  line-height: 1.15em;
  margin-bottom: 1px;
}

.nj-cj-cell {
  position: relative;
  width: 2.75em;
  height: 2.75em;
  box-sizing: border-box;
  border: 1.5px solid var(--nj-cj-line);
  margin: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background: #fff;
  padding: 0;
}

.nj-cj-cell .nj-cj-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45em;
  font-weight: 700;
  color: var(--nj-cj-ghost);
  opacity: 0.55;
  pointer-events: none;
}

.nj-cj-cell .nj-cj-ink {
  position: relative;
  z-index: 1;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1;
}

.nj-cj-cell.is-ok .nj-cj-ghost {
  opacity: 0.12;
}

.nj-cj-cell.is-ok .nj-cj-ink {
  color: var(--nj-cj-ok);
}

.nj-cj-cell.is-bad .nj-cj-ink {
  color: var(--nj-cj-bad);
}

.nj-cj-cell.is-cursor {
  background-color: var(--nj-cj-cur);
  box-shadow: inset 0 -3px 0 #b8860b;
}

.nj-cj-line.is-active .nj-cj-cell.is-cursor {
  /* 保留米字格，仅换底色提示光标 */
  background-color: #ffe9a8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='50' x2='100' y2='50' stroke='%23c9a44a' stroke-width='1.2' stroke-dasharray='5 4' opacity='0.55'/%3E%3Cline x1='50' y1='0' x2='50' y2='100' stroke='%23c9a44a' stroke-width='1.2' stroke-dasharray='5 4' opacity='0.55'/%3E%3Cline x1='6' y1='6' x2='94' y2='94' stroke='%23c9a44a' stroke-width='1' stroke-dasharray='4 4' opacity='0.4'/%3E%3Cline x1='94' y1='6' x2='6' y2='94' stroke='%23c9a44a' stroke-width='1' stroke-dasharray='4 4' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.nj-cj-cell.is-punct .nj-cj-ghost {
  color: #8b1e1e;
  opacity: 0.7;
}

/* 英文态误触：醒目提示，避免以为输入框坏了 */
.nj-cj-en-tip {
  margin: 0 2px 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #7a2e0c;
  background: #fff3d6;
  border: 1px solid rgba(180, 100, 30, 0.45);
  border-radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(80, 40, 0, 0.08);
}

.nj-cj-en-tip[hidden] {
  display: none !important;
}

.nj-cj-input-bar.is-en-tip .nj-cj-capture {
  border-color: rgba(180, 100, 30, 0.65) !important;
}

.nj-cj-input-shell {
  cursor: text;
}

.nj-cj-capture {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  /* 左侧色条提示「这里可输入」；右侧给角标留空 */
  padding: 14px 52px 16px 18px !important;
  border: 2px solid #8a6a3a !important;
  border-left: 5px solid #c9a227 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow:
    inset 0 2px 5px rgba(40, 25, 8, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset !important;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", serif !important;
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  height: auto !important;
  min-height: 52px !important;
  /* 字间拉开，避免挤在一起 */
  letter-spacing: 0.55em !important;
  color: var(--nj-cj-ink) !important;
  outline: none;
  caret-color: #8b6914;
}

.nj-cj-capture::placeholder {
  color: #9a8a70 !important;
  font-weight: 600;
  letter-spacing: 0.12em !important;
  opacity: 1;
}

.nj-cj-capture:focus {
  border-color: #a67c1a !important;
  border-left-color: #8b6914 !important;
  background: #fffef8 !important;
  box-shadow:
    inset 0 2px 5px rgba(40, 25, 8, 0.06),
    0 0 0 3px rgba(201, 162, 39, 0.28) !important;
}

.nj-cj-capture.is-wrong {
  color: var(--nj-cj-bad) !important;
  border-color: rgba(180, 50, 40, 0.55) !important;
  border-left-color: #b42318 !important;
}

/* 右下角「输入」角标：强化可输入认知 */
.nj-cj-input-badge {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(140, 105, 50, 0.35);
  background: linear-gradient(180deg, #fffaf0, #f3e6c8);
  color: #6b5528;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(40, 25, 8, 0.08);
}

.nj-cj-input-badge::before {
  content: "✎";
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
}

.nj-cj-input-shell.is-focused .nj-cj-input-badge {
  border-color: rgba(160, 120, 40, 0.55);
  background: linear-gradient(180deg, #fff6d8, #edd9a0);
  color: #5a3f1c;
}

.nj-cj-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(120, 90, 40, 0.12);
}

/* 覆盖 jing-img/style.css button{height:20px} 导致文字折行变形 */
button.nj-cj-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: auto !important;
  height: auto !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 1px solid rgba(140, 100, 40, 0.45) !important;
  background: #fff !important;
  color: #1a1008 !important;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25 !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}

button.nj-cj-btn:hover {
  background: #fff6d8 !important;
}

button.nj-cj-btn .nj-cj-btn-ico {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-0.02em);
}

/* 弱化「中途重抄」：次要操作，靠右浅色文字按钮 */
button.nj-cj-btn.nj-cj-btn-ghost {
  min-height: 32px !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(120, 90, 40, 0.18) !important;
  background: transparent !important;
  color: #8a7355 !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

button.nj-cj-btn.nj-cj-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  color: #5c4528 !important;
  border-color: rgba(120, 90, 40, 0.35) !important;
  opacity: 1;
}

button.nj-cj-btn.nj-cj-btn-ghost .nj-cj-btn-ico {
  font-size: 1em;
  opacity: 0.8;
}

.nj-cj-offer {
  margin-top: 14px;
}

.nj-cj-offer-box {
  margin-top: 0;
  padding: 16px 18px 14px;
  border: 1px solid rgba(140, 105, 50, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(165deg, #fffef8 0%, #fbf5e6 100%);
  box-shadow: 0 8px 22px rgba(40, 20, 0, 0.06);
  line-height: 1.9;
  color: #1a1008;
  font-size: 15px;
  font-weight: 500;
  font-family: "LXGW WenKai", "KaiTi", "Microsoft YaHei", sans-serif;
}

.nj-cj-sign {
  font-size: 20px !important;
  width: 120px !important;
  color: #333 !important;
  font-weight: bold !important;
  border: none !important;
  border-bottom: 1px solid #666 !important;
  letter-spacing: normal !important;
  text-align: center;
  background: transparent !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 2px 4px !important;
  margin: 0 4px !important;
}

.nj-cj-offer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.nj-cj-offer-btn,
input.nj-cj-offer-btn {
  background: linear-gradient(180deg, #2f6fed, #1656d6) !important;
  width: auto !important;
  min-width: 160px;
  letter-spacing: 0.2em !important;
  color: #fff !important;
  line-height: 1.2 !important;
  height: auto !important;
  padding: 12px 22px !important;
  border: none !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px !important;
}

@media (max-width: 640px) {
  .nj-cj-unit,
  .nj-cj-cell {
    width: 2.35em;
  }
  .nj-cj-cell {
    height: 2.35em;
  }
  .nj-cj-cell .nj-cj-ghost,
  .nj-cj-cell .nj-cj-ink {
    font-size: 1.25em;
  }
  .nj-cj-capture {
    font-size: 22px !important;
    letter-spacing: 0.42em !important;
  }
}

/* —— 首页双栏底板：抄经左栏 + 纸本右栏，避免千佛底上错位 —— */
#page {
  float: none !important;
  width: 1226px;
  max-width: 100%;
  margin: 12px auto 24px !important;
  padding: 0 !important;
}

/* 抄心经：Banner 贴顶栏，与下方内容板连成一体（无圆角缝） */
#page.nj-chao-page {
  margin: 0 auto 24px !important;
}
body.slide.slide3:has(.nj-chao-page) #header-wrapper {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.slide.slide3:has(.nj-chao-page) #header {
  padding-bottom: 0 !important;
}
#page.nj-chao-page .nj-chao-banner,
#page.nj-chao-page #banner.nj-chao-banner {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #fffef8;
  box-shadow: none !important;
}
#page.nj-chao-page .nj-chao-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  vertical-align: top;
}
/* Banner 顶直角贴合；底边圆角（SEO 已迁入右栏，主底板下方有间隙） */
#page.nj-chao-page #pagecon.nj-home-board {
  border-radius: 0 0 16px 16px !important;
  margin-top: 0 !important;
  box-shadow: 0 12px 36px rgba(30, 16, 0, 0.1);
  overflow: hidden;
}

#pagecon.nj-home-board,
#page #pagecon {
  width: 1226px;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255, 252, 244, 0.94);
  /* 去掉整板棕框，只留轻阴影区分底板 */
  border: none !important;
  outline: none !important;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(30, 16, 0, 0.1);
}

#page #content {
  float: left;
  width: 710px;
  max-width: 100%;
  padding: 4px 8px 16px;
  box-sizing: border-box;
  background: transparent;
}

/* 左栏 Banner：原位宽度，去掉白边/棕框，不拉大失真 */
#page #content .ad,
#page #content .ad.nj-home-ad {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  box-shadow: none !important;
}

#page #content .ad.nj-home-ad-chao {
  margin: 0 0 10px !important;
}

#page #content .ad a,
#page #content .ad img {
  display: block;
  width: 100%;
  height: auto;
  border: none !important;
  outline: none !important;
}

#page #sidebar.nj-side-rail,
#page #sidebar {
  float: right;
  width: 460px;
  max-width: 100%;
  margin: 8px 6px 16px 0;
  padding: 12px;
  box-sizing: border-box;
  color: #1a1008 !important;
  background:
    linear-gradient(165deg, #fffdf8 0%, #f7edd4 60%, #f0e2c0 100%);
  border: 1px solid rgba(140, 105, 50, 0.28) !important;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(40, 20, 0, 0.08);
}

#page #sidebar h2 {
  width: auto !important;
  max-width: 100%;
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  height: auto !important;
  line-height: 1.35 !important;
  box-sizing: border-box;
  background: linear-gradient(180deg, #5a3f1c 0%, #3d2a10 100%) !important;
  color: #fff4c8 !important;
  border-radius: 8px;
  text-align: left !important;
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#page #sidebar h2.nj-side-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-right: 10px !important;
}

#page #sidebar .nj-side-head-title {
  flex: 1 1 auto;
  min-width: 0;
}

#page #sidebar .nj-side-share-btn {
  flex: none;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid rgba(255, 244, 200, 0.45);
  border-radius: 999px;
  background: rgba(255, 244, 200, 0.12);
  color: #fff4c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#page #sidebar .nj-side-share-btn:hover {
  background: rgba(255, 244, 200, 0.22);
  border-color: rgba(255, 244, 200, 0.7);
}

/* 「写给有缘人」图卡：乐助护持小按钮叠在图片右下角 */
#page #sidebar .nj-side-dream-card {
  position: relative;
  display: block;
  margin: 0 0 8px;
  overflow: hidden;
}

#page #sidebar .nj-side-dream-pic {
  display: block;
  border: none;
  line-height: 0;
}

#page #sidebar .nj-side-dream-pic img {
  width: 100%;
  height: auto;
  vertical-align: top;
  border: 0;
}

#page #sidebar .nj-side-huchi-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-block;
  box-sizing: border-box;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 230, 0.55);
  background: rgba(40, 24, 8, 0.58);
  color: #fff8e8 !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

#page #sidebar .nj-side-huchi-btn:hover,
#page #sidebar .nj-side-huchi-btn:focus {
  background: rgba(40, 24, 8, 0.78);
  border-color: rgba(255, 248, 230, 0.85);
  color: #fffef6 !important;
}

/* 分享弹窗 */
.nj-share-modal[hidden] {
  display: none !important;
}

.nj-share-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.nj-share-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nj-share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 18, 6, 0.48);
}

.nj-share-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(20, 10, 0, 0.28);
}

.nj-share-modal-panel .tuiguang {
  margin: 0 !important;
}

.nj-share-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 252, 244, 0.88);
  color: #6b4a1c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 20, 0, 0.1);
}

body.nj-share-modal-open {
  overflow: hidden;
}

#page #sidebar > ul,
#page #sidebar > .zuixin {
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 10px 12px !important;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(140, 105, 50, 0.28);
  border-radius: 10px;
  list-style: none;
}

#page #sidebar > ul::after {
  content: "";
  display: table;
  clear: both;
}

/*
 * 佛经大全 / 咒语真言：三列等宽栅格
 * 注意：旧 HTML 的 <p><li> 非法，浏览器会把 li 提成 ul 子节点；
 * 必须以 ul.nj-seal-block > li 做栅格，不能指望 p。
 */
#page #sidebar > ul.nj-seal-block {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

#page #sidebar > ul.nj-seal-block > h2 {
  grid-column: 1 / -1;
  margin-bottom: 2px !important;
}

#page #sidebar > ul.nj-seal-block > p {
  display: none !important;
}

#page #sidebar > ul.nj-seal-block > li,
#page #sidebar li {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  color: #2c1806;
  display: flex !important;
  align-items: center;
  gap: 2px;
  vertical-align: top;
  margin: 0 !important;
  float: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* 佛经大全 / 咒语真言：印章签条风（去虚线框） */
#page #sidebar li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px !important;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #fffdf6 0%, #f6ebd2 100%) !important;
  border: 1px solid rgba(168, 128, 48, 0.55) !important;
  border-radius: 3px !important;
  box-shadow:
    0 1px 0 rgba(255, 248, 230, 0.9) inset,
    0 1px 2px rgba(60, 35, 0, 0.06);
  text-decoration: none !important;
  line-height: 1.3 !important;
  text-align: center !important;
  color: #4a3214 !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#page #sidebar li a:hover,
#page #sidebar li a:focus {
  background: linear-gradient(180deg, #fff6d8, #edd9a0) !important;
  color: #8b1e1e !important;
  border-color: rgba(160, 100, 30, 0.7) !important;
}

#page #sidebar li span[style*="7FC455"],
#page #sidebar li span {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  margin-right: 3px;
  color: #3d8b40;
  vertical-align: middle;
}

#page #sidebar p,
#page #sidebar .zuixin,
#page #sidebar #nj-site-stats {
  color: #2c1806 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

#page #sidebar a {
  color: #1f4d8f !important;
  font-size: 14px;
}

#page #sidebar .zuixin {
  min-height: 0 !important;
  line-height: 1.65 !important;
}

/* 底部入口预览卡（与弹窗视觉一致，仅作打开弹窗入口） */
#page #content .nj-share-teaser {
  position: relative;
  margin: 12px 0 8px;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 18%, rgba(255, 248, 230, 0.95) 0%, transparent 70%),
    linear-gradient(165deg, #fffef8 0%, #f8f1e2 100%);
  border: 1px solid rgba(140, 105, 50, 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(40, 20, 0, 0.05);
}

#page #content .nj-share-teaser h2 {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  color: #5c4528 !important;
  background: transparent !important;
  border-radius: 0;
  border-bottom: 1px solid rgba(140, 105, 50, 0.28);
}

#page #content .nj-share-teaser .nj-share-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#page #content .nj-share-teaser .nj-share-deco-fo {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  opacity: 0.08;
}

#page #content .nj-share-teaser .nj-share-eyebrow {
  position: relative;
  margin: 2px 0 10px !important;
  font-size: 12px !important;
  letter-spacing: 0.22em;
  color: #a08050 !important;
  font-weight: 600;
}

#page #content .nj-share-teaser .nj-share-warm {
  position: relative;
  margin: 0 0 12px !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.85 !important;
  color: #3d2a10 !important;
  letter-spacing: 0.06em;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Microsoft YaHei", serif;
}

#page #content .nj-share-teaser .nj-share-warm-sub {
  position: relative;
  margin: 0 auto 18px !important;
  max-width: 18.5em;
  font-size: 13px !important;
  line-height: 1.9 !important;
  letter-spacing: 0.04em;
  color: #7a5e38 !important;
  text-align: center;
}

#page #content .nj-share-teaser .nj-share-cta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

#page #content .nj-share-teaser .nj-share-btn-cta {
  display: inline-block;
  width: auto !important;
  min-width: 168px;
  padding: 9px 28px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #6b4e1e, #3d2a10) !important;
  color: #fff4c8 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 4px 14px rgba(61, 42, 16, 0.14);
}

#page #content .nj-share-teaser p {
  padding-left: 0 !important;
  clear: both;
  overflow: visible;
  background: transparent !important;
  color: inherit !important;
}

/* 推广弹窗：纸本风格 */
#page .tuiguang.nj-home-tuiguang,
#page #content .tuiguang, .nj-share-modal .tuiguang {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  margin: 12px 0 8px;
  padding: 18px 18px 16px !important;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 50% 18%, rgba(255, 248, 230, 0.95) 0%, transparent 70%),
    linear-gradient(165deg, #fffef8 0%, #f8f1e2 100%);
  border: 1px solid rgba(140, 105, 50, 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(40, 20, 0, 0.05);
}

#page #content .tuiguang h2, .nj-share-modal .tuiguang h2 {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  color: #5c4528 !important;
  background: transparent !important;
  border-radius: 0;
  border-bottom: 1px solid rgba(140, 105, 50, 0.28);
}

#page #content .tuiguang p, .nj-share-modal .tuiguang p {
  padding-left: 0 !important;
  margin-bottom: 10px !important;
  clear: both;
  overflow: visible;
  background: transparent !important;
}

#page #content .tuiguang .nj-share-step0, .nj-share-modal .tuiguang .nj-share-step0 {
  position: relative;
  padding: 6px 8px 4px;
  text-align: center;
}

#page #content .tuiguang .nj-share-deco, .nj-share-modal .tuiguang .nj-share-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#page #content .tuiguang .nj-share-deco-fo, .nj-share-modal .tuiguang .nj-share-deco-fo {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  opacity: 0.08;
  filter: saturate(0.85);
}




#page #content .tuiguang .nj-share-eyebrow, .nj-share-modal .tuiguang .nj-share-eyebrow {
  position: relative;
  margin: 2px 0 10px !important;
  font-size: 12px !important;
  letter-spacing: 0.22em;
  color: #a08050 !important;
  font-weight: 600;
}

#page #content .tuiguang .nj-share-warm, .nj-share-modal .tuiguang .nj-share-warm {
  position: relative;
  margin: 0 0 12px !important;
  text-align: center;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.85 !important;
  color: #3d2a10 !important;
  letter-spacing: 0.06em;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Microsoft YaHei", serif;
}

#page #content .tuiguang .nj-share-warm-sub, .nj-share-modal .tuiguang .nj-share-warm-sub {
  position: relative;
  margin: 0 auto 18px !important;
  max-width: 18.5em;
  text-align: center;
  font-size: 13px !important;
  line-height: 1.9 !important;
  letter-spacing: 0.04em;
  color: #7a5e38 !important;
}

#page #content .tuiguang .nj-share-cta-wrap, .nj-share-modal .tuiguang .nj-share-cta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 0 2px;
}

#page #content .tuiguang .nj-share-step-hint, .nj-share-modal .tuiguang .nj-share-step-hint {
  margin: 10px 0 4px !important;
  text-align: center;
  font-size: 12px !important;
  color: #8a7355 !important;
  line-height: 1.45 !important;
}

#page #content .tuiguang .nj-share-step-title, .nj-share-modal .tuiguang .nj-share-step-title {
  margin: 0 0 12px !important;
  text-align: center;
  font-size: 15px !important;
  font-weight: 700;
  color: #3d2a10 !important;
  letter-spacing: 0.06em;
}

#page #content .tuiguang .nj-share-pick, .nj-share-modal .tuiguang .nj-share-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
}

#page #content .tuiguang .nj-share-pick .nj-share-btn, .nj-share-modal .tuiguang .nj-share-pick .nj-share-btn {
  flex: none;
  width: auto !important;
  min-width: 200px;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

#page #content .tuiguang .nj-share-hidden[hidden], .nj-share-modal .tuiguang .nj-share-hidden[hidden] {
  display: none !important;
}

#page #content .tuiguang .nj-share-step0[hidden], .nj-share-modal .tuiguang .nj-share-step0[hidden],
#page #content .tuiguang .nj-share-step1[hidden], .nj-share-modal .tuiguang .nj-share-step1[hidden],
#page #content .tuiguang .nj-share-name-row[hidden], .nj-share-modal .tuiguang .nj-share-name-row[hidden],
#page #content .tuiguang .nj-share-more-panel[hidden], .nj-share-modal .tuiguang .nj-share-more-panel[hidden] {
  display: none !important;
}

#page #content .tuiguang .nj-share-mode, .nj-share-modal .tuiguang .nj-share-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

#page #content .tuiguang .nj-share-mode-item, .nj-share-modal .tuiguang .nj-share-mode-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(140, 105, 50, 0.35);
  background: rgba(255, 252, 244, 0.9);
  color: #5c4528;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 42%;
  justify-content: center;
}

#page #content .tuiguang .nj-share-mode-item, .nj-share-modal .tuiguang .nj-share-mode-item.is-on,
#page #content .tuiguang .nj-share-mode-item, .nj-share-modal .tuiguang .nj-share-mode-item:has(input:checked) {
  background: linear-gradient(180deg, #fff6d8, #edd9a0);
  border-color: rgba(160, 100, 30, 0.55);
  color: #3d2a10;
}

#page #content .tuiguang .nj-share-mode-item, .nj-share-modal .tuiguang .nj-share-mode-item input {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  accent-color: #6b4e1e;
}

#page #content .tuiguang input, .nj-share-modal .tuiguang input,
#page #content .tuiguang textarea, .nj-share-modal .tuiguang textarea {
  width: calc(100% - 64px) !important;
  max-width: none !important;
  height: auto !important;
  min-height: 36px;
  font-size: 14px !important;
  border: 1px solid rgba(140, 105, 50, 0.28) !important;
  border-radius: 0 8px 8px 0 !important;
  background: #fff !important;
  box-sizing: border-box;
}

#page #content .tuiguang textarea, .nj-share-modal .tuiguang textarea {
  min-height: 88px !important;
  resize: vertical;
}

#page #content .tuiguang p.nj-share-field span, .nj-share-modal .tuiguang p.nj-share-field span {
  background: rgba(189, 135, 11, 0.12) !important;
  border: 1px solid rgba(140, 105, 50, 0.28) !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px;
  color: #5c4528 !important;
  height: auto !important;
  min-height: 36px;
  line-height: 36px !important;
  padding: 0 8px !important;
  box-sizing: border-box;
  white-space: nowrap;
  width: 52px !important;
}

#page #content .tuiguang .nj-share-actions, .nj-share-modal .tuiguang .nj-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px !important;
}

#page #content .tuiguang .nj-share-actions-copy .nj-share-btn, .nj-share-modal .tuiguang .nj-share-actions-copy .nj-share-btn {
  flex: 1 1 46%;
  min-width: 46%;
}

#page #content .tuiguang p a, .nj-share-modal .tuiguang p a,
#page #content .tuiguang .nj-share-btn, .nj-share-modal .tuiguang .nj-share-btn {
  display: block;
  background: linear-gradient(180deg, #6b4e1e, #3d2a10) !important;
  width: auto !important;
  box-sizing: border-box;
  border-radius: 10px !important;
  margin: 0 !important;
  float: none !important;
  text-align: center;
  color: #fff4c8 !important;
  text-decoration: none !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
}

#page #content .tuiguang .nj-share-btn-cta, .nj-share-modal .tuiguang .nj-share-btn-cta {
  width: auto !important;
  min-width: 168px;
  max-width: 88%;
  padding: 9px 28px !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(61, 42, 16, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#page #content .tuiguang .nj-share-btn-cta:hover, .nj-share-modal .tuiguang .nj-share-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(61, 42, 16, 0.2);
}

#page #content .tuiguang .nj-share-btn-poster, .nj-share-modal .tuiguang .nj-share-btn-poster {
  background: linear-gradient(180deg, #8b6914, #5a3f1c) !important;
}

#page #content .tuiguang .nj-share-btn-ghost, .nj-share-modal .tuiguang .nj-share-btn-ghost {
  background: linear-gradient(180deg, #fff8e8, #f0e2c0) !important;
  color: #5c4528 !important;
  border: 1px solid rgba(140, 105, 50, 0.35) !important;
}

#page #content .tuiguang .nj-share-more-panel, .nj-share-modal .tuiguang .nj-share-more-panel {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(140, 105, 50, 0.28);
}

#page #content .tuiguang .nj-share-more-toggle, .nj-share-modal .tuiguang .nj-share-more-toggle {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: #6b4a1c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

#page #content .tuiguang .nj-share-details, .nj-share-modal .tuiguang .nj-share-details {
  margin: 4px 0 10px;
  color: #5c4528;
  font-size: 13px;
}

#page #content .tuiguang .nj-share-details summary, .nj-share-modal .tuiguang .nj-share-details summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  color: #8a7355;
  font-weight: 600;
}

#page #content .tuiguang .nj-share-details summary::-webkit-details-marker,
.nj-share-modal .tuiguang .nj-share-details summary::-webkit-details-marker {
  display: none;
}

#page #content .tuiguang .nj-share-back, .nj-share-modal .tuiguang .nj-share-back {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px;
  border: none;
  background: transparent;
  color: #8a7355;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

#page #content .tuiguang .nj-share-toast, .nj-share-modal .tuiguang .nj-share-toast {
  margin: 10px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  background: #3d2a10;
  color: #fff4c8 !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: center;
}

#page #content .tuiguang .nj-share-poster-wrap, .nj-share-modal .tuiguang .nj-share-poster-wrap {
  margin: 10px 0 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.85);
  border: 1px solid rgba(140, 105, 50, 0.28);
  text-align: center;
}

#page #content .tuiguang #nj-share-poster, .nj-share-modal .tuiguang #nj-share-poster {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(40, 20, 0, 0.12);
  background: #f7edd4;
}
