/*
---
generated_by: builtin:bigmodel-coding-plan/GLM-5.3
date: 2026-11-03
core_logic: S2b 百科说明静帧双态宿主样式（配 ency-still-host.js）。HOST-CSS-LOCK 双态：
  collapsed=预览裁切（max-height + object-fit cover）+入口钮；expanded=固定教学面 sheet，
  图面恒 720 CSS px（金样 viewBox 720×520 1:1），窄栏（390 侧栏）横滑 viewport
  （LOCK #2 允许），教学面宽度以 .ency-still-figure img { width: 720px } 可量测。
  TYPE-FLOOR=A：不改 kit 作者单位，本文件只作用于 S2b 静态宿主自有类，零 kit 触碰。
  动效冻结：本文件零 transition/零 animation/零 keyframes（S3 前静帧，D26 无限脉冲禁）。
  色板走 tokens（--reflect-paper/ink/rust 与金样 #eee9dd/#18201b/#a3422d 同值同源）。
test_record: server/tests/website/reflect-ency-still-mount.test.ts（静态扫描 720px 合同 +
  零动画 + 零购买 CTA）。
recent_changes:
  - 2026-11-03: 初版（S2b B1/B2 金样挂载）。
---
*/

/* ============ collapsed：预览（可裁切）+ 入口钮 ============ */

.ency-still {
  margin: 4px 0 0 0;
  border: 1px solid var(--reflect-line);
  border-radius: 8px;
  background: var(--reflect-paper-light);
  overflow: hidden;
}

.ency-still-preview {
  max-height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--reflect-hairline);
}

.ency-still-preview picture,
.ency-still-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.ency-still-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--reflect-hairline);
  background: var(--reflect-paper);
  color: var(--reflect-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.ency-still-open:active {
  background: var(--reflect-paper-deep);
}

.ency-still-caption {
  margin: 0;
  padding: 8px 12px 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--reflect-ink-soft);
}

.ency-still-prefix {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid var(--reflect-line);
  border-radius: 999px;
  font-family: var(--reflect-sans);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--reflect-ink);
  vertical-align: 1px;
}

/* ============ expanded：固定教学面 sheet（图面恒 720px，窄栏横滑） ============ */

.ency-still-sheet {
  position: fixed;
  inset: 0;
  z-index: 80; /* 顶栏 z40 / 弹层 z50+ 之上 */
  display: flex;
  flex-direction: column;
  background: var(--reflect-paper); /* 与金样纸底 #eee9dd 同值，教学面无缝 */
  color: var(--reflect-ink);
}

.ency-still-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--reflect-line);
  background: var(--reflect-paper-light);
}

.ency-still-sheet-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ency-still-sheet-title {
  margin: 0;
  font-family: var(--reflect-serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--reflect-ink);
}

.ency-still-close {
  flex: none;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--reflect-line);
  border-radius: 8px;
  background: var(--reflect-paper);
  color: var(--reflect-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ency-still-close:active {
  background: var(--reflect-paper-deep);
}

.ency-still-viewport {
  flex: 1 1 auto;
  overflow: auto; /* 双向滚动：窄栏横滑（HOST-CSS-LOCK #2 横滑 viewport 形态） */
  padding: 16px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: safe center;
  gap: 16px;
}

/* 教学面合同：图面恒 720 CSS px（≥720 可量测锚点）。窄于 720 的宿主出横向滚动，
   图面本身不缩水——字号门在 1:1 渲染宽上成立。 */
.ency-still-figure picture,
.ency-still-figure img,
.ency-still-step picture,
.ency-still-step img {
  display: block;
  width: 720px;
  max-width: none;
  height: auto;
}

.ency-still-figure {
  margin: 0;
}

.ency-still-step {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.ency-still-step-label {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--reflect-rust);
}

.ency-still-sheet .ency-still-caption {
  padding: 0;
  font-size: 14px;
}

.ency-still-boundary {
  margin: 4px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--reflect-hairline);
  width: 720px;
  max-width: none;
  font-size: 12.5px;
  text-align: center;
  color: var(--reflect-ink-soft);
}
