/* ⚠ 转换警告 ════════════════════════════════════════
   43 处游离 .bg-gray-100\/90 已按通用气泡处理
═══════════════════════════════════════════════════ */

/* ═══ 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;
}

/* ═══════════════════════════════════════════════════════
   🎨 Persona 5 Royal - Punk Style (v3.0)
   配色：深青色 + 洋红色 + 黑色
   ═══════════════════════════════════════════════════════ */

/* --- 字体与全局设置 --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@700&display=swap');

body, * {
    font-family: 'Oswald', 'Bebas Neue', 'Microsoft YaHei UI', 'SimHei', sans-serif !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
}

/* --- 主回复框 (暗黑渐变背景 + 噪点纹理) --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 25px 30px !important;
    overflow: visible !important;
    margin-top: 1.5em !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 深灰黑色渐变 */
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%) !important;
    /* 噪点纹理 + 手绘笔刷效果 */
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.05"/></svg>'),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(43, 124, 127, 0.03) 10px, rgba(43, 124, 127, 0.03) 20px);
    border: none !important;
    /* 多层强烈投影 */
    box-shadow: 
        8px 8px 0px rgba(0, 0, 0, 0.8),
        16px 16px 0px rgba(43, 124, 127, 0.3) !important;
    /* 斜切角效果 */
    clip-path: polygon(
        0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px)
    );
    z-index: 0 !important;
}

/* 对角装饰线 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15%;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #00D9D9 50%, transparent 100%);
    transform: skewX(-15deg);
    opacity: 0.6;
    z-index: 1;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted > * {
    position: relative;
    z-index: 2 !important;
    color: #FFFFFF !important;
}

/* --- 标题样式 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted h1, 
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted h2, 
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted h3 {
    font-family: 'Bebas Neue', 'Oswald', sans-serif !important;
    font-size: 1.6em !important;
    letter-spacing: 4px !important;
    color: #FFFFFF !important;
    border-bottom: none !important;
    /* 多层锐利文字阴影 */
    text-shadow: 
        3px 3px 0px #000000,
        6px 6px 0px rgba(233, 30, 99, 0.5) !important;
    padding-bottom: 5px;
    margin-bottom: 12px !important;
    text-transform: uppercase;
    position: relative;
}

/* 标题装饰线 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted h1::after,
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted h2::after,
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E91E63 0%, #00D9D9 100%);
    transform: skewX(-15deg);
}

/* --- 加载动画 --- */
.flex.items-center.justify-center.size-6 {
    width: 100% !important;
    height: auto !important;
    max-width: 500px !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    background: #1A1A1A !important;
    border: 3px solid #00D9D9 !important;
    border-radius: 0 !important;
    box-shadow: 
        8px 8px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 217, 217, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1em auto !important;
    clip-path: polygon(0 5%, 5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%);
}

.flex.items-center.justify-center.size-6::before {
    content: '' !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background-image: url('https://pic1.imgdb.cn/item/68eb9af6c5157e1a8869db9f.gif') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 5 !important;
    filter: none !important;
}

/* --- 核心：折叠栏通用样式 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details {
    background: rgba(26, 26, 26, 0.6) !important;
    /* 双重边框设计 */
    border: 3px solid #FFFFFF !important;
    outline: 2px solid #E91E63 !important;
    outline-offset: -8px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 3 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    /* 不规则多边形裁切 */
    clip-path: polygon(
        0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px)
    );
}

/* 折叠栏左侧装饰标记 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #E91E63 0%, #2B7C7F 50%, #00D9D9 100%);
    z-index: 1;
}

/* --- 核心：折叠栏标题 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary {
    font-family: 'Bebas Neue', 'Oswald', sans-serif !important;
    font-size: 1.2em !important;
    letter-spacing: 3px !important;
    padding: 8px 15px 8px 45px !important;
    cursor: pointer !important;
    font-weight: 900 !important;
    outline: none !important;
    list-style: none;
    position: relative;
    transition: all 0.3s ease;
    z-index: 4 !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%) !important;
    color: #1A1A1A !important;
    text-transform: uppercase;
    /* 笔刷纹理 */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(26, 26, 26, 0.02) 2px, rgba(26, 26, 26, 0.02) 4px);
}

/* 折叠栏悬浮效果：朋克风格 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary:hover {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #E91E63 0%, #2B7C7F 100%) !important;
    background-image: none !important;
    /* 倾斜移动 */
    transform: skewX(-2deg) translateX(5px) !important;
    /* 发光效果 */
    box-shadow: 
        0 0 20px rgba(233, 30, 99, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.1) !important;
}

/* 对角斜线扫过动画 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: sweep 0.6s ease-out;
}

@keyframes sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary::-webkit-details-marker { 
    display: none; 
}

/* 左侧三角形图标标记 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid #E91E63;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transition: all 0.3s ease;
}

/* 展开后图标旋转 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details[open] > summary::before {
    transform: translateY(-50%) rotate(90deg);
    border-left-color: #00D9D9;
}

/* --- 悬浮效果：朋克风格放大 + 发光 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details:hover {
    transform: translateY(-4px) !important;
    /* 多层投影 */
    box-shadow: 
        0 0 25px rgba(0, 217, 217, 0.5),
        8px 8px 0px rgba(0, 0, 0, 0.8),
        16px 16px 0px rgba(233, 30, 99, 0.3) !important;
    z-index: 100 !important;
    /* 边框颜色变化 */
    border-color: #E91E63 !important;
}

/* --- 折叠栏展开内容 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div {
    padding: 15px 20px !important;
    background: 
        linear-gradient(135deg, rgba(43, 124, 127, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
    /* 左侧装饰边框 */
    border-left: 5px solid #00D9D9 !important;
    /* 粗细不一的斜线分隔 */
    border-top: 3px solid rgba(233, 30, 99, 0.5) !important;
    margin-top: 0 !important;
    color: #E0E0E0 !important;
    font-size: 1em !important;
    line-height: 1.7 !important;
    z-index: 2 !important;
    position: relative;
    /* 噪点纹理 */
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="n"><feTurbulence baseFrequency="0.9"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.03"/></svg>');
    /* 从左侧滑入动画 */
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 对角装饰线 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 20px;
    width: 2px;
    height: 80%;
    background: linear-gradient(180deg, transparent 0%, #E91E63 50%, transparent 100%);
    transform: skewX(-20deg);
    opacity: 0.4;
}

/* 嵌套details的分割线 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div > details {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 2px dashed rgba(0, 217, 217, 0.4) !important;
}

/* --- 并排布局容器 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin: 12px 0 !important;
    width: 100% !important;
    position: relative;
}

/* 展开时占据整行 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details[open] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* --- 其他元素样式 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted strong {
    color: #E91E63 !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    /* 强调标签效果 */
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(43, 124, 127, 0.2) 100%);
    padding: 2px 6px;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted a {
    color: #00D9D9 !important;
    text-decoration: none !important;
    border-bottom: 2px solid #00D9D9;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 700;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted a:hover {
    background: rgba(0, 217, 217, 0.2);
    color: #FFFFFF !important;
    border-bottom-color: #E91E63;
    box-shadow: 0 0 15px rgba(0, 217, 217, 0.5);
    transform: skewX(-2deg) translateX(2px);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted code {
    background: rgba(43, 124, 127, 0.2) !important;
    color: #00D9D9 !important;
    border: 2px solid rgba(0, 217, 217, 0.5) !important;
    padding: 3px 8px !important;
    border-radius: 0 !important;
    font-size: 0.95em !important;
    font-family: 'Courier New', monospace !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 3px, 3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px));
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted blockquote {
    border-left: 6px solid #E91E63 !important;
    background: 
        linear-gradient(90deg, rgba(233, 30, 99, 0.2) 0%, rgba(26, 26, 26, 0.9) 100%) !important;
    padding: 12px 18px !important;
    color: #E0E0E0 !important;
    font-size: 1em !important;
    margin: 12px 0 !important;
    box-shadow: 
        5px 5px 0 rgba(0, 0, 0, 0.6),
        10px 10px 0 rgba(43, 124, 127, 0.2);
    position: relative;
}

/* 引用块装饰 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted blockquote::before {
    content: '❝';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3em;
    color: #E91E63;
    opacity: 0.3;
}

/* --- 表格样式 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted table {
    border: 3px solid #FFFFFF !important;
    background-color: rgba(26, 26, 26, 0.9) !important;
    box-shadow: 
        8px 8px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 217, 217, 0.2) !important;
    font-size: 1em !important;
    clip-path: polygon(0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px));
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted th {
    background: 
        linear-gradient(135deg, #2B7C7F 0%, #E91E63 100%) !important;
    color: #FFFFFF !important;
    border-bottom: 3px solid #00D9D9 !important;
    padding: 10px 15px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000000;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted td {
    border: 1px solid rgba(0, 217, 217, 0.3) !important;
    color: #E0E0E0 !important;
    padding: 8px 15px !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted tr:nth-child(even) {
    background-color: rgba(43, 124, 127, 0.1) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted tr:hover {
    background-color: rgba(233, 30, 99, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 217, 217, 0.3);
    transform: translateX(3px);
}

/* --- 列表项 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted li {
    font-size: 1em !important;
    line-height: 1.7 !important;
    color: #E0E0E0 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted li::marker {
    color: #E91E63;
    font-weight: 900;
}

/* --- 平台按钮与输入框美化 --- */
.flex.items-center.gap-2.pb-2 > button:not(.rounded-full):not(.size-7) {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%) !important;
    color: #FFFFFF !important;
    border: 3px solid #00D9D9 !important;
    border-radius: 0 !important;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 217, 217, 0.3) !important;
    font-weight: 900 !important;
    font-family: 'Bebas Neue', 'Oswald', sans-serif !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    padding: 6px 14px !important;
    font-size: 0.9em !important;
    letter-spacing: 2px !important;
    /* 不规则按钮形状 */
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
}

/* 按钮悬停效果 */
.flex.items-center.gap-2.pb-2 > button:not(.rounded-full):not(.size-7):hover {
    background: linear-gradient(135deg, #E91E63 0%, #2B7C7F 100%) !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    transform: skewX(-2deg) translateY(-2px) !important;
    box-shadow: 
        0 0 25px rgba(233, 30, 99, 0.6),
        6px 6px 0px rgba(0, 0, 0, 0.8) !important;
}

/* 输入框美化 */
#ai-chat-input {
    background-color: #1A1A1A !important;
    border: 3px solid #00D9D9 !important;
    border-radius: 0 !important;
    color: #FFFFFF !important;
    box-shadow: inset 3px 3px 0 rgba(0, 217, 217, 0.2) !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1em !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
    clip-path: polygon(0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px));
}

/* 输入框聚焦效果 */
#ai-chat-input:focus {
    border-color: #E91E63 !important;
    box-shadow: 
        0 0 20px rgba(233, 30, 99, 0.5),
        inset 0 0 15px rgba(0, 217, 217, 0.2) !important;
    outline: none !important;
}

/* 输入框容器透明化 */
#ai-chat-bottom-input { 
    background: transparent !important; 
    backdrop-filter: none !important; 
}

/* 发送按钮美化 */
button[type="submit"],
button.MuiButton-root {
    background: 
        linear-gradient(135deg, #2B7C7F 0%, #E91E63 100%) !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
    border-radius: 0 !important;
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(233, 30, 99, 0.4) !important;
    font-weight: 900 !important;
    font-family: 'Bebas Neue', 'Oswald', sans-serif !important;
    transition: all 0.3s ease !important;
    padding: 12px 24px !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    clip-path: polygon(10% 0, 100% 0, 100% 60%, 90% 100%, 0 100%, 0 40%);
}

button[type="submit"]:hover,
button.MuiButton-root:hover {
    background: #FFFFFF !important;
    color: #E91E63 !important;
    border-color: #00D9D9 !important;
    transform: skewX(-3deg) translateY(-4px) !important;
    box-shadow: 
        0 0 30px rgba(0, 217, 217, 0.7),
        8px 8px 0px rgba(0, 0, 0, 0.8) !important;
}

/* --- 模型信息栏美化 --- */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1.css-1kz283j,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%) !important;
    border: 3px solid #00D9D9 !important;
    border-radius: 0 !important;
    padding: 8px 15px !important;
    margin-top: 10px !important;
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 217, 217, 0.3) !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
    clip-path: polygon(0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px));
}
*/

/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1:hover,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1:hover {
    border-color: #E91E63 !important;
    box-shadow: 
        0 0 20px rgba(233, 30, 99, 0.5),
        6px 6px 0px rgba(0, 0, 0, 0.8) !important;
    transform: translateY(-2px) !important;
}
*/

/* 所有文字统一样式 */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1 p,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 p {
    color: #E0E0E0 !important;
    font-size: 0.95em !important;
    font-weight: 900 !important;
    font-family: 'Bebas Neue', 'Oswald', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    text-shadow: 2px 2px 0 #000000 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}
*/

/* 模型名称特殊高亮 */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1 p:first-child,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 p:first-child {
    color: #00D9D9 !important;
    font-weight: 900 !important;
    position: relative !important;
    padding-right: 15px !important;
}
*/

/* 模型名称后添加分隔符 */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1 p:first-child::after,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 p:first-child::after {
    content: '/' !important;
    position: absolute !important;
    right: 0 !important;
    color: #E91E63 !important;
    font-weight: 900 !important;
}
*/

/* 消耗信息默认隐藏 */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1 p:nth-child(n+2),
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 p:nth-child(n+2) {
    display: none !important;
}
*/

/* 悬浮显示消耗信息 */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1:hover p:nth-child(n+2),
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1:hover p:nth-child(n+2) {
    display: block !important;
}
*/

/* 输入和输出消耗添加图标 */
/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1 p:nth-child(2)::before,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 p:nth-child(2)::before {
    content: '▼ ' !important;
    color: #2B7C7F !important;
}
*/

/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1 p:nth-child(3)::before,
.flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 p:nth-child(3)::before {
    content: '▲ ' !important;
    color: #E91E63 !important;
}
*/

/* 移动端优化 */
@media (max-width: 768px) {
/* [Token消耗hover逻辑转换未启用]
    .flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1:hover,
    .flex.w-full.items-center.justify-between.gap-2.px-2.mt-1:hover {
        flex-wrap: wrap !important;
    }
*/
    
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary {
        padding: 6px 12px 6px 40px !important;
        font-size: 1.1em !important;
    }
    
    .flex.items-center.gap-2.pb-2 > button:not(.rounded-full):not(.size-7) {
        padding: 5px 10px !important;
        font-size: 0.85em !important;
    }
}

/* 覆盖Material-UI默认颜色类 */
/* [Token消耗hover逻辑转换未启用]
.text-purple-500,
/* [Token消耗hover逻辑转换未启用]
.text-purple-500,
.text-orange-500 {
    color: #E0E0E0 !important;
}
*/
*/

/* --- 滚动条样式 --- */
::-webkit-scrollbar {
    width: 12px !important;
}

::-webkit-scrollbar-thumb {
    background: 
        linear-gradient(135deg, #2B7C7F 0%, #E91E63 100%) !important;
    border: 2px solid #1A1A1A !important;
    border-radius: 0 !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-track {
    background: #1A1A1A !important;
    border: 1px solid #00D9D9;
}

/* ═══════════════════════════════════════════════════════
   ✨ 特殊组件样式
   ═══════════════════════════════════════════════════════ */

/* --- 特殊：战斗态势和交互面板 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.battle-status,
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.interaction-panel {
    width: 100% !important;
    margin: 15px 0 !important;
}

/* --- 特殊：天鹅绒房间按钮 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.velvet-room > summary {
    background: linear-gradient(135deg, #0E49C9 0%, #1c5fd6 100%) !important;
    color: #4FFEFF !important;
    text-shadow: 3px 3px 0 #000000 !important;
    border: 3px solid #03F7F1 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.velvet-room > summary:hover {
    background: linear-gradient(135deg, #1c5fd6 0%, #03F7F1 100%) !important;
    box-shadow: 
        0 0 25px rgba(3, 247, 241, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.2) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.velvet-room {
    border: 3px solid #03F7F1 !important;
    outline: 2px solid #0E49C9 !important;
}