/* ═══════════════════════════════════════════════════════════
   隐藏默认顶部颜色条
═══════════════════════════════════════════════════════════ */

[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   主聊天区域背景 - 做旧纸张纹理
═══════════════════════════════════════════════════════════ */

.flex.flex-col.flex-1.overflow-hidden,
.flex-1.overflow-y-auto,
main,
[class*="chat-container"],
[class*="message-list"] {
    background: 
        /* 细密织物纹理 */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(160, 130, 90, 0.015) 2px,
            rgba(160, 130, 90, 0.015) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(160, 130, 90, 0.015) 2px,
            rgba(160, 130, 90, 0.015) 4px
        ),
        /* 渐变底色 - 温暖米黄 */
        radial-gradient(
            ellipse at 50% 0%,
            #f8f4eb 0%,
            #f3ede0 50%,
            #ebe4d3 100%
        ) !important;
}

/* ═══════════════════════════════════════════════════════════
   顶部导航栏 / 标题栏
═══════════════════════════════════════════════════════════ */

header,
nav,
[class*="header"],
[class*="navbar"],
[class*="top-bar"],
.MuiAppBar-root {
    background: 
        linear-gradient(
            180deg,
            #e8dcc8 0%,
            #ddd0ba 50%,
            #d5c7ad 100%
        ) !important;
    border-bottom: 2px solid #a67c52 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(166, 124, 82, 0.3),
        0 2px 8px rgba(120, 80, 50, 0.15) !important;
}

header *,
nav *,
[class*="header"] *,
.MuiAppBar-root * {
    color: #4a3d30 !important;
}

/* ═══════════════════════════════════════════════════════════
   侧边栏样式
═══════════════════════════════════════════════════════════ */

aside,
[class*="sidebar"],
[class*="side-panel"],
.MuiDrawer-paper {
    background: 
        linear-gradient(
            135deg,
            #f5efe3 0%,
            #ebe4d3 100%
        ) !important;
    border-right: 2px solid rgba(166, 124, 82, 0.4) !important;
    box-shadow: 
        inset -1px 0 0 rgba(255, 255, 255, 0.5),
        2px 0 12px rgba(120, 80, 50, 0.1) !important;
}

/* 侧边栏列表项 */
aside li,
[class*="sidebar"] li,
.MuiDrawer-paper li,
[class*="conversation-item"],
[class*="chat-item"] {
    margin: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}

aside li:hover,
[class*="sidebar"] li:hover,
.MuiDrawer-paper li:hover,
[class*="conversation-item"]:hover,
[class*="chat-item"]:hover {
    background: rgba(198, 156, 109, 0.15) !important;
    border-color: rgba(166, 124, 82, 0.3) !important;
}

aside li.active,
aside li[class*="selected"],
[class*="sidebar"] li.active,
[class*="conversation-item"].active,
[class*="chat-item"].active,
.Mui-selected {
    background: 
        linear-gradient(135deg, rgba(198, 156, 109, 0.25) 0%, rgba(166, 124, 82, 0.2) 100%) !important;
    border-color: #c69c6d !important;
    box-shadow: inset 0 0 10px rgba(198, 156, 109, 0.1) !important;
}

/* 侧边栏文字 */
aside *,
[class*="sidebar"] *,
.MuiDrawer-paper * {
    color: #4a3d30 !important;
}

/* ═══════════════════════════════════════════════════════════
   输入区域容器
═══════════════════════════════════════════════════════════ */

[class*="input-container"],
[class*="chat-input"],
[class*="message-input"],
.MuiInputBase-root,
footer {
    background: 
        linear-gradient(
            0deg,
            #e8dcc8 0%,
            #f0e8da 100%
        ) !important;
    border-top: 1px solid rgba(166, 124, 82, 0.3) !important;
}

/* 文本输入框 */
textarea,
input[type="text"],
[class*="text-input"],
.MuiInputBase-input,
[contenteditable="true"] {
    background: 
        linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%) !important;
    border: 1px solid rgba(166, 124, 82, 0.35) !important;
    border-radius: 8px !important;
    color: #3d3225 !important;
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif !important;
    padding: 12px 16px !important;
    box-shadow: 
        inset 0 2px 6px rgba(120, 80, 50, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.25s ease !important;
}

textarea:focus,
input[type="text"]:focus,
.MuiInputBase-input:focus,
[contenteditable="true"]:focus {
    border-color: #c69c6d !important;
    box-shadow: 
        inset 0 2px 6px rgba(120, 80, 50, 0.06),
        0 0 0 3px rgba(198, 156, 109, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.8) !important;
    outline: none !important;
}

textarea::placeholder,
input::placeholder {
    color: #a89880 !important;
    font-style: italic !important;
}

/* ═══════════════════════════════════════════════════════════
   按钮样式 - 统一复古风格
═══════════════════════════════════════════════════════════ */

button,
.MuiButton-root,
.MuiIconButton-root,
[class*="btn"],
[role="button"] {
    background: 
        linear-gradient(
            180deg,
            #f5efe3 0%,
            #e8dcc8 50%,
            #ddd0ba 100%
        ) !important;
    border: 1px solid rgba(166, 124, 82, 0.4) !important;
    border-radius: 6px !important;
    color: #4a3d30 !important;
    font-family: -apple-system, "Segoe UI", sans-serif !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 1px 3px rgba(120, 80, 50, 0.1) !important;
    transition: all 0.2s ease !important;
}

button:hover,
.MuiButton-root:hover,
.MuiIconButton-root:hover,
[class*="btn"]:hover,
[role="button"]:hover {
    background: 
        linear-gradient(
            180deg,
            #faf6ee 0%,
            #ebe0ce 50%,
            #e0d3bf 100%
        ) !important;
    border-color: #c69c6d !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 2px 6px rgba(120, 80, 50, 0.15) !important;
    transform: translateY(-1px) !important;
}

button:active,
.MuiButton-root:active,
[class*="btn"]:active {
    background: 
        linear-gradient(
            180deg,
            #ddd0ba 0%,
            #d5c7ad 100%
        ) !important;
    box-shadow: 
        inset 0 2px 4px rgba(120, 80, 50, 0.15) !important;
    transform: translateY(0) !important;
}

/* 主要操作按钮 - 发送按钮等 */
button[class*="primary"],
button[class*="send"],
.MuiButton-containedPrimary,
[class*="submit-btn"] {
    background: 
        linear-gradient(
            180deg,
            #c69c6d 0%,
            #a67c52 50%,
            #8b6a45 100%
        ) !important;
    border-color: #7a5a38 !important;
    color: #fffdf8 !important;
}

button[class*="primary"]:hover,
button[class*="send"]:hover,
.MuiButton-containedPrimary:hover {
    background: 
        linear-gradient(
            180deg,
            #d4a87a 0%,
            #b8895c 50%,
            #9a7550 100%
        ) !important;
    color: #fffdf8 !important;
}

/* 图标按钮 */
.MuiIconButton-root {
    padding: 8px !important;
    border-radius: 50% !important;
}

.MuiIconButton-root svg,
button svg {
    fill: #6b5344 !important;
    transition: fill 0.2s ease !important;
}

.MuiIconButton-root:hover svg,
button:hover svg {
    fill: #4a3d30 !important;
}

/* ═══════════════════════════════════════════════════════════
   下拉菜单 / 弹出层
═══════════════════════════════════════════════════════════ */

[class*="dropdown"],
[class*="menu"],
[class*="popover"],
.MuiMenu-paper,
.MuiPopover-paper,
.MuiPaper-root {
    background: 
        linear-gradient(180deg, #faf6ee 0%, #f5efe3 100%) !important;
    border: 1px solid rgba(166, 124, 82, 0.35) !important;
    border-radius: 8px !important;
    box-shadow: 
        0 4px 20px rgba(120, 80, 50, 0.2),
        0 0 0 1px rgba(198, 156, 109, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* 菜单项 */
[class*="menu-item"],
.MuiMenuItem-root {
    color: #4a3d30 !important;
    padding: 10px 16px !important;
    transition: all 0.15s ease !important;
    border-radius: 4px !important;
    margin: 2px 6px !important;
}

[class*="menu-item"]:hover,
.MuiMenuItem-root:hover {
    background: rgba(198, 156, 109, 0.18) !important;
}

/* ═══════════════════════════════════════════════════════════
   对话框 / 模态框
═══════════════════════════════════════════════════════════ */

[class*="modal"],
[class*="dialog"],
.MuiDialog-paper {
    background: 
        linear-gradient(180deg, #fdfbf7 0%, #f5efe3 100%) !important;
    border: 2px solid #a67c52 !important;
    border-radius: 12px !important;
    box-shadow: 
        0 0 0 1px #c69c6d,
        0 0 0 4px rgba(198, 156, 109, 0.15),
        0 10px 40px rgba(80, 50, 30, 0.3) !important;
}

/* 对话框标题 */
[class*="modal-header"],
[class*="dialog-title"],
.MuiDialogTitle-root {
    background: 
        linear-gradient(180deg, #e8dcc8 0%, #ddd0ba 100%) !important;
    border-bottom: 1px solid rgba(166, 124, 82, 0.4) !important;
    color: #3d3225 !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
}

/* 对话框内容 */
.MuiDialogContent-root {
    color: #4a3d30 !important;
    padding: 20px !important;
}

/* 对话框操作区 */
.MuiDialogActions-root {
    background: rgba(232, 220, 200, 0.5) !important;
    border-top: 1px solid rgba(166, 124, 82, 0.2) !important;
    padding: 12px 20px !important;
}

/* ═══════════════════════════════════════════════════════════
   标签页 / Tabs
═══════════════════════════════════════════════════════════ */

[class*="tabs"],
.MuiTabs-root {
    background: transparent !important;
    border-bottom: 1px solid rgba(166, 124, 82, 0.3) !important;
}

[class*="tab"],
.MuiTab-root {
    color: #6b5a48 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-radius: 6px 6px 0 0 !important;
    margin: 0 2px !important;
}

[class*="tab"]:hover,
.MuiTab-root:hover {
    background: rgba(198, 156, 109, 0.1) !important;
    color: #4a3d30 !important;
}

[class*="tab"].active,
[class*="tab"][aria-selected="true"],
.MuiTab-root.Mui-selected {
    background: 
        linear-gradient(180deg, #f5efe3 0%, #ebe4d3 100%) !important;
    color: #4a3d30 !important;
    border: 1px solid rgba(166, 124, 82, 0.3) !important;
    border-bottom-color: transparent !important;
}

.MuiTabs-indicator {
    background: #a67c52 !important;
    height: 3px !important;
    border-radius: 3px 3px 0 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   开关 / Switch
═══════════════════════════════════════════════════════════ */

.MuiSwitch-root {
    padding: 8px !important;
}

.MuiSwitch-track {
    background: #d5c7ad !important;
    border-radius: 12px !important;
    opacity: 1 !important;
}

.MuiSwitch-thumb {
    background: 
        linear-gradient(180deg, #fffdf8 0%, #f5efe3 100%) !important;
    box-shadow: 
        0 1px 3px rgba(120, 80, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.Mui-checked + .MuiSwitch-track {
    background: #a67c52 !important;
    opacity: 1 !important;
}

.Mui-checked .MuiSwitch-thumb {
    background: 
        linear-gradient(180deg, #c69c6d 0%, #a67c52 100%) !important;
}

/* ═══════════════════════════════════════════════════════════
   复选框 / Checkbox
═══════════════════════════════════════════════════════════ */

.MuiCheckbox-root {
    color: #a67c52 !important;
}

.MuiCheckbox-root.Mui-checked {
    color: #8b6a45 !important;
}

.MuiCheckbox-root svg {
    fill: currentColor !important;
}

/* ═══════════════════════════════════════════════════════════
   滑块 / Slider
═══════════════════════════════════════════════════════════ */

.MuiSlider-root {
    color: #a67c52 !important;
}

.MuiSlider-track {
    background: 
        linear-gradient(90deg, #c69c6d 0%, #a67c52 100%) !important;
    border: none !important;
}

.MuiSlider-rail {
    background: #d5c7ad !important;
    opacity: 1 !important;
}

.MuiSlider-thumb {
    background: 
        linear-gradient(180deg, #fffdf8 0%, #e8dcc8 100%) !important;
    border: 2px solid #a67c52 !important;
    box-shadow: 0 2px 6px rgba(120, 80, 50, 0.2) !important;
}

.MuiSlider-thumb:hover,
.MuiSlider-thumb.Mui-focusVisible {
    box-shadow: 
        0 0 0 8px rgba(166, 124, 82, 0.15),
        0 2px 6px rgba(120, 80, 50, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   提示框 / Tooltip
═══════════════════════════════════════════════════════════ */

[class*="tooltip"],
.MuiTooltip-tooltip {
    background: 
        linear-gradient(180deg, #4a3d30 0%, #3d3225 100%) !important;
    color: #f5efe3 !important;
    border: 1px solid #6b5a48 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    box-shadow: 0 4px 12px rgba(60, 40, 20, 0.3) !important;
}

.MuiTooltip-arrow::before {
    background: #4a3d30 !important;
    border: 1px solid #6b5a48 !important;
}

/* ═══════════════════════════════════════════════════════════
   徽章 / Badge
═══════════════════════════════════════════════════════════ */

.MuiBadge-badge {
    background: 
        linear-gradient(180deg, #c69c6d 0%, #a67c52 100%) !important;
    color: #fffdf8 !important;
    border: 1px solid #8b6a45 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(120, 80, 50, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   芯片 / Chip
═══════════════════════════════════════════════════════════ */

.MuiChip-root,
[class*="chip"],
[class*="tag"] {
    background: 
        linear-gradient(180deg, #f5efe3 0%, #e8dcc8 100%) !important;
    border: 1px solid rgba(166, 124, 82, 0.4) !important;
    color: #4a3d30 !important;
    border-radius: 16px !important;
    font-size: 12px !important;
}

.MuiChip-root:hover,
[class*="chip"]:hover {
    background: 
        linear-gradient(180deg, #faf6ee 0%, #ebe0ce 100%) !important;
    border-color: #c69c6d !important;
}

/* ═══════════════════════════════════════════════════════════
   进度条 / Progress
═══════════════════════════════════════════════════════════ */

.MuiLinearProgress-root {
    background: #e8dcc8 !important;
    border-radius: 4px !important;
    height: 6px !important;
}

.MuiLinearProgress-bar {
    background: 
        linear-gradient(90deg, #c69c6d 0%, #a67c52 100%) !important;
    border-radius: 4px !important;
}

.MuiCircularProgress-root {
    color: #a67c52 !important;
}

/* ═══════════════════════════════════════════════════════════
   警告框 / Alert
═══════════════════════════════════════════════════════════ */

.MuiAlert-root,
[class*="alert"] {
    border-radius: 8px !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.MuiAlert-standardSuccess,
[class*="alert-success"] {
    background: rgba(122, 154, 122, 0.15) !important;
    border-color: rgba(122, 154, 122, 0.4) !important;
    color: #4a5a4a !important;
}

.MuiAlert-standardWarning,
[class*="alert-warning"] {
    background: rgba(198, 156, 109, 0.2) !important;
    border-color: rgba(166, 124, 82, 0.5) !important;
    color: #5a4a3a !important;
}

.MuiAlert-standardError,
[class*="alert-error"] {
    background: rgba(180, 100, 90, 0.15) !important;
    border-color: rgba(160, 80, 70, 0.4) !important;
    color: #6a4040 !important;
}

.MuiAlert-standardInfo,
[class*="alert-info"] {
    background: rgba(120, 140, 160, 0.15) !important;
    border-color: rgba(100, 120, 140, 0.4) !important;
    color: #4a5560 !important;
}

/* ═══════════════════════════════════════════════════════════
   全局滚动条美化
═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}

::-webkit-scrollbar-track {
    background: #ebe4d3 !important;
    border-radius: 5px !important;
}

::-webkit-scrollbar-thumb {
    background: 
        linear-gradient(180deg, #d4b896 0%, #c69c6d 100%) !important;
    border-radius: 5px !important;
    border: 2px solid #ebe4d3 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: 
        linear-gradient(180deg, #c9a882 0%, #b8956a 100%) !important;
}

::-webkit-scrollbar-corner {
    background: #ebe4d3 !important;
}

/* Firefox 滚动条 */
* {
    scrollbar-width: thin !important;
    scrollbar-color: #c69c6d #ebe4d3 !important;
}

/* ═══════════════════════════════════════════════════════════
   全局文本选中样式
═══════════════════════════════════════════════════════════ */

::selection {
    background: rgba(198, 156, 109, 0.35) !important;
    color: #3d3225 !important;
}

::-moz-selection {
    background: rgba(198, 156, 109, 0.35) !important;
    color: #3d3225 !important;
}

/* ═══════════════════════════════════════════════════════════
   链接全局样式
═══════════════════════════════════════════════════════════ */

a {
    color: #8b6a45 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

a:hover {
    color: #6b5038 !important;
    text-decoration: underline !important;
}

/* ═══════════════════════════════════════════════════════════
   分割线全局样式
═══════════════════════════════════════════════════════════ */

hr,
.MuiDivider-root {
    border-color: rgba(166, 124, 82, 0.25) !important;
    background: rgba(166, 124, 82, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════
   响应式适配 - 移动端
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    aside,
    [class*="sidebar"],
    .MuiDrawer-paper {
        background: 
            linear-gradient(180deg, #f8f4eb 0%, #ebe4d3 100%) !important;
    }
    
    button,
    .MuiButton-root {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    textarea,
    input[type="text"] {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    ::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }
}

@media (max-width: 480px) {
    header,
    nav,
    .MuiAppBar-root {
        padding: 8px 12px !important;
    }
    
    [class*="modal"],
    [class*="dialog"],
    .MuiDialog-paper {
        margin: 16px !important;
        border-radius: 10px !important;
    }
    
    .MuiDialogTitle-root {
        padding: 12px 16px !important;
        font-size: 16px !important;
    }
    
    .MuiDialogContent-root {
        padding: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   减少动效模式
═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    button,
    .MuiButton-root,
    a,
    [class*="tab"],
    .MuiTab-root {
        transition: none !important;
    }
    
    button:hover,
    .MuiButton-root:hover {
        transform: none !important;
    }
}
/* ═══════════════════════════════════════════════════════════
   东北县城复古风 · 浅色版 · 老日历的温柔
   ═══════════════════════════════════════════════════════════ */

.xc-ctn {
  --xc-bg-main: #f8f5f0;
  --xc-bg-panel: linear-gradient(135deg, #ffffff 0%, #f9f6f1 50%, #faf7f2 100%);
  --xc-bg-body: #fffefa;
  --xc-border-outer: rgba(180, 160, 130, 0.3);
  --xc-border-inner: rgba(200, 180, 150, 0.25);
  --xc-border-accent: rgba(180, 140, 90, 0.4);
  --xc-text-main: #5a5045;
  --xc-text-dim: #9a8a78;
  --xc-text-bright: #3d352d;
  --xc-accent-warm: #c49a5c;
  --xc-accent-rust: #b87a5a;
  --xc-accent-teal: #6a9a8a;
  --xc-shadow-soft: rgba(120, 100, 80, 0.08);
  --xc-glow-warm: rgba(196, 154, 92, 0.1);

  font-family: "LXGW WenKai", "霞鹜文楷", "楷体", "STKaiti", "华文楷体", serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--xc-text-main);
  background: var(--xc-bg-main);
  background-image: 
    radial-gradient(ellipse at 30% 20%, rgba(196, 154, 92, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(106, 154, 138, 0.05) 0%, transparent 50%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--xc-border-outer);
  box-shadow: 
    0 4px 20px var(--xc-shadow-soft),
    0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.xc-ctn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--xc-accent-rust) 0%,
    var(--xc-accent-warm) 25%,
    var(--xc-accent-teal) 50%,
    var(--xc-accent-warm) 75%,
    var(--xc-accent-rust) 100%
  );
  opacity: 0.5;
}

.xc-ctn::after {
  content: "◇ 县城故事 ◇";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 10px;
  color: var(--xc-text-dim);
  letter-spacing: 2px;
  opacity: 0.4;
}

/* ─────────────────────────────────────────────────────────
   正文区域 · 泛黄信纸
   ───────────────────────────────────────────────────────── */

.xc-main-body {
  background: var(--xc-bg-body);
  background-image: 
    linear-gradient(180deg, rgba(250, 245, 235, 0.5) 0%, rgba(255, 254, 250, 1) 100%);
  color: var(--xc-text-bright);
  padding: 28px 24px;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid var(--xc-border-inner);
  border-left: 3px solid rgba(196, 154, 92, 0.5);
  box-shadow: 
    0 2px 8px var(--xc-shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  text-align: justify;
  text-indent: 2em;
  min-height: 200px;
}

.xc-main-body::before {
  content: "『";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 24px;
  color: var(--xc-accent-warm);
  opacity: 0.25;
  font-weight: bold;
}

.xc-main-body::after {
  content: "』";
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 24px;
  color: var(--xc-accent-warm);
  opacity: 0.25;
  font-weight: bold;
}

/* ─────────────────────────────────────────────────────────
   折叠面板 · 轻盈卡片
   ───────────────────────────────────────────────────────── */

.xc-panel {
  background: var(--xc-bg-panel);
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid var(--xc-border-inner);
  box-shadow: 0 2px 6px var(--xc-shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
}

.xc-panel[open] {
  border-color: var(--xc-border-accent);
  box-shadow: 
    0 3px 12px var(--xc-shadow-soft),
    0 0 0 1px var(--xc-glow-warm);
}

.xc-panel > summary {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: bold;
  color: var(--xc-text-bright);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(250, 247, 242, 0.6) 100%
  );
  border-bottom: 1px solid var(--xc-border-inner);
  cursor: pointer;
  user-select: none;
  position: relative;
  letter-spacing: 1px;
}

.xc-panel > summary::-webkit-details-marker {
  display: none;
}

.xc-panel > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 10px;
  font-size: 12px;
  color: var(--xc-accent-warm);
  transition: transform 0.3s ease;
}

.xc-panel[open] > summary::before {
  transform: rotate(90deg);
}

.xc-panel > summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--xc-border-accent) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

.xc-panel > summary:hover {
  background: linear-gradient(
    180deg,
    rgba(196, 154, 92, 0.08) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.xc-panel-content {
  padding: 18px 20px;
  color: var(--xc-text-main);
  border-top: 1px dashed var(--xc-border-inner);
  background: rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────────────────────────
   特殊面板样式 · 淡彩标记
   ───────────────────────────────────────────────────────── */

.xc-header {
  border-left: 3px solid rgba(106, 154, 138, 0.5);
}

.xc-header > summary {
  color: #4a7a6a;
}

.xc-char {
  border-left: 3px solid rgba(196, 154, 92, 0.5);
}

.xc-npc {
  border-left: 3px solid rgba(184, 122, 90, 0.5);
}

.xc-npc > summary {
  color: #8a5a4a;
}

.xc-locale {
  border-left: 3px solid rgba(106, 154, 138, 0.4);
}

.xc-gossip {
  border-left: 3px solid rgba(180, 140, 100, 0.5);
}

.xc-memory {
  border-left: 3px solid rgba(140, 140, 160, 0.4);
}

.xc-actions {
  border-left: 3px solid rgba(196, 154, 92, 0.5);
}

/* ─────────────────────────────────────────────────────────
   好感度进度条 · 水彩晕染
   ───────────────────────────────────────────────────────── */

.xc-favor-bar {
  display: inline-flex;
  align-items: center;
  width: 180px;
  height: 16px;
  background: linear-gradient(180deg, #f0ebe3 0%, #e8e3db 100%);
  border: 1px solid var(--xc-border-inner);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-left: 8px;
  vertical-align: middle;
}

.xc-favor-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(184, 122, 90, 0.7) 0%,
    rgba(196, 154, 92, 0.8) 60%,
    rgba(220, 180, 120, 0.9) 100%
  );
  border-radius: 7px;
  box-shadow: 0 0 6px rgba(196, 154, 92, 0.3);
  transition: width 0.5s ease;
  position: relative;
}

.xc-favor-fill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 3px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 100%
  );
  border-radius: 2px;
}

.xc-favor-text {
  position: absolute;
  right: 8px;
  font-size: 11px;
  color: var(--xc-text-dim);
  font-weight: bold;
}

/* ─────────────────────────────────────────────────────────
   行动选项 · 便签条
   ───────────────────────────────────────────────────────── */

.xc-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: action-counter;
}

.xc-action-list li {
  counter-increment: action-counter;
  position: relative;
  padding: 14px 18px 14px 55px;
  margin: 8px 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(250, 247, 242, 0.8) 100%
  );
  border: 1px solid var(--xc-border-inner);
  border-left: 2px solid rgba(196, 154, 92, 0.5);
  border-radius: 6px;
  color: var(--xc-text-main);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px var(--xc-shadow-soft);
}

.xc-action-list li::before {
  content: counter(action-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: linear-gradient(
    135deg,
    rgba(184, 122, 90, 0.8) 0%,
    rgba(196, 154, 92, 0.9) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.xc-action-list li:hover {
  background: linear-gradient(
    135deg,
    rgba(196, 154, 92, 0.1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  border-color: var(--xc-border-accent);
  transform: translateX(4px);
  box-shadow: 0 3px 10px var(--xc-shadow-soft);
  color: var(--xc-text-bright);
}

.xc-action-list li:hover::before {
  background: linear-gradient(
    135deg,
    rgba(196, 154, 92, 1) 0%,
    rgba(220, 180, 120, 1) 100%
  );
}

/* ─────────────────────────────────────────────────────────
   表格样式 · 淡线格
   ───────────────────────────────────────────────────────── */

.xc-panel-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  overflow: hidden;
}

.xc-panel-content th,
.xc-panel-content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--xc-border-inner);
}

.xc-panel-content th {
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.9) 0%,
    rgba(245, 240, 232, 0.8) 100%
  );
  color: var(--xc-accent-warm);
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 1px;
}

.xc-panel-content tr:hover td {
  background: rgba(196, 154, 92, 0.05);
}

.xc-panel-content tr:last-child td {
  border-bottom: none;
}

/* ─────────────────────────────────────────────────────────
   滚动区域
   ───────────────────────────────────────────────────────── */

.xc-scroll-box {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 8px;
}

.xc-scroll-box::-webkit-scrollbar {
  width: 6px;
}

.xc-scroll-box::-webkit-scrollbar-track {
  background: rgba(240, 235, 227, 0.8);
  border-radius: 3px;
}

.xc-scroll-box::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(200, 180, 150, 0.6) 0%,
    rgba(180, 160, 130, 0.5) 100%
  );
  border-radius: 3px;
}

.xc-scroll-box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(196, 154, 92, 0.7) 0%,
    rgba(180, 140, 100, 0.6) 100%
  );
}

/* ─────────────────────────────────────────────────────────
   装饰性分隔线
   ───────────────────────────────────────────────────────── */

.xc-panel-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--xc-border-inner) 20%,
    var(--xc-border-accent) 50%,
    var(--xc-border-inner) 80%,
    transparent 100%
  );
  margin: 16px 0;
}

/* ─────────────────────────────────────────────────────────
   响应式设计
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .xc-ctn {
    padding: 14px;
    font-size: 14px;
  }

  .xc-ctn::after {
    display: none;
  }

  .xc-main-body {
    padding: 20px 16px;
    margin: 12px 0;
  }

  .xc-panel > summary {
    padding: 12px 14px;
    font-size: 15px;
  }

  .xc-panel-content {
    padding: 14px 16px;
  }

  .xc-favor-bar {
    width: 140px;
    height: 14px;
  }

  .xc-action-list li {
    padding: 12px 14px 12px 48px;
    margin: 6px 0;
  }

  .xc-action-list li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
    left: 10px;
  }

  .xc-panel-content table {
    font-size: 12px;
  }

  .xc-panel-content th,
  .xc-panel-content td {
    padding: 8px 10px;
  }

  .xc-scroll-box {
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .xc-ctn {
    padding: 10px;
    border-radius: 8px;
  }

  .xc-main-body {
    padding: 16px 12px;
  }

  .xc-main-body::before,
  .xc-main-body::after {
    font-size: 18px;
  }

  .xc-panel > summary {
    padding: 10px 12px;
    font-size: 14px;
  }

  .xc-favor-bar {
    width: 120px;
    display: block;
    margin: 8px 0 0 0;
  }

  .xc-panel-content table {
    display: block;
    overflow-x: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   东北县城文学 · 精致复古聊天框 V2
   灵感：老相册、绣花枕套、搪瓷茶缸、窗台上的绿萝、炕琴上的蕾丝
═══════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════
   统一聊天框样式 - 老相册/绣品质感
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block {
    /* 温暖的米黄底色 + 细腻纹理 */
    background: 
        /* 细密织物纹理 */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(180, 140, 100, 0.02) 1px,
            rgba(180, 140, 100, 0.02) 2px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 1px,
            rgba(180, 140, 100, 0.02) 1px,
            rgba(180, 140, 100, 0.02) 2px
        ),
        /* 柔和渐变底色 */
        radial-gradient(
            ellipse at 30% 20%,
            #fffdf8 0%,
            #faf6ee 40%,
            #f5efe3 100%
        ) !important;
    
    /* 精致多层边框 */
    border: none !important;
    border-radius: 8px !important;
    
    /* 精细阴影层次 */
    box-shadow: 
        /* 最内层 - 金色细线 */
        inset 0 0 0 1px rgba(198, 156, 109, 0.6),
        /* 内层 - 深棕装饰框 */
        inset 0 0 0 4px #f5efe3,
        inset 0 0 0 5px #a67c52,
        inset 0 0 0 6px #c69c6d,
        inset 0 0 0 8px #f5efe3,
        inset 0 0 0 9px rgba(166, 124, 82, 0.4),
        /* 内部柔光 */
        inset 0 15px 35px rgba(255, 250, 240, 0.8),
        inset 0 -10px 30px rgba(198, 156, 109, 0.08),
        /* 外层阴影 */
        0 2px 4px rgba(120, 80, 50, 0.08),
        0 4px 12px rgba(120, 80, 50, 0.12),
        0 8px 24px rgba(100, 70, 40, 0.15) !important;
    
    padding: 35px 32px 28px 32px !important;
    margin: 22px 12px !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════
   顶部装饰 - 精致蕾丝花边风格
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block::before {
    content: "" !important;
    position: absolute !important;
    top: 10px !important;
    left: 20px !important;
    right: 20px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23c69c6d' stop-opacity='0'/%3E%3Cstop offset='15%25' stop-color='%23c69c6d' stop-opacity='1'/%3E%3Cstop offset='85%25' stop-color='%23c69c6d' stop-opacity='1'/%3E%3Cstop offset='100%25' stop-color='%23c69c6d' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,9 Q10,2 20,9 T40,9 T60,9 T80,9 T100,9 T120,9 T140,9 T160,9 T180,9 T200,9' stroke='url(%23g1)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='100' cy='9' r='4' fill='%23a67c52'/%3E%3Ccircle cx='100' cy='9' r='2' fill='%23f5efe3'/%3E%3Ccircle cx='70' cy='9' r='2' fill='%23c69c6d'/%3E%3Ccircle cx='130' cy='9' r='2' fill='%23c69c6d'/%3E%3Cpath d='M85,9 L90,5 L95,9 L90,13 Z' fill='%23c69c6d' opacity='0.6'/%3E%3Cpath d='M105,9 L110,5 L115,9 L110,13 Z' fill='%23c69c6d' opacity='0.6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    z-index: 5 !important;
}

/* ═══════════════════════════════════════════════════════════
   底部装饰 - 对称花纹
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block::after {
    content: "" !important;
    position: absolute !important;
    bottom: 8px !important;
    left: 25px !important;
    right: 25px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23a67c52' stop-opacity='0'/%3E%3Cstop offset='20%25' stop-color='%23a67c52' stop-opacity='0.7'/%3E%3Cstop offset='50%25' stop-color='%23a67c52' stop-opacity='1'/%3E%3Cstop offset='80%25' stop-color='%23a67c52' stop-opacity='0.7'/%3E%3Cstop offset='100%25' stop-color='%23a67c52' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cline x1='20' y1='6' x2='85' y2='6' stroke='url(%23g2)' stroke-width='1'/%3E%3Cline x1='115' y1='6' x2='180' y2='6' stroke='url(%23g2)' stroke-width='1'/%3E%3Cpath d='M92,6 L100,1 L108,6 L100,11 Z' fill='none' stroke='%23a67c52' stroke-width='1'/%3E%3Ccircle cx='100' cy='6' r='2' fill='%23c69c6d'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    z-index: 5 !important;
}

/* ═══════════════════════════════════════════════════════════
   四角装饰花纹 - 使用额外伪元素技巧
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body::before {
    content: "◈" !important;
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    font-size: 14px !important;
    color: #c69c6d !important;
    opacity: 0.7 !important;
    z-index: 3 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body::after {
    content: "◈" !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    font-size: 14px !important;
    color: #c69c6d !important;
    opacity: 0.7 !important;
    z-index: 3 !important;
}

/* ═══════════════════════════════════════════════════════════
   正文内容样式 - 优雅可读
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body {
    color: #3d3225 !important;
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "宋体", Georgia, serif !important;
    font-size: 15.5px !important;
    line-height: 1.9 !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

/* 段落样式 */
.bg-gray-100\/90.relative.inline-block .markdown-body p {
    text-indent: 2em !important;
    margin: 0.9em 0 !important;
    text-align: justify !important;
}

/* 强调文字 - 温暖的棕红色 */
.bg-gray-100\/90.relative.inline-block .markdown-body strong {
    color: #8b5a3c !important;
    font-weight: 600 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body em {
    color: #6b5344 !important;
    font-style: italic !important;
}

/* 链接样式 */
.bg-gray-100\/90.relative.inline-block .markdown-body a {
    color: #9b6b4a !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(155, 107, 74, 0.4) !important;
    transition: all 0.2s ease !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body a:hover {
    color: #7a5438 !important;
    border-bottom-color: #7a5438 !important;
}

/* ═══════════════════════════════════════════════════════════
   引用块 - 精致卡片风格
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body blockquote {
    background: 
        linear-gradient(135deg, rgba(250, 246, 238, 0.9) 0%, rgba(245, 239, 227, 0.95) 100%) !important;
    border: 1px solid rgba(166, 124, 82, 0.3) !important;
    border-left: 3px solid #b8956a !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 15px 20px 15px 22px !important;
    margin: 18px 0 !important;
    font-style: normal !important;
    color: #5a4a3a !important;
    box-shadow: 
        2px 2px 8px rgba(120, 80, 50, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.5) !important;
    position: relative !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body blockquote::before {
    content: "❝" !important;
    position: absolute !important;
    left: 6px !important;
    top: 8px !important;
    font-size: 22px !important;
    color: #c69c6d !important;
    opacity: 0.5 !important;
    font-family: Georgia, serif !important;
}

/* ═══════════════════════════════════════════════════════════
   代码样式 - 打字机风格
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body code {
    background: rgba(198, 156, 109, 0.12) !important;
    border: 1px solid rgba(166, 124, 82, 0.25) !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace !important;
    color: #7a5a42 !important;
    font-size: 0.88em !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body pre {
    background: 
        linear-gradient(180deg, #faf8f3 0%, #f5f1e8 100%) !important;
    border: 1px solid rgba(166, 124, 82, 0.3) !important;
    border-radius: 6px !important;
    padding: 18px !important;
    overflow-x: auto !important;
    box-shadow: 
        inset 0 2px 6px rgba(120, 80, 50, 0.06),
        0 2px 8px rgba(120, 80, 50, 0.08) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* ═══════════════════════════════════════════════════════════
   列表样式 - 精致圆点
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body ul {
    list-style: none !important;
    padding-left: 20px !important;
    margin: 12px 0 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body ul > li {
    position: relative !important;
    padding-left: 18px !important;
    margin: 8px 0 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body ul > li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 6px !important;
    height: 6px !important;
    background: linear-gradient(135deg, #c69c6d 0%, #a67c52 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px rgba(198, 156, 109, 0.2) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body ol {
    padding-left: 25px !important;
    margin: 12px 0 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body ol > li {
    margin: 8px 0 !important;
    padding-left: 5px !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body ol > li::marker {
    color: #a67c52 !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════════════
   分割线 - 优雅渐变
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(166, 124, 82, 0.2) 15%,
        rgba(198, 156, 109, 0.5) 50%,
        rgba(166, 124, 82, 0.2) 85%,
        transparent 100%
    ) !important;
    margin: 25px 0 !important;
    position: relative !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body hr::after {
    content: "◇" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #f5efe3 !important;
    padding: 0 12px !important;
    color: #c69c6d !important;
    font-size: 10px !important;
}

/* ═══════════════════════════════════════════════════════════
   表格样式 - 精致边框
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 18px 0 !important;
    background: #fffdf8 !important;
    border: 1px solid rgba(166, 124, 82, 0.3) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(120, 80, 50, 0.08) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body th {
    background: linear-gradient(180deg, #e8dcc8 0%, #ddd0ba 100%) !important;
    color: #5a4a3a !important;
    padding: 12px 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #c69c6d !important;
    font-size: 14px !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body td {
    padding: 11px 15px !important;
    border-bottom: 1px solid rgba(166, 124, 82, 0.15) !important;
    font-size: 14px !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body tr:last-child td {
    border-bottom: none !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body tr:nth-child(even) td {
    background: rgba(245, 239, 227, 0.5) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body tr:hover td {
    background: rgba(198, 156, 109, 0.1) !important;
}

/* ═══════════════════════════════════════════════════════════
   折叠面板 - details/summary
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body details {
    background: linear-gradient(180deg, #fdfbf7 0%, #f8f4ec 100%) !important;
    border: 1px solid rgba(166, 124, 82, 0.35) !important;
    border-radius: 8px !important;
    margin: 14px 0 !important;
    overflow: hidden !important;
    box-shadow: 
        0 2px 6px rgba(120, 80, 50, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body summary {
    background: linear-gradient(180deg, #e5d9c5 0%, #d9ccb5 100%) !important;
    color: #4a3d30 !important;
    padding: 12px 18px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    border-bottom: 1px solid rgba(166, 124, 82, 0.3) !important;
    list-style: none !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body summary::-webkit-details-marker {
    display: none !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body summary::before {
    content: "▸" !important;
    margin-right: 10px !important;
    font-size: 12px !important;
    color: #a67c52 !important;
    transition: transform 0.25s ease !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body details[open] summary::before {
    transform: rotate(90deg) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body summary:hover {
    background: linear-gradient(180deg, #ebe0ce 0%, #e0d3bf 100%) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body details > *:not(summary) {
    padding: 0 18px !important;
}

/* ═══════════════════════════════════════════════════════════
   底部元素 - 按钮、模型名、Token
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #8b7355 !important;
    font-family: -apple-system, "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.bg-gray-100\/90.relative.inline-block .MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background: rgba(198, 156, 109, 0.15) !important;
    border-color: rgba(166, 124, 82, 0.3) !important;
    color: #6b5344 !important;
}

.bg-gray-100\/90.relative.inline-block .MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #9a8b7a !important;
    font-size: 11px !important;
    opacity: 0.85 !important;
}

.bg-gray-100\/90.relative.inline-block .text-orange-500 {
    color: #b8865a !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════
   加载动画 - 优雅波浪点
═══════════════════════════════════════════════════════════ */

.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 70px !important;
    height: 28px !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 56px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 20'%3E%3Ccircle cx='10' cy='10' r='5' fill='%23c69c6d'%3E%3Canimate attributeName='cy' values='10;5;10' dur='0.7s' repeatCount='indefinite' calcMode='spline' keySplines='0.45 0 0.55 1;0.45 0 0.55 1'/%3E%3Canimate attributeName='r' values='5;4;5' dur='0.7s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.6;1' dur='0.7s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='28' cy='10' r='5' fill='%23a67c52'%3E%3Canimate attributeName='cy' values='10;5;10' dur='0.7s' begin='0.15s' repeatCount='indefinite' calcMode='spline' keySplines='0.45 0 0.55 1;0.45 0 0.55 1'/%3E%3Canimate attributeName='r' values='5;4;5' dur='0.7s' begin='0.15s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.6;1' dur='0.7s' begin='0.15s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='46' cy='10' r='5' fill='%23c69c6d'%3E%3Canimate attributeName='cy' values='10;5;10' dur='0.7s' begin='0.3s' repeatCount='indefinite' calcMode='spline' keySplines='0.45 0 0.55 1;0.45 0 0.55 1'/%3E%3Canimate attributeName='r' values='5;4;5' dur='0.7s' begin='0.3s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.6;1' dur='0.7s' begin='0.3s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
}

/* ═══════════════════════════════════════════════════════════
   输入框特殊标识
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    box-shadow: 
        inset 0 0 0 1px rgba(139, 169, 139, 0.4),
        inset 0 0 0 4px #f5efe3,
        inset 0 0 0 5px #7a9a7a,
        inset 0 0 0 6px #9ab89a,
        inset 0 0 0 8px #f5efe3,
        inset 0 0 0 9px rgba(122, 154, 122, 0.3),
        inset 0 15px 35px rgba(255, 250, 240, 0.8),
        inset 0 -10px 30px rgba(122, 154, 122, 0.06),
        0 2px 4px rgba(80, 100, 80, 0.08),
        0 4px 12px rgba(80, 100, 80, 0.1),
        0 8px 24px rgba(70, 90, 70, 0.12) !important;
}

.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18'%3E%3Cdefs%3E%3ClinearGradient id='g3' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%239ab89a' stop-opacity='0'/%3E%3Cstop offset='15%25' stop-color='%239ab89a' stop-opacity='1'/%3E%3Cstop offset='85%25' stop-color='%239ab89a' stop-opacity='1'/%3E%3Cstop offset='100%25' stop-color='%239ab89a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,9 Q10,2 20,9 T40,9 T60,9 T80,9 T100,9 T120,9 T140,9 T160,9 T180,9 T200,9' stroke='url(%23g3)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='100' cy='9' r='4' fill='%237a9a7a'/%3E%3Ccircle cx='100' cy='9' r='2' fill='%23f5efe3'/%3E%3Ccircle cx='70' cy='9' r='2' fill='%239ab89a'/%3E%3Ccircle cx='130' cy='9' r='2' fill='%239ab89a'/%3E%3Cpath d='M85,9 L90,5 L95,9 L90,13 Z' fill='%239ab89a' opacity='0.6'/%3E%3Cpath d='M105,9 L110,5 L115,9 L110,13 Z' fill='%239ab89a' opacity='0.6'/%3E%3C/svg%3E") !important;
}

.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cdefs%3E%3ClinearGradient id='g4' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%237a9a7a' stop-opacity='0'/%3E%3Cstop offset='20%25' stop-color='%237a9a7a' stop-opacity='0.7'/%3E%3Cstop offset='50%25' stop-color='%237a9a7a' stop-opacity='1'/%3E%3Cstop offset='80%25' stop-color='%237a9a7a' stop-opacity='0.7'/%3E%3Cstop offset='100%25' stop-color='%237a9a7a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cline x1='20' y1='6' x2='85' y2='6' stroke='url(%23g4)' stroke-width='1'/%3E%3Cline x1='115' y1='6' x2='180' y2='6' stroke='url(%23g4)' stroke-width='1'/%3E%3Cpath d='M92,6 L100,1 L108,6 L100,11 Z' fill='none' stroke='%237a9a7a' stroke-width='1'/%3E%3Ccircle cx='100' cy='6' r='2' fill='%239ab89a'/%3E%3C/svg%3E") !important;
}

.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .markdown-body::before {
    color: #9ab89a !important;
}

.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .markdown-body::after {
    color: #9ab89a !important;
}

/* ═══════════════════════════════════════════════════════════
   滚动条美化 - 精致圆润
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block ::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.bg-gray-100\/90.relative.inline-block ::-webkit-scrollbar-track {
    background: rgba(245, 239, 227, 0.8) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(166, 124, 82, 0.15) !important;
}

.bg-gray-100\/90.relative.inline-block ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4b896 0%, #c69c6d 100%) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(166, 124, 82, 0.3) !important;
}

.bg-gray-100\/90.relative.inline-block ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c9a882 0%, #b8956a 100%) !important;
}

.bg-gray-100\/90.relative.inline-block ::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   选中文本样式
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block ::selection {
    background: rgba(198, 156, 109, 0.35) !important;
    color: #3d3225 !important;
}

.bg-gray-100\/90.relative.inline-block ::-moz-selection {
    background: rgba(198, 156, 109, 0.35) !important;
    color: #3d3225 !important;
}

/* ═══════════════════════════════════════════════════════════
   图片样式
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body img {
    border-radius: 6px !important;
    border: 2px solid rgba(166, 124, 82, 0.3) !important;
    box-shadow: 
        0 3px 10px rgba(120, 80, 50, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    margin: 12px 0 !important;
    max-width: 100% !important;
    transition: all 0.3s ease !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body img:hover {
    border-color: rgba(166, 124, 82, 0.5) !important;
    box-shadow: 
        0 5px 15px rgba(120, 80, 50, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.01) !important;
}

/* ═══════════════════════════════════════════════════════════
   标题样式 - h1 到 h6
═══════════════════════════════════════════════════════════ */

.bg-gray-100\/90.relative.inline-block .markdown-body h1,
.bg-gray-100\/90.relative.inline-block .markdown-body h2,
.bg-gray-100\/90.relative.inline-block .markdown-body h3,
.bg-gray-100\/90.relative.inline-block .markdown-body h4,
.bg-gray-100\/90.relative.inline-block .markdown-body h5,
.bg-gray-100\/90.relative.inline-block .markdown-body h6 {
    color: #4a3d30 !important;
    font-weight: 600 !important;
    margin: 1.2em 0 0.6em 0 !important;
    line-height: 1.4 !important;
    text-indent: 0 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body h1 {
    font-size: 1.6em !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid rgba(198, 156, 109, 0.4) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body h2 {
    font-size: 1.4em !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(198, 156, 109, 0.3) !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body h3 {
    font-size: 1.25em !important;
    color: #5a4a3a !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body h4 {
    font-size: 1.1em !important;
    color: #6b5a48 !important;
}

.bg-gray-100\/90.relative.inline-block .markdown-body h5,
.bg-gray-100\/90.relative.inline-block .markdown-body h6 {
    font-size: 1em !important;
    color: #7a6855 !important;
}

/* ═══════════════════════════════════════════════════════════
   响应式适配 - 移动端
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bg-gray-100\/90.relative.inline-block {
        margin: 14px 8px !important;
        padding: 28px 22px 22px 22px !important;
        border-radius: 6px !important;
        box-shadow: 
            inset 0 0 0 1px rgba(198, 156, 109, 0.5),
            inset 0 0 0 3px #f5efe3,
            inset 0 0 0 4px #a67c52,
            inset 0 0 0 5px #f5efe3,
            inset 0 10px 25px rgba(255, 250, 240, 0.7),
            0 2px 8px rgba(120, 80, 50, 0.12),
            0 6px 18px rgba(100, 70, 40, 0.12) !important;
    }
    
    .bg-gray-100\/90.relative.inline-block::before {
        top: 8px !important;
        left: 15px !important;
        right: 15px !important;
        height: 14px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block::after {
        bottom: 6px !important;
        left: 20px !important;
        right: 20px !important;
        height: 10px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body {
        font-size: 14.5px !important;
        line-height: 1.8 !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body::before,
    .bg-gray-100\/90.relative.inline-block .markdown-body::after {
        font-size: 12px !important;
        top: 10px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body::before {
        left: 10px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body::after {
        right: 10px !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5 {
        width: 55px !important;
        height: 24px !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 45px !important;
        height: 16px !important;
    }
}

@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        margin: 10px 5px !important;
        padding: 24px 16px 18px 16px !important;
        box-shadow: 
            inset 0 0 0 1px rgba(198, 156, 109, 0.4),
            inset 0 0 0 2px #f5efe3,
            inset 0 0 0 3px #a67c52,
            inset 0 8px 20px rgba(255, 250, 240, 0.6),
            0 2px 6px rgba(120, 80, 50, 0.1),
            0 4px 12px rgba(100, 70, 40, 0.1) !important;
    }
    
    .bg-gray-100\/90.relative.inline-block::before {
        height: 12px !important;
        left: 12px !important;
        right: 12px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block::after {
        height: 8px !important;
        left: 15px !important;
        right: 15px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body {
        font-size: 14px !important;
        line-height: 1.75 !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body::before,
    .bg-gray-100\/90.relative.inline-block .markdown-body::after {
        display: none !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body blockquote {
        padding: 12px 15px 12px 18px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body pre {
        padding: 12px !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body th,
    .bg-gray-100\/90.relative.inline-block .markdown-body td {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   减少动效模式
═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.w-6.h-5::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 20'%3E%3Ccircle cx='10' cy='10' r='5' fill='%23c69c6d'%3E%3Canimate attributeName='opacity' values='1;0.4;1' dur='1.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='28' cy='10' r='5' fill='%23a67c52'%3E%3Canimate attributeName='opacity' values='1;0.4;1' dur='1.8s' begin='0.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='46' cy='10' r='5' fill='%23c69c6d'%3E%3Canimate attributeName='opacity' values='1;0.4;1' dur='1.8s' begin='1.2s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    }
    
    .bg-gray-100\/90.relative.inline-block .markdown-body img:hover {
        transform: none !important;
    }
}