/* ═══ B平台加载动画适配（自动注入）═══ */
.flex.items-center.justify-center.size-6 { opacity: 1 !important; }
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }
.is-assistant.w-fit { width: 100% !important; }
.is-assistant > .border.border-muted:has(.flex.items-center.justify-center.size-6) {
  width: 100% !important; background: transparent !important;
  border: none !important; padding: 0 !important;
}
.is-assistant .space-y-3:has(.flex.items-center.justify-center.size-6) {
  display: flex; justify-content: center; width: 100%;
}

/* ═══ B平台表格修正（自动注入）═══ */
.rili-markdown-renderer table { display:table!important; table-layout:auto!important; width:100%!important; border-collapse:collapse!important; }
.rili-markdown-renderer table caption { display:table-caption!important; caption-side:top!important; text-align:center!important; padding:8px!important; }
.rili-markdown-renderer thead { display:table-header-group!important; }
.rili-markdown-renderer tbody { display:table-row-group!important; }
.rili-markdown-renderer tr { display:table-row!important; }
.rili-markdown-renderer th, .rili-markdown-renderer td { display:table-cell!important; }

/* ═══ B平台按钮组保护（自动注入 — 防止按钮消失）═══
   原理：B平台消息操作按钮结构为：
   .flex.items-center.gap-1.ml-auto (hover显隐包装)
     └── .bg-muted.rounded.flex.p-0.5 (按钮组容器)
           └── button.rounded-full.size-7 (单个按钮)
   以下规则使用高specificity + !important确保按钮
   不被任何转换后/透传的CSS规则意外隐藏
   ═══════════════════════════════════════════════ */
/* 按钮组容器保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5,
.is-user .bg-muted.rounded.flex.p-0\.5,
.is-assistant .bg-muted.rounded.flex.p-0\.5 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
}
/* 单个按钮保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5 > button,
.is-user .bg-muted.rounded.flex.p-0\.5 > button,
.is-assistant .bg-muted.rounded.flex.p-0\.5 > button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  clip: auto !important;
  clip-path: none !important;
}
/* hover显隐包装层保护 — 仅保留B平台原生的opacity过渡 */
.flex.items-center.gap-1.ml-auto.md\:opacity-0.group-hover\:opacity-100 {
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  overflow: visible !important;
}
/* 操作行保护 */
.flex.w-full.items-center.justify-between.gap-2.px-2 {
  display: flex !important;
  visibility: visible !important;
  overflow: visible !important;
}

/* ═══ B平台顶部栏适配说明（自动注入）═══
   A: div.sticky > div.flex.justify-between
      ├── 左侧空区
      ├── #ai-model-selector (居中)
      └── 右侧工具(设置按钮等)
   B: <header.flex.justify-between>
      ├── #nav-left (侧边栏开关)
      ├── #nav-middle (可能为空)
      └── #nav-right (通知/主题/语言)
   B平台模型按钮不在header内，选择器:
   button:has(> .flex-1.truncate.text-left)
   ═══════════════════════════════════════ */
header.flex.justify-between { position: relative; overflow: visible; }

/* 《为美好的世界献上祝福》主题UI CSS */
.konosuba-ui-container {
    --kono-blue: #4fa4e6; /* 阿库娅蓝 */
    --kono-red: #e63946;  /* 惠惠红 */
    --kono-yellow: #f4a261; /* 达克妮斯黄 */
    --kono-green: #2a9d8f; /* 和真绿 */
    --kono-bg: #fffdf7; /* 羊皮纸底色 */
    --kono-border: #8b5a2b; /* 木质边框色 */
    --kono-text: #2b2b2b;
    
    font-family: "Microsoft YaHei", sans-serif;
    background-color: var(--kono-bg);
    color: var(--kono-text);
    border: 3px solid var(--kono-border);
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-image: repeating-linear-gradient(45deg, rgba(139, 90, 43, 0.03) 0px, rgba(139, 90, 43, 0.03) 2px, transparent 2px, transparent 4px); /* 隐约的布纹质感 */
}

/* 叙事区域 */
.kono-narrative {
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--kono-blue);
    border-radius: 0 8px 8px 0;
    font-size: 15px;
}

/* 详情折叠面板 */
.kono-details {
    margin-bottom: 8px;
    border: 1px solid rgba(139, 90, 43, 0.3);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.kono-summary {
    background: linear-gradient(90deg, var(--kono-blue) 0%, #7ec0ee 100%);
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    list-style: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

/* 为不同模块赋予不同角色代表色 */
.kono-details:nth-of-type(3) .kono-summary { background: linear-gradient(90deg, var(--kono-green) 0%, #48bcae 100%); } /* 玩家-和真 */
.kono-details:nth-of-type(4) .kono-summary { background: linear-gradient(90deg, var(--kono-red) 0%, #ff6b6b 100%); } /* 目标-惠惠 */
.kono-details:nth-of-type(5) .kono-summary { background: linear-gradient(90deg, var(--kono-yellow) 0%, #f4c061 100%); } /* NPC-达克妮斯 */

.kono-content {
    padding: 10px;
    border-top: 1px dashed rgba(139, 90, 43, 0.3);
}

/* 网格与块级布局 */
.kono-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.kono-block {
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dotted #ccc;
}
.kono-block:last-child {
    border-bottom: none;
}

/* 标签高亮 */
name { color: var(--kono-red); font-weight: bold; }
SL { color: var(--kono-blue); font-weight: bold; }
info { color: var(--kono-border); font-size: 0.9em; }
abli { color: #8e44ad; font-weight: bold; }

/* 厄里斯货币特写 */
.kono-eris {
    color: #d4af37;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(212, 175, 55, 0.5);
}

/* 内部嵌套折叠 */
.kono-inner-details {
    margin-top: 5px;
    border-left: 3px solid var(--kono-border);
    padding-left: 8px;
}
.kono-inner-summary {
    color: var(--kono-border);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95em;
}
.kono-inner-content {
    font-size: 0.9em;
    padding: 5px 0;
    color: #444;
}

/* 表格 */
.kono-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 0.9em;
}
.kono-table th {
    background: rgba(139, 90, 43, 0.1);
    border: 1px solid rgba(139, 90, 43, 0.3);
    padding: 4px;
}
.kono-table td {
    border: 1px solid rgba(139, 90, 43, 0.2);
    padding: 4px;
}

/* 选项按钮 */
.kono-opts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}

.kono-btn {
    background: #fff;
    border: 2px solid var(--kono-border);
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    color: var(--kono-border);
    text-align: center;
}

.kono-btn:hover {
    background: var(--kono-border);
    color: #fff;
    transform: scale(1.02);
}

.kono-btn-skip {
    border-color: #7f8c8d;
    color: #7f8c8d;
    border-style: dashed;
}
.kono-btn-skip:hover {
    background: #7f8c8d;
    color: #fff;
}

/* 容器隔离 */
ai {
  display: block;
  font-family: 'Comic Sans MS', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f0f8ff; /* 浅蓝背景，符合阿库娅的色调 */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* 装饰性背景：阿库娅的眼泪与爆裂魔法的火花 */
ai::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,165,0,0.2) 10%, transparent 10%),
              radial-gradient(circle, rgba(0,191,255,0.2) 10%, transparent 10%);
  background-size: 50px 50px, 60px 60px;
  background-position: 0 0, 25px 25px;
  animation: bgMove 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes bgMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-50px, -50px) rotate(10deg); }
}

/* 正文区域样式 */
ai .kono-narrative {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  border: 3px dashed #ff69b4; /* 达克妮丝的粉色受虐感 */
  border-radius: 15px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  box-shadow: inset 0 0 10px rgba(255, 105, 180, 0.3);
  transition: all 0.3s ease;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* 对话样式：强调与恶搞 */
ai .kono-narrative strong {
  color: #000080; /* 阿库娅的深蓝 */
  font-weight: bold;
  font-size: 1.1em;
  background: linear-gradient(120deg, #ffd700 0%, #ffd700 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 90%;
  padding: 0 4px;
  border-radius: 3px;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

/* 随机掉落的卷心菜装饰（伪元素实现） */
ai .kono-narrative::after {
  content: '🥬';
  position: absolute;
  font-size: 24px;
  bottom: -15px;
  right: -15px;
  animation: spin 3s linear infinite, bounce 2s ease-in-out infinite alternate;
  opacity: 0.8;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes bounce { 
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* 手机端适配 */
@media (max-width: 600px) {
  ai { padding: 10px; }
  ai .kono-narrative { padding: 15px; font-size: 14px; }
}

/* === 阿克塞尔新手村 (Axel) 风格思维链样式 === */
/* 融合了阿库娅的智障蓝、惠惠的爆裂红与达克妮丝的受虐黄 */

.cot-container details {
    /* -- 核心配色板 (美好世界适配) -- */
    --aqua-blue-light: #87cefa;   /* 阿库娅水流浅蓝 */
    --aqua-blue-main: #00bfff;    /* 阿库娅智障蓝 */
    --kazuma-green: #2e8b57;      /* 和真·偷窃绿 */
    
    --darkness-yellow: #ffd700;   /* 达克妮丝·十字骑士金 */
    --megumin-red: #dc143c;       /* 惠惠·中二红 */
    --explosion-orange: #ff4500;  /* 爆裂魔法橙 */
    
    --axel-bg: #fdf5e6;           /* 冒险者公会羊皮纸背景 */
    --axel-card: #fff8dc;         /* 任务卡片底色 */

    background-color: rgba(253, 245, 230, 0.9); /* 半透明羊皮纸底色 */
    backdrop-filter: blur(5px);     /* 冒险者公会的酒气朦胧感 */
    
    /* 边框：阿库娅的水流感，带一点惠惠的爆裂阴影 */
    border: 1px dashed rgba(0, 191, 255, 0.5);
    border-left: 4px solid var(--aqua-blue-main); 
    border-radius: 8px; /* 稍微粗糙的公会木板边缘 */
    
    font-family: 'Comic Sans MS', 'Microsoft YaHei', sans-serif; /* 充满恶搞气息的字体 */
    color: #333; /* 适合羊皮纸的深色文字 */
    line-height: 1.6;
    margin: 18px 0;
    position: relative;
    overflow: hidden;
    
    /* 阴影：混合了水蓝色光晕和爆裂魔法的暗影 */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1), 
        0 0 10px rgba(0, 191, 255, 0.2),
        inset 0 0 20px rgba(220, 20, 60, 0.05); /* 内部隐约的红色 */
        
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停时：爆裂魔法咏唱开始，边框震动发光 */
.cot-container details:hover {
    border-color: var(--explosion-orange);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2), 
        0 0 15px var(--explosion-orange),
        inset 0 0 10px var(--darkness-yellow); /* 悬停时隐约透出达克妮丝的兴奋黄 */
    animation: kono-shake 0.4s ease-in-out infinite alternate; /* 加入轻微震动恶搞 */
}

@keyframes kono-shake {
    0% { transform: rotate(0deg) translate(0, 0); }
    100% { transform: rotate(0.5deg) translate(1px, -1px); }
}

/* 顶部流光装饰 - 小队四人的代表色 */
.cot-container details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--aqua-blue-main), 
        var(--megumin-red), 
        var(--darkness-yellow), 
        var(--kazuma-green),
        transparent
    );
    opacity: 0.9;
}

/* === 标题栏 (任务发布板表层) === */
.cot-container summary {
    /* 背景：木质公会任务板的渐变 */
    background: linear-gradient(135deg, rgba(222, 184, 135, 0.8) 0%, rgba(205, 133, 63, 0.8) 100%);
    color: #8b4513; /* 深棕色字 */
    padding: 16px 24px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    list-style: none;
    user-select: none;
    border-bottom: 2px dashed rgba(139, 69, 19, 0.3);
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

/* 标题栏悬停 - 惠惠的咏唱高亮 */
.cot-container summary:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.8) 0%, rgba(220, 20, 60, 0.8) 100%);
    color: #fff;
    text-shadow: 0 0 8px var(--darkness-yellow);
}

/* 展开/折叠标记 - 阿库娅的水滴 */
.cot-container summary::before {
    content: '💧'; /* 智障女神的眼泪 */
    margin-right: 12px;
    font-size: 1.3em;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    line-height: 1;
}

/* 展开状态下的标记 - 变为惠惠的爆裂魔法 */
.cot-container details[open] summary::before {
    content: '💥';
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 5px var(--explosion-orange));
}

/* 标题高亮装饰 - 底部滑动的爆裂能量条 */
.cot-container summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    /* 渐变色条：爆裂红与十字金 */
    background: linear-gradient(90deg, var(--darkness-yellow), var(--megumin-red));
    box-shadow: 0 0 8px var(--explosion-orange);
    transition: width 0.5s ease;
}

.cot-container details[open] summary::after {
    width: 100%;
}

/* === 内容区域 (冒险者公会大厅) === */
.cot-container details > div, 
.cot-container .cot-content {
    padding: 24px 28px;
    /* 极淡的十字金背景，模拟公会灯光 */
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.05), transparent);
}

/* 分割线 - 惠惠的爆裂轨迹 */
.cot-container hr {
    border: 0;
    height: 2px;
    /* 爆裂魔法融合渐变 */
    background: linear-gradient(90deg, 
        transparent, 
        var(--megumin-red), 
        var(--explosion-orange), 
        var(--darkness-yellow), 
        transparent
    );
    margin: 25px 0;
    opacity: 0.8;
}

/* 段落样式 */
.cot-container p {
    margin-bottom: 1.2em;
    text-align: justify;
    color: #4a4a4a;
}

/* 强调文字 - 类似于系统提示，或者和真的吐槽 */
.cot-container strong {
    color: var(--megumin-red);
    font-weight: bold;
    background: rgba(255, 215, 0, 0.3);
    padding: 0 4px;
    border-radius: 3px;
}

/* 首字下沉 - 惠惠的中二霸气 */
.cot-container p:first-of-type::first-letter {
    font-family: '黑体', serif;
    font-size: 2.2em;
    color: #fff;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 4px;
    padding: 4px 8px;
    /* 惠惠的红黑背景块 */
    background: linear-gradient(135deg, var(--megumin-red), #800000);
    border: 2px solid var(--darkness-yellow);
    border-radius: 50% 10% 50% 10%; /* 扭曲的形状，像眼罩 */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

/* 列表样式 */
.cot-container ul, .cot-container ol {
    padding-left: 10px;
    margin: 15px 0;
}

.cot-container li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
    list-style: none;
}

/* 列表项标记 - 飞行的卷心菜 */
.cot-container ul li::before {
    content: '🥬';
    position: absolute;
    left: 0;
    font-size: 1.1em;
    top: 0px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* 代码块 - 冒险者卡片解析 */
.cot-container pre, .cot-container code {
    font-family: 'Consolas', monospace;
    background-color: rgba(255, 250, 205, 0.8); /* 柠檬绸色，像廉价卡片 */
    border: 1px dashed var(--kazuma-green); /* 和真的绿色边框 */
    border-radius: 4px;
    padding: 2px 6px;
    color: #006400; /* 深绿色代码 */
    font-size: 0.9em;
}

.cot-container pre {
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid var(--aqua-blue-main);
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 250, 205, 0.9),
        rgba(255, 250, 205, 0.9) 10px,
        rgba(253, 245, 230, 0.9) 10px,
        rgba(253, 245, 230, 0.9) 20px
    );
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* 链接样式 - 厄里斯的指引 */
.cot-container a {
    color: var(--aqua-blue-main);
    text-decoration: none;
    border-bottom: 2px dotted var(--aqua-blue-main);
    transition: all 0.2s;
    font-weight: bold;
}

.cot-container a:hover {
    color: var(--explosion-orange);
    border-bottom-color: var(--explosion-orange);
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
    background-color: rgba(255, 215, 0, 0.2);
}

/* 移除WebKit默认箭头 */
.cot-container summary::-webkit-details-marker {
    display: none;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .cot-container details {
        margin: 15px 0;
        border-radius: 8px;
    }
    .cot-container summary {
        padding: 14px 18px;
    }
}

/* === 阿克塞尔公会专属加载动画 (KonoSuba 风格) === */

/* 隐藏原有的三个加载圆点 */
.is-assistant .is-assistant .flex.items-center.justify-center.size-6 > .flex.gap-2 {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* 重构加载容器：注入美好世界灵魂的边框与动态 */
.is-assistant .is-assistant div:has(> .flex.items-center.justify-center.size-6 > .flex.gap-2) {
    /* 强制布局重置，改为flex以便定位底部文字 */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 320px !important; /* 预留底部文字空间 */
    min-height: 250px !important;
    
    /* 背景图片设置 (保留用户指定的GIF) */
    background: url('https://pic1.imgdb.cn/item/69cb92782154d21e1354de9d.gif') no-repeat center top !important;
    background-size: contain !important; 
    
    /* 增加公会羊皮纸底色，防止透明背景在某些模式下看不清 */
    background-color: rgba(253, 245, 230, 0.8) !important;

    /* 替换为阿库娅水蓝与惠惠爆裂红交替的恶搞边框 */
    border: 3px dashed #00bfff !important;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4) !important;
    padding: 0 0 15px 0 !important;
    margin: 15px 0 !important;
    border-radius: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* 整体容器轻微震动，模拟爆裂魔法咏唱时的魔力波动 */
    animation: kono-loading-shake 2s infinite alternate ease-in-out !important;
}

/* 容器震动与边框变色动画 */
@keyframes kono-loading-shake {
    0% { transform: rotate(-1deg); border-color: #00bfff; /* 阿库娅蓝 */ }
    50% { transform: rotate(1deg); border-color: #ff4500; /* 爆裂橙 */ }
    100% { transform: rotate(0deg); border-color: #ffd700; /* 达克妮丝黄 */ }
}

/* 重新利用伪元素，制作动态切换的经典语录与“友善”提示 */
.is-assistant .is-assistant div:has(> .flex.items-center.justify-center.size-6 > .flex.gap-2)::after {
    content: "【警告】阿库娅正在消耗你的智商来处理请求..." !important;
    display: block !important;
    font-family: 'Comic Sans MS', 'Microsoft YaHei', sans-serif !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #00bfff !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    border: 2px solid #333 !important;
    text-align: center !important;
    width: 85% !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
    
    /* 文字内容切换与呼吸闪烁动画 */
    animation: kono-text-change 8s infinite, kono-pulse 1s infinite alternate !important;
}

/* 经典语录轮播动画 (利用 content 属性动态替换) */
@keyframes kono-text-change {
    0%, 24% { 
        content: "【警告】阿库娅正在消耗你的智商来处理请求..." !important; 
        color: #00bfff !important; 
        border-color: #00bfff !important;
    }
    25%, 49% { 
        content: "「吾乃惠惠！正在为你构筑最强的爆裂回应！」" !important; 
        color: #dc143c !important; 
        border-color: #dc143c !important;
    }
    50%, 74% { 
        content: "（达克妮丝喘息：请...请用更复杂的设定羞辱我...）" !important; 
        color: #b8860b !important; 
        border-color: #ffd700 !important;
    }
    75%, 100% { 
        content: "和真：喂，快点加载完啊，我还想回马厩睡觉呢。" !important; 
        color: #2e8b57 !important; 
        border-color: #2e8b57 !important;
    }
}

/* 文字呼吸放大效果 */
@keyframes kono-pulse {
    from { transform: scale(0.95); box-shadow: 0 0 5px rgba(0,0,0,0.1); }
    to { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.3); }
}

/* 额外彩蛋：加载时偶尔飞过的高丽菜（卷心菜） */
.is-assistant .is-assistant div:has(> .flex.items-center.justify-center.size-6 > .flex.gap-2)::before {
    content: "🥬" !important;
    position: absolute !important;
    font-size: 28px !important;
    top: 40% !important;
    left: -40px !important;
    z-index: 5 !important;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.4)) !important;
    animation: kono-cabbage-fly 3s linear infinite !important;
}

/* 高丽菜飞行轨迹 */
@keyframes kono-cabbage-fly {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    50% { transform: translate(150px, -30px) rotate(180deg); }
    100% { transform: translate(400px, 40px) rotate(360deg); opacity: 0; }
}

/* =================================================================
   Konosuba Theme: God's Blessing on this Wonderful World!
   为美好的世界献上祝福主题：阿克塞尔的冒险者们
   核心配色：智障水蓝(阿库娅) + 冒险者绿(和真) + 爆裂红(惠惠) + 十字军金(达克妮斯)
   ================================================================= */

/* --- 1. 顶部栏净化 (清除原版杂色) --- */
header.flex.justify-between.w-full.top-0 [class*="bg-[#F1CBCB]"], 
header.flex.justify-between.w-full.top-0 [class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* --- 1. 顶部栏 (水之女神/阿克塞尔公会风格) --- */
/* 顶部栏容器 - 融合阿库娅的水蓝与和真的披风绿 */
header.flex.justify-between {
    background: linear-gradient(90deg, rgba(79, 195, 247, 0.95), rgba(129, 199, 132, 0.95)) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid #81d4fa !important; /* 水之女神的波纹切割线 */
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.4) !important;
}

/* 模型名称 - 模拟【冒险者公会卡片】 */
#nav-middle button:has(> .flex-1.truncate.text-left) .flex-1.truncate.text-left {
    color:#B78C5C !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    font-weight: bold !important;
    font-family: "Comic Sans MS", "Microsoft YaHei", sans-serif !important; /* 轻松欢快的字体 */
    letter-spacing: 1px !important;
}

#nav-middle button:has(> .flex-1.truncate.text-left) .flex-1.truncate.text-left::before {
    content: "【冒险者卡片: "; 
    color: #fff59d !important; /* 达克妮斯的金发色 */
    text-shadow: 0 0 5px rgba(255, 245, 157, 0.6);
}

#nav-middle button:has(> .flex-1.truncate.text-left) .flex-1.truncate.text-left::after {
    content: "】";
    color: #fff59d !important;
    opacity: 0.8;
}

/* --- 2. 聊天气泡 (核心需求：清新的异世界水蓝) --- */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    /* 背景：净化之水 - 清透蓝白，代表阿库娅的纯净(智障) */
    background: linear-gradient(145deg, #ffffff 0%, #e1f5fe 60%, #b3e5fc 100%) !important;
    border: 1px solid #81d4fa !important;
    border-radius: 12px 12px 12px 4px !important; 
    box-shadow: 
        4px 4px 12px rgba(129, 212, 250, 0.2), 
        inset 2px 2px 5px rgba(255, 255, 255, 0.9) !important;
    color: #37474f !important; 
}

/* 气泡文字 */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted .rili-markdown-renderer {
    color: #2c3e50 !important; 
    font-family: "Microsoft YaHei", sans-serif !important;
}

/* 强调文字 (惠惠/爆裂魔法风格) */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted .rili-markdown-renderer strong {
    /* 惠惠的爆裂红，在浅蓝背景上极为醒目 */
    color: #e53935 !important; 
    text-shadow: 0px 0px 3px rgba(229, 57, 53, 0.3) !important;
    font-weight: 800 !important;
}

/* 代码块背景适配 (达克妮斯十字军风格/公会羊皮纸) */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted pre {
    background-color: rgba(255, 253, 231, 0.9) !important; /* 淡淡的十字军黄 */
    border: 1px solid #ffe082 !important; 
    color: #424242 !important;
}

/* --- 3. 按钮组 (达克妮斯十字军/高贵白金风格) --- */
/* 顶部功能按钮 */
button, .menu_button.MuiButton-root,
#nav-right button {
    background: linear-gradient(135deg, #fff9c4, #fff59d) !important; /* 达克妮斯金黄 */
    color: #f57f17 !important; /* 亮橙/暗金文字 */
    border: 1px solid #ffe082 !important;
    border-bottom: 2px solid #ffd54f !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(255, 213, 79, 0.2) !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover,
#nav-right button:hover {
    background: linear-gradient(135deg, #ffffff, #fff9c4) !important;
    color: #e65100 !important; 
    border-color: #ffca28 !important;
    box-shadow: 0 0 10px rgba(255, 202, 40, 0.5) !important;
}

/* 分页按钮 */
.MuiPaginationItem-root.Mui-selected {
    background-color: #66bb6a !important; /* 和真绿选中态 */
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.6) !important;
}

/* --- 4. 底部输入框 (冒险者公会任务板风格) --- */
textarea, input[type="text"] {
    background-color: rgba(250, 250, 250, 0.95) !important; 
    color: #3e2723 !important; /* 褐色文字，增添羊皮纸书写感 */
    border: 1px solid #a5d6a7 !important;
    border-left: 4px solid #66bb6a !important; /* 和真披风绿 */
    border-radius: 4px !important;
}
textarea, input[type="text"]:focus {
    box-shadow: 0 0 12px rgba(102, 187, 106, 0.3) !important;
    border-color: #81c784 !important; 
    background-color: #ffffff !important;
}
textarea, input[type="text"]::placeholder {
    color: rgba(121, 85, 72, 0.5) !important;
}

/* --- 6. 评论区 (阿克塞尔镇的蓝天草地/清新风格) --- */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(to top, #e8f5e9, #ffffff) !important; /* 清新的草地绿到白 */
    border-top: 2px solid #c8e6c9 !important;
}

div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6) !important; /* 阿库娅的水蓝按钮 */
    box-shadow: 0 2px 5px rgba(41, 182, 246, 0.3) !important;
}

/* --- 7. 系统日志文字注入 (阿库娅/惠惠梗) --- */
.system-log-1 .loading-text::before { content: '✨ 花鸟风月！女神阿库娅正在净化网络...' !important; }
.system-log-2 .loading-text::before { content: '💥 Explosion! 爆裂魔法咏唱中...' !important; }