think {
  display: none;
}

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

/* ===== 全局背景：绯夜暧色（去滤镜版） ===== */
.chat-container {
    background:
        url('https://img.pagehost.cn/autoupload/tbaNrhnFevxxT19cDXDwbtiO_OyvX7mIgxFBfDMDErs/20260716/A2qh/1000X1400/b7fe914ca3bea7773b1ced7818c6ccad.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(90, 35, 56, 0.78), rgba(120, 50, 76, 0.65)) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 62, 92, 0.4) !important;
}

/* ===== 正文回复卡片（核心容器）· 提高不透明度版 ===== */
#customized-answer-content,
#ai-chat-answer #customized-answer-content {
    background: linear-gradient(160deg, rgba(255, 245, 240, 0.94), rgba(250, 230, 232, 0.9)) !important;
    border: 1px solid rgba(168, 62, 92, 0.5) !important;
    border-radius: 16px !important;
    box-shadow:
        0 8px 32px rgba(60, 20, 40, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 24px rgba(232, 194, 186, 0.25);
    backdrop-filter: blur(6px);
    padding: 20px 22px !important;
    position: relative;
    overflow: hidden;
}

/* 卡片角落绯粉光晕 */
#customized-answer-content::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 62, 92, 0.28), transparent 70%);
    pointer-events: none;
}

#customized-answer-content::after {
    content: '❦';
    position: absolute;
    bottom: 10px;
    right: 18px;
    font-size: 20px;
    color: rgba(168, 62, 92, 0.28);
    pointer-events: none;
    font-style: italic;
}

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

/* ===== 顶部状态栏 top 标签：绯粉玻璃 ===== */
top {
    display: block;
    background: linear-gradient(135deg, rgba(168, 62, 92, 0.15), rgba(232, 194, 186, 0.32));
    border: 1px solid rgba(168, 62, 92, 0.32);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 14px rgba(168, 62, 92, 0.08);
}

top p {
    margin: 4px 0;
    color: #5a2338;
    font-size: 14px;
    text-indent: 0;
}

/* ===== 正文 text 标签：绯色卷轴 ===== */
text {
    display: block;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.72), rgba(252, 240, 238, 0.6));
    border-left: 3px solid #a83e5c;
    border-right: 1px solid rgba(168, 62, 92, 0.25);
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 4px 12px 12px 4px;
    box-shadow: inset 0 0 14px rgba(168, 62, 92, 0.06);
}

text p {
    text-indent: 2em;
    margin: 8px 0;
    color: #3d1a28;
}

/* ===== details 折叠卡：暖粉绒质 ===== */
.markdown-body details {
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.86), rgba(250, 225, 228, 0.78));
    border: 1px solid rgba(168, 62, 92, 0.4);
    border-radius: 12px;
    margin: 12px 0;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(60, 20, 40, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.markdown-body details:hover {
    box-shadow:
        0 6px 20px rgba(60, 20, 40, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 18px rgba(168, 62, 92, 0.32);
    transform: translateY(-1px);
}

.markdown-body details summary {
    cursor: pointer;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(168, 62, 92, 0.28), rgba(232, 194, 186, 0.18));
    color: #5a2338;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px dashed rgba(168, 62, 92, 0.35);
    list-style: none;
    position: relative;
    user-select: none;
}

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

.markdown-body details summary::before {
    content: '❀';
    display: inline-block;
    margin-right: 8px;
    color: #a83e5c;
    transition: transform 0.3s ease;
}

.markdown-body details[open] summary::before {
    transform: rotate(180deg);
    color: #7a2b45;
}

.markdown-body details[open] summary {
    background: linear-gradient(90deg, rgba(168, 62, 92, 0.38), rgba(232, 194, 186, 0.25));
}

.markdown-body details > p,
.markdown-body details > ol,
.markdown-body details > ul {
    padding: 6px 18px;
    margin: 4px 0;
    color: #3d1a28;
}

.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: #7a2b45;
    font-weight: 600;
}

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

/* ===== 用户输入气泡：深酒红 ===== */
#ai-chat-question,
[id*="user-message"] {
    background: linear-gradient(135deg, rgba(60, 20, 40, 0.88), rgba(90, 35, 56, 0.8)) !important;
    color: #fef0e8 !important;
    border: 1px solid rgba(232, 194, 186, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(60, 20, 40, 0.35);
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

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

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

#ai-chat-input::placeholder {
    color: #a05a72;
}

#ai-chat-input-container,
div:has(> #ai-chat-input) {
    background: rgba(255, 240, 240, 0.78) !important;
    border: 1.5px solid #a83e5c !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(60, 20, 40, 0.25);
    transition: all 0.3s ease;
}

div:has(> #ai-chat-input):focus-within {
    border-color: #7a2b45 !important;
    box-shadow: 0 0 16px rgba(168, 62, 92, 0.55), 0 4px 16px rgba(60, 20, 40, 0.3);
}

/* ===== 发送按钮 ===== */
#ai-send-button {
    background: linear-gradient(135deg, #a83e5c, #7a2b45) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 35, 56, 0.45);
}

#ai-send-button:hover {
    background: linear-gradient(135deg, #c04c6c, #8a3555) !important;
    box-shadow: 0 0 18px rgba(168, 62, 92, 0.65);
    transform: scale(1.06);
}

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

/* ===== 第一排工具栏 ===== */
.MuiButton-textPrimary {
    color: #a83e5c !important;
    transition: all 0.25s ease;
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

.MuiButton-textPrimary:hover {
    background: rgba(168, 62, 92, 0.18) !important;
    color: #7a2b45 !important;
}

/* ===== 第二排工具栏 ===== */
.MuiButton-outlinedPrimary {
    border-color: rgba(168, 62, 92, 0.65) !important;
    color: #7a2b45 !important;
    background: rgba(255, 245, 245, 0.55) !important;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    font-family: 'LXGW WenKai', '霞鹜文楷', serif !important;
}

.MuiButton-outlinedPrimary:hover {
    background: rgba(168, 62, 92, 0.18) !important;
    border-color: #7a2b45 !important;
    color: #5a2338 !important;
    box-shadow: 0 0 12px rgba(168, 62, 92, 0.4);
}

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

.MuiPaginationItem-root:hover {
    background: rgba(168, 62, 92, 0.18) !important;
}

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

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

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

.chat-container ::-webkit-scrollbar-track {
    background: rgba(90, 35, 56, 0.25);
    border-radius: 4px;
}

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

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