/* =================================================================
   TenSura RPG UI Theme — Full Remaster v4 (Rili Platform Adapted)
   转生史莱姆角色扮演状态栏 · 全面重构第四版 (Rili平台适配版)
   悬浮窗系统改为「内联展开」模式，彻底解决定位遮挡问题
   
   Core Palette:
     Rimuru Blue   #89CFF0 → #0075C2
     Ivory White   #FFFFF0
     Shuna Pink    #F4C2C2
     Benimaru Red  #CD5C5C
     Shion Purple  #7e57c2
     Tempest Dark  #0d1b2a / #162447
   ================================================================= */

/* ============================================================
   §0  全局基础 & 变量
   ============================================================ */

pan { display: block; padding: 0; margin: 0; }
d   { display: block; }

.tensura-ui {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Segoe UI', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  color: #2c3e50;
  line-height: 1.65;
  background-color: transparent;
}

::selection {
  background: rgba(137, 207, 240, 0.35);
  color: #0d1b2a;
}

details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* --- 世界之声 (World Voice) --- */
.world-voice {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #e8e8e8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.9em;
  border-left: 4px solid #89CFF0;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(137, 207, 240, 0.15);
  position: relative;
  overflow: hidden;
}

.world-voice::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(137, 207, 240, 0.08), transparent);
  animation: wv-scan 4s ease-in-out infinite;
}

@keyframes wv-scan {
  0%   { left: -50%; }
  100% { left: 150%; }
}

.wv-header {
  font-weight: bold;
  border-bottom: 1px solid rgba(137, 207, 240, 0.25);
  padding-bottom: 5px;
  margin-bottom: 6px;
  letter-spacing: 2px;
  color: #89CFF0;
  font-size: 0.95em;
  text-transform: uppercase;
}

.wv-header span {
  background: linear-gradient(90deg, #89CFF0, #b3e5fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wv-content {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85em;
  color: #b0bec5;
  line-height: 1.8;
}

.wv-content b {
  color: #89CFF0;
}

/* ============================================================
   §2  对话着色系统 (Dialogue Colors)
   ============================================================ */
.talk-npc {
  color: #5d4e37;
  font-weight: bold;
  font-style: italic;
}

.talk-unique {
  color: #CD5C5C;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(205, 92, 92, 0.2);
}

.talk-soft {
  color: #c06078;
  font-weight: bold;
  font-style: italic;
}

.talk-rimuru {
  color: #0075C2;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0, 117, 194, 0.15);
}


/* ============================================================
   §3  ★ 技能展示系统 — 内联展开模式（彻底替代悬浮窗）
   ============================================================ */

.skill-trigger {
  color: #0075C2;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border-bottom: 1.5px dashed #89CFF0;
  display: inline;
  padding: 0 2px;
  transition: all 0.2s ease;
  outline: none;
}

.skill-trigger:hover,
.skill-trigger:focus {
  background-color: rgba(137, 207, 240, 0.2);
  border-bottom-color: #0075C2;
  border-bottom-style: solid;
  outline: none;
}

.skill-trigger .skill-popup {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: linear-gradient(160deg,
    rgba(10, 18, 35, 0.96) 0%,
    rgba(18, 30, 55, 0.96) 40%,
    rgba(13, 22, 42, 0.96) 100%
  );
  color: #e0e8f0;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 0 14px;
  border: 1px solid rgba(137, 207, 240, 0.4);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(137, 207, 240, 0.08);
  font-size: 0.85em;
  font-weight: normal;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  text-align: left;
  text-indent: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  position: relative;
}

.skill-trigger .skill-popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #F4C2C2 15%,
    #89CFF0 35%,
    #7e57c2 55%,
    #89CFF0 75%,
    #F4C2C2 90%,
    transparent 100%
  );
  opacity: 0.85;
  border-radius: 10px 10px 0 0;
}

.skill-trigger:focus .skill-popup {
  max-height: 200px;
  opacity: 1;
  padding: 12px 14px;
}

.skill-trigger .skill-popup b {
  display: block;
  color: #fff;
  font-size: 0.95em;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(137, 207, 240, 0.2);
  letter-spacing: 0.5px;
}

.skill-trigger .skill-popup b::before {
  content: '◆ ';
  color: #89CFF0;
  font-size: 0.85em;
  text-shadow: 0 0 6px rgba(137, 207, 240, 0.5);
}


/* ============================================================
   §4  状态面板容器 (Status Panel)
   ============================================================ */
.status-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}


/* ============================================================
   §5  通用卡片折叠系统 (UI Card)
   ============================================================ */
.ui-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(137, 207, 240, 0.55);
  border-radius: 8px;
  overflow: visible;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    0 0 0 0 rgba(137, 207, 240, 0);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.ui-card:hover {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 10px rgba(137, 207, 240, 0.1);
  border-color: rgba(137, 207, 240, 0.75);
}

.ui-header {
  background: linear-gradient(135deg, #f4f9ff 0%, #e8f2fc 100%);
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #0056b3;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.ui-card:not([open]) > .ui-header {
  border-radius: 8px;
}

.ui-header::after {
  content: '▸';
  position: absolute;
  right: 14px;
  font-size: 0.9em;
  color: #89CFF0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.ui-card[open] > .ui-header::after {
  transform: rotate(90deg);
  color: #0075C2;
}

.ui-card[open] > .ui-header {
  border-bottom: 1px solid rgba(137, 207, 240, 0.45);
  background: linear-gradient(135deg, #e1f0fa 0%, #d6ecf9 100%);
}

.ui-header:hover {
  background: linear-gradient(135deg, #dbeeff 0%, #cde6fa 100%);
}

.ui-header .icon {
  margin-right: 8px;
  font-size: 1.15em;
  filter: drop-shadow(0 0 2px rgba(0, 117, 194, 0.25));
}

.ui-header .title {
  flex-grow: 1;
  text-transform: uppercase;
  font-size: 0.88em;
  letter-spacing: 0.8px;
}

.ui-header .sub-info {
  font-size: 0.78em;
  color: #666;
  font-family: 'Consolas', monospace;
  margin-right: 22px;
}

.ui-body {
  padding: 14px;
  font-size: 0.9em;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  position: relative;
  overflow: visible;
}

/* ============================
   转生史莱姆 · 羊皮纸正文叙事区
   ============================ */

.story-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  padding: 0;
  font-family: "Georgia", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

.parchment-paper {
  position: relative;
  background:
    linear-gradient(
      168deg,
      #fdf6e3 0%,
      #f5e6c8 15%,
      #faf0dc 30%,
      #f2dfc0 50%,
      #f8edd5 70%,
      #f5e2c4 85%,
      #fdf5e0 100%
    );
  border-radius: 3px;
  padding: 28px 22px 32px 22px;
  box-shadow:
    0 2px 8px rgba(139, 109, 64, 0.18),
    0 6px 20px rgba(139, 109, 64, 0.10),
    inset 0 1px 3px rgba(255, 253, 245, 0.7),
    inset 0 -2px 6px rgba(180, 150, 90, 0.08);
  border: 1px solid rgba(180, 150, 90, 0.35);
  border-top-color: rgba(200, 175, 120, 0.25);
  border-bottom-color: rgba(150, 120, 60, 0.40);
  overflow: hidden;
  z-index: 0;
}

.parchment-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(160, 130, 70, 0.018) 3px,
      rgba(160, 130, 70, 0.018) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 5px,
      rgba(140, 110, 55, 0.015) 5px,
      rgba(140, 110, 55, 0.015) 6px
    ),
    radial-gradient(ellipse at 20% 10%, rgba(180, 150, 80, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(170, 140, 70, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(190, 155, 85, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 90%, rgba(165, 130, 65, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(175, 145, 75, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 0%, rgba(160, 120, 50, 0.10) 0%, transparent 30%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 115, 45, 0.08) 0%, transparent 25%),
    radial-gradient(ellipse at 0% 100%, rgba(165, 125, 55, 0.09) 0%, transparent 28%),
    radial-gradient(ellipse at 100% 100%, rgba(150, 110, 40, 0.11) 0%, transparent 32%);
  background-color: rgba(245, 230, 200, 0.04);
  mix-blend-mode: multiply;
}

.parchment-paper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px; z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      #c4a265 0px, #c4a265 2px, #d4b87a 2px, #d4b87a 4px,
      transparent 4px, transparent 6px, #b8944f 6px, #b8944f 8px,
      transparent 8px, transparent 12px
    ),
    linear-gradient(
      90deg,
      rgba(180, 140, 60, 0.6) 0%, rgba(200, 165, 90, 0.8) 20%,
      rgba(210, 175, 100, 0.9) 50%, rgba(200, 165, 90, 0.8) 80%, rgba(180, 140, 60, 0.6) 100%
    );
  background-size: 12px 2px, 100% 100%;
  background-position: center 1px, center center;
  border-radius: 3px 3px 0 0;
  opacity: 0.65;
}

.parchment-paper::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 5px; z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      #c4a265 0px, #c4a265 2px, #d4b87a 2px, #d4b87a 4px,
      transparent 4px, transparent 6px, #b8944f 6px, #b8944f 8px,
      transparent 8px, transparent 12px
    ),
    linear-gradient(
      90deg,
      rgba(180, 140, 60, 0.6) 0%, rgba(200, 165, 90, 0.8) 20%,
      rgba(210, 175, 100, 0.9) 50%, rgba(200, 165, 90, 0.8) 80%, rgba(180, 140, 60, 0.6) 100%
    );
  background-size: 12px 2px, 100% 100%;
  background-position: center 1px, center center;
  border-radius: 0 0 3px 3px;
  opacity: 0.65;
}

.story-content {
  position: relative;
  z-index: 1;
  color: #3d2e1c;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 0.5px 0 rgba(80, 60, 30, 0.06);
}

.story-content p {
  margin: 0 0 0.85em 0;
  text-indent: 2em;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-content p:first-child::first-letter {
  font-size: 2.6em;
  float: left;
  line-height: 1;
  margin: 0.05em 0.1em 0 0;
  padding: 0 0.05em;
  color: #8b6914;
  font-weight: bold;
  font-family: "Georgia", "Times New Roman", serif;
  text-shadow:
    0 1px 2px rgba(139, 105, 20, 0.2),
    1px 0 0 rgba(139, 105, 20, 0.08);
}

.story-content p:first-child { text-indent: 0; }
.story-content p:has(> q), .story-content q { text-indent: 0; }

.story-content::before {
  content: ""; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(180, 145, 75, 0.25) 10%, rgba(180, 145, 75, 0.40) 30%, rgba(195, 160, 90, 0.45) 50%, rgba(180, 145, 75, 0.40) 70%, rgba(180, 145, 75, 0.25) 90%, transparent 100%);
  border-radius: 1px;
}

.story-content::after {
  content: ""; position: absolute; right: -12px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(180, 145, 75, 0.20) 10%, rgba(180, 145, 75, 0.32) 30%, rgba(195, 160, 90, 0.36) 50%, rgba(180, 145, 75, 0.32) 70%, rgba(180, 145, 75, 0.20) 90%, transparent 100%);
  border-radius: 1px;
}

.story-content strong, .story-content b {
  color: #6b4c11; font-weight: 700; text-shadow: 0 0.5px 1px rgba(107, 76, 17, 0.12);
}

.story-content em, .story-content i {
  color: #7a5a2e; font-style: italic;
}

.parchment-paper { transition: box-shadow 0.4s ease, transform 0.3s ease; }
.parchment-paper:hover {
  box-shadow: 0 3px 12px rgba(139, 109, 64, 0.22), 0 8px 28px rgba(139, 109, 64, 0.14), inset 0 1px 3px rgba(255, 253, 245, 0.8), inset 0 -2px 8px rgba(180, 150, 90, 0.10);
  transform: translateY(-1px);
}

.story-container::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 40px; height: 40px; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 0% 0%, rgba(160, 130, 70, 0.12) 0%, rgba(160, 130, 70, 0.04) 40%, transparent 70%); border-radius: 3px 0 0 0;
}

.story-container::after {
  content: ""; position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, rgba(155, 125, 65, 0.10) 0%, rgba(155, 125, 65, 0.03) 40%, transparent 70%); border-radius: 0 3px 0 0;
}

.parchment-texture::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(100, 180, 255, 0.04) 0%, transparent 3px),
    radial-gradient(circle at 40% 60%, rgba(120, 200, 160, 0.035) 0%, transparent 2px),
    radial-gradient(circle at 70% 15%, rgba(255, 200, 80, 0.04) 0%, transparent 3px),
    radial-gradient(circle at 88% 45%, rgba(100, 180, 255, 0.03) 0%, transparent 2px),
    radial-gradient(circle at 55% 85%, rgba(120, 200, 160, 0.04) 0%, transparent 3px),
    radial-gradient(circle at 25% 75%, rgba(255, 200, 80, 0.035) 0%, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(100, 180, 255, 0.03) 0%, transparent 2px),
    radial-gradient(circle at 35% 40%, rgba(120, 220, 180, 0.025) 0%, transparent 3px),
    radial-gradient(circle at 92% 70%, rgba(255, 210, 100, 0.03) 0%, transparent 2px),
    radial-gradient(circle at 8% 55%, rgba(100, 200, 255, 0.03) 0%, transparent 2px);
  animation: magicDust 8s ease-in-out infinite alternate;
}

@keyframes magicDust {
  0% { opacity: 0.4; filter: blur(0.5px); }
  50% { opacity: 0.8; filter: blur(0px); }
  100% { opacity: 0.5; filter: blur(0.3px); }
}

.parchment-texture::after {
  content: ""; position: absolute; bottom: 0; left: 5%; right: 5%; height: 15px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(170, 140, 75, 0.04) 60%, rgba(150, 120, 55, 0.07) 100%);
}

@media (max-width: 480px) {
  .parchment-paper { padding: 22px 16px 26px 16px; border-radius: 2px; }
  .story-content { font-size: 14.5px; line-height: 1.85; }
  .story-content p:first-child::first-letter { font-size: 2.2em; }
  .story-content::before { left: -8px; }
  .story-content::after { right: -8px; }
  .story-container::before, .story-container::after { width: 30px; height: 30px; }
}

@media (max-width: 360px) {
  .parchment-paper { padding: 18px 12px 22px 12px; }
  .story-content { font-size: 14px; line-height: 1.8; }
  .story-content::before, .story-content::after { display: none; }
}

/* ============================================================
   §6  Grid布局 & 属性条目
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.full-width { grid-column: span 2; }
.stat-item { background: linear-gradient(135deg, #f8fbff, #f2f7fc); padding: 5px 10px; border-radius: 5px; border-left: 3px solid #89CFF0; font-size: 0.9em; transition: border-color 0.2s ease, background 0.2s ease; }
.stat-item:hover { border-left-color: #0075C2; background: linear-gradient(135deg, #eef5ff, #e8f2fc); }
.stat-item b { color: #4a6fa5; }
.danger-level { color: #CD5C5C; font-weight: bold; text-shadow: 0 0 2px rgba(205, 92, 92, 0.2); }

/* ============================================================
   §7  HP血条 (红丸赫莲红)
   ============================================================ */
.hp-bar-box { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; }
.hp-label { font-size: 0.8em; font-weight: bold; color: #CD5C5C; min-width: 85px; white-space: nowrap; }
.hp-bar { flex-grow: 1; height: 10px; background: linear-gradient(180deg, #e8e8e8, #d0d0d0); border-radius: 5px; overflow: hidden; border: 1px solid #c0c0c0; position: relative; }
.hp-fill { height: 100%; background: linear-gradient(90deg, #F4C2C2 0%, #CD5C5C 55%, #b71c1c 100%); border-radius: 4px; box-shadow: 0 0 6px rgba(205, 92, 92, 0.35); position: relative; transition: width 0.6s ease; }
.hp-fill::after { content: ''; position: absolute; top: 1px; left: 2px; right: 2px; height: 3px; background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1)); border-radius: 2px; }

/* ============================================================
   §8  EP魔素条 (史莱姆蓝) + 脉动动画
   ============================================================ */
.ep-bar-box { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; }
.ep-label { font-size: 0.8em; font-weight: bold; color: #0075C2; min-width: 85px; white-space: nowrap; }
.ep-bar { flex-grow: 1; height: 10px; background: linear-gradient(180deg, #e8e8e8, #d0d0d0); border-radius: 5px; overflow: hidden; border: 1px solid #c0c0c0; position: relative; }
.ep-fill { height: 100%; background: linear-gradient(90deg, #b3e5fc 0%, #89CFF0 40%, #0075C2 100%); border-radius: 4px; box-shadow: 0 0 8px rgba(137, 207, 240, 0.45); position: relative; transition: width 0.6s ease; animation: ep-pulse 2.5s ease-in-out infinite; }
@keyframes ep-pulse { 0%, 100% { box-shadow: 0 0 6px rgba(137, 207, 240, 0.35); } 50% { box-shadow: 0 0 14px rgba(137, 207, 240, 0.65); } }
.ep-fill::after { content: ''; position: absolute; top: 1px; left: 2px; right: 2px; height: 3px; background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.15)); border-radius: 2px; }

/* ============================================================
   §9  技能与物品面板
   ============================================================ */
.section-title { font-size: 0.82em; font-weight: bold; color: #78909c; margin: 12px 0 6px 0; text-transform: uppercase; letter-spacing: 1.2px; position: relative; padding-left: 10px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 14px; background: linear-gradient(180deg, #89CFF0, #0075C2); border-radius: 2px; }
.skill-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: relative; overflow: visible; }
.skill-node { position: relative; display: inline-flex; flex-direction: column; background: linear-gradient(135deg, #fff, #fef0f5); border: 1px solid #F4C2C2; border-radius: 14px; padding: 3px 12px; font-size: 0.84em; cursor: pointer; transition: all 0.25s ease; color: #c71585; z-index: 1; outline: none; }
.skill-node:hover, .skill-node:focus { background: linear-gradient(135deg, #F4C2C2, #e8a0b0); color: #fff; border-color: #CD5C5C; outline: none; box-shadow: 0 3px 12px rgba(205, 92, 92, 0.25); }
.skill-node .skill-name { font-weight: 600; }
.skill-node .skill-popup { display: block; max-height: 0; overflow: hidden; opacity: 0; background: linear-gradient(160deg, rgba(10, 18, 35, 0.96) 0%, rgba(18, 30, 55, 0.96) 40%, rgba(13, 22, 42, 0.96) 100%); color: #e0e8f0; border-radius: 8px; margin-top: 0; padding: 0 12px; border: 0 solid rgba(137, 207, 240, 0.35); box-shadow: none; font-size: 0.92em; font-weight: normal; line-height: 1.55; text-align: left; word-wrap: break-word; overflow-wrap: break-word; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-width 0.3s ease; position: relative; }
.skill-node .skill-popup::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #F4C2C2, #89CFF0, #7e57c2, #89CFF0, #F4C2C2, transparent); opacity: 0.8; border-radius: 8px 8px 0 0; }
.skill-node:focus .skill-popup { max-height: 180px; opacity: 1; padding: 10px 12px; margin-top: 6px; border-width: 1px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 10px rgba(137, 207, 240, 0.08); }
.skill-popup .popup-title { display: block; color: #fff; font-weight: bold; font-size: 0.92em; letter-spacing: 0.6px; padding-bottom: 5px; margin-bottom: 5px; background: none; border-bottom: 1px solid rgba(137, 207, 240, 0.2); position: relative; }
.skill-popup .popup-title::before { content: '◆ '; color: #89CFF0; font-size: 0.8em; text-shadow: 0 0 6px rgba(137, 207, 240, 0.5); }
.skill-popup .popup-desc { display: block; font-size: 0.88em; line-height: 1.55; color: #c5cdd8; padding: 0; margin: 0; }
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { padding: 5px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.06); font-size: 0.9em; }
.item-list li:last-child { border-bottom: none; }
.item-tag { display: inline-block; background: linear-gradient(135deg, #e0f7fa, #b2ebf2); color: #006064; padding: 1px 7px; border-radius: 4px; font-size: 0.78em; margin-right: 6px; border: 1px solid #80deea; font-weight: 600; }
.text-sm { font-size: 0.85em; color: #666; line-height: 1.6; }

/* ============================================================
   §10  NPC解析面板 & §11-§17 其它组件
   ============================================================ */
.reaction-box { background: linear-gradient(135deg, #f0f8ff, #e8f4fd); padding: 8px 12px; border-radius: 6px; font-size: 0.9em; border-left: 3px solid #89CFF0; }
.reaction-box b { color: #0056b3; }
hr.ui-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #d4e6f1, transparent); margin: 10px 0; }
.target-grid { display: flex; flex-direction: column; gap: 6px; overflow: visible; }
.t-row { display: flex; justify-content: space-between; align-items: center; background: #fdfdfd; padding: 5px 8px; border-bottom: 1px solid #f0f0f0; border-radius: 4px; font-size: 0.9em; }
.t-row b { color: #4a6fa5; }
.badge { background: linear-gradient(135deg, #CD5C5C, #b71c1c); color: white; padding: 1px 8px; border-radius: 4px; font-size: 0.78em; font-weight: 600; letter-spacing: 0.5px; box-shadow: 0 1px 3px rgba(205, 92, 92, 0.3); }
.t-desc { font-size: 0.9em; line-height: 1.6; color: #444; padding: 4px 0; }
.t-desc b { color: #37474f; }
.body-details { list-style: none; padding: 10px 12px; margin: 8px 0 0 0; background: linear-gradient(135deg, #fff0f5, #fce4ec); border-radius: 6px; border: 1px solid rgba(244, 194, 194, 0.55); border-left: 3px solid #F4C2C2; }
.body-details li { font-size: 0.85em; margin-bottom: 4px; color: #6d4c41; padding: 2px 0; border-bottom: 1px dashed rgba(244, 194, 194, 0.3); }
.body-details li:last-child { border-bottom: none; margin-bottom: 0; }
.body-details li b { color: #ad1457; min-width: 45px; display: inline-block; }
.mind-box { background: linear-gradient(135deg, #f0f8ff, #e8f0fe); border-left: 3px solid #0075C2; padding: 10px 14px; font-style: italic; font-size: 0.9em; color: #546e7a; border-radius: 0 6px 6px 0; margin-top: 8px; }
.mind-box b { font-style: normal; color: #0056b3; }

.bond-list { list-style: none; padding: 0; margin: 0; }
.bond-list li { border-bottom: 1px solid #f0f0f0; padding: 8px 4px; transition: background-color 0.2s ease; }
.bond-list li:last-child { border-bottom: none; }
.bond-list li:hover { background-color: rgba(137, 207, 240, 0.06); }
.bond-name { font-weight: bold; color: #2c3e50; margin-right: 10px; font-size: 0.95em; }
.bond-val { color: #CD5C5C; font-size: 0.78em; background: linear-gradient(135deg, #ffe4e1, #fce4ec); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(244, 194, 194, 0.5); font-weight: 600; white-space: nowrap; }
.bond-status { display: block; font-size: 0.84em; color: #78909c; margin-top: 3px; padding-left: 2px; line-height: 1.5; }

.news-box { margin-bottom: 14px; }
.news-box > b { color: #0056b3; font-size: 0.95em; }
.news-box ul { list-style: none; padding: 0; margin: 6px 0 0 0; }
.news-box ul li { padding: 5px 10px; margin-bottom: 4px; background: linear-gradient(135deg, #f8fbff, #f0f6fd); border-radius: 5px; border-left: 3px solid #89CFF0; font-size: 0.88em; color: #37474f; transition: border-color 0.2s ease, transform 0.2s ease; }
.news-box ul li:hover { border-left-color: #0075C2; transform: translateX(2px); }

.butterfly-box { margin-top: 14px; position: relative; padding: 14px; background: linear-gradient(135deg, #fdf6ff 0%, #f3e5f5 50%, #ede7f6 100%); border: 1px solid rgba(126, 87, 194, 0.25); border-radius: 10px; overflow: hidden; }
.butterfly-box::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; background: radial-gradient(ellipse, rgba(126, 87, 194, 0.12), transparent 70%); pointer-events: none; }
.butterfly-box::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent 0%, #7e57c2 25%, #F4C2C2 50%, #7e57c2 75%, transparent 100%); background-size: 200% 100%; animation: butterfly-scan-bar 3s ease-in-out infinite; }
@keyframes butterfly-scan-bar { 0% { background-position: 100% 0; opacity: 0.4; } 50% { opacity: 1; } 100% { background-position: -100% 0; opacity: 0.4; } }
.butterfly-box > b { color: #6a1b9a; font-size: 0.95em; display: block; margin-bottom: 10px; position: relative; z-index: 1; }
.butterfly-box ul { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.butterfly-box ul::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #7e57c2, rgba(126, 87, 194, 0.12)); border-radius: 1px; }
.butterfly-box ul li { position: relative; padding: 10px 14px 10px 24px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.75); border-radius: 8px; border: 1px solid rgba(126, 87, 194, 0.15); font-size: 0.86em; color: #4a148c; line-height: 1.65; transition: all 0.25s ease; }
.butterfly-box ul li:last-child { margin-bottom: 0; }
.butterfly-box ul li:hover { background: rgba(255, 255, 255, 0.95); border-color: rgba(126, 87, 194, 0.4); box-shadow: 0 3px 12px rgba(126, 87, 194, 0.12); transform: translateX(3px); }
.butterfly-box ul li::before { content: '🦋'; position: absolute; left: -4px; top: 12px; font-size: 0.7em; animation: butterfly-node-beat 2.2s ease-in-out infinite; }
@keyframes butterfly-node-beat { 0%, 100% { transform: scale(1); opacity: 0.65; } 50% { transform: scale(1.3); opacity: 1; } }
.butterfly-box ul li b { color: #6a1b9a; }

.mem-outer { background: linear-gradient(145deg, #0d1b2a 0%, #162447 100%); border: 1px solid rgba(137, 207, 240, 0.3); border-left: 3px solid #7e57c2; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 8px rgba(126, 87, 194, 0.1); margin-bottom: 8px; transition: all 0.3s ease; }
.mem-outer:hover { border-color: rgba(137, 207, 240, 0.5); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32), 0 0 14px rgba(126, 87, 194, 0.18); }
.mem-outer > summary { background: linear-gradient(135deg, rgba(13, 27, 42, 0.98), rgba(22, 36, 71, 0.96)); color: #89CFF0; padding: 11px 16px; font-weight: bold; font-size: 0.95em; letter-spacing: 1px; border-bottom: 1px solid rgba(126, 87, 194, 0.3); position: relative; transition: all 0.25s ease; }
.mem-outer > summary::after { content: '◈'; position: absolute; right: 16px; color: #7e57c2; font-size: 0.9em; transition: transform 0.35s ease, color 0.3s ease; }
.mem-outer[open] > summary::after { transform: rotate(45deg); color: #ce93d8; }
.mem-outer > summary:hover { background: linear-gradient(135deg, rgba(20, 35, 55, 0.98), rgba(30, 48, 82, 0.96)); color: #b3e5fc; }
.mem-outer > pan { padding: 8px 10px; background: linear-gradient(180deg, rgba(13, 27, 42, 0.5), rgba(22, 36, 71, 0.35)); }
.mem-outer pan > details { background: rgba(22, 36, 71, 0.55); border: 1px solid rgba(137, 207, 240, 0.12); border-radius: 6px; margin-bottom: 6px; overflow: hidden; transition: all 0.25s ease; }
.mem-outer pan > details:last-child { margin-bottom: 0; }
.mem-outer pan > details:hover { border-color: rgba(137, 207, 240, 0.28); }
.mem-outer pan > details > summary { background: linear-gradient(135deg, rgba(30, 50, 80, 0.75), rgba(22, 36, 71, 0.85)); color: #80cbc4; padding: 8px 14px; font-size: 0.88em; font-weight: 600; letter-spacing: 0.5px; border-bottom: 1px solid rgba(128, 203, 196, 0.12); transition: all 0.2s ease; position: relative; }
.mem-outer pan > details > summary::before { content: '▹ '; color: #7e57c2; transition: color 0.25s ease; display: inline-block; }
.mem-outer pan > details[open] > summary::before { content: '▿ '; color: #ce93d8; }
.mem-outer pan > details > summary:hover { background: linear-gradient(135deg, rgba(40, 60, 95, 0.8), rgba(30, 48, 75, 0.85)); color: #a5d6a7; }
.mem-outer pan > details[open] > summary { border-bottom-color: rgba(128, 203, 196, 0.28); color: #b2dfdb; }
.mm { padding: 10px 14px; font-family: 'Consolas', 'Courier New', monospace; font-size: 0.83em; line-height: 1.7; color: #b0bec5; position: relative; overflow: hidden; }
.mm::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent 0%, transparent 48%, rgba(137, 207, 240, 0.04) 50%, transparent 52%, transparent 100%); background-size: 100% 30px; animation: memory-scanline 4s linear infinite; pointer-events: none; }
@keyframes memory-scanline { 0% { background-position: 0 -30px; } 100% { background-position: 0 100%; } }
.mm d { display: block; padding: 4px 8px; margin-bottom: 4px; border-left: 2px solid rgba(126, 87, 194, 0.35); transition: border-color 0.2s ease, background 0.2s ease; border-radius: 0 3px 3px 0; }
.mm d:hover { border-left-color: #89CFF0; background: rgba(137, 207, 240, 0.06); }
.mm d:first-child { color: #7e57c2; font-weight: bold; border-left-color: #7e57c2; }
.mm d b { color: #89CFF0; }

.lock-outer { background: linear-gradient(145deg, #1a0a1e 0%, #2d1338 60%, #1a0a2e 100%); border: 1px solid rgba(205, 92, 92, 0.3); border-left: 3px solid #CD5C5C; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 8px rgba(205, 92, 92, 0.08); margin-bottom: 8px; transition: all 0.3s ease; }
.lock-outer:hover { border-color: rgba(205, 92, 92, 0.5); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 14px rgba(205, 92, 92, 0.15); }
.lock-outer > summary { background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 19, 56, 0.96)); color: #ef9a9a; padding: 11px 16px; font-weight: bold; font-size: 0.95em; letter-spacing: 1px; border-bottom: 1px solid rgba(205, 92, 92, 0.25); position: relative; transition: all 0.25s ease; }
.lock-outer > summary::after { content: '🔗'; position: absolute; right: 16px; font-size: 0.8em; transition: transform 0.35s ease; }
.lock-outer[open] > summary::after { transform: rotate(20deg) scale(1.1); }
.lock-outer > summary:hover { background: linear-gradient(135deg, rgba(35, 15, 40, 0.98), rgba(55, 25, 65, 0.96)); color: #ffcdd2; }
.lock-outer > pan { padding: 10px 12px; background: linear-gradient(180deg, rgba(26, 10, 30, 0.4), rgba(45, 19, 56, 0.25)); }
.sys { background: linear-gradient(135deg, rgba(126, 87, 194, 0.15), rgba(244, 194, 194, 0.1), rgba(126, 87, 194, 0.08)); border: 1px solid rgba(126, 87, 194, 0.3); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; font-size: 0.88em; color: #ce93d8; line-height: 1.65; font-style: italic; position: relative; }
.sys::before { content: '⚡ SYSTEM'; position: absolute; top: -8px; left: 10px; font-style: normal; font-size: 0.7em; font-weight: bold; letter-spacing: 1px; color: #7e57c2; background: #1a0a1e; padding: 0 6px; border-radius: 3px; border: 1px solid rgba(126, 87, 194, 0.3); }
.lk { display: block; background: linear-gradient(135deg, rgba(45, 19, 56, 0.7), rgba(26, 10, 30, 0.8)); border: 1px dashed rgba(205, 92, 92, 0.4); border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; font-size: 0.84em; color: #ef9a9a; line-height: 1.65; }
.lk::before { content: '🔐 '; font-size: 1em; }
.lock-npc { background: rgba(45, 19, 56, 0.5); border: 1px solid rgba(205, 92, 92, 0.2); border-radius: 6px; margin-bottom: 6px; overflow: hidden; transition: all 0.25s ease; }
.lock-npc > summary { background: linear-gradient(135deg, rgba(60, 25, 40, 0.8), rgba(45, 19, 56, 0.85)); color: #ef9a9a; padding: 8px 14px; font-size: 0.88em; font-weight: 600; border-bottom: 1px solid rgba(205, 92, 92, 0.18); transition: all 0.2s ease; position: relative; }
.lock-npc > summary::before { content: '🔒 '; font-size: 0.85em; }
.lock-npc[open] > summary::before { content: '🔓 '; }

.action-card { background: linear-gradient(135deg, #ffffff, #f8fbff); border: 1px solid rgba(137, 207, 240, 0.55); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 0 0 0 rgba(137, 207, 240, 0); transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.action-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 0 10px rgba(137, 207, 240, 0.1); border-color: rgba(137, 207, 240, 0.75); }
.action-header { background: linear-gradient(135deg, #e8f2fc 0%, #dbeeff 100%); padding: 10px 14px; font-weight: bold; color: #0056b3; font-size: 0.92em; letter-spacing: 0.8px; text-transform: uppercase; border-bottom: 1px solid transparent; transition: all 0.25s ease; position: relative; }
.action-card[open] > .action-header { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #89CFF0, #0075C2, transparent) 1; background: linear-gradient(135deg, #dbeeff 0%, #cde6fa 100%); }
.action-header::after { content: '▸'; position: absolute; right: 14px; font-size: 0.9em; color: #89CFF0; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease; }
.action-card[open] > .action-header::after { transform: rotate(90deg); color: #0075C2; }
.action-body { padding: 12px 14px; background: #fff; }
.opt-list { list-style: none; padding: 0; margin: 0; counter-reset: opt-counter; }
.opt-list li { position: relative; padding: 10px 14px 10px 36px; margin-bottom: 6px; background: linear-gradient(135deg, #f8fbff, #f2f6fc); border: 1px solid #e8f0f8; border-radius: 6px; transition: all 0.25s ease; cursor: pointer; font-size: 0.92em; color: #37474f; }
.opt-list li::before { counter-increment: opt-counter; content: counter(opt-counter); position: absolute; left: 0; top: 0; bottom: 0; width: 28px; background: linear-gradient(180deg, #89CFF0, #5bb5e0); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85em; border-radius: 5px 0 0 5px; }
.opt-list li:hover { background: linear-gradient(135deg, #e8f4fd, #dbeeff); border-color: #89CFF0; transform: translateX(3px); box-shadow: 0 2px 10px rgba(137, 207, 240, 0.15); }

.cot-container details { --rimuru-blue-light: #aeeeff; --rimuru-blue-main: #4fc3f7; --rimuru-blue-deep: #0288d1; --shuna-pink: #f48fb1; --shion-purple: #7e57c2; --benimaru-red: #ef5350; background-color: rgba(22, 36, 71, 0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(79, 195, 247, 0.35); border-left: 4px solid var(--rimuru-blue-main); border-radius: 12px; font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; color: #e3f2fd; line-height: 1.6; margin: 18px 0; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45), 0 0 10px rgba(79, 195, 247, 0.12), inset 0 0 20px rgba(126, 87, 194, 0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.cot-container details:hover { border-color: var(--rimuru-blue-light); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 15px rgba(79, 195, 247, 0.2), inset 0 0 10px rgba(244, 143, 177, 0.05); }
.cot-container summary { background: linear-gradient(135deg, rgba(13, 27, 42, 0.96), rgba(27, 38, 59, 0.96)); color: var(--rimuru-blue-light); padding: 14px 22px; font-weight: 600; font-size: 1.05em; user-select: none; border-bottom: 1px solid rgba(79, 195, 247, 0.2); position: relative; transition: all 0.3s ease; letter-spacing: 0.05em; display: flex; align-items: center; }
.cot-container summary::before { content: '✦'; color: var(--shuna-pink); margin-right: 12px; font-size: 1.2em; display: inline-block; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease; line-height: 1; }
.cot-container details[open] summary::before { transform: rotate(90deg) scale(1.15); color: var(--benimaru-red); text-shadow: 0 0 8px rgba(239, 83, 80, 0.5); }
.cot-container details > div, .cot-container .cot-content { padding: 22px 26px; background: linear-gradient(to bottom, rgba(79, 195, 247, 0.04), transparent); }


/* ============================================================
   §18  平台主题覆写 (Rili Platform Theme Overrides)
   ============================================================ */

/* 针对Rili平台气泡框的适配替换 */
.group.flex.is-user > div:first-child,
.group.flex.is-assistant > div:first-child {
  background: linear-gradient(145deg, #e1f5fe 0%, #b3e5fc 55%, #81d4fa 100%) !important;
  border: 1px solid #4fc3f7 !important;
  border-radius: 16px 16px 16px 4px !important;
  box-shadow:
    5px 5px 15px rgba(3, 169, 244, 0.12),
    inset 2px 2px 5px rgba(255, 255, 255, 0.85),
    inset -2px -2px 5px rgba(1, 87, 155, 0.08) !important;
  color: #37474f !important;
}

/* 适配Rili平台的Markdown渲染区 */
.rili-markdown-renderer {
  color: #263238 !important;
  font-family: "Microsoft YaHei", sans-serif !important;
}

.rili-markdown-renderer strong {
  color: #d32f2f !important;
  text-shadow: 0px 0px 2px rgba(255, 82, 82, 0.35) !important;
  font-weight: 800 !important;
}

.rili-markdown-renderer pre {
  background-color: rgba(255, 255, 240, 0.8) !important;
  border: 1px solid #cfd8dc !important;
  color: #212121 !important;
}

/* ========================================================================= */
/* --- ★★★ 史莱姆风格・大贤者演算/魔素解析加载框 (特恩佩斯特终极版) ★★★ --- */
/* ========================================================================= */

/* 1. 隐藏默认加载点 */
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }

/* 2. 容器重构：自适应高度 + 强制盒模型 (史莱姆果冻质感与魔素光晕 - 实体防透版) */
.flex.items-center.justify-center.size-6 {
    /* 布局重置 */
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 130px !important; /* 增加最小高度容纳旋转魔法阵 */
    margin: 8px 0 !important;
    padding: 0 !important;
    
    /* 转生史莱姆风格外观：纯白/浅蓝底色 + 顶部SVG系统警告文字(大贤者解析预警) */
    /* ★★★ 优化修复：增加 !important 强制覆盖平台透明背景，改为纯实体质感 ★★★ */
    background: 
        /* 顶部系统警告文字（SVG文本，背景块改为不透明淡蓝防止顶部脏污） */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='22' viewBox='0 0 400 22'><rect width='400' height='22' fill='%23e0f2fe'/><text x='8' y='15' font-family='Courier New,monospace' font-size='10' font-weight='bold' fill='%230284c7' letter-spacing='1.2'>《告》GREAT_SAGE::ANALYSIS //</text></svg>") top left / 100% 22px no-repeat,
        /* 暴风龙与史莱姆魔素交融晕染氛围 */
        radial-gradient(ellipse 80px 50px at 50% 70px, rgba(14, 165, 233, 0.15) 0%, rgba(168, 85, 247, 0.12) 50%, transparent 75%),
        /* 主底色：史莱姆光泽质感（纯实色渐变，彻底拒绝透明） */
        linear-gradient(135deg, #ffffff 0%, #f0f9ff 40%, #e0f2fe 100%) !important;
    
    background-color: #f0f9ff !important; /* 终极防透明保底色 */
    background-repeat: no-repeat !important;
    opacity: 1 !important; /* 强制完全不透明 */
    backdrop-filter: blur(12px) !important; /* 防止被父级强制透明时的毛玻璃兜底方案 */
    
    border: 1px solid #bae6fd;
    border-left: 3px solid #0ea5e9; /* 左侧利姆鲁专属史莱姆蓝进度条 */
    border-radius: 4px;
    
    /* 关键：防止溢出 */
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.1), 0 2px 8px rgba(14, 165, 233, 0.15);
    
    /* 容器自身呼吸动画：魔素律动 */
    animation: slime-border-pulse 2.5s infinite ease-in-out;
    
    /* 确保容器不会被外部样式影响 */
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

/* ========== ★ 核心：::before 改造为持续旋转的史莱姆魔法阵徽记 ★ ========== */
.flex.items-center.justify-center.size-6::before {
    content: "";
    position: absolute !important;
    top: 32px;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    
    /* 史莱姆魔法阵：内置SVG，六芒星外壳 + 大贤者解析轨 + 史莱姆本体 */
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>\
<defs>\
<linearGradient id='slime_blue' x1='0%25' y1='0%25' x2='100%25' y2='100%25'>\
<stop offset='0%25' stop-color='%2338bdf8'/>\
<stop offset='50%25' stop-color='%230ea5e9'/>\
<stop offset='100%25' stop-color='%230284c7'/>\
</linearGradient>\
</defs>\
<g transform='translate(50 50)'>\
<circle cx='0' cy='0' r='40' fill='none' stroke='%2338bdf8' stroke-width='1.5' stroke-dasharray='5 3'/>\
<circle cx='0' cy='0' r='36' fill='none' stroke='%23818cf8' stroke-width='1' opacity='0.7'/>\
<polygon points='0,-32 27.7,16 -27.7,16' fill='none' stroke='%2360a5fa' stroke-width='1.5' opacity='0.8'/>\
<polygon points='0,32 27.7,-16 -27.7,-16' fill='none' stroke='%2360a5fa' stroke-width='1.5' opacity='0.8'/>\
<path d='M 0,-10 C 15,-10 22,8 22,15 C 22,25 12,28 0,28 C -12,28 -22,25 -22,15 C -22,8 -15,-10 0,-10 Z' fill='url(%23slime_blue)' stroke='%23e0f2fe' stroke-width='1.5'/>\
<ellipse cx='-7' cy='12' rx='2.5' ry='4' fill='%23fff'/>\
<ellipse cx='7' cy='12' rx='2.5' ry='4' fill='%23fff'/>\
<path d='M -45 0 A 45 45 0 0 1 0 -45' fill='none' stroke='%23fbbf24' stroke-width='1.5'/>\
<path d='M 45 0 A 45 45 0 0 1 0 45' fill='none' stroke='%23a855f7' stroke-width='1.5'/>\
</g>\
</svg>") center / contain no-repeat;
    
    /* 魔素高光晕滤镜 */
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.4));
    
    /* 关键：旋转动画 + 魔素脉动 */
    animation: 
        slime-magic-spin 6s linear infinite,
        slime-aura-glow 2s ease-in-out infinite alternate;
    
    z-index: 2;
    pointer-events: none;
    transform-origin: center center;
}

/* 3. 魔法阵徽记旋转动画 */
@keyframes slime-magic-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 4. 魔法阵光晕脉动 (史莱姆水蓝与暴风紫蓝交替) */
@keyframes slime-aura-glow {
    0% { 
        filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5)) drop-shadow(0 0 8px rgba(14, 165, 233, 0.3));
    }
    100% { 
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 1)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 30px rgba(56, 189, 248, 0.5));
    }
}

/* 5. 核心：动态台词区 */
.flex.items-center.justify-center.size-6::after {
    content: ""; 
    display: block;
    width: 100%;
    /* 关键：上边距留出 100px 给系统提示栏(22px) + 魔法阵徽记(60px) + 间距(18px) */
    padding: 100px 12px 12px 12px;
    
    /* 字体与排版 */
    font-family: 'Georgia', 'Songti SC', serif !important;
    font-size: 13.5px;
    line-height: 1.6;
    color: #0f172a; /* 史莱姆淡色背景上的深邃石板蓝 */
    text-align: left !important;
    font-style: italic;
    
    /* ★★★ 优化修复：加粗字重与强化白边发光，无惧复杂背景吃字 ★★★ */
    font-weight: 500 !important; 
    text-shadow: 
        0 1px 1px rgba(255, 255, 255, 1),
        0 0 4px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 255, 255, 0.7) !important;
    
    /* 关键修复：强制换行 */
    white-space: normal !important; 
    word-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    
    /* 防止被外部样式覆盖 */
    text-transform: none !important;
    letter-spacing: normal !important;
    
    position: relative;
    z-index: 3;
    
    /* 双重动画：台词轮播 + 文字呼吸 */
    animation: 
        slime-quote-cycle 32s infinite step-end,
        slime-text-breath 3s ease-in-out infinite;
}

/* 6. 添加轻微的文字闪烁效果，增强大贤者演算感 */
@keyframes slime-text-breath {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 1px 1px rgba(255, 255, 255, 1), 0 0 6px rgba(255, 255, 255, 0.9), 0 0 8px rgba(56, 189, 248, 0.3); 
    }
    50% { 
        opacity: 0.88; 
        text-shadow: 0 1px 1px rgba(255, 255, 255, 1), 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(168, 85, 247, 0.3); 
    }
}

/* 7. 台词内容轮播动画 (转生史莱姆经典金句回溯) */
@keyframes slime-quote-cycle {
    0%   { content: "《告》解析鉴定完毕。确认个体名为：利姆鲁·特恩佩斯特。 ——大贤者"; }
    12.5% { content: "「我并不是什么邪恶的史莱姆哟！」 ——利姆鲁"; }
    25%  { content: "「我的盟友啊，去吞噬一切吧！以我暴风龙维鲁德拉之名！」 ——维鲁德拉"; }
    37.5% { content: "「只要是利姆鲁大人的命令，哪怕是毁灭世界，我也在所不辞。」 ——迪亚波罗"; }
    50%  { content: "「利姆鲁大人，请尽情享用我做的料理吧（微笑）！」 ——紫苑"; }
    62.5% { content: "《告》满足特定条件。独有技能『大贤者』进化为究极技能『智慧之王(拉斐尔)』。 ——系统音"; }
    75%  { content: "「能在这个世界遇到你们，或许是我转生后最大的幸运。」 ——利姆鲁"; }
    87.5% { content: "「建国吧！建立一个人类与魔物能和平共处的理想国度！」 ——利姆鲁"; }
}

/* 8. 边框呼吸动画 (魔素之力脉冲) */
@keyframes slime-border-pulse {
    0% { 
        border-bottom: 2px solid rgba(14, 165, 233, 0.3); 
        box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.08), 0 2px 8px rgba(14, 165, 233, 0.15);
    }
    50% { 
        border-bottom: 2px solid rgba(168, 85, 247, 0.6); 
        box-shadow: 
            inset 0 0 25px rgba(14, 165, 233, 0.15), 
            0 4px 18px rgba(56, 189, 248, 0.35),
            inset 0 40px 50px -25px rgba(168, 85, 247, 0.15);
    }
    100% { 
        border-bottom: 2px solid rgba(14, 165, 233, 0.3); 
        box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.08), 0 2px 8px rgba(14, 165, 233, 0.15);
    }
}

/* 9. 移动端字体微调 */
@media (max-width: 768px) {
    .flex.items-center.justify-center.size-6 {
        min-height: 120px !important;
        margin: 6px 0 !important;
    }
    
    .flex.items-center.justify-center.size-6::before {
        top: 30px;
        width: 52px;
        height: 52px;
        margin-left: -26px;
    }
    
    .flex.items-center.justify-center.size-6::after {
        font-size: 12.5px;
        line-height: 1.5;
        padding: 92px 10px 10px 10px;
    }
}

/* 10. 超小屏幕设备适配 */
@media (max-width: 480px) {
    .flex.items-center.justify-center.size-6 {
        min-height: 110px !important;
    }
    .flex.items-center.justify-center.size-6::before {
        top: 28px;
        width: 46px;
        height: 46px;
        margin-left: -23px;
    }
    .flex.items-center.justify-center.size-6::after {
        font-size: 11.5px;
        line-height: 1.4;
        padding: 82px 10px 10px 10px;
    }
}

/* 11. 高对比度模式适配 */
@media (prefers-contrast: high) {
    .flex.items-center.justify-center.size-6::after {
        color: #000000 !important;
        text-shadow: none !important;
    }
}

/* 12. 减少动画偏好用户的关怀模式 */
@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.size-6::before {
        animation: slime-magic-spin 30s linear infinite, slime-aura-glow 4s ease-in-out infinite alternate;
    }
}