
  /* ===== 恐怖灵异氛围全局样式 ===== */
  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;
  }

  /* 阴森闪烁星辰 + 雾气效果 */
  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; }
  }

  /* 测试卡片容器 */
  .soul-test-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
  }

  /* 问题卡片 - 阴森玻璃态 */
  .test-card {
    background: rgba(10, 5, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 36px;
    padding: 28px 24px;
    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;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .question-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }

  .step-indicator {
    background: #5f2f4f;
    color: #e0c0d0;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 40px;
    box-shadow: 0 0 10px #3f1f2f;
    letter-spacing: 1px;
  }

  .question-text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 16px 0 24px;
    color: #e0c0d0;
    text-shadow: 0 2px 5px #000;
  }

  /* 选项列表 */
  .options-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
  }

  .option-btn {
    background: rgba(20, 8, 25, 0.8);
    border: 1.5px solid #6f4f6f;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #d0b0c0;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    width: auto;
    min-width: 140px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 8px rgba(80, 0, 40, 0.3);
  }

  .option-btn:hover {
    border-color: #9f6f8f;
    background: rgba(60, 20, 50, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 0 15px #7f3f5f;
  }

  .option-btn.selected {
    background: #5f2f4f;
    color: #fff0f0;
    border-color: #af7f9f;
    box-shadow: 0 0 15px #9f4f7f;
  }

  /* 导航按钮 */
  .nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    gap: 16px;
  }

  .nav-btn {
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    width: auto;
    min-width: 120px;
  }

  .btn-prev {
    background: transparent;
    border: 1.5px solid #6f4f6f;
    color: #c0a0b0;
  }

  .btn-prev:hover {
    background: rgba(60, 20, 50, 0.5);
  }

  .btn-next, .btn-submit {
    background: linear-gradient(145deg, #5f2f4f, #3f1f2f);
    color: #e0c0d0;
    box-shadow: 0 0 15px #5f1f3f;
    border: 1px solid #9f6f8f;
  }

  .btn-next:hover, .btn-submit:hover {
    background: linear-gradient(145deg, #7f3f5f, #5f2f4f);
    transform: scale(1.02);
  }

  .btn-next:disabled, .btn-submit:disabled {
    background: #2a1a2a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
  }

  /* 结果弹窗 - 更阴森 */
  .result-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
  }

  .result-card {
    max-width: 420px;
    width: 100%;
    background: rgba(10, 5, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 40px;
    padding: 32px 24px;
    box-shadow: 0 0 40px #5f1f3f, inset 0 0 20px #3f1f2f;
    text-align: center;
    animation: popIn 0.2s ease;
    border: 1px solid #9f6f8f;
  }

  @keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }

  .result-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #af6f9f;
    box-shadow: 0 0 25px #7f3f5f;
    margin: 0 auto 16px;
    display: block;
    background: #1a0f1a;
  }

  .result-title {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #e0c0d0;
    text-shadow: 0 0 15px #7f3f5f;
  }

  .result-subtitle {
    font-size: 16px;
    color: #a08090;
    margin-bottom: 20px;
  }

  .result-description {
    background: rgba(0,0,0,0.3);
    padding: 20px 18px;
    border-radius: 24px;
    margin: 10px 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #d0b0c0;
    border: 1px solid #6f4f6f;
  }

  /* 分享按钮区 */
  .share-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  .share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .share-btn {
    background: rgba(20, 8, 25, 0.8);
    border: 1px solid #6f4f6f;
    border-radius: 60px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e0c0d0 !important;
    text-decoration: none;
  }

  .share-btn:hover {
    background: #5f2f4f;
    border-color: #9f6f8f;
  }

  .copy-link-btn {
    background: #5f2f4f !important;
    color: white !important;
    width: auto;
    min-width: 180px;
    margin: 0 auto;
    justify-content: center;
  }

  .deep-dive-btn {
    background: rgba(60, 20, 40, 0.8) !important;
    border-color: #9f6f8f !important;
    color: #ffd0d0 !important;
    width: auto;
    min-width: 160px;
    margin: 4px auto 0;
    animation: float 2.5s ease-in-out infinite;
    box-shadow: 0 0 15px #7f3f5f;
  }

  .deep-dive-btn:hover {
    background: #7f3f5f !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 25px #af6f9f;
    animation: none;
  }

  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
  }

  .close-modal-btn {
    background: transparent;
    border: 1px solid #6f4f6f;
    color: #c0a0b0 !important;
    width: auto;
    min-width: 140px;
    margin: 4px auto 0;
    padding: 10px 24px;
  }

  .hidden {
    display: none !important;
  }

  .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: #af6f9f;
    animation: spin 1s infinite;
    margin-right: 8px;
    vertical-align: middle;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  @media (max-width: 480px) {
  .test-card { padding: 20px 16px; }
  .question-text { font-size: 19px; }
  .option-btn { padding: 12px 18px; }
  
  /* 移动端弹窗适配 */
  .result-modal {
    align-items: flex-end;      /* 弹窗靠底部对齐，方便单手操作 */
    padding: 12px;
  }
  .result-card {
    max-height: 85vh;           /* 限制最大高度为视口高度的85% */
    overflow-y: auto;           /* 超出时可滚动 */
    border-radius: 36px;
    margin-bottom: 10px;
    padding: 24px 18px;
  }
  .result-avatar {
    width: 100px;
    height: 100px;
  }
  .result-title {
    font-size: 26px;
  }
  .result-description {
    max-height: 200px;          /* 描述区域独立滚动 */
    overflow-y: auto;
    padding: 16px 14px;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 16px;
  }
  .share-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .copy-link-btn {
    min-width: 160px;
  }
  .deep-dive-btn {
    min-width: 140px;
  }
  .close-modal-btn {
    min-width: 120px;
    padding: 8px 20px;
  }
  .ghost { font-size: 3rem; }

  }