css
/* ============================================
   餐桌主题 · 木纹桌面 · 温暖雅致
   完整覆盖方案 (含强制覆盖)
   ============================================ */

/* ---------- 1. 隐藏顶部颜色装饰条 ---------- */
[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* ---------- 2. 聊天框主体：木桌桌面质感 ---------- */
.bg-gray-100\/90.relative.inline-block {
    /* 木质纹理主体底色：温暖深木到浅木渐变 */
    background:
        /* 细木纹线条 (水平) */
        repeating-linear-gradient(92deg,
            transparent 0px,
            transparent 2px,
            rgba(139, 90, 43, 0.06) 2px,
            rgba(139, 90, 43, 0.06) 4px
        ),
        repeating-linear-gradient(88deg,
            transparent 0px,
            transparent 8px,
            rgba(101, 67, 33, 0.04) 8px,
            rgba(101, 67, 33, 0.04) 10px
        ),
        /* 纵向纹理 */
        repeating-linear-gradient(2deg,
            transparent 0px,
            transparent 15px,
            rgba(255, 235, 205, 0.03) 15px,
            rgba(255, 235, 205, 0.03) 16px
        ),
        /* 年轮光晕 (隐约) */
        radial-gradient(ellipse at 50% 30%,
            rgba(255, 248, 230, 0.05) 0%,
            transparent 50%
        ),
        /* 主底色：温润木棕 */
        linear-gradient(165deg,
            #3d2b1f 0%,
            #4a3728 20%,
            #3e2e22 45%,
            #352419 70%,
            #2d2017 100%
        ) !important;

    border: 2px solid rgba(90, 65, 45, 0.7) !important;
    border-radius: 12px !important;

    /* 木框边框阴影 */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.65),
        /* 内凹边缘光 */
        inset 0 1.5px 0 rgba(255, 240, 210, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        inset 1.5px 0 0 rgba(255, 240, 210, 0.06),
        inset -1.5px 0 0 rgba(0, 0, 0, 0.25),
        /* 桌面边缘磨损感 */
        0 0 0 0.5px rgba(120, 85, 60, 0.3) !important;

    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;

    transition: box-shadow 0.3s ease, transform 0.2s ease !important;
}

/* 悬停：桌面微微上浮 */
.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow:
        0 10px 38px rgba(0, 0, 0, 0.7),
        inset 0 1.5px 0 rgba(255, 240, 210, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        inset 1.5px 0 0 rgba(255, 240, 210, 0.08),
        inset -1.5px 0 0 rgba(0, 0, 0, 0.25),
        0 0 0 0.5px rgba(140, 100, 70, 0.4),
        /* 桌下柔和光晕 */
        0 -2px 20px rgba(255, 220, 170, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* ---------- 3. 木纹纹理层 (伪元素) ---------- */
.bg-gray-100\/90.relative.inline-block::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    z-index: 0 !important;

    background:
        /* 粗木纹 (对角) */
        repeating-linear-gradient(55deg,
            transparent 0px,
            transparent 40px,
            rgba(60, 35, 18, 0.15) 40px,
            rgba(60, 35, 18, 0.15) 42px
        ),
        repeating-linear-gradient(125deg,
            transparent 0px,
            transparent 60px,
            rgba(80, 50, 25, 0.1) 60px,
            rgba(80, 50, 25, 0.1) 61px
        ),
        /* 木节疤 (随机分布) */
        radial-gradient(ellipse at 25% 35%,
            rgba(45, 28, 15, 0.35) 0%,
            rgba(45, 28, 15, 0.15) 30%,
            transparent 50%
        ),
        radial-gradient(ellipse at 72% 68%,
            rgba(40, 25, 12, 0.3) 0%,
            rgba(40, 25, 12, 0.1) 25%,
            transparent 42%
        ),
        /* 表面光泽 */
        radial-gradient(ellipse at 30% 15%,
            rgba(255, 248, 225, 0.08) 0%,
            transparent 45%
        ),
        radial-gradient(ellipse at 70% 85%,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 40%
        ) !important;

    mix-blend-mode: multiply !important;
    opacity: 0.7 !important;
}

/* ---------- 4. 桌面边缘装饰：餐布/木质镶边 (伪元素) ---------- */
.bg-gray-100\/90.relative.inline-block::after {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    right: -1px !important;
    bottom: -1px !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    z-index: 1 !important;

    /* 四角木质装饰：微妙的倒角高光 */
    background:
        /* 左上角 */
        radial-gradient(circle at 0% 0%,
            rgba(255, 245, 220, 0.15) 0%,
            transparent 35%
        ) top left / 50px 50px no-repeat,
        /* 右上角 */
        radial-gradient(circle at 100% 0%,
            rgba(255, 245, 220, 0.12) 0%,
            transparent 35%
        ) top right / 50px 50px no-repeat,
        /* 左下角 */
        radial-gradient(circle at 0% 100%,
            rgba(0, 0, 0, 0.12) 0%,
            transparent 35%
        ) bottom left / 50px 50px no-repeat,
        /* 右下角 */
        radial-gradient(circle at 100% 100%,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 35%
        ) bottom right / 50px 50px no-repeat;

    /* 细微的边缘金线/木纹结束线 */
    border: 0.5px solid rgba(160, 120, 80, 0.25) !important;
    border-radius: inherit !important;
}

/* ---------- 5. 内部文本内容 (信息栏) ---------- */
.markdown-body {
    color: #f2e8d8 !important;
    font-family: Georgia, "Times New Roman", "Segoe UI", serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    /* 禁止任何影响可读性的效果 */
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

/* 信息栏：段落间距增大，有"写在纸上"的感觉 */
.markdown-body p {
    margin-bottom: 0.85em !important;
}

/* 链接：温暖的琥珀色 */
.markdown-body a {
    color: #e8c080 !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    text-decoration-color: rgba(232, 192, 128, 0.4) !important;
}

.markdown-body a:hover {
    color: #f5d090 !important;
    text-shadow: 0 0 14px rgba(232, 192, 128, 0.2) !important;
}

/* 代码块：类似餐巾纸/卡片质感 */
.markdown-body code {
    background: rgba(255, 248, 235, 0.1) !important;
    color: #f0e0c8 !important;
    border: 1px solid rgba(160, 130, 95, 0.2) !important;
    border-radius: 5px !important;
    padding: 2px 7px !important;
    font-size: 0.88em !important;
    font-family: "Courier New", Consolas, monospace !important;
}

.markdown-body pre {
    background: rgba(30, 20, 12, 0.5) !important;
    border: 1px solid rgba(120, 90, 60, 0.25) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.markdown-body pre code {
    background: transparent !important;
    border: none !important;
    color: #e8dcc8 !important;
}

/* 引用：像餐垫边缘 */
.markdown-body blockquote {
    border-left: 3px solid rgba(180, 140, 90, 0.45) !important;
    color: #d8c8b0 !important;
    background: rgba(255, 245, 225, 0.04) !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 8px 14px !important;
    margin: 12px 0 !important;
}

/* 表格：木质纹理的卡片 */
.markdown-body table {
    border-color: rgba(120, 90, 60, 0.35) !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

.markdown-body th {
    background: rgba(90, 65, 40, 0.3) !important;
    color: #f5e8d0 !important;
    font-weight: 600 !important;
    border: 1px solid rgba(120, 90, 60, 0.4) !important;
    padding: 8px 12px !important;
}

.markdown-body td {
    background: rgba(255, 248, 235, 0.03) !important;
    color: #e8dcc8 !important;
    border: 1px solid rgba(120, 90, 60, 0.25) !important;
    padding: 7px 12px !important;
}

/* 列表 */
.markdown-body ul,
.markdown-body ol {
    color: #e8dcc8 !important;
    padding-left: 22px !important;
}

.markdown-body li {
    margin-bottom: 4px !important;
}

/* 分割线：像木纹纹理的边缘 */
.markdown-body hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg,
        transparent,
        rgba(120, 90, 60, 0.4) 20%,
        rgba(120, 90, 60, 0.4) 80%,
        transparent
    ) !important;
    margin: 20px 0 !important;
}

/* ---------- 6. 底部附加元素 (状态栏) ---------- */

/* 6-a. 操作按钮 (复制、编辑、删除等) — 餐巾纸/标签风格 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #c8a878 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    background: rgba(255, 245, 225, 0.06) !important;
    border: 1px solid rgba(160, 120, 75, 0.3) !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    min-width: auto !important;
    transition: all 0.2s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #f0d8a0 !important;
    background: rgba(255, 245, 225, 0.12) !important;
    border-color: rgba(200, 160, 100, 0.5) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* 6-b. 模型名称文本 — 餐盘标签风格 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #a89070 !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    font-style: italic !important;
    opacity: 0.9 !important;
    background: rgba(60, 45, 30, 0.4) !important;
    padding: 3px 10px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(120, 90, 60, 0.2) !important;
}

/* 6-c. Token 消耗文本 — 账单/小票风格 */
.text-orange-500 {
    color: #d4a060 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    opacity: 0.85 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* ---------- 7. 加载动画 (木质/温暖脉冲) ---------- */
/* 隐藏默认加载点 */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}

/* 自定义加载动画父容器 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 50px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 木屑/麦粒脉冲动画 (::before) */
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    background: radial-gradient(circle at 40% 35%,
        rgba(255, 245, 220, 0.95),
        rgba(220, 185, 130, 0.6),
        rgba(180, 140, 90, 0.2)
    ) !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 14px rgba(255, 220, 170, 0.4),
        0 0 28px rgba(220, 180, 120, 0.15) !important;
    animation: woodGrainPulse 1.6s ease-in-out infinite !important;
}

/* 第二个脉冲点 (::after) */
.flex.items-center.justify-center.w-6.h-5::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    width: 5px !important;
    height: 5px !important;
    background: radial-gradient(circle at 40% 35%,
        rgba(255, 250, 235, 0.95),
        rgba(230, 195, 145, 0.5)
    ) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(255, 225, 175, 0.35) !important;
    animation: woodGrainPulse 1.6s ease-in-out 0.35s infinite !important;
}

@keyframes woodGrainPulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.w-6.h-5::before,
    .flex.items-center.justify-center.w-6.h-5::after {
        animation: woodGrainPulse 3s ease-in-out infinite !important;
    }
    .flex.items-center.justify-center.w-6.h-5::after {
        animation-delay: 0.75s !important;
    }
}

/* ---------- 8. 移动端适配 ---------- */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        border-radius: 8px !important;
        border-width: 1.5px !important;
    }

    .markdown-body {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    .MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
        font-size: 11px !important;
        padding: 4px 10px !important;
        letter-spacing: 0.2px !important;
    }

    .MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
        font-size: 10.5px !important;
        padding: 2px 8px !important;
    }

    .bg-gray-100\/90.relative.inline-block::after {
        background-size:
            36px 36px,
            36px 36px,
            36px 36px,
            36px 36px !important;
    }
}

/* ---------- 9. 低动效模式 ---------- */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block:hover {
        transform: none !important;
        transition: box-shadow 0.6s ease !important;
    }
}

/* ---------- 10. 滚动条美化 (适配木桌主题) ---------- */
.bg-gray-100\/90.relative.inline-block .markdown-body::-webkit-scrollbar {
    width: 6px !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 3px !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body::-webkit-scrollbar-thumb {
    background: rgba(140, 100, 65, 0.4) !important;
    border-radius: 3px !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 115, 75, 0.55) !important;
}