/* ========================================= */
/* 文件：mind-card.css                        */
/* 功能：心声散记 / 星之频段弹窗的全部样式 —— */
/*       磨砂玻璃卡片、心声区与散记区双栏布局、*/
/*       频段声波动画、星星闪烁特效            */
/* ========================================= */

/* =========================================
   ✨✨✨ 星之频段 (Mind Card) ✨✨✨
   ========================================= */
#mind-modal {
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  
  /* 之前打的钉子，保留！ */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overscroll-behavior: none;
  
  /* ✨ 兔咪的新魔法：彻底没收遮罩层的滑动权限！任何拉力都别想穿透它！ */
  touch-action: none; 
}
.mind-card {
  width: 85%; height: 65vh; max-height: 800px;
  background:
    linear-gradient(135deg, rgba(10, 8, 20, 0.75), rgba(5, 5, 12, 0.8)) padding-box,
    linear-gradient(135deg, rgba(255, 179, 122, 0.45), rgba(162, 155, 254, 0.4)) border-box;
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 24px; position: relative;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow:
    2px 2px 10px rgba(255, 179, 122, 0.15),
    -2px -2px 10px rgba(162, 155, 254, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.6);
  animation: mindPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overscroll-behavior: none;
  touch-action: none;
}

.mind-header {
  flex-shrink: 0; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px;
}
.mind-title-group { display: flex; align-items: center; gap: 8px; }
.mind-icon { color: #a29bfe; font-size: 18px; animation: starTwinkle 2s infinite; }
.mind-title-text { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 2px; text-shadow: 0 0 15px rgba(162, 155, 254, 0.6); }
.mind-signal { font-size: 11px; color: #a29bfe; font-family: monospace; background: rgba(162, 155, 254, 0.15); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(162, 155, 254, 0.2); }
.mind-label { font-size: 12px; color: #a29bfe; margin-bottom: 8px; font-weight: 600; letter-spacing: 1px; opacity: 0.8; }

/* 滚动优化：心声部分 */
.voice-section {
  flex: 2; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; /* 顶部对齐 */
  overflow: hidden; 
  padding: 0 10px;
}

.mind-section .mind-label { 
  flex-shrink: 0; 
  margin-top: 5px; 
  margin-bottom: 15px; 
  width: 100%;
  text-align: center;
}

#mind-voice-text {
  margin: 0; width: 100%; flex: 1;
  font-size: 14px; font-weight: 500; 
  color: #fff; line-height: 1.8; 
  font-style: italic; text-align: center; 
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); 
  overflow-y: auto; display: block; white-space: pre-wrap; 
  scrollbar-width: none;
  
  /* 之前的减震海绵，保留！ */
  overscroll-behavior-y: none;
  
  /* ✨ 把滑动特权单独还给心声文字框！ */
  touch-action: pan-y;
}
#mind-voice-text::-webkit-scrollbar { display: none; }

.mind-divider-container { flex-shrink: 0; height: 40px; display: flex; align-items: center; justify-content: center; opacity: 0.9; margin: 5px 0; }
.frequency-wave { display: flex; align-items: center; gap: 5px; height: 100%; }
.frequency-wave span { display: block; width: 4px; height: 10px; background: #a29bfe; border-radius: 4px; animation: waveJump 1.2s infinite ease-in-out; box-shadow: 0 0 10px rgba(162, 155, 254, 0.8); }
.frequency-wave span:nth-child(odd) { animation-duration: 0.8s; background: #6c5ce7; }
.frequency-wave span:nth-child(2n) { animation-duration: 1.1s; }
.frequency-wave span:nth-child(3n) { animation-duration: 1.4s; }
.frequency-wave span:nth-child(4n) { animation-duration: 0.9s; }

.note-section {
  flex: 3; background: rgba(0, 0, 0, 0.25); border-radius: 16px; padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; overflow: hidden;
}
#mind-note-text { 
  flex: 1; font-size: 13px; color: rgba(255, 255, 255, 0.7); 
  line-height: 1.6; overflow-y: auto; white-space: pre-wrap; 
  
  /* 之前的减震海绵，保留！ */
  overscroll-behavior-y: none;
  
  /* ✨ 把滑动特权单独还给散记文字框！ */
  touch-action: pan-y;
}

@keyframes mindPop { 0% { opacity: 0; transform: scale(0.95) translateY(30px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

#mind-rescued-hint {
    font-size: 11px;
    color: rgba(162, 155, 254, 0.5);
    text-align: center;
    margin-top: auto;
    padding-top: 8px;
    font-style: italic;
}
@keyframes starTwinkle { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); text-shadow: 0 0 8px #a29bfe; } }
@keyframes waveJump { 0%, 100% { height: 6px; opacity: 0.5; } 50% { height: 35px; opacity: 1; } }
