/* ==========================================================================
   天空紀念碑 (Skymonu) - 新版首頁 CSS 樣式系統
   配色比例：淡紫 65% + 純白 35%
   風格定位：天主教 35% 靈性莊嚴與希望 + 現代化簡約美學
   ========================================================================== */

/* 1. 變數設定與 design tokens */
:root {
  /* 配色系統 (淡紫 65% + 白 35%) */
  --primary-purple: #7C5CBA;
  /* 主淡紫 */
  --primary-purple-hover: #694AA4;
  /* 深紫互動 */
  --light-purple: #9B7EBD;
  /* 柔紫 */
  --soft-purple-bg: #F4EFFB;
  /* 區塊背景柔紫 */
  --lavender-tint: #EFE8F8;
  /* 漸層過渡紫 */
  --dark-purple-text: #4f2c8d;
  /* 深紫文字 */

  --pure-white: #FFFFFF;
  /* 卡片與主元件白 */
  --off-white: #FBF9FE;
  /* 雲光背景白 */

  /* 聖光金點綴 */
  --saint-gold: #D4AF37;
  --saint-gold-light: #F7E9B8;
  --saint-gold-glow: rgba(212, 175, 55, 0.35);

  /* 灰階與陰影 */
  --text-main: #332C3F;
  --text-muted: #6B6277;
  --border-light: rgba(124, 92, 186, 0.15);

  /* 陰影與玻璃效果 */
  --shadow-soft: 0 10px 30px rgba(124, 92, 186, 0.08);
  --shadow-card: 0 15px 35px rgba(50, 31, 82, 0.06);
  --shadow-hover: 0 20px 40px rgba(124, 92, 186, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-purple: rgba(244, 239, 251, 0.85);

  /* 字體與字階 */
  --font-serif: "Noto Serif TC", Georgia, serif;
  --font-sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;

  /* 圓角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-arch: 120px 120px 16px 16px;
  /* 教堂圓拱造型 */

  /* 動畫時間 */
  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. 基本重置與全域樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--off-white);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 標題預設字型：現代靈性黑體 */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--dark-purple-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 通用容器 */
.container {
  width: 94%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 90px 0;
}

.section-bg-purple {
  background: linear-gradient(180deg, var(--soft-purple-bg) 0%, var(--lavender-tint) 100%);
}

.section-bg-white {
  background-color: var(--pure-white);
}

/* 區塊標題模組 */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
  position: relative;
}

.catholic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(124, 92, 186, 0.1);
  color: var(--primary-purple);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(124, 92, 186, 0.2);
}

.catholic-badge svg {
  fill: var(--primary-purple);
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 16px;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--saint-gold));
  margin: 14px auto 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 3. 按鈕與 UI 元件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #63439F 100%);
  color: var(--pure-white);
  box-shadow: 0 8px 25px rgba(124, 92, 186, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(124, 92, 186, 0.45);
  background: linear-gradient(135deg, #8767C7 0%, var(--primary-purple) 100%);
}

.btn-outline {
  background: var(--pure-white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
  background: var(--soft-purple-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B89220 100%);
  color: var(--dark-purple-text);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* 4. 頂部導覽列 (Header) */
.site-header {
  font-family: var(--font-sans);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 18px 0;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(50, 31, 82, 0.08);
  border-bottom: 1px solid rgba(124, 92, 186, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-purple-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(124, 92, 186, 0.2));
}

.brand-logo-cross {
  width: 24px;
  height: 24px;
  color: var(--primary-purple);
}

.main-nav {
  flex-shrink: 1;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-purple);
  transition: var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-purple);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-purple-text);
  cursor: pointer;
}

/* 5. Hero 區塊 (天空與聖光 Banner) */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #E6DCF5 0%, #F5F0FB 50%, var(--off-white) 100%);
  overflow: hidden;
}

/* 雲海背景影片 (透明度 30%) */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0.3;
  /* 30% 透明度 */
  pointer-events: none;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%) brightness(105%);
}

.hero-glow-bg {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(155, 126, 189, 0.2) 40%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* 天空飄浮光斑動畫 */
.hero-clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cpath fill='%23ffffff' fill-opacity='0.25' d='M150 200 Q200 150 260 180 Q320 130 400 170 Q480 120 560 180 Q620 160 670 210 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 800px 400px;
  opacity: 0.7;
  animation: floatClouds 60s linear infinite;
  pointer-events: none;
}

@keyframes floatClouds {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 800px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--pure-white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.92rem;
  color: var(--primary-purple);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  border: 1px solid rgba(124, 92, 186, 0.2);
}

.hero-header-tag svg {
  fill: var(--saint-gold);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--dark-purple-text);
  letter-spacing: 0.5px;
}

.hero-title span.purple-highlight {
  color: var(--primary-purple);
  position: relative;
  display: inline-block;
}

.hero-title span.purple-highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(124, 92, 186, 0.18);
  border-radius: 4px;
  z-index: -1;
}

/* 動態名言展演 */
.quote-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary-purple);
  padding: 18px 22px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.quote-text {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dark-purple-text);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  min-height: 56px;
  line-height: 1.65;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}

.quote-text.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}

.quote-author.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(124, 92, 186, 0.15);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--primary-purple);
  font-family: var(--font-sans);
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero 右側聖堂視覺框 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.arch-frame {
  width: fit-content;
  max-width: 100%;
  height: 540px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F3EDFC 100%);
  border-radius: var(--radius-arch);
  padding: 16px;
  box-shadow: 0 25px 50px rgba(50, 31, 82, 0.15);
  position: relative;
  border: 4px solid var(--pure-white);
  outline: 1px solid rgba(124, 92, 186, 0.3);
  overflow: hidden;
}

.arch-image-container {
  width: auto;
  height: 100%;
  border-radius: 110px 110px 10px 10px;
  overflow: hidden;
  position: relative;
}

.arch-image-container img {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.arch-frame:hover img {
  transform: scale(1.05);
}

.arch-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 186, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.badge-icon {
  width: 44px;
  height: 44px;
  background-color: var(--soft-purple-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.badge-text h4 {
  font-size: 0.98rem;
  color: var(--dark-purple-text);
  margin-bottom: 2px;
}

.badge-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 6. 緣起與天主教教義區塊 (About Section) */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.origin-card-stack {
  position: relative;
}

.origin-main-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

.catholic-cross-decorator {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple), #63439F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(124, 92, 186, 0.4);
}

.catholic-cross-decorator svg {
  width: 24px;
  height: 24px;
  fill: var(--pure-white);
}

.origin-title-tag {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--dark-purple-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.origin-text {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.bible-quote-card {
  background-color: var(--soft-purple-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 4px solid var(--saint-gold);
  margin-top: 25px;
}

.bible-quote-card p {
  font-family: var(--font-serif);
  color: var(--dark-purple-text);
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.bible-quote-source {
  font-size: 0.84rem;
  color: var(--primary-purple);
  font-weight: 600;
  text-align: right;
}

.origin-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-pill {
  background: var(--pure-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.feature-pill:hover {
  transform: translateY(-4px);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-hover);
}

.pill-icon {
  width: 42px;
  height: 42px;
  background-color: var(--soft-purple-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  margin-bottom: 14px;
}

.pill-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-purple-text);
  margin-bottom: 6px;
}

.pill-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 7. 核心功能展示區塊 (Core Features Section) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 92, 186, 0.4);
}

.feature-card-header {
  margin-bottom: 20px;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--soft-purple-bg) 0%, #E8DFF5 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(124, 92, 186, 0.12);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-card-title {
  font-size: 1.25rem;
  color: var(--dark-purple-text);
  margin-bottom: 12px;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-card-list {
  border-top: 1px dashed var(--border-light);
  padding-top: 16px;
}

.feature-card-list li {
  font-size: 0.86rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card-list li::before {
  content: "✦";
  color: var(--primary-purple);
  font-size: 0.8rem;
}

/* 8. 立碑四步驟流程區塊 (Step-by-Step Guide) */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-container::before {
  content: "";
  position: absolute;
  top: 75px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--light-purple), var(--saint-gold));
  z-index: 1;
}

.step-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, #63439F 100%);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 6px 16px rgba(124, 92, 186, 0.35);
  border: 3px solid var(--pure-white);
}

.step-title {
  font-size: 1.1rem;
  color: var(--dark-purple-text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-img-preview {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* 9. 天主教特別關懷與原則區塊 (Mission & Principles) */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.mission-content-box {
  background: var(--pure-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.mission-tag {
  color: var(--saint-gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.principle-item {
  background-color: var(--soft-purple-bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--primary-purple);
}

.principle-icon {
  color: var(--primary-purple);
  font-size: 1.2rem;
}

.principle-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-purple-text);
}

/* 10. 線上點燭與追思體驗區塊 (Interactive Candle & Tribute Wall) */
.tribute-demo-wrapper {
  background: linear-gradient(135deg, #2E1B4E 0%, #462D75 100%);
  color: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: 0 20px 50px rgba(46, 27, 78, 0.25);
  position: relative;
  overflow: hidden;
}

.tribute-demo-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.tribute-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px auto;
}

.tribute-header h2 {
  color: var(--pure-white);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.tribute-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.candle-wall {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  padding: 30px 0;
  margin-bottom: 30px;
}

/* 動態燭光效果 */
.candle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.candle-container:hover {
  transform: translateY(-4px);
}

.flame {
  width: 16px;
  height: 26px;
  background: radial-gradient(ellipse at 50% 80%, #FFF 0%, #FFD700 40%, #FF4500 80%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 20px #FFD700, 0 0 35px #FF8C00;
  animation: flicker 1.8s infinite alternate ease-in-out;
  margin-bottom: 6px;
  opacity: 0.9;
}

.candle-body {
  width: 24px;
  height: 80px;
  background: linear-gradient(90deg, #FBF8FF 0%, #E6DCF5 50%, #C4B5E0 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.candle-base {
  width: 48px;
  height: 12px;
  background: linear-gradient(90deg, #D4AF37 0%, #F7E9B8 50%, #B89220 100%);
  border-radius: 6px;
  margin-top: -2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.candle-label {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
}

@keyframes flicker {
  0% {
    transform: scale(1) rotate(-1deg);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.08) rotate(1.5deg);
    opacity: 1;
    box-shadow: 0 0 25px #FFD700, 0 0 45px #FF8C00;
  }

  100% {
    transform: scale(0.95) rotate(-0.5deg);
    opacity: 0.9;
  }
}

.tribute-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tribute-counter-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tribute-counter-badge span.number {
  color: var(--saint-gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 11. 常見問題與手冊下載 (FAQ & Download Section) */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.faq-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.faq-question {
  font-size: 1.1rem;
  color: var(--dark-purple-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--soft-purple-bg);
  color: var(--primary-purple);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 38px;
}

.downloads-banner {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--soft-purple-bg) 0%, var(--lavender-tint) 100%);
  border-radius: var(--radius-lg);
  padding: 35px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-light);
}

.downloads-info h4 {
  font-size: 1.3rem;
  color: var(--dark-purple-text);
  margin-bottom: 6px;
}

.downloads-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.downloads-buttons {
  display: flex;
  gap: 14px;
}

.btn-pdf {
  background: var(--pure-white);
  color: var(--dark-purple-text);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-pdf:hover {
  background: var(--primary-purple);
  color: var(--pure-white);
  border-color: var(--primary-purple);
}

/* 12. 頁尾資訊 (Footer) */
.site-footer {
  background-color: var(--dark-purple-text);
  color: var(--pure-white);
  padding-top: 70px;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand h3 {
  color: var(--pure-white);
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--saint-gold);
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--saint-gold-light);
  padding-left: 5px;
}

.footer-contact-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 13. 彈窗對話框 (Modal Popup) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 19, 54, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--pure-white);
  width: 90%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--soft-purple-bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary-purple);
  color: var(--pure-white);
}

.modal-title {
  font-size: 1.4rem;
  color: var(--dark-purple-text);
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-purple-text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(124, 92, 186, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(124, 92, 186, 0.15);
}

/* 14. 響應式媒體查詢 (RWD Breakpoints) */
@media (max-width: 1024px) {

  .hero-grid,
  .origin-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container::before {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .site-header {
    padding: 14px 0;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--pure-white);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition-normal);
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid,
  .steps-container,
  .faq-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .candle-wall {
    gap: 20px;
  }

  .downloads-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   15. 全螢幕靜謐燭光載入動畫 (Preloader)
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 45%, #3A235D 0%, #1F1235 70%, #140A24 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), visibility 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-candle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.preloader-flame {
  width: 22px;
  height: 38px;
  background: radial-gradient(ellipse at 50% 80%, #FFFFFF 0%, #FFDF6D 35%, #FFA500 70%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 30px #FFDF6D, 0 0 60px #FF8C00, 0 0 90px rgba(212, 175, 55, 0.6);
  animation: preloaderFlameFlicker 1.5s infinite alternate ease-in-out;
  margin-bottom: 8px;
}

.preloader-candle-body {
  width: 32px;
  height: 110px;
  background: linear-gradient(90deg, #FFFFFF 0%, #E6DCF5 50%, #BBA9DC 100%);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.preloader-candle-base {
  width: 64px;
  height: 14px;
  background: linear-gradient(90deg, #D4AF37 0%, #F7E9B8 50%, #B89220 100%);
  border-radius: 8px;
  margin-top: -3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.preloader-gif-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 140px;
  height: auto;
  opacity: 0.9;
  display: none;
  /* 當使用 CSS 燭光時隱藏或混合 */
}

.preloader-text {
  text-align: center;
}

.preloader-cross {
  font-size: 1.8rem;
  color: var(--saint-gold);
  margin-bottom: 6px;
  animation: crossPulse 2s infinite alternate ease-in-out;
}

.preloader-text h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--pure-white);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.preloader-text p {
  font-size: 0.88rem;
  color: var(--saint-gold-light);
  letter-spacing: 2px;
  opacity: 0.85;
}

@keyframes preloaderFlameFlicker {
  0% {
    transform: scale(1) rotate(-1.5deg);
    opacity: 0.85;
    box-shadow: 0 0 25px #FFDF6D, 0 0 50px #FF8C00;
  }

  50% {
    transform: scale(1.12) rotate(2deg);
    opacity: 1;
    box-shadow: 0 0 40px #FFDF6D, 0 0 75px #FF8C00, 0 0 110px rgba(212, 175, 55, 0.8);
  }

  100% {
    transform: scale(0.96) rotate(-1deg);
    opacity: 0.9;
    box-shadow: 0 0 30px #FFDF6D, 0 0 55px #FF8C00;
  }
}

@keyframes crossPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 0 0 15px var(--saint-gold);
  }
}