.poster-workbench {
  margin-top: 16px;
}

.poster-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.poster-editor-grid .wide {
  grid-column: 1 / -1;
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.poster-style-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.poster-style-toolbar label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.poster-style-toolbar span {
  color: var(--ink-muted);
  font-size: 10px;
  white-space: nowrap;
}

.poster-style-toolbar select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 24px 5px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-dark);
  font-size: 11px;
}

.poster-style-note {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.poster-style-note:empty {
  display: none;
}

.poster-preview-shell {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #ddd5c9;
  border-radius: 14px;
  background: #e9e3da;
}

.poster-preview-stage {
  width: 1080px;
  transform-origin: top left;
}

.poster-asset-list {
  display: grid;
  gap: 10px;
}

.poster-asset-row {
  --asset-thumb-width: 88px;
  --asset-thumb-height: 66px;
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 28px 11px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.poster-asset-media {
  width: var(--asset-thumb-width);
  min-width: 0;
}

.poster-asset-media img {
  display: block;
  width: var(--asset-thumb-width);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.poster-asset-copy {
  min-width: 0;
  padding-right: 82px;
}

.poster-asset-copy strong,
.poster-asset-file {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-asset-copy strong {
  font-size: 13px;
}

.poster-asset-file {
  width: var(--asset-thumb-width);
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.poster-asset-detail-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
}

.poster-asset-identity {
  width: 190px;
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.poster-asset-identity label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-muted);
  font-size: 10px;
  white-space: nowrap;
}

.poster-asset-identity input {
  box-sizing: border-box;
  width: 68px;
  height: 34px;
  flex: 1 1 68px;
  min-width: 38px;
  padding: 5px 6px;
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-dark);
  font-size: 12px;
}

.poster-asset-controls {
  display: flex;
  align-items: center;
  width: 190px;
  flex: 0 0 190px;
  min-width: 190px;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.poster-asset-placement {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 190px;
  flex: 0 0 190px;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 11px;
}

.poster-asset-placement select {
  box-sizing: border-box;
  width: auto;
  flex: 1;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}

.poster-asset-controls button {
  min-height: 34px;
  padding: 5px 9px;
}

.poster-asset-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 10px;
  bottom: 11px;
}

.poster-crop-button {
  position: absolute;
  top: 29px;
  right: 10px;
  min-height: 38px !important;
  padding: 6px 13px !important;
  border-color: #2d7164;
  background: #2f776a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 0 #1f594f;
}

.poster-asset-move-handle {
  position: absolute;
  top: 4px;
  left: 50%;
  display: inline-flex;
  width: 34px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: #bfb8b0;
  color: #fff;
  cursor: grab;
  font-size: 0;
  line-height: 1;
  transform: translateX(-50%);
  touch-action: none;
}

.poster-asset-move-handle::before {
  width: 14px;
  height: 8px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0 1px, transparent 1px 3px);
  content: '';
}

.poster-asset-move-handle:active {
  cursor: grabbing;
}

.poster-asset-row.is-reordering {
  opacity: 0.58;
}

.poster-asset-row.is-reorder-target {
  border-color: #2f776a;
  box-shadow: 0 0 0 2px rgba(47, 119, 106, 0.16);
}

.section-collapse {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.section-collapse.open {
  transform: rotate(90deg);
}

.section-collapse svg {
  width: 16px;
  height: 16px;
}

.visibility-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.visibility-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.visibility-switch span {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #bfb8b0;
  box-shadow: inset 0 1px 2px rgba(42, 29, 20, 0.18);
  transition: background 0.18s ease;
}

.visibility-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(42, 29, 20, 0.25);
  content: '';
  transition: transform 0.18s ease;
}

.visibility-switch input:checked + span {
  background: #b53a3e;
}

.visibility-switch input:checked + span::after {
  transform: translateX(16px);
}

.visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 11px;
}

.crop-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 24, 23, 0.58);
}

.crop-modal[hidden] {
  display: none;
}

.crop-dialog {
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 17px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.crop-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.crop-dialog-head h2 {
  font-size: 17px;
}

.crop-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1efeb;
  color: var(--ink-dark);
  cursor: pointer;
  font-size: 20px;
}

.crop-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.35) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.35) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.35) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.35) 75%),
    #dcd8d1;
  background-position:
    0 0,
    10px 10px,
    0 0;
  background-size:
    20px 20px,
    20px 20px,
    auto;
  touch-action: none;
}

.crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.crop-stage img.fit-contain {
  object-fit: contain;
}

.crop-stage::before {
  position: absolute;
  content: '';
  z-index: 2;
  top: var(--crop-top, 8%);
  left: var(--crop-left, 8%);
  width: var(--crop-width, 84%);
  height: var(--crop-height, 84%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 0;
  box-shadow:
    0 0 0 999px rgba(18, 24, 23, 0.36),
    inset 0 0 0 1px rgba(32, 62, 56, 0.25);
  pointer-events: none;
}

.crop-stage::after {
  position: absolute;
  z-index: 3;
  content: '保留区域';
  top: calc(var(--crop-top, 8%) + 8px);
  left: calc(var(--crop-left, 8%) + 8px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(32, 62, 56, 0.88);
  color: #fff6e6;
  font-size: 11px;
  letter-spacing: 1px;
  pointer-events: none;
}

.crop-readout {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.crop-control {
  display: none;
}

.crop-control label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-size: 12px;
}

.crop-control input[type='range'] {
  width: 100%;
  accent-color: #28685d;
}

.crop-gamepad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-width: 292px;
  padding: 12px;
  margin: 16px auto 0;
  border: 1px solid #d9d0c2;
  border-radius: 22px;
  background: linear-gradient(145deg, #f7f2ea, #e7ded0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(40, 31, 21, 0.12);
}

.crop-gamepad .up {
  grid-column: 2;
}

.crop-gamepad .left {
  grid-column: 1;
}

.crop-gamepad .right {
  grid-column: 3;
}

.crop-gamepad .down {
  grid-column: 2;
}

.crop-gamepad button,
.crop-gamepad-status {
  min-height: 58px;
  border: 1px solid #cbbda9;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #ebe2d5);
  color: var(--ink-dark);
  font-size: 13px;
}

.crop-gamepad button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 3px 0 #c6b9a6;
}

.crop-gamepad button span {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.crop-gamepad button small {
  color: #7b7063;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.crop-gamepad button:active,
.crop-gamepad button.active {
  border-color: #28685d;
  background: linear-gradient(180deg, #e9f6f2, #d2e8e1);
  color: #23574d;
  font-weight: 700;
  box-shadow: inset 0 2px 5px rgba(21, 77, 66, 0.16);
  transform: translateY(2px);
}

.crop-gamepad .zoom-out,
.crop-gamepad .zoom-in {
  background: linear-gradient(180deg, #fff5e3, #ecd7b8);
  color: #8a5f22;
}

.crop-gamepad .minus,
.crop-gamepad .plus {
  background: linear-gradient(180deg, #eef9f5, #d8eee6);
  color: #245e54;
  font-weight: 800;
}

.crop-gamepad-status {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.crop-actions {
  display: flex;
  gap: 9px;
  margin-top: 15px;
}

.crop-actions .reading-btn {
  flex: 1;
}

.export-result {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}

.export-result img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.export-result p {
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.poster-render-host {
  position: fixed;
  z-index: -1;
  top: 0;
  left: -12000px;
  width: 1080px;
  pointer-events: none;
}

.publicity-reading-poster {
  --poster-ink: #1e2b28;
  --poster-jade: #315f55;
  --poster-paper: #f5f0e6;
  width: 1080px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(49, 95, 85, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 85, 0.035) 1px, transparent 1px),
    var(--poster-paper);
  background-size:
    36px 36px,
    36px 36px,
    auto;
  color: var(--poster-ink);
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

.prp-cover {
  position: relative;
  padding: 48px 64px 40px;
  background:
    radial-gradient(circle at 86% 20%, rgba(163, 48, 53, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(234, 224, 205, 0.96)),
    #f3ecdf;
  background-size:
    auto,
    auto,
    auto;
  border-bottom: 8px solid #203e38;
}

.prp-cover::before {
  position: absolute;
  right: 64px;
  bottom: -8px;
  left: 64px;
  height: 1px;
  background: rgba(244, 223, 186, 0.72);
  content: '';
}

.prp-cover::after {
  position: absolute;
  content: '';
  top: 0;
  right: 64px;
  width: 144px;
  height: 9px;
  background: #a33035;
}

.prp-brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: #203e38;
  color: #f4dfba;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 22px;
  letter-spacing: 4px;
}

.prp-date-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 34px;
}

.prp-date {
  color: #a33035;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 1px;
}

.prp-weekday {
  color: #7d7468;
  font-size: 24px;
}

.prp-title-block {
  margin-top: 30px;
}

.prp-scope {
  color: var(--poster-jade);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.prp-title-block h1 {
  margin: 13px 0 0;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 2px;
}

.prp-title-block p {
  margin-top: 12px;
  color: #776f65;
  font-size: 23px;
  letter-spacing: 2px;
}

.prp-hero {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  border-radius: 3px;
  background: #d6d0c6;
}

.prp-hero-figure .prp-image-frame {
  aspect-ratio: 16 / 8.3;
}

.prp-image-frame {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #d9d4cc;
}

.prp-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

@media (max-width: 420px) {
  .poster-style-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-asset-row {
    --asset-thumb-width: 74px;
    --asset-thumb-height: 56px;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 9px;
  }

  .poster-asset-detail-row {
    gap: 5px;
  }

  .poster-asset-actions {
    right: 10px;
  }
}

/* 已裁切图片不再沿用卡片的固定比例：裁切框比例由原图尺寸和保存的
 * 取景框共同决定，图片也按取景框在原图中的真实位置铺放。 */
.prp-image-frame.prp-crop-frame {
  position: relative;
  height: auto !important;
  aspect-ratio: var(--prp-crop-width) / var(--prp-crop-height);
}

.prp-image-frame.prp-crop-frame img {
  position: absolute;
  display: block;
  width: auto;
  height: auto !important;
  max-width: none;
  object-fit: initial;
}

.prp-hero-figure,
.prp-role-card,
.prp-overview-card,
.prp-moment-card {
  margin: 0;
}

.prp-hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 310px;
  padding: 22px 28px;
  background: rgba(26, 43, 39, 0.9);
  color: #fff;
}

.prp-hero-caption span,
.prp-hero-caption strong {
  display: block;
}

.prp-hero-caption span {
  color: #d9c6a4;
  font-size: 17px;
  letter-spacing: 3px;
}

.prp-hero-caption strong {
  margin-top: 7px;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 27px;
}

.prp-stat-row {
  display: flex;
  gap: 1px;
  margin-top: 1px;
  background: #d6cdbc;
}

.prp-stat-row > div {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 25px 15px;
  background: #f8f4ec;
}

.prp-stat-row strong {
  color: #a33035;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 38px;
}

.prp-stat-row span {
  color: #736b60;
  font-size: 18px;
}

.prp-section {
  padding: 48px 64px 56px;
}

.prp-section:nth-of-type(even) {
  background: #eee7da;
}

.prp-section-kicker {
  color: #a33035;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 6px;
}

.prp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  margin-top: 9px;
  border-bottom: 2px solid #2f5d53;
}

.prp-section-heading h2 {
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 43px;
  font-weight: 700;
}

.prp-section-heading p {
  max-width: 470px;
  color: #756d62;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 19px;
  line-height: 1.55;
  text-align: right;
}

.prp-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  counter-reset: focus-person;
}

.prp-role-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5c8b5;
  border-radius: 2px;
  background: #f9f3e8;
  box-shadow: 0 15px 28px rgba(48, 37, 24, 0.08);
}

.prp-role-card .prp-image-frame {
  height: auto;
  aspect-ratio: auto;
  background: #1d2825;
}

.prp-role-card .prp-image-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.prp-role-card.prp-has-crop .prp-image-frame {
  aspect-ratio: 4 / 3;
}

.prp-role-card.prp-has-crop .prp-image-frame.prp-crop-frame,
.prp-overview-card.prp-has-crop .prp-image-frame.prp-crop-frame {
  aspect-ratio: var(--prp-crop-width) / var(--prp-crop-height);
}

.prp-role-card.prp-has-crop .prp-image-frame img,
.prp-overview-card.prp-has-crop .prp-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prp-role-card figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 13px 16px;
  border-top: 1px solid #d8ccb8;
  background: linear-gradient(180deg, #fffaf0, #f2e7d5);
}

.prp-role-card figcaption::before {
  display: none;
  width: 40px;
  height: 4px;
  margin-bottom: 12px;
  background: #a33035;
  content: '';
}

.prp-moment-card figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px 0;
  background: var(--poster-paper);
}

.prp-moment-card figcaption span {
  color: #9a7238;
  font-size: 17px;
  letter-spacing: 1px;
}

.prp-moment-card figcaption strong {
  overflow: hidden;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prp-role-caption span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 8px;
  background: #203e38;
  color: #f2ddbb;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.prp-role-caption strong {
  display: inline-block;
  margin-right: 10px;
  overflow: hidden;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 28px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prp-role-caption div {
  display: flex;
  align-items: center;
  min-width: 0;
}

.prp-class .prp-role-grid,
.prp-large .prp-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prp-class .prp-role-caption strong,
.prp-large .prp-role-caption strong {
  font-size: 22px;
}

.prp-overview-grid {
  display: grid;
  gap: 0;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid #d4c6b0;
}

.prp-overview-grid-single {
  grid-template-columns: 1fr;
}

.prp-overview-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prp-overview-card .prp-image-frame {
  height: auto;
  aspect-ratio: auto;
  background: #1d2825;
}

.prp-overview-grid-two .prp-overview-card .prp-image-frame {
  height: auto;
  aspect-ratio: auto;
}

.prp-overview-card.prp-has-crop .prp-image-frame {
  aspect-ratio: 16 / 8.6;
}

.prp-overview-grid-two .prp-overview-card.prp-has-crop .prp-image-frame {
  aspect-ratio: 4 / 3;
}

.prp-overview-grid-two .prp-overview-card.prp-has-crop .prp-image-frame.prp-crop-frame {
  aspect-ratio: var(--prp-crop-width) / var(--prp-crop-height);
}

.prp-overview-card .prp-image-frame img {
  height: auto;
  object-fit: contain;
}

.prp-moment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.prp-class .prp-moment-grid,
.prp-large .prp-moment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prp-moment-card .prp-image-frame {
  aspect-ratio: 4 / 3;
}

.prp-footer {
  padding: 76px 72px 60px;
  border-top: 8px solid #a33035;
  background:
    radial-gradient(circle at 14% 12%, rgba(216, 183, 126, 0.18), transparent 28%),
    #203e38;
  background-size:
    auto,
    auto;
  color: #fff;
}

.prp-footer-mark {
  color: #d8b77e;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 24px;
  letter-spacing: 8px;
}

.prp-footer blockquote {
  max-width: 820px;
  margin: 34px 0 56px;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.65;
}

.prp-footer-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  letter-spacing: 1px;
}

/* 书院纪实画报：用刊头、主视觉与非均分照片建立更清晰的阅读节奏。 */
.publicity-reading-poster {
  --poster-ink: #211e19;
  --poster-muted: #746b5f;
  --poster-paper: #efe6d6;
  --poster-paper-light: #f8f3e9;
  --poster-vermilion: #79252d;
  --poster-gold: #b9965b;
  --poster-jade: #355a52;
  background:
    linear-gradient(90deg, rgba(62, 46, 29, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(62, 46, 29, 0.02) 1px, transparent 1px),
    var(--poster-paper);
  background-size:
    44px 44px,
    44px 44px,
    auto;
  box-shadow: inset 0 0 0 1px rgba(59, 45, 29, 0.12);
}

.prp-cover {
  padding: 34px 40px 46px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(185, 150, 91, 0.17), transparent 32%),
    var(--poster-paper-light);
}

.prp-cover::before {
  z-index: 0;
  inset: 18px;
  height: auto;
  border: 1px solid rgba(85, 66, 42, 0.24);
  background: transparent;
  pointer-events: none;
}

.prp-cover::after {
  z-index: 1;
  top: 18px;
  right: 40px;
  width: 178px;
  height: 6px;
  background: var(--poster-vermilion);
}

.prp-masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 12px 16px 24px;
  border-bottom: 1px solid rgba(54, 44, 31, 0.42);
}

.prp-brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 0;
  background: transparent;
  color: var(--poster-ink);
  letter-spacing: 0;
}

.prp-brand span {
  color: var(--poster-vermilion);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 5px;
}

.prp-brand strong {
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
}

.prp-issue {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--poster-muted);
  line-height: 1.25;
}

.prp-issue span {
  color: var(--poster-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.prp-issue strong {
  margin-top: 5px;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 21px;
  font-weight: 600;
}

.prp-hero {
  z-index: 1;
  margin-top: 28px;
  border: 1px solid rgba(46, 36, 24, 0.5);
  border-radius: 0;
  background: #292722;
  box-shadow: 0 22px 48px rgba(44, 31, 17, 0.15);
}

.prp-hero-figure .prp-image-frame {
  height: auto;
  aspect-ratio: 16 / 10;
}

.prp-hero-figure .prp-image-frame img {
  object-fit: cover;
}

.prp-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0.08) 26%, rgba(18, 16, 13, 0.84) 100%),
    linear-gradient(90deg, rgba(17, 15, 12, 0.3), transparent 64%);
  pointer-events: none;
}

.prp-title-block {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.prp-title-on-image {
  position: absolute;
  right: 46px;
  bottom: 48px;
  left: 46px;
  max-width: 820px;
  color: #fffaf1;
}

.prp-date-row {
  gap: 14px;
  margin-top: 0;
}

.prp-title-on-image .prp-date {
  color: #e8c98f;
  font-size: 39px;
  font-weight: 600;
  letter-spacing: 2px;
}

.prp-title-on-image .prp-weekday {
  color: rgba(255, 250, 241, 0.72);
  font-size: 19px;
}

.prp-title-on-image .prp-scope {
  margin-top: 28px;
  color: #e7c783;
  font-size: 19px;
  letter-spacing: 7px;
}

.prp-title-block h1 {
  margin-top: 13px;
  color: inherit;
  font-size: 86px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 4px;
}

.prp-title-block p {
  margin-top: 17px;
  color: inherit;
  font-size: 20px;
  letter-spacing: 3px;
  opacity: 0.76;
}

.prp-title-panel {
  position: relative;
  z-index: 1;
  min-height: 470px;
  padding: 70px 54px 58px;
  margin-top: 28px;
  border: 1px solid rgba(54, 38, 27, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%),
    var(--poster-vermilion);
  color: #fffaf1;
}

.prp-title-panel .prp-date,
.prp-title-panel .prp-scope {
  color: #e8c98f;
}

.prp-title-panel .prp-weekday {
  color: rgba(255, 250, 241, 0.72);
}

.prp-cover-seal {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  width: 46px;
  padding: 11px 7px;
  border: 1px solid rgba(255, 246, 229, 0.8);
  background: var(--poster-vermilion);
  color: #fff8e9;
  font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: 5px;
  text-align: center;
  writing-mode: vertical-rl;
}

.prp-title-panel .prp-cover-seal {
  background: transparent;
}

.prp-hero-caption {
  z-index: 3;
  top: 28px;
  right: auto;
  bottom: auto;
  left: 28px;
  min-width: 0;
  padding: 10px 14px;
  border-left: 4px solid #e8c98f;
  background: rgba(25, 22, 18, 0.72);
  backdrop-filter: blur(4px);
}

.prp-hero-caption span {
  color: #e8c98f;
  font-size: 12px;
  letter-spacing: 3px;
}

.prp-hero-caption strong {
  max-width: 420px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prp-stat-row {
  position: relative;
  z-index: 1;
  margin-top: 0;
  border-right: 1px solid rgba(79, 62, 39, 0.22);
  border-bottom: 1px solid rgba(79, 62, 39, 0.22);
  border-left: 1px solid rgba(79, 62, 39, 0.22);
  background: transparent;
}

.prp-stat-row > div {
  justify-content: flex-end;
  padding: 18px 25px;
  background: rgba(255, 252, 245, 0.64);
}

.prp-stat-row strong {
  color: var(--poster-vermilion);
  font-size: 34px;
}

.prp-stat-row span {
  font-size: 15px;
  letter-spacing: 2px;
}

.prp-section {
  padding: 62px 54px 72px;
  border-top: 1px solid rgba(86, 66, 42, 0.14);
}

.prp-section:nth-of-type(even) {
  background: rgba(255, 251, 242, 0.54);
}

.prp-section-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--poster-vermilion);
  font-size: 13px;
  letter-spacing: 7px;
}

.prp-section-kicker::after {
  width: 86px;
  height: 1px;
  background: var(--poster-gold);
  content: '';
}

.prp-section-heading {
  align-items: baseline;
  padding-bottom: 20px;
  margin-top: 11px;
  border-bottom: 1px solid rgba(55, 45, 31, 0.56);
}

.prp-section-heading h2 {
  font-size: 48px;
  letter-spacing: 3px;
}

.prp-section-heading p {
  max-width: 440px;
  color: var(--poster-muted);
  font-size: 18px;
}

.prp-role-grid {
  gap: 22px 18px;
  margin-top: 32px;
}

.prp-role-card {
  counter-increment: focus-person;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prp-role-card .prp-image-frame {
  border: 1px solid rgba(68, 52, 33, 0.28);
  background: #26241f;
}

.prp-role-card figcaption {
  min-height: 72px;
  padding: 14px 2px 8px;
  border-top: 0;
  border-bottom: 1px solid rgba(77, 59, 37, 0.28);
  background: transparent;
}

.prp-role-card figcaption::before {
  display: inline-flex;
  width: 47px;
  height: auto;
  flex: 0 0 47px;
  margin: 0 12px 0 0;
  background: transparent;
  color: var(--poster-vermilion);
  content: '0' counter(focus-person);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}

.prp-role-caption div {
  flex: 1;
  justify-content: space-between;
  gap: 10px;
}

.prp-role-caption strong {
  font-size: 29px;
}

.prp-role-caption span {
  border: 1px solid var(--poster-jade);
  background: transparent;
  color: var(--poster-jade);
  font-size: 12px;
}

.prp-overview-grid {
  gap: 18px;
  margin-top: 32px;
  overflow: visible;
  border: 0;
}

.prp-overview-card {
  padding: 7px;
  border: 1px solid rgba(75, 58, 36, 0.3);
  background: rgba(255, 252, 246, 0.72);
  box-shadow: 0 16px 30px rgba(48, 35, 20, 0.08);
}

.prp-overview-grid-two .prp-overview-card:first-child {
  grid-column: 1 / -1;
}

.prp-moment-grid {
  gap: 28px 18px;
  margin-top: 32px;
}

.prp-small .prp-moment-card:first-child {
  grid-column: 1 / -1;
}

.prp-small .prp-moment-card:first-child .prp-image-frame {
  aspect-ratio: 16 / 8.5;
}

.prp-moment-card .prp-image-frame {
  border: 1px solid rgba(72, 55, 35, 0.3);
}

.prp-moment-card figcaption {
  padding: 14px 1px 0;
  border-top: 0;
  background: transparent;
}

.prp-moment-card figcaption span {
  color: var(--poster-vermilion);
  font-size: 14px;
  letter-spacing: 2px;
}

.prp-moment-card figcaption strong {
  font-size: 24px;
}

.prp-footer {
  padding: 88px 72px 64px;
  border-top: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 48%),
    var(--poster-vermilion);
}

.prp-footer-mark {
  color: #e2c88f;
  font-size: 21px;
  letter-spacing: 11px;
}

.prp-footer blockquote {
  max-width: 850px;
  margin: 38px 0 64px;
  font-size: 42px;
  line-height: 1.7;
}

.prp-footer-meta {
  border-top-color: rgba(255, 244, 221, 0.34);
  color: rgba(255, 247, 232, 0.68);
}

.publicity-reading-poster {
  --poster-photo-radius: 0px;
  --poster-title-size: 86px;
}

.prp-accent-jade {
  --poster-vermilion: #355a52;
  --poster-gold: #b49a67;
  --poster-jade: #355a52;
}

.prp-accent-ink {
  --poster-vermilion: #292722;
  --poster-gold: #a98b59;
  --poster-jade: #47443d;
}

.prp-accent-gold {
  --poster-vermilion: #8b6335;
  --poster-gold: #c39b5a;
  --poster-jade: #6f5637;
}

.prp-title-small {
  --poster-title-size: 72px;
}

.prp-title-medium {
  --poster-title-size: 86px;
}

.prp-title-large {
  --poster-title-size: 100px;
}

.prp-title-block h1 {
  font-size: var(--poster-title-size);
}

.prp-hero,
.prp-role-card .prp-image-frame,
.prp-overview-card,
.prp-overview-card .prp-image-frame,
.prp-moment-card .prp-image-frame {
  border-radius: var(--poster-photo-radius);
}

.prp-spacing-compact .prp-section {
  padding-top: 42px;
  padding-bottom: 50px;
}

.prp-spacing-compact .prp-role-grid,
.prp-spacing-compact .prp-overview-grid,
.prp-spacing-compact .prp-moment-grid {
  margin-top: 22px;
}

.prp-spacing-airy .prp-section {
  padding-top: 82px;
  padding-bottom: 92px;
}

.prp-spacing-airy .prp-role-grid,
.prp-spacing-airy .prp-overview-grid,
.prp-spacing-airy .prp-moment-grid {
  margin-top: 42px;
}

/* 清雅留白：降低底色对比，用线条和留白组织内容。 */
.prp-style-compact {
  background: #f7f4ec;
  background-image: none;
}

.prp-style-compact .prp-cover {
  padding: 36px 48px 54px;
  background: #fbfaf5;
}

.prp-style-compact .prp-cover::after {
  width: 96px;
  height: 3px;
  background: var(--poster-vermilion);
}

.prp-style-compact .prp-masthead {
  padding-inline: 8px;
}

.prp-style-compact .prp-brand span,
.prp-style-compact .prp-issue span {
  color: var(--poster-vermilion);
}

.prp-style-compact .prp-title-panel {
  min-height: 420px;
  padding: 76px 58px 64px;
  border-width: 5px 0 1px;
  border-top-color: var(--poster-vermilion);
  border-bottom-color: rgba(61, 52, 40, 0.32);
  background: transparent;
  color: var(--poster-ink);
}

.prp-style-compact .prp-title-panel .prp-date,
.prp-style-compact .prp-title-panel .prp-scope {
  color: var(--poster-vermilion);
}

.prp-style-compact .prp-title-panel .prp-weekday {
  color: var(--poster-muted);
}

.prp-style-compact .prp-title-panel .prp-cover-seal {
  border-color: var(--poster-vermilion);
  background: var(--poster-vermilion);
  color: #fff;
}

.prp-style-compact .prp-section,
.prp-style-compact .prp-section:nth-of-type(even) {
  border-top-color: rgba(67, 57, 43, 0.16);
  background: transparent;
}

.prp-style-compact .prp-section-heading {
  border-bottom-width: 1px;
}

.prp-style-compact .prp-role-card figcaption,
.prp-style-compact .prp-moment-card figcaption {
  border-bottom-color: rgba(67, 57, 43, 0.18);
}

.prp-style-compact .prp-footer {
  background: var(--poster-jade);
}

/* 朱红画报：加强刊头与章节对比，适合照片较多的场次。 */
.prp-style-panorama {
  background-color: #eee2d1;
}

.prp-style-panorama .prp-cover {
  padding: 30px 36px 48px;
  background: #eadcc7;
}

.prp-style-panorama .prp-cover::before {
  inset: 14px;
  border-color: rgba(91, 48, 38, 0.32);
}

.prp-style-panorama .prp-cover::after {
  display: none;
}

.prp-style-panorama .prp-masthead {
  align-items: center;
  padding: 20px 22px;
  border: 0;
  background: var(--poster-vermilion);
}

.prp-style-panorama .prp-brand,
.prp-style-panorama .prp-brand span,
.prp-style-panorama .prp-issue,
.prp-style-panorama .prp-issue strong {
  color: #fff7e9;
}

.prp-style-panorama .prp-issue span {
  color: #e9c98f;
}

.prp-style-panorama .prp-title-panel {
  min-height: 520px;
  margin-top: 14px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 56%),
    var(--poster-vermilion);
}

.prp-style-panorama .prp-section-kicker {
  padding: 7px 10px;
  width: max-content;
  background: var(--poster-vermilion);
  color: #fff8e9;
}

.prp-style-panorama .prp-section-kicker::after {
  display: none;
}

.prp-style-panorama .prp-section-heading {
  border-bottom: 3px solid var(--poster-vermilion);
}

.prp-style-panorama .prp-role-card figcaption {
  padding-inline: 12px;
  background: rgba(255, 250, 241, 0.82);
}

.prp-style-panorama .prp-overview-card {
  padding: 10px;
  border-color: var(--poster-vermilion);
}

.prp-style-panorama .prp-footer {
  border-top: 10px solid var(--poster-gold);
  background: #27231e;
}

@media (min-width: 421px) and (max-width: 620px) {
  .poster-editor-grid {
    grid-template-columns: 1fr;
  }

  .poster-editor-grid .wide {
    grid-column: auto;
  }

  .poster-asset-row {
    --asset-thumb-width: 78px;
    --asset-thumb-height: 59px;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .poster-asset-detail-row {
    gap: 6px;
  }
}
