/* ============================================================
   时光留言板 · 合并版样式
   使用 style.css 的导航、按钮、卡片变量；本文件只补充时段主题、
   统计看板、筛选、留言标签等局部样式。
   ============================================================ */

.time-board-page {
  background: var(--bg-light);
}

/* ---------- 时段主题首屏 ---------- */
.tb-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 24px 56px;
  text-align: center;
  color: var(--tb-ink);
  background:
    radial-gradient(ellipse 80% 70% at 50% -20%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(135deg, var(--tb-bg1), var(--tb-bg2));
}

.tb-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.tb-hero .hero-kicker {
  color: var(--tb-accent);
  letter-spacing: 6px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tb-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 3px;
  line-height: 1.2;
}

.tb-hero .sub {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--tb-ink);
  opacity: 0.82;
  font-size: 15px;
}

.tb-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.tb-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
  color: var(--tb-ink);
  font-size: 13px;
}

.tb-last {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
  color: var(--tb-ink);
  font-size: 13px;
}

/* ---------- 提示条 ---------- */
.tb-flash {
  display: none;
  margin: 0 auto 22px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  text-align: center;
}
.tb-flash.success {
  border-color: rgba(45, 140, 80, 0.4);
  background: rgba(230, 250, 238, 0.9);
  color: #1e6b43;
}
.tb-flash.error {
  border-color: rgba(190, 60, 60, 0.4);
  background: rgba(255, 236, 236, 0.95);
  color: #9b2c2c;
}

/* ---------- 统计 ---------- */
.tb-section {
  padding-top: 38px;
}

.tb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.tb-stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.tb-stat span {
  display: block;
  color: var(--text-gray);
  font-size: 13px;
}

.tb-stat b {
  display: block;
  margin: 4px 0 2px;
  color: var(--text-dark);
  font-size: 24px;
}

.tb-stat small {
  color: var(--text-gray);
  font-size: 12px;
}

/* ---------- 列表标题 / 筛选 ---------- */
.tb-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tb-list-head h3 {
  margin: 0;
}

.tb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tb-filters select {
  width: auto;
  min-width: 98px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-light);
  color: var(--text-dark);
  font: inherit;
  font-size: 12px;
}

.tb-reset-filter {
  border: none;
  background: none;
  color: var(--text-gray);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- 心情标签 ---------- */
.tb-mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-mood {
  position: relative;
  cursor: pointer;
}

.tb-mood input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tb-mood span {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 13px;
}

.tb-mood input:checked + span {
  border-color: var(--tb-accent);
  background: var(--tb-accent);
  color: #ffffff;
}

/* ---------- 留言标签 ---------- */
.tb-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text-gray);
}

.tb-msg-name {
  color: var(--text-dark);
  font-weight: 600;
}

.tb-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-gray);
}

.tb-tag.theme {
  border-color: rgba(200, 163, 95, 0.45);
  background: rgba(200, 163, 95, 0.12);
  color: #8a6a2f;
}

.tb-tag.mood {
  border-color: rgba(90, 140, 200, 0.35);
  background: rgba(90, 140, 200, 0.1);
  color: #3b6087;
}

.tb-msg-time {
  color: var(--text-gray);
  font-size: 12px;
}

.tb-msg-head .msg-del {
  margin-left: auto;
}

/* ---------- 四时段热度 ---------- */
.tb-heat {
  margin-top: 24px;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.tb-heat h3 {
  margin-bottom: 4px;
}

.tb-heat .muted {
  color: var(--text-gray);
  font-size: 12px;
  margin-bottom: 14px;
}

.tb-heat-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 13px;
}

.tb-heat-name {
  color: var(--text-gray);
}

.tb-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tb-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--tb-accent);
}

.tb-heat-row b {
  text-align: right;
  color: var(--text-dark);
}

.tb-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: var(--bg-light);
  color: var(--text-gray);
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .tb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .board-layout {
    grid-template-columns: 1fr;
  }

  .tb-hero {
    padding-top: 112px;
  }
}

@media (max-width: 560px) {
  .tb-stats {
    grid-template-columns: 1fr;
  }

  .tb-hero {
    padding: 104px 18px 42px;
  }

  .tb-heat {
    padding: 20px;
  }
}
