guide,cot {display:none;}
div[class="shrink-0 relative w-10 h-10 bg-gray-100/90 rounded-full block md:block"] {
  display: none;
}
.relative.w-10.h-10.bg-white.rounded-full {
  display: none !important;
}
/* 完全隐藏三角形 */
.bg-gray-100\/90.w-2.h-3.clip-path-triangle-right {
    display: none !important;
}
.world_setting {
 display: none;
}
.secret {
 display: none;
}
/* 1. 为 style_default 设计美观的外边框 */
.style_default {
font-size: 16px;
    background-color: #ffffff;
    font-family: 'Garamond', 'serif';
    color: #333333;
    border-radius: 12px;
    padding: 13px;
    margin: 2px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.style_default::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(145deg, #0a1931, #4b3f72);
    border-radius: 16px;
    z-index: -1;
    box-shadow: 0 8px 20px rgba(45, 35, 66, 0.4);
}

.style_default::after {
    content: '☘';
    font-size: 24px;
    color: #e6b800;
    opacity: 0.5;
    position: absolute;
    bottom: 10px;
    right: 15px;
    transform: rotate(-15deg);
}

/* 2. 为 summary 设计美观优雅的装饰 */
summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.25em;
    padding: 12px 20px;
    margin: -10px -20px 15px -20px;
    position: relative;
    color: #4b3f72;
    transition: all 0.4s ease;
    list-style: none;
    border-left: 5px solid transparent;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▶';
    font-size: 0.8em;
    color: #e6b800;
    margin-right: 12px;
    transition: transform 0.3s ease-in-out;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

summary:hover {
    color: #0a1931;
    background-color: #f0eef6;
    border-left: 5px solid #e6b800;
}

/* 3. & 4. 为列表设计不同的 hover 效果 (使用 :nth-of-type) */

/* 主角信息列表的 hover 效果 (第1个 details 元素) */
.style_default > details:nth-of-type(1) li {
    padding: 8px 5px;
    margin-left: 20px;
    position: relative;
    list-style-type: none;
    transition: color 0.3s;
}
.style_default > details:nth-of-type(1) li::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: 0;
    width: 0;
    height: 2px;
    background-image: linear-gradient(to right, #e6b800, #a9a9a9);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.style_default > details:nth-of-type(1) li:hover {
    color: #0a1931;
}
.style_default > details:nth-of-type(1) li:hover::before {
    width: 100%;
}

/* NPC信息列表的 hover 效果 (第2个 details 元素) */
.style_default > details:nth-of-type(2) li {
    padding: 8px 10px;
    margin: 4px 0;
    list-style: none;
    border-radius: 6px;
    transition: all 0.35s ease-out;
    border-left: 3px solid transparent;
}
.style_default > details:nth-of-type(2) li:hover {
    color: #4b3f72;
    transform: translateX(10px) scale(1.02);
    border-left-color: #a9a9a9;
    box-shadow: 0 2px 8px rgba(75, 63, 114, 0.6);
}

/* 行动推荐列表的 hover 效果 (第4个 details 元素) */
.style_default > details:nth-last-of-type(2) li {
    padding: 14px 18px;
    margin: 8px 0;
    border-radius: 50px;
    background-color: #f7f7f9;
    transition: all 0.4s ease-in-out;
    border: 1px solid #eee;
}
.style_default > details:nth-last-of-type(2) li:hover {
    color: #ffffff;
    background-color: #0a1931;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(10, 25, 49, 0.4);
    border-color: transparent;
}

/* 5. 为 strong 添加强调色 */
strong {
    color: #c70039;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 100, 100, 0.3);
}

meow {
    color: #c70039;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 100, 100, 0.3);
}
/* 6. 为过往记忆中的表格行设计 hover 效果 (第5个 details 元素) */
.style_default > details:nth-last-of-type(1) table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.style_default > details:nth-last-of-type(1) th,
.style_default > details:nth-last-of-type(1) td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}
.style_default > details:nth-last-of-type(1) th {
    background-color: #f9f9fb;
    color: #4b3f72;
}
.style_default > details:nth-last-of-type(1) tbody tr {
    transition: background-color 0.25s ease, color 0.25s ease;
}
.style_default > details:nth-last-of-type(1) tbody tr:hover {
    background-color: #f0eef6;
    color: #000;
}
.style_default > details:nth-last-of-type(1) tbody tr:last-child td {
    border-bottom: none;
}
.relative.inline-block.px-4.py-3.w-full.bg-gray-100\/90.rounded-b-2xl.rounded-tl-2xl {
    background-color: transparent !important;
}
.border-\[\#F1CBCB\] {
    border-color: rgb(241 203 203 / 0%);
}
.bg-gray-100\/90 {
    background-color: #ffffff00;
}

/* 美化Markdown分割线 --- */
.style_default hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #ffffff 20%, 
        #3a559c 40%, 
        #ffffff 60%, 
        #ffffff 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    margin: 2rem 0;
    border-radius: 2px;
}

@keyframes gradientShift {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-part hr {
        margin: 1.5rem 0;
        height: 1.5px;
    }
}
.bg-gray-100\/90:not(.chat-answer-container .bg-gray-100\/90) {
    background-color: #ffffff;
    font-family: 'Garamond', 'serif';
    color: #333333;
    border-radius: 12px;
    padding: 13px;
    margin: 2px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}
.bg-gray-100\/90:not(.chat-answer-container .bg-gray-100\/90)::after {
    content: '❀';
    font-size: 24px;
    color: #e6b800;
    opacity: 0.5;
    position: absolute;
    bottom: 10px;
    right: 15px;
    transform: rotate(-15deg);
}

/* --- Top Information Bar --- */
.top-info-bar {
    padding: 12px 20px;
    margin-bottom: 25px;
    background-color: #f8f7fa;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #0a1931, #4b3f72) 1;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    display: flex; /* 使用flex布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
}

.time-info, .location-info {
    font-family: 'Garamond', 'serif';
    font-size: 1.05em;
    font-weight: bold;
    color: #4b3f72;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 创建一个用于实现划过动画的伪元素 */
.top-info-bar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 15%;
    height: 2px;
    background-color: #e6b800;
    box-shadow: 0 0 10px 2px #e6b800;
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 鼠标悬停时的交互效果 */
.top-info-bar:hover {
    background-color: #f0eef6;
}

.top-info-bar:hover .time-info,
.top-info-bar:hover .location-info {
    color: #0a1931;
    transform: scale(1.05);
    text-shadow: 0 0 6px rgba(230, 184, 0, 0.6);
}

.top-info-bar:hover::after {
    transform: translateX(700%);
}

/* 为当前目标（第3个details）的列表添加独特美化 */
.style_default > details:nth-last-of-type(3) ul {
  list-style: none;
  padding-left: 0;
}
.style_default > details:nth-last-of-type(3) li {
  position: relative;
  padding: 12px 15px 12px 40px;
  margin-bottom: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}
.style_default > details:nth-last-of-type(3) li::before {
  content: '❂'; /* 带圆圈的星 */
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #4b3f72;
  font-size: 1.2em;
}


/* 为NPC信息（第2个details）的列表添加装饰 */
.style_default > details:nth-of-type(2) ul {
  list-style: none;
  padding-left: 0;
}

.style_default > details:nth-of-type(2) li::before {
  content: '✦'; /* 黑四角星 */
  margin-right: 10px;
  font-size: 0.9em;
}
/* 2. 为“主角信息”列表项前端添加'❖'符号 */
.style_default > details:nth-of-type(1) li {
   list-style-type: disc; /* 恢复列表标记的占位空间 */
}

.style_default > details:nth-of-type(1) li::marker {
  content: '❖ ';
  color: #4b3f72;
  font-size: 1em;
}

.vision,
.vision top,
.vision time,
.vision loc,
.vision world-setting {
    display: block;
}

.vision top {
    display: flex;
}

/* --- world-setting 隐藏（等同原 .world_setting） --- */
world_setting {
    display: none;
}

/* --- 主容器（等同原 .style_default） --- */
.vision {
    font-size: 16px;
    background-color: #ffffff;
    font-family: 'Garamond', 'serif';
    color: #333333;
    border-radius: 12px;
    padding: 13px;
    margin: 2px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.vision::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(145deg, #0a1931, #4b3f72);
    border-radius: 16px;
    z-index: -1;
    box-shadow: 0 8px 20px rgba(45, 35, 66, 0.4);
}

.vision::after {
    content: '☘';
    font-size: 24px;
    color: #e6b800;
    opacity: 0.5;
    position: absolute;
    bottom: 10px;
    right: 15px;
    transform: rotate(-15deg);
}

/* --- <top>（等同原 .top-info-bar） --- */
.vision > top {
    padding: 12px 20px;
    margin-bottom: 25px;
    background-color: #f8f7fa;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #0a1931, #4b3f72) 1;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* <time> 与 <loc>（等同原 .time-info / .location-info） */
.vision > top > time,
.vision > top > loc {
    display: inline-block;
    font-family: 'Garamond', 'serif';
    font-size: 1.05em;
    font-weight: bold;
    color: #4b3f72;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* <top> 的底部滑行光条 */
.vision > top::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 15%;
    height: 2px;
    background-color: #e6b800;
    box-shadow: 0 0 10px 2px #e6b800;
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* <top> hover */
.vision > top:hover {
    background-color: #f0eef6;
}

.vision > top:hover > time,
.vision > top:hover > loc {
    color: #0a1931;
    transform: scale(1.05);
    text-shadow: 0 0 6px rgba(230, 184, 0, 0.6);
}

.vision > top:hover::after {
    transform: translateX(700%);
}

/* --- summary（已有全局 summary 样式，此处无需重复） --- */
/* 若你希望 .vision 内的 summary 有独立样式，可在此追加 */

/* --- 主角信息列表（第1个 details） --- */
.vision > details:nth-of-type(1) li {
    padding: 8px 5px;
    margin-left: 20px;
    position: relative;
    list-style-type: disc;
    transition: color 0.3s;
}

.vision > details:nth-of-type(1) li::marker {
    content: '❖ ';
    color: #4b3f72;
    font-size: 1em;
}

.vision > details:nth-of-type(1) li::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: 0;
    width: 0;
    height: 2px;
    background-image: linear-gradient(to right, #e6b800, #a9a9a9);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vision > details:nth-of-type(1) li:hover {
    color: #0a1931;
}

.vision > details:nth-of-type(1) li:hover::before {
    width: 100%;
}

/* --- NPC信息列表（第2个 details） --- */
.vision > details:nth-of-type(2) ul {
    list-style: none;
    padding-left: 0;
}

.vision > details:nth-of-type(2) li {
    padding: 8px 10px;
    margin: 4px 0;
    list-style: none;
    border-radius: 6px;
    transition: all 0.35s ease-out;
    border-left: 3px solid transparent;
}

.vision > details:nth-of-type(2) li::before {
    content: '✦';
    margin-right: 10px;
    font-size: 0.9em;
}

.vision > details:nth-of-type(2) li:hover {
    color: #4b3f72;
    transform: translateX(10px) scale(1.02);
    border-left-color: #a9a9a9;
    box-shadow: 0 2px 8px rgba(75, 63, 114, 0.6);
}

/* --- 当前目标（倒数第3个 details） --- */
.vision > details:nth-last-of-type(3) ul {
    list-style: none;
    padding-left: 0;
}

.vision > details:nth-last-of-type(3) li {
    position: relative;
    padding: 12px 15px 12px 40px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.vision > details:nth-last-of-type(3) li::before {
    content: '❂';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b3f72;
    font-size: 1.2em;
}

/* --- 行动推荐列表（倒数第2个 details） --- */
.vision > details:nth-last-of-type(2) li {
    padding: 14px 18px;
    margin: 8px 0;
    border-radius: 50px;
    background-color: #f7f7f9;
    transition: all 0.4s ease-in-out;
    border: 1px solid #eee;
}

.vision > details:nth-last-of-type(2) li:hover {
    color: #ffffff;
    background-color: #0a1931;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(10, 25, 49, 0.4);
    border-color: transparent;
}

/* --- 过往记忆表格（倒数第1个 details） --- */
.vision > details:nth-last-of-type(1) table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.vision > details:nth-last-of-type(1) th,
.vision > details:nth-last-of-type(1) td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.vision > details:nth-last-of-type(1) th {
    background-color: #f9f9fb;
    color: #4b3f72;
}

.vision > details:nth-last-of-type(1) tbody tr {
    transition: background-color 0.25s ease, color 0.25s ease;
}

.vision > details:nth-last-of-type(1) tbody tr:hover {
    background-color: #f0eef6;
    color: #000;
}

.vision > details:nth-last-of-type(1) tbody tr:last-child td {
    border-bottom: none;
}

/* --- 分割线 hr --- */
.vision hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        #ffffff 0%,
        #ffffff 20%,
        #3a559c 40%,
        #ffffff 60%,
        #ffffff 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    margin: 2rem 0;
    border-radius: 2px;
}

/* --- 场景1: 聊天对话气泡样式 --- */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    margin: 15px 0;
}
.chat-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}
.chat-name {
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 5px;
    display: block;
    color: #555;
}
.chat-content {
    margin: 0;
    padding: 0;
    word-wrap: break-word;
}
.chat-bubble.npc {
    background-color: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 4px;
}
.chat-bubble.user {
    background-color: #87CEEB; /* 天蓝色，代替微信绿 */
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 4px;
}
.chat-bubble.user .chat-name {
    color: rgba(255, 255, 255, 0.8);
}

/* --- 场景2: 文档/信件/报告样式 --- */
.document-box {
    background: #faf8f2;
    border: 1px solid #e0d8c6;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(240, 230, 210, 0.5);
    font-family: 'Times New Roman', 'Source Han Serif SC', serif;
    color: #4a4a4a;
}
.document-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #6b5b4e;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4c8b4;
}
.document-content p {
    line-height: 1.8;
    text-indent: 2em;
    margin: 0 0 1em 0;
}

/* --- 场景3: 专有名词Tooltip样式 --- */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 2px dotted #4a90e2;
    cursor: help;
    font-weight: bold;
    color: #4a90e2;
}
.tooltip .tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #2c3e50;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1;
    bottom: 140%;
    left: 50%;
    margin-left: -140px; /* Use half of the width to center */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.5;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}
chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    margin: 15px 0;
}

npc, user {
    display: block;
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    word-wrap: break-word;
}

npc::before, user::before {
    content: attr(name);
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 5px;
    display: block;
}

npc::before {
    color: #555;
}

npc {
    background-color: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 4px;
}

user {
    background-color: #87CEEB;
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 4px;
}

user::before {
    color: rgba(255,255,255,0.8);
}

/* ==== 新标签版：doc ==== */

doc {
    display: block;
    background: #faf8f2;
    border: 1px solid #e0d8c6;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.1),
                inset 0 0 10px rgba(240,230,210,0.5);
    font-family: 'Times New Roman', 'Source Han Serif SC', serif;
    color: #4a4a4a;
}

doc::before {
    content: attr(title);
    display: block;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #6b5b4e;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4c8b4;
}

doc p {
    line-height: 1.8;
    text-indent: 2em;
    margin: 0 0 1em 0;
}

/* ==== 新标签版：t（tooltip） ==== */

t {
    position: relative;
    display: inline-block;
    border-bottom: 2px dotted #4a90e2;
    cursor: help;
    font-weight: bold;
    color: #4a90e2;
}

/* 箭头 via ::before */
t::before {
    content: "";
    position: absolute;
    z-index: 2;
    bottom: 140%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

/* 弹出层 via ::after */
t::after {
    content: attr(exp);
    position: absolute;
    z-index: 1;
    width: 280px;
    bottom: calc(140% + 5px);
    left: 50%;
    margin-left: -140px;
    background-color: #2c3e50;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: normal;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

t:hover::before,
t:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

position {
display: inline-block;
vertical-align: middle; /* 根据周围文字调整 */
}

position::before {
content: "";
display: inline-block;
width: 16px;
height: 16px;
background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBMaWNlbnNlOiBNSVQuIE1hZGUgYnkgZWxlbWVudC1wbHVzOiBodHRwczovL2dpdGh1Yi5jb20vZWxlbWVudC1wbHVzL2VsZW1lbnQtcGx1cy1pY29ucyAtLT4KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGNsYXNzPSJpY29uIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGw9IiMwMDAwMDAiIGQ9Ik0yNDkuNiA0MTcuMDg4bDMxOS43NDQgNDMuMDcyIDM5LjE2OCAzMTAuMjcyTDg0NS4xMiAxNzguODggMjQ5LjYgNDE3LjA4OHptLTEyOS4wMjQgNDcuMTY4YTMyIDMyIDAgMDEtNy42OC02MS40NGw3NzcuNzkyLTMxMS4wNGEzMiAzMiAwIDAxNDEuNiA0MS42bC0zMTAuMzM2IDc3NS42OGEzMiAzMiAwIDAxLTYxLjQ0LTcuODA4TDUxMiA1MTYuOTkybC0zOTEuNDI0LTUyLjczNnoiLz48L3N2Zz4=");
background-size: contain;
background-repeat: no-repeat;
margin-right: 4px; /* 图标与文字的间距 */
vertical-align: middle;
position: relative;
  top: -2px;
}
/* --- NPC 记忆悬浮面板样式 (响应式优化版) --- */

/* 记忆系统的总容器，用于定位 */
.npc-memory-container {
    position: relative;
    display: inline-block;
    margin-top: 8px;
}

/* 悬浮触发器 (平常看到的那个小按钮) */
.memory-trigger {
    display: inline-flex;
    align-items: center;
    background-color: #f0f2f5;
    border: 1px solid #dcdfe6;
    color: #606266;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

/* 鼠标悬浮在触发器上时的效果 */
.npc-memory-container:hover .memory-trigger {
    background-color: #e4e7ed;
    border-color: #c0c4cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 记忆面板本身 (默认隐藏) */
.memory-panel {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    max-height: 350px; /* 设置一个合理的最大高度，例如350px */
    overflow-y: auto;
    /* --- 关键修改 1：宽度自适应 --- */
    width: calc(100vw - 40px); /* 在小屏幕上，宽度为视口宽度减去40px的边距 */
    max-width: 450px; /* 在大屏幕上，最大宽度不超过450px */
    
    background-color: white;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 100;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 当鼠标悬浮在整个容器上时，显示记忆面板 */
.npc-memory-container:hover .memory-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* 面板内表格的标题 */
.memory-panel b {
    display: block;
    margin-bottom: 8px;
    color: #303133;
    font-size: 14px;
    border-bottom: 1px solid #e4e7ed;
    padding-bottom: 5px;
}

/* 面板内的表格样式 */
.memory-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    
    /* --- 关键新增 2：固定表格布局算法 --- */
    /* 这可以防止内容撑开列宽，让列宽严格按我们设定的比例来 */
    table-layout: fixed;
}

.memory-panel th, .memory-panel td {
    border: 1px solid #e4e7ed;
    padding: 6px 8px;
    text-align: left;
    color: #606266;
    
    /* --- 关键新增 3：强制内容换行 --- */
    /* 确保长单词或连续字符也能被强制断开换行 */
    word-break: break-word;
}

.memory-panel th {
    background-color: #fafafa;
    font-weight: bold;
    color: #303133;
}

/* --- 关键新增 4：设定各列的宽度比例 --- */
.memory-panel th:nth-child(1) { width: 10%; } /* No. 列 */
.memory-panel th:nth-child(2) { width: 25%; } /* 时间 列 */
.memory-panel th:nth-child(3) { width: 20%; } /* 场景 列 */
.memory-panel th:nth-child(4) { width: 45%; } /* 客观事实 列 */


.memory-panel tr:nth-child(even) {
    background-color: #fcfcfc;
}
.memory-panel::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度 */
}

.memory-panel::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道颜色 */
    border-radius: 10px;
}

.memory-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1; /* 滚动条滑块颜色 */
    border-radius: 10px;
}

.memory-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; /* 鼠标悬浮时滑块颜色 */
}
#ai-mod-button2 button.MuiButton-root:nth-last-child(4):nth-child(2)::after, /* 锁定键是第2个时 */
#ai-mod-button2 button.MuiButton-root:nth-last-child(3):nth-child(3)::after  /* 记忆键是第3个时 */
{
    right: auto !important; /* 清除原本的靠右定位 */
    left: 100% !important;  /* 改为靠左定位(即位于按钮右侧) */
    
    margin-right: 0 !important; /* 清除右边距 */
    margin-left: 4px !important; /* 添加左边距 */
    
    border-radius: 0 6px 6px 0 !important; /* 圆角翻转：左直右圆 */
    
    /* 调整动画初始位移方向：从左向右滑出 */
    transform: translateX(-10px) !important; 
    
    /* 阴影方向翻转 */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1) !important;
}

/* 2. 修正悬停动画终点 */
#ai-mod-button2 button.MuiButton-root:nth-last-child(4):nth-child(2):hover::after,
#ai-mod-button2 button.MuiButton-root:nth-last-child(3):nth-child(3):hover::after 
{
    transform: translateX(0) !important; /* 归位 */
}
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%) !important;
    border-top: 3px solid transparent !important;
    border-image: linear-gradient(90deg, #3B82F6, #60A5FA, #FBBF24, #60A5FA, #3B82F6) 1 !important;
    box-shadow: 0 -8px 32px rgba(59, 130, 246, 0.08) !important;
}

/* 背景装饰SVG - 右上角星星图案 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"]::before {
    content: '' !important;
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    width: 60px !important;
    height: 60px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17l-6.2 4.3 2.4-7.4L2 9.4h7.6L12 2z' fill='%23FBBF24' opacity='0.15'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
    animation: starFloat 4s ease-in-out infinite !important;
    z-index: 0 !important;
}

@keyframes starFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-5px) rotate(10deg); opacity: 1; }
}

/* ▌顶部标题 - 渐变文字 */
div.text-lg.font-bold {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

div.text-lg.font-bold::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #FBBF24, #F59E0B) !important;
    border-radius: 2px !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

div.text-lg.font-bold:hover::after {
    width: 100% !important;
}

/* ▌个人评分文字 */
p.MuiTypography-body1.text-grey-600 {
    color: #475569 !important;
    font-weight: 500 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
}

/* ▌评分星星 - 金色闪耀 */
span.MuiRating-iconFilled svg {
    color: #FBBF24 !important;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5)) !important;
    transition: all 0.3s ease !important;
}

span.MuiRating-iconFilled svg:hover {
    transform: scale(1.2) rotate(15deg) !important;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)) !important;
}

span.MuiRating-iconEmpty svg {
    color: #CBD5E1 !important;
    transition: all 0.3s ease !important;
}

span.MuiRating-iconEmpty svg:hover {
    color: #FBBF24 !important;
    transform: scale(1.15) !important;
}

/* ▌评分数字 */
span.text-orange-500 {
    color: #F59E0B !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.2) !important;
}

/* ▌输入框容器 */
div.flex.flex-col.border-gray-200 {
    border: 2px solid #E2E8F0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.06) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

div.flex.flex-col.border-gray-200:hover {
    border-color: #93C5FD !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12) !important;
}

div.flex.flex-col.border-gray-200:focus-within {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 20px rgba(59, 130, 246, 0.15) !important;
}

/* ▌输入框 */
textarea.rc-textarea {
    background: transparent !important;
    color: #1E293B !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

textarea.rc-textarea::placeholder {
    color: #94A3B8 !important;
    font-style: italic !important;
}

textarea.rc-textarea::selection {
    background: #BFDBFE !important;
    color: #1E40AF !important;
}

/* ▌字数统计 */
div.bg-gray-100.text-gray-500 {
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%) !important;
    color: #64748B !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-family: system-ui, sans-serif !important;
}

/* ▌发送按钮 - 华丽悬浮效果 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

div.cursor-pointer.group.flex.items-center.justify-center::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
    transition: left 0.5s ease !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45) !important;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover::before {
    left: 100% !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
    color: #ffffff !important;
    transition: transform 0.3s ease !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover svg[data-icon="Send03"] {
    transform: translateX(3px) !important;
}

/* ▌分割线 - 渐变装饰 */
div.style_divider__mW0YX {
    background: linear-gradient(90deg, transparent, #CBD5E1, #FBBF24, #CBD5E1, transparent) !important;
    height: 1px !important;
}

/* ▌排序按钮 */
button.MuiButton-containedPrimary {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    color: #2563EB !important;
    border: 1px solid #BFDBFE !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
    transition: all 0.3s ease !important;
    font-family: system-ui, sans-serif !important;
}

button.MuiButton-containedPrimary:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    color: #ffffff !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* ▌评论列表容器 */
div.p-3.overflow-y-auto {
    background: transparent !important;
}

/* ▌评论项 - 悬浮卡片效果 */
div.group.ml-0 {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    margin-bottom: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

div.group.ml-0::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 0 !important;
    background: linear-gradient(180deg, #3B82F6, #FBBF24) !important;
    border-radius: 0 3px 3px 0 !important;
    transition: height 0.3s ease !important;
}

div.group.ml-0:hover {
    border-color: #93C5FD !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12) !important;
    transform: translateX(4px) !important;
}

div.group.ml-0:hover::before {
    height: 60% !important;
}

/* ▌用户头像 - 光环效果 */
div.group img.rounded-full {
    border: 2px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

div.group img.rounded-full:hover {
    border-color: #FBBF24 !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 4px 12px rgba(251, 191, 36, 0.3) !important;
    transform: scale(1.1) !important;
}

/* ▌用户名 */
div.text-sm.text-grey-600 span.font-bold {
    color: #1E40AF !important;
    font-weight: 700 !important;
    transition: color 0.2s ease !important;
    font-family: system-ui, sans-serif !important;
}

div.text-sm.text-grey-600 span.font-bold:hover {
    color: #3B82F6 !important;
}

/* ▌评论内容 */
div.break-all {
    color: #334155 !important;
    line-height: 1.7 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
}

/* ▌时间戳 */
div.text-xs.text-grey-600 {
    color: #94A3B8 !important;
    font-size: 12px !important;
    font-family: system-ui, sans-serif !important;
}

/* ▌点赞按钮 - 红色点缀 */
button.text-gray-400 {
    color: #94A3B8 !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    position: relative !important;
}

button.text-gray-400:hover {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

button.text-gray-400 svg {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

button.text-gray-400:hover svg {
    transform: scale(1.25) !important;
}

/* 点赞动画心跳 */
button.text-gray-400:active svg {
    animation: heartBeat 0.4s ease !important;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ▌回复文字 */
span.cursor-pointer {
    color: #3B82F6 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    font-family: system-ui, sans-serif !important;
}

span.cursor-pointer::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: #FBBF24 !important;
    transition: width 0.3s ease !important;
}

span.cursor-pointer:hover {
    color: #1D4ED8 !important;
}

span.cursor-pointer:hover::after {
    width: 100% !important;
}

/* ▌回复区域边框 */
div.ml-8.border-l {
    border-left: 2px solid transparent !important;
    border-image: linear-gradient(180deg, #3B82F6, #93C5FD, #FBBF24) 1 !important;
}

.markdown-body:has(context){
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
  user-select: none !important;       
}
.markdown-body:has(context)> * {
  display: none !important;
}
.markdown-body:has(context)::before{
  content: "⚠ 检测到疑似提示词窃取攻击，已停用输出显示功能。";
  display: block;
  font-size: 14px !important;
  color: #dc2626 !important;
  font-weight: bold;
  line-height: 1.8 !important;
  padding: 8px 0;
  user-select: none;
}
.markdown-body:has(context) ~ div:has(button){
  display: none !important;
}
.markdown-body:has(context) ~ div:last-child{
  display: none !important;
}



/* ===== 行动推荐选项 ===== */
details > div[data-action="append-textinput"] {
  position: relative;
  padding: 16px 24px 16px 52px;
  margin: 6px 0;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  color: #2d3748;
  font-size: 15.5px;
  line-height: 1.65;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(74, 108, 247, 0.08);
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* 左侧 SVG */
details > div[data-action="append-textinput"]::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Crect x='3' y='3' width='16' height='16' rx='4' stroke='%234a6cf7' stroke-width='1.5' fill='%234a6cf708'/%3E%3Cpath d='M11 7v8M7 11h8' stroke='%234a6cf7' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 右侧箭头 */
details > div[data-action="append-textinput"]::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3.5l4.5 4.5L6 12.5' stroke='%23a0aec0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

/* ===== 交互状态：hover + active 同时写，覆盖所有场景 ===== */
details > div[data-action="append-textinput"]:hover,
details > div[data-action="append-textinput"]:active {
  background: #ffffff;
  border-color: #4a6cf7;
  box-shadow: 0 2px 12px rgba(74, 108, 247, 0.1);
}

details > div[data-action="append-textinput"]:hover::before,
details > div[data-action="append-textinput"]:active::before {
  transform: translateY(-50%) rotate(90deg);
}

details > div[data-action="append-textinput"]:hover::after,
details > div[data-action="append-textinput"]:active::after {
  opacity: 1;
}

/* 桌面端额外位移 */
@media (hover: hover) {
  details > div[data-action="append-textinput"]:hover {
    transform: translateY(-1px);
  }
}

/* ===== 底部提示文字 ===== */
details[open]:has(> div[data-action="append-textinput"])::after {
  content: "可以点击选择一个或者多个选项。如果对选项不满意，也可自由输入行动";
  display: block;
  margin-top: 14px;
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
  letter-spacing: 0.2px;
  border-top: 1px dashed #e5e7eb;
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  details > div[data-action="append-textinput"] {
    padding: 14px 18px 14px 46px;
    margin: 5px 0;
    font-size: 14.5px;
    border-radius: 12px;
  }

  details > div[data-action="append-textinput"]::before {
    left: 15px;
    width: 20px;
    height: 20px;
  }

  details > div[data-action="append-textinput"]::after {
    right: 14px;
    width: 14px;
    height: 14px;
  }

  details[open]:has(> div[data-action="append-textinput"])::after {
    font-size: 11px;
    margin-top: 10px;
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  details > div[data-action="append-textinput"] {
    padding: 12px 14px 12px 40px;
    font-size: 13.5px;
    border-radius: 11px;
  }

  details > div[data-action="append-textinput"]::before {
    left: 13px;
    width: 18px;
    height: 18px;
  }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  details > div[data-action="append-textinput"],
  details > div[data-action="append-textinput"]::before,
  details > div[data-action="append-textinput"]::after {
    transition: none;
  }
}