/* ============================================================
   念念微光 · 公益追思 Hub 入口頁
   深夜星空風 · 金色微光，沿用 tribute 視覺語彙
   遵守：連結去底線、alert 無左邊線、按鈕 hover 只加深背景
   ============================================================ */

:root {
  --lh-bg-top: #070d1f;
  --lh-bg-bottom: #0e1a3a;
  --lh-gold: #d4af7a;
  --lh-gold-soft: #e8cfa0;
  --lh-text: #eaf0ff;
  --lh-text-dim: #9fb0d8;
  --lh-card: rgba(18, 28, 60, 0.92);
  --lh-card-hover: rgba(28, 40, 78, 0.96);
  --lh-card-line: rgba(255, 255, 255, 0.1);
  --lh-radius: 1rem;
  --lh-maxw: 960px;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none !important;
}

.light-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--lh-text);
  background: linear-gradient(180deg, var(--lh-bg-top) 0%, var(--lh-bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ── 背景星點（純裝飾，不可互動）── */
.lh-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(232, 207, 160, 0.6), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 90% 90%, rgba(255, 255, 255, 0.4), transparent);
  background-size: 100% 100%;
  opacity: 0.8;
}

/* 所有內容浮在星空之上 */
.lh-header,
.lh-intro,
.lh-section,
.lh-footer {
  position: relative;
  z-index: 1;
}

/* ── ① 頂部 ── */
.lh-header {
  text-align: center;
  padding: max(2.5rem, calc(env(safe-area-inset-top) + 1.5rem)) 3.5rem 1.5rem;
  max-width: var(--lh-maxw);
  margin: 0 auto;
  position: relative;
}

.lh-back {
  position: absolute;
  left: 1rem;
  top: max(1.25rem, calc(env(safe-area-inset-top) + 0.5rem));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--lh-card);
  color: var(--lh-text);
  transition: background 0.2s;
}
.lh-back:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lh-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--lh-gold-soft);
  text-shadow: 0 0 1.6rem rgba(212, 175, 122, 0.45);
}

.lh-title-sub {
  margin: 0.5rem 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.5em;
  color: var(--lh-gold);
  opacity: 0.8;
  padding-left: 0.5em; /* 補償 letter-spacing 末字偏移 */
}

.lh-cta {
  margin: 1.1rem auto 0;
  max-width: 32rem;
  min-height: 1.6em;
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.7;
  color: var(--lh-text-dim);
  opacity: 0;
  transition: opacity 0.5s;
}
.lh-cta.is-show {
  opacity: 1;
}

/* ── ② 理念 ── */
.lh-intro {
  max-width: 40rem;
  margin: 0.5rem auto 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--lh-card);
  border: 1px solid var(--lh-card-line);
  border-radius: var(--lh-radius);
}
.lh-intro p {
  margin: 0;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 2;
  color: var(--lh-text);
  text-align: center;
}
.lh-intro strong {
  color: var(--lh-gold-soft);
  font-weight: 700;
}

/* ── 區塊 ── */
.lh-section {
  max-width: var(--lh-maxw);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.lh-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lh-gold-soft);
}
.lh-section-title .material-icons {
  font-size: 1.3em;
  color: var(--lh-gold);
}

/* ── 卡片網格 ── */
.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.lh-card {
  display: flex;
  flex-direction: column;
  background: var(--lh-card);
  border: 1px solid var(--lh-card-line);
  border-radius: var(--lh-radius);
  overflow: hidden;
  color: var(--lh-text);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lh-card:hover {
  background: var(--lh-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.35);
}

.lh-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1430;
}
.lh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lh-card-media.is-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1a2a55, #0a1430);
}
.lh-card-media-icon {
  font-size: 3.2rem;
  color: var(--lh-gold);
  opacity: 0.7;
}

.lh-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.2rem;
}

.lh-card-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lh-gold-soft);
}

.lh-card-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--lh-gold);
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.lh-card-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--lh-text-dim);
  letter-spacing: 0.04em;
}

.lh-card-desc {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--lh-text-dim);
}

.lh-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.lh-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--lh-gold-soft);
}
.lh-card-stat .material-icons {
  font-size: 1.05em;
  color: #ffb14d;
}
.lh-card-stat-empty {
  color: var(--lh-text-dim);
}
.lh-card-stat-empty .material-icons {
  color: var(--lh-gold);
}

.lh-card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.84rem;
  color: var(--lh-text-dim);
  transition: color 0.2s;
}
.lh-card-go .material-icons {
  font-size: 1.1em;
}
.lh-card:hover .lh-card-go {
  color: var(--lh-gold-soft);
}

.lh-empty {
  text-align: center;
  color: var(--lh-text-dim);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

.lh-more-note {
  text-align: center;
  margin: 1.6rem 0 0;
  font-size: 0.82rem;
  color: var(--lh-text-dim);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ── Footer ── */
.lh-footer {
  max-width: var(--lh-maxw);
  margin: 1.5rem auto 0;
  padding: 2rem 1.5rem max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  text-align: center;
  border-top: 1px solid var(--lh-card-line);
}
.lh-footer p {
  margin: 0 0 0.8rem;
}
.lh-footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--lh-text-dim);
}
.lh-footer-contact {
  font-size: 0.82rem;
  color: var(--lh-text-dim);
}
.lh-footer-contact a {
  color: var(--lh-gold-soft);
}
.lh-footer-brand {
  font-size: 0.85rem;
  color: var(--lh-text-dim);
  letter-spacing: 0.04em;
}
.lh-footer-brand a {
  color: var(--lh-gold-soft);
}

@media (max-width: 600px) {
  .lh-grid {
    grid-template-columns: 1fr;
  }
}
