/* ============================================================
   《锈城·猎犬》injectStyles 正式版 v1.0
   视觉概念：铁锈蚀刻（OPUS）× 肉体培养皿H态（Gemini）× 污染黄绿渐变
   结构：元素战争前置状态栏（status-block）× 扁平折叠块（.rsc-）
   配色：poll-1铁锈橙 → poll-2黄铜金 → poll-3橄榄锈绿 → poll-4毒绿；H=亮粉
   全部规则 !important 保底；.rsc-/status- 前缀防平台冲突
   ============================================================ */

/* ══════════════ 隐藏思维链 ══════════════ */
.rsc think,
.rsc [class*="CoT"],
.rsc [class*="chain"],
.rsc-cot,
details.rsc-think {
  display: none !important;
}

/* ══════════════ 全局容器 ══════════════ */
.rsc {
  background: #1A1412 !important;
  color: #D4C4A8 !important;
  font-family: 'Courier New', 'Noto Sans SC', 'Microsoft YaHei', monospace !important;
  padding: 12px !important;
  position: relative !important;
}
.rsc p {
  color: #D4C4A8 !important;
  line-height: 1.85 !important;
  margin: 10px 0 !important;
  text-shadow: 0 0 2px rgba(196,90,26,0.15) !important;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(196,90,26,0.03) 3px, rgba(196,90,26,0.03) 4px
  ) !important;
  padding: 6px 10px !important;
}
/* 消息气泡暗底兜底（平台层） */
.rsc, .rsc * {
  border-radius: 0 !important;
}

/* ══════════════ 平台层兜底（必须，否则文本区白底/文字系统色） ══════════════ */
/* 气泡外层：AI回复暗底 */
[class*="is-assistant"] {
  background-color: #1A1412 !important;
  color: #D4C4A8 !important;
  border: 1px solid rgba(196,90,26,0.25) !important;
  border-radius: 10px !important;
  box-shadow: 0 0 24px rgba(196,90,26,0.08) !important;
}
/* 气泡外层：用户消息暗底（微区分） */
[class*="is-user"] {
  background-color: #14100E !important;
  color: #C9B69C !important;
  border: 1px solid rgba(201,164,30,0.2) !important;
  border-radius: 10px !important;
}
/* 渲染层：透明化 + 系统文字色 */
.rili-markdown-renderer {
  background-color: transparent !important;
  color: #D4C4A8 !important;
}
.rili-markdown-renderer p,
.rili-markdown-renderer span,
.rili-markdown-renderer li,
.rili-markdown-renderer h1,
.rili-markdown-renderer h2,
.rili-markdown-renderer h3,
.rili-markdown-renderer h4,
.rili-markdown-renderer strong,
.rili-markdown-renderer em,
.rili-markdown-renderer div {
  color: #D4C4A8 !important;
  background-color: transparent !important;
}

/* ══════════════ 污染档位变量 ══════════════ */
:root {
  --poll1: #C45A1A; --poll1-dim: rgba(196,90,26,0.35); --poll1-bg: rgba(196,90,26,0.12); --poll1-txt: #E8C040;
  --poll2: #C9A41E; --poll2-dim: rgba(201,164,30,0.35); --poll2-bg: rgba(201,164,30,0.12);
  --poll3: #8FA832; --poll3-dim: rgba(143,168,50,0.35); --poll3-bg: rgba(143,168,50,0.12); --poll3-txt: #C8E878;
  --poll4: #28A85C; --poll4-dim: rgba(40,168,92,0.35); --poll4-bg: rgba(40,168,92,0.12); --poll4-txt: #A0F8C8;
}

/* ══════════════ 前置状态栏 status-block ══════════════ */
.status-block {
  display: block !important;
  margin: 1.5rem 0 !important;
  background: rgba(20,14,10,0.95) !important;
  border: 2px solid var(--poll1-dim) !important;
  border-radius: 0 !important;
  box-shadow: 0 0 20px var(--poll1-dim), inset 0 0 25px rgba(196,90,26,0.05) !important;
  font-family: 'Courier New', 'Fira Code', monospace !important;
  font-size: 0.76rem !important;
  position: relative !important;
  overflow: visible !important;
  transition: all 0.6s ease !important;
}
/* L形角标 */
.status-block::before {
  content: "" !important;
  position: absolute !important; top: -2px !important; left: -2px !important;
  width: 18px !important; height: 18px !important;
  z-index: 10 !important; pointer-events: none !important;
  border-top: 2px solid var(--poll1) !important;
  border-left: 2px solid var(--poll1) !important;
  filter: drop-shadow(0 0 6px var(--poll1)) !important;
  transition: all 0.6s ease !important;
}
.status-block::after {
  content: "" !important;
  position: absolute !important; bottom: -2px !important; right: -2px !important;
  width: 18px !important; height: 18px !important;
  z-index: 10 !important; pointer-events: none !important;
  border-bottom: 2px solid var(--poll1) !important;
  border-right: 2px solid var(--poll1) !important;
  filter: drop-shadow(0 0 6px var(--poll1)) !important;
  transition: all 0.6s ease !important;
}
/* 状态头：切角+渐变 */
.status-header {
  background: linear-gradient(180deg, rgba(38,26,16,0.95), rgba(26,18,12,0.97)) !important;
  padding: 14px 20px !important;
  font-family: 'Courier New', 'Fira Code', monospace !important;
  font-size: 13px !important;
  color: #9a8a7a !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 10px !important;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px) !important;
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
  border-radius: 0 !important;
}
/* 右上角水印 */
.status-header::before {
  content: "RUST·CITY / 特殊勤务署" !important;
  position: absolute !important; top: 8px !important; right: 14px !important;
  color: rgba(160,120,80,0.35) !important;
  font-size: 9px !important;
  letter-spacing: 2px !important;
  font-family: 'Courier New', 'Fira Code', monospace !important;
  background: none !important;
  text-align: right !important;
}
.status-header .ep-row {
  display: flex !important; align-items: center !important; gap: 8px !important;
  margin: 6px 0 0 0 !important;
}
.status-header .ep-tag {
  color: #c8b8a0 !important;
  letter-spacing: 2px !important;
  font-size: 12px !important;
}
.status-header .tag-row {
  display: flex !important; align-items: center !important; gap: 8px !important;
  margin: 6px 0 0 0 !important;
  flex-wrap: wrap !important;
}
.status-header .time-line {
  margin: 10px 0 0 0 !important;
  color: #9a8a7a !important;
}
.status-header .time-line strong {
  color: #c8b8a0 !important;
}
/* 标签系统 */
.status-header .tag {
  display: inline-block !important;
  padding: 2px 12px !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  font-family: 'Courier New', 'Fira Code', monospace !important;
}
/* 场景/阶段标签——粉（H/欲望标记） */
.status-header .tag-pink {
  background: linear-gradient(135deg, rgba(255,20,147,0.35), rgba(255,20,147,0.15)) !important;
  border: 1px solid rgba(255,20,147,0.4) !important;
  color: #FFFFFF !important;
  text-shadow: 0 0 8px rgba(255,20,147,0.6) !important;
}
/* 状态标签——随污染变色 */
.status-header .tag-poll {
  background: linear-gradient(135deg, var(--poll1-bg), rgba(196,90,26,0.06)) !important;
  border: 1px solid var(--poll1-dim) !important;
  color: var(--poll1) !important;
  text-shadow: 0 0 6px var(--poll1-dim) !important;
  transition: all 0.6s ease !important;
}
/* 任务行 + 扫描线 */
.mission-row {
  background: var(--poll1-bg) !important;
  border-top: 1px solid var(--poll1-dim) !important;
  border-bottom: 1px solid var(--poll1-dim) !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  margin-top: 0 !important;
  font-family: 'Courier New', 'Fira Code', monospace !important;
  font-size: 12.5px !important;
  color: var(--poll1) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.6s ease !important;
}
.mission-row p {
  margin: 0 !important;
  color: var(--poll1) !important;
  transition: color 0.6s ease !important;
}
.mission-row .dual-line {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #c8b8a0 !important;
}
.mission-row::after {
  content: "" !important;
  position: absolute !important; left: 0 !important; right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--poll1), transparent) !important;
  animation: rsc-scanline 4s linear infinite !important;
  transition: background 0.6s ease !important;
}
@keyframes rsc-scanline {
  0% { top: -1px !important; }
  100% { top: 100% !important; }
}

/* ══════════════ 污染档位（前置状态栏+任务行） ══════════════ */
.status-block.poll-2, .mission-row.poll-2 {
  --poll1: #C9A41E; --poll1-dim: rgba(201,164,30,0.35); --poll1-bg: rgba(201,164,30,0.12);
}
.status-block.poll-3, .mission-row.poll-3 {
  --poll1: #8FA832; --poll1-dim: rgba(143,168,50,0.35); --poll1-bg: rgba(143,168,50,0.12);
}
.status-block.poll-4, .mission-row.poll-4 {
  --poll1: #28A85C; --poll1-dim: rgba(40,168,92,0.35); --poll1-bg: rgba(40,168,92,0.12);
}

/* ══════════════ 折叠块（5类统一） ══════════════ */
.rsc-sb, .rsc-mod, .rsc-npc, .rsc-mm, .rsc-opt {
  background:
    repeating-linear-gradient(0deg, rgba(196,90,26,0.04) 0px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #1A1412 0%, #231A14 50%, #1A1412 100%) !important;
  border: 3px solid #C45A1A !important;
  border-radius: 2px !important;
  margin: 14px 0 !important;
  padding: 0 !important;
  position: relative !important;
  box-shadow:
    0 0 25px rgba(196,90,26,0.4),
    0 0 50px rgba(196,90,26,0.15),
    inset 0 0 20px rgba(61,107,79,0.1),
    inset 0 1px 0 rgba(196,90,26,0.2) !important;
  transition: all 0.6s ease !important;
  overflow: visible !important;
}
/* L形烙印角标 */
.rsc-sb::before, .rsc-mod::before, .rsc-npc::before, .rsc-mm::before, .rsc-opt::before {
  content: '' !important;
  position: absolute !important; top: -4px !important; left: -4px !important;
  width: 28px !important; height: 28px !important;
  border-top: 4px solid #C45A1A !important;
  border-left: 4px solid #C45A1A !important;
  pointer-events: none !important;
  z-index: 2 !important;
  filter: drop-shadow(0 0 6px rgba(196,90,26,0.7)) !important;
  transition: all 0.6s ease !important;
}
.rsc-sb::after, .rsc-mod::after, .rsc-npc::after, .rsc-mm::after, .rsc-opt::after {
  content: '' !important;
  position: absolute !important; bottom: -4px !important; right: -4px !important;
  width: 28px !important; height: 28px !important;
  border-bottom: 4px solid #C45A1A !important;
  border-right: 4px solid #C45A1A !important;
  pointer-events: none !important;
  z-index: 2 !important;
  filter: drop-shadow(0 0 6px rgba(196,90,26,0.7)) !important;
  transition: all 0.6s ease !important;
}
/* hover 上浮 */
.rsc-sb:hover, .rsc-mod:hover, .rsc-npc:hover, .rsc-mm:hover, .rsc-opt:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 0 35px rgba(196,90,26,0.6),
    0 0 60px rgba(196,90,26,0.25),
    0 8px 25px rgba(0,0,0,0.5),    inset 0 0 25px rgba(61,107,79,0.15) !important;
}

/* 折叠块内容文字色（防止平台系统色覆盖） */
.rsc-sb, .rsc-mod, .rsc-npc, .rsc-mm, .rsc-opt {
  color: #D4C4A8 !important;
}
.rsc-sb p, .rsc-mod p, .rsc-npc p, .rsc-mm p, .rsc-opt p,
.rsc-sb li, .rsc-mod li, .rsc-npc li, .rsc-mm li, .rsc-opt li,
.rsc-sb span, .rsc-mod span, .rsc-npc span, .rsc-mm span, .rsc-opt span,
.rsc-sb strong, .rsc-mod strong, .rsc-npc strong, .rsc-mm strong, .rsc-opt strong,
.rsc-sb div, .rsc-mod div, .rsc-npc div, .rsc-mm div, .rsc-opt div {
  color: #D4C4A8 !important;
  background-color: transparent !important;
}
/* summary */
.rsc-sb summary, .rsc-mod summary, .rsc-npc summary, .rsc-mm summary, .rsc-opt summary {
  color: #C45A1A !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  padding: 14px 18px !important;
  cursor: pointer !important;
  list-style: none !important;
  text-shadow:
    0 0 10px rgba(196,90,26,0.8),
    0 0 25px rgba(196,90,26,0.4),
    0 0 40px rgba(196,90,26,0.2) !important;
  border-bottom: 1px solid rgba(196,90,26,0.25) !important;
  background: linear-gradient(90deg, rgba(196,90,26,0.08) 0%, transparent 70%) !important;
  user-select: none !important;
  transition: all 0.6s ease !important;
}
.rsc-sb summary::-webkit-details-marker,
.rsc-mod summary::-webkit-details-marker,
.rsc-npc summary::-webkit-details-marker,
.rsc-mm summary::-webkit-details-marker,
.rsc-opt summary::-webkit-details-marker {
  display: none !important;
}

/* ══════════════ 污染档位（折叠块） ══════════════ */
.rsc-sb.poll-2, .rsc-mod.poll-2, .rsc-npc.poll-2, .rsc-mm.poll-2, .rsc-opt.poll-2 {
  border-color: #C9A41E !important;
  box-shadow: 0 0 25px rgba(201,164,30,0.45), 0 0 50px rgba(201,164,30,0.18), inset 0 0 25px rgba(61,107,79,0.2), inset 0 1px 0 rgba(201,164,30,0.25) !important;
}
.rsc-sb.poll-2::before, .rsc-mod.poll-2::before, .rsc-npc.poll-2::before, .rsc-mm.poll-2::before, .rsc-opt.poll-2::before,
.rsc-sb.poll-2::after, .rsc-mod.poll-2::after, .rsc-npc.poll-2::after, .rsc-mm.poll-2::after, .rsc-opt.poll-2::after {
  border-color: #C9A41E !important;
  filter: drop-shadow(0 0 7px rgba(201,164,30,0.8)) !important;
}
.rsc-sb.poll-2 summary, .rsc-mod.poll-2 summary, .rsc-npc.poll-2 summary, .rsc-mm.poll-2 summary, .rsc-opt.poll-2 summary {
  color: #E8C040 !important;
  text-shadow: 0 0 10px rgba(201,164,30,0.9), 0 0 28px rgba(201,164,30,0.5), 0 0 45px rgba(201,164,30,0.25) !important;
  border-bottom-color: rgba(201,164,30,0.35) !important;
  background: linear-gradient(90deg, rgba(201,164,30,0.12) 0%, transparent 70%) !important;
}
.rsc-sb.poll-2:hover, .rsc-mod.poll-2:hover, .rsc-npc.poll-2:hover, .rsc-mm.poll-2:hover, .rsc-opt.poll-2:hover {
  box-shadow: 0 0 40px rgba(201,164,30,0.7), 0 0 65px rgba(201,164,30,0.3), 0 8px 25px rgba(0,0,0,0.5), inset 0 0 30px rgba(61,107,79,0.25) !important;
}

.rsc-sb.poll-3, .rsc-mod.poll-3, .rsc-npc.poll-3, .rsc-mm.poll-3, .rsc-opt.poll-3 {
  border-color: #8FA832 !important;
  background:
    repeating-linear-gradient(0deg, rgba(143,168,50,0.06) 0px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #141A10 0%, #1E2414 50%, #141A10 100%) !important;
  box-shadow: 0 0 28px rgba(143,168,50,0.5), 0 0 55px rgba(143,168,50,0.2), inset 0 0 22px rgba(74,106,42,0.2), inset 0 1px 0 rgba(143,168,50,0.3) !important;
}
.rsc-sb.poll-3::before, .rsc-mod.poll-3::before, .rsc-npc.poll-3::before, .rsc-mm.poll-3::before, .rsc-opt.poll-3::before,
.rsc-sb.poll-3::after, .rsc-mod.poll-3::after, .rsc-npc.poll-3::after, .rsc-mm.poll-3::after, .rsc-opt.poll-3::after {
  border-color: #8FA832 !important;
  filter: drop-shadow(0 0 8px rgba(143,168,50,0.9)) !important;
}
.rsc-sb.poll-3 summary, .rsc-mod.poll-3 summary, .rsc-npc.poll-3 summary, .rsc-mm.poll-3 summary, .rsc-opt.poll-3 summary {
  color: #C8E878 !important;
  text-shadow: 0 0 12px rgba(143,168,50,0.9), 0 0 30px rgba(143,168,50,0.5), 0 0 50px rgba(143,168,50,0.25) !important;
  border-bottom-color: rgba(143,168,50,0.4) !important;
  background: linear-gradient(90deg, rgba(143,168,50,0.15) 0%, transparent 70%) !important;
}
.rsc-sb.poll-3:hover, .rsc-mod.poll-3:hover, .rsc-npc.poll-3:hover, .rsc-mm.poll-3:hover, .rsc-opt.poll-3:hover {
  box-shadow: 0 0 42px rgba(143,168,50,0.75), 0 0 70px rgba(143,168,50,0.35), 0 8px 25px rgba(0,0,0,0.5), inset 0 0 28px rgba(74,106,42,0.3) !important;
}

.rsc-sb.poll-4, .rsc-mod.poll-4, .rsc-npc.poll-4, .rsc-mm.poll-4, .rsc-opt.poll-4 {
  border-color: #28A85C !important;
  background:
    repeating-linear-gradient(0deg, rgba(40,168,92,0.08) 0px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #0A1A12 0%, #0E281A 50%, #0A1A12 100%) !important;
  box-shadow: 0 0 32px rgba(40,168,92,0.55), 0 0 60px rgba(40,168,92,0.25), inset 0 0 25px rgba(26,74,42,0.25), inset 0 1px 0 rgba(40,168,92,0.35) !important;
}
.rsc-sb.poll-4::before, .rsc-mod.poll-4::before, .rsc-npc.poll-4::before, .rsc-mm.poll-4::before, .rsc-opt.poll-4::before,
.rsc-sb.poll-4::after, .rsc-mod.poll-4::after, .rsc-npc.poll-4::after, .rsc-mm.poll-4::after, .rsc-opt.poll-4::after {
  border-color: #28A85C !important;
  filter: drop-shadow(0 0 10px rgba(40,168,92,1)) !important;
}
.rsc-sb.poll-4 summary, .rsc-mod.poll-4 summary, .rsc-npc.poll-4 summary, .rsc-mm.poll-4 summary, .rsc-opt.poll-4 summary {
  color: #A0F8C8 !important;
  text-shadow: 0 0 14px rgba(40,168,92,0.95), 0 0 32px rgba(40,168,92,0.6), 0 0 55px rgba(40,168,92,0.3) !important;
  border-bottom-color: rgba(40,168,92,0.45) !important;
  background: linear-gradient(90deg, rgba(40,168,92,0.2) 0%, transparent 70%) !important;
}
.rsc-sb.poll-4:hover, .rsc-mod.poll-4:hover, .rsc-npc.poll-4:hover, .rsc-mm.poll-4:hover, .rsc-opt.poll-4:hover {
  box-shadow: 0 0 48px rgba(40,168,92,0.85), 0 0 80px rgba(40,168,92,0.4), 0 8px 25px rgba(0,0,0,0.5), inset 0 0 32px rgba(26,74,42,0.35) !important;
}

/* 高污染区正文/警告文字微调 */
.rsc-sb.poll-3 p, .rsc-mod.poll-3 p, .rsc-npc.poll-3 p, .rsc-mm.poll-3 p, .rsc-opt.poll-3 p,
.rsc-sb.poll-4 p, .rsc-mod.poll-4 p, .rsc-npc.poll-4 p, .rsc-mm.poll-4 p, .rsc-opt.poll-4 p {
  color: #d8e8d0 !important;
}
.rsc-sb.poll-3 .rsc-warn, .rsc-mod.poll-3 .rsc-warn, .rsc-npc.poll-3 .rsc-warn,
.rsc-sb.poll-4 .rsc-warn, .rsc-mod.poll-4 .rsc-warn, .rsc-npc.poll-4 .rsc-warn {
  color: #ff6b9d !important;
  text-shadow: 0 0 12px rgba(255,20,147,0.6) !important;
}

/* ══════════════ 悬浮窗物品 ══════════════ */
.rsc-item {
  color: #C4A800 !important;
  border-bottom: 2px dashed rgba(196,168,0,0.6) !important;
  cursor: help !important;
  position: relative !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(196,168,0,0.5) !important;
}
.rsc-item:hover::after {
  content: attr(tip) !important;
  position: absolute !important;
  bottom: 150% !important;
  background: #14100a !important;
  border: 2px solid #C45A1A !important;
  color: #e8d8b0 !important;
  padding: 8px 12px !important;
  box-shadow: 0 0 30px rgba(196,90,26,0.4) !important;
  width: 240px !important;
  z-index: 999 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}

/* ══════════════ 契约履约警告 ══════════════ */
.rsc-warn {
  color: #E02020 !important;
  text-shadow: 0 0 12px rgba(224,32,32,0.6) !important;
  font-weight: 900 !important;
}

/* ══════════════ 行动选项列表 ══════════════ */
.rsc-opt ol {
  padding-left: 20px !important;
  color: #D4C4A8 !important;
}
.rsc-opt li {
  margin: 4px 0 !important;
}

/* ══════════════ H场景：全界面粉色高亮（末尾·最高优先级 .rsc.hl 后代） ══════════════ */

/* 正文转粉 */
.rsc.hl p {
  color: #F0D4DC !important;
}

/* 前置状态栏 */
.rsc.hl .status-block {
  border-color: rgba(255,20,147,0.75) !important;
  box-shadow: 0 0 40px rgba(255,20,147,0.55), 0 0 80px rgba(255,20,147,0.25), inset 0 0 30px rgba(255,20,147,0.15) !important;
}
.rsc.hl .status-block::before,
.rsc.hl .status-block::after {
  border-color: #FF1493 !important;
  filter: drop-shadow(0 0 8px rgba(255,20,147,0.9)) !important;
}
.rsc.hl .status-header {
  background: linear-gradient(180deg, rgba(40,10,24,0.95), rgba(26,8,16,0.97)) !important;
}
.rsc.hl .mission-row {
  background: rgba(255,20,147,0.12) !important;
  border-color: rgba(255,20,147,0.4) !important;
  color: #ff9ec9 !important;
}
.rsc.hl .mission-row p {
  color: #ff9ec9 !important;
}
.rsc.hl .mission-row::after {
  background: linear-gradient(90deg, transparent, #FF1493, transparent) !important;
}
.rsc.hl .tag-poll {
  display: none !important;
}
.rsc.hl .tag-pink {
  background: linear-gradient(135deg, rgba(255,20,147,0.55), rgba(255,20,147,0.25)) !important;
  border-color: rgba(255,20,147,0.7) !important;
  box-shadow: 0 0 15px rgba(255,20,147,0.4) !important;
}

/* 折叠块 */
.rsc.hl .rsc-sb, .rsc.hl .rsc-mod, .rsc.hl .rsc-npc, .rsc.hl .rsc-mm, .rsc.hl .rsc-opt {
  border-color: #FF1493 !important;
  box-shadow: 0 0 35px rgba(255,20,147,0.5), 0 0 70px rgba(255,20,147,0.22), inset 0 0 25px rgba(255,20,147,0.15), inset 0 1px 0 rgba(255,20,147,0.35) !important;
}
.rsc.hl .rsc-sb::before, .rsc.hl .rsc-mod::before, .rsc.hl .rsc-npc::before, .rsc.hl .rsc-mm::before, .rsc.hl .rsc-opt::before,
.rsc.hl .rsc-sb::after, .rsc.hl .rsc-mod::after, .rsc.hl .rsc-npc::after, .rsc.hl .rsc-mm::after, .rsc.hl .rsc-opt::after {
  border-color: #FF1493 !important;
  filter: drop-shadow(0 0 8px rgba(255,20,147,0.9)) !important;
}
.rsc.hl .rsc-sb summary, .rsc.hl .rsc-mod summary, .rsc.hl .rsc-npc summary, .rsc.hl .rsc-mm summary, .rsc.hl .rsc-opt summary {
  color: #ff9ec9 !important;
  text-shadow: 0 0 12px rgba(255,20,147,0.8), 0 0 30px rgba(255,20,147,0.4) !important;
  border-bottom-color: rgba(255,20,147,0.5) !important;
  background: linear-gradient(90deg, rgba(255,20,147,0.18) 0%, transparent 70%) !important;
}


/* ══════════════ v2 视觉优化：正文扫描线 + 颜色分层 + 状态栏辨识度 ══════════════ */

/* 正文容器（动态扫描线，一条缓缓扫过整个正文） */
.rsc-body {
  position: relative !important;
  overflow: hidden !important;
  margin: 1.4em 0 !important;
  padding: 6px 0 !important;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,0.4) 100%) !important;
}
.rsc-body::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  top: -2px;
  background: linear-gradient(90deg, transparent 5%, var(--poll1) 50%, transparent 95%) !important;
  box-shadow: 0 0 8px var(--poll1-dim), 0 0 22px var(--poll1-dim) !important;
  animation: rsc-body-scan 7s linear infinite !important;
  pointer-events: none !important;
  z-index: 3 !important;
}
@keyframes rsc-body-scan {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* 对话（NPC对白）换色：金色 */
.rsc .dlg {
  color: #E8C040 !important;
  text-shadow: 0 0 6px rgba(201,164,30,0.35) !important;
}
/* 心理（内心独白）换色：灰青斜体 */
.rsc .inner {
  color: #7a8a8a !important;
  font-style: italic !important;
}
/* H场景下对话/心理转粉 */
.rsc.hl .dlg {
  color: #ff9ec9 !important;
  text-shadow: 0 0 8px rgba(255,20,147,0.45) !important;
}
.rsc.hl .inner {
  color: #b08090 !important;
}

/* 状态栏内容：关键数值/分类标题 金色高亮辨识度 */
.rsc-sb strong, .rsc-mod strong, .rsc-npc strong, .rsc-mm strong, .rsc-opt strong {
  color: #5AC8FA !important;
  font-weight: 700 !important;
  text-shadow: 0 0 7px rgba(90,200,250,0.45) !important;
}


/* .rsc 容器污染变量（让正文扫描线/正文配色随污染档位联动） */
.rsc.poll-2 { --poll1: #C9A41E; --poll1-dim: rgba(201,164,30,0.4); }
.rsc.poll-3 { --poll1: #8FA832; --poll1-dim: rgba(143,168,50,0.4); }
.rsc.poll-4 { --poll1: #28A85C; --poll1-dim: rgba(40,168,92,0.4); }
