/* Shenjian — face map + reader */
.sj-face-section { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.sj-face-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 32px; }
.sj-face-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.sj-face { position: relative; width: min(100%, 500px); aspect-ratio: 420/560; margin-inline: auto; }
.sj-face svg { width: 100%; height: 100%; }
.sj-hotspot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--cinnabar); border: 2px solid var(--paper-2);
  box-shadow: 0 0 0 1px rgba(163,55,42,.4); cursor: pointer; transition: transform .3s;
}
.sj-hotspot::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(163,55,42,.4); border-radius: 50%; animation: sjPulse 3s infinite; }
.sj-hotspot:hover, .sj-hotspot.on { transform: scale(1.35); background: var(--ink); }
.sj-hotspot span {
  position: absolute; left: 18px; top: -6px; white-space: nowrap;
  font-family: var(--serif-zh); font-size: 12px; letter-spacing: .1em; color: var(--ink-soft);
  background: var(--paper-2); padding: 1px 5px; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.sj-hotspot:hover span, .sj-hotspot.on span { opacity: 1; }
@keyframes sjPulse { 0%,100% { transform: scale(.8); opacity: .3; } 50% { transform: scale(1.15); opacity: .9; } }

.sj-face-panel { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px); min-height: 300px; }
.sj-face-panel .region-zh { font-family: var(--serif-zh); font-size: clamp(34px, 4vw, 48px); letter-spacing: .1em; }
.sj-face-panel .region-en { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--cinnabar); margin-top: 4px; }
.sj-face-panel .quote { font-family: var(--serif-zh); font-size: 15px; line-height: 1.9; margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--gold); color: var(--ink-soft); }
.sj-face-panel .gist { font-family: var(--serif); font-size: 16px; line-height: 1.7; margin-top: 18px; color: var(--ink-soft); }
.sj-face-panel .caution { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 18px; }

.sj-reader-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.sj-juan-tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 38px; overflow-x: auto; }
.sj-juan-tabs button {
  flex: 1; min-width: 100px; padding: 16px 12px; font-family: var(--serif-zh); font-size: 17px; letter-spacing: .12em;
  border-right: 1px solid var(--line-soft); color: var(--muted); transition: all .3s; white-space: nowrap;
}
.sj-juan-tabs button:last-child { border-right: 0; }
.sj-juan-tabs button small { display: block; font-family: var(--sans); font-size: 8px; letter-spacing: .16em; color: var(--muted-2); margin-top: 5px; text-transform: uppercase; }
.sj-juan-tabs button.on { background: var(--ink); color: var(--paper); }
.sj-juan-tabs button.on small { color: rgba(244,239,227,.55); }

.sj-reader { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.sj-toc { position: sticky; top: 90px; border-right: 1px solid var(--line); padding-right: 24px; max-height: calc(100vh - 120px); overflow: auto; }
.sj-toc-title { font-family: var(--serif-zh); font-size: 15px; letter-spacing: .08em; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sj-toc-list button { display: block; width: 100%; text-align: left; font-family: var(--serif-zh); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); padding: 8px 0 8px 12px; border-left: 1px solid transparent; transition: all .25s; }
.sj-toc-list button:hover { color: var(--ink); border-left-color: var(--line); }
.sj-toc-list button.on { color: var(--cinnabar); border-left-color: var(--cinnabar); }
.sj-toc-list button small { display: block; font-family: var(--sans); font-size: 9px; color: var(--muted-2); margin-top: 3px; }

.sj-article { max-width: 760px; }
.sj-juan-intro { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 36px; }
.sj-juan-intro .vol { font-family: var(--serif-zh); font-size: 48px; letter-spacing: .16em; line-height: 1; }
.sj-juan-intro .vol-en { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin-top: 6px; }
.sj-juan-intro p { font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-top: 20px; }
.sj-section { padding: 8px 0 34px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; scroll-margin-top: 90px; }
.sj-section h3 { font-family: var(--serif-zh); font-size: 26px; letter-spacing: .08em; font-weight: 400; }
.sj-section .en-title { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); margin-top: 4px; }
.sj-section .gist { font-family: var(--serif); font-size: 14px; line-height: 1.65; color: var(--cinnabar); margin: 14px 0 18px; padding-left: 14px; border-left: 1px solid rgba(163,55,42,.4); }
.sj-section .gj { font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--muted); margin: -8px 0 16px; }
.sj-section p { font-family: var(--serif-zh); font-size: 17px; line-height: 2.05; letter-spacing: .02em; margin-bottom: 12px; text-align: justify; }
.sj-section .explain { display: inline-flex; gap: 6px; align-items: center; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; margin-top: 8px; }
.sj-section .explain:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.sj-note { border-top: 1px solid var(--line); background: var(--paper-2); }
.sj-note .num { font-family: var(--mono); font-size: 10px; color: var(--cinnabar); letter-spacing: .2em; margin-bottom: 14px; }
.sj-note h3 { margin-bottom: 12px; }

@media (max-width: 1080px) {
  .sj-face-wrap { grid-template-columns: 1fr; }
  .sj-face-panel { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .sj-reader { grid-template-columns: 1fr; }
  .sj-toc { position: static; max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
}
@media (max-width: 720px) {
  .sj-face-head, .sj-reader-head { flex-direction: column; align-items: flex-start; }
  .sj-juan-tabs button { min-width: 84px; font-size: 15px; padding: 12px 8px; }
  .sj-section p { font-size: 16px; line-height: 1.95; }
  .sj-face { width: 92%; }
}
