/* 《诗与酒》诗人资料框 V3：旧版中央花饰恢复；左右中段贯通一笔。
 * 独立加载于诗人详情，覆盖旧 theme.css 的拆段边框样式。
 * 浏览器未执行轻量侧线脚本前，保留旧卷草及竖线作回退。
 */
.poet-facts-frame {
  position: absolute;
  inset: 0;
  color: #8E6B37;
  pointer-events: none;
}
.poet-facts-frame svg {
  position: absolute;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}
.poet-facts-frame path { vector-effect: non-scaling-stroke; }

/* 保留原本的横线，让旧版中央云花用纸色底遮线，
 * 不将云花改成上一轮的几何桥梁。 */
.poet-facts-frame__rail {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 1px;
  background: currentColor;
}
.poet-facts-frame__rail--top { top: 0; }
.poet-facts-frame__rail--bottom { bottom: 0; }
.poet-facts-frame__rail::before,
.poet-facts-frame__rail::after { display: none; }

.poet-facts-frame__corner { width: 28px; height: 28px; }
.poet-facts-frame__corner--tl { top: 0; left: 0; transform: none; }
.poet-facts-frame__corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.poet-facts-frame__corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.poet-facts-frame__corner--br { bottom: 0; right: 0; transform: scale(-1); }

/* 恢复2026-10-06原始中央云花的形态及尺寸；上下严格镜像。 */
.poet-facts-frame .poet-facts-frame__cloud {
  left: 50%;
  width: 40px;
  height: 22.5px;
  margin-left: -20px;
  background: #F5F1E7;
  stroke-width: 1px;
}
.poet-facts-frame__cloud--top {
  top: -14.375px;
  bottom: auto;
  transform: none;
}
.poet-facts-frame__cloud--bottom {
  bottom: -14.375px;
  top: auto;
  transform: scaleY(-1);
}

/* 保留脚本失败时的完整回退图案。 */
.poet-facts-frame__side-line {
  position: absolute;
  width: 1px;
  background: currentColor;
}
.poet-facts-frame__side-line--tl,
.poet-facts-frame__side-line--tr { top: 28px; bottom: calc(50% + 19px); }
.poet-facts-frame__side-line--bl,
.poet-facts-frame__side-line--br { bottom: 28px; top: calc(50% + 19px); }
.poet-facts-frame__side-line--tl,
.poet-facts-frame__side-line--bl { left: 0; }
.poet-facts-frame__side-line--tr,
.poet-facts-frame__side-line--br { right: 0; }
.poet-facts-frame .poet-facts-frame__hook {
  width: 32px;
  height: 38px;
  top: 50%;
  margin-top: -19px;
  background: transparent;
  stroke-width: 1px;
}
.poet-facts-frame__hook--left { left: -15.5px; transform: none; }
.poet-facts-frame__hook--right { right: -15.5px; transform: scaleX(-1); }

/* V3：同一SVG的单条主轮廓包含上直线、内凹过渡、下直线；
 * 自身固定宽32px，viewBox高随资料框ResizeObserver更新，卷草不拉伸。
 * 16px中轴 + left:-15.5px = 左边框线中心0.5px；
 * 右侧使用同一SVG镜像，确保两侧不再分别测量和调整。
 */
.poet-facts-frame .poet-facts-frame__continuous-side {
  position: absolute;
  top: 0;
  width: 32px;
  height: 100%;
  overflow: visible;
  visibility: hidden;
  background: transparent;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.poet-facts-frame__continuous-side--left {
  left: -15.5px;
  right: auto;
  transform: none;
}
.poet-facts-frame__continuous-side--right {
  right: -15.5px;
  left: auto;
  transform: scaleX(-1);
}
.poet-facts-frame .poet-facts-frame__continuous-outline {
  stroke-linecap: butt;
}
.poet-facts-frame--joined .poet-facts-frame__continuous-side {
  visibility: visible;
}
.poet-facts-frame--joined .poet-facts-frame__side-line,
.poet-facts-frame--joined .poet-facts-frame__hook {
  display: none;
}

/* 随框高而非屏宽改变线段长度；手机仅沿用相同端点与描边。 */

/* 一幅完整可缩放SVG V4：与透明设计稿同路径、同色、同一渲染图层。
 * V3分段组件保留作脚本失败的回退；V4路径就绪后全部隐藏，
 * 不再混合使用CSS背景直线和SVG描边造成两侧颜色深浅不一。 */
.poet-facts-frame.poet-facts-frame--v4 > :not(.poet-facts-frame__whole-v4) {
  display: none !important;
}
.poet-facts-frame .poet-facts-frame__whole-v4 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  visibility: visible;
  fill: none;
  stroke: #8E6B37;
  stroke-width: 1px;
  stroke-opacity: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  pointer-events: none;
}
.poet-facts-frame .poet-facts-frame__whole-v4 path {
  vector-effect: non-scaling-stroke;
}

/* V5：简洁云水纹，按原诗人资料容器高度实时重绘。
 * 一幅SVG统一使用同色1px描边，避免旧独立段落的颜色/接点偏差。
 * 与框内排版完全隔离：绝不通过素材本身决定框高。 */
.poet-facts-frame.poet-facts-frame--v5 > :not(.poet-facts-frame__whole-v5) {
  display: none !important;
}
.poet-facts-frame .poet-facts-frame__whole-v5 {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  visibility: visible;
  pointer-events: none;
  fill: none;
  stroke: #8E6B37;
  stroke-opacity: 1;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}
.poet-facts-frame .poet-facts-frame__whole-v5 path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
