:root {
  --zhzj-bg: #f3eee6;
  --zhzj-bg-deep: #e8e0d4;
  --zhzj-paper: #fcfaf6;
  --zhzj-ink: #1c1915;
  --zhzj-ink-soft: #4f463c;
  --zhzj-muted: #8a7f72;
  --zhzj-line: #ddd2c3;
  --zhzj-line-deep: #c9bba8;
  --zhzj-jade: #3d5c4a;
  --zhzj-jade-deep: #2a4235;
  --zhzj-jade-soft: rgba(61,92,74,.12);
  --zhzj-gold: #b08d4a;
  --zhzj-gold-deep: #8a6c34;
  --zhzj-gold-soft: rgba(176,141,74,.16);
  --zhzj-accent: #3d5c4a;
  --zhzj-accent-2: #b08d4a;
  --zhzj-cinnabar: #a33b2b;
  --zhzj-danger: #a33b2b;
  --zhzj-radius: 14px;
  --zhzj-shadow: 0 14px 40px rgba(28,25,21,.07);
  --zhzj-shadow-soft: 0 4px 16px rgba(28,25,21,.04);
  --zhzj-max: 42rem;
  --zhzj-wide: 70rem;
  --zhzj-serif: "Source Han Serif SC","Noto Serif CJK SC","Songti SC",serif;
  --zhzj-kai: "Kaiti SC","STKaiti","KaiTi",serif;
  --zhzj-sans: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --zhzj-paper-texture: radial-gradient(ellipse at 18% 8%, rgba(176,141,74,.08), transparent 42%), radial-gradient(ellipse at 88% 0%, rgba(61,92,74,.06), transparent 40%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--zhzj-ink);
  font-family: var(--zhzj-sans);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--zhzj-bg);
  background-image:
    var(--zhzj-paper-texture),
    linear-gradient(180deg,#f8f4ec 0%,#f3eee6 40%,#e8e0d4 100%);
}

/* 法华经 · 古典经卷主题（原生 CSS） */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a {
  color: var(--zhzj-jade);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--zhzj-gold-deep); }
:focus-visible {
  outline: 2px solid var(--zhzj-gold);
  outline-offset: 2px;
}

.zhzj-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: .5rem .75rem;
  z-index: 100;
}
.zhzj-skip:focus { left: .75rem; top: .75rem; }

/* 莲纹饰线 */
.zhzj-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: .35rem auto .85rem;
  max-width: 16rem;
  color: var(--zhzj-gold);
}
.zhzj-ornament::before,
.zhzj-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zhzj-line-deep), transparent);
}
.zhzj-ornament span {
  position: relative;
  width: .55rem;
  height: .55rem;
  border: 1px solid var(--zhzj-gold);
  transform: rotate(45deg);
  background: rgba(160, 127, 61, 0.12);
  box-shadow: 0 0 0 3px rgba(251, 247, 239, 0.9);
}
.zhzj-ornament--soft {
  max-width: 10rem;
  margin-top: .15rem;
  margin-bottom: 1rem;
  opacity: .72;
}
.zhzj-ornament--soft span {
  width: .38rem;
  height: .38rem;
}

/* 顶栏 */
.zhzj-top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px) saturate(1.1);
  background: rgba(251, 247, 239, 0.9);
  border-bottom: 1px solid var(--zhzj-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset;
}
.zhzj-top::after {
  content: "";
  display: block;
  height: 2px;
  background:
    linear-gradient(90deg, transparent 4%, var(--zhzj-gold-soft) 20%, rgba(42,85,68,.18) 50%, var(--zhzj-gold-soft) 80%, transparent 96%);
}
.zhzj-top__inner {
  max-width: var(--zhzj-wide);
  margin: 0 auto;
  padding: .72rem 1.15rem .62rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  justify-content: space-between;
}
.zhzj-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.zhzj-brand__mark {
  margin: 0;
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(160, 127, 61, 0.45);
  background:
    radial-gradient(circle at 35% 30%, #fff9ef, #f0e5d0 70%);
  color: var(--zhzj-gold-deep);
  font-size: .95rem;
  line-height: 1;
  box-shadow: var(--zhzj-shadow-soft);
}
.zhzj-brand__text {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  min-width: 0;
}
.zhzj-brand__name {
  margin: 0;
  font-family: var(--zhzj-kai);
  font-size: clamp(1.28rem, 2.5vw, 1.72rem);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--zhzj-ink);
  line-height: 1.2;
}
.zhzj-brand__name a { color: inherit; }
.zhzj-brand__sub {
  margin: 0;
  font-size: .72rem;
  color: var(--zhzj-muted);
  letter-spacing: .22em;
}
.zhzj-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .1rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zhzj-nav a {
  display: inline-block;
  padding: .38rem .78rem;
  border-radius: 999px;
  color: var(--zhzj-ink-soft);
  font-size: .9rem;
  letter-spacing: .04em;
}
.zhzj-nav a:hover,
.zhzj-nav a[aria-current="page"] {
  background: var(--zhzj-jade-soft);
  color: var(--zhzj-jade-deep);
  box-shadow: inset 0 0 0 1px rgba(42, 85, 68, 0.12);
}
.zhzj-nav-toggle {
  display: none;
  border: 1px solid var(--zhzj-line);
  background: var(--zhzj-paper);
  border-radius: 8px;
  padding: .35rem .65rem;
  font: inherit;
  color: var(--zhzj-ink);
  cursor: pointer;
}

/* 主内容宽度 */
.zhzj-wrap {
  max-width: var(--zhzj-wide);
  margin: 0 auto;
  padding: 1.4rem 1.1rem 3.2rem;
}
.zhzj-wrap--read {
  max-width: calc(var(--zhzj-max) + 2.4rem);
}

/* 首页英雄 · 经卷匾额 */
.zhzj-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--zhzj-line-deep);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,252,245,.72), rgba(255,252,245,.2)),
    radial-gradient(ellipse at 70% 120%, rgba(42, 85, 68, 0.1), transparent 55%),
    radial-gradient(ellipse at 15% -10%, rgba(160, 127, 61, 0.18), transparent 45%),
    linear-gradient(165deg, #faf4e8 0%, #ebe4d4 48%, #e7efe8 100%);
  box-shadow: var(--zhzj-shadow);
  padding: clamp(2.1rem, 5.5vw, 3.6rem) clamp(1.2rem, 4vw, 2.6rem);
  margin-bottom: 1.65rem;
  animation: zhzj-rise .7s ease both;
}
.zhzj-hero::before,
.zhzj-hero::after {
  content: "";
  position: absolute;
  inset: .55rem;
  border: 1px solid rgba(160, 127, 61, 0.28);
  border-radius: 2px;
  pointer-events: none;
}
.zhzj-hero::after {
  inset: .85rem;
  border-color: rgba(42, 85, 68, 0.14);
}
.zhzj-hero__frame {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.zhzj-hero__eyebrow {
  margin: 0 0 .15rem;
  color: var(--zhzj-gold-deep);
  font-family: var(--zhzj-kai);
  font-size: .88rem;
  letter-spacing: .36em;
}
.zhzj-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--zhzj-kai);
  font-size: clamp(2.35rem, 7.2vw, 3.85rem);
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.18;
  color: var(--zhzj-ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.zhzj-hero__lead {
  position: relative;
  z-index: 1;
  margin: .35rem auto 0;
  max-width: 34rem;
  color: var(--zhzj-ink-soft);
  font-family: var(--zhzj-serif);
  font-size: 1.02rem;
  line-height: 1.95;
  text-align: left;
}
@keyframes zhzj-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* 区块 · 经函面板 */
.zhzj-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 28%),
    var(--zhzj-paper);
  border: 1px solid var(--zhzj-line);
  border-radius: var(--zhzj-radius);
  box-shadow: var(--zhzj-shadow-soft);
  padding: 1.2rem 1.25rem 1.3rem;
  margin-bottom: 1.15rem;
}
.zhzj-section::before {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  top: .55rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,127,61,.35), transparent);
  pointer-events: none;
}
.zhzj-section--sutra {
  padding-top: 1.35rem;
}
.zhzj-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(90deg, transparent, var(--zhzj-line) 12%, var(--zhzj-line) 88%, transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom center;
}
.zhzj-section__title {
  margin: 0;
  font-family: var(--zhzj-kai);
  font-size: 1.28rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--zhzj-jade-deep);
}
.zhzj-section__title a { color: inherit; }
.zhzj-section__title a:hover { color: var(--zhzj-gold-deep); }
.zhzj-section__more {
  font-size: .84rem;
  color: var(--zhzj-muted);
  white-space: nowrap;
  letter-spacing: .08em;
}
.zhzj-section__more:hover { color: var(--zhzj-gold-deep); }

.zhzj-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem 1rem;
}
.zhzj-list--stack { grid-template-columns: 1fr; }
.zhzj-list li { min-width: 0; }
.zhzj-list a {
  position: relative;
  display: block;
  padding: .55rem .2rem .55rem 1rem;
  color: var(--zhzj-ink);
  border-bottom: 1px dashed rgba(216, 203, 182, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--zhzj-serif);
  letter-spacing: .02em;
  transition: color .18s ease, padding-left .18s ease;
}
.zhzj-list a::before {
  content: "◇";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zhzj-gold);
  font-size: .62rem;
  opacity: .7;
}
.zhzj-list a:hover {
  color: var(--zhzj-jade-deep);
  padding-left: 1.15rem;
  border-bottom-color: var(--zhzj-gold);
}
.zhzj-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  overflow: hidden;
}

/* 友链 */
.zhzj-friends ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .55rem;
}
.zhzj-friends a {
  display: inline-block;
  padding: .32rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 85, 68, 0.16);
  background: linear-gradient(180deg, #fffdf8, #f3eee3);
  color: var(--zhzj-jade);
  font-size: .88rem;
  letter-spacing: .04em;
}
.zhzj-friends a:hover {
  border-color: var(--zhzj-gold);
  color: var(--zhzj-gold-deep);
  background: #fffaf0;
}

/* 页脚 · 殿宇石基 */
.zhzj-foot {
  position: relative;
  margin-top: 2rem;
  padding: 1.7rem 1rem 1.5rem;
  text-align: center;
  color: #ebe4d6;
  background:
    linear-gradient(180deg, #2a3d33 0%, #18241e 100%);
  border-top: 1px solid #3d5548;
}
.zhzj-foot::before {
  content: "❀";
  display: block;
  margin: 0 auto .55rem;
  color: #d4bc82;
  font-size: .95rem;
  opacity: .85;
  letter-spacing: 0;
}
.zhzj-foot a { color: #d7c49a; }
.zhzj-foot a:hover { color: #f0e2b8; }
.zhzj-foot__inner {
  max-width: var(--zhzj-wide);
  margin: 0 auto;
  font-size: .9rem;
  line-height: 1.75;
  letter-spacing: .03em;
}

/* 面包屑 */
.zhzj-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--zhzj-muted);
  font-size: .86rem;
  letter-spacing: .04em;
}
.zhzj-crumb a { color: var(--zhzj-ink-soft); }
.zhzj-crumb li:not(:last-child)::after {
  content: "›";
  margin-left: .35rem;
  color: var(--zhzj-line-deep);
}

/* 阅读页 · 经卷正文 */
.zhzj-read {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.4), transparent 22%),
    var(--zhzj-paper);
  border: 1px solid var(--zhzj-line-deep);
  border-radius: 4px;
  box-shadow: var(--zhzj-shadow);
  padding: clamp(1.35rem, 3.2vw, 2.2rem) clamp(1.15rem, 3vw, 2rem);
}
.zhzj-read::before {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid rgba(160, 127, 61, 0.18);
  border-radius: 2px;
  pointer-events: none;
}
.zhzj-read__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--zhzj-kai);
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  line-height: 1.45;
  letter-spacing: .12em;
  text-align: center;
  font-weight: 700;
  color: var(--zhzj-ink);
}
.zhzj-read__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .95rem;
  margin: 0 0 1.15rem;
  color: var(--zhzj-muted);
  font-size: .88rem;
  letter-spacing: .04em;
}
/* 仅文章卡内抬高层级，避免评论区文案盖住赞助弹窗 */
.zhzj-read > .zhzj-read__meta {
  position: relative;
  z-index: 1;
}
.zhzj-comment .zhzj-read__meta {
  position: static;
  z-index: auto;
  text-align: center;
}
.zhzj-actions button,
.zhzj-sponsor-btn,
.zhzj-sponsor-btn,
.zhzj-btn {
  appearance: none;
  border: 1px solid var(--zhzj-line-deep);
  background: linear-gradient(180deg, #fffdf8, #f4eee3);
  color: var(--zhzj-ink-soft);
  border-radius: 999px;
  padding: .42rem .95rem;
  font: inherit;
  font-size: .88rem;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: var(--zhzj-shadow-soft);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}
.zhzj-actions button:hover,
.zhzj-sponsor-btn:hover,
.zhzj-sponsor-btn:hover,
.zhzj-btn:hover {
  background: linear-gradient(180deg, var(--zhzj-jade), var(--zhzj-jade-deep));
  border-color: var(--zhzj-jade-deep);
  color: #f7f1e4;
  transform: translateY(-1px);
}

/* 阅读设置 */
.zhzj-reader-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 1.15rem;
}
.zhzj-reader-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(154, 123, 60, 0.35);
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6f0e4 100%);
  color: var(--zhzj-ink-soft);
  border-radius: 999px;
  padding: .48rem 1.05rem;
  font: inherit;
  font-size: .88rem;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 26, 20, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.zhzj-reader-trigger:hover {
  color: var(--zhzj-jade);
  border-color: var(--zhzj-jade);
  box-shadow: 0 6px 18px rgba(47, 93, 74, 0.12);
  transform: translateY(-1px);
}
.zhzj-reader-trigger__icon {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--zhzj-jade);
  color: #f8f4ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.zhzj-reader-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 20, 16, 0.42);
  backdrop-filter: blur(4px);
}
@media (min-width: 720px) {
  .zhzj-reader-mask { align-items: center; }
  .zhzj-reader-panel { border-radius: 18px; }
}
.zhzj-reader-mask[hidden] { display: none !important; }
.zhzj-reader-panel {
  width: min(26rem, 100%);
  max-height: min(88vh, 40rem);
  overflow: auto;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(420px 160px at 10% 0%, rgba(154, 123, 60, 0.12), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
  border: 1px solid rgba(221, 210, 192, 0.95);
  box-shadow: 0 24px 60px rgba(20, 16, 12, 0.28);
  animation: zhzj-reader-in .28s ease;
}
@keyframes zhzj-reader-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.zhzj-reader-panel__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.1rem .85rem;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(221, 210, 192, 0.7);
}
.zhzj-reader-panel__title {
  margin: 0;
  font-family: var(--zhzj-serif);
  font-size: 1.12rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--zhzj-ink);
}
.zhzj-reader-panel__close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  color: var(--zhzj-ink-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.zhzj-reader-panel__close:hover {
  background: var(--zhzj-jade);
  color: #fff;
}
.zhzj-reader-panel__body {
  padding: .35rem 1.1rem 1.2rem;
  display: grid;
  gap: 1rem;
}
.zhzj-reader-group__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .45rem;
  color: var(--zhzj-ink-soft);
  font-size: .86rem;
  letter-spacing: .04em;
}
.zhzj-reader-group__label em {
  font-style: normal;
  color: var(--zhzj-jade);
  font-variant-numeric: tabular-nums;
  font-size: .84rem;
}
.zhzj-reader-group input[type="range"] {
  width: 100%;
  accent-color: var(--zhzj-jade);
  height: .35rem;
  cursor: pointer;
}
.zhzj-reader-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  padding: .28rem;
  border-radius: 12px;
  background: rgba(47, 93, 74, 0.07);
}
.zhzj-reader-seg[aria-label="昼夜模式"],
.zhzj-reader-seg[aria-label="繁简切换"] {
  grid-template-columns: 1fr 1fr;
}
.zhzj-reader-seg__btn {
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--zhzj-ink-soft);
  padding: .55rem .35rem;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.zhzj-reader-seg__btn.is-on {
  background: #fff;
  color: var(--zhzj-jade);
  box-shadow: 0 2px 8px rgba(31, 26, 20, 0.08);
  font-weight: 600;
}
.zhzj-reader-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  margin-bottom: .75rem;
}
.zhzj-reader-preset {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(221, 210, 192, 0.95);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  padding: .5rem .3rem .45rem;
  font: inherit;
  color: var(--zhzj-ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.zhzj-reader-preset i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-style: normal;
  font-family: var(--zhzj-serif);
  font-size: .86rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.zhzj-reader-preset span {
  font-size: .75rem;
  letter-spacing: .04em;
}
.zhzj-reader-preset:hover {
  border-color: rgba(47, 93, 74, 0.45);
  transform: translateY(-1px);
}
.zhzj-reader-preset.is-on {
  border-color: var(--zhzj-jade);
  box-shadow: 0 0 0 2px rgba(47, 93, 74, 0.18);
  color: var(--zhzj-jade);
  font-weight: 600;
}
@media (max-width: 380px) {
  .zhzj-reader-presets { grid-template-columns: repeat(3, 1fr); }
}
.zhzj-reader-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.zhzj-reader-color {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  color: var(--zhzj-muted);
}
.zhzj-reader-color input[type="color"] {
  width: 100%;
  height: 2.1rem;
  border: 1px solid var(--zhzj-line);
  border-radius: 10px;
  background: #fff;
  padding: .15rem;
  cursor: pointer;
}
.zhzj-reader-reset {
  appearance: none;
  width: 100%;
  margin-top: .15rem;
  border: 1px dashed rgba(154, 123, 60, 0.45);
  background: transparent;
  color: var(--zhzj-gold);
  border-radius: 999px;
  padding: .65rem 1rem;
  font: inherit;
  font-size: .88rem;
  letter-spacing: .08em;
  cursor: pointer;
}
.zhzj-reader-reset:hover {
  background: var(--zhzj-gold-soft);
  border-style: solid;
}

.zhzj-prose {
  --rs-font-size: 1.14rem;
  --rs-line-height: 2.05;
  --rs-para-gap: 1.1em;
  --rs-font: var(--zhzj-serif);
  --rs-bg: transparent;
  --rs-color: var(--zhzj-ink);
  position: relative;
  z-index: 1;
  font-family: var(--rs-font);
  font-size: var(--rs-font-size);
  line-height: var(--rs-line-height);
  color: var(--rs-color);
  letter-spacing: .04em;
  text-align: justify;
  background: var(--rs-bg);
  border-radius: 8px;
  padding: .25rem .1rem;
  transition: color .2s ease, background .2s ease;
}
.zhzj-prose p { margin: 0 0 var(--rs-para-gap); text-indent: 2em; }
.zhzj-prose p:first-child { margin-top: .15rem; }
.zhzj-prose img { border-radius: 6px; }

.zhzj-read.is-reader-custom {
  background: var(--rs-paper, var(--zhzj-paper));
  color: var(--rs-ink, var(--zhzj-ink));
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.zhzj-read.is-reader-custom .zhzj-read__title,
.zhzj-read.is-reader-custom .zhzj-pager__link {
  color: inherit;
}
.zhzj-read.is-reader-custom .zhzj-read__meta {
  color: color-mix(in srgb, var(--rs-ink, var(--zhzj-ink)) 62%, transparent);
}
body.zhzj-reader-night {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(160, 127, 61, 0.08), transparent 55%),
    linear-gradient(180deg, #171513 0%, #10100e 100%);
  color: #e8e0d4;
}
body.zhzj-reader-night .zhzj-top {
  background: rgba(22, 20, 18, 0.92);
  border-bottom-color: #2c2924;
}
body.zhzj-reader-night .zhzj-brand__mark {
  background: #2a2621;
  border-color: rgba(212, 188, 130, 0.35);
  color: #d4bc82;
}
body.zhzj-reader-night .zhzj-brand__name a,
body.zhzj-reader-night .zhzj-nav a { color: #e8e0d4; }
body.zhzj-reader-night .zhzj-crumb,
body.zhzj-reader-night .zhzj-brand__sub { color: #9a9186; }
body.zhzj-reader-night .zhzj-section {
  background: #1c1a17;
  border-color: #2c2924;
  color: #e8e0d4;
}
body.zhzj-reader-night .zhzj-ornament { color: #d4bc82; }
body.zhzj-reader-night .zhzj-ornament span {
  border-color: #d4bc82;
  background: rgba(212, 188, 130, 0.12);
  box-shadow: none;
}

.zhzj-pager {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 1.65rem 0 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid transparent;
  background-image: linear-gradient(90deg, transparent, var(--zhzj-line) 10%, var(--zhzj-line) 90%, transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top center;
}
.zhzj-pager__item {
  min-width: 0;
  padding: .8rem .9rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,0,0,.015));
  border: 1px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.zhzj-pager__item:hover {
  border-color: var(--zhzj-line);
  box-shadow: var(--zhzj-shadow-soft);
}
.zhzj-pager__label {
  display: block;
  color: var(--zhzj-muted);
  font-size: .76rem;
  margin-bottom: .25rem;
  letter-spacing: .12em;
}
.zhzj-pager__link {
  display: block;
  color: var(--zhzj-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--zhzj-kai);
  letter-spacing: .04em;
}
.zhzj-pager__item--next { text-align: right; }

.zhzj-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin: .55rem 0 0;
}

/* 分类列表 */
.zhzj-cat-title {
  margin: 0;
  text-align: center;
  font-family: var(--zhzj-kai);
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--zhzj-jade-deep);
}
.zhzj-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: 1rem 0 0;
}
.zhzj-pagination a,
.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .55rem;
  border-radius: 8px;
  border: 1px solid var(--zhzj-line);
  background: var(--zhzj-paper);
  color: var(--zhzj-ink-soft);
  font-size: .9rem;
}
.zhzj-pagination a:hover,
.page-number:hover {
  background: var(--zhzj-jade);
  border-color: var(--zhzj-jade);
  color: #fff;
}

/* 评论 */
.zhzj-comment {
  margin-top: 1.1rem;
}
.zhzj-comment__title {
  margin: 0 0 .85rem;
  font-family: var(--zhzj-kai);
  font-size: 1.2rem;
  letter-spacing: .14em;
  color: var(--zhzj-jade-deep);
  text-align: center;
}
.zhzj-form {
  display: grid;
  gap: .65rem;
}
.zhzj-form label {
  display: block;
  font-size: .85rem;
  color: var(--zhzj-muted);
  margin-bottom: .25rem;
}
.zhzj-form input,
.zhzj-form textarea {
  width: 100%;
  border: 1px solid var(--zhzj-line);
  border-radius: 10px;
  background: #fff;
  padding: .65rem .75rem;
  font: inherit;
  color: var(--zhzj-ink);
}
.zhzj-form textarea { min-height: 7rem; resize: vertical; }
.zhzj-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.comment-item {
  padding: .85rem 0;
  border-bottom: 1px dashed var(--zhzj-line);
}
.comment-user-info {
  margin: 0 0 .35rem;
  color: var(--zhzj-muted);
  font-size: .85rem;
}
.comment-item p:last-child {
  margin: 0;
  line-height: 1.7;
}

/* 留言板 · 赞助我们专区 */
.zhzj-sponsor-cta {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 1.55rem;
}
.zhzj-sponsor-cta__lead {
  margin: 0 auto 1.15rem;
  max-width: 28rem;
  color: var(--zhzj-ink-soft);
  font-size: .95rem;
  line-height: 1.75;
  letter-spacing: .04em;
}
.zhzj-sponsor-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
}
.zhzj-sponsor-cta .zhzj-sponsor-btn,
.zhzj-sponsor-cta .zhzj-sponsor-btn {
  min-width: 11rem;
  padding: .55rem 1.35rem;
  font-size: .95rem;
  letter-spacing: .1em;
  background: linear-gradient(180deg, #c4a35a, #8a6a2e);
  border-color: #8a6a2e;
  color: #fffdf6;
  box-shadow: 0 8px 22px rgba(138, 106, 46, 0.28);
}
.zhzj-sponsor-cta .zhzj-sponsor-btn:hover,
.zhzj-sponsor-cta .zhzj-sponsor-btn:hover {
  background: linear-gradient(180deg, #d4b56a, #9a7a3a);
  border-color: #9a7a3a;
  color: #fffef8;
  transform: translateY(-1px);
}

/* 赞助弹窗（挂到 body，避免被页面区块挡住） */
.zhzj-sponsor-mask {
  position: fixed !important;
  inset: 0;
  z-index: 100000;
  background: rgba(20, 16, 12, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  isolation: isolate;
}
.zhzj-sponsor-mask[hidden] { display: none !important; }
.zhzj-sponsor-dialog {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  background: var(--zhzj-paper);
  border: 1px solid var(--zhzj-line-deep);
  border-radius: 14px;
  padding: 1.25rem 1rem 1.1rem;
  box-shadow: 0 22px 60px rgba(0,0,0,.32);
  text-align: center;
}
.zhzj-sponsor-close {
  position: absolute;
  top: .35rem;
  right: .55rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--zhzj-muted);
}
.zhzj-sponsor-title {
  margin: 0 0 .65rem;
  font-family: var(--zhzj-serif);
  font-size: 1.15rem;
}
.zhzj-sponsor-text {
  margin: 0 0 .85rem;
  color: var(--zhzj-ink-soft);
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.zhzj-sponsor-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: .85rem;
}
.zhzj-sponsor-tab {
  border: 1px solid var(--zhzj-line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem 1rem;
  cursor: pointer;
  font: inherit;
}
.zhzj-sponsor-tab.is-on {
  background: var(--zhzj-jade);
  border-color: var(--zhzj-jade);
  color: #fff;
}
.zhzj-sponsor-panel { display: none; }
.zhzj-sponsor-panel.is-on { display: block; }
.zhzj-sponsor-panel img {
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--zhzj-line);
}
.zhzj-sponsor-dl {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .75rem;
  min-width: 10rem;
  border: 1px solid var(--zhzj-gold);
  background: linear-gradient(180deg, #fff9ef, #f3e6cb);
  color: var(--zhzj-gold-deep);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit;
  font-size: .9rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.zhzj-sponsor-dl:hover {
  background: linear-gradient(180deg, var(--zhzj-gold), var(--zhzj-gold-deep));
  color: #fffdf6;
  transform: translateY(-1px);
}
.zhzj-sponsor-dl.is-busy {
  opacity: .7;
  pointer-events: none;
}
.zhzj-sponsor-tip {
  margin: .85rem 0 0;
  color: var(--zhzj-muted);
  font-size: .78rem;
  line-height: 1.55;
}

/* iOS 长按保存到相册 */
.zhzj-ios-save {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(6px);
}
.zhzj-ios-save__panel {
  width: min(22rem, 100%);
  background: linear-gradient(180deg, #fffdf8, #f6f0e4);
  border: 1px solid var(--zhzj-line-deep);
  border-radius: 16px;
  padding: 1.1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.zhzj-ios-save__title {
  margin: 0 0 .35rem;
  font-family: var(--zhzj-kai);
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--zhzj-ink);
}
.zhzj-ios-save__tip {
  margin: 0 0 .85rem;
  color: var(--zhzj-ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}
.zhzj-ios-save__img {
  display: block;
  width: min(100%, 240px);
  margin: 0 auto .9rem;
  border-radius: 10px;
  border: 1px solid var(--zhzj-line);
  background: #fff;
  -webkit-touch-callout: default;
  pointer-events: auto;
  user-select: none;
}
.zhzj-ios-save__close {
  appearance: none;
  border: 1px solid var(--zhzj-jade);
  background: var(--zhzj-jade);
  color: #f8f4ea;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font: inherit;
  font-size: .9rem;
  letter-spacing: .06em;
  cursor: pointer;
}

/* 文章页滚动悬浮快捷栏（手机/桌面均纵向） */
.zhzj-float {
  position: fixed;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  max-width: min(9.5rem, calc(100vw - 1.5rem));
  transition: opacity .25s ease, transform .25s ease;
}
.zhzj-float[hidden] {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.96);
}
.zhzj-float.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.zhzj-float__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(160, 127, 61, 0.4);
  background: linear-gradient(180deg, rgba(255,253,248,.96), rgba(246,240,228,.96));
  color: var(--zhzj-ink-soft);
  border-radius: 999px;
  padding: .52rem .85rem .52rem .55rem;
  font: inherit;
  font-size: .82rem;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(36, 28, 20, 0.16);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
/* display:inline-flex 会盖掉 UA 的 [hidden]，必须强制隐藏 */
.zhzj-float__btn[hidden] {
  display: none !important;
}
.zhzj-float__btn:hover {
  transform: translateY(-1px);
  border-color: var(--zhzj-jade);
  box-shadow: 0 12px 30px rgba(42, 85, 68, 0.18);
}
.zhzj-float__btn--gold {
  border-color: rgba(160, 127, 61, 0.55);
  color: var(--zhzj-gold-deep);
}
a.zhzj-float__btn {
  text-decoration: none;
  box-sizing: border-box;
}
.zhzj-float__btn--board {
  border-color: rgba(42, 85, 68, 0.35);
  color: var(--zhzj-jade-deep);
}
.zhzj-float__btn--board:hover,
.zhzj-float__btn--board:visited {
  color: var(--zhzj-jade-deep);
}
.zhzj-float__btn--top .zhzj-float__ico {
  font-size: .9rem;
}
.zhzj-float__ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--zhzj-jade);
  color: #f8f4ea;
  font-size: .72rem;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
}
.zhzj-float__btn--gold .zhzj-float__ico {
  background: linear-gradient(160deg, #c4a35a, #8a6a2e);
  font-size: .78rem;
  font-family: inherit;
}
.zhzj-float__btn--board .zhzj-float__ico {
  background: linear-gradient(160deg, #3d6b58, #2a5544);
  font-family: var(--zhzj-kai), serif;
  font-size: .78rem;
}
@media (max-width: 640px) {
  .zhzj-float {
    right: max(.55rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    flex-direction: column;
    max-width: 7.6rem;
  }
  .zhzj-float__btn {
    font-size: .78rem;
    padding: .48rem .7rem .48rem .48rem;
    letter-spacing: .03em;
  }
  .zhzj-float__btn span:not(.zhzj-float__ico) {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 兼容旧类名（生成器/分页可能仍输出） */
.container.module,
.article-list.module,
.article-list-cat.module,
.friend-links.module,
.comment-form.module,
.article-content.module {
  background: var(--zhzj-paper);
  border: 1px solid var(--zhzj-line);
  border-radius: var(--zhzj-radius);
  box-shadow: var(--zhzj-shadow-soft);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.1rem;
}
.list-style,
.article-title { font-family: var(--zhzj-kai); }
.article-text { font-family: var(--zhzj-serif); line-height: 2.05; }
.pagination-container { text-align: center; margin: 1rem 0; }
.bg-image, .site-menu, .site-logo, .site-intro { /* 旧结构由新模板替代 */ }

/* 首页栏目轻微错落入场 */
.zhzj-page-home .zhzj-section {
  animation: zhzj-rise .65s ease both;
}
.zhzj-page-home .zhzj-section:nth-of-type(1) { animation-delay: .05s; }
.zhzj-page-home .zhzj-section:nth-of-type(2) { animation-delay: .1s; }
.zhzj-page-home .zhzj-section:nth-of-type(3) { animation-delay: .15s; }
.zhzj-page-home .zhzj-friends { animation-delay: .2s; }

@media (max-width: 820px) {
  .zhzj-list { grid-template-columns: 1fr; }
  .zhzj-form__row { grid-template-columns: 1fr; }
  .zhzj-nav-toggle { display: inline-flex; }
  .zhzj-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .zhzj-top__inner { flex-wrap: wrap; }
  .zhzj-nav.is-open { display: flex; }
  .zhzj-nav a { padding: .55rem .7rem; }
  .zhzj-pager { grid-template-columns: 1fr; }
  .zhzj-pager__item--next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  .zhzj-hero,
  .zhzj-page-home .zhzj-section {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .zhzj-top, .zhzj-reader-bar, .zhzj-reader-mask, .zhzj-float, .zhzj-actions, .zhzj-comment, .zhzj-foot, .zhzj-sponsor-mask { display: none !important; }
  body { background: #fff; }
  .zhzj-read { box-shadow: none; border: 0; }
}


/* —— 阅读进度 / 404 —— */
.zhzj-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.zhzj-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--zhzj-accent), var(--zhzj-accent-2));
}
.zhzj-error { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }
.zhzj-error__code {
  margin: 0 0 .35rem;
  font-family: var(--zhzj-serif);
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: .2em;
  color: var(--zhzj-muted);
  line-height: 1;
}
.zhzj-error__actions { margin-top: 1.5rem; }
.zhzj-crumb-wrap { margin-bottom: .2rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ==== 皮肤签名：jingmei（格局/边框/纹理/排版） ==== */
/* —— 精美风：双线金框 + 圆角玉牌顶栏 —— */
.zhzj-top {
  backdrop-filter: blur(14px);
  background: rgba(252,250,246,.92);
  border-bottom: none;
  box-shadow: 0 1px 0 var(--zhzj-line), 0 8px 28px rgba(28,25,21,.04);
}
.zhzj-top::after {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--zhzj-gold), var(--zhzj-jade), var(--zhzj-gold), transparent);
}
.zhzj-brand__mark {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 2px solid var(--zhzj-gold);
  box-shadow: 0 0 0 4px var(--zhzj-gold-soft);
}
.zhzj-hero {
  border-radius: 20px;
  border: 2px solid var(--zhzj-line-deep);
  box-shadow: var(--zhzj-shadow), inset 0 0 0 6px rgba(255,255,255,.35);
}
.zhzj-hero::before { inset: .7rem; border-radius: 14px; border-style: double; border-width: 3px; }
.zhzj-hero::after { display: none; }
.zhzj-section {
  border-radius: 18px;
  border: 1px solid var(--zhzj-line);
  box-shadow: var(--zhzj-shadow-soft);
}
.zhzj-section::before {
  background: linear-gradient(90deg, transparent, var(--zhzj-gold), transparent);
  height: 2px;
}
.zhzj-read {
  border-radius: 16px;
  border: 2px solid var(--zhzj-line-deep);
  box-shadow: var(--zhzj-shadow);
}
.zhzj-list a::before { content: "✦"; color: var(--zhzj-gold); }
.zhzj-nav a { border-radius: 999px; }
.zhzj-foot::before { content: "✦"; }
