think {
    display: none;
}

/* ===== 字体加载 ===== */
@import url('https://chinese-fonts-cdn.deno.dev/packages/lxgwwenkai/dist/LXGWWenKai-Regular/result.css');

/* ===== 全局背景：夏日球场 ===== */
.chat-container {
    background: 
        linear-gradient(180deg, rgba(250, 247, 238, 0.35) 0%, rgba(200, 220, 195, 0.45) 100%),
        url('https://aly2.tuchuangyun.top/autoupload/tbaNrhnFevxxT19cDXDwbtiO_OyvX7mIgxFBfDMDErs/20260723/uv5d/1080X1440/296.jpeg') center/cover no-repeat fixed !important;
    font-family: 'LXGW WenKai', '霞鹜文楷', 'KaiTi', serif !important;
}

/* ===== 顶部模型选择栏：树荫感 ===== */
.chat-container > div:first-child,
div[class*="sticky"][class*="top-0"] {
    background: linear-gradient(135deg, rgba(123, 168, 124, 0.78), rgba(157, 196, 158, 0.68)) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(62, 92, 66, 0.35) !important;
}

/* ===== 正文回复卡片（核心容器）===== */
#customized-answer-content,
#ai-chat-answer #customized-answer-content {
    background: linear-gradient(160deg, rgba(250, 247, 238, 0.9), rgba(240, 244, 232, 0.86)) !important;
    border: 1px solid rgba(157, 196, 158, 0.6) !important;
    border-radius: 18px !important;
    box-shadow: 
        0 8px 32px rgba(62, 92, 66, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 0 24px rgba(157, 196, 158, 0.2);
    backdrop-filter: blur(6px);
    padding: 20px 22px !important;
    position: relative;
    overflow: hidden;
}

/* 卡片右上角光斑 */
#customized-answer-content::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 245, 200, 0.35), transparent 70%);
    pointer-events: none;
}

/* 卡片左下角叶影 */
#customized-answer-content::after {
    content: '☘';
    position: absolute;
    bottom: 10px;
    right: 18px;
    font-size: 20px;
    color: rgba(62, 92, 66, 0.2);
    pointer-events: none;
}

/* markdown body */
.markdown-body {
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
    color: #2f4a34 !important;
    line-height: 1.85 !important;
    font-size: 15px !important;
}

/* ===== status 顶部状态条：一句话心境 ===== */
status {
    display: block;
    background: linear-gradient(90deg, rgba(123, 168, 124, 0.28), rgba(200, 220, 195, 0.35), rgba(123, 168, 124, 0.18));
    border: 1px solid rgba(123, 168, 124, 0.5);
    border-radius: 999px;
    padding: 8px 18px;
    margin: 4px 0 14px 0;
    color: #2f4a34;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 2px 10px rgba(62, 92, 66, 0.12);
}

/* ===== text 正文：卷轴质感 ===== */
text {
    display: block;
    background: linear-gradient(180deg, rgba(252, 250, 240, 0.7), rgba(244, 246, 235, 0.6));
    border-left: 3px solid #7ba87c;
    border-right: 1px solid rgba(157, 196, 158, 0.35);
    padding: 14px 20px;
    margin: 12px 0;
    border-radius: 4px 14px 14px 4px;
    box-shadow: inset 0 0 14px rgba(123, 168, 124, 0.08);
}

text p {
    text-indent: 2em;
    margin: 8px 0;
    color: #2f4034;
    line-height: 2;
}

/* ===== details 折叠卡：白光叶影 ===== */
.markdown-body details {
    background: linear-gradient(135deg, rgba(250, 250, 240, 0.88), rgba(230, 240, 225, 0.78));
    border: 1px solid rgba(123, 168, 124, 0.45);
    border-radius: 14px;
    margin: 12px 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 4px 14px rgba(62, 92, 66, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: all 0.3s ease;
}

.markdown-body details:hover {
    box-shadow: 
        0 6px 20px rgba(62, 92, 66, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 18px rgba(157, 196, 158, 0.35);
    transform: translateY(-1px);
}

.markdown-body details summary {
    cursor: pointer;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(123, 168, 124, 0.3), rgba(200, 220, 195, 0.12));
    color: #2f4a34;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px dashed rgba(62, 92, 66, 0.3);
    list-style: none;
    position: relative;
    user-select: none;
    letter-spacing: 0.3px;
}

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

.markdown-body details summary::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7ba87c;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.markdown-body details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
    color: #3e5c42;
}

.markdown-body details[open] summary {
    background: linear-gradient(90deg, rgba(123, 168, 124, 0.4), rgba(200, 220, 195, 0.18));
}

.markdown-body details > p,
.markdown-body details > ol,
.markdown-body details > ul {
    padding: 5px 18px;
    margin: 3px 0;
    color: #354a3a;
}

.markdown-body details > p:first-of-type {
    padding-top: 12px;
}

.markdown-body details > p:last-of-type {
    padding-bottom: 12px;
}

.markdown-body details strong {
    color: #3e5c42;
    font-weight: 600;
}

.markdown-body details p {
    word-break: break-word;
}

/* ===== 用户输入气泡：深林墨绿 ===== */
#ai-chat-question,
[id*="user-message"] {
    background: linear-gradient(135deg, rgba(62, 92, 66, 0.88), rgba(90, 122, 90, 0.8)) !important;
    color: #faf7ee !important;
    border: 1px solid rgba(200, 220, 195, 0.45) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(62, 92, 66, 0.3);
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

/* ===== 底部渐变遮罩条改色 ===== */
.bg-gradient-to-t.from-white.via-white.to-transparent {
    background: linear-gradient(
        to top,
        rgba(220, 232, 210, 0.85) 0%,
        rgba(220, 232, 210, 0.5) 50%,
        transparent 100%
    ) !important;
}

/* ===== 输入框 ===== */
#ai-chat-input {
    background: rgba(252, 250, 240, 0.92) !important;
    color: #2f4a34 !important;
    border: none;
    font-size: 14px;
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

#ai-chat-input::placeholder {
    color: #8fb090;
}

#ai-chat-input-container,
div:has(> #ai-chat-input) {
    background: rgba(245, 250, 238, 0.78) !important;
    border: 1.5px solid #7ba87c !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(62, 92, 66, 0.2);
    transition: all 0.3s ease;
}

div:has(> #ai-chat-input):focus-within {
    border-color: #3e5c42 !important;
    box-shadow: 0 0 14px rgba(123, 168, 124, 0.55), 0 4px 16px rgba(62, 92, 66, 0.25);
}

/* ===== 发送按钮 ===== */
#ai-send-button {
    background: linear-gradient(135deg, #7ba87c, #3e5c42) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(62, 92, 66, 0.4);
}

#ai-send-button:hover {
    background: linear-gradient(135deg, #8fb890, #4e6e52) !important;
    box-shadow: 0 0 16px rgba(123, 168, 124, 0.65);
    transform: scale(1.06);
}

#ai-send-button svg {
    color: #fff !important;
    fill: #fff !important;
}

/* ===== 第一排工具栏（重置/继续等）===== */
.MuiButton-textPrimary {
    color: #3e5c42 !important;
    transition: all 0.25s ease;
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

.MuiButton-textPrimary:hover {
    background: rgba(123, 168, 124, 0.2) !important;
    color: #2f4a34 !important;
}

/* ===== 第二排工具栏（快捷回复等）===== */
.MuiButton-outlinedPrimary {
    border-color: rgba(123, 168, 124, 0.7) !important;
    color: #3e5c42 !important;
    background: rgba(250, 250, 240, 0.55) !important;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

.MuiButton-outlinedPrimary:hover {
    background: rgba(123, 168, 124, 0.2) !important;
    border-color: #3e5c42 !important;
    color: #2f4a34 !important;
    box-shadow: 0 0 12px rgba(123, 168, 124, 0.4);
}

/* ===== 翻页 ===== */
.MuiPaginationItem-root {
    color: #3e5c42 !important;
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

.MuiPaginationItem-root:hover {
    background: rgba(123, 168, 124, 0.2) !important;
}

.MuiPaginationItem-root.Mui-selected {
    background: linear-gradient(135deg, rgba(123, 168, 124, 0.6), rgba(62, 92, 66, 0.5)) !important;
    color: #faf7ee !important;
    border: 1px solid rgba(123, 168, 124, 0.65);
}

/* ===== 评论/置顶置底等其他按钮 ===== */
button[class*="MuiButton"] {
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

/* ===== 滚动条 ===== */
.chat-container ::-webkit-scrollbar {
    width: 8px;
}

.chat-container ::-webkit-scrollbar-track {
    background: rgba(220, 232, 210, 0.35);
    border-radius: 4px;
}

.chat-container ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7ba87c, #3e5c42);
    border-radius: 4px;
}

.chat-container ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8fb890, #4e6e52);
}