/* ============================================================
   霓虹雨夜 · 最终可读版（含外层霓虹 + 居中标题 + 清晰代码）
   适配所有 <pre> 代码块（无论有无语言标识）
   ============================================================ */

/* ---------- <aus> 外层：呼吸霓虹边框（粉色系） ---------- */
aus {
  display: block !important;
  background: #0a0a12 !important;
  padding: 20px 24px !important;
  border-radius: 16px !important;
  border: 2px solid #ff00c8 !important;
  box-shadow:
    0 0 8px #ff00c8,
    0 0 25px #ff00c8,
    0 0 50px #ff00c866,
    inset 0 0 15px #ff00c833 !important;
  animation: neonBorderPulse 2.2s ease-in-out infinite alternate !important;
  color: #e0e0ff;
}

@keyframes neonBorderPulse {
  0% {
    box-shadow:
      0 0 6px #ff00c8,
      0 0 18px #ff00c8,
      0 0 40px #ff00c866,
      inset 0 0 10px #ff00c833 !important;
    border-color: #ff00c8 !important;
  }
  100% {
    box-shadow:
      0 0 14px #ff66e0,
      0 0 40px #ff66e0,
      0 0 80px #ff66e066,
      inset 0 0 25px #ff66e044 !important;
    border-color: #ff66e0 !important;
  }
}

/* ============================================================
   通用雨夜背景（所有容器共用纹理 + 飘雨动画）
   ============================================================ */
.didian,
.beijing,
.jbxx,
.npc-card,
.npc-details,
.aa-panel,
details,
pre,
code {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(180, 200, 255, 0.06) 0px,
      rgba(180, 200, 255, 0.06) 2px,
      transparent 2px,
      transparent 6px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(200, 220, 255, 0.04) 0px,
      rgba(200, 220, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(ellipse at bottom, rgba(30, 60, 120, 0.3) 0%, transparent 70%);
  background-blend-mode: overlay, overlay, normal;
  background-size: 300% 300%, 200% 200%, 100% 100%;
  background-position: 0% 0%, 0% 0%, 0% 0%;
  animation: rainFall 4s linear infinite !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  color: #d0d8f0;
}

@keyframes rainFall {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%; }
  100% { background-position: 30% 80%, -20% 60%, 0% 0%; }
}

/* ============================================================
   各容器独立颜色主题（边框 + 背景 + 阴影 + 文字高光）
   ============================================================ */

/* ----- 时间地点：冰蓝 ----- */
.didian {
  background-color: rgba(14, 165, 233, 0.12) !important;
  border-bottom: 2px solid #0ea5e9 !important;
  padding: 8px 16px !important;
  margin-bottom: 12px !important;
  border-radius: 8px !important;
  text-shadow: 0 0 12px rgba(14, 165, 233, 0.4) !important;
  color: #b8e2ff !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15) !important;
}

/* ----- 主角状态大卡片：紫罗兰 ----- */
.beijing {
  background-color: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid #8b5cf6 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.15), 0 4px 20px rgba(139, 92, 246, 0.2) !important;
  margin-bottom: 10px !important;
}

/* ----- 主角基本信息：深紫（比外层更深） ----- */
.jbxx {
  background-color: rgba(124, 58, 237, 0.20) !important;
  border-left: 4px solid #7c3aed !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-top: 8px !important;
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.1) !important;
}

/* ----- 苏雨萌卡片：粉红 ----- */
.npc-card {
  background-color: rgba(236, 72, 153, 0.12) !important;
  border: 1px solid #ec4899 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.15), 0 4px 20px rgba(236, 72, 153, 0.2) !important;
  margin-bottom: 10px !important;
}

/* ----- 苏雨萌详情：浅粉 ----- */
.npc-details {
  background-color: rgba(244, 114, 182, 0.15) !important;
  border-left: 4px solid #f472b6 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-top: 8px !important;
  box-shadow: inset 0 0 20px rgba(244, 114, 182, 0.1) !important;
}

/* ----- 数值/系统面板：青碧 ----- */
.aa-panel {
  background-color: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid #06b6d4 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: inset 0 0 40px rgba(6, 182, 212, 0.1), 0 0 30px rgba(6, 182, 212, 0.1) !important;
}

/* ----- 折叠框 <details> 整体：紫色边框 ----- */
details {
  background: rgba(10, 10, 20, 0.7) !important;
  border-left: 4px solid #a855f7 !important;
  padding: 8px 14px !important;
  margin-top: 12px !important;
  border-radius: 10px !important;
  backdrop-filter: blur(2px) !important;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1) !important;
}

/* ===== 折叠标题 <summary>：居中 + 霓虹闪烁 ===== */
summary {
  display: block !important;
  text-align: center !important;
  font-weight: bold !important;
  color: #d8b4fe !important;
  cursor: pointer !important;
  padding: 4px 0 !important;
  text-shadow: 0 0 6px #c084fc, 0 0 12px #a855f7, 0 0 24px #a855f766 !important;
  animation: textNeonFlicker 1.8s ease-in-out infinite alternate !important;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

@keyframes textNeonFlicker {
  0%   { text-shadow: 0 0 4px #c084fc, 0 0 10px #a855f7, 0 0 20px #a855f766; color: #d8b4fe; opacity: 0.9; }
  50%  { text-shadow: 0 0 10px #e879f9, 0 0 25px #d946ef, 0 0 50px #d946ef88; color: #f0abfc; opacity: 1; }
  100% { text-shadow: 0 0 6px #c084fc, 0 0 18px #a855f7, 0 0 36px #a855f766; color: #d8b4fe; opacity: 0.95; }
}

/* ============================================================
   ABCD 代码框 —— 各自独立霓虹色 + 超高亮度文字（确保清晰）
   适应所有 <pre> 代码块（无论有无语言标识）
   ============================================================ */
.aa-panel pre {
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.95rem !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  margin: 8px 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(2px) !important;
  border-width: 2px !important;
  border-style: solid !important;
  transition: all 0.3s ease !important;
}

/* A —— 粉红霓虹 + 极亮白粉文字 */
.aa-panel pre:nth-of-type(1) {
  border-color: #ec4899 !important;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4), inset 0 0 20px rgba(236, 72, 153, 0.1) !important;
  color: #fff5f8 !important;
  text-shadow: 0 0 12px #ec4899, 0 0 24px #ec489988 !important;
  animation: neonPulseA 2s ease-in-out infinite alternate !important;
}
@keyframes neonPulseA {
  0% { box-shadow: 0 0 10px #ec4899, 0 0 20px #ec489966, inset 0 0 10px #ec489933; border-color: #ec4899; }
  100% { box-shadow: 0 0 30px #f472b6, 0 0 60px #ec4899aa, inset 0 0 25px #ec489966; border-color: #f472b6; }
}

/* B —— 青蓝霓虹 + 极亮白青文字 */
.aa-panel pre:nth-of-type(2) {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), inset 0 0 20px rgba(6, 182, 212, 0.1) !important;
  color: #f0feff !important;
  text-shadow: 0 0 12px #06b6d4, 0 0 24px #06b6d488 !important;
  animation: neonPulseB 2.2s ease-in-out infinite alternate !important;
}
@keyframes neonPulseB {
  0% { box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d466, inset 0 0 10px #06b6d433; border-color: #06b6d4; }
  100% { box-shadow: 0 0 30px #22d3ee, 0 0 60px #06b6d4aa, inset 0 0 25px #06b6d466; border-color: #22d3ee; }
}

/* C —— 紫色霓虹 + 极亮白紫文字 */
.aa-panel pre:nth-of-type(3) {
  border-color: #a855f7 !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(168, 85, 247, 0.1) !important;
  color: #f8f0ff !important;
  text-shadow: 0 0 12px #a855f7, 0 0 24px #a855f788 !important;
  animation: neonPulseC 1.8s ease-in-out infinite alternate !important;
}
@keyframes neonPulseC {
  0% { box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f766, inset 0 0 10px #a855f733; border-color: #a855f7; }
  100% { box-shadow: 0 0 30px #c084fc, 0 0 60px #a855f7aa, inset 0 0 25px #a855f766; border-color: #c084fc; }
}

/* D —— 橙色霓虹 + 极亮白橙文字 */
.aa-panel pre:nth-of-type(4) {
  border-color: #f97316 !important;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4), inset 0 0 20px rgba(249, 115, 22, 0.1) !important;
  color: #fff6ed !important;
  text-shadow: 0 0 12px #f97316, 0 0 24px #f9731688 !important;
  animation: neonPulseD 2.4s ease-in-out infinite alternate !important;
}
@keyframes neonPulseD {
  0% { box-shadow: 0 0 10px #f97316, 0 0 20px #f9731666, inset 0 0 10px #f9731633; border-color: #f97316; }
  100% { box-shadow: 0 0 30px #fb923c, 0 0 60px #f97316aa, inset 0 0 25px #f9731666; border-color: #fb923c; }
}

/* 悬停效果：所有代码框轻微放大 */
.aa-panel pre:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

/* ============================================================
   通用文本样式（列表、标题等）
   ============================================================ */
ul {
  padding-left: 20px !important;
  margin: 6px 0 !important;
}
li {
  line-height: 1.7 !important;
  color: #d0d8f0 !important;
  text-shadow: 0 0 4px rgba(255,255,255,0.05) !important;
}
.name,
.npc-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e0e8ff !important;
  text-shadow: 0 0 12px rgba(130, 170, 255, 0.3) !important;
  margin-bottom: 6px !important;
}
.col-title {
  font-weight: 600;
  color: #b0c8ff !important;
  text-shadow: 0 0 8px rgba(80, 120, 255, 0.2) !important;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

/* 底部装饰光晕（每个 aa-panel 底部） */
.aa-panel::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.3), transparent);
  margin-top: 12px;
  opacity: 0.6;
}
/* ============================================================
   对话气泡 —— 用户 & 苏雨萌 霓虹区分
   ============================================================ */

/* ----- 用户对话（冰蓝/紫蓝调） ----- */
.say-u {
  background: rgba(14, 165, 233, 0.10) !important;
  border: 1.5px solid #38bdf8 !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  margin: 6px 0 !important;
  color: #e0f2fe !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15), inset 0 0 15px rgba(56, 189, 248, 0.05) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  transition: all 0.3s ease !important;
  /* 动态呼吸光晕 */
  animation: sayUPulse 3s ease-in-out infinite alternate !important;
}

@keyframes sayUPulse {
  0%   { box-shadow: 0 0 10px rgba(56, 189, 248, 0.1), inset 0 0 10px rgba(56, 189, 248, 0.02); border-color: #38bdf8; }
  100% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.3), inset 0 0 25px rgba(56, 189, 248, 0.1); border-color: #7dd3fc; }
}

/* ----- 苏雨萌对话（粉红调） ----- */
.say-c {
  background: rgba(236, 72, 153, 0.10) !important;
  border: 1.5px solid #f472b6 !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  margin: 6px 0 !important;
  color: #fce7f3 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.4) !important;
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.15), inset 0 0 15px rgba(244, 114, 182, 0.05) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  transition: all 0.3s ease !important;
  /* 动态呼吸光晕 */
  animation: sayCPulse 3s ease-in-out infinite alternate !important;
}

@keyframes sayCPulse {
  0%   { box-shadow: 0 0 10px rgba(244, 114, 182, 0.1), inset 0 0 10px rgba(244, 114, 182, 0.02); border-color: #f472b6; }
  100% { box-shadow: 0 0 25px rgba(244, 114, 182, 0.3), inset 0 0 25px rgba(244, 114, 182, 0.1); border-color: #f9a8d4; }
}

/* 可选：在对话前加角色标识小标签（如果喜欢，可取消注释） */
/* .say-u::before {
  content: "🧑 ";
  font-size: 1rem;
}
.say-c::before {
  content: "👩 ";
  font-size: 1rem;
} */