:root{
  --red-600:#b31217;
  --red-500:#d72323;
  --red-400:#ff4d4f;
  --gold-500:#ffd700;
  --gold-600:#ffb400;
  --ink-900:#2a2a2a;
  --ink-700:#454545;
  --bg:#fff7f0;
  --card:#fffaf5;
  --ring:rgba(255,215,0,0.5);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink-900);
  background:linear-gradient(180deg,#fff6ef, #ffe9d6 30%, #fff6ef);
  font-family:"Noto Serif SC", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC","Microsoft Yahei", sans-serif;
}
.container{width:min(1600px,98%);margin-inline:auto} /* 从1400px增加到1600px，从95%增加到98% */
.bg-pattern{
  position:fixed;inset:0;pointer-events:none;opacity:.12;z-index:-1;
  background-image:
    radial-gradient(circle at 10% 10%, var(--gold-500) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 20%, var(--gold-500) 0 2px, transparent 3px),
    radial-gradient(circle at 20% 80%, var(--gold-500) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, var(--gold-500) 0 2px, transparent 3px);
  background-size: 80px 80px, 120px 120px, 100px 100px, 140px 140px;
}

/* 灯笼装饰样式 */
.lantern-decoration {
  position: fixed;
  top: 64px;
  z-index: 5;
  pointer-events: none;
  animation: lanternSwing 3s ease-in-out infinite;
}

.lantern-left {
  left: 80px;
  animation-delay: 0s;
}

.lantern-right {
  right: 80px;
  animation-delay: 1.5s;
}

.lantern-image {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.lantern-decoration:hover .lantern-image {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* 灯笼摆动动画 */
@keyframes lanternSwing {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

/* 响应式设计 - 在小屏幕上隐藏灯笼 */
@media (max-width: 768px) {
  .lantern-decoration {
    display: none;
  }
}
.site-header{background:linear-gradient(135deg, var(--red-600), var(--red-400)); color:white; height:65px; padding:0; position:sticky; top:0; z-index:10; box-shadow:0 6px 20px rgba(179,18,23,.35); display:flex; align-items:center}
.title{font-family:"ZCOOL KuaiLe","Noto Serif SC",serif; font-size:28px; margin:0; letter-spacing:2px; display:inline-block}
.subtitle{margin:0 0 0 12px; opacity:.9; display:inline-block; vertical-align:middle}

.hero{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "media";
  row-gap: 24px;
  padding: -28px 0 8px;
  align-items: start;
}

.hero-media{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  grid-area: media;
  gap: 30px;
  margin-top: -15px;
  position: relative;
}

.god-image{
  width: min(720px, 96%);
  max-width: 720px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(179, 18, 23, 0.35);
  outline: 2px solid rgba(255, 215, 0, 0.7);
}

.hero-cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-cta .btn{
  margin-inline: auto;
}

.hint{
  color: var(--ink-700);
  font-size: 14px;
}

.section-title{margin:28px 0 12px; font-size:22px; color:var(--red-600)}

.btn{appearance:none; border:none; background:#fff; color:var(--red-600); padding:12px 18px; border-radius:999px; font-weight:700; cursor:pointer; box-shadow:0 4px 12px rgba(0,0,0,.1); transition:.2s; outline:2px solid transparent}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:linear-gradient(135deg,var(--red-400),var(--red-600)); color:white; outline-color:var(--ring)}

.btn-change-username{
  background: var(--gold-500);
  color: var(--ink-900);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  border: 1px solid var(--gold-600);
  transition: all 0.2s ease;
}

.btn-change-username:hover{
  background: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 183, 0, 0.3);
}

.chips{display:flex; flex-wrap:wrap; gap:10px}
.chips.small{gap:8px; margin-top:8px}
.chips .chip{background:var(--card); border:1px dashed var(--gold-600); color:var(--ink-900); padding:8px 12px; border-radius:999px; cursor:pointer; transition:.15s; user-select:none}
.chips .chip:hover{background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08)}

.board{margin:8px 0 40px}
.board-empty{padding:16px; background:var(--card); border-left:4px solid var(--gold-600); border-radius:8px}
.board-list{list-style:none; padding:0; margin:0; display:grid; gap:12px}

.card{background:var(--card); border:1px solid #f1dbc0; border-radius:14px; padding:14px 14px 12px; box-shadow:0 6px 14px rgba(0,0,0,.06)}
.card .row{display:flex; justify-content:space-between; align-items:center; gap:10px}
.card .who{font-weight:700; color:var(--red-600)}
.card .meta{font-size:12px; color:#8a6d46}
.card .msg{margin:8px 0 0; line-height:1.6}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index: 9999;}
.modal[aria-hidden="false"]{display:block}
.modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(2px)}
.modal-dialog{position:relative; width:min(640px,92%); margin:8vh auto; background:white; border-radius:16px; padding:18px 18px 16px; box-shadow:0 30px 60px rgba(0,0,0,.25); border:1px solid #f2d9bf}

/* 神祇详情弹窗样式 */
.god-detail-dialog{
  max-width:600px !important;
  transform:scale(0.9);
  opacity:0;
  transition:all 0.2s ease;
}

.god-detail-content{
  margin-top:16px;
}

.god-info{
  display:grid;
  gap:20px;
}

.god-description p{
  font-size:16px;
  line-height:1.6;
  color:#4a5568;
  margin:0;
}

.god-powers h4,
.god-offerings h4,
.god-prayer h4{
  margin:0 0 8px 0;
  color:#c53030;
  font-size:16px;
  font-weight:600;
}

.god-powers ul,
.god-offerings ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
}

.god-powers li,
.god-offerings li{
  padding:6px 12px;
  background:linear-gradient(135deg, #fff5f5, #fed7d7);
  border-radius:8px;
  color:#742a2a;
  font-size:14px;
  border-left:3px solid #e53e3e;
}

.god-prayer .prayer-text{
  padding:12px 16px;
  background:linear-gradient(135deg, #f0fff4, #c6f6d5);
  border-radius:12px;
  color:#22543d;
  font-size:16px;
  font-weight:600;
  text-align:center;
  border:2px solid #38a169;
  margin:0;
}

.god-actions{
  text-align:center;
  margin-top:8px;
}
.modal-title{margin:0 0 8px; color:var(--red-600); text-align:center; font-size:24px; font-weight:600;}
.modal-close{position:absolute; right:10px; top:6px; font-size:26px; background:transparent; border:none; cursor:pointer; color:var(--ink-700)}

.form{display:grid; gap:12px}
.form-row{display:flex; flex-direction:column; gap:8px}
.form-row .inline{display:flex; gap:10px; align-items:center}
.form input[type="text"], .form textarea{width:100%; padding:10px 12px; border-radius:10px; border:1px solid #e9cfae; background:#fffdf8; font-size:14px; outline-color:var(--ring)}
.form .help{color:#9b7b54}
.form .checkbox{display:flex; align-items:center; gap:6px; color:#6b5a46}
.form-actions{display:flex; gap:10px; justify-content:flex-end; margin-top:8px}

/* Coins animation layer */
#coinLayer{position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:20;}

/* 祈福物品基础样式 */
.blessing-item{
  position:absolute; 
  width:20px; 
  height:20px; 
  border-radius:50%; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  background: transparent; /* 移除背景色 */
  box-shadow: none; /* 移除阴影 */
  animation: none; /* 移除浮动动画 */
  overflow: hidden;
}

/* 福字样式 - 移除背景渐变 */
.fu-item{
  background: transparent;
}

/* 玉如意样式 - 移除背景渐变 */
.lu-item{
  background: transparent;
}

/* 寿桃样式 - 移除背景渐变 */
.shou-item{
  background: transparent;
}

/* 喜字样式 - 移除背景渐变 */
.xi-item{
  background: transparent;
}

/* 金元宝样式 - 移除背景渐变 */
.cai-item{
  background: transparent;
  color: transparent; /* 移除文字颜色 */
}

/* 移除祈福物品浮动动画 */
/* @keyframes blessingFloat{
  0%, 100%{transform:translateY(0px) rotate(0deg);}
  50%{transform:translateY(-3px) rotate(5deg);}
} */

/* 保留原来的金币样式作为备用 */
.coin{position:absolute; width:18px; height:18px; border-radius:50%; background:radial-gradient(circle at 30% 30%, #fff 0 10%, #ffe27a 11%, #f5c400 60%, #d1a100 100%); box-shadow:0 2px 6px rgba(0,0,0,.25)}

/* Incense animation layer */
#incenseLayer{position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:9999; display:none}
#incenseLayer.active{display:block}
.incense-offset{position:absolute; inset:0; transform:translateY(-120px)}
.incense-scene{position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center}
.incense-bowl{position:relative; width:260px; height:140px; background:url('../assets/xianglu.png') center bottom / contain no-repeat; z-index:6}
.incense-stick{
  position:absolute;
  bottom:120px;
  width:6px;
  height:180px;
  background:#b25a2a;
  border-radius:4px;
  transform-origin:bottom center;
  z-index:5;
  transform:translateY(-240px);
  opacity:0;
}
.incense-stick.tip{background:linear-gradient(to bottom, #ff5a00 0 5%, #b25a2a 5% 100%)}
.incense-smoke{position:absolute; bottom:268px; width:6px; height:80px; border-radius:3px; background:linear-gradient(180deg, rgba(120,120,120,.55), rgba(120,120,120,0)); filter:blur(2px); opacity:0; animation:smoke 1.6s ease-out forwards; z-index:7; mix-blend-mode:multiply}
@keyframes smoke{0%{opacity:0; transform:translateY(10px)} 30%{opacity:.75} 100%{opacity:0; transform:translateY(-90px)}}

/* Hands (image replacement) */
.hand{display:none !important}
.hands-img{
  position:absolute;
  left:50%;
  transform:translate(-50%,-240px);
  bottom:0px;
  width:280px;
  height:160px;
  background:url('../assets/shuangshou.png') center / contain no-repeat;
  opacity:0;
  z-index:7;
  /* Remove initial animation, will be controlled by JavaScript */
}

/* 手机端双手图片位置调整 - 向左移动10px */
@media (max-width: 768px) {
  .hands-img {
    transform: translate(calc(-50% - 10px), -240px);
  }
}

@media (max-width: 480px) {
  .hands-img {
    transform: translate(calc(-50% - 10px), -240px);
  }
}

@keyframes handsIn{
  0%{
    transform:translate(-50%,-300px);
    opacity:0
  }
  20%{
    opacity:1
  }
  60%{
    opacity:1;
    transform:translate(-50%,-120px);
  }
  100%{
    transform:translate(-50%,-80px);
    opacity:1
  }
}

/* 手机端双手图片动画位置调整 */
@media (max-width: 768px) {
  @keyframes handsIn{
    0%{
      transform:translate(calc(-50% - 10px),-300px);
      opacity:0
    }
    20%{
      opacity:1
    }
    60%{
      opacity:1;
      transform:translate(calc(-50% - 10px),-120px);
    }
    100%{
      transform:translate(calc(-50% - 10px),-80px);
      opacity:1
    }
  }
}

@media (max-width: 480px) {
  @keyframes handsIn{
    0%{
      transform:translate(calc(-50% - 10px),-300px);
      opacity:0
    }
    20%{
      opacity:1
    }
    60%{
      opacity:1;
      transform:translate(calc(-50% - 10px),-120px);
    }
    100%{
      transform:translate(calc(-50% - 10px),-80px);
      opacity:1
    }
  }
}
/* breathe disabled for now to keep hands fixed at final position */
@keyframes handBreathImg{from{transform:translate(-50%,0)} to{transform:translate(-50%,0)}}

/* entrance + breathe animations */
.hand.left{left:calc(50% - 260px); bottom:120px; animation: handLeftIn .9s cubic-bezier(.22,1,.36,1) .1s forwards, handBreath 1.6s ease-in-out 1.2s 2 alternate}
.hand.right{right:calc(50% - 260px); bottom:120px; animation: handRightIn .9s cubic-bezier(.22,1,.36,1) .1s forwards, handBreath 1.6s ease-in-out 1.2s 2 alternate}

@keyframes handLeftIn{0%{transform:translate(-240px,80px) rotate(10deg); opacity:0} 60%{opacity:1} 100%{transform:translate(0,0) rotate(2deg); opacity:1}}
@keyframes handRightIn{0%{transform:translate(240px,80px) rotate(-10deg); opacity:0} 60%{opacity:1} 100%{transform:translate(0,0) rotate(-2deg); opacity:1}}
@keyframes handBreath{from{transform:translateY(0)} to{transform:translateY(-12px)}}

/* motion */
.incense-enter{animation:incenseEnter .9s ease-out forwards}
@keyframes incenseEnter{0%{transform:translateY(300px) scale(.98); opacity:0} 60%{opacity:1} 100%{transform:translateY(0) scale(1); opacity:1}}

.stick-drop{animation:stickDrop .9s ease-out .3s forwards; transform:translateY(-240px); opacity:0}
@keyframes stickDrop{0%{transform:translateY(-240px); opacity:0} 100%{transform:translateY(0); opacity:1}}
.stick-left.stick-drop{animation:stickDropLeft .9s ease-out .3s forwards; transform:translateY(-240px) rotate(-5deg); opacity:0}
.stick-center.stick-drop{animation:stickDropCenter .9s ease-out .3s forwards; transform:translateY(-240px) rotate(0deg); opacity:0}
.stick-right.stick-drop{animation:stickDropRight .9s ease-out .3s forwards; transform:translateY(-240px) rotate(5deg); opacity:0}
@keyframes stickDropLeft{0%{transform:translateY(-240px) rotate(-5deg); opacity:0} 100%{transform:translateY(0) rotate(-5deg); opacity:1}}
@keyframes stickDropCenter{0%{transform:translateY(-240px) rotate(0deg); opacity:0} 100%{transform:translateY(0) rotate(0deg); opacity:1}}
@keyframes stickDropRight{0%{transform:translateY(-240px) rotate(5deg); opacity:0} 100%{transform:translateY(0) rotate(5deg); opacity:1}}

.scene-fadeout{animation:sceneFade .6s ease-in forwards}
@keyframes sceneFade{to{opacity:0}}

.row-between{display:flex; align-items:center; justify-content:space-between; gap:8px}
.btn-small{padding:6px 10px; font-weight:600; font-size:13px}

/* Larger modal content scroll */
.modal-dialog{max-height:78vh; overflow:auto}

/* Slider */
.slider{
  position: relative;
  width: min(720px, 96%);
  max-width: 720px;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: visible;
  outline: 2px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 10px 30px rgba(179, 18, 23, 0.35);
  background: #fff7e6;
  min-height: 540px;
  margin: 0 auto;
}

/* 神祇按钮覆盖层 - 顶部区域 */
.gods-overlay-top {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000; /* 确保顶部神祇按钮在幕布上方显示 */
  pointer-events: none;
}

.god-buttons-top {
  display: flex;
  flex-direction: row;
  gap: 16px;
  pointer-events: auto;
  justify-content: center;
  align-items: center;
}

/* 神祇按钮覆盖层 - 左侧区域（保留原有样式） */
.gods-overlay {
  position: absolute;
  top: -60px;
  left: -220px;
  z-index: 2000; /* 确保神祇按钮在幕布上方显示 */
  pointer-events: none;
}

.god-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 215, 0, 0.6);
  backdrop-filter: blur(8px);
}

/* 顶部按钮样式 */
.god-btn-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 80px;
  text-decoration: none;
  color: inherit;
}

.god-btn-top:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.8);
  background: rgba(255, 255, 255, 1);
}

.god-btn-top:active{
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.god-btn-top.active{
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border-color: rgba(255, 215, 0, 1);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.god-btn-top.active .god-icon{
  color:#8b4513;
  text-shadow:0 1px 2px rgba(255,255,255,0.8);
}

.god-btn-top.active .god-name{
  color:#8b4513;
  font-weight:700;
}

/* 左侧按钮样式 */
.god-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 70px;
  text-decoration: none;
  color: inherit;
}

.god-btn:hover{
  transform: translateX(3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.8);
  background: rgba(255, 255, 255, 1);
}

.god-btn:active{
  transform: translateX(1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.god-btn.active{
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border-color: rgba(255, 215, 0, 1);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  transform: translateX(3px);
}

.god-btn.active .god-icon{
  color:#8b4513;
  text-shadow:0 1px 2px rgba(255,255,255,0.8);
}

.god-btn.active .god-name{
  color:#8b4513;
  font-weight:700;
}

.god-icon{
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.god-name{
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-700);
  text-shadow: none;
}

/* 不同神祇的特殊样式 */
.fu-god .god-icon{color:#e74c3c}
.lu-god .god-icon{color:#f39c12}
.cai-god .god-icon{color:#f1c40f}
.xi-god .god-icon{color:#e91e63}
.shou-god .god-icon{color:#27ae60}
.slides{position:relative; height:100%; background:linear-gradient(135deg, #fff1e6, #ffe6cc)}
.slide{position:absolute; inset:0; opacity:0; visibility:hidden; transform:scale(1.02); transition:opacity .6s ease, transform .6s ease; z-index:0}
.slide.is-active{opacity:1; visibility:visible; transform:scale(1); z-index:10}
.slide img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:1}

/* Loading overlay */
.loading-overlay{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#fff; font-weight:800; font-size:22px; text-shadow:0 1px 2px rgba(0,0,0,.25); z-index:2; pointer-events:none}
.loading-sub{opacity:.9; margin-top:6px; font-size:14px}
.loading-dots{display:inline-flex; gap:4px; margin-left:6px}
.loading-dots i{width:6px; height:6px; border-radius:50%; background:#fff; opacity:.45; animation:dotPulse 1.2s infinite ease-in-out}
.loading-dots i:nth-child(2){animation-delay:.2s}
.loading-dots i:nth-child(3){animation-delay:.4s}
@keyframes dotPulse{0%,80%,100%{transform:scale(.6); opacity:.35}40%{transform:scale(1); opacity:1}}

.slider-dots{position:absolute; left:50%; bottom:10px; transform:translateX(-50%); display:flex; gap:8px; z-index:20}
.slider-dots button{width:10px; height:10px; border-radius:50%; border:none; background:rgba(255,255,255,.7); outline:2px solid rgba(0,0,0,.08); cursor:pointer}
.slider-dots button[aria-current="true"]{background:var(--gold-600)}

@media (min-width: 820px){
  .hero{
    grid-template-columns: 1fr;
    grid-template-areas: "media";
  }
  .hero-cta{
    align-items: center;
  }
}

@media (min-width: 1024px){
  .hero{
    grid-template-columns: 1fr;
    grid-template-areas: "media";
    column-gap: 48px;
  }
  .hero-cta{
    align-items: center;
  }
  .hero-rank{
    display: block;
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (min-width: 1400px){
  .hero{
    grid-template-columns: 1fr;
    column-gap: 72px;
  }
  .hero-rank{
    margin-left: 0;
    margin-top: 20px;
  }
}

/* Layout with right sidebar */
.content-grid{display:grid; grid-template-columns:1fr; gap:18px; align-items:start}
.content-main{display:grid; gap:12px}
.sidebar{position:relative}

/* 祈福区域布局 */
.blessing-sections{
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.blessing-sections .board{
  flex: 2;
  margin: 0;
}

.blessing-sections .ranking{
  flex: 1;
  margin: 0;
  background: transparent;
  max-width: none;
}

.blessing-sections .board .section-title,
.blessing-sections .ranking .section-title{
  margin: 28px 0 12px;
  font-size: 22px;
  color: var(--red-600);
}

.blessing-sections .ranking .section-title.row-between{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.blessing-sections .ranking .section-title.row-between h2{
  margin: 0;
  font-size: 22px;
  color: var(--red-600);
}

.blessing-sections .ranking .section-title.row-between .btn{
  margin: 0;
  font-size: 14px;
  padding: 6px 12px;
}

.blessing-sections .ranking .rank-list{
  margin-top: 12px;
}

/* 分页控件样式 */
.pagination{
  margin-top: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid #f1dbc0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.pagination-info{
  color: var(--ink-700);
  font-size: 14px;
}

.pagination-controls{
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-numbers{
  font-weight: 600;
  color: var(--red-600);
  font-size: 16px;
  min-width: 60px;
  text-align: center;
}

.pagination .btn-outline{
  border-color: var(--red-600);
  color: var(--red-600);
  background: transparent;
}

.pagination .btn-outline:hover:not(:disabled){
  background: var(--red-600);
  color: white;
}

.pagination .btn-outline:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px){
  .blessing-sections{
    flex-direction: column;
    gap: 16px;
  }
  
  .blessing-sections .board,
  .blessing-sections .ranking{
    flex: none;
    width: 100%;
  }
  
  .pagination-controls{
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 1024px){
  .content-grid{grid-template-columns:1fr}
  .sidebar{position:static}
}

/* 通用排行榜样式 */
.rank-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid #f1dbc0;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.rank-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-num{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #7a3d00;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-name{
  font-weight: 700;
  color: var(--red-600);
}

.rank-count{
  font-size: 12px;
  color: #8a6d46;
}

/* 用户排名信息样式 */
.user-rank-info {
  margin: 15px 0 20px 0;
  padding: 15px 20px;
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 15px;
  border: 2px solid #ffd700;
}

.user-rank-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-rank-label {
  font-size: 16px;
  font-weight: 700;
  color: #ef5350;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-rank-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.user-rank-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef5350, #e53935);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.user-rank-name {
  font-weight: 700;
  color: #ef5350;
  font-size: 16px;
}

.user-rank-count {
  font-size: 14px;
  color: #8a6d46;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 用户在前100名中的特殊样式 */
.rank-item.user-own-rank {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border: 2px solid #ffd700;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  transform: scale(1.02);
}

.rank-item.user-own-rank .rank-num {
  background: linear-gradient(135deg, #ef5350, #e53935);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.rank-item.user-own-rank .rank-name {
  color: #ef5350;
  font-weight: 800;
}

.rank-item.user-own-rank .rank-count {
  color: #ef5350;
  font-weight: 600;
}



.header-bar{display:flex; align-items:center; justify-content:space-between}
.header-bar .brand{display:flex; align-items:center; gap:12px}
.btn-outline{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.9)}
.btn-outline:hover{background:rgba(255,255,255,.15)} 

/* Incense bowl */
.incense-bowl{
  position:absolute;
  left:50%;
  transform:translate(-50%,-50px);
  bottom:0px;
  width:200px;
  height:120px;
  background:url('../assets/xianglu.png') center / contain no-repeat;
  z-index:6;
}

/* 手机端香炉居中优化 */
@media (max-width: 768px) {
  .incense-bowl{
    width: 180px;
    height: 108px;
    transform: translate(calc(-50% - 10px), -70px); /* 向左偏移10px，向上移动30px */
  }
}

@media (max-width: 480px) {
  .incense-bowl{
    width: 160px;
    height: 96px;
    transform: translate(calc(-50% - 10px), -65px); /* 向左偏移10px，向上移动30px */
  }
}

/* Auspicious clouds below incense burner */
.auspicious-clouds{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:200px;
  z-index:3;
  overflow:hidden;
}

.cloud-layer{
  position:absolute;
  bottom:0;
  width:180px;
  height:120px;
  background:url('../assets/xiangyun.png') center / contain no-repeat;
  opacity:0.6;
  animation:cloudFloat 8s ease-in-out infinite;
}

.cloud-layer:nth-child(1){
  left:27%;
  bottom:5px;
  transform:scaleX(-1) scale(1.5);
  animation-delay:0s;
}

.cloud-layer:nth-child(2){
  left:37%;
  bottom:8px;
  transform:scale(1.4);
  animation-delay:0.5s;
}

.cloud-layer:nth-child(3){
  left:47%;
  bottom:6px;
  transform:scaleX(-1) scale(1.3);
  animation-delay:1s;
}

.cloud-layer:nth-child(4){
  left:57%;
  bottom:10px;
  transform:scale(1.6);
  animation-delay:1.5s;
}

.cloud-layer:nth-child(5){
  left:32%;
  bottom:12px;
  transform:scaleX(-1) scale(1.2);
  animation-delay:2s;
}

.cloud-layer:nth-child(6){
  left:42%;
  bottom:7px;
  transform:scale(1.5);
  animation-delay:2.5s;
}

.cloud-layer:nth-child(7){
  left:52%;
  bottom:9px;
  transform:scaleX(-1) scale(1.4);
  animation-delay:3s;
}

.cloud-layer:nth-child(8){
  left:62%;
  bottom:11px;
  transform:scale(1.3);
  animation-delay:3.5s;
}

/* Second layer of auspicious clouds - more central and concentrated */
.cloud-layer:nth-child(9){
  left:30%;
  bottom:-15px;
  transform:scaleX(-1) scale(1.4);
  animation-delay:0.5s;
}

.cloud-layer:nth-child(10){
  left:34%;
  bottom:-18px;
  transform:scale(1.3);
  animation-delay:1s;
}

.cloud-layer:nth-child(11){
  left:38%;
  bottom:-20px;
  transform:scaleX(-1) scale(1.2);
  animation-delay:1.5s;
}

.cloud-layer:nth-child(12){
  left:42%;
  bottom:-16px;
  transform:scale(1.4);
  animation-delay:2s;
}

.cloud-layer:nth-child(13){
  left:46%;
  bottom:-14px;
  transform:scaleX(-1) scale(1.3);
  animation-delay:2.5s;
}

.cloud-layer:nth-child(14){
  left:50%;
  bottom:-17px;
  transform:scale(1.2);
  animation-delay:3s;
}

.cloud-layer:nth-child(15){
  left:54%;
  bottom:-19px;
  transform:scaleX(-1) scale(1.1);
  animation-delay:3.5s;
}

.cloud-layer:nth-child(16){
  left:58%;
  bottom:-21px;
  transform:scale(1.3);
  animation-delay:4s;
}

/* Third layer of auspicious clouds - additional coverage */
.cloud-layer:nth-child(17){
  left:30%;
  bottom:-25px;
  transform:scaleX(-1) scale(1.1);
  animation-delay:0.3s;
}
.cloud-layer:nth-child(18){
  left:34%;
  bottom:-28px;
  transform:scale(1.2);
  animation-delay:0.8s;
}
.cloud-layer:nth-child(19){
  left:38%;
  bottom:-26px;
  transform:scaleX(-1) scale(1.0);
  animation-delay:1.3s;
}
.cloud-layer:nth-child(20){
  left:42%;
  bottom:-24px;
  transform:scale(1.1);
  animation-delay:1.8s;
}
.cloud-layer:nth-child(21){
  left:46%;
  bottom:-27px;
  transform:scaleX(-1) scale(1.2);
  animation-delay:2.3s;
}
.cloud-layer:nth-child(22){
  left:50%;
  bottom:-29px;
  transform:scale(1.0);
  animation-delay:2.8s;
}
.cloud-layer:nth-child(23){
  left:54%;
  bottom:-23px;
  transform:scaleX(-1) scale(1.1);
  animation-delay:3.3s;
}
.cloud-layer:nth-child(24){
  left:58%;
  bottom:-26px;
  transform:scale(1.2);
  animation-delay:3.8s;
}

/* 手机端云彩位置调整 - 整体向左移动80px */
@media (max-width: 768px) {
  .cloud-layer:nth-child(1){ left: calc(27% - 80px); }
  .cloud-layer:nth-child(2){ left: calc(37% - 80px); }
  .cloud-layer:nth-child(3){ left: calc(47% - 80px); }
  .cloud-layer:nth-child(4){ left: calc(57% - 80px); }
  .cloud-layer:nth-child(5){ left: calc(32% - 80px); }
  .cloud-layer:nth-child(6){ left: calc(42% - 80px); }
  .cloud-layer:nth-child(7){ left: calc(52% - 80px); }
  .cloud-layer:nth-child(8){ left: calc(62% - 80px); }
  .cloud-layer:nth-child(9){ left: calc(30% - 80px); }
  .cloud-layer:nth-child(10){ left: calc(34% - 80px); }
  .cloud-layer:nth-child(11){ left: calc(38% - 80px); }
  .cloud-layer:nth-child(12){ left: calc(42% - 80px); }
  .cloud-layer:nth-child(13){ left: calc(46% - 80px); }
  .cloud-layer:nth-child(14){ left: calc(50% - 80px); }
  .cloud-layer:nth-child(15){ left: calc(54% - 80px); }
  .cloud-layer:nth-child(16){ left: calc(58% - 80px); }
  .cloud-layer:nth-child(17){ left: calc(30% - 80px); }
  .cloud-layer:nth-child(18){ left: calc(34% - 80px); }
  .cloud-layer:nth-child(19){ left: calc(38% - 80px); }
  .cloud-layer:nth-child(20){ left: calc(42% - 80px); }
  .cloud-layer:nth-child(21){ left: calc(46% - 80px); }
  .cloud-layer:nth-child(22){ left: calc(50% - 80px); }
  .cloud-layer:nth-child(23){ left: calc(54% - 80px); }
  .cloud-layer:nth-child(24){ left: calc(58% - 80px); }
}

@media (max-width: 480px) {
  .cloud-layer:nth-child(1){ left: calc(27% - 80px); }
  .cloud-layer:nth-child(2){ left: calc(37% - 80px); }
  .cloud-layer:nth-child(3){ left: calc(47% - 80px); }
  .cloud-layer:nth-child(4){ left: calc(57% - 80px); }
  .cloud-layer:nth-child(5){ left: calc(32% - 80px); }
  .cloud-layer:nth-child(6){ left: calc(42% - 80px); }
  .cloud-layer:nth-child(7){ left: calc(52% - 80px); }
  .cloud-layer:nth-child(8){ left: calc(62% - 80px); }
  .cloud-layer:nth-child(9){ left: calc(30% - 80px); }
  .cloud-layer:nth-child(10){ left: calc(34% - 80px); }
  .cloud-layer:nth-child(11){ left: calc(38% - 80px); }
  .cloud-layer:nth-child(12){ left: calc(42% - 80px); }
  .cloud-layer:nth-child(13){ left: calc(46% - 80px); }
  .cloud-layer:nth-child(14){ left: calc(50% - 80px); }
  .cloud-layer:nth-child(15){ left: calc(54% - 80px); }
  .cloud-layer:nth-child(16){ left: calc(58% - 80px); }
  .cloud-layer:nth-child(17){ left: calc(30% - 80px); }
  .cloud-layer:nth-child(18){ left: calc(34% - 80px); }
  .cloud-layer:nth-child(19){ left: calc(38% - 80px); }
  .cloud-layer:nth-child(20){ left: calc(42% - 80px); }
  .cloud-layer:nth-child(21){ left: calc(46% - 80px); }
  .cloud-layer:nth-child(22){ left: calc(50% - 80px); }
  .cloud-layer:nth-child(23){ left: calc(54% - 80px); }
  .cloud-layer:nth-child(24){ left: calc(58% - 80px); }
}

@keyframes cloudFloat{
  0%, 100%{
    transform:translateX(0);
    opacity:0.6;
  }
  25%{
    transform:translateX(8px);
    opacity:0.7;
  }
  50%{
    transform:translateX(-6px);
    opacity:0.65;
  }
  75%{
    transform:translateX(5px);
    opacity:0.7;
  }
} 

/* 神祇详情展示区域 */
.god-detail-area{
  background: var(--card);
  border: 1px solid #f1dbc0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.god-detail-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1dbc0;
}

.god-detail-header .section-title{
  margin: 0;
  font-size: 24px;
  color: var(--red-600);
}

.god-detail-content{
  line-height: 1.6;
  color: var(--ink-700);
}

.god-description{
  margin-bottom: 20px;
}

.god-description p{
  font-size: 16px;
  margin: 0 0 16px 0;
}

.god-powers,
.god-offerings,
.god-prayer{
  margin-bottom: 20px;
}

.god-powers h4,
.god-offerings h4,
.god-prayer h4{
  color: var(--red-600);
  font-size: 18px;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.god-powers ul,
.god-offerings ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.god-powers li,
.god-offerings li{
  background: #fef7f0;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 8px;
  border-left: 3px solid var(--red-600);
  font-size: 14px;
}

.prayer-text{
  background: #fef7f0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f1dbc0;
  font-size: 16px;
  font-style: italic;
  text-align: center;
  color: var(--red-600);
  font-weight: 500;
}

.god-actions{
  margin-top: 24px;
  text-align: center;
}

.god-actions .btn{
  padding: 12px 24px;
  font-size: 16px;
}

@media (max-width: 768px){
  .god-detail-area{
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .god-detail-header{
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
} 

/* 神祇轮播图样式 */
.god-slider {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  margin-top: 100px; /* 为顶部神祇按钮留出空间 */
  z-index: 2000; /* 确保神祇轮播在幕布上方显示 */
}

.god-slides {
  position: relative;
  width: 100%;
  height: 580px; /* 从680px减少到580px，降低高度 */
  overflow: hidden;
  border-radius: 20px; /* 增加圆角 */
  box-shadow: 0 12px 40px rgba(179, 18, 23, 0.25); /* 增强阴影效果 */
  z-index: 2000; /* 确保神祇轮播slides在幕布上方显示 */
}

.god-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 2000; /* 确保每个神祇slide在幕布上方显示 */
}

.god-slide.active {
  opacity: 1;
}

.god-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px; /* 增加图片圆角 */
  max-width: 1100px; /* 从900px增加到1100px，让图片更宽 */
  margin: 0 auto; /* 居中显示 */
  position: relative;
  z-index: 2000; /* 确保神祇图片在幕布上方显示 */
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 20px;
}

.slide-content h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
}

.slide-content p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.god-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: var(--red-600);
}

/* 左右两侧内容区域样式 - 重新设计 */
.hero-left-content,
.hero-right-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  z-index: 20;
  pointer-events: none;
}

.hero-left-content {
  left: -320px;
}

.hero-right-content {
  right: -320px;
}

/* 新增：内容区域容器 - 仅在手机端使用 */
.content-sections {
  display: none; /* 默认隐藏，仅在手机端显示 */
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

/* 内容卡片样式 */
.content-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  max-width: 320px;
  text-align: center;
}

.content-title {
  color: var(--red-600);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.content-text {
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  padding: 0 8px;
}

.content-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.feature-tag {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #7a3d00;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 182, 0, 0.8);
}

/* 装饰角样式 */
.corner-decoration {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-500);
  opacity: 0.6;
}

.corner-decoration.top-left {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
  border-radius: 8px 0 0 0;
}

.corner-decoration.top-right {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 8px 0 0;
}

.corner-decoration.bottom-left {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 8px;
}

.corner-decoration.bottom-right {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 8px 0;
}

/* 手机端样式优化 */
@media (max-width: 768px) {
  .hero-left-content,
  .hero-right-content {
    position: static;
    transform: none;
    width: 100%;
    margin: 20px 0;
  }
  
  .hero-left-content {
    left: auto;
  }
  
  .hero-right-content {
    right: auto;
  }
  
  /* 在手机端显示content-sections */
  .content-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 0 16px;
  }
  
  .god-slider {
    max-width: 100%;
    margin-top: 80px; /* 减少顶部间距 */
  }
  
  .god-slides {
    height: 400px;
  }
  
  .content-sections {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 0 16px;
  }
  
  .content-card {
    padding: 20px;
    margin: 0;
    max-width: 100%;
  }
  
  .content-title {
    font-size: 18px;
  }
  
  .content-text {
    font-size: 14px;
    padding: 0;
  }
  
  /* 优化手机端顶部神祇按钮 */
  .gods-overlay-top {
    top: -60px; /* 减少顶部间距 */
  }
  
  .god-buttons-top {
    gap: 8px; /* 减少按钮间距 */
  }
  
  .god-btn-top {
    padding: 8px 12px; /* 减少按钮内边距 */
    min-width: 60px; /* 减少按钮最小宽度 */
  }
  
  .god-btn-top .god-icon {
    font-size: 16px; /* 减少图标字体大小 */
  }
  
  .god-btn-top .god-name {
    font-size: 10px; /* 减少名称字体大小 */
  }
  
  /* 优化手机端立即祈福按钮区域 */
  .hero-cta {
    margin-top: 20px;
    padding: 0 16px;
  }
  
  .hero-cta .btn {
    width: 100%; /* 按钮占满宽度 */
    max-width: 300px;
    padding: 16px 24px; /* 增加按钮内边距 */
    font-size: 18px; /* 增加按钮字体大小 */
  }
  
  .instruction {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-700);
  text-align: center;
}

.instruction span {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  margin: 0 4px;
}
  
  /* 优化手机端hero-media间距 */
  .hero-media {
    gap: 20px; /* 减少手机端的间距 */
    margin-top: -10px; /* 减少顶部负边距 */
  }
}

@media (max-width: 480px) {
  .god-slider {
    margin-top: 70px; /* 进一步减少顶部间距 */
  }
  
  .god-slides {
    height: 350px; /* 进一步减少图片高度 */
  }
  
  .gods-overlay-top {
    top: -50px; /* 进一步减少顶部间距 */
  }
  
  .god-buttons-top {
    gap: 6px; /* 进一步减少按钮间距 */
  }
  
  .god-btn-top {
    padding: 6px 10px; /* 进一步减少按钮内边距 */
    min-width: 50px; /* 进一步减少按钮最小宽度 */
  }
  
  .god-btn-top .god-icon {
    font-size: 14px; /* 进一步减少图标字体大小 */
  }
  
  .god-btn-top .god-name {
    font-size: 9px; /* 进一步减少名称字体大小 */
  }
  
  .content-sections {
    margin-top: 25px;
    padding: 0 12px;
  }
  
  .content-card {
    padding: 16px;
  }
  
  .content-title {
    font-size: 16px;
  }
  
  .content-text {
    font-size: 13px;
  }
  
  /* 进一步优化小屏幕设备的hero-media间距 */
  .hero-media {
    gap: 16px; /* 进一步减少小屏幕的间距 */
    margin-top: -8px; /* 进一步减少顶部负边距 */
  }
}

/* 神祇图片金色光晕效果 - 增强版 */
.god-image-halo {
  position: relative;
  z-index: 2000; /* 确保神祇光晕在幕布上方显示 */
}

/* 增强原有光晕效果 - 更强烈的金光 */
.god-image-halo.active::before {
  filter: 
    drop-shadow(0 0 40px rgba(255, 215, 0, 1))
    drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
    drop-shadow(0 0 120px rgba(255, 140, 0, 0.6))
    drop-shadow(0 0 160px rgba(255, 215, 0, 0.4));
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 182, 0, 0.6),
    0 0 60px rgba(255, 140, 0, 0.4);
}

.god-image-halo.active::after {
  filter: 
    drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
    drop-shadow(0 0 60px rgba(255, 182, 0, 0.6))
    drop-shadow(0 0 90px rgba(255, 140, 0, 0.4));
  box-shadow: 
    0 0 15px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 182, 0, 0.4),
    0 0 45px rgba(255, 140, 0, 0.2);
}

/* 新增：第三层金光脉冲效果 */
.god-image-halo .golden-pulse-ring {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  right: -150px;
  bottom: -150px;
  border: 3px solid rgba(255, 215, 0, 0.8);
  border-radius: 155px;
  z-index: 1999;
  opacity: 0;
  transform: scale(0.1);
  pointer-events: none;
}

/* 祈福时激活金光脉冲环 */
.god-image-halo.active .golden-pulse-ring,
.god-image-halo.enter-halo .golden-pulse-ring {
  opacity: 1;
  transform: scale(1);
  animation: goldenPulseRing 5s ease-in-out infinite 1s;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 215, 0, 0.4);
}

/* 新增：第四层金光粒子效果 */
.god-image-halo .golden-particles {
  position: absolute;
  top: -100px;
  left: -100px;
  right: -100px;
  bottom: -100px;
  z-index: 2002;
  pointer-events: none;
  overflow: hidden;
}

.god-image-halo .golden-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 1), 
    rgba(255, 184, 0, 0.8), 
    transparent
  );
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
}

/* 祈福时激活金光粒子效果 */
.god-image-halo.active .golden-particle,
.god-image-halo.enter-halo .golden-particle {
  opacity: 1;
  transform: scale(1);
  animation: goldenParticleFloat 6s ease-in-out infinite;
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 1),
    0 0 20px rgba(255, 184, 0, 0.8),
    0 0 30px rgba(255, 140, 0, 0.6);
}

/* 新增：强烈金光动画关键帧 */
@keyframes intenseGoldenGlow {
  0%, 100% {
    opacity: 0.8;
    transform: scale(0.8);
    filter: 
      drop-shadow(0 0 40px rgba(255, 215, 0, 1))
      drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.6))
      drop-shadow(0 0 160px rgba(255, 215, 0, 0.4));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: 
      drop-shadow(0 0 50px rgba(255, 215, 0, 1))
      drop-shadow(0 0 100px rgba(255, 182, 0, 0.9))
      drop-shadow(0 0 150px rgba(255, 140, 0, 0.7))
      drop-shadow(0 0 200px rgba(255, 215, 0, 0.5));
  }
}

@keyframes intenseGoldenGlowOuter {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.6);
    filter: blur(2px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
    filter: blur(1px);
  }
}

@keyframes goldenPulseRing {
  0%, 100% {
    opacity: 0;
    transform: scale(0.1);
    border-color: rgba(255, 215, 0, 0.8);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
    border-color: rgba(255, 215, 0, 1);
  }
}

@keyframes goldenParticleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-60px) scale(0.8);
  }
}

/* 第一层光晕 - 核心光晕 */
.god-image-halo::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  right: -60px;
  bottom: -60px;
  background: 
    radial-gradient(
      circle at center,
      rgba(255, 215, 0, 1) 0%,
      rgba(255, 215, 0, 0.98) 10%,
      rgba(255, 215, 0, 0.95) 20%,
      rgba(255, 215, 0, 0.9) 30%,
      rgba(255, 215, 0, 0.8) 40%,
      rgba(255, 215, 0, 0.6) 50%,
      rgba(255, 215, 0, 0.4) 60%,
      rgba(255, 215, 0, 0.2) 70%,
      rgba(255, 215, 0, 0.1) 80%,
      transparent 100%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 182, 0, 0.9) 0%,
      rgba(255, 182, 0, 0.7) 30%,
      rgba(255, 182, 0, 0.5) 50%,
      rgba(255, 182, 0, 0.3) 70%,
      transparent 100%
    );
  border-radius: 65px;
  z-index: 2001; /* 确保第一层光晕在幕布上方显示 */
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  filter: 
    drop-shadow(0 0 35px rgba(255, 215, 0, 0.9))
    drop-shadow(0 0 70px rgba(255, 182, 0, 0.6))
    drop-shadow(0 0 100px rgba(255, 140, 0, 0.3));
}

/* 添加第二层光晕效果 - 增强版 */
.god-image-halo::after {
  content: '';
  position: absolute;
  top: -90px;
  left: -90px;
  right: -90px;
  bottom: -90px;
  background: 
    radial-gradient(
      circle at center,
      rgba(255, 215, 0, 0.4) 0%,
      rgba(255, 215, 0, 0.35) 15%,
      rgba(255, 215, 0, 0.3) 30%,
      rgba(255, 215, 0, 0.25) 45%,
      rgba(255, 215, 0, 0.2) 60%,
      rgba(255, 215, 0, 0.15) 75%,
      rgba(255, 215, 0, 0.1) 85%,
      rgba(255, 215, 0, 0.05) 90%,
      transparent 100%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 182, 0, 0.3) 0%,
      rgba(255, 182, 0, 0.25) 40%,
      rgba(255, 182, 0, 0.2) 60%,
      rgba(255, 182, 0, 0.15) 80%,
      transparent 100%
    );
  border-radius: 95px;
  z-index: 2000; /* 确保第二层光晕在幕布上方显示 */
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  filter: blur(1px);
}

.god-image-halo.active::before {
  opacity: 1;
  transform: scale(1);
  animation: enhancedHaloPulse 2s ease-in-out infinite;
}

.god-image-halo.active::after {
  opacity: 1;
  transform: scale(1);
  animation: enhancedHaloPulseOuter 2.5s ease-in-out infinite;
}

/* 进入动画状态的光晕效果 */
.god-image-halo.enter-halo::before {
  opacity: 1;
  transform: scale(1);
  animation: enhancedHaloEnter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.god-image-halo.enter-halo::after {
  opacity: 1;
  transform: scale(1);
  animation: enhancedHaloEnterOuter 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 增强光晕的box-shadow效果 */
.god-image-halo.active {
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 182, 0, 0.4),
    0 0 60px rgba(255, 140, 0, 0.2),
    0 0 80px rgba(255, 100, 0, 0.1);
  transition: box-shadow 0.6s ease;
}

/* 光晕进入时的box-shadow动画 */
.god-image-halo.enter-halo {
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 182, 0, 0.3),
    0 0 30px rgba(255, 140, 0, 0.2);
  animation: haloBoxShadowEnter 1.2s ease-out forwards;
}

@keyframes haloBoxShadowEnter {
  0% {
    box-shadow: 
      0 0 5px rgba(255, 215, 0, 0.2),
      0 0 10px rgba(255, 182, 0, 0.15),
      0 0 15px rgba(255, 140, 0, 0.1);
  }
  100% {
    box-shadow: 
      0 0 20px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 182, 0, 0.4),
      0 0 60px rgba(255, 140, 0, 0.2),
      0 0 80px rgba(255, 100, 0, 0.1);
  }
}

/* 光晕退出时的box-shadow动画 */
.god-image-halo.exit-halo {
  animation: haloBoxShadowExit 1s ease-in forwards;
}

@keyframes haloBoxShadowExit {
  0% {
    box-shadow: 
      0 0 20px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 182, 0, 0.4),
      0 0 60px rgba(255, 140, 0, 0.2),
      0 0 80px rgba(255, 100, 0, 0.1);
  }
  100% {
    box-shadow: 
      0 0 5px rgba(255, 215, 0, 0.1),
      0 0 10px rgba(255, 182, 0, 0.05),
      0 0 15px rgba(255, 140, 0, 0.02);
  }
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
    filter: 
      drop-shadow(0 0 35px rgba(255, 215, 0, 0.9))
      drop-shadow(0 0 70px rgba(255, 182, 0, 0.6))
      drop-shadow(0 0 100px rgba(255, 140, 0, 0.3));
  }
  25% {
    opacity: 1;
    transform: scale(1.08);
    filter: 
      drop-shadow(0 0 45px rgba(255, 215, 0, 1))
      drop-shadow(0 0 85px rgba(255, 182, 0, 0.7))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.4));
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15);
    filter: 
      drop-shadow(0 0 55px rgba(255, 215, 0, 1))
      drop-shadow(0 0 100px rgba(255, 182, 0, 0.8))
      drop-shadow(0 0 140px rgba(255, 140, 0, 0.5));
  }
  75% {
    opacity: 1;
    transform: scale(1.08);
    filter: 
      drop-shadow(0 0 45px rgba(255, 215, 0, 1))
      drop-shadow(0 0 85px rgba(255, 182, 0, 0.7))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.4));
  }
}

@keyframes haloPulseOuter {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* 光晕进入动画 */
.god-image-halo.enter-halo::before {
  animation: haloEnter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.god-image-halo.enter-halo::after {
  animation: haloEnterOuter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes haloEnter {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-5deg);
    filter: 
      drop-shadow(0 0 8px rgba(255, 215, 0, 0.3))
      drop-shadow(0 0 15px rgba(255, 182, 0, 0.2));
  }
  30% {
    opacity: 0.8;
    transform: scale(0.8) rotate(-2deg);
    filter: 
      drop-shadow(0 0 20px rgba(255, 215, 0, 0.6))
      drop-shadow(0 0 40px rgba(255, 182, 0, 0.4))
      drop-shadow(0 0 60px rgba(255, 140, 0, 0.2));
  }
  70% {
    opacity: 1;
    transform: scale(1.15) rotate(1deg);
    filter: 
      drop-shadow(0 0 35px rgba(255, 215, 0, 0.9))
      drop-shadow(0 0 70px rgba(255, 182, 0, 0.6))
      drop-shadow(0 0 100px rgba(255, 140, 0, 0.3));
  }
  100% {
    opacity: 0.9;
    transform: scale(1) rotate(0deg);
    filter: 
      drop-shadow(0 0 35px rgba(255, 215, 0, 0.9))
      drop-shadow(0 0 70px rgba(255, 182, 0, 0.6))
      drop-shadow(0 0 100px rgba(255, 140, 0, 0.3));
  }
}

@keyframes haloEnterOuter {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}

/* 光晕退出动画 */
.god-image-halo.exit-halo::before {
  animation: haloExit 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.god-image-halo.exit-halo::after {
  animation: haloExitOuter 1.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes haloExit {
  0% {
    opacity: 0.9;
    transform: scale(1) rotate(0deg);
    filter: 
      drop-shadow(0 0 35px rgba(255, 215, 0, 0.9))
      drop-shadow(0 0 70px rgba(255, 182, 0, 0.6))
      drop-shadow(0 0 100px rgba(255, 140, 0, 0.3));
  }
  30% {
    opacity: 0.7;
    transform: scale(1.15) rotate(2deg);
    filter: 
      drop-shadow(0 0 45px rgba(255, 215, 0, 0.7))
      drop-shadow(0 0 85px rgba(255, 182, 0, 0.4))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.2));
  }
  70% {
    opacity: 0.3;
    transform: scale(1.3) rotate(5deg);
    filter: 
      drop-shadow(0 0 55px rgba(255, 215, 0, 0.5))
      drop-shadow(0 0 100px rgba(255, 182, 0, 0.3))
      drop-shadow(0 0 140px rgba(255, 140, 0, 0.15));
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(8deg);
    filter: 
      drop-shadow(0 0 70px rgba(255, 215, 0, 0.2))
      drop-shadow(0 0 130px rgba(255, 182, 0, 0.1))
      drop-shadow(0 0 160px rgba(255, 140, 0, 0.05));
  }
}

@keyframes haloExitOuter {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
} 

/* 符箓飘出效果样式 */
.fu-scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
  overflow: hidden;
}

.fu-scroll {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  width: 240px;
  min-height: 140px;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", serif;
  z-index: 10003;
  animation: fuScrollFloat 3s ease-in-out forwards;
  animation-fill-mode: forwards;
  background: url('../assets/juanzhou.png') center / cover no-repeat;
  border: none;
}

/* 手机端符箓模块位置调整 - 向上移动100px */
@media (max-width: 768px) {
  .fu-scroll {
    transform: translate(-50%, calc(-50% - 100px)) scale(0.1);
  }
  
  .fu-scroll.animate {
    transform: translate(-50%, calc(-50% - 100px)) scale(1);
  }
}

@media (max-width: 480px) {
  .fu-scroll {
    transform: translate(-50%, calc(-50% - 100px)) scale(0.1);
  }
  
  .fu-scroll.animate {
    transform: translate(-50%, calc(-50% - 100px)) scale(1);
  }
}

.fu-decoration {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fu-message {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 15px;
  word-break: break-word;
  max-width: 180px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-weight: 600;
}

/* 符箓粒子样式 */
.fu-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  background: radial-gradient(circle, #ffff00, #ffd700);
  border: 2px solid #ffb400;
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
}

/* 不同分类的符箓粒子样式 - 统一为黄色 */
.fu-scroll-container .fu-fu .fu-particle {
  background: radial-gradient(circle, #ffff00, #ffd700);
  border-color: #ffb400;
}

.fu-scroll-container .fu-lu .fu-particle {
  background: radial-gradient(circle, #ffff00, #ffd700);
  border-color: #ffb400;
}

.fu-scroll-container .fu-shou .fu-particle {
  background: radial-gradient(circle, #ffff00, #ffd700);
  border-color: #ffb400;
}

.fu-scroll-container .fu-xi .fu-particle {
  background: radial-gradient(circle, #ffff00, #ffd700);
  border-color: #ffb400;
}

.fu-scroll-container .fu-cai .fu-particle {
  background: radial-gradient(circle, #ffff00, #ffd700);
  border-color: #ffb400;
}

@keyframes fuScrollFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) rotate(-8deg);
    filter: blur(2px);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05) rotate(-2deg);
    filter: blur(0px);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(0px);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

/* 手机端符箓动画位置调整 */
@media (max-width: 768px) {
  @keyframes fuScrollFloat {
    0% {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 100px)) scale(0.1) rotate(-8deg);
      filter: blur(2px);
    }
    15% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1.05) rotate(-2deg);
      filter: blur(0px);
    }
    30% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
      filter: blur(0px);
    }
    70% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
      filter: blur(0px);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
      filter: blur(0px);
    }
  }
}

@media (max-width: 480px) {
  @keyframes fuScrollFloat {
    0% {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 100px)) scale(0.1) rotate(-8deg);
      filter: blur(2px);
    }
    15% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1.05) rotate(-2deg);
      filter: blur(0px);
    }
    30% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
      filter: blur(0px);
    }
    70% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
      filter: blur(0px);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
      filter: blur(0px);
    }
  }
}

/* 符箓样式变体 */
.fu-scroll.fu-fu {
  background: url('../assets/juanzhou.png') center / cover no-repeat;
  border-color: #c0392b;
  color: #fff;
}

.fu-scroll.fu-lu {
  background: url('../assets/juanzhou.png') center / cover no-repeat;
  border-color: #d68910;
  color: #fff;
}

.fu-scroll.fu-shou {
  background: url('../assets/juanzhou.png') center / cover no-repeat;
  border-color: #229954;
  color: #fff;
}

.fu-scroll.fu-xi {
  background: url('../assets/juanzhou.png') center / cover no-repeat;
  border-color: #c2185b;
  color: #fff;
}

.fu-scroll.fu-cai {
  background: url('../assets/juanzhou.png') center / cover no-repeat;
  border-color: #d4ac0f;
  color: #8b4513;
}

/* 符箓装饰增强效果 */
.fu-decoration::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: none;
  border-radius: 50%;
  z-index: -1;
}

/* 符箓文字阴影效果 */
.fu-message {
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.5),
    0 0 10px rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* 幕布显示时符箓文字的增强效果 */
.blessing-overlay.show ~ .fu-scroll-container .fu-message {
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.7),
    0 0 15px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(255, 215, 0, 0.4);
  font-weight: 700;
  font-size: 18px;
}

/* 符箓卷轴效果增强 */
.fu-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  border-radius: 15px;
  pointer-events: none;
}

/* 符箓飘出时的光晕效果 */
.fu-scroll {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

/* 幕布显示时符箓的增强效果 */
.blessing-overlay.show ~ .fu-scroll-container .fu-scroll {
  filter: 
    drop-shadow(0 0 25px rgba(255, 215, 0, 0.5))
    drop-shadow(0 0 50px rgba(255, 184, 0, 0.3))
    drop-shadow(0 0 75px rgba(255, 215, 0, 0.2));
  transform: translate(-50%, -50%) scale(1.05);
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.3),
    0 0 50px rgba(255, 215, 0, 0.2);
}

/* 幕布显示时符箓容器的背景增强 */
.blessing-overlay.show ~ .fu-scroll-container {
  background: radial-gradient(circle at center, 
    rgba(255, 215, 0, 0.05) 0%, 
    transparent 70%);
}

/* 符箓进入动画时的特殊效果 */
.fu-scroll.enter-halo {
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
}

/* 幕布显示时符箓装饰的增强效果 */
.blessing-overlay.show ~ .fu-scroll-container .fu-decoration {
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* 不同分类的符箓装饰元素样式 */
.fu-scroll.fu-fu .fu-decoration {
  background: #c0392b;
  color: #fff;
}

.fu-scroll.fu-lu .fu-decoration {
  background: #d68910;
  color: #fff;
}

.fu-scroll.fu-shou .fu-decoration {
  background: #229954;
  color: #fff;
}

.fu-scroll.fu-xi .fu-decoration {
  background: #c2185b;
  color: #fff;
}

.fu-scroll.fu-cai .fu-decoration {
  background: #d4ac0f;
  color: #8b4513;
} 

/* 符箓进入动画状态 */
.fu-scroll.enter-halo {
  animation: fuScrollFloat 3s ease-in-out forwards;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
}

/* 确保进入动画完成后保持最终状态 */
.fu-scroll.enter-halo.animation-complete {
  animation: none;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
  filter: blur(0px);
}

/* 手机端符箓停留状态位置调整 */
@media (max-width: 768px) {
  .fu-scroll.enter-halo.animation-complete {
    transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
  }
}

@media (max-width: 480px) {
  .fu-scroll.enter-halo.animation-complete {
    transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg);
  }
}

/* 符箓退出动画状态 */
.fu-scroll.exit-halo {
  animation: fuScrollExit 1.5s ease-in forwards;
  /* 保持进入动画的最终状态，避免突然重置 */
  animation-fill-mode: forwards;
}

@keyframes fuScrollExit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) translateY(0px);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) rotate(10deg) translateY(-80px);
    filter: blur(2px);
  }
}

/* 手机端符箓退出动画位置调整 */
@media (max-width: 768px) {
  @keyframes fuScrollExit {
    0% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg) translateY(0px);
      filter: blur(0px);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 100px)) scale(0.6) rotate(10deg) translateY(-80px);
      filter: blur(2px);
    }
  }
}

@media (max-width: 480px) {
  @keyframes fuScrollExit {
    0% {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 100px)) scale(1) rotate(0deg) translateY(0px);
      filter: blur(0px);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 100px)) scale(0.6) rotate(10deg) translateY(-80px);
      filter: blur(2px);
    }
  }
}

/* 底部区域样式 */
.site-footer {
  background: linear-gradient(135deg, var(--red-600), var(--red-400));
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(45deg, var(--gold-500), var(--gold-600), var(--gold-500));
  opacity: 0.3;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 0 10px;
}

.footer-section:first-child {
  flex: 1.2;
}

.footer-section:last-child {
  flex: 0.8;
}

.footer-section h3 {
  color: var(--gold-500);
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold-500);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gold-500);
  color: var(--red-600);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  opacity: 0.8;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--gold-500);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* 主要内容区域样式 */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 20px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .footer-content {
    gap: 15px;
  }
  
  .footer-section {
    min-width: 180px;
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-section {
    width: 100%;
    text-align: center;
    min-width: auto;
    max-width: none;
    flex: none;
  }
  
  .site-footer {
    padding: 30px 0 15px;
    margin-top: 40px;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* 消息提示动画样式 */
.message-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-toast.show {
  transform: translateX(0);
}

.message-toast.success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.message-toast.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.message-toast.info {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.message-toast .message-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-toast .message-icon {
  font-size: 18px;
}

.message-toast .message-text {
  font-size: 14px;
}

/* 加载状态样式 */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 按钮加载状态 */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 1s ease-in-out infinite;
}

/* 祈福动画透明幕布样式 */
.blessing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.15), 
    rgba(255, 184, 0, 0.12), 
    rgba(255, 215, 0, 0.08)
  );
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}

.blessing-overlay.show {
  opacity: 1;
  visibility: visible;
}

.blessing-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 幕布内容区域的金色装饰 */
.blessing-overlay-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 0.1) 0%, 
    rgba(255, 184, 0, 0.05) 50%, 
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: goldenPulse 3s ease-in-out infinite;
}

.blessing-overlay-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 184, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* 金色脉冲动画 */
@keyframes goldenPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* 幕布显示时的页面背景调整 */
.blessing-overlay.show ~ * {
  filter: brightness(1.02) saturate(1.1) contrast(1.05);
}

/* 幕布显示时的动画层调整 */
.blessing-overlay.show ~ #coinLayer,
.blessing-overlay.show ~ #incenseLayer {
  z-index: 10000;
}

/* 确保符箓动画显示在幕布上方 */
.blessing-overlay.show ~ .fu-scroll,
.blessing-overlay.show ~ .fu-particle {
  z-index: 10001;
}

/* 幕布显示时，所有祈福相关动画都应该在最上层 */
.blessing-overlay.show ~ *[class*="fu"],
.blessing-overlay.show ~ *[class*="blessing"],
.blessing-overlay.show ~ *[class*="incense"],
.blessing-overlay.show ~ *[class*="coin"] {
  z-index: 10001;
}

/* 幕布显示时，神祇光晕效果显示在最上层 */
.blessing-overlay.show ~ .god-image-halo {
  z-index: 10004;
}

.blessing-overlay.show ~ .god-image-halo::before,
.blessing-overlay.show ~ .god-image-halo::after {
  z-index: 10004;
}

/* 幕布显示时，神祇图片本身也要显示在幕布上方 */
.blessing-overlay.show ~ .god-image {
  z-index: 10003;
}

/* 幕布显示时神祇光晕的增强效果 */
.blessing-overlay.show ~ .god-image-halo.active {
  filter: 
    drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
    drop-shadow(0 0 60px rgba(255, 182, 0, 0.6))
    drop-shadow(0 0 90px rgba(255, 140, 0, 0.4));
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.blessing-overlay.show ~ .god-image-halo.enter-halo {
  filter: 
    drop-shadow(0 0 25px rgba(255, 215, 0, 0.7))
    drop-shadow(0 0 50px rgba(255, 182, 0, 0.5))
    drop-shadow(0 0 75px rgba(255, 140, 0, 0.3));
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* 幕布显示时神祇光晕进入动画的增强 */
.blessing-overlay.show ~ .god-image-halo.enter-halo::before {
  animation: enhancedHaloEnter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.blessing-overlay.show ~ .god-image-halo.enter-halo::after {
  animation: enhancedHaloEnterOuter 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes enhancedHaloEnter {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(-8deg);
    filter: 
      drop-shadow(0 0 10px rgba(255, 215, 0, 0.4))
      drop-shadow(0 0 20px rgba(255, 182, 0, 0.3));
  }
  50% {
    opacity: 0.9;
    transform: scale(0.9) rotate(-3deg);
    filter: 
      drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
      drop-shadow(0 0 60px rgba(255, 182, 0, 0.6))
      drop-shadow(0 0 90px rgba(255, 140, 0, 0.4));
  }
  100% {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
    filter: 
      drop-shadow(0 0 40px rgba(255, 215, 0, 1))
      drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.6));
  }
}

@keyframes enhancedHaloEnterOuter {
  0% {
    opacity: 0;
    transform: scale(0.05);
    filter: blur(2px);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
    filter: blur(1px);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
    filter: blur(0.5px);
  }
}

/* 幕布显示时神祇光晕的额外发光效果 */
.blessing-overlay.show ~ .god-image-halo.active::before {
  filter: 
    drop-shadow(0 0 40px rgba(255, 215, 0, 1))
    drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
    drop-shadow(0 0 120px rgba(255, 140, 0, 0.6));
}

.blessing-overlay.show ~ .god-image-halo.active::after {
  filter: 
    drop-shadow(0 0 50px rgba(255, 215, 0, 0.6))
    drop-shadow(0 0 100px rgba(255, 182, 0, 0.4))
    drop-shadow(0 0 150px rgba(255, 140, 0, 0.2));
}

/* 幕布显示时神祇光晕的脉冲动画增强 */
@keyframes enhancedHaloPulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
    filter: 
      drop-shadow(0 0 40px rgba(255, 215, 0, 1))
      drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.6));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: 
      drop-shadow(0 0 50px rgba(255, 215, 0, 1))
      drop-shadow(0 0 100px rgba(255, 182, 0, 0.9))
      drop-shadow(0 0 150px rgba(255, 140, 0, 0.7));
  }
}

.blessing-overlay.show ~ .god-image-halo.active::before {
  animation: enhancedHaloPulse 2s ease-in-out infinite;
}

/* 幕布显示时外层光晕的增强动画 */
@keyframes enhancedHaloPulseOuter {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
    filter: blur(1px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
    filter: blur(0.5px);
  }
}

.blessing-overlay.show ~ .god-image-halo.active::after {
  animation: enhancedHaloPulseOuter 2.5s ease-in-out infinite;
}

/* 幕布显示时的金色光晕效果 */
.blessing-overlay.show {
  box-shadow: 
    inset 0 0 100px rgba(255, 215, 0, 0.1),
    0 0 50px rgba(255, 215, 0, 0.05);
}

/* 幕布边缘的金色装饰 */
.blessing-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  background: linear-gradient(45deg, 
    rgba(255, 215, 0, 0.3), 
    rgba(255, 184, 0, 0.2), 
    rgba(255, 215, 0, 0.1), 
    rgba(255, 184, 0, 0.2)
  ) border-box;
  -webkit-mask: 
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: 
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blessing-overlay.show::before {
  opacity: 1;
}

/* 金色粒子效果 */
.blessing-overlay .golden-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.golden-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 0.8), 
    rgba(255, 184, 0, 0.6), 
    transparent
  );
  border-radius: 50%;
  animation: floatParticle 6s ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.8;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 0.6;
    transform: translateY(10vh) scale(0.8);
  }
}

/* 增强的光晕动画关键帧 */
@keyframes enhancedHaloPulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
    filter: 
      drop-shadow(0 0 40px rgba(255, 215, 0, 1))
      drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.6));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: 
      drop-shadow(0 0 50px rgba(255, 215, 0, 1))
      drop-shadow(0 0 100px rgba(255, 182, 0, 0.9))
      drop-shadow(0 0 150px rgba(255, 140, 0, 0.7));
  }
}

@keyframes enhancedHaloPulseOuter {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
    filter: blur(1px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
    filter: blur(0.5px);
  }
}

@keyframes enhancedHaloEnter {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(-8deg);
    filter: 
      drop-shadow(0 0 10px rgba(255, 215, 0, 0.4))
      drop-shadow(0 0 20px rgba(255, 182, 0, 0.3));
  }
  50% {
    opacity: 0.9;
    transform: scale(0.9) rotate(-3deg);
    filter: 
      drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
      drop-shadow(0 0 60px rgba(255, 182, 0, 0.6))
      drop-shadow(0 0 90px rgba(255, 140, 0, 0.4));
  }
  100% {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
    filter: 
      drop-shadow(0 0 40px rgba(255, 215, 0, 1))
      drop-shadow(0 0 80px rgba(255, 182, 0, 0.8))
      drop-shadow(0 0 120px rgba(255, 140, 0, 0.6));
  }
}

@keyframes enhancedHaloEnterOuter {
  0% {
    opacity: 0;
    transform: scale(0.05);
    filter: blur(2px);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
    filter: blur(1px);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
    filter: blur(0.5px);
  }
}

/* Success text under incense clouds */
.incense-success-text{
  position:absolute;
  left:50%;
  transform:translate(-50%, 100px);
  bottom:20px;
  width:90%;
  text-align:center;
  font-size:28px;
  font-weight:800;
  color:#b31217;
  text-shadow:0 2px 6px rgba(0,0,0,.15), 0 0 0 #fff;
  z-index:8;
  pointer-events:none;
}
@media (max-width: 768px){
  .incense-success-text{ font-size:22px; }
}