/* ============================================
   赛博地府 · 黑白无常 · 聊天框
   ============================================ */

/* 隐藏平台默认加载动画 */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}

/* 隐藏顶部颜色装饰条 */
[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* ---------- 主聊天框：半透明磨砂黑玻璃 ---------- */
.bg-gray-100\/90.relative.inline-block {
    background: rgba(8, 8, 12, 0.55) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-shadow:
        0 12px 42px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55) !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
    margin-left: 42px !important;
    margin-right: 40px !important;
}

/* ---------- 左侧：黑色锁链 + 铃铛（SMIL 轻摆） ---------- */
.bg-gray-100\/90.relative.inline-block::before {
    content: '' !important;
    position: absolute !important;
    top: -12px !important;
    left: -38px !important;
    width: 34px !important;
    height: calc(100% + 26px) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 240' preserveAspectRatio='xMidYMax meet'><g stroke='%230a0a0a' stroke-width='2.2' fill='none'><ellipse cx='20' cy='10' rx='5.5' ry='9'/><ellipse cx='20' cy='28' rx='9' ry='5.5'/><ellipse cx='20' cy='46' rx='5.5' ry='9'/><ellipse cx='20' cy='64' rx='9' ry='5.5'/><ellipse cx='20' cy='82' rx='5.5' ry='9'/><ellipse cx='20' cy='100' rx='9' ry='5.5'/><ellipse cx='20' cy='118' rx='5.5' ry='9'/><ellipse cx='20' cy='136' rx='9' ry='5.5'/><ellipse cx='20' cy='154' rx='5.5' ry='9'/><ellipse cx='20' cy='172' rx='9' ry='5.5'/><ellipse cx='20' cy='190' rx='5.5' ry='9'/></g><g transform='translate(20 198)'><animateTransform attributeName='transform' type='rotate' values='0;-11;0;11;0' keyTimes='0;0.25;0.5;0.75;1' dur='3.4s' repeatCount='indefinite' additive='sum'/><line x1='0' y1='0' x2='0' y2='4' stroke='%230a0a0a' stroke-width='1'/><path d='M-9 4 Q-9 -4 0 -4 Q9 -4 9 4 L11 15 L-11 15 Z' fill='%23161616' stroke='%23555' stroke-width='0.6'/><ellipse cx='0' cy='8' rx='6' ry='2.4' fill='none' stroke='%23444' stroke-width='0.4'/><line x1='-11' y1='15' x2='11' y2='15' stroke='%23555' stroke-width='0.4'/><line x1='0' y1='15' x2='0' y2='17' stroke='%23555' stroke-width='0.6'/><circle cx='0' cy='19.5' r='2.6' fill='%230a0a0a' stroke='%23666' stroke-width='0.4'/></g></svg>") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
    z-index: 2 !important;
    filter: drop-shadow(1px 2px 5px rgba(0, 0, 0, 0.9)) !important;
}

/* ---------- 右侧：白幡（SMIL 轻拂动） ---------- */
.bg-gray-100\/90.relative.inline-block::after {
    content: '' !important;
    position: absolute !important;
    top: -16px !important;
    right: -36px !important;
    width: 32px !important;
    height: calc(100% + 42px) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 240' preserveAspectRatio='xMidYMin meet'><line x1='20' y1='0' x2='20' y2='12' stroke='%23888' stroke-width='0.8'/><line x1='5' y1='12' x2='35' y2='12' stroke='%23999' stroke-width='2'/><circle cx='5' cy='12' r='1.7' fill='%23bbb'/><circle cx='35' cy='12' r='1.7' fill='%23bbb'/><g><animateTransform attributeName='transform' type='skewX' values='0;3.2;0;-3.2;0' keyTimes='0;0.25;0.5;0.75;1' dur='5s' repeatCount='indefinite'/><path d='M10 12 L30 12 L30 202 L20 220 L10 202 Z' fill='%23f4f4ee' fill-opacity='0.92' stroke='%23bbb' stroke-width='0.6'/><text x='20' y='42' font-family='STKaiti, KaiTi, serif' font-size='11' font-weight='700' fill='%230a0a0a' text-anchor='middle'>魂</text><text x='20' y='68' font-family='STKaiti, KaiTi, serif' font-size='11' font-weight='700' fill='%230a0a0a' text-anchor='middle'>兮</text><text x='20' y='94' font-family='STKaiti, KaiTi, serif' font-size='11' font-weight='700' fill='%230a0a0a' text-anchor='middle'>归</text><text x='20' y='120' font-family='STKaiti, KaiTi, serif' font-size='11' font-weight='700' fill='%230a0a0a' text-anchor='middle'>来</text><text x='20' y='150' font-family='STKaiti, KaiTi, serif' font-size='12' font-weight='700' fill='%23a00' text-anchor='middle'>令</text><path d='M12 202 L14 217 L17 206' fill='none' stroke='%23888' stroke-width='0.6'/><path d='M23 206 L26 217 L28 202' fill='none' stroke='%23888' stroke-width='0.6'/></g></svg>") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
    z-index: 2 !important;
    filter: drop-shadow(-1px 2px 4px rgba(0, 0, 0, 0.85)) !important;
}

/* ---------- 主要文本 ---------- */
.markdown-body {
    color: #F0F0F0 !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    font-family: "STKaiti", "KaiTi", "Noto Serif SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", serif !important;
    line-height: 1.88 !important;
    letter-spacing: 0.02em !important;
}
.markdown-body strong,
.markdown-body b {
    color: #FFFFFF !important;
    font-weight: bold !important;
}
.markdown-body em,
.markdown-body i {
    color: #D0D0DC !important;
}
.markdown-body code {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #C8E8FF !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.markdown-body a {
    color: #C8E8FF !important;
}
.markdown-body blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.25) !important;
    color: #C8C8D8 !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

/* ---------- 底部：按钮 / 模型名 / Token ---------- */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #EAEAEA !important;
}
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #EAEAEA !important;
    opacity: 0.9 !important;
}
.text-orange-500 {
    color: #EAEAEA !important;
    opacity: 0.75 !important;
}

/* ================================
   移动端缩放优化补丁
   保持原设计与动画完全不变，仅令尺寸随视口平滑缩放
   ============================================ */

/* 主聊天框：边距随视口宽度线性收缩 */
.bg-gray-100\/90.relative.inline-block {
    box-sizing: border-box !important;
    margin-left: clamp(22px, 7.5vw, 42px) !important;
    margin-right: clamp(20px, 7vw, 40px) !important;
}

/* 左侧锁链：宽度、外偏移随视口同步缩放 */
.bg-gray-100\/90.relative.inline-block::before {
    width: clamp(20px, 6.5vw, 34px) !important;
    left: calc(-1 * clamp(22px, 7vw, 38px)) !important;
    height: calc(100% + clamp(18px, 5vw, 26px)) !important;
}

/* 右侧白幡：宽度、外偏移随视口同步缩放 */
.bg-gray-100\/90.relative.inline-block::after {
    width: clamp(20px, 6.2vw, 32px) !important;
    right: calc(-1 * clamp(20px, 6.5vw, 36px)) !important;
    height: calc(100% + clamp(28px, 7vw, 42px)) !important;
}

/* 覆盖原 480px 硬断点：改用 clamp 后不需要跳变式缩放 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        margin-left: clamp(22px, 7.5vw, 42px) !important;
        margin-right: clamp(20px, 7vw, 40px) !important;
    }
    .bg-gray-100\/90.relative.inline-block::before {
        width: clamp(20px, 6.5vw, 34px) !important;
        left: calc(-1 * clamp(22px, 7vw, 38px)) !important;
    }
    .bg-gray-100\/90.relative.inline-block::after {
        width: clamp(20px, 6.2vw, 32px) !important;
        right: calc(-1 * clamp(20px, 6.5vw, 36px)) !important;
    }
    .flex.items-center.justify-center.w-6.h-5 {
        width: clamp(46px, 13vw, 64px) !important;
        height: clamp(46px, 13vw, 64px) !important;
    }
    .flex.items-center.justify-center.w-6.h-5::before {
        width: clamp(40px, 11.5vw, 58px) !important;
        height: clamp(40px, 11.5vw, 58px) !important;
    }
}

/* 超窄屏保底（≤340px 老设备） */
@media (max-width: 340px) {
    .bg-gray-100\/90.relative.inline-block {
        margin-left: 20px !important;
        margin-right: 18px !important;
    }
    .bg-gray-100\/90.relative.inline-block::before {
        width: 18px !important;
        left: -20px !important;
    }
    .bg-gray-100\/90.relative.inline-block::after {
        width: 18px !important;
        right: -18px !important;
    }
}

/* ============================================
   赛博地府 · 黑白无常 · 界面美化 (双层适配版)
   ============================================ */

/* ========== 顶部栏 · 鬼门关门楼 ========== */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.72) 0%, rgba(21, 21, 34, 0.85) 100%),
              url("https://catai.wiki/93ceca91-b5fc-4471-3aad-f031b7f26000/w=3000") center/cover no-repeat !important;
  border-bottom: 1px solid rgba(181, 107, 255, 0.35) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2),
              0 2px 0 rgba(0, 229, 255, 0.12) !important;
  position: relative !important;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif !important;
  background-blend-mode: normal, luminosity !important;
}

.sticky.w-full.top-0.flex.items-center::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff 30%, #b56bff 70%, transparent);
  opacity: 0.75;
  pointer-events: none;
}

.sticky.w-full.top-0.flex.items-center::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
  pointer-events: none;
}

/* 模型选择器 */
#ai-model-selector .group.flex.items-center {
  background: rgba(20, 20, 32, 0.55) !important;
  border: 1px solid rgba(181, 107, 255, 0.4) !important;
  border-radius: 8px !important;
  padding: 4px 12px !important;
  backdrop-filter: blur(6px) !important;
  transition: all 0.3s ease !important;
  box-shadow: inset 0 0 8px rgba(181, 107, 255, 0.12), 0 0 10px rgba(0, 0, 0, 0.35) !important;
}
#ai-model-selector .group.flex.items-center:hover {
  border-color: rgba(0, 229, 255, 0.6) !important;
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.15), 0 0 14px rgba(0, 229, 255, 0.25) !important;
}
#ai-model-selector .truncate.text-\[13px\] {
  color: #f0f0fa !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 8px rgba(181, 107, 255, 0.55) !important;
  font-family: "STKaiti", "KaiTi", serif !important;
}
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #00e5ff !important;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.65));
  transition: transform 0.3s ease;
}
#ai-model-selector .group.flex.items-center:hover svg {
  transform: translateY(2px);
}

/* 历史图标 (白无常·清冷) */
.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #f5f6fa !important;
  filter: drop-shadow(0 0 6px rgba(245, 246, 250, 0.75));
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sticky.w-full.top-0 svg.lucide-clock-8:hover {
  transform: rotate(20deg) scale(1.15);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.9));
}

/* 未读角标 · 血滴 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: #ff3d3d !important;
  box-shadow: 0 0 8px rgba(255, 61, 61, 0.85), 0 0 14px rgba(255, 61, 61, 0.4) !important;
  animation: bloodPulse 1.6s ease-in-out infinite;
}
@keyframes bloodPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.35); }
}

/* 音乐按钮 (黑无常·幽紫) */
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #b56bff !important;
  filter: drop-shadow(0 0 5px rgba(181, 107, 255, 0.65));
}

/* 移动端设置图标 */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #b8a8ff !important;
  filter: drop-shadow(0 0 4px rgba(184, 168, 255, 0.65));
  transition: transform 0.4s ease;
}
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  transform: rotate(90deg);
}

/* 设置按钮 */
#header-setting-button {
  background: rgba(20, 20, 32, 0.55) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 8px !important;
  transition: all 0.4s ease !important;
  box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.1) !important;
}
#header-setting-button:hover {
  border-color: rgba(0, 229, 255, 0.7) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45), inset 0 0 12px rgba(0, 229, 255, 0.2) !important;
}
#header-setting-button svg {
  color: #00e5ff !important;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.65));
  transition: transform 0.5s ease;
}
#header-setting-button:hover svg {
  transform: rotate(120deg);
}

/* ========== 按钮栏 · 阴阳双伞 ========== */
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, rgba(30, 28, 45, 0.9), rgba(20, 20, 32, 0.95)) !important;
  border: 1px solid rgba(181, 107, 255, 0.35) !important;
  color: #e8e8f0 !important;
  border-radius: 8px !important;
  font-family: "STKaiti", "KaiTi", serif !important;
  letter-spacing: 1.5px !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: inset 0 0 8px rgba(139, 92, 246, 0.12), 0 3px 8px rgba(0, 0, 0, 0.45) !important;
  text-shadow: 0 0 6px rgba(181, 107, 255, 0.45) !important;
  position: relative;
  overflow: hidden;
}
#ai-mod-button2 button.MuiButton-root::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.15), transparent);
  transition: left 0.6s ease;
}
#ai-mod-button2 button.MuiButton-root:hover::before {
  left: 100%;
}
#ai-mod-button2 button.MuiButton-root:hover {
  border-color: rgba(0, 229, 255, 0.65) !important;
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.18), 0 5px 14px rgba(0, 229, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.7) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
  filter: drop-shadow(0 0 4px rgba(181, 107, 255, 0.6));
  transition: all 0.35s ease;
}
#ai-mod-button2 button.MuiButton-root:hover svg {
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.85));
  transform: scale(1.1);
}

/* ========== 底部栏 · 幽冥之门 ========== */
.bg-gradient-to-t.bg-gradient-to-t.bg-gradient-to-t {
  background: transparent !important;
  border: 0 !important;
  border-top: 0 none transparent !important;
  border-bottom: 0 !important;
  border-image: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.bg-gradient-to-t.bg-gradient-to-t.bg-gradient-to-t::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('https://catai.wiki/8c61f0a9-704c-4413-7f73-6f4b04a8a500/w=3000') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.9) 60%, #000 100%) !important;
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.9) 60%, #000 100%) !important;
  -webkit-mask-size: 100% 100% !important;
          mask-size: 100% 100% !important;
  -webkit-mask-repeat: no-repeat !important;
          mask-repeat: no-repeat !important;
  pointer-events: none !important;
  border: 0 !important;
  opacity: 0.95 !important;
}

.bg-gradient-to-t.bg-gradient-to-t.bg-gradient-to-t::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

/* ============================================
   ★ 核心更新：输入框内外双层设计与日夜间动态适配 ★
   ============================================ */

/* 1. 外壳容器 (Outer Layer) */
#ai-chat-bottom-input {
  /* 默认夜间外壳 */
  background: linear-gradient(135deg, rgba(20, 20, 32, 0.98), rgba(30, 28, 45, 0.98)) !important;
  border: 1px solid rgba(181, 107, 255, 0.4) !important;
  border-radius: 12px !important;
  padding: 6px 8px !important; /* 【新增】挤压出内边距，形成双层嵌套感 */
  box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.12),
              0 6px 22px rgba(0, 0, 0, 0.65),
              0 0 12px rgba(0, 229, 255, 0.15) !important;
  transition: all 0.35s ease !important;
  position: relative !important;
}
/* 顶部紫青流光装饰 */
#ai-chat-bottom-input::before {
  content: "☯";
  position: absolute;
  top: -11px;
  left: 14px;
  color: #b56bff;
  font-size: 14px;
  background: #14141e;
  padding: 0 8px;
  text-shadow: 0 0 8px rgba(181, 107, 255, 0.85);
  pointer-events: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
#ai-chat-bottom-input:focus-within {
  border-color: rgba(0, 229, 255, 0.65) !important;
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.12),
              0 0 28px rgba(0, 229, 255, 0.3),
              0 6px 22px rgba(0, 0, 0, 0.65) !important;
}

/* 2. 内部输入框 (Inner Layer) */
#ai-chat-input {
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif !important;
  font-size: 14.5px !important;
  letter-spacing: 0.5px !important;
  caret-color: #00e5ff !important;
  /* 默认夜间内层样式 */
  background: rgba(10, 10, 18, 0.5) !important; /* 独立内层深色底 */
  border: 1px solid rgba(0, 229, 255, 0.25) !important; /* 独立内层青边 */
  border-radius: 8px !important;
  padding: 8px 14px !important;
  color: #e8e8f0 !important; /* 夜间浅色字 */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
}
#ai-chat-input:focus {
  background: rgba(10, 10, 18, 0.7) !important;
  border-color: rgba(0, 229, 255, 0.6) !important;
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.15) !important;
}
#ai-chat-input::placeholder {
  color: rgba(168, 168, 192, 0.5) !important;
  font-style: italic !important;
  letter-spacing: 1.5px !important;
}
#ai-chat-input::selection {
  background: rgba(181, 107, 255, 0.45) !important;
  color: #fff !important;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.85) !important;
}

/* 3. 白天模式动态覆写 (Day Mode Override - 解决浅色字看不清) */
html:not(.dark) #ai-chat-bottom-input {
  /* 白天模式下，外壳整体变明亮 */
  background: linear-gradient(135deg, rgba(240, 240, 245, 0.95), rgba(230, 230, 240, 0.95)) !important;
  border-color: rgba(181, 107, 255, 0.6) !important;
  box-shadow: inset 0 0 15px rgba(181, 107, 255, 0.1),
              0 4px 15px rgba(0, 0, 0, 0.15) !important;
}
html:not(.dark) #ai-chat-bottom-input::before {
  background: #f0f0f5 !important; /* 适配白天底色 */
  color: #8b5cf6 !important;
  text-shadow: none !important;
}
html:not(.dark) #ai-chat-input {
  /* 白天模式下，内层变浅，文字强制深色 */
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(181, 107, 255, 0.4) !important;
  color: #1a1a24 !important; /* 强制深色字，绝对清晰 */
  font-weight: 600 !important;
  box-shadow: inset 0 0 8px rgba(181, 107, 255, 0.08) !important;
  caret-color: #8b5cf6 !important; /* 光标转为深紫色 */
}
html:not(.dark) #ai-chat-input:focus {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(181, 107, 255, 0.8) !important;
  box-shadow: inset 0 0 12px rgba(181, 107, 255, 0.15) !important;
}
html:not(.dark) #ai-chat-input::placeholder {
  color: rgba(80, 80, 100, 0.6) !important; /* 白天模式下加深占位符 */
}


/* ========== 评论区 · 奈何桥畔 ========== */
div[class*="bottom-0"][class*="w-full"][class*="bg-white"],
div[class*="bottom-0"][class*="w-full"] {
  background-image:
    linear-gradient(180deg, rgba(16, 16, 24, 0.75), rgba(21, 21, 34, 0.85)),
    url('https://catai.wiki/7b3a2b34-05f5-4242-09cd-70409ecbcc00/w=3000') !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-attachment: scroll, scroll !important;
  border-top: 1px solid rgba(181, 107, 255, 0.35) !important;
  color: #e8e8f0 !important;
}

/* 评论列表内层容器 */
div[class*="bottom-0"][class*="w-full"] div.p-3.overflow-y-auto {
  background: linear-gradient(180deg, rgba(20, 20, 32, 0.4), rgba(16, 16, 24, 0.55)) !important;
  border: 1px solid rgba(139, 92, 246, 0.28) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 24px rgba(139, 92, 246, 0.1) !important;
}

/* ★ 评论卡片 · 判官卷宗 ★ */
div[class*="bottom-0"][class*="w-full"] div.group.ml-0 {
  background:
    linear-gradient(135deg, rgba(30, 28, 45, 0.94), rgba(20, 20, 32, 0.96)),
    repeating-linear-gradient(0deg, rgba(181, 107, 255, 0.05), rgba(181, 107, 255, 0.05) 16px, transparent 16px, transparent 17px) !important;
  border: 1px solid rgba(181, 107, 255, 0.35) !important;
  border-left: 3px solid rgba(181, 107, 255, 0.7) !important;
  border-radius: 10px !important;
  padding: 14px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55),
              inset 0 0 14px rgba(139, 92, 246, 0.1),
              3px 3px 0 rgba(10, 10, 18, 0.75) !important;
  position: relative !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
div[class*="bottom-0"][class*="w-full"] div.group.ml-0::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 107, 255, 0.55), rgba(0, 229, 255, 0.55), transparent);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}
div[class*="bottom-0"][class*="w-full"] div.group.ml-0:hover {
  border-color: rgba(0, 229, 255, 0.55) !important;
  border-left-color: rgba(0, 229, 255, 0.85) !important;
  box-shadow: 0 8px 22px rgba(0, 229, 255, 0.18),
              inset 0 0 16px rgba(0, 229, 255, 0.1),
              3px 3px 0 rgba(10, 10, 18, 0.75) !important;
  transform: translateY(-2px);
}

/* 头像 · 魂灯 */
div[class*="bottom-0"][class*="w-full"] div.group img.rounded-full {
  border: 2px solid rgba(181, 107, 255, 0.55) !important;
  padding: 2px !important;
  background-color: #14141e !important;
  box-shadow: 0 0 10px rgba(181, 107, 255, 0.45),
              inset 0 0 4px rgba(139, 92, 246, 0.4) !important;
  transition: all 0.35s ease !important;
}
div[class*="bottom-0"][class*="w-full"] div.group img.rounded-full:hover {
  border-color: rgba(0, 229, 255, 0.75) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.65) !important;
  transform: scale(1.05) rotate(-3deg);
}

/* 用户名 */
div[class*="bottom-0"][class*="w-full"] div.text-sm.text-grey-600 span.font-bold {
  color: #f0f0fa !important;
  font-family: "STKaiti", "KaiTi", serif !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-shadow: 0 0 6px rgba(181, 107, 255, 0.55), 0 1px 2px rgba(0, 0, 0, 0.85) !important;
  display: inline-flex !important;
  align-items: center !important;
}
div[class*="bottom-0"][class*="w-full"] div.text-sm.text-grey-600 span.font-bold::before {
  content: "☬";
  margin-right: 6px !important;
  color: #b56bff !important;
  font-size: 0.95em;
  text-shadow: 0 0 6px rgba(181, 107, 255, 0.8);
}

/* (你) 标签 */
div[class*="bottom-0"][class*="w-full"] span.text-\[10px\] {
  color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.12) !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.6) !important;
  font-family: "STKaiti", "KaiTi", serif !important;
}

/* 评论正文 */
div[class*="bottom-0"][class*="w-full"] div.break-all {
  color: #d8d8e8 !important;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif !important;
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  letter-spacing: 0.6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 时间戳 */
div[class*="bottom-0"][class*="w-full"] div.text-xs.text-grey-600 {
  color: rgba(168, 168, 192, 0.65) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
}

/* 点赞 · 勾魂红 */
div[class*="bottom-0"][class*="w-full"] button.text-gray-400 {
  color: #a8a8c0 !important;
  transition: all 0.3s ease !important;
}
div[class*="bottom-0"][class*="w-full"] button.text-gray-400 svg {
  transition: all 0.3s ease !important;
}
div[class*="bottom-0"][class*="w-full"] button.text-gray-400:hover {
  color: #ff3d6b !important;
}
div[class*="bottom-0"][class*="w-full"] button.text-gray-400:hover svg {
  color: #ff3d6b !important;
  filter: drop-shadow(0 0 6px rgba(255, 61, 107, 0.7));
  transform: scale(1.18);
}

/* 回复 */
div[class*="bottom-0"][class*="w-full"] span.cursor-pointer {
  color: #b56bff !important;
  font-family: "STKaiti", "KaiTi", serif !important;
  letter-spacing: 0.8px !important;
  border-bottom: 1px dashed rgba(181, 107, 255, 0.5) !important;
  text-shadow: 0 0 4px rgba(181, 107, 255, 0.4) !important;
  transition: all 0.3s ease !important;
}
div[class*="bottom-0"][class*="w-full"] span.cursor-pointer:hover {
  color: #00e5ff !important;
  border-bottom-color: rgba(0, 229, 255, 0.7) !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6) !important;
}

/* 回复嵌套 */
div[class*="bottom-0"][class*="w-full"] div.ml-8.border-l {
  border-left: 2px dashed rgba(181, 107, 255, 0.45) !important;
  padding-left: 12px !important;
  margin-top: 10px !important;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent 60%) !important;
}

/* 卡片外圈幽光呼吸 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.group.ml-0 {
  animation: soulBreath 4s ease-in-out infinite;
}
@keyframes soulBreath {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 0 14px rgba(139, 92, 246, 0.08), 0 0 0 rgba(0, 229, 255, 0); }
  50% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 0 14px rgba(139, 92, 246, 0.08), 0 0 12px rgba(0, 229, 255, 0.15); }
}

/* ========== 发送按钮 · 紫青太极 ========== */
div[class*="bottom-0"][class*="w-full"] div[data-state="closed"] svg[data-icon="Send03"] {
  display: none !important;
}

div[class*="bottom-0"][class*="w-full"] div.cursor-pointer.group.flex.items-center.justify-center {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='46' fill='%23e8e8f0' stroke='%23b56bff' stroke-width='4'/><path d='M50 4 a46 46 0 0 1 0 92 a23 23 0 0 1 0 -46 a23 23 0 0 0 0 -46' fill='%2314141e'/><circle cx='50' cy='27' r='7' fill='%23e8e8f0'/><circle cx='50' cy='73' r='7' fill='%2314141e'/></svg>") !important;
  background-size: 24px 24px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(181, 107, 255, 0.5) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 0 10px rgba(181, 107, 255, 0.4) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

div[class*="bottom-0"][class*="w-full"] div.cursor-pointer.group.flex.items-center.justify-center:hover {
  transform: rotate(180deg) scale(1.1) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6) !important;
  border-color: rgba(0, 229, 255, 0.8) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='46' fill='%23e8e8f0' stroke='%2300e5ff' stroke-width='4'/><path d='M50 4 a46 46 0 0 1 0 92 a23 23 0 0 1 0 -46 a23 23 0 0 0 0 -46' fill='%2314141e'/><circle cx='50' cy='27' r='7' fill='%23e8e8f0'/><circle cx='50' cy='73' r='7' fill='%2314141e'/></svg>") !important;
}

/* ========== 发送按钮 · 紫青太极 ========== */
/* 隐藏默认的发送箭头 */
div[class*="bottom-0"][class*="w-full"] div[data-state="closed"] svg[data-icon="Send03"] {
  display: none !important;
}

/* 将发送按钮容器改为太极图案 (默认紫边) */
div[class*="bottom-0"][class*="w-full"] div.cursor-pointer.group.flex.items-center.justify-center {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='46' fill='%23e8e8f0' stroke='%23b56bff' stroke-width='4'/><path d='M50 4 a46 46 0 0 1 0 92 a23 23 0 0 1 0 -46 a23 23 0 0 0 0 -46' fill='%2314141e'/><circle cx='50' cy='27' r='7' fill='%23e8e8f0'/><circle cx='50' cy='73' r='7' fill='%2314141e'/></svg>") !important;
  background-size: 24px 24px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(181, 107, 255, 0.5) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 0 10px rgba(181, 107, 255, 0.4) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 悬停时太极流转 (青边) */
div[class*="bottom-0"][class*="w-full"] div.cursor-pointer.group.flex.items-center.justify-center:hover {
  transform: rotate(180deg) scale(1.1) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6) !important;
  border-color: rgba(0, 229, 255, 0.8) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='46' fill='%23e8e8f0' stroke='%2300e5ff' stroke-width='4'/><path d='M50 4 a46 46 0 0 1 0 92 a23 23 0 0 1 0 -46 a23 23 0 0 0 0 -46' fill='%2314141e'/><circle cx='50' cy='27' r='7' fill='%23e8e8f0'/><circle cx='50' cy='73' r='7' fill='%2314141e'/></svg>") !important;
}

/* ============================================
   补丁：输入框内层深紫色背景
   ============================================ */
#ai-chat-input {
  /* 替换原本的偏黑底色为幽冥深紫 */
  background: rgba(38, 18, 53, 0.65) !important; 
}

#ai-chat-input:focus {
  /* 聚焦时加深紫色，增强层次感 */
  background: rgba(48, 22, 68, 0.85) !important; 
}

/* ========== 全局基调 (底层取消框套框，极度舒展) ========== */
ai {
  display: block; max-width: 800px; margin: 20px auto; padding: 10px 4px;
  color: #e8e8f0;
  font-family: "STKaiti", "KaiTi", "FZXingKai-Z04", "Noto Serif SC", "Songti SC", serif;
  font-size: 14.5px; line-height: 1.8; letter-spacing: 0.02em;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ========== 正文 <tx> (独立的悬浮卡片感) ========== */
tx { 
  display: block; padding: 18px 14px; margin: 10px 0 20px; 
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"),
              rgba(20, 20, 28, 0.8);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); 
}
tx p { 
  margin: 0 0 16px; text-indent: 2em; line-height: 1.95; 
  color: #a3a3b5; font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif; 
  text-shadow: 0 1px 1px rgba(0,0,0,0.5); 
}

/* ========== 顶部状态栏 <hd> (+全局全息滤镜) ========== */
hd {
  display: block; margin-bottom: 24px; padding: 16px 20px;
  background: linear-gradient(135deg, rgba(20, 20, 32, 0.9), rgba(15, 15, 25, 0.7));
  border: 1px solid #2a2a3e; border-radius: 10px; position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); overflow: hidden;
}
hd::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff, #b56bff, transparent); opacity: 0.7; z-index: 2;
}
hd::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(181, 107, 255, 0.08) 1px, transparent 1px),
              radial-gradient(circle at 100% 0%, rgba(0, 229, 255, 0.06), transparent 60%);
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: screen; pointer-events: none; z-index: 1;
}

.hd-top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px dashed rgba(139, 92, 246, 0.2); padding-bottom: 14px; margin-bottom: 14px; position: relative; z-index: 3; }
.hd-left { display: flex; flex-direction: column; justify-content: center; border-left: 3px solid #b56bff; padding-left: 12px; }
.motto-l1 { font-size: 18px; color: #b56bff; font-weight: bold; letter-spacing: 2px; text-shadow: 0 0 8px rgba(181, 107, 255, 0.5); }
.motto-l2 { font-size: 13.5px; color: #9d4edd; letter-spacing: 1px; margin-top: 4px; }
.hd-right { text-align: right; font-family: "JetBrains Mono", monospace; position: relative; z-index: 3; }
.r-row1 { font-size: 12px; color: #00e5ff; opacity: 0.8; }
.r-row2 { font-size: 16px; font-weight: 600; color: #e8e8f0; margin: 6px 0; display: flex; align-items: center; justify-content: flex-end; }
.red-line { display: inline-block; width: 4px; height: 16px; background: #ff3d3d; margin-left: 10px; box-shadow: 0 0 8px rgba(255, 61, 61, 0.6); }
.r-row3 span { display: inline-block; background: rgba(0, 229, 255, 0.08); padding: 3px 8px; border-radius: 4px; font-size: 12px; color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.2); }
.chr-intro { font-size: 13.5px; color: #d8d8e8; margin-bottom: 6px; position: relative; z-index: 3; }
.chr-intro b { color: #7fffb0; }
.plot-sum { font-size: 13px; color: #9090a8; line-height: 1.6; position: relative; z-index: 3; }

/* ========== 心声 <mind> ========== */
mind { 
  display: flex; flex-direction: column; margin: 18px 0; 
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"), rgba(20, 20, 28, 0.8);
  border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.4); 
  border: 1px solid rgba(255,255,255,0.06); padding: 8px; 
}
mind m { 
  display: block; padding: 12px 16px; font-size: 13px; color: #b8b8d0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.04); line-height: 1.7; 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, transparent 90%);
  margin-bottom: 0; border-radius: 6px; 
  box-shadow: none; border-left: none; 
}
mind m:last-child { border-bottom: none; }
mind m::before { content: "【 " attr(w) " 】"; color: #7fffb0; font-weight: 500; margin-right: 6px; font-size: 12px; }
mind m:hover { transform: translateX(4px); }
mind m[w="谢必安"] { background: linear-gradient(90deg, rgba(0, 229, 255, 0.12) 0%, transparent 90%); }
mind m[w="谢必安"]:hover { background: linear-gradient(90deg, rgba(0, 229, 255, 0.22) 0%, transparent 90%); }
mind m[w="谢必安"]::before { color: #00e5ff; }
mind m[w="范无咎"] { background: linear-gradient(90deg, rgba(255, 61, 61, 0.1) 0%, transparent 90%); }
mind m[w="范无咎"]:hover { background: linear-gradient(90deg, rgba(255, 61, 61, 0.2) 0%, transparent 90%); }
mind m[w="范无咎"]::before { color: #ff3d3d; }

/* ========== 折叠模块 <details> ========== */
ai details { 
  margin: 14px 0; 
  background: linear-gradient(180deg, rgba(45, 42, 60, 0.65), rgba(30, 28, 42, 0.85));
  border: 1px solid rgba(181, 107, 255, 0.4); border-top: 1px solid rgba(181, 107, 255, 0.6); 
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05), 0 6px 15px rgba(0, 0, 0, 0.5); 
  border-radius: 8px; transition: all 0.35s ease; 
}
ai details:hover { border-color: rgba(181, 107, 255, 0.6); box-shadow: inset 0 2px 4px rgba(255,255,255,0.08), 0 8px 18px rgba(139, 92, 246, 0.15); }
ai details[open] { 
  border-color: rgba(0, 229, 255, 0.5); border-top: 1px solid rgba(0, 229, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 229, 255, 0.15); 
}

ai details > pro, ai details > .karma-wrap, ai details > mem, ai details > act {
  display: block !important; width: 100% !important; box-sizing: border-box !important;
  padding: 26px 18px 24px !important; 
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
              rgba(18, 16, 26, 0.6) !important; 
  border-top: 1px solid rgba(0, 229, 255, 0.2) !important; 
  border-bottom-left-radius: 7px !important; border-bottom-right-radius: 7px !important;
}

ai details > npc {
  display: flex; flex-direction: row; gap: 16px; overflow-x: auto; overflow-y: hidden;
  padding: 26px 12px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
              rgba(18, 16, 26, 0.6); 
  border-top: 1px solid rgba(0, 229, 255, 0.2); 
  border-bottom-left-radius: 7px; border-bottom-right-radius: 7px;
}
ai details > npc::-webkit-scrollbar { height: 6px; }
ai details > npc::-webkit-scrollbar-track { background: rgba(10, 10, 18, 0.5); border-radius: 3px; border: 1px solid rgba(255,255,255,0.02); }
ai details > npc::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #1e1e32, #00e5ff); border-radius: 3px; box-shadow: inset 0 0 2px rgba(0,0,0,0.5); }

pro { padding: 0; } npc { padding: 0; } .karma-wrap { padding: 0 0 24px; } mem { padding: 0; } act { padding: 0; }

ai summary { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: pointer; background: transparent; position: relative; list-style: none; }
ai summary::-webkit-details-marker { display: none; }
ai summary b { font-size: 16px; color: #e8e8f0; font-weight: bold; letter-spacing: 2px; text-shadow: 0 0 10px rgba(181, 107, 255, 0.7); }
ai summary em { font-size: 11px; color: #a8a8c0; font-family: "JetBrains Mono", sans-serif; letter-spacing: 1px; margin-top: 4px; opacity: 0.6; font-style: normal; }

ai summary::before, ai summary::after {
  content: ""; position: absolute; top: 50%; margin-top: -6px; width: 10px; height: 10px; border: 1.5px solid #b56bff; transform: rotate(45deg); box-shadow: 0 0 6px rgba(181, 107, 255, 0.4); transition: all 0.35s ease;
}
ai summary::before { left: calc(50% - 90px); } ai summary::after { right: calc(50% - 90px); }
ai details[open] > summary::before, ai details[open] > summary::after { border-radius: 50%; transform: rotate(0deg); border-color: #00e5ff; box-shadow: 0 0 8px rgba(0, 229, 255, 0.6); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='5' y='5' width='6' height='6' fill='none' stroke='%2300e5ff' stroke-width='1.5' transform='rotate(45 8 8)'/></svg>"); background-size: 100%; }

/* ========== 内层面板基调 ========== */
.bars, .karma-box, npc card, priv, .mem-item, act d { background: rgba(42, 40, 56, 0.55); border: 1px solid rgba(255,255,255,0.06); }
.bars, .karma-box { margin: 16px 0 6px; padding: 14px; border-radius: 8px; transition: all 0.3s ease; }
.bars.soul { margin-top: 14px; }
.bars:hover, .karma-box:hover { background: rgba(48, 45, 65, 0.75); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(139, 92, 246, 0.1); transform: translateY(-2px); }

/* ========== 阳间过客 <pro> ========== */
/* 修复1：阳间过客的名字与正文分割虚线 (改为明显的紫色虚线) */
pro ph { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed rgba(181, 107, 255, 0.5); }
pro ph f { font-size: 20px; font-weight: 600; color: #fff; letter-spacing: 0.08em; }
pro ph t { padding: 3px 10px; font-size: 12px; color: #a8a8c0; background: rgba(139, 92, 246, 0.1); border-radius: 20px; }
pro ph tag { margin-left: auto; padding: 3px 10px; font-size: 11.5px; color: #ff9c6b; background: rgba(255, 61, 61, 0.08); border-radius: 4px; }
.pro-info { display: flex; flex-direction: column; gap: 6px; }

/* 修复2：强制将“身份：”、“外貌：”等标题字体变为青绿色 */
pro r, npc r { display: block; padding: 4px 0; font-size: 13.5px; line-height: 1.6; color: #c8c8d8; }
pro r b, npc r b { display: inline-block; color: #7fffb0 !important; font-weight: 500; font-size: 12.5px; margin-right: 4px; }
npc r i { font-size: 11.5px; opacity: 0.75; margin-left: 6px; }

/* 进度条与低饱和色彩修正 */
.bar-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12.5px; }
.bar-row > span:first-child { flex: 0 0 85px; color: #a8a8c0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .stage { flex: 0 0 auto; font-size: 11px; color: #b56bff; white-space: nowrap; }
.bar { flex: 1; min-width: 60px; position: relative; height: 14px; background: rgba(0, 0, 0, 0.6); border: 1px solid #2a2a3e; border-radius: 7px; overflow: hidden; }
.bar b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 10.5px; font-family: monospace; color: #fff; text-shadow: 0 0 4px #000; z-index: 3; pointer-events: none; white-space: nowrap; }
.fill { height: 100%; border-radius: 7px 0 0 7px; transition: width 0.6s ease; position: relative; overflow: hidden; }

/* 低饱和+柔和化 */
.fill.yang { background: linear-gradient(90deg, #d88c9a, #c4687b); box-shadow: inset 0 0 8px rgba(0,0,0,0.1); }
.fill.yin { background: linear-gradient(90deg, #74a9c1, #5678a7); box-shadow: inset 0 0 8px rgba(0,0,0,0.1); }
.fill.karma { background: linear-gradient(90deg, #84b399, #6a9ba6); box-shadow: inset 0 0 8px rgba(0,0,0,0.1); }
.fill.hun-bai { background: linear-gradient(90deg, #dcdde1, #f5f6fa); }
.fill.hun-hei { background: linear-gradient(90deg, #9c88ff, #8c7ae6); }
.fill.knot-bai { background: linear-gradient(90deg, #8a8aa8, #e0e8ff); }
.fill.knot-hei { background: linear-gradient(90deg, #2a2a3e, #6b3dff); }

/* ========== 伞下双魂 <npc> (加入胶囊标签) ========== */
npc card { flex: 0 0 92%; max-width: 330px; scroll-snap-align: center; display: flex; flex-direction: column; padding: 16px; border-radius: 8px; position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
npc card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 0 15px rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.5); background: rgba(48, 45, 65, 0.75); }
npc card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
npc card:has(f[sym="white"])::before { background: linear-gradient(90deg, transparent, #f5f6fa, transparent); }
npc card:has(f[sym="black"])::before { background: linear-gradient(90deg, transparent, #8c7ae6, transparent); }

/* 修复1：伞下双魂的名字与正文分割虚线 (改为明显的紫色虚线) */
npc ph { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed rgba(181, 107, 255, 0.5); }
.avatar { width: 50px; height: 50px; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center top; border: 1px solid rgba(255,255,255,0.2); }
npc card:has(f[sym="white"]) .avatar { box-shadow: 0 0 10px rgba(245, 246, 250, 0.25); border-color: rgba(245, 246, 250, 0.6); }
npc card:has(f[sym="black"]) .avatar { box-shadow: 0 0 10px rgba(138, 107, 255, 0.25); border-color: rgba(138, 107, 255, 0.6); }

.ph-info { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
npc ph f { font-size: 17px; font-weight: 600; letter-spacing: 0.1em; }
npc ph f[sym="white"] { color: #f5f6fa; text-shadow: 0 0 10px rgba(245, 246, 250, 0.5); }
npc ph f[sym="black"] { color: #b8a8ff; text-shadow: 0 0 10px rgba(138, 107, 255, 0.5); }

npc card:has(f[sym="white"]) ph t { color: #e8f4ff; border: 1px solid rgba(232, 244, 255, 0.4); padding: 1px 8px; border-radius: 12px; background: rgba(232, 244, 255, 0.08); font-size: 11px; letter-spacing: 1px; }
npc card:has(f[sym="black"]) ph t { color: #b8a8ff; border: 1px solid rgba(184, 168, 255, 0.4); padding: 1px 8px; border-radius: 12px; background: rgba(184, 168, 255, 0.08); font-size: 11px; letter-spacing: 1px; }

npc r:has(heart) { display: flex; align-items: center; flex-wrap: wrap; }
npc r:has(heart) i { flex-basis: 100%; padding-left: 55px; margin-top: 4px; margin-left: 0; }

heart { display: inline-block; font-size: 17px; letter-spacing: 2px; background: linear-gradient(90deg, #ff5868, #c0394a 40%, #641616); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 3px rgba(192,57,74,0.55)); margin-right: 6px; transform: translateY(1px); }
heart e { -webkit-text-fill-color: #4a3a3d; color: #4a3a3d; filter: none; background: none; }

priv { display: block; margin-top: 12px; padding: 10px 12px; border-left: 2px solid #5a5a7a; border-radius: 0 4px 4px 0; flex-grow: 1; }
.priv-title { font-size: 11.5px; color: #ff3d6b; margin-bottom: 6px; font-weight: bold; border-bottom: 1px solid rgba(255,61,107,0.2); padding-bottom: 4px; }
priv d { display: block; padding: 2px 0; font-size: 12px; color: #a8a8c0; line-height: 1.6; }

/* ========== 早悟兰因 <.karma-wrap> ========== */
.karma-box { margin: 0 24px; }
.karma-box .bar-row > span:first-child { flex: 0 0 90px; }
tot { display: block; margin: 20px 24px 10px; padding: 14px 18px; text-align: center; font-size: 13.5px; color: #d8d8e8; line-height: 1.8; background: linear-gradient(90deg, rgba(20,20,30,0.8), rgba(30,30,45,0.9), rgba(20,20,30,0.8)); border-top: 1px solid rgba(139, 92, 246, 0.4); border-bottom: 1px solid rgba(139, 92, 246, 0.4); border-left: 10px solid #2a2a3e; border-right: 10px solid #2a2a3e; border-radius: 4px; box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 0 6px 12px rgba(0,0,0,0.4); }

/* ========== 往事成烟 <mem> ========== */
mem sub { display: block; font-size: 12px; color: #b56bff; letter-spacing: 0.1em; margin: 12px 0 8px; border-bottom: 1px dashed #2a2a3e; padding-bottom: 6px; }
.mem-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mem-item { display: flex; border-radius: 6px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.mem-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.4); background: rgba(48, 45, 65, 0.75); }
.m-no { display: flex; align-items: center; justify-content: center; width: 44px; background: rgba(139, 92, 246, 0.1); color: #b56bff; font-weight: bold; font-size: 15px; border-right: 1px solid #252538; }
.m-content { flex: 1; padding: 10px 14px; }
.m-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: #7fffb0; margin-bottom: 6px; border-bottom: 1px dashed rgba(181, 107, 255, 0.5); padding-bottom: 4px; opacity: 0.8; }
.m-desc { font-size: 13px; color: #c8c8d8; line-height: 1.6; }

/* ========== 下一炷香 <act> ========== */
act d { display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 12px 16px; border-left: 3px solid #b56bff; border-radius: 6px; font-size: 13.5px; color: #d8d8e8; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden; }
act d:hover { background: rgba(139, 92, 246, 0.15); border-left-color: #00e5ff; transform: translateX(6px); box-shadow: 0 0 15px rgba(139,92,246,0.2); }
act d::before { content: attr(l); font-size: 16px; position: relative; z-index: 2; }
act d::after { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.1), transparent); transition: 0.5s; pointer-events: none; z-index: 1; }
act d:hover::after { left: 100%; }

/* ========================================================= */
/* 🟢 修复补丁：强制恢复绿色高亮字与明显化紫色虚线（加在 CSS 最末尾） */
/* ========================================================= */

/* 1. 突破平台拦截：强制恢复“身份”、“外貌”等属性名的青绿色 */
ai details pro r b, ai details pro r strong,
ai details npc r b, ai details npc r strong,
ai pro r b, ai npc r b {
  color: #7fffb0 !important;
  font-weight: 500 !important;
}