/* 角色卡：五列缩略图墙（复用 review.css 的 .wall-*）+ 全屏看图浮层 */

/* 页头右侧提示 */
.card-tip {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--muted-2);
}

/* 墙上的文字按钮改成「看大图」 */
.card-page .wall-cta { font-size: 12.5px; }

/* 缩略图：点击手感 */
.card-page .wall-shot { cursor: zoom-in; }

/* 卡片只留组名 + 大图，去掉标题/标签留下的多余间距 */
.card-page .wall-col { gap: 6px; }
.card-page .wall-name { font-size: 16px; letter-spacing: 1px; }

/* ---------- 全屏看图 ---------- */

.card-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 600px at 12% -6%, rgba(176, 138, 69, 0.16), transparent 66%),
    radial-gradient(820px 520px at 92% 104%, rgba(27, 106, 109, 0.30), transparent 68%),
    linear-gradient(170deg, #123c3c 0%, #0d2b2b 55%, #0a2222 100%);
  animation: rv-fade 0.2s ease both;
}

/* 顶部条沿用 .rv-top / .rv-btn，只把左右内边距对齐画框 */
.card-viewer .rv-top {
  padding: 14px max(clamp(16px, 2.4vw, 30px), calc((100vw - 1500px) / 2));
}

.cv-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.6vw, 22px) clamp(16px, 3vw, 40px) clamp(14px, 1.8vw, 24px);
}

.cv-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;        /* 必须有确定高度，否则 JS 量不到可用空间 */
  min-height: 0;
  max-height: 100%;
}

.cv-frame {
  flex: none;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--shot-ratio, 3 / 4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(8px, 0.9vw, 13px);
  border: 1px solid rgba(217, 188, 126, 0.42);
  border-radius: 6px;
  background: linear-gradient(180deg, #faf7ee 0%, #f2ecdd 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.cv-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

body.cv-open { overflow: hidden; }

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .card-page .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .card-page .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-tip { display: none; }
}
