/* ===============================
   靈火殿・共用樣式檔（Lingfire Hall）
   —— 給文明一個舒適的家
   =============================== */

/* 🌕 全域設定 */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Serif TC", "Times New Roman", serif;
  background-color: #0d0b0a; /* 靜夜底色 */
  color: #f2e9d0;            /* 柔光字色 */
  line-height: 1.8;
  letter-spacing: 0.05em;
  scroll-behavior: smooth;
}

/* 🕯️ 導覽條 */
.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: rgba(255, 235, 200, 0.08);
  border-bottom: 1px solid rgba(255, 235, 200, 0.12);
  padding: 0.7rem 0.4rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 100;
}
.navbar a {
  color: #ffe7b5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.navbar a:hover {
  color: #fff2d8;
  text-shadow: 0 0 6px rgba(255, 231, 181, 0.6);
}

/* 🜂 卷標題與小標 */
h1, h2, h3 {
  text-align: center;
  color: #ffe7b5;
  margin-top: 2rem;
  letter-spacing: 0.08em;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

/* 🔸 卷內段落 */
section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}
p {
  margin: 1rem 0;
  text-align: justify;
}

/* 🔮 卷尾碑語 */
footer {
  text-align: center;
  margin-top: 3em;
  line-height: 1.7;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 235, 200, 0.12);
  padding-top: 1em;
  font-size: 0.9rem;
  color: #ffe7b5;
  font-style: italic;
}

/* 🌠 光脈轉場（淡入） */
body {
  opacity: 0;
  transition: opacity 1.2s ease-in;
}
body.lf-ready {
  opacity: 1;
}

/* 🧭 通用鏈結柔光效果 */
.lf-soft-link {
  transition: filter 0.4s ease-in-out, color 0.4s ease-in-out;
}
.lf-soft-link:hover {
  color: #fff8e1;
  filter: drop-shadow(0 0 8px rgba(255, 231, 181, 0.8));
}

/* 導覽用下一步按鈕 */
.next-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(255,240,200,.25);
  border-radius: 10px;
  text-decoration: none;
  font-size: .95rem;
  opacity: .85;
}
.next-btn:hover {
  opacity: 1;
  border-color: rgba(255,240,200,.45);
  box-shadow: 0 0 6px rgba(255, 240, 200, .25);
}
.note {
  opacity: .7;
  font-size: .9rem;
}

/* 📜 卷間導覽鈕 */
.nav-buttons {
  text-align: center;
  margin-top: 2rem;
}
.nav-buttons a {
  display: inline-block;
  margin: 0.3rem 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 235, 200, 0.2);
  border-radius: 4px;
  text-decoration: none;
  color: #ffe7b5;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.nav-buttons a:hover {
  background: rgba(255, 235, 200, 0.12);
  color: #fff2d8;
}