/* ============================================================
 * css/day.css —— 统一单日页（day.html）专属样式
 * 三段布局：信息条 / 日记区 / 媒体墙区。
 * 全部消费 common.css 的设计令牌，跟随皮肤系统（含暗夜）。
 * ============================================================ */

/* ===== 信息条（日期 + 天气/地点） ===== */
.day-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 20px;
}
/* 日期/天气由 DiaryRender.metaBar 渲染（.dr-metabar* 定义在 common.css，全站单源），
 * 此处不再重复样式，改一处全局生效。 */

/* 日期头/天气元信息已不再由卡片内嵌（模板无头），统一走顶部信息条的 metaBar；
 * 故此处不再保留 .di-meta / .di-note 等死规则。 */

/* ===== 媒体墙区 ===== */
.wall-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px 22px;
  margin-top: 4px;
}
.wall-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 5px solid var(--primary);
}
.wall-head h2 {
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.wall-count {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 响应式网格：手机 2 列、平板 3~4 列、桌面 5 列 */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 540px) { .wall-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .wall-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .wall-grid { grid-template-columns: repeat(5, 1fr); } }

.wall-cell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 1 / 1;
}
.wall-cell img,
.wall-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
/* 墙媒体（缩略图态）：整块可点开全屏；视频叠播放按钮 */
.wall-media { position: relative; width: 100%; height: 100%; cursor: zoom-in; }
.wall-media img,
.wall-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
/* 媒体墙全屏灯箱（点暗色背景关闭，点媒体本身不关闭） */
.wall-media-lb {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.86); cursor: zoom-out; padding: 16px;
}
.wall-media-lb.open { display: flex; }
.wall-media-lb-inner video,
.wall-media-lb-inner img {
  max-width: 94vw; max-height: 94vh; width: auto; height: auto;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5); cursor: default; background: #000;
}
/* 已在日记：绿色描边 + 角标，告诉访客这张是叙事里挑出来的那张 */
.wall-cell.in-diary {
  box-shadow: 0 0 0 2px var(--green, #3E9A63) inset;
}
.wall-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: var(--green, #3E9A63);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 8px;
  pointer-events: none;
}

.wall-sentinel { height: 1px; }
.wall-status {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 14px 0 2px;
}

/* 信息条内的 metaBar：在 .day-info 卡片里稍微收一点外边距，避免与卡片内边距叠加过空 */
.day-info .dr-metabar { margin: 0 0 4px; }
