:root {
  --orb-color-core: #ffffff;
  --orb-color-inner: #00f7ff;
  --orb-color-outer: #0062ff;
  --orb-color-glow: rgba(0, 247, 255, 0.5);
}

body {
  background-color: #050505; /* 比首頁更深 */
  overflow-x: hidden;
}

/* 祈念廳主容器 */
.prayer-room-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
  padding-top: 80px; /* 避開 Navbar */
  padding-bottom: 60px;
  overflow: hidden;
}

/* 背景粒子容器 */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* 核心能量球區域 */
.orb-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  margin-bottom: 3rem;
  transition: transform 0.3s ease-out;
}

.energy-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--orb-color-core), var(--orb-color-inner), var(--orb-color-outer));
  box-shadow: 
    0 0 30px var(--orb-color-glow),
    0 0 60px var(--orb-color-outer),
    inset 0 0 20px var(--orb-color-core);
  animation: pulse 4s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.energy-orb:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px var(--orb-color-glow),
    0 0 80px var(--orb-color-outer),
    inset 0 0 30px var(--orb-color-core);
}

.energy-orb.active {
  animation: burst 0.5s ease-out forwards;
}

/* 外圍環繞軌道 */
.orbit {
  position: absolute;
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 50%;
  animation: rotate linear infinite;
  pointer-events: none;
}

.orbit-1 { width: 260px; height: 260px; animation-duration: 10s; border-top-color: rgba(0, 247, 255, 0.8); }
.orbit-2 { width: 320px; height: 320px; animation-duration: 15s; animation-direction: reverse; border-bottom-color: rgba(0, 247, 255, 0.6); }
.orbit-3 { width: 380px; height: 380px; animation-duration: 20s; border-left-color: rgba(0, 247, 255, 0.4); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes burst {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.2); filter: brightness(2); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* 數據顯示區 */
.stats-panel {
  text-align: center;
  z-index: 10;
  color: #fff;
}

.main-counter {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--orb-color-inner);
  text-shadow: 0 0 10px var(--orb-color-outer);
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1.1rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 互動按鈕 */
.btn-pray-action {
  margin-top: 2rem;
  padding: 15px 40px;
  font-size: 1.5rem;
  border-radius: 50px;
  background: transparent;
  border: 2px solid var(--orb-color-inner);
  color: var(--orb-color-inner);
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.btn-pray-action:hover {
  background: var(--orb-color-inner);
  color: #000;
  box-shadow: 0 0 30px var(--orb-color-glow);
}

.btn-pray-action:active {
  transform: scale(0.95);
}

/* 即時跑馬燈 */
.live-ticker-box {
  position: absolute;
  bottom: 100px;
  width: 80%;
  max-width: 600px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 10;
}

.live-ticker-content {
  white-space: nowrap;
  color: #ccc;
  font-size: 0.9rem;
  animation: tickerSlide 20s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin-right: 30px;
}

.ticker-highlight {
  color: var(--orb-color-inner);
  font-weight: bold;
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 點擊後產生的漂浮文字 */
.float-text {
  position: absolute;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
  animation: floatTextAnim 1.5s ease-out forwards;
  z-index: 20;
  text-shadow: 0 0 5px var(--orb-color-outer);
}

@keyframes floatTextAnim {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* 響應式調整 */
@media (max-width: 768px) {
  .orb-container { width: 200px; height: 200px; }
  .energy-orb { width: 140px; height: 140px; }
  .orbit-1 { width: 180px; height: 180px; }
  .orbit-2 { width: 220px; height: 220px; }
  .orbit-3 { width: 260px; height: 260px; }
  .main-counter { font-size: 2.5rem; }
}
