
/* ============================================ */
/* 高情商摄影师 · 暗紫精修版 UI覆盖补丁 */
/* 仅改美化，不污染玩家消息布局 */
/* ============================================ */

/* ─────────────────────────────────────────────
   1. 基础防污染：隐藏分隔线
───────────────────────────────────────────── */
.separator,
hr {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─────────────────────────────────────────────
   2. 正文框 story-main：只美化AI正文，不影响玩家消息
───────────────────────────────────────────── */
article.story-main {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 12px 0 !important;
    padding: 16px 15px !important;
    text-align: left !important;
    background:
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(156, 39, 176, 0.08), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98)) !important;
    border: 1px solid rgba(156, 39, 176, 0.35) !important;
    border-left: 4px solid rgba(156, 39, 176, 0.6) !important;
    border-right: 4px solid rgba(156, 39, 176, 0.6) !important;
    border-radius: 10px !important;
    color: #ece7f8 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    letter-spacing: 0.4px !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.06) inset,
        0 8px 22px rgba(20, 40, 60, 0.15) !important;
}
article.story-main p {
    margin: 0 0 0.9em 0 !important;
    color: #ece7f8 !important;
}
article.story-main b,
article.story-main strong {
    color: #dce8f0 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 7px rgba(156, 39, 176, 0.35) !important;
}
article.story-main::after {
    content: "✦";
    display: block;
    text-align: right;
    color: rgba(156, 39, 176, 0.7);
    opacity: 0.72;
    font-size: 15px;
    margin-top: 6px;
}

/* ─────────────────────────────────────────────
   3. 状态栏 sys-panel：统一美化
───────────────────────────────────────────── */
details.sys-panel {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 9px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    border: 1px solid rgba(156, 39, 176, 0.55) !important;
    border-radius: 11px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background:
        radial-gradient(circle at 30% 40%, rgba(156, 39, 176, 0.06), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(156, 39, 176, 0.06), transparent 35%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98)) !important;
    color: #d8cff0 !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.06) inset,
        0 5px 16px rgba(20, 40, 60, 0.15) !important;
}
details.sys-panel[open] {
    border-color: rgba(156, 39, 176, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.1) inset,
        0 0 15px rgba(156, 39, 176, 0.18),
        0 8px 22px rgba(20, 40, 60, 0.18) !important;
}
details.sys-panel > summary {
    display: block !important;
    box-sizing: border-box !important;
    padding: 8px 14px !important;
    text-align: center !important;
    list-style: none !important;
    cursor: pointer !important;
    color: #ede9fe !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    background:
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.08), transparent 50%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(20, 30, 50, 0.92), rgba(15, 23, 42, 0.96)) !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.3) !important;
}
details.sys-panel > summary::-webkit-details-marker {
    display: none !important;
}
details.sys-panel > summary::before {
    content: "◆";
    color: rgba(156, 39, 176, 0.7);
    margin-right: 8px;
    text-shadow: 0 0 6px rgba(156, 39, 176, 0.45);
}
details.sys-panel > summary::after {
    content: "◆";
    color: rgba(156, 39, 176, 0.7);
    margin-left: 8px;
    text-shadow: 0 0 6px rgba(156, 39, 176, 0.45);
}
details.sys-panel > summary b {
    color: #f3e8ff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 7px rgba(156, 39, 176, 0.38) !important;
}
/* details内部正文 */
details.sys-panel p,
details.sys-panel li,
details.sys-panel ul,
details.sys-panel ol {
    color: #d6ccea !important;
    font-size: 13.5px !important;
    line-height: 1.75 !important;
}
details.sys-panel p {
    margin: 6px 13px !important;
}
details.sys-panel ul,
details.sys-panel ol {
    margin: 7px 14px 9px 28px !important;
    padding: 0 !important;
}
details.sys-panel li {
    margin: 3px 0 !important;
}
/* 标题 */
details.sys-panel h1,
details.sys-panel h2,
details.sys-panel h3,
details.sys-panel h4 {
    color: #c8d8e8 !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    margin: 13px 12px 7px 12px !important;
    padding: 5px 8px 5px 10px !important;
    line-height: 1.35 !important;
    border-left: 4px solid rgba(156, 39, 176, 0.6) !important;
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.14), rgba(156, 39, 176, 0.02)) !important;
    border-radius: 6px !important;
}
details.sys-panel h3 {
    font-size: 14px !important;
}
/* b标签关键词 */
details.sys-panel b,
details.sys-panel strong {
    color: #d8e8f0 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.28) !important;
}
/* 普通文本暗色可读 */
details.sys-panel {
    color: #d8cff0 !important;
}

/* ─────────────────────────────────────────────
   4. 表格：角色档案/记忆中枢保持清晰
───────────────────────────────────────────── */
details.sys-panel table,
details.star-memory table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 8px 0 !important;
    background: rgba(22, 32, 52, 0.75) !important;
    border-radius: 7px !important;
    overflow-x: auto !important;
    display: block !important;
}
details.sys-panel th,
details.star-memory th {
    padding: 7px 9px !important;
    color: rgba(190, 220, 245, 0.92) !important;
    background: rgba(35, 50, 78, 0.82) !important;
    border: 1px solid rgba(156, 39, 176, 0.3) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}
details.sys-panel td,
details.star-memory td {
    padding: 6px 9px !important;
    color: #ece7f8 !important;
    background: rgba(22, 32, 52, 0.65) !important;
    border: 1px solid rgba(156, 39, 176, 0.22) !important;
    font-size: 12.5px !important;
}
details.sys-panel tr:hover td,
details.star-memory tr:hover td {
    background: rgba(40, 58, 88, 0.72) !important;
}

/* 星记忆回廊：暗紫框 */
details.star-memory {
    margin: 7px 12px 10px 12px !important;
    padding: 0 !important;
    border: 1px solid rgba(156, 39, 176, 0.55) !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    overflow-x: auto !important;
}
details.star-memory > summary {
    padding: 7px 12px !important;
    background: rgba(20, 30, 50, 0.92) !important;
    color: #ede9fe !important;
    font-size: 12.5px !important;
    text-align: center !important;
}

/* ─────────────────────────────────────────────
   5. 代码块
───────────────────────────────────────────── */
details.sys-panel pre,
details.sys-panel code {
    box-sizing: border-box !important;
    background: rgba(15, 23, 42, 0.88) !important;
    color: #d8e8f0 !important;
    border: 1px solid rgba(156, 39, 176, 0.38) !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

/* ─────────────────────────────────────────────
   6. 顶部栏
───────────────────────────────────────────── */
.sticky.w-full.top-0.flex.items-center {
    background:
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.04), transparent 50%),
        linear-gradient(180deg, rgba(240, 245, 255, 0.96), rgba(235, 240, 250, 0.72)) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.15) !important;
    box-shadow: 0 4px 18px rgba(50, 80, 100, 0.07) !important;
}
.sticky.w-full.top-0 svg,
#header-setting-button svg,
#ai-model-selector svg {
    color: #20142f !important;
}
.sticky.w-full.top-0 button:hover svg,
#header-setting-button:hover svg,
#ai-model-selector .group.flex.items-center:hover svg {
    color: rgba(156, 39, 176, 0.8) !important;
}
#ai-model-selector .group.flex.items-center {
    border: 1px solid rgba(156, 39, 176, 0.28) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 2px 9px rgba(50, 80, 100, 0.07) !important;
}
#ai-model-selector .group.flex.items-center:hover {
    background: rgba(240, 245, 255, 0.6) !important;
    border-color: rgba(156, 39, 176, 0.48) !important;
}
#ai-model-selector .truncate.text-\[13px\] {
    color: rgba(60, 100, 140, 0.9) !important;
    font-weight: 700 !important;
}

/* ─────────────────────────────────────────────
   7. 底部输入栏大框：暗紫风格
───────────────────────────────────────────── */
div[data-slot="input-group"][role="group"],
#ai-chat-bottom-input {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(156, 39, 176, 0.05), transparent 55%),
        linear-gradient(180deg,
            rgba(18, 26, 45, 0.97) 0%,
            rgba(14, 20, 38, 0.98) 50%,
            rgba(12, 18, 34, 0.99) 100%) !important;
    border: 1px solid rgba(156, 39, 176, 0.28) !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.32) !important;
    border-radius: 14px !important;
    box-shadow:
        0 -3px 20px rgba(10, 20, 40, 0.2),
        0 -1px 4px rgba(156, 39, 176, 0.08),
        0 0 30px rgba(156, 39, 176, 0.04) inset,
        0 0 1px rgba(156, 39, 176, 0.08) inset !important;
    padding: 10px 12px 8px 12px !important;
}
div[data-slot="input-group"][role="group"]:focus-within,
#ai-chat-bottom-input:focus-within {
    border-color: rgba(156, 39, 176, 0.48) !important;
    border-bottom-color: rgba(156, 39, 176, 0.42) !important;
    box-shadow:
        0 -4px 24px rgba(156, 39, 176, 0.15),
        0 -1px 6px rgba(156, 39, 176, 0.1),
        0 0 40px rgba(156, 39, 176, 0.06) inset,
        0 0 1px rgba(156, 39, 176, 0.15) inset !important;
}
/* 输入框文字颜色 */
div[data-slot="input-group"][role="group"] textarea,
div[data-slot="input-group"][role="group"] #ai-chat-input,
#ai-chat-input {
    background: transparent !important;
    color: #d6ccea !important;
    caret-color: rgba(156, 39, 176, 0.85) !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important;
    transition: all 0.25s ease !important;
}
/* 输入框容器 */
#prompt-input-body {
    padding: 6px 10px !important;
    background: rgba(25, 35, 58, 0.6) !important;
    border: 1px solid rgba(156, 39, 176, 0.22) !important;
    border-radius: 11px !important;
    transition: all 0.28s ease !important;
}
#prompt-input-body:focus-within {
    background: rgba(30, 42, 68, 0.72) !important;
    border-color: rgba(156, 39, 176, 0.4) !important;
    box-shadow:
        0 0 0 3px rgba(156, 39, 176, 0.1),
        0 2px 14px rgba(156, 39, 176, 0.1) inset !important;
}
#prompt-input-body textarea {
    min-height: 36px !important;
    max-height: 180px !important;
    resize: none !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important;
    color: #d6ccea !important;
}
#prompt-input-body textarea::placeholder {
    color: rgba(130, 160, 190, 0.45) !important;
}

/* ─────────────────────────────────────────────
   7b. 顶部按钮行
───────────────────────────────────────────── */
#prompt-input-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 2px 6px 2px !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.12) !important;
    margin-bottom: 4px !important;
}
#prompt-input-header button,
#prompt-input-header .MuiIconButton-root,
#prompt-input-header [class*="MuiButton"] {
    border-radius: 8px !important;
    border: 1px solid rgba(156, 39, 176, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(30, 42, 68, 0.75), rgba(24, 34, 56, 0.7)) !important;
    color: rgba(150, 185, 215, 0.7) !important;
    min-width: 32px !important;
    height: 30px !important;
    padding: 3px 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    box-shadow:
        0 1px 4px rgba(20, 35, 55, 0.15),
        0 0 0 1px rgba(255,255,255,0.04) inset !important;
    transition: all 0.2s ease !important;
}
#prompt-input-header button:hover,
#prompt-input-header .MuiIconButton-root:hover,
#prompt-input-header [class*="MuiButton"]:hover {
    background:
        linear-gradient(180deg, rgba(40, 56, 88, 0.82), rgba(32, 46, 72, 0.78)) !important;
    color: rgba(170, 205, 235, 0.9) !important;
    border-color: rgba(156, 39, 176, 0.36) !important;
    box-shadow:
        0 2px 10px rgba(156, 39, 176, 0.15),
        0 0 0 1px rgba(156, 39, 176, 0.12) inset !important;
    transform: translateY(-1px) !important;
}
#prompt-input-header svg {
    color: inherit !important;
    transition: all 0.2s ease !important;
}
#prompt-input-header button:hover svg,
#prompt-input-header .MuiIconButton-root:hover svg {
    transform: scale(1.08) !important;
}

/* ─────────────────────────────────────────────
   7c. 底部按钮行
───────────────────────────────────────────── */
#prompt-input-footer {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 2px 2px 2px !important;
    border-top: 1px solid rgba(156, 39, 176, 0.12) !important;
    margin-top: 4px !important;
    flex-wrap: wrap !important;
}
#prompt-input-footer button,
#prompt-input-footer .MuiButton-root,
#prompt-input-footer .MuiIconButton-root,
#prompt-input-footer [class*="MuiButton"] {
    border-radius: 8px !important;
    border: 1px solid rgba(156, 39, 176, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(30, 42, 68, 0.7), rgba(24, 34, 56, 0.66)) !important;
    color: rgba(150, 185, 215, 0.7) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    padding: 4px 9px !important;
    height: 28px !important;
    box-shadow:
        0 1px 5px rgba(20, 35, 55, 0.12),
        0 0 0 1px rgba(255,255,255,0.03) inset !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#prompt-input-footer button:hover,
#prompt-input-footer .MuiButton-root:hover,
#prompt-input-footer .MuiIconButton-root:hover,
#prompt-input-footer [class*="MuiButton"]:hover {
    background:
        linear-gradient(180deg, rgba(40, 56, 88, 0.78), rgba(32, 46, 72, 0.74)) !important;
    color: rgba(180, 212, 240, 0.92) !important;
    border-color: rgba(156, 39, 176, 0.38) !important;
    box-shadow:
        0 2px 12px rgba(156, 39, 176, 0.16),
        0 0 0 1px rgba(156, 39, 176, 0.12) inset !important;
    transform: translateY(-1px) !important;
}
#prompt-input-footer button:active,
#prompt-input-footer .MuiButton-root:active,
#prompt-input-footer .MuiIconButton-root:active,
#prompt-input-footer [class*="MuiButton"]:active {
    transform: translateY(0) !important;
    box-shadow:
        0 1px 3px rgba(20, 35, 55, 0.1),
        0 0 0 1px rgba(255,255,255,0.02) inset !important;
}
#prompt-input-footer svg {
    color: inherit !important;
    transition: all 0.2s ease !important;
}
#prompt-input-footer button:hover svg,
#prompt-input-footer .MuiIconButton-root:hover svg {
    transform: scale(1.06) !important;
}

/* ─────────────────────────────────────────────
   8. 通用按钮：暗紫风格
───────────────────────────────────────────── */
div[data-slot="input-group"][role="group"] button,
div[data-slot="input-group"][role="group"] .MuiButton-root,
div[data-slot="input-group"][role="group"] .MuiIconButton-root,
#ai-chat-bottom-input button,
#ai-chat-bottom-input .MuiButton-root,
#ai-chat-bottom-input .MuiIconButton-root,
#ai-mod-button2 button.MuiButton-root,
button.MuiButton-root,
button.MuiIconButton-root {
    border-radius: 10px !important;
    border: 1px solid rgba(156, 39, 176, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(30, 42, 68, 0.72), rgba(24, 34, 56, 0.68)) !important;
    color: rgba(150, 185, 215, 0.75) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 5px 10px !important;
    box-shadow:
        0 1px 6px rgba(20, 35, 55, 0.12),
        0 0 0 1px rgba(255,255,255,0.04) inset !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
div[data-slot="input-group"][role="group"] button:hover,
div[data-slot="input-group"][role="group"] .MuiButton-root:hover,
div[data-slot="input-group"][role="group"] .MuiIconButton-root:hover,
#ai-chat-bottom-input button:hover,
#ai-chat-bottom-input .MuiButton-root:hover,
#ai-chat-bottom-input .MuiIconButton-root:hover,
#ai-mod-button2 button.MuiButton-root:hover,
button.MuiButton-root:hover,
button.MuiIconButton-root:hover {
    background:
        linear-gradient(180deg, rgba(40, 56, 88, 0.8), rgba(32, 46, 72, 0.76)) !important;
    color: rgba(180, 212, 240, 0.92) !important;
    border-color: rgba(156, 39, 176, 0.38) !important;
    box-shadow:
        0 2px 12px rgba(156, 39, 176, 0.15),
        0 0 0 1px rgba(156, 39, 176, 0.12) inset !important;
    transform: translateY(-1px) !important;
}

/* ─────────────────────────────────────────────
   9. 思维链折叠面板 · 独立美化版
   只作用于 <details class="think-panel">
───────────────────────────────────────────── */
details.think-panel {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 10px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 1px solid rgba(156, 39, 176, 0.5) !important;
    background:
        radial-gradient(circle at top left, rgba(156, 39, 176, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(31, 40, 55, 0.97), rgba(15, 20, 30, 0.98)) !important;
    color: #d8e8f0 !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 8px 22px rgba(30, 50, 70, 0.18) !important;
}
details.think-panel[open] {
    border-color: rgba(156, 39, 176, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.12) inset,
        0 0 18px rgba(156, 39, 176, 0.22),
        0 10px 26px rgba(30, 50, 70, 0.2) !important;
}
details.think-panel > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-height: 38px !important;
    padding: 9px 13px !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
    background:
        linear-gradient(90deg, rgba(40, 60, 80, 0.98), rgba(156, 39, 176, 0.94), rgba(40, 60, 80, 0.98)) !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.25) !important;
    color: #e8f0f8 !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.8px !important;
}
details.think-panel > summary::-webkit-details-marker {
    display: none !important;
}
details.think-panel > summary::before {
    content: "✦";
    flex: 0 0 auto !important;
    color: rgba(156, 39, 176, 0.8) !important;
    font-size: 13px !important;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.6) !important;
    transform: rotate(0deg) !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
}
details.think-panel[open] > summary::before {
    transform: rotate(90deg) !important;
    color: rgba(156, 39, 176, 0.9) !important;
}
details.think-panel > summary b {
    flex: 1 1 auto !important;
    display: inline-block !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    text-shadow:
        0 0 6px rgba(156, 39, 176, 0.4),
        0 0 12px rgba(156, 39, 176, 0.22) !important;
}
details.think-panel > summary span {
    flex: 0 1 auto !important;
    display: inline-block !important;
    max-width: 52% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    color: rgba(156, 39, 176, 0.8) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    opacity: 0.92 !important;
}
details.think-panel .think-inner {
    box-sizing: border-box !important;
    padding: 10px 13px 12px 13px !important;
    background:
        linear-gradient(180deg, rgba(25, 35, 50, 0.72), rgba(15, 20, 30, 0.76)) !important;
}
details.think-panel p,
details.think-panel li,
details.think-panel ul,
details.think-panel ol {
    color: #d8e8f0 !important;
    font-size: 13px !important;
    line-height: 1.72 !important;
}
details.think-panel p {
    margin: 6px 0 !important;
}
details.think-panel ul,
details.think-panel ol {
    margin: 7px 0 8px 21px !important;
    padding: 0 !important;
}
details.think-panel li {
    margin: 4px 0 !important;
    padding-left: 2px !important;
}
details.think-panel li::marker {
    color: rgba(156, 39, 176, 0.8) !important;
    font-weight: 800 !important;
}
details.think-panel strong,
details.think-panel b {
    color: #d8e8f0 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.3) !important;
}
details.think-panel code {
    display: inline-block !important;
    padding: 1px 5px !important;
    margin: 0 2px !important;
    border-radius: 5px !important;
    background: rgba(156, 39, 176, 0.35) !important;
    color: #d8e8f0 !important;
    border: 1px solid rgba(156, 39, 176, 0.2) !important;
    font-size: 12px !important;
}
details.think-panel h1,
details.think-panel h2,
details.think-panel h3,
details.think-panel h4 {
    margin: 10px 0 6px 0 !important;
    padding: 5px 8px !important;
    color: #e8f0f8 !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    border-left: 4px solid rgba(156, 39, 176, 0.8) !important;
    border-radius: 6px !important;
    background:
        linear-gradient(90deg, rgba(156, 39, 176, 0.18), rgba(156, 39, 176, 0.04)) !important;
}
details.think-panel blockquote {
    margin: 8px 0 !important;
    padding: 7px 9px !important;
    border-left: 3px solid rgba(156, 39, 176, 0.6) !important;
    border-radius: 7px !important;
    background: rgba(156, 39, 176, 0.18) !important;
    color: #d8e8f0 !important;
}
details.think-panel:hover {
    border-color: rgba(156, 39, 176, 0.7) !important;
}

/* ─────────────────────────────────────────────
   9b. 思维链 <q> 项目卡片补丁
   只作用于 details.think-panel .think-inner q
───────────────────────────────────────────── */
details.think-panel .think-inner q {
    quotes: none !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 0 9px 0 !important;
    padding: 34px 10px 9px 10px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(156, 39, 176, 0.3) !important;
    background:
        radial-gradient(circle at top right, rgba(156, 39, 176, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(30, 45, 60, 0.74), rgba(15, 20, 30, 0.78)) !important;
    color: #d8e8f0 !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 4px 12px rgba(20, 30, 40, 0.15) !important;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
}
details.think-panel .think-inner q::before {
    content: "Step " attr(data-step) " · " attr(data-title) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    min-height: 25px !important;
    box-sizing: border-box !important;
    padding: 5px 9px !important;
    border-radius: 9px 9px 0 0 !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2) !important;
    background:
        linear-gradient(90deg, rgba(156, 39, 176, 0.7), rgba(156, 39, 176, 0.5), rgba(156, 39, 176, 0.2)) !important;
    color: #d8e8f0 !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.7px !important;
    text-shadow: 0 0 6px rgba(156, 39, 176, 0.4) !important;
}
details.think-panel .think-inner q::after {
    content: none !important;
}
details.think-panel .think-inner q:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(156, 39, 176, 0.6) !important;
    background:
        radial-gradient(circle at top right, rgba(156, 39, 176, 0.15), transparent 36%),
        linear-gradient(180deg, rgba(40, 55, 75, 0.82), rgba(20, 25, 35, 0.86)) !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.08) inset,
        0 0 14px rgba(156, 39, 176, 0.15),
        0 6px 15px rgba(20, 30, 40, 0.18) !important;
}
details.think-panel .think-inner q:last-child {
    margin-bottom: 0 !important;
}
details.think-panel .think-inner q > b:first-child {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 7px 0 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(156, 39, 176, 0.25) !important;
    background: rgba(156, 39, 176, 0.22) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.5px !important;
    text-shadow:
        0 0 6px rgba(156, 39, 176, 0.4),
        0 0 12px rgba(156, 39, 176, 0.2) !important;
}
details.think-panel .think-inner q p {
    margin: 5px 0 !important;
    padding: 0 !important;
    color: #d8e8f0 !important;
    font-size: 12.9px !important;
    line-height: 1.72 !important;
}
details.think-panel .think-inner q p::before {
    content: "•" !important;
    display: inline-block !important;
    margin-right: 6px !important;
    color: rgba(156, 39, 176, 0.8) !important;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.4) !important;
}
details.think-panel .think-inner q code {
    display: inline-block !important;
    padding: 1px 5px !important;
    margin: 0 2px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(156, 39, 176, 0.2) !important;
    background: rgba(156, 39, 176, 0.35) !important;
    color: #d8e8f0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}
details.think-panel .think-inner q strong,
details.think-panel .think-inner q b {
    color: #d8e8f0 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.3) !important;
}
/* q 卡片彩色左边框 */
details.think-panel .think-inner q:nth-of-type(1) {
    border-left: 3px solid rgba(156, 39, 176, 0.8) !important;
}
details.think-panel .think-inner q:nth-of-type(2) {
    border-left: 3px solid rgba(140, 50, 170, 0.7) !important;
}
details.think-panel .think-inner q:nth-of-type(3) {
    border-left: 3px solid rgba(120, 60, 165, 0.8) !important;
}
details.think-panel .think-inner q:nth-of-type(4) {
    border-left: 3px solid rgba(180, 80, 200, 0.6) !important;
}
details.think-panel .think-inner q:nth-of-type(5) {
    border-left: 3px solid rgba(160, 70, 190, 0.7) !important;
}
details.think-panel .think-inner q:nth-of-type(6) {
    border-left: 3px solid rgba(130, 55, 175, 0.8) !important;
}
details.think-panel .think-inner q:nth-of-type(7) {
    border-left: 3px solid rgba(170, 85, 205, 0.6) !important;
}

/* ─────────────────────────────────────────────
   10. 对话文字按角色区分颜色
   玩家「」蓝 | 女NPC「」紫 | 男NPC「」绿 | 色情粉红
───────────────────────────────────────────── */
.markdown-body .dialogue {
    font-weight: 600 !important;
    position: relative !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    display: inline !important;
}
.markdown-body .dialogue::before {
    content: '「' !important;
}
.markdown-body .dialogue::after {
    content: '」' !important;
}

/* 玩家对话 - 蓝色 */
.markdown-body .d-player {
    color: #2196f3 !important;
    text-shadow: 0 0 8px rgba(33, 150, 243, 0.4) !important;
    background: rgba(33, 150, 243, 0.1) !important;
}
.markdown-body .d-player::before,
.markdown-body .d-player::after {
    color: #2196f3 !important;
}

/* 女NPC对话 - 紫色 */
.markdown-body .d-female,
.markdown-body .d-female-npc {
    color: #9c27b0 !important;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.4) !important;
    background: rgba(156, 39, 176, 0.1) !important;
}
.markdown-body .d-female::before,
.markdown-body .d-female::after,
.markdown-body .d-female-npc::before,
.markdown-body .d-female-npc::after {
    color: #9c27b0 !important;
}

/* 男NPC对话 - 绿色 */
.markdown-body .d-male,
.markdown-body .d-male-npc,
.markdown-body .d-npc {
    color: #4caf50 !important;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.4) !important;
    background: rgba(76, 175, 80, 0.1) !important;
}
.markdown-body .d-male::before,
.markdown-body .d-male::after,
.markdown-body .d-male-npc::before,
.markdown-body .d-male-npc::after,
.markdown-body .d-npc::before,
.markdown-body .d-npc::after {
    color: #4caf50 !important;
}

/* 色情内容 - 粉红色 */
.markdown-body .d-erotic,
.markdown-body .d-mnx {
    color: #ff6b9d !important;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.4) !important;
    background: rgba(255, 107, 157, 0.1) !important;
}
.markdown-body .d-erotic::before,
.markdown-body .d-erotic::after,
.markdown-body .d-mnx::before,
.markdown-body .d-mnx::after {
    color: #ff6b9d !important;
}

/* 内心想法 - 浅灰色 */
.markdown-body .d-thought {
    color: #b0b0b0 !important;
    font-style: italic !important;
    text-shadow: 0 0 6px rgba(176, 176, 176, 0.3) !important;
    background: rgba(176, 176, 176, 0.08) !important;
}
.markdown-body .d-thought::before,
.markdown-body .d-thought::after {
    color: #909090 !important;
}

/* ─────────────────────────────────────────────
   11. 滚动条
───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(240, 245, 255, 0.6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(156, 39, 176, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 39, 176, 0.6);
}

/* ─────────────────────────────────────────────
   12. 移动端微调
───────────────────────────────────────────── */
@media (max-width: 768px) {
    article.story-main {
        padding: 14px 12px !important;
        font-size: 14.5px !important;
        line-height: 1.85 !important;
    }
    details.sys-panel > summary {
        padding: 7px 10px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
    details.sys-panel p,
    details.sys-panel li {
        font-size: 13px !important;
        line-height: 1.72 !important;
    }
    details.sys-panel h3 {
        font-size: 13.5px !important;
    }
    /* 表格横向滚动支持 */
    details.sys-panel,
    details.star-memory {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    details.sys-panel table,
    details.star-memory table {
        min-width: 600px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    /* 思维链移动端 */
    details.think-panel {
        margin: 7px 0 9px 0 !important;
        border-radius: 10px !important;
    }
    details.think-panel > summary {
        padding: 8px 10px !important;
        min-height: 36px !important;
        font-size: 13px !important;
    }
    details.think-panel > summary b {
        font-size: 13.5px !important;
    }
    details.think-panel > summary span {
        max-width: 45% !important;
        font-size: 10.5px !important;
    }
    details.think-panel .think-inner {
        padding: 9px 10px 10px 10px !important;
    }
    details.think-panel p,
    details.think-panel li,
    details.think-panel ul,
    details.think-panel ol {
        font-size: 12.8px !important;
        line-height: 1.68 !important;
    }
    details.think-panel .think-inner q {
        margin: 0 0 8px 0 !important;
        padding: 32px 8px 8px 8px !important;
        border-radius: 9px !important;
    }
    details.think-panel .think-inner q::before {
        min-height: 24px !important;
        padding: 5px 8px !important;
        font-size: 10.8px !important;
        letter-spacing: 0.45px !important;
    }
    details.think-panel .think-inner q > b:first-child {
        margin-bottom: 6px !important;
        padding: 3px 7px !important;
        font-size: 12.6px !important;
    }
    details.think-panel .think-inner q p {
        font-size: 12.5px !important;
        line-height: 1.66 !important;
    }
}

/* ─────────────────────────────────────────────
   13. 宽度扩展：让聊天区域铺满屏幕
───────────────────────────────────────────── */
@media (min-width: 768px) {
    div[class*="max-w-2xl"],
    .max-w-2xl {
        max-width: 920px !important;
        width: auto !important;
    }
}
/* AI 回复消息行：取消宽度限制 */
div[class*="is-assistant"],
.group.is-assistant {
    max-width: none !important;
    width: 100% !important;
}
/* AI 回复卡片容器：加宽 */
.group.is-assistant > .is-dark.bg-card,
div[class*="is-assistant"][class*="bg-card"] {
    max-width: none !important;
    width: 100% !important;
}
/* 玩家消息行：也取消限制 */
div[class*="is-user"],
.group.is-user {
    max-width: none !important;
}
/* Markdown 渲染器：内容区撑满 */
div.rili-markdown-renderer,
.group.is-assistant .rili-markdown-renderer {
    max-width: none !important;
    width: 100% !important;
}
/* story-main 正文框：撑满 */
article.story-main {
    max-width: none !important;
    width: 100% !important;
}
/* 底部输入栏：撑满 */
div[data-slot="input-group"][role="group"],
#ai-chat-bottom-input {
    max-width: none !important;
    width: 100% !important;
}

/* ─────────────────────────────────────────────
   14. 自定义回答区：统一暗紫风格
───────────────────────────────────────────── */
#customized-answer-content {
    background:
        radial-gradient(circle at 30% 40%, rgba(156, 39, 176, 0.06), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(156, 39, 176, 0.06), transparent 35%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98)) !important;
    border: 1px solid rgba(156, 39, 176, 0.4) !important;
    border-left: 3px solid rgba(156, 39, 176, 0.6) !important;
    border-right: 3px solid rgba(156, 39, 176, 0.6) !important;
    color: #ece7f8 !important;
    border-radius: 10px !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.06) inset,
        0 6px 20px rgba(20, 40, 60, 0.14) !important;
}
#customized-answer-content * {
    color: #ece7f8 !important;
}

/* ─────────────────────────────────────────────
   14b. 音频播放器：缩小 + 暗紫圆角风格
───────────────────────────────────────────── */
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    background:
        linear-gradient(180deg, rgba(30, 42, 68, 0.72), rgba(24, 34, 56, 0.68)) !important;
    border: 1px solid rgba(156, 39, 176, 0.25) !important;
    border-radius: 20px !important;
    box-shadow:
        0 1px 8px rgba(20, 35, 55, 0.15),
        0 0 0 1px rgba(255,255,255,0.04) inset !important;
    max-width: 280px !important;
    transform: scale(0.88) !important;
    transform-origin: left center !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiTypography-root.MuiTypography-body2 {
    font-size: 11px !important;
    color: rgba(150, 185, 215, 0.82) !important;
    line-height: 1.4 !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiTypography-root.MuiTypography-caption {
    font-size: 10px !important;
    color: rgba(156, 39, 176, 0.6) !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiIconButton-root.MuiIconButton-sizeSmall {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 4px !important;
    border-radius: 50% !important;
    background:
        linear-gradient(180deg, rgba(40, 56, 88, 0.6), rgba(30, 42, 68, 0.55)) !important;
    border: 1px solid rgba(156, 39, 176, 0.25) !important;
    color: rgba(150, 185, 215, 0.82) !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiIconButton-root.MuiIconButton-sizeSmall:hover {
    background:
        linear-gradient(180deg, rgba(50, 68, 100, 0.72), rgba(40, 56, 88, 0.66)) !important;
    border-color: rgba(156, 39, 176, 0.4) !important;
    color: rgba(180, 212, 240, 0.92) !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiIconButton-root svg {
    font-size: 13px !important;
}

/* ─────────────────────────────────────────────
   15. 自定义回答工具栏：日期+操作按钮统一美化
───────────────────────────────────────────── */
/* 工具栏容器 */
.MuiStack-root.css-1ajg1ui {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 6px 10px !important;
}
/* 日期文字 */
.text-xs.text-text-secondary {
    font-size: 10px !important;
    color: rgba(120, 160, 190, 0.55) !important;
    letter-spacing: 0.3px !important;
    margin-right: 4px !important;
}
/* 工具栏所有按钮 */
.MuiStack-root.css-1ajg1ui .MuiButton-root,
#customized-reload-button,
#customized-edit-button,
#customized-create-image-button,
#customized-branch-and-share-button,
#customized-prompt-button {
    min-width: unset !important;
    height: 24px !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(156, 39, 176, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(28, 40, 65, 0.7), rgba(22, 32, 52, 0.66)) !important;
    color: rgba(150, 185, 215, 0.75) !important;
    box-shadow:
        0 1px 4px rgba(20, 35, 55, 0.12),
        0 0 0 1px rgba(255,255,255,0.03) inset !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
}
.MuiStack-root.css-1ajg1ui .MuiButton-root:hover,
#customized-reload-button:hover,
#customized-edit-button:hover,
#customized-create-image-button:hover,
#customized-branch-and-share-button:hover,
#customized-prompt-button:hover {
    background:
        linear-gradient(180deg, rgba(38, 54, 85, 0.8), rgba(30, 42, 65, 0.76)) !important;
    color: rgba(185, 218, 245, 0.92) !important;
    border-color: rgba(156, 39, 176, 0.38) !important;
    box-shadow:
        0 2px 8px rgba(156, 39, 176, 0.15),
        0 0 0 1px rgba(156, 39, 176, 0.12) inset !important;
    transform: translateY(-1px) !important;
}
/* 按钮内 SVG 图标 */
.MuiStack-root.css-1ajg1ui .MuiButton-root svg,
#customized-reload-button svg,
#customized-edit-button svg,
#customized-create-image-button svg,
#customized-branch-and-share-button svg,
#customized-prompt-button svg {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
}

/* ─────────────────────────────────────────────
   16. 跨平台兼容：另一平台 AI 回复区统一暗紫风格
───────────────────────────────────────────── */
/* AI 回复卡片容器 */
.group.is-assistant > .is-dark.bg-card,
div[class*="is-assistant"][class*="bg-card"] {
    background:
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.07), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(156, 39, 176, 0.07), transparent 40%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98)) !important;
    border: 1px solid rgba(156, 39, 176, 0.38) !important;
    border-left: 3px solid rgba(156, 39, 176, 0.55) !important;
    border-right: 3px solid rgba(156, 39, 176, 0.55) !important;
    color: #ece7f8 !important;
    border-radius: 11px !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.05) inset,
        0 6px 18px rgba(20, 40, 60, 0.13) !important;
}
/* AI 回复内容文字 */
.group.is-assistant .rili-markdown-renderer,
div.rili-markdown-renderer {
    color: #ece7f8 !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    letter-spacing: 0.35px !important;
}
/* AI 回复内所有子元素 */
.group.is-assistant .rili-markdown-renderer *,
div.rili-markdown-renderer * {
    color: #ece7f8 !important;
}
/* AI 回复标题 */
.group.is-assistant .rili-markdown-renderer h1,
.group.is-assistant .rili-markdown-renderer h2,
.group.is-assistant .rili-markdown-renderer h3,
div.rili-markdown-renderer h1,
div.rili-markdown-renderer h2,
div.rili-markdown-renderer h3 {
    color: #d8ceef !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border-bottom: 2px solid rgba(156, 39, 176, 0.32) !important;
    padding-bottom: 5px !important;
}
/* AI 回复加粗 */
.group.is-assistant .rili-markdown-renderer b,
.group.is-assistant .rili-markdown-renderer strong,
div.rili-markdown-renderer b,
div.rili-markdown-renderer strong {
    color: #dce8f0 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 6px rgba(156, 39, 176, 0.28) !important;
}

/* ─────────────────────────────────────────────
   17. 评论区整体
───────────────────────────────────────────── */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background:
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.04), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,245,255,0.97)) !important;
    color: #31233f !important;
    border-top: 1px solid rgba(156, 39, 176, 0.18) !important;
    box-shadow: 0 -8px 26px rgba(50, 80, 100, 0.1) !important;
}
div.text-lg.font-bold,
p.MuiTypography-body1.text-grey-600 {
    color: rgba(100, 50, 140, 0.85) !important;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.2) !important;
}
span.MuiRating-iconEmpty svg {
    color: rgba(150, 130, 180, 0.5) !important;
}
span.MuiRating-iconFilled svg {
    color: rgba(156, 39, 176, 0.8) !important;
    filter: drop-shadow(0 0 4px rgba(156, 39, 176, 0.4)) !important;
}
span.text-orange-500 {
    color: rgba(156, 39, 176, 0.8) !important;
}
textarea.rc-textarea {
    background: rgba(240, 245, 255, 0.95) !important;
    border: 1px solid rgba(156, 39, 176, 0.22) !important;
    color: #2e2140 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(50, 80, 100, 0.06) inset !important;
}
textarea.rc-textarea:focus {
    border-color: rgba(156, 39, 176, 0.5) !important;
    box-shadow:
        0 0 0 1px rgba(156, 39, 176, 0.4),
        0 2px 10px rgba(50, 80, 100, 0.06) inset !important;
}
div.bg-gray-100.text-gray-500 {
    background: rgba(240, 245, 255, 0.95) !important;
    color: rgba(156, 39, 176, 0.8) !important;
    border: 1px solid rgba(156, 39, 176, 0.15) !important;
}
div.cursor-pointer.group.flex.items-center.justify-center svg[data-icon="Send03"] {
    color: rgba(156, 39, 176, 0.75) !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover svg[data-icon="Send03"] {
    color: rgba(120, 30, 160, 0.85) !important;
}
button.MuiButton-containedPrimary {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.7), rgba(120, 30, 160, 0.7)) !important;
    color: #ffffff !important;
    border-color: rgba(156, 39, 176, 0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.18) !important;
}
button.MuiButton-outlinedPrimary {
    color: rgba(120, 30, 160, 0.85) !important;
    border-color: rgba(156, 39, 176, 0.4) !important;
    background: rgba(255,255,255,0.72) !important;
    border-radius: 16px !important;
}
button.MuiButton-containedPrimary:hover,
button.MuiButton-outlinedPrimary:hover {
    background: rgba(240, 245, 255, 0.95) !important;
    color: rgba(120, 30, 160, 0.85) !important;
}
div.style_divider__mW0YX {
    height: 1px !important;
    background: rgba(156, 39, 176, 0.18) !important;
    border: none !important;
}
div.group.ml-0 {
    border-bottom: 1px solid rgba(156, 39, 176, 0.11) !important;
    padding-bottom: 1rem !important;
}
div.text-sm.text-grey-600 span.font-bold {
    color: rgba(120, 30, 160, 0.85) !important;
}
span.text-\[10px\] {
    background: rgba(240, 245, 255, 0.95) !important;
    color: rgba(120, 30, 160, 0.85) !important;
    border: 1px solid rgba(156, 39, 176, 0.18) !important;
}
div.break-all {
    color: #3a2b4d !important;
}
div.text-xs.text-grey-600 {
    color: rgba(100, 80, 130, 0.7) !important;
}
button.text-gray-400,
span.cursor-pointer {
    color: rgba(156, 39, 176, 0.75) !important;
}
button.text-gray-400:hover,
span.cursor-pointer:hover {
    color: rgba(120, 30, 160, 0.85) !important;
}
div.ml-8.border-l {
    border-left-color: rgba(156, 39, 176, 0.15) !important;
}

/* ─────────────────────────────────────────────
   18. 分页/通用MUI输入
───────────────────────────────────────────── */
.MuiPaginationItem-root {
    color: rgba(156, 39, 176, 0.8) !important;
    background: rgba(240, 245, 255, 0.95) !important;
    border: 1px solid rgba(156, 39, 176, 0.22) !important;
    border-radius: 10px !important;
}
.MuiPaginationItem-root:hover {
    background: rgba(240, 245, 255, 0.95) !important;
}
.MuiPaginationItem-root.Mui-selected {
    background: rgba(156, 39, 176, 0.7) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-color: rgba(120, 30, 160, 0.6) !important;
}
.MuiPaginationItem-root.Mui-disabled {
    opacity: 0.38 !important;
}
.MuiPaginationItem-icon {
    color: inherit !important;
}
.MuiInputBase-input {
    color: #2e2140 !important;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2) !important;
}

/* ─────────────────────────────────────────────
   19. 发送按钮：高亮强调色
───────────────────────────────────────────── */
div[data-slot="input-group"][role="group"] button:last-child,
#ai-chat-bottom-input button:last-child {
    background:
        linear-gradient(180deg, rgba(156, 39, 176, 0.82), rgba(120, 30, 160, 0.86)) !important;
    border-color: rgba(156, 39, 176, 0.45) !important;
    color: rgba(240, 230, 255, 0.92) !important;
    border-radius: 10px !important;
    box-shadow:
        0 2px 12px rgba(156, 39, 176, 0.22),
        0 0 0 1px rgba(156, 39, 176, 0.15) inset !important;
}
div[data-slot="input-group"][role="group"] button:last-child svg,
#ai-chat-bottom-input button:last-child svg {
    color: rgba(240, 230, 255, 0.92) !important;
}
div[data-slot="input-group"][role="group"] button:last-child:hover,
#ai-chat-bottom-input button:last-child:hover {
    background:
        linear-gradient(180deg, rgba(170, 50, 190, 0.88), rgba(140, 35, 170, 0.9)) !important;
    border-color: rgba(156, 39, 176, 0.5) !important;
    color: rgba(230, 220, 250, 0.92) !important;
    box-shadow:
        0 4px 16px rgba(156, 39, 176, 0.18),
        0 0 16px rgba(120, 30, 160, 0.1) !important;
}
div[data-slot="input-group"][role="group"] button:last-child:hover svg,
#ai-chat-bottom-input button:last-child:hover svg {
    color: rgba(230, 220, 250, 0.92) !important;
}

/* ─────────────────────────────────────────────
   20. 模型选择器底部胶囊：暗紫风格
───────────────────────────────────────────── */
div[data-slot="input-group"][role="group"] .MuiInputBase-root,
div[data-slot="input-group"][role="group"] [class*="MuiInputBase"],
#ai-chat-bottom-input .MuiInputBase-root,
#ai-chat-bottom-input [class*="MuiInputBase"] {
    border-radius: 10px !important;
    border: 1px solid rgba(156, 39, 176, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(30, 42, 68, 0.7), rgba(24, 34, 56, 0.66)) !important;
    color: rgba(150, 185, 215, 0.75) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    transition: all 0.22s ease !important;
}
#ai-chat-bottom-input .MuiInputBase-root:hover,
#ai-chat-bottom-input [class*="MuiInputBase"]:hover {
    background:
        linear-gradient(180deg, rgba(40, 56, 88, 0.78), rgba(30, 42, 68, 0.74)) !important;
    border-color: rgba(156, 39, 176, 0.36) !important;
}

/* ─────────────────────────────────────────────
   21. 右侧控制区：实时/发送等
───────────────────────────────────────────── */
div.cursor-pointer.group.flex.items-center.justify-center {
    border-radius: 10px !important;
    transition: all 0.22s ease !important;
}
