/* ===== 恐怖灵异氛围全局样式 ===== */
body {
  margin: 0;
  background: radial-gradient(circle at 30% 10%, #1a0f1a, #0a050a, #030103);
  min-height: 100vh;
  font-family: 'Poppins', 'Noto Serif SC', cursive;
  position: relative;
  overflow-x: hidden !important;
  width: 100% !important;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(2px 2px at 15% 20%, #6f8f8f, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 85% 70%, #8b3c5f, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 45% 40%, #a0c0c0, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 70% 15%, #b27aff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 10% 85%, #6f8f8f, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90% 50%, #e0c4ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 30% 90%, #8b3c5f, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60% 30%, #4a5a5a, rgba(0,0,0,0));
  background-repeat: no-repeat;
  opacity: 0.6;
  animation: twinkle 4s infinite alternate, fog 8s infinite ease-in-out;
}
@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}
@keyframes fog {
  0%,100% { backdrop-filter: blur(0px); }
  50% { backdrop-filter: blur(2px); }
}
.ghost {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  font-size: 4rem;
  animation: floatGhost 12s infinite ease-in-out;
  filter: drop-shadow(0 0 8px #5f9f9f);
}
.ghost1 { top: 15%; left: 5%; animation-duration: 14s; }
.ghost2 { top: 60%; right: 8%; animation-duration: 18s; animation-delay: -3s; }
.ghost3 { bottom: 20%; left: 15%; animation-duration: 16s; animation-delay: -6s; }
.ghost4 { top: 40%; right: 20%; animation-duration: 20s; animation-delay: -9s; opacity: 0.2; font-size: 5rem; }
@keyframes floatGhost {
  0% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-20px) translateX(15px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(15px) translateX(10px); }
  100% { transform: translateY(0px) translateX(0px); }
}
.soul-spark {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #a0d0d0;
  border-radius: 50%;
  box-shadow: 0 0 15px #5f9f9f;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  animation: sparkFloat 8s infinite alternate;
}
.spark1 { top: 30%; left: 20%; }
.spark2 { bottom: 40%; right: 15%; animation-duration: 10s; }
.spark3 { top: 70%; left: 80%; animation-duration: 12s; }
.spark4 { bottom: 10%; left: 40%; animation-duration: 9s; }
@keyframes sparkFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.2; }
  100% { transform: translateY(-30px) scale(1.5); opacity: 0.7; }
}

/* ===== 主容器 ===== */
.deep-dive-container {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative;
  z-index: 10;
  display: block;
  box-sizing: border-box;
  width: 100%;
}

/* ===== 返回链接 ===== */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  margin-left: 0;
  margin-right: auto;
  color: #a08090;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  width: auto;
}

/* ===== 所有卡片通用样式 ===== */
.horror-card,
.dreamcore-card,
.rule-card,
.soul-debt-card,
.poster-card {
  background: rgba(10, 5, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 28px 24px;
  margin-bottom: 24px;
  margin-left: auto !important;
  margin-right: auto !important;
  box-shadow: 0 0 30px rgba(80, 0, 40, 0.5), inset 0 0 15px rgba(100, 0, 80, 0.3);
  border: 1px solid #6f4f6f;
  overflow: hidden;
  word-wrap: break-word;
  width: 100% !important;
  max-width: 600px !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
}

/* 卡片标题 */
.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #d9c4ff;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed #5f3f4f;
  padding-bottom: 12px;
  font-family: 'Poppins', 'Noto Serif SC', 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}

/* 防止长文本溢出 */
.rule-paper, .voice-message-box, .dreamcore-caption, .horror-stat {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== 底部分享按钮 ===== */
.bottom-share-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    position: static;        /* 取消固定定位 */
    background: transparent; /* 去掉黑色渐变背景 */
    padding: 0;
    pointer-events: auto;
}
.bottom-share-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: rgba(60, 20, 40, 0.9); /* 保持按钮自身背景 */
    border: 1px solid #af6f9f;
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px) {
  .ghost { font-size: 3rem; }
  .horror-card, .dreamcore-card, .rule-card, .soul-debt-card {
    padding: 20px 16px;
    max-width: 100% !important;
  }
  .deep-dive-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bottom-share-wrapper {
    padding: 10px 16px 16px;
  }
}