/* ===== 首屏重设计（hero-v2）=====
   仅追加、不覆盖原样式：
   右栏放「今日晨光」相片卡 + 竖排格言；左栏介绍文字下加一行本站足迹统计。
   数据由 js/app.js 注入（#dawnSlot / #heroStats），每天发新晨光后自动更新。
   2026-10-22 定稿（Kimi 出初稿，艾复思据此修订）
================================================== */

/* ---------- 右栏：晨光卡 + 竖排格言 ---------- */
.hero-v2 .hero-side {
  align-items: stretch;
  gap: 30px;
}

/* 「今日晨光」卡：相片卡样式，呼应晨光月历的白边相片 */
.dawn-card {
  display: flex;
  flex-direction: column;
  width: 168px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 10px 12px;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dawn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
  text-decoration: none;
}
.dawn-photo {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
}
.dawn-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 675 / 760;   /* 比月历格略扁，卡里留得住天光 */
  object-fit: cover;
}
.dawn-date {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 2px;
  white-space: nowrap;
  color: #fff;
  background: rgba(46, 40, 30, 0.45);
  border-radius: 4px;
  padding: 2px 8px;
}
.dawn-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dawn-link {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-deep);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* 竖排格言：退为分隔装饰，与晨光卡之间留足呼吸 */
.hero-v2 .hero-motto {
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-left: 1px solid var(--border);
  padding-left: 18px;
  margin-left: 4px;
  align-self: flex-end;
}

/* ---------- 本站足迹：一行轻量统计，数字用强调色 ---------- */
.hero-v2 .hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}
.hero-v2 .stat {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 1px;
}
.hero-v2 .stat strong {
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 700;
  margin-right: 2px;
}
.hero-v2 .stat-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ---------- 知情行三卡：整卡可点 + 明确的「进入栏目」指向 ---------- */
.triptych .tri-card { position: relative; }
.tri-card .tri-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}
.tri-card .tri-cover:hover { background: rgba(47, 107, 94, 0.02); }
.tri-go {
  display: block;
  margin-top: 12px;
  font-size: 0.74rem;
  letter-spacing: 1px;
  color: var(--accent-deep);
}
.tri-card:hover .tri-go { color: var(--accent); }
/* 行吟集挂在「行」下，给一个独立入口（不进知情行的三字格） */
.tri-extra {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.74rem;
  letter-spacing: 1px;
}
.tri-extra a { color: var(--accent-deep); }
.tri-extra a:hover { color: var(--accent); }

/* ---------- 窄屏（≤640px）：晨光卡横排，统计折行 ---------- */
@media (max-width: 640px) {
  .hero-v2 .hero-side {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .hero-v2 .dawn-card {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
  }
  .hero-v2 .dawn-photo { flex: 0 0 88px; }
  .hero-v2 .dawn-photo img { aspect-ratio: 4 / 3; }
  .hero-v2 .dawn-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .hero-v2 .dawn-title { margin-top: 0; white-space: normal; }
  .hero-v2 .dawn-link { margin-top: 2px; }
  .hero-v2 .hero-motto {
    height: auto;
    writing-mode: horizontal-tb;
    border-left: none;
    border-top: 1px solid var(--border-strong);
    padding: 12px 0 0;
    margin-left: 0;
    text-align: center;
    letter-spacing: 6px;
  }
  .hero-v2 .hero-stats { gap: 8px 10px; }
}
