/* 个人日记站 · 自定义样式（其余交给 Bootstrap 5） */

/* 列表页封面：固定高度 + 裁切，保证卡片高度一致 */
.entry-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f1f3f5;
}

/* 详情页图片墙 */
.detail-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background-color: #f1f3f5;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.detail-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* 编辑页已有图片 */
.edit-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background-color: #f1f3f5;
}

/* 正文排版：行距略大，长链接不撑破布局 */
.entry-body {
  line-height: 1.85;
  word-break: break-word;
}

/* 手机上让卡片封面矮一点，避免一屏只能看到一张卡片 */
@media (max-width: 575.98px) {
  .entry-thumb { height: 170px; }
  .detail-thumb { height: 120px; }
}

/* 视频没截到封面时的占位块（保持与封面同样高度，卡片不跳版） */
.placeholder-thumb {
  background-image: repeating-linear-gradient(
    45deg, #f1f3f5, #f1f3f5 10px, #e9ecef 10px, #e9ecef 20px
  );
}

/* 视频播放器：限制最大高度，竖屏视频不至于占满整屏 */
.video-player {
  max-height: 70vh;
  object-fit: contain;
}

/* ---------- 日历（第四阶段） ---------- */
.calendar-table {
  /* 固定布局：七列等宽，日期数字不会被内容挤歪 */
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
}

.calendar-cell {
  padding: 0 !important;
  height: 76px;
  vertical-align: top;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  min-height: 72px;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

/* 有日记的日期：淡蓝底 + 篇数，和空白日一眼区分开 */
.calendar-day-has {
  background-color: #e7f1ff;
}

.calendar-day-has:hover {
  background-color: #cfe2ff;
}

.calendar-num {
  font-size: 0.95rem;
  line-height: 1.1;
}

.calendar-count {
  font-size: 0.7rem;
  color: #0d6efd;
}

/* 不属于本月的补位日期（上月末 / 下月初）压暗，但仍可点击 */
.calendar-cell-out .calendar-num {
  color: #adb5bd;
}

/* 今天：描一圈边 */
.calendar-cell-today {
  box-shadow: inset 0 0 0 2px #0d6efd;
  border-radius: 0.5rem;
}

@media (max-width: 575.98px) {
  .calendar-cell { height: 58px; }
  .calendar-day { min-height: 54px; }
  .calendar-num { font-size: 0.85rem; }
  .calendar-count { font-size: 0.6rem; }
  .calendar-table th { font-size: 0.7rem; }
}

/* 标签筛选条：标签多时限制高度，页面不至于被筛选项撑满 */
.tag-filter-scroll {
  max-height: 7.5rem;
  overflow-y: auto;
}
