.style_dot-flashing__8L91Q {
  display: none !important;
}
div:has(> .style_dot-flashing__8L91Q.style_text__zGhNq) {
  width: 100% !important;
  height: auto !important;
  min-height: 20px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
div:has(> .style_dot-flashing__8L91Q.style_text__zGhNq)::before {
  content: '💮' !important;
  font-size: 16px !important;
  margin-right: 8px !important;
  display: inline-block !important;
  animation: flower-spin 2s linear infinite !important;
}
div:has(> .style_dot-flashing__8L91Q.style_text__zGhNq)::after {
  content: '木叶飞舞之处火亦生生不息。记忆4Pro游玩, yuege渠道推荐' !important;
  font-family: "Microsoft YaHei", "Arial", sans-serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  color: rgba(0, 0, 0, 0.6) !important;
}
@keyframes flower-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 2. 基础与段落样式 (遵嘱，P标签保持不变) --- */
* {
    box-sizing: border-box;
}
p:not(.MuiTypography-root):not(.MuiTypography-body2) {
    font-family: "Microsoft YaHei", "Arial", sans-serif;
    font-size: 16px;
    line-height: 24px;
    margin-top: 20px;
    margin-bottom: 16px;
    margin-left: 17px;
    margin-right: 13px;
    letter-spacing: 0.5px;
}
/* --- 3. [升级] H1 标题样式 --- */
h1 {
    font-family: "Microsoft YaHei", "Arial", sans-serif;
    font-size: 1.2em; /* 使用em单位更灵活 */
    font-weight: bold;
    background-color: #f0f0f0; /* 柔和的背景灰 */
    color: #333;
    padding: 10px 15px; /* 增加内边距 */
    margin-top: 2em; /* 与上方内容保持距离 */
    margin-bottom: 1em;
    border-bottom: 2px solid #e0e0e0; /* 用底部线条分割 */
    border-left: 5px solid #666; /* 左侧添加强调色条 */
    border-radius: 4px; /* 轻微的圆角 */
}

/* --- 4. [升级] Details & Summary 信息面板 --- */
details {
    background: #f9f9f9; /* 更轻盈的背景色 */
    border: 1px solid #eee; /* 细边框代替粗边框 */
    border-left: 4px solid #aaa; /* 左侧强调线使用柔和的灰色 */
    border-radius: 6px; /* 更明显的圆角 */
    padding: 0.5em 1em; /* 调整内边距 */
    margin: 1em 0;
    transition: all 0.2s ease-in-out; /* 为悬浮和展开添加过渡动画 */
}
details:hover {
    border-left-color: #333; /* 鼠标悬浮时，左侧强调线变深 */
}
summary {
    color: #333; /* 更柔和的字体颜色 */
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5em 0;
    outline: none; /* 去掉点击时的虚线框 */
    position: relative; /* 为小三角图标定位 */
    transition: margin 0.2s ease-in-out; /* 为展开时的边距变化添加动画 */
}
/* 使用::before伪元素创建小三角图标 */
summary::before {
    content: '▸';
    position: absolute;
    left: -0.8em;
    top: 0.6em;
    transition: transform 0.2s ease-in-out; /* 为旋转添加动画 */
}
details[open] > summary {
    margin-bottom: 1em;
    border-bottom: 1px solid #eee; /* 展开后的分割线更细 */
}
/* 当details展开时，旋转小三角图标 */
details[open] > summary::before {
    transform: rotate(90deg);
}
/* --- 4.5. [整序] 卷轴样式 · 情报整理 --- */
details table {
    width: 100%;
    border-collapse: collapse; /* 合并边框，使表格更整洁 */
    margin-top: 1em;
}

/* 针对表头和单元格的通用样式 */
details th,
details td {
    border: 1px solid #e0e0e0; /* 使用与主题匹配的浅灰色边框 */
    padding: 10px 12px;
    text-align: left;
    color: #333; /* 确保字体颜色与你的主题一致 */
    background-color: transparent !important; /* 核心封印术：强制背景透明，破除所有默认背景色！*/
}

/* 美化表头，使其更易区分 */
details th {
    background-color: #f0f0f0; /* 给表头一个略深的背景，与H1标题背景色呼应 */
    font-weight: bold;
}

/* 为数据行添加一个悬停反馈，提升交互体验 */
details tbody tr:hover {
    background-color: #f5f5f5; /* 鼠标悬停时，行背景变为柔和的灰色高亮 */
}


/* --- 6. 其他保留样式 --- */
font {
    font-family: "Microsoft YaHei", "Arial", sans-serif;
    font-weight: bold;
}
memory {
    display: none;
}
p[Foreword] {
    font-family: "Microsoft YaHei", "Arial", sans-serif;
    font-style: italic;
    text-decoration: underline;
    color: #333;
}
/* --- 新增：美化Details内部的PRE内容 --- */

pre {
    font-family: "Microsoft YaHei", "Arial", sans-serif;
    font-size: 1em; /* 继承父级字体大小 */
    line-height: 1.7; /* 设置合适的行高 */
    color: #363636; /* 设置统一的字体颜色 */
    background-color: transparent; /* 确保背景是透明的 */
    border: none; /* 去掉可能的边框 */
    padding: 0; /* 去掉内边距 */
    margin: 0; /* 去掉外边距 */
    white-space: pre-wrap !important; /* 保留自动换行，并提升优先级以防被意外覆盖 */
}

/* --- 6. 命运选择面板 (Destiny Choice Panel) · 亮色主题 [最终修正 v3] --- */
/*
 * 使用 !important 来强制覆盖平台的默认 <pre> 样式
 */

.destiny-choice-panel {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, sans-serif;
  color: #363636; /* 默认黑色文字 */
  line-height: 1.7;
  /* 盒子模型 */
  border: 1px solid #dbdbdb; /* 浅灰色边框 */
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0; 
  background-color: #ffffff; /* 明确的白色背景 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}
/* 面板标题 (h3) */
.destiny-choice-panel h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eeeeee;
  color: #363636; /* 确保标题也是黑色 */
}
/* 选项文本容器 (pre) */
.destiny-choice-panel pre {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: #363636 !important; 
  white-space: pre-wrap !important;
}

/*
  Catai 评论区美化 CSS - [V5 最终·纯白主题]
  
  - 核心：美化 .flex.items-start 元素。
  - 主题：纯白背景 (#ffffff) + 深色文字。
  - 间距：减小评论之间的分隔线 (divider) 边距。
*/

/* 1. 精准选择卡片元素，设置为 "纯白卡片" 样式 */
.group.ml-0 > .flex.items-start.gap-2 {
    /* 字体 (保持不变) */
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
    /* 纯白卡片样式 */
    background-color: #ffffff !important; /* 纯白色背景 */
    border-radius: 12px !important;
    padding: 15px 20px !important; /* 卡片内部边距 (保留) */
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important; /* 柔和阴影 */
    border: 1px solid #e0e0e0 !important; /* 浅灰色边框 */
    /* 移除玻璃态，因为纯白背景不需要 */
    /* backdrop-filter: none !important; */
    /* 平滑过渡效果 */
    transition: all 0.3s ease-in-out !important;
}
/* 2. 悬停效果 (亮色版) */
.group.ml-0 > .flex.items-start.gap-2:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important; /* 阴影加深 */
    background-color: #fcfcfc !important; /* 悬停时一点点灰色 */
    border-color: #d0d0d0 !important;
}
/* 3. 美化内部的评论内容区 (.break-all) */
.group.ml-0 .break-all {
    white-space: pre-wrap !important;
    line-height: 1.6 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    color: #333333 !important; /* 关键：确保内容文字是深色 */
}
/* 4. [关键] 确保卡片内部的文本颜色是深色，以便在白底上阅读 */
.group.ml-0 > .flex.items-start.gap-2 .text-grey-600 {
    color: #555 !important; /* 强制用户名/时间戳为深灰色 */
}
.group.ml-0 > .flex.items-start.gap-2 .text-gray-500 {
    color: #777 !important; /* 强制 "游玩 xx 轮" 等文字为中灰色 */
}
.group.ml-0 > .flex.items-start.gap-2 .text-gray-400 {
    color: #999 !important; /* 强制点赞按钮等为浅灰色 */
}
.group.ml-0 > .flex.items-start.gap-2 .font-bold {
    color: #111111 !important; /* 强制用户名(你)为近黑色 */
}
/* 5. [解决间距] 减小评论之间的分隔线 (divider) 的外边距 */
div.style_divider__mW0YX.style_horizontal__UvaHt {
    margin-top: 10px !important; /* 覆盖 !my-4 (原16px) */
    margin-bottom: 10px !important; /* 覆盖 !my-4 (原16px) */    
    /* 顺便美化一下分隔线本身，配 合亮色主题 */
    border-top: 1px solid #eeeeee !important; 
    background: none !important;
}
/* === [重铸·忍界] 战术通讯终端 UI (独立CSS版) === */

/* --- 1. 主通讯界面 · 忍村无线电频 --- */
.chat {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 24px;
    /* 背景色调转为木叶风格的深绿与土黄交织的战术色 */
    background: linear-gradient(145deg, #1b261c 0%, #2a3328 50%, #1e261e 100%);
    /* 边框改为苦无金属色与木叶绿的渐变 */
    border: 2px solid transparent;
    border-image: linear-gradient(to bottom right, #7b8d8e, #2ecc71) 1;
    border-radius: 4px;
    margin: 24px 0;
    position: relative;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.4);
    /* 【修复说明】: 移除 overflow: hidden; 防止内部的 .tip 悬浮窗被外层容器裁切掉 */
}

/* 背景花纹替换为手里剑与卷轴纹理 */
.chat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* SVG: 简化的四角手里剑图案 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 10 L60 40 L90 50 L60 60 L50 90 L40 60 L10 50 L40 40 Z' fill='none' stroke='%237b8d8e' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    animation: bg-scroll-ninja 40s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    /* 【修复说明】: 继承父级的圆角，确保背景图案不会溢出 */
    border-radius: inherit; 
}
@keyframes bg-scroll-ninja {
    from { background-position: 0 0; }
    to { background-position: 160px 160px; }
}

.chat::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(10, 15, 10, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.chat > * {
    position: relative;
    z-index: 1;
}

/* --- 2. 对话气泡 · 查克拉传讯 --- */
.bubble {
    max-width: 75%;
    padding: 14px 18px;
    position: relative;
    line-height: 1.6;
    word-wrap: break-word;
    /* 背景模仿战术护甲的材质感 */
    background: rgba(44, 62, 80, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* 允许内部的伪元素和悬浮窗溢出 */
    overflow: visible; 
}

.bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    /* 【修复说明】: 悬停时提升当前气泡的 z-index 层级，确保弹出的 tip 不会被下方气泡挡住 */
    z-index: 10; 
}

/* NPC气泡 · 队友/指挥官 */
.bubble.npc {
    align-self: flex-start;
    border: 1px solid rgba(46, 204, 113, 0.5); /* 木叶绿边框 */
    color: #ecf0f1;
    border-top-left-radius: 0; /* 切角效果 */
}

/* 查克拉光点特效 */
.bubble.npc::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #3498db 30%, transparent 70%); /* 查克拉蓝 */
    border-radius: 50%;
    box-shadow: 0 0 10px #3498db;
    animation: pulse-chakra 2s ease-in-out infinite;
    z-index: 2;
}

/* 用户气泡 · 主角/玩家 */
.bubble.user {
    align-self: flex-end;
    background: rgba(142, 68, 173, 0.2); 
    border: 1px solid rgba(231, 76, 60, 0.6); /* 警戒红边框 */
    color: #fff;
    border-bottom-right-radius: 0;
}

/* 气泡内通用元素样式 */
.bubble .name {
    display: inline-block;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(0,0,0,0.3);
    letter-spacing: 1px;
}
.bubble.npc .name { color: #2ecc71; border-left: 2px solid #2ecc71; }
.bubble.user .name { color: #e74c3c; border-left: 2px solid #e74c3c; }
.bubble .msg { margin: 0; padding: 0; font-size: 0.95em; }

/* 动画帧：查克拉流转 */
@keyframes pulse-chakra {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.8);
        box-shadow: 0 0 5px #3498db;
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px #3498db, 0 0 20px #2980b9;
    }
}

/* --- 3. 卷轴阅览 · 机密任务书 --- */
.doc {
    background: linear-gradient(to right, #e8d0a9, #f5e4c3 10%, #f5e4c3 90%, #e8d0a9);
    border-top: 15px solid #8b4513; 
    border-bottom: 15px solid #8b4513; 
    border-left: 2px solid #c2a77d;
    border-right: 2px solid #c2a77d;
    border-radius: 5px;
    padding: 30px 40px;
    margin: 24px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    font-family: 'KaiTi', 'STKaiti', serif; 
    color: #2c3e50;
    position: relative;
}

/* 卷轴边缘的绑带装饰 */
.doc::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 20%;
    width: 10px;
    height: 15px;
    background-color: #c0392b; 
}

.doc .title {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin: 0 0 20px 0;
    font-size: 1.6em;
    text-align: center;
    letter-spacing: 4px;
    font-weight: bold;
}
.doc .content {
    line-height: 2;
    font-size: 1.1em;
    text-indent: 2em;
}
.doc .content p { margin: 0 0 1.5em 0; }

/* --- 4. 忍界词条解析 · 情报悬浮窗 --- */
.tip {
    position: relative;
    color: #c0392b; 
    cursor: help;
    border-bottom: 1px dashed #c0392b;
    font-weight: bold;
}
.tip .text {
    visibility: hidden;
    width: 300px;
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: left;
    border-radius: 4px;
    padding: 14px;
    position: absolute;
    /* 【修复说明】: 给予极高的 z-index，保证在一切元素之上 */
    z-index: 9999; 
    bottom: 130%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    border: 2px solid #7f8c8d; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.8);
    font-size: 0.9em;
    line-height: 1.6;
    font-weight: normal;
    font-family: 'Microsoft YaHei', sans-serif;
}
.tip .text::after { 
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #7f8c8d transparent transparent transparent;
}
.tip:hover .text {
    visibility: visible;
    opacity: 1;
}

/* --- 5. 查克拉进度条 --- */
.progress-bar {
    display: inline-block;
    width: 160px;
    height: 18px;
    vertical-align: middle;
    border: 1px solid #2c3e50;
    border-radius: 4px; 
    background-color: #34495e;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    line-height: 16px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
    background: linear-gradient(
        to right, 
        #3498db var(--p, 0%), 
        #34495e var(--p, 0%)
    );
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
/* === [禁术·影之契] 查克拉损耗终端 === */

/* --- 1. 主容器 · 卷轴演算底盘 --- */
.MuiStack-root.text-purple-500.mt-1.css-1kz283j {
  background: rgba(20, 20, 20, 0.85) !important; /* 深墨色背景 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* 火影主题橙红边框，带一点点纸张纹理感 */
  border: 1px solid rgba(255, 152, 0, 0.3) !important; 
  border-left: 4px solid #ff9800 !important; /* 左侧加粗强调色 */
  border-radius: 4px !important;
  padding: 6px 12px !important;
  display: flex !important;
  flex-wrap: wrap !important; /* 核心：手机端窄屏自动折行 */
  align-items: center !important;
  gap: 8px 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 152, 0, 0.05) !important;
  margin-top: 10px !important;
}

/* --- 2. 忍法名称（模型名称） --- */
.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2 {
  color: #ff9800 !important; /* 经典九喇嘛橙 */
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
  margin: 0 !important;
  font-family: "Microsoft YaHei", sans-serif !important;
}

/* --- 3. “查克拉损耗”按钮 · 封印解除 --- */
.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2::after {
  content: '查克拉损耗' !important; /* 更有火影味儿的文本 */
  background: rgba(255, 152, 0, 0.1) !important;
  color: #fbc02d !important; /* 明亮的金色 */
  border: 1px solid #ff9800 !important;
  border-radius: 2px !important;
  padding: 1px 6px !important;
  font-size: 11px !important;
  margin-left: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* --- 4. 悬停效果 · 封印解开 (橙黄闪耀) --- */
.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2:hover::after {
  background: #ff9800 !important;
  color: #1a1a1a !important;
  box-shadow: 0 0 12px #ff9800 !important;
  transform: scale(1.05);
}

/* --- 5. 消耗数值 · 术式反馈 --- */
.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-1x48u03 {
  color: #f5f5f5 !important;
  font-size: 12px !important;
  font-family: "Lucida Console", Monaco, monospace !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
  opacity: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- 6. 激活逻辑 --- */
.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2:hover ~ p.MuiTypography-root.css-1x48u03 {
  opacity: 1 !important;
  max-width: 500px !important; /* 允许展开更长以适配长数据 */
  margin-left: 4px !important;
}

/* --- 7. 手机端窄屏特别优化 --- */
@media (max-width: 480px) {
  .MuiStack-root.css-1kz283j {
    padding: 6px 10px !important;
    gap: 4px 8px !important;
  }
  .MuiStack-root.css-1kz283j > p.MuiTypography-root.css-1x48u03 {
    font-size: 11px !important; /* 窄屏略微缩小数值字号防止断裂 */
  }
}