/* ⚠ 转换警告 ════════════════════════════════════════
   165 处游离 .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;
}

/* ═════════════════════════════════════════════════════════
   🌌 黯星坠落之地 - 埃索特利亚 主题 (v.Starfall rev.3)
   优雅魔力流动版 with 正文Card & 状态栏重构 & 记忆系统V2.0 & 音乐播放器
   ═════════════════════════════════════════════════════════ */

/* --- 字体设置 & 核心动画 --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Noto+Sans+SC:wght@300;400;700&display=swap');

@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 15px var(--star-alert-red), 0 0 25px var(--star-alert-red); text-shadow: 0 0 5px #fff; }
    50% { box-shadow: 0 0 8px var(--star-alert-red), 0 0 15px var(--star-alert-red); text-shadow: 0 0 2px #fff; }
}

@keyframes barFillAnimation {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes waveAnimation {
    0%, 100% { height: 8px; }
    50% { height: 20px; }
}

@keyframes magicFlow {
    0% { 
        box-shadow: 0 0 5px rgba(173, 235, 236, 0.3), 0 0 10px rgba(99, 218, 233, 0.2);
        border-color: rgba(173, 235, 236, 0.4);
    }
    50% { 
        box-shadow: 0 0 15px rgba(173, 235, 236, 0.5), 0 0 25px rgba(99, 218, 233, 0.3);
        border-color: rgba(99, 218, 233, 0.6);
    }
    100% { 
        box-shadow: 0 0 5px rgba(173, 235, 236, 0.3), 0 0 10px rgba(99, 218, 233, 0.2);
        border-color: rgba(173, 235, 236, 0.4);
    }
}

@keyframes fadeInContent { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

body, * {
    font-family: 'Noto Sans SC', 'Microsoft YaHei UI', sans-serif !important;
    letter-spacing: 0.8px !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
}

/* --- 黯星坠落之地 色彩系统 (黑暗) --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    --star-bg: #0a0f19;
    --star-text-primary: #e0e0e0;
    --star-text-secondary: #a48a6a;
    --star-highlight: #f3d9a5;
    --star-border: rgba(164, 138, 106, 0.4);
    --star-panel-bg: rgba(20, 28, 46, 0.8);
    --star-shadow: rgba(243, 217, 165, 0.1);
    --star-alert-red: #E53935;
    --star-success-green: #43A047;
    --star-hp-color: #c0392b;
    --star-stamina-color: #27ae60;
    
    /* 魔力流动色 */
    --magic-cyan: #ADEBEC;
    --magic-blue: #63DAE9;
    
    /* 自定义标签颜色 */
    --star-tag-name: #f3d9a5;
    --star-tag-sl: #6fa8dc;
    --star-tag-abli: #8e7cc3;
    --star-tag-info: #999999;
    --star-skill-bg: var(--star-text-secondary); 
    --star-li-bg: rgba(10, 15, 25, 0.5);
}

/* --- 主回复框 (模拟星图终端) --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    position: relative !important;
    background: var(--star-bg) !important;
    border: 1px solid var(--star-border) !important;
    box-shadow: 0 0 25px var(--star-shadow) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    overflow: hidden !important;
    margin-top: 1.5em !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted::before, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted::after { display: none !important; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted > * {
    position: relative; z-index: 3 !important;
    color: var(--star-text-primary) !important;
    overflow-wrap: break-word !important; word-break: break-word !important;
}

/* 正文字体与行高 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted p, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted td { font-size: 1.0em !important; line-height: 1.8 !important; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div p, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div li, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div span { font-size: 1.0em !important; line-height: 1.8 !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: 'Cinzel', serif !important;
    font-size: 1.6em !important; letter-spacing: 2px !important;
    color: var(--star-highlight) !important;
    border-bottom: 1px solid var(--star-border) !important;
    text-shadow: 0 0 8px var(--star-shadow) !important;
    padding-bottom: 12px; margin: 25px 0 20px !important;
    position: relative; font-weight: 700 !important;
}

.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 { display: none !important; }

/* --- 加载动画 --- */
.flex.items-center.justify-center.size-6 { 
    width: 100% !important; max-width: 383px !important;
    height: auto !important; aspect-ratio: 383 / 192 !important;
    padding: 0 !important; background: transparent !important;
    border: none !important; box-shadow: none !important;
    position: relative !important; overflow: hidden !important;
    margin: 1.5em auto !important; border-radius: 8px;
}

.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/6918206e3203f7be00076a97.gif') !important;
    background-size: cover !important; background-repeat: no-repeat !important; background-position: center !important; 
    z-index: 5 !important; 
}

/* 
 * ═════════════════════════════════════════════════════════
 *   📖 正文卡片化设计 (Narrative Card)
 * ═════════════════════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .narrative-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 28, 46, 0.9) 0%, rgba(10, 15, 25, 0.95) 100%) !important;
    border: 1px solid var(--star-border) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 20px 0 30px 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(243, 217, 165, 0.1) !important;
}

/* 星空背景纹理 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .narrative-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(243, 217, 165, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(243, 217, 165, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 40% 80%, rgba(243, 217, 165, 0.02) 0%, transparent 2%),
        radial-gradient(circle at 60% 20%, rgba(243, 217, 165, 0.02) 0%, transparent 2%);
    pointer-events: none;
    z-index: 1;
}

/* 卡片头部 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .card-header {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, transparent 0%, rgba(164, 138, 106, 0.2) 50%, transparent 100%);
    border-bottom: 1px solid var(--star-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .card-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 0 5px var(--star-shadow));
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .card-title {
    font-family: 'Cinzel', serif !important;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--star-highlight);
    text-shadow: 0 0 8px var(--star-shadow);
    letter-spacing: 2px;
}

/* 正文区域 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted text {
    display: block;
    position: relative;
    z-index: 2;
    padding: 20px 24px !important;
    color: var(--star-text-primary) !important;
    line-height: 1.9 !important;
    font-size: 1.02em !important;
    text-align: justify;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted text p {
    margin-bottom: 1.2em !important;
}

/* 正文首字下沉效果 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted text p:first-of-type::first-letter {
    font-size: 2.5em;
    font-weight: 700;
    float: left;
    line-height: 0.9;
    margin: 0.1em 0.1em 0 0;
    color: var(--star-highlight);
    text-shadow: 0 0 10px var(--star-shadow);
    font-family: 'Cinzel', serif !important;
}

/* --- 折叠栏样式 (星图卷轴) --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details {
    background: var(--star-panel-bg) !important;
    border: 1px solid var(--star-border) !important;
    outline: none !important; margin: 8px 0 !important; padding: 0 !important;
    position: relative !important; z-index: 4 !important;
    overflow: hidden !important; transition: all 0.25s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); border-radius: 8px !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary {
    font-size: 1.05em !important; letter-spacing: 1px !important;
    padding: 12px 18px 12px 45px !important; cursor: pointer !important;
    font-weight: 700 !important; outline: none !important; list-style: none;
    position: relative; transition: all 0.3s ease;
    z-index: 5 !important; background: transparent !important;
    color: var(--star-text-primary) !important;
    text-shadow: none !important; box-shadow: none !important;
    border-bottom: 1px solid transparent;
    display: flex !important; align-items: center !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details[open] > summary { border-bottom-color: var(--star-border); }

/* 优雅的魔力流动悬浮效果 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary:hover { 
    background: rgba(173, 235, 236, 0.08) !important; 
    color: var(--magic-cyan) !important; 
    border-color: var(--magic-blue) !important;
    animation: magicFlow 2s ease-in-out infinite;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary::after, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary:hover::after { display: none; }
.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: '✧' !important; position: absolute; left: 18px; top: 50%; 
    transform: translateY(-50%) rotate(0deg); font-size: 1.2em !important; 
    color: var(--star-text-secondary) !important; transition: all 0.25s ease; 
    text-shadow: 0 0 5px var(--star-shadow); 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details[open] > summary::before { transform: translateY(-50%) rotate(180deg); }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details:hover { 
    border-color: var(--magic-cyan) !important; 
    box-shadow: 0 0 12px rgba(173, 235, 236, 0.3); 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details > div { 
    padding: 14px 20px !important; background: rgba(10, 15, 25, 0.6) !important;
    border: none !important; box-shadow: none; margin-top: 0 !important; 
    color: var(--star-text-primary) !important; z-index: 4 !important; 
    position: relative; animation: fadeInContent 0.3s ease-out; 
}

/* 
 * ═════════════════════════════════════════════════════════
 *   🌌 三栏布局 -> 星盘样式
 * ═════════════════════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container { 
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 16px !important; margin: 16px 0 !important; width: 100% !important; 
    position: relative; align-items: start !important; justify-content: center !important;
} 

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details.main-panel { 
    grid-column: span 1 !important; width: 100% !important; margin: 0 !important; 
    background: var(--star-panel-bg) !important; border: 1px solid var(--star-border) !important;
    border-radius: 8px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease !important;
} 

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details.main-panel:hover {
    transform: translateY(-4px); 
    box-shadow: 0 0 20px rgba(173, 235, 236, 0.3) !important;
    border-color: var(--magic-cyan) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details.main-panel[open] { grid-column: 1 / -1 !important; display: block !important; } 
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details.main-panel[open] > summary { width: 100% !important; } 
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details.main-panel[open] > *:not(summary) { width: 100% !important; max-width: 100% !important; } 

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container summary { 
    width: 100% !important; text-align: center !important; white-space: normal !important;
    word-break: break-word !important; height: auto !important; min-height: 60px !important;
    line-height: 1.3 !important; display: flex !important; align-items: center !important; 
    justify-content: center !important; flex-wrap: wrap !important; box-sizing: border-box !important;
    padding: 8px !important; border-radius: 8px !important; color: var(--star-text-primary) !important; font-weight: 700 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container summary:hover {
    color: var(--magic-cyan) !important; 
    background: rgba(173, 235, 236, 0.05) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container > details.main-panel[open] > summary {
    border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
}

/* 
 * ═════════════════════════════════════════════════════════
 *   📊 状态栏分区配色系统
 * ═════════════════════════════════════════════════════════
 */

/* 状态头部标识 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--star-border);
}

/* 信息分区 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .info-section {
    background: rgba(10, 15, 25, 0.4);
    border-left: 3px solid var(--star-border);
    padding: 15px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

/* 分区悬停效果 - 优雅魔力流动 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .info-section:hover {
    background: rgba(20, 28, 46, 0.6);
    border-left-color: var(--magic-cyan);
    box-shadow: inset 0 0 15px rgba(173, 235, 236, 0.08);
}

/* 分区类型配色 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .info-section.basic {
    border-left-color: #6fa8dc;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .info-section.combat {
    border-left-color: #e06666;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .info-section.equipment {
    border-left-color: #93c47d;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .info-section.profile {
    border-left-color: #b4a7d6;
}

/* 分区标题 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--star-highlight);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--star-border);
    letter-spacing: 1px;
}

/* 
 * ═════════════════════════════════════════════════════════
 *   🏷️ 自定义信息标签 (星辰碎片) & 新标签
 * ═════════════════════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted name, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted SL, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted abli,
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted info, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted item, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted cycle,
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted location {
    display: inline-block !important; padding: 4px 10px !important; margin: 4px 2px !important; 
    border-radius: 4px !important; background: rgba(10, 15, 25, 0.7) !important; 
    color: var(--star-text-primary) !important; border: 1px solid var(--star-border) !important; 
    font-weight: 700 !important; font-size: 0.9em !important; text-shadow: none !important; 
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3) !important; transition: all 0.25s ease !important; 
    white-space: normal !important; line-height: 1.5 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted info.status-desc { display: block !important; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted name { color: var(--star-highlight) !important; border-color: var(--star-tag-name) !important; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted SL { color: var(--star-tag-sl) !important; border-color: var(--star-tag-sl) !important; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted abli { color: var(--star-tag-abli) !important; border-color: var(--star-tag-abli) !important; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted cycle, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted location { display: block !important; text-align: center; margin: 8px 0; }

/* 标签悬停 - 魔力流动效果 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted name:hover, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted SL:hover, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted abli:hover,
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted info:hover, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted item:hover { 
    transform: translateY(-2px) !important; 
    box-shadow: 0 0 12px rgba(173, 235, 236, 0.4) !important;
    border-color: var(--magic-cyan) !important; 
    background: rgba(173, 235, 236, 0.1) !important;
    color: var(--magic-cyan) !important;
}

/* 
 * ═════════════════════════════════════════════════════════
 *   🔮 御极/能力 & 列表 (奥术符文 & 记忆碎片)
 * ═════════════════════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted skill {
    display: block !important; background-color: transparent !important;
    color: var(--star-highlight) !important; text-align: center !important;
    padding: 10px 20px !important; margin: 25px 0 15px 0 !important;
    border-radius: 4px !important; font-size: 1.3em !important;
    font-family: 'Cinzel', serif !important; font-weight: bold !important;
    border-top: 1px solid var(--star-skill-bg) !important;
    border-bottom: 1px solid var(--star-skill-bg) !important;
    border-left: none; border-right: none;
    box-shadow: 0 0 10px var(--star-shadow) !important;
    text-shadow: 0 0 5px var(--star-shadow) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted ul { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted li {
    display: block !important; background-color: var(--star-li-bg) !important;
    color: var(--star-text-primary) !important; padding: 12px 20px !important;
    margin: 8px 0 !important; border-left: 3px solid var(--star-text-secondary) !important;
    border-top: none; border-right: none; border-bottom: none;
    border-radius: 0 !important; font-size: 1.0em !important; line-height: 1.8 !important;
    box-shadow: none !important; clip-path: none !important; transition: all 0.2s ease;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted li:hover { 
    background-color: rgba(173, 235, 236, 0.08) !important;
    border-left-color: var(--magic-cyan) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted li::marker { display: none !important; }

/* --- 数值条, 进度条 & 状态块 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .resource-bars { margin: 10px 0; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .bar-container { 
    display: flex; 
    align-items: center; 
    margin-bottom: 8px;
    position: relative;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .bar-container label { 
    width: 40px; 
    font-weight: 700; 
    color: var(--star-highlight); 
}

/* Progress条数值显示 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .bar-container::after {
    content: attr(data-value);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    text-shadow: 
        1px 1px 2px #000,
        -1px -1px 2px #000,
        1px -1px 2px #000,
        -1px 1px 2px #000;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.5px;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted progress {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 14px; border: 1px solid var(--star-border); border-radius: 7px;
    background-color: #000; overflow: hidden;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted progress::-webkit-progress-bar { background-color: #000; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted progress.hp-bar::-webkit-progress-value { background: var(--star-hp-color); }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted progress.stamina-bar::-webkit-progress-value { 
    background: linear-gradient(90deg, #1e8449, var(--star-stamina-color), #58d68d); 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .progress-bar { margin: 10px 0; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .progress-bar span { display: block; text-align: center; margin-bottom: 5px; font-weight: 700; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .bar-track { background: #000; border: 1px solid var(--star-border); height: 16px; border-radius: 8px; overflow: hidden; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .bar-fill {
    background: linear-gradient(90deg, #5D2E8C, #B02E6E); height: 100%;
    animation: barFillAnimation 1s ease-out; transform-origin: left;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .stat-block { background: var(--star-li-bg); padding: 10px; border-radius: 4px; margin: 10px 0; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .stat-block span { color: var(--star-text-primary); }

/* --- 强调文字 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted strong { 
    color: var(--star-highlight) !important; font-weight: 700 !important; 
    background: none; padding: 0; border: none; display: inline; 
    text-shadow: 0 0 5px var(--star-shadow); 
}

/* --- 链接样式 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted a { 
    color: var(--star-text-secondary) !important; text-decoration: none !important; 
    border-bottom: 1px dotted var(--star-text-secondary) !important;
    transition: all 0.25s ease; font-weight: 700; 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted a:hover { 
    background: rgba(173, 235, 236, 0.1) !important; 
    color: var(--magic-cyan) !important; 
    border-bottom-color: var(--magic-cyan) !important;
    border-bottom-style: solid !important; 
}

/* --- 代码块 & 引用块 & 表格 --- */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted pre, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted blockquote, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted table { background-image: none !important; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted code { 
    background: rgba(10, 15, 25, 0.8) !important; color: #e06c75 !important;
    border: 1px solid var(--star-border) !important; box-shadow: none; 
    padding: 2px 6px !important; border-radius: 4px !important; font-size: 0.95em !important; 
    font-family: 'Share Tech Mono', 'Courier New', monospace !important; 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted pre { 
    white-space: pre-wrap !important; word-wrap: break-word !important; 
    background-color: var(--star-panel-bg) !important; padding: 1em; 
    border: 1px solid var(--star-border); border-radius: 8px;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted blockquote { 
    border-left: 4px solid var(--star-text-secondary) !important; box-shadow: none; 
    background-color: rgba(10, 15, 25, 0.5) !important; padding: 14px 20px !important; 
    color: var(--star-text-primary) !important; margin: 14px 0 !important; 
    position: relative; font-style: normal; border-radius: 0 8px 8px 0;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted blockquote::before { display: none; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted table { 
    border: 1px solid var(--star-border) !important; box-shadow: none; 
    background-color: var(--star-panel-bg) !important; clip-path: none; 
    border-collapse: collapse; width: 100%; border-radius: 8px; overflow: hidden;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted th { 
    background: rgba(10, 15, 25, 0.9) !important; color: var(--star-highlight) !important; 
    border: 1px solid var(--star-border) !important; padding: 12px 15px !important; 
    letter-spacing: 1px; font-weight: 700; text-shadow: none; 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted td { 
    border: 1px solid var(--star-border) !important; color: var(--star-text-primary) !important; 
    padding: 10px 15px !important; 
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted tr:nth-child(even) { background-color: transparent !important; }
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted tr:hover { 
    background-color: rgba(173, 235, 236, 0.05) !important; 
    color: var(--star-text-primary) !important; 
}

/* 
 * ═════════════════════════════════════════════════════════
 *   🔧 平台按钮 & 输入框 & 抉择 - 星图终端风格
 * ═════════════════════════════════════════════════════════
 */
.flex.items-center.gap-2.pb-2 > button:not(.rounded-full):not(.size-7) {
    background: var(--star-panel-bg) !important; color: var(--star-text-primary) !important;
    border: 1px solid var(--star-border) !important; border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important; font-family: 'Noto Sans SC', 'Microsoft YaHei UI', sans-serif !important;
    font-weight: 700 !important; text-transform: none !important; transition: all 0.2s ease-in-out !important;
    padding: 6px 16px !important; letter-spacing: 1px !important; text-shadow: none !important;
}

.flex.items-center.gap-2.pb-2 > button:not(.rounded-full):not(.size-7):hover {
    background: var(--star-text-secondary) !important; color: #000 !important;
    transform: translateY(-2px) !important; box-shadow: 0 0 10px var(--star-shadow) !important;
    border-color: var(--star-highlight) !important;
}

.flex.items-center.gap-2.pb-2 > button:not(.rounded-full):not(.size-7):active {
    transform: translateY(0px) !important; box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    background: var(--star-highlight) !important; color: #000 !important;
}

#ai-chat-input {
    font-family: 'Noto Sans SC', 'Microsoft YaHei UI', sans-serif !important; font-size: 1em !important;
    font-weight: 400 !important; padding: 12px 18px !important; border-radius: 8px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4) !important; transition: all 0.2s ease !important;
    letter-spacing: 1px !important; outline: none !important; caret-color: var(--star-highlight) !important;
    background-color: var(--star-bg) !important; color: var(--star-text-primary) !important;
    border: 1px solid var(--star-border) !important;
}

#ai-chat-input::placeholder { color: #555 !important; font-style: normal !important; opacity: 1; }

#ai-chat-input:focus {
    outline: none !important; border-color: var(--star-text-secondary) !important;
    box-shadow: 0 0 0 3px rgba(164, 138, 106, 0.3) !important;
}

#ai-chat-input::selection { background: var(--star-text-secondary) !important; color: #000 !important; }
#ai-chat-bottom-input { background: transparent !important; backdrop-filter: none !important; }

button[type="submit"], button.MuiButton-root {
    background: var(--star-text-secondary) !important; color: #000 !important; border: none !important;
    border-radius: 8px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
    font-weight: 700 !important; transition: all 0.2s ease-in-out !important; padding: 8px 18px !important;
    font-size: 0.9em !important; text-shadow: none !important; font-family: 'Noto Sans SC', 'Microsoft YaHei UI', sans-serif !important;
}

button[type="submit"]:hover, button.MuiButton-root:hover {
    background: var(--star-highlight) !important; transform: translateY(-2px) !important;
    box-shadow: 0 0 12px var(--star-shadow) !important;
}

button[type="submit"]:active, button.MuiButton-root:active {
    transform: translateY(0) !important; background: var(--star-text-secondary) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

/* [Token消耗hover逻辑转换未启用]
.flex.w-full.items-center.justify-between.gap-2.px-2.text-purple-500.mt-1, .flex.w-full.items-center.justify-between.gap-2.px-2.mt-1 {
    background-color: rgba(10, 15, 25, 0.7) !important; background-image: none !important;
    border: 1px solid var(--star-border) !important; padding: 5px 10px !important;
    margin-top: 6px !important; border-radius: 8px;
}
*/

/* [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: #777 !important; font-size: 0.8em !important; }
*/
/* [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: var(--star-text-primary) !important; font-weight: 700; }
*/

/* --- 滚动条 --- */
::-webkit-scrollbar { width: 6px !important; height: 6px !important; }
::-webkit-scrollbar-thumb { background: var(--star-border) !important; border: none; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--star-text-secondary) !important; }
::-webkit-scrollbar-track { background: transparent !important; border: none; }

/* 
 * ═════════════════════════════════════════════════════════
 *   ✨ 特殊组件：剧情分支 (命运抉择)
 * ═════════════════════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch {
    grid-column: 1 / -1 !important; width: 100% !important; margin-top: 12px !important;
    border: 1px solid var(--star-text-secondary) !important; box-shadow: 0 0 15px var(--star-shadow) !important;
    background: var(--star-bg) !important; border-radius: 8px !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch > summary {
    background: var(--star-text-secondary) !important; color: #000 !important; font-weight: 900 !important;
    text-shadow: none !important; border-bottom-color: transparent; animation: none !important;
    border-radius: 6px 6px 0 0 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch > summary:hover { animation: none; }

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch > div, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch ul {
    background: var(--star-bg) !important; background-image: none !important; box-shadow: none;
    display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; padding: 15px !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch li {
    background: var(--star-panel-bg) !important; color: var(--star-text-primary) !important;
    border: 1px solid var(--star-border) !important; padding: 12px 16px 12px 50px !important;
    transition: all 0.25s ease !important; cursor: pointer !important;
    clip-path: none; box-shadow: none; text-shadow: none;
    font-weight: 700 !important; border-radius: 8px; margin: 0 !important; border-left: none !important;
    position: relative;
}

/* 选项编号标签 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch li::before {
    content: attr(data-key);
    display: flex !important;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--star-text-secondary);
    color: #000;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1em;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch li:hover {
    background: rgba(173, 235, 236, 0.15) !important; 
    color: var(--magic-cyan) !important;
    transform: none !important; 
    box-shadow: 0 0 15px rgba(173, 235, 236, 0.4) !important;
    border-color: var(--magic-cyan);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch li:hover::before {
    background: var(--magic-cyan);
    box-shadow: 0 0 10px rgba(173, 235, 236, 0.6);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch *, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch > div *, .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted details.story-branch li * {
    background-color: transparent !important; background-image: none !important;
}

/* 
 * ═════════════════════════════════════════════════════════
 *   🧠 记忆系统V2.0样式 (Memory System V2.0)
 * ═════════════════════════════════════════════════════════
 */

/* 记忆section通用样式 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section {
    background: rgba(10, 15, 25, 0.6) !important;
    border: 1px solid var(--star-border) !important;
    border-radius: 8px !important;
    margin: 12px 0 !important;
    transition: all 0.3s ease;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section:hover {
    border-color: var(--magic-cyan) !important;
    box-shadow: 0 0 15px rgba(173, 235, 236, 0.2);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section > summary {
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(164, 138, 106, 0.15) 50%, 
        transparent 100%
    );
    padding: 12px 18px 12px 45px !important;
    font-size: 1.05em !important;
    color: var(--star-highlight) !important;
    font-weight: 700 !important;
    border-bottom: 1px solid transparent;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section[open] > summary {
    border-bottom-color: var(--star-border);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section > summary:hover {
    background: rgba(173, 235, 236, 0.1) !important;
    color: var(--magic-cyan) !important;
}

/* 
 * ═══════════════════════════════════════════
 *   📜 事件日志样式 (Event Log)
 * ═══════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-container {
    padding: 10px 15px !important;
    background: rgba(10, 15, 25, 0.4) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    background: rgba(20, 28, 46, 0.6);
    border-left: 3px solid var(--star-border);
    border-radius: 0 6px 6px 0;
    transition: all 0.25s ease;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item:hover {
    background: rgba(173, 235, 236, 0.08);
    border-left-color: var(--magic-cyan);
    transform: translateX(3px);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px var(--star-shadow));
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-content {
    flex: 1;
    color: var(--star-text-primary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* 事件类型配色 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item.day-change {
    border-left-color: #9C27B0; /* 紫色 - Day切换 */
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item.equipment {
    border-left-color: #FF9800; /* 橙色 - 装备 */
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item.ascension {
    border-left-color: #FFD700; /* 金色 - 御极 */
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item.npc {
    border-left-color: #4CAF50; /* 绿色 - NPC */
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item.milestone {
    border-left-color: #2196F3; /* 蓝色 - 里程碑 */
}

/* 
 * ═══════════════════════════════════════════
 *   🧠 短期记忆样式 (Short-term Memory)
 * ═══════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-list {
    padding: 10px 15px !important;
    background: rgba(10, 15, 25, 0.4) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-item {
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(20, 28, 46, 0.5);
    border-left: 2px solid rgba(164, 138, 106, 0.4);
    border-radius: 0 4px 4px 0;
    color: var(--star-text-primary);
    font-size: 0.93em;
    line-height: 1.6;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-item:hover {
    background: rgba(173, 235, 236, 0.08);
    border-left-color: var(--magic-cyan);
    opacity: 1;
    transform: translateX(2px);
}

/* 最新记忆高亮 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-item.recent {
    border-left-width: 3px;
    border-left-color: var(--magic-cyan);
    background: rgba(173, 235, 236, 0.1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(173, 235, 236, 0.15);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-item.recent::before {
    content: '🆕';
    margin-right: 6px;
    font-size: 0.9em;
}

/* 
 * ═══════════════════════════════════════════
 *   ⭐ 轮回评估样式 (Evaluation)
 * ═══════════════════════════════════════════
 */
.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section.evaluation {
    border-color: rgba(255, 215, 0, 0.4) !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section.evaluation:hover {
    border-color: #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section.evaluation > summary {
    color: #FFD700 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section.evaluation ul {
    padding: 10px 20px !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section.evaluation li {
    padding: 8px 12px !important;
    margin: 5px 0 !important;
    background: rgba(255, 215, 0, 0.05) !important;
    border-left-color: #FFD700 !important;
}

.group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-section.evaluation strong {
    color: #FFD700 !important;
}


/* 
 * ═════════════════════════════════════════════════════════
 *   📱 移动端优化
 * ═════════════════════════════════════════════════════════
 */
@media (max-width: 768px) {
    body, * { letter-spacing: 0.5px !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted { padding: 12px !important; border-radius: 10px; }
    .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-size: 1.3em !important; letter-spacing: 1.5px !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary { padding: 10px 15px 10px 40px !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container { grid-template-columns: 1fr !important; gap: 12px !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container summary { font-size: 0.9em !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary::before { left: 15px; }
    
    /* 移动端音乐播放器 */
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .music-player {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
    }
    
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .music-text {
        display: none;
    }
    
    /* 移动端记忆样式 */
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-item,
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-item {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-icon {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted { padding: 8px !important; border-radius: 8px; }
    .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-size: 1.2em !important; letter-spacing: 1px !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted summary { font-size: 0.9em !important; padding: 8px 12px 8px 35px !important; }
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .triple-container summary { font-size: 0.8em !important; min-height: 50px; }
    
    /* 正文卡片移动端优化 */
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted text {
        padding: 15px 18px !important;
        font-size: 1em !important;
    }
    
    /* 移动端记忆样式 */
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .log-content,
    .group .is-user > .border.border-muted,
.is-assistant > .border.border-muted .memory-item {
        font-size: 0.85em;
    }
}