/* 公开只读页：在 styles.css 基础上做减法（无登录 / 无评论栏 / 无风控） */

.public-page .board {
  padding-bottom: 32px;
}

.public-page .cards.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 10px;
}

.public-page .freshness {
  margin: 2px 0 0;
}

/* 弹幕只保留文本：去掉头像与昵称后稍微收窄内边距 */
.public-page .danmaku {
  gap: 0;
  padding: 6px 14px;
}

.public-page .foot {
  margin-top: 36px;
}

@media (max-width: 720px) {
  .public-page .cards.cards-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .public-page .danmaku {
    padding: 5px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-page .danmaku {
    animation: none !important;
    display: none !important;
  }
}

/* 整页撑满视口，页脚贴底（iframe 里也保持一致）；桌面端不出现滚动条 */
.public-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.public-page .board {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.public-page .foot {
  margin-top: 0;
  flex: 0 0 auto;
}

/* 中部留白处居中展示的图片：吃掉剩余高度，永远不把页脚顶出视口 */
.public-page .board {
  display: flex;
  flex-direction: column;
}

.public-page .public-art {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  min-height: 0;
  margin: 18px auto 0;
  padding: 0 4px;
}

.public-page .public-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}

/* 手机 / 矮窗口：恢复滚动，图片用自然宽度 */
@media (max-width: 720px), (max-height: 700px) {
  .public-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .public-page .public-art {
    flex: 0 0 auto;
    margin-top: 14px;
    padding: 0;
  }
  .public-page .public-art img {
    width: 100%;
    max-height: none;
  }
}

/* 图片上方的一段说明文字 */
.public-page .public-caption {
  margin: 8px 0 2px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
}
