/* ============================================ */
/* 玄牝天枢录 · 暗紫精修版 UI覆盖补丁 */
/* 仅改美化，不动图片库，不污染玩家消息布局 */
/* ============================================ */
/* ─────────────────────────────────────────────
   0. 字体：霞鹜文楷（CDN加载）+ 降级栈
───────────────────────────────────────────── */
@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css');
/* ─────────────────────────────────────────────
   1. 基础防污染：不再改 main/section/group
───────────────────────────────────────────── */
.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(120, 180, 200, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(120, 180, 200, 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(100, 150, 180, 0.35) !important;
    border-left: 4px solid rgba(80, 120, 160, 0.6) !important;
    border-right: 4px solid rgba(80, 120, 160, 0.6) !important;
    border-radius: 10px !important;
    color: #ece7f8 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !important;
    line-height: 1.9 !important;
    letter-spacing: 0.4px !important;
    box-shadow:
        0 0 0 1px rgba(150, 200, 220, 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(150, 200, 220, 0.35) !important;
}
article.story-main::after {
    content: "✦";
    display: block;
    text-align: right;
    color: rgba(120, 180, 200, 0.7);
    opacity: 0.72;
    font-size: 15px;
    margin-top: 6px;
}
/* ─────────────────────────────────────────────
   3. 状态栏 sys-panel：地图/状态/当前互动角色/附近NPC统一美化
───────────────────────────────────────────── */
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(100, 150, 180, 0.55) !important;
    border-radius: 11px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background:
        radial-gradient(circle at 30% 40%, rgba(120, 180, 200, 0.06), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(120, 180, 200, 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(150, 200, 220, 0.06) inset,
        0 5px 16px rgba(20, 40, 60, 0.15) !important;
}
details.sys-panel[open] {
    border-color: rgba(120, 180, 200, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(150, 200, 220, 0.1) inset,
        0 0 15px rgba(100, 150, 180, 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: 15px !important;
    font-weight: 800 !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !important;
    letter-spacing: 1.5px !important;
    background:
        radial-gradient(circle at 50% 50%, rgba(120, 180, 200, 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(120, 180, 200, 0.3) !important;
}
details.sys-panel > summary::-webkit-details-marker {
    display: none !important;
}
details.sys-panel > summary::before {
    content: "◆";
    color: rgba(120, 180, 200, 0.7);
    margin-right: 8px;
    text-shadow: 0 0 6px rgba(120, 180, 200, 0.45);
}
details.sys-panel > summary::after {
    content: "◆";
    color: rgba(120, 180, 200, 0.7);
    margin-left: 8px;
    text-shadow: 0 0 6px rgba(120, 180, 200, 0.45);
}
details.sys-panel > summary b {
    color: #f3e8ff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 7px rgba(150, 200, 220, 0.38) !important;
}
/* details内部正文：兼容markdown解析后的元素 */
details.sys-panel p,
details.sys-panel li,
details.sys-panel ul,
details.sys-panel ol {
    color: #d6ccea !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    font-weight: 500 !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !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;
}
/* 标题：状态面板、当前互动角色、附近NPC都会吃到 */
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(100, 150, 180, 0.6) !important;
    background: linear-gradient(90deg, rgba(100, 150, 180, 0.14), rgba(100, 150, 180, 0.02)) !important;
    border-radius: 6px !important;
}
details.sys-panel h3 {
    font-size: 14px !important;
}
/* b标签关键词：你打了<b>的地方会更像状态面板 */
details.sys-panel b,
details.sys-panel strong {
    color: #d8e8f0 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(150, 200, 220, 0.28) !important;
}
/* 普通文本暗色可读 */
details.sys-panel {
    color: #d8cff0 !important;
}
/* 当前互动角色、附近NPC里的头像/立绘容器别被压扁 */
details.sys-panel div[class$="tx"],
details.sys-panel div[class$="lh"] {
    margin: 8px 10px 8px 12px !important;
}
/* ─────────────────────────────────────────────
   3.5 可选行动按钮：data-action="append-textinput" 美化
───────────────────────────────────────────── */
details.sys-panel div[data-action="append-textinput"] {
    display: block !important;
    width: 100% !important;
    padding: 10px 16px !important;
    margin: 6px 0 !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(25, 35, 55, 0.88) 100%) !important;
    border: 1px solid rgba(100, 150, 180, 0.35) !important;
    border-left: 3px solid rgba(80, 120, 160, 0.6) !important;
    border-radius: 6px !important;
    color: #dce8f0 !important;
    font-size: 14.5px !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !important;
    line-height: 1.6 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(20, 40, 60, 0.12) !important;
    text-align: left !important;
}
details.sys-panel div[data-action="append-textinput"]:hover {
    background: linear-gradient(135deg, rgba(25, 40, 65, 0.95) 0%, rgba(35, 50, 75, 0.92) 100%) !important;
    border-color: rgba(120, 170, 200, 0.55) !important;
    border-left-color: rgba(100, 160, 200, 0.8) !important;
    color: #f0f4f8 !important;
    transform: translateX(3px) !important;
    box-shadow: 0 4px 14px rgba(30, 60, 90, 0.2), 0 0 8px rgba(100, 160, 200, 0.12) !important;
}
details.sys-panel div[data-action="append-textinput"]:active {
    transform: translateX(1px) !important;
    background: linear-gradient(135deg, rgba(20, 35, 58, 0.98) 0%, rgba(30, 45, 70, 0.95) 100%) !important;
    box-shadow: 0 1px 4px rgba(20, 40, 60, 0.15) !important;
}
/* 按钮内编号（❶❷❸❹）高亮 */
details.sys-panel div[data-action="append-textinput"]::first-line {
    color: rgba(140, 190, 220, 0.9) !important;
}
/* ─────────────────────────────────────────────
   4. 思维链基础样式：仅保留收起展开功能
───────────────────────────────────────────── */
details.think-panel {
    margin: 10px 0 !important;
}
details.think-panel > summary {
    cursor: pointer !important;
    padding: 8px 12px !important;
    background: rgba(20, 30, 50, 0.92) !important;
    color: #ede9fe !important;
    font-size: 15px !important;
    text-align: center !important;
    border-radius: 8px !important;
}
details.think-panel .think-inner {
    padding: 10px 12px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    color: #d6ccea !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
/* ─────────────────────────────────────────────
   5. 表格：角色档案/记忆回廊保持清晰，不乱黑
───────────────────────────────────────────── */
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(100, 150, 180, 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(100, 150, 180, 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;
}
/* 星记忆回廊：不额外塞b效果，只保留整体暗紫框 */
details.star-memory {
    margin: 7px 12px 10px 12px !important;
    padding: 0 !important;
    border: 1px solid rgba(100, 150, 180, 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;
}
/* ─────────────────────────────────────────────
   6. 九宫格/代码块
───────────────────────────────────────────── */
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(100, 150, 180, 0.38) !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !important;
    line-height: 1.55 !important;
}
/* ─────────────────────────────────────────────
   7. 顶部栏与顶部按钮
───────────────────────────────────────────── */
.sticky.w-full.top-0.flex.items-center {
    background:
        radial-gradient(circle at 50% 50%, rgba(120, 180, 200, 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(100, 150, 180, 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(80, 120, 160, 0.8) !important;
}
#ai-model-selector .group.flex.items-center {
    border: 1px solid rgba(100, 150, 180, 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(80, 120, 160, 0.48) !important;
}
#ai-model-selector .truncate.text-\[13px\] {
    color: rgba(60, 100, 140, 0.9) !important;
    font-weight: 700 !important;
}
/* ─────────────────────────────────────────────
   8. 底部输入栏大框：暗紫风格（与回复面板统一）
───────────────────────────────────────────── */
/* .bg-gradient-to-t 保留平台默认样式，不做覆盖（跨平台兼容） */

/* 最外层容器：data-slot=input-group */
div[data-slot="input-group"][role="group"],
#ai-chat-bottom-input {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(120, 180, 200, 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(100, 150, 180, 0.28) !important;
    border-bottom: 1px solid rgba(80, 120, 160, 0.32) !important;
    border-radius: 14px !important;
    box-shadow:
        0 -3px 20px rgba(10, 20, 40, 0.2),
        0 -1px 4px rgba(80, 120, 160, 0.08),
        0 0 30px rgba(120, 180, 200, 0.04) inset,
        0 0 1px rgba(150, 200, 220, 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(100, 150, 190, 0.48) !important;
    border-bottom-color: rgba(90, 140, 175, 0.42) !important;
    box-shadow:
        0 -4px 24px rgba(80, 120, 160, 0.15),
        0 -1px 6px rgba(80, 120, 160, 0.1),
        0 0 40px rgba(120, 180, 200, 0.06) inset,
        0 0 1px rgba(150, 200, 220, 0.15) inset !important;
}
/* 输入框文字颜色：覆盖 data-slot=input-group 内的所有输入文字 */
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(140, 180, 210, 0.85) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !important;
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important;
    transition: all 0.25s ease !important;
}
/* 输入框容器：prompt-input-body */
#prompt-input-body {
    padding: 6px 10px !important;
    background: rgba(25, 35, 58, 0.6) !important;
    border: 1px solid rgba(100, 150, 180, 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(110, 160, 195, 0.4) !important;
    box-shadow:
        0 0 0 3px rgba(120, 180, 200, 0.1),
        0 2px 14px rgba(80, 120, 160, 0.1) inset !important;
}
#prompt-input-body textarea {
    min-height: 36px !important;
    max-height: 180px !important;
    resize: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !important;
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important;
    color: #d6ccea !important;
}
/* placeholder 暗色适配 */
#prompt-input-body textarea::placeholder {
    color: rgba(130, 160, 190, 0.45) !important;
}
/* ─────────────────────────────────────────────
   8b. 顶部按钮行：暗紫风格
───────────────────────────────────────────── */
#prompt-input-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 2px 6px 2px !important;
    border-bottom: 1px solid rgba(100, 150, 180, 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(100, 150, 180, 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;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !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(110, 160, 195, 0.36) !important;
    box-shadow:
        0 2px 10px rgba(80, 120, 160, 0.15),
        0 0 0 1px rgba(150, 200, 220, 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;
}
/* ─────────────────────────────────────────────
   8c. 底部按钮行：暗紫风格
───────────────────────────────────────────── */
#prompt-input-footer {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 2px 2px 2px !important;
    border-top: 1px solid rgba(100, 150, 180, 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(100, 150, 180, 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;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !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(110, 160, 195, 0.38) !important;
    box-shadow:
        0 2px 12px rgba(80, 120, 160, 0.16),
        0 0 0 1px rgba(150, 200, 220, 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;
}
/* ─────────────────────────────────────────────
   9. 底部按钮/模组/评论等通用按钮：暗紫风格
───────────────────────────────────────────── */
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(100, 150, 180, 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;
    font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif !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(110, 160, 195, 0.38) !important;
    box-shadow:
        0 3px 14px rgba(80, 120, 160, 0.16),
        0 0 0 1px rgba(150, 200, 220, 0.12) inset,
        0 1px 3px rgba(80, 120, 160, 0.08) inset !important;
    transform: translateY(-1px) !important;
}
div[data-slot="input-group"][role="group"] button:active,
div[data-slot="input-group"][role="group"] .MuiButton-root:active,
div[data-slot="input-group"][role="group"] .MuiIconButton-root:active,
#ai-chat-bottom-input button:active,
button.MuiButton-root:active,
button.MuiIconButton-root:active {
    transform: translateY(0) !important;
    box-shadow:
        0 1px 4px rgba(20, 35, 55, 0.1),
        0 0 0 1px rgba(255,255,255,0.02) inset !important;
}
div[data-slot="input-group"][role="group"] svg,
#ai-chat-bottom-input svg,
#ai-mod-button2 svg,
button.MuiButton-root svg,
button.MuiIconButton-root svg {
    color: rgba(150, 185, 215, 0.75) !important;
    transition: all 0.22s ease !important;
}
div[data-slot="input-group"][role="group"] button:hover svg,
#ai-chat-bottom-input button:hover svg,
#ai-mod-button2 button:hover svg,
button.MuiButton-root:hover svg,
button.MuiIconButton-root:hover svg {
    color: rgba(180, 212, 240, 0.92) !important;
    transform: scale(1.05) !important;
}
/* 发送按钮：高亮强调色 */
div[data-slot="input-group"][role="group"] button:last-child,
#ai-chat-bottom-input button:last-child {
    background:
        linear-gradient(180deg, rgba(60, 90, 130, 0.82), rgba(45, 70, 105, 0.86)) !important;
    border-color: rgba(100, 150, 190, 0.45) !important;
    color: rgba(190, 220, 245, 0.92) !important;
    border-radius: 10px !important;
    box-shadow:
        0 2px 12px rgba(60, 100, 140, 0.22),
        0 0 0 1px rgba(120, 170, 210, 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(190, 220, 245, 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(70, 105, 150, 0.88), rgba(55, 85, 125, 0.9)) !important;
    border-color: rgba(80, 130, 170, 0.5) !important;
    color: rgba(160, 210, 235, 0.92) !important;
    box-shadow:
        0 4px 16px rgba(80, 120, 160, 0.18),
        0 0 16px rgba(100, 160, 200, 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(160, 210, 235, 0.92) !important;
}
/* 模型选择器底部胶囊：暗紫风格 */
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(100, 150, 180, 0.2) !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;
    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(38, 54, 85, 0.78), rgba(30, 42, 65, 0.74)) !important;
    border-color: rgba(110, 160, 195, 0.36) !important;
}
/* 右侧控制区：实时/发送等 */
div.cursor-pointer.group.flex.items-center.justify-center {
    border-radius: 10px !important;
    transition: all 0.22s ease !important;
}
/* ─────────────────────────────────────────────
   10. 评论区整体
───────────────────────────────────────────── */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background:
        radial-gradient(circle at 50% 50%, rgba(120, 180, 200, 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(100, 150, 180, 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(60, 100, 140, 0.85) !important;
    text-shadow: 0 0 5px rgba(120, 180, 200, 0.2) !important;
}
span.MuiRating-iconEmpty svg {
    color: rgba(150, 180, 200, 0.5) !important;
}
span.MuiRating-iconFilled svg {
    color: rgba(100, 150, 180, 0.8) !important;
    filter: drop-shadow(0 0 4px rgba(100, 150, 180, 0.4)) !important;
}
span.text-orange-500 {
    color: rgba(80, 120, 160, 0.8) !important;
}
textarea.rc-textarea {
    background: rgba(240, 245, 255, 0.95) !important;
    border: 1px solid rgba(100, 150, 180, 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(80, 120, 160, 0.5) !important;
    box-shadow:
        0 0 0 1px rgba(150, 200, 220, 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(80, 120, 160, 0.8) !important;
    border: 1px solid rgba(100, 150, 180, 0.15) !important;
}
div.cursor-pointer.group.flex.items-center.justify-center svg[data-icon="Send03"] {
    color: rgba(80, 120, 160, 0.75) !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover svg[data-icon="Send03"] {
    color: rgba(60, 100, 140, 0.85) !important;
}
button.MuiButton-containedPrimary {
    background: linear-gradient(135deg, rgba(120, 180, 200, 0.7), rgba(100, 150, 180, 0.7)) !important;
    color: #ffffff !important;
    border-color: rgba(80, 120, 160, 0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(80, 120, 160, 0.18) !important;
}
button.MuiButton-outlinedPrimary {
    color: rgba(60, 100, 140, 0.85) !important;
    border-color: rgba(80, 120, 160, 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(60, 100, 140, 0.85) !important;
}
div.style_divider__mW0YX {
    height: 1px !important;
    background: rgba(100, 150, 180, 0.18) !important;
    border: none !important;
}
div.group.ml-0 {
    border-bottom: 1px solid rgba(100, 150, 180, 0.11) !important;
    padding-bottom: 1rem !important;
}
div.text-sm.text-grey-600 span.font-bold {
    color: rgba(60, 100, 140, 0.85) !important;
}
span.text-\[10px\] {
    background: rgba(240, 245, 255, 0.95) !important;
    color: rgba(60, 100, 140, 0.85) !important;
    border: 1px solid rgba(100, 150, 180, 0.18) !important;
}
div.break-all {
    color: #3a2b4d !important;
}
div.text-xs.text-grey-600 {
    color: rgba(100, 130, 160, 0.7) !important;
}
button.text-gray-400,
span.cursor-pointer {
    color: rgba(80, 120, 160, 0.75) !important;
}
button.text-gray-400:hover,
span.cursor-pointer:hover {
    color: rgba(60, 100, 140, 0.85) !important;
}
div.ml-8.border-l {
    border-left-color: rgba(100, 150, 180, 0.15) !important;
}
/* ─────────────────────────────────────────────
   11. 分页/通用MUI输入
───────────────────────────────────────────── */
.MuiPaginationItem-root {
    color: rgba(80, 120, 160, 0.8) !important;
    background: rgba(240, 245, 255, 0.95) !important;
    border: 1px solid rgba(100, 150, 180, 0.22) !important;
    border-radius: 10px !important;
}
.MuiPaginationItem-root:hover {
    background: rgba(240, 245, 255, 0.95) !important;
}
.MuiPaginationItem-root.Mui-selected {
    background: rgba(120, 180, 200, 0.7) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-color: rgba(80, 120, 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(100, 150, 180, 0.2) !important;
}
/* ─────────────────────────────────────────────
   12. 滚动条
───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(240, 245, 255, 0.6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(120, 180, 200, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 180, 200, 0.6);
}
/* ─────────────────────────────────────────────
   13. 图片库基础展示增强：不改链接，只改边框效果
───────────────────────────────────────────── */
div[class$="tx"] {
    box-shadow:
        0 5px 16px rgba(30, 50, 70, 0.22),
        0 0 0 1px rgba(255,255,255,0.18) inset !important;
}
div[class$="lh"] {
    box-shadow:
        0 8px 22px rgba(30, 50, 70, 0.25),
        0 0 0 1px rgba(255,255,255,0.16) inset !important;
}
/* ─────────────────────────────────────────────
   14. 移动端微调
───────────────────────────────────────────── */
@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;
    }
}
/* ============================================ */
/* 玄牝天枢录 · 角色头像与立绘图片库独立版 */
/* 仅包含图片尺寸、边框、图片链接、移动端适配 */
/* ============================================ */

/* ─────────────────────────────────────────────
   1. 角色头像 尺寸与基础规则
───────────────────────────────────────────── */

/* ♀ 女角色头像 */
.bsstx, .qytx, .fjxtx, .txytx, .ylctx, .hxltx, .mljtx, .hqytx, .atxtx, .smetx,
.alytx, .sqstx, .lzytx, .mqytx, .cletx, .bsltx, .msytx, .qyqtx, .yhytx, .ylxtx, .zlytx,
.amntx, .qhtx, .sttx, .lwtx, .jrtx, .antx, .dytx, .pyhtx,
.yytx, .llytx, .suqytx, .aomtx, .aqtx, .lnytx, .xmltx, .hxstx, .dantx, .lwxtx, .sqhtx, .lstx, .ljjtx, .lxqtx, .cxetx, .mqqtx, .mrltx, .ylstx,
.ymxtx, .ywktx, .qynytx, .mlxtx, .blantx, .lqstx, .yxymtx, .wqlsjrtx,
.yhqhtx, .yhltx, .yxtx, .qmctx, .lzhytx, .kqztx, .kjhtx, .kdhtx, .fzxtx, .blytx,
.lsrtx, .lyrtx, .mbltx, .mftx, .swqtx, .qylhtx, .sqqtx, .syltx, .aglmytx, .ysztx, .dsmntx,
.styxtx, .tzytx, .tldtx, .ynhtx,
.txrtx, .tkltx, .ttytx, .tyxtx, .tyttx {
    width: 150px;
    height: 150px;
    margin: 8px 8px 8px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: top;
    filter: none !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    background-color: transparent !important;
    border-radius: 10px;
    border: 3px solid rgba(100, 150, 180, 0.8);
}

/* ♂ 男角色头像 */
.lyxtx, .wqqtx, .xmdtx, .altx, .lzqtx,
.hwctx, .hcltx, .fwhtx, .zjtx, .aqctx, .xyltx, .dbtx, .dgtx, .dgmmtx, .dgbztx, .dgjjjtx,
.kjxtx {
    width: 150px;
    height: 150px;
    margin: 8px 8px 8px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: top;
    filter: none !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    background-color: transparent !important;
    border-radius: 10px;
    border: 3px solid rgba(80, 120, 160, 0.8);
}

/* ─────────────────────────────────────────────
   2. 角色头像 图片链接
───────────────────────────────────────────── */

/* ♀ 女角色头像链接 */
.bsstx { background-image: url('https://i.ibb.co/JRbndwSN/3abb5d58-f1a2-4f4f-a172-ae24e04e5109.png'); }
.qytx { background-image: url('https://i.ibb.co/XfVhcT04/80c64c28-e986-4660-9331-c3ff640d9092.png'); }
.fjxtx { background-image: url('https://i.ibb.co/GfYQ5SDB/589e4ae8-4715-4003-bf5d-37669118adab.png'); }
.txytx { background-image: url('https://i.ibb.co/Q3T3s3gG/72ea9b5a-3854-4d3e-b5e2-e221a965f5a1.png'); }
.ylctx { background-image: url('https://i.ibb.co/7xTJZ9yy/2a69d220-dd7b-4609-8c55-76389b04ba2b.png'); }
.hxltx { background-image: url('https://i.ibb.co/JWhCfT6B/4feb9065-f01a-4d4e-b74e-0e1a083e14e3.png'); }
.mljtx { background-image: url('https://i.ibb.co/1tZnqVmn/3fbbdb60-deed-4095-b0e3-81fb2a5ab7c4.png'); }
.hqytx { background-image: url('https://i.ibb.co/d0rhqg48/ab92323d-ac73-4f88-8a04-10f185e5c7c6.png'); }
.atxtx { background-image: url('https://i.ibb.co/c5q7bMY/6d53d7c6-a97b-412e-a2f6-05e0781843de.png'); }
.smetx { background-image: url('https://i.ibb.co/JWy3QSL4/b7df6e3d-47be-4ce2-8457-0f59edca0550.png'); }
.alytx { background-image: url('https://i.ibb.co/YFZSmLCX/dbaced0e-99eb-40e3-9e6e-98905234ca54.png'); }
.sqstx { background-image: url('https://i.ibb.co/HfdBGSbr/bc6171b5-499e-4042-bc63-6cb76d6f5458.png'); }
.lzytx { background-image: url('https://i.ibb.co/ccH7ktpp/423dca9a-0500-4761-865a-b095b5212485.png'); }
.mqytx { background-image: url('https://i.ibb.co/ycG0c07B/25aaf39b-db97-4377-8c8c-f31bf4999290.png'); }
.cletx { background-image: url('https://i.ibb.co/9Hmth128/1b8209ca-cdad-44e0-b4f2-f343acdc3c39.png'); }
.bsltx { background-image: url('https://i.ibb.co/LXdwS7dJ/54c2d20f-9cee-4bb0-a7e7-6921d1ebed38.png'); }
.msytx { background-image: url('https://i.ibb.co/jZsZqMKF/ea613308-86d8-44a4-86d4-9e0a8a3f408f.png'); }
.qyqtx { background-image: url('https://i.ibb.co/KzKDkRms/cf04dac2-3bb9-4359-9f13-eb7732f63ce9.png'); }
.yhytx { background-image: url('https://i.ibb.co/tpp3KHPh/77dee1a0-7b47-4646-b57b-2eec6477abef.png'); }
.ylxtx { background-image: url('https://i.ibb.co/mk3G9Vy/4179a39d-f475-4d42-9123-452491a95d2f.png'); }
.zlytx { background-image: url('https://i.ibb.co/wrgyzWz5/94cae745-c47c-4067-b829-650f1e01c4ed.png'); }
.amntx { background-image: url('https://i.ibb.co/8nm4X6pf/d5718452-d811-4365-acfd-7362f64acbd6.png'); }
.qhtx { background-image: url('https://i.ibb.co/N29xrBxq/357349a1-15b0-46db-8269-95ca26dc41e0.png'); }
.sttx { background-image: url('https://i.ibb.co/zh1xmdfJ/b6afc14d-1072-4767-8362-433372692afb.png'); }
.lwtx { background-image: url('https://i.ibb.co/p64VYhPq/a5be2636-a3a5-42f4-b359-dc6fd99aa07d.png'); }
.jrtx { background-image: url('https://i.ibb.co/hFjszg17/f3dfee9c-20e2-4d3c-b893-a23fb5327aed.png'); }
.antx { background-image: url('https://i.ibb.co/zTdH8sbj/6a7054d2-96b5-46ac-9772-eafb7e2fcb9d.png'); }
.dytx { background-image: url('https://i.ibb.co/Y4VcGpv5/b056820c-c4bc-4f3c-8156-fbea17610977.png'); }
.pyhtx { background-image: url('https://i.ibb.co/G318h8bC/bc2df0a7-f313-40f5-9569-64a6f34bead2.png'); }
.yytx { background-image: url('https://i.ibb.co/JWSP0CY7/72a8d88a-a1d0-4a84-a023-5768522c4dc8.png'); }
.llytx { background-image: url('https://i.ibb.co/RGgVdqYk/1cdff105-67c9-4369-9df7-84f9f680ad70.png'); }
.suqytx { background-image: url('https://i.ibb.co/tp5Cr67n/a1ff157f-f899-45f2-ad10-a2952e007cf0.png'); }
.aomtx { background-image: url('https://i.ibb.co/DgjPY74v/3b57dd07-84e8-4b09-b548-38ab5521ef5d.png'); }
.aqtx { background-image: url('https://i.ibb.co/G431ZTLb/1e8ac366-8f98-41a7-b291-7a07b87fe001.png'); }
.lnytx { background-image: url('https://i.ibb.co/nqNFds2Y/2efccfa3-c9d4-4f40-beb6-e57dbfa21000.png'); }
.xmltx { background-image: url('https://i.ibb.co/Wv2kZSJ5/7aefee7c-bd21-414d-856c-8ee2098eb54a.png'); }
.hxstx { background-image: url('https://i.ibb.co/CpstJLYc/ffa9ab81-0626-475e-ada8-cc10aead4128.png'); }
.dantx { background-image: url('https://i.ibb.co/WLd2WVd/1ec4d9fc-12ed-4465-b86f-ef8fa2be75b2.png'); }
.lwxtx { background-image: url('https://i.ibb.co/jkcY5WXV/3e9b1eff-acdf-4940-ba2f-876ad7121d08.png'); }
.sqhtx { background-image: url('https://i.ibb.co/t1hkQ43/d83fc0c9-6990-4136-bbf8-045330f53fb5.png'); }
.lstx { background-image: url('https://i.ibb.co/RTV1dQyZ/image.png'); }
.ljjtx { background-image: url('https://i.ibb.co/CstkfcL4/image.png'); }
.lxqtx { background-image: url('https://i.ibb.co/3m6s04CN/image.png'); }
.cxetx { background-image: url('https://i.ibb.co/1tG2HSF9/d672aea7-5639-4a23-821c-e4ad2aa77883.png'); }
.mqqtx { background-image: url('https://i.ibb.co/yB8V5m8H/967f6807-564c-4da9-9ed7-27d92c4664b2.png'); }
.mrltx { background-image: url('https://i.ibb.co/h1n04VKs/a771ec38-826f-4f2d-9a47-1e094547da82.png'); }
.ylstx { background-image: url('https://i.ibb.co/4gVrS6fQ/f1bba2ce-d029-439e-a9a1-d420b2edb753.png'); }
.ymxtx { background-image: url('https://i.ibb.co/C5fqYQTp/1376995b-82b4-4905-b10a-02a44bb5ec21.png'); }
.ywktx { background-image: url('https://i.ibb.co/RGL1c19D/ffdfcfc0-7507-421d-b66c-d88810cc16c9.png'); }
.qynytx { background-image: url('https://i.ibb.co/wF0FbVNk/399e5bf8-fcb0-4963-8345-19b4552e0e75.png'); }
.mlxtx { background-image: url('https://i.ibb.co/G4zjVrys/ab5b7126-9029-4115-90b3-a07f4320f948.png'); }
.blantx { background-image: url('https://i.ibb.co/XZkJPcjg/796561fa-71ee-4099-8853-56d0827b12c9.png'); }
.lqstx { background-image: url('https://i.ibb.co/N6txzn6V/57a185a2-c0b4-48fc-bf62-eb64c27bc82d.png'); }
.yxymtx { background-image: url('https://i.ibb.co/DfvVJhDT/QQ-1780547725477.png'); }
.wqlsjrtx { background-image: url('https://i.ibb.co/gbXwNGVD/QQ-1780548187107.png'); }
.yhqhtx { background-image: url('https://i.ibb.co/kg0GZ6JD/cd551bf3-efcf-4310-b3ae-6d8c60d8cb62.png'); }
.yhltx { background-image: url('https://i.ibb.co/BVbr8Lfq/42421a7a-a05e-4a4b-af0e-ed152fe75948.png'); }
.yxtx { background-image: url('https://i.ibb.co/hRX9WCzW/image.png'); }
.qmctx { background-image: url('https://i.ibb.co/Fqn1jDxm/de60eed8-c8e8-4fe0-8ad4-3e08618b44b7.png'); }
.lzhytx { background-image: url('https://i.ibb.co/1tYBLBFH/429e52dc-5395-49d0-ba05-05ecfb88c7ca.png'); }
.kqztx { background-image: url('https://i.ibb.co/MxkW3C9b/image.png'); }
.kjhtx { background-image: url('https://i.ibb.co/sd7NtzJh/image.png'); }
.kdhtx { background-image: url('https://i.ibb.co/QF2dTPfz/36902876-f8bb-415e-aff0-79d3534c1424.png'); }
.fzxtx { background-image: url('https://i.ibb.co/Q3gyXzGb/image.png'); }
.blytx { background-image: url('https://i.ibb.co/VWNy84SV/image.png'); }
.lsrtx { background-image: url('https://i.ibb.co/7xg2Ys8C/f4ceb52d-3689-4a1a-b5d3-7424f950dfaf.png'); }
.lyrtx { background-image: url('https://i.ibb.co/HfyJK2pT/3905c15d-e5c8-4a65-a0ce-1f5a7d4bbd9c.png'); }
.mbltx { background-image: url('https://i.ibb.co/Q4sjxLf/QQ-1780881184328.png'); }
.mftx { background-image: url('https://i.ibb.co/b5hNnK2L/c02bdb2e-7aeb-448f-b47c-e1a6bac7d278.png'); }
.swqtx { background-image: url('https://i.ibb.co/gQcLcDv/d54cdfe8-ca18-432a-a720-0f06fa4d58dc.png'); }
.qylhtx { background-image: url('https://i.ibb.co/j9BJyrg9/c38f803d-2f4f-4c9b-a92b-14599d4bbb00.png'); }
.sqqtx { background-image: url('https://i.ibb.co/ycD9P7fs/f5913b30-15a5-47df-b2d5-09aed59eef85.png'); }
.syltx { background-image: url('https://i.ibb.co/vCFnBkBM/8eda6fca-337e-4586-9e56-840dbd211204.png'); }
.aglmytx { background-image: url('https://i.ibb.co/n8r3RGQK/7fd65209-fd11-4d70-9888-aabed6a57040.png'); }
.ysztx { background-image: url('https://i.ibb.co/4wQVzm4y/9f04c7d6-9154-463e-925d-96b3b21f072f.png'); }
.dsmntx { background-image: url('https://i.ibb.co/6JH97H5f/image.png'); }
.txrtx { background-image: url('https://i.ibb.co/M5fZ7B75/image.png'); }
.tkltx { background-image: url('https://i.ibb.co/VYBMYj1x/image.png'); }
.ttytx { background-image: url('https://i.ibb.co/T3jc0Tr/image.png'); }
.tyxtx { background-image: url('https://i.ibb.co/cqNk3Dg/image.png'); }
.tyttx { background-image: url('https://i.ibb.co/FjLrLP5/image.png'); }

/* ♂ 男角色头像链接 */
.lyxtx { background-image: url('https://i.ibb.co/B9H7V7T/590a3b4d-7e84-497b-a79b-879d3ef1cfed.png'); }
.wqqtx { background-image: url('https://i.ibb.co/9HHs5dWt/1fcd755d-a1e6-45c0-a8c9-ca9578808e0e.png'); }
.xmdtx { background-image: url('https://i.ibb.co/Jjrfdk8V/be73ceef-0683-4475-b39e-521f0552c0db.png'); }
.altx { background-image: url('https://i.ibb.co/4nt615K2/596363d4-ce2b-41b2-b86d-06db87161666.png'); }
.lzqtx { background-image: url('https://i.ibb.co/V0X0KjVt/e6105eca-c523-4e48-9c0e-a195175c31f3.png'); }
.hwctx { background-image: url('https://i.ibb.co/Rq4Bg99/image.png'); }
.hcltx { background-image: url('https://i.ibb.co/v6cs8qv7/image.png'); }
.fwhtx { background-image: url('https://i.ibb.co/PGCzQV0m/image.png'); }
.zjtx { background-image: url('https://i.ibb.co/TBVCC8mN/image.png'); }
.aqctx { background-image: url('https://i.ibb.co/C5sN5WFr/image.png'); }
.xyltx { background-image: url('https://i.ibb.co/FkvXMh51/2d02edd8-d3af-49dd-b3e7-d49aff0b35e4.png'); }
.dbtx { background-image: url('https://i.ibb.co/4RN3yws1/image.png'); }
.dgtx { background-image: url('https://i.ibb.co/s99hJdHj/fcecbf74-b8d3-493f-8edf-5ac069d875c8.png'); }
.dgmmtx { background-image: url('https://i.ibb.co/mL6n32p/53d21514-af60-4dee-8b0a-d6635698d017.png'); }
.dgbztx { background-image: url('https://i.ibb.co/cpMX2dZ/55bcc624-ea42-4a22-b683-0ad8d608967b.png'); }
.dgjjjtx { background-image: url('https://i.ibb.co/fzXnwnwB/c4b88a90-f214-4fbf-b878-9b3c7a4a5bb0.png'); }
.styxtx { background-image: url('https://i.ibb.co/jkjHm9Jd/e660e6d8-d8ad-486a-8b00-7a2dcb2ceb7b.png'); }
.tzytx { background-image: url('https://i.ibb.co/gMShQzHm/69495f11-02eb-4325-9d21-d194c03884f1.png'); }
.tldtx { background-image: url('https://i.ibb.co/nNFZjC8B/f2a86809-d863-4ee9-b850-ea7ed2ab0d7b.png'); }
.ynhtx { background-image: url('https://i.ibb.co/G43LZg8q/fbdbb9d6-f85d-41ad-9dc1-2f5c068d1c47.png'); }
.kjxtx { background-image: url('https://i.ibb.co/jPbxVSxZ/91ccb0b1-6f15-4860-b755-45ee726265a3.png'); }

/* ─────────────────────────────────────────────
   3. 角色立绘 尺寸与基础规则
───────────────────────────────────────────── */

/* ♀ 女角色立绘 */
.bsslh, .qylh, .fjxlh, .smelh, .atxlh, .ylclh, .hqylh, .txylh, .hxllh, .mljlh,
.alylh, .sqslh, .lzylh, .mqylh, .clelh, .bsllh, .msylh, .qyqlh, .yhylh, .ylxlh, .zlylh,
.amnlh, .qhlh, .stlh, .lwlh, .jrlh, .anlh, .dylh, .pyhlh,
.yylh, .llylh, .suqylh, .aomlh, .aqlh, .lnylh, .xmllh, .hxslh, .danlh, .lwxlh, .sqhlh, .lslh, .ljjlh, .lxqlh, .cxelh, .mqqlh, .mrllh, .ylslh,
.ymxlh, .ywklh, .qynylh, .mlxlh, .blanlh, .lqslh, .yxymlh, .wqlsjrlh,
.yhqhlh, .yhllh, .yxlh, .qmclh, .lzhylh, .kqzlh, .kjhlh, .kdhlh, .fzxlh, .blylh,
.lsrlh, .lyrlh, .mbllh, .mflh, .swqlh, .qylhlh, .sqqlh, .syllh, .aglmylh, .yszlh, .dsmnlh,
.stylh, .tzylh, .tldlh, .ynhlh,
.txrlh, .tkllh, .ttylh, .tyxlh, .tytlh {
    width: 160px;
    height: 380px;
    margin: 8px 8px 8px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: top;
    filter: none !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    background-color: transparent !important;
    border-radius: 12px;
    border: 2px solid rgba(120, 180, 200, 0.7);
}

/* ♂ 男角色立绘 */
.lyxlh, .wqqlh, .xmdlh, .allh, .lzqlh, .hwclh, .hcllh, .fwhlh, .zjlh, .aqclh, .xylh, .dblh, .kjxlh,
.dglh, .dgmmlh, .dgjbzlh, .dgjjjlh {
    width: 160px;
    height: 340px;
    margin: 8px 8px 8px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: top;
    filter: none !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    background-color: transparent !important;
    border-radius: 12px;
    border: 2px solid rgba(80, 120, 160, 0.7);
}

/* ─────────────────────────────────────────────
   4. 角色立绘 图片链接
───────────────────────────────────────────── */

/* ♀ 女角色立绘链接 */
.bsslh { background-image: url('https://i.ibb.co/6JfrY1j8/c948b4f5-7143-4e0b-b259-e95edb939b36.jpg'); }
.qylh { background-image: url('https://i.ibb.co/nMR30YK3/7a73cd38-f8db-426a-b22c-13e0c8de45cd.jpg'); }
.fjxlh { background-image: url('https://i.ibb.co/5hPR61yN/74ac726c-3f42-4c9c-ac08-9b0e7a038486.jpg'); }
.smelh { background-image: url('https://i.ibb.co/Pv27wtw5/57077577-8e8c-4277-836d-a245a3783d9c.jpg'); }
.atxlh { background-image: url('https://i.ibb.co/8gKjFLR9/d6079166-d9a3-400c-ba10-160943171fed.jpg'); }
.ylclh { background-image: url('https://i.ibb.co/RGNScQf0/e3d434c9-7229-4427-9ffd-7076d2ced869.jpg'); }
.hqylh { background-image: url('https://i.ibb.co/mVLpMGNg/12d2ab86-ee41-40ba-8d6b-3520e17e2b9a.jpg'); }
.txylh { background-image: url('https://i.ibb.co/qFYWwbYr/d57f7c99-1d4e-4803-b5ec-9e73fa04dba0.jpg'); }
.hxllh { background-image: url('https://i.ibb.co/jZw1WCFW/fa7836fd-d83d-4450-8d79-61bb337a0f94.jpg'); }
.mljlh { background-image: url('https://i.ibb.co/nqxqMQX3/31a2be6a-61e7-4b4f-85d6-9cdd72f62867.jpg'); }
.alylh { background-image: url('https://i.ibb.co/NnNBRrt8/2458ef68-6e5d-4345-a185-3a1fb3b7d4df.png'); }
.sqslh { background-image: url('https://i.ibb.co/qYND57B0/93116843-8712-4173-9cd5-81f7ef0bb5c8.png'); }
.lzylh { background-image: url('https://i.ibb.co/8nrKFCf7/6f54a9a2-7b1b-4cc7-ab9c-0e76ca23d27a.png'); }
.mqylh { background-image: url('https://i.ibb.co/fz8g22ry/0ef52291-5d1a-408f-8e17-8cead85522bf.png'); }
.clelh { background-image: url('https://i.ibb.co/r2fhXQNz/8d698cf5-588b-44f0-8bfa-3cf45f32a262.png'); }
.bsllh { background-image: url('https://i.ibb.co/twZ1ZWJk/b0d9b9dd-6707-47b7-ab57-5c767bd3c496.png'); }
.msylh { background-image: url('https://i.ibb.co/GvQFMBZR/f1598e79-7915-41b1-995a-76004dac3956.png'); }
.qyqlh { background-image: url('https://i.ibb.co/hF9YgpcW/cf1f99e5-7ee6-4cde-8bc3-46515668151c.png'); }
.yhylh { background-image: url('https://i.ibb.co/TBGKYjCp/24433e6f-77fe-47f5-be55-6e81d71cc2b7.png'); }
.ylxlh { background-image: url('https://i.ibb.co/HfMsQMGF/9afbca94-0c28-410f-b160-d922e7150fcc.png'); }
.zlylh { background-image: url('https://i.ibb.co/jZyDLBQn/fbffe3e8-5f2b-4bc8-92f6-07494c53c83c.png'); }
.amnlh { background-image: url('https://i.ibb.co/Hw1YTQm/e10f369a-28f7-46a6-99c9-792982678acd.png'); }
.qhlh { background-image: url('https://i.ibb.co/tP1Qt4LT/33849af3-f604-4f36-a01c-5a254afe5f0e.png'); }
.stlh { background-image: url('https://i.ibb.co/Gv6Dmg5P/64a40c45-f1c0-4acd-9897-90afb88d0d34.png'); }
.lwlh { background-image: url('https://i.ibb.co/Fb3nm8Yt/b495dff3-724e-4bd1-bd0a-3e2ddbd8c16f.png'); }
.jrlh { background-image: url('https://i.ibb.co/h1Z82db5/fcb8554f-a348-4eec-96f5-57bc0b84b6fe.png'); }
.anlh { background-image: url('https://i.ibb.co/27GjFMxQ/d3f44754-2078-43cd-94b2-3bca7d006727.png'); }
.dylh { background-image: url('https://i.ibb.co/6Jw45KmW/ce9ae310-2af9-464d-98a4-534ee7728d60.png'); }
.pyhlh { background-image: url('https://i.ibb.co/rGW4GGZR/bb730393-e66d-4d49-96e0-daa1b5f8e470.png'); }
.yylh { background-image: url('https://i.ibb.co/JRYnbbLB/42fa33be-6d03-46e1-86d1-913a1a26c9ce.png'); }
.llylh { background-image: url('https://i.ibb.co/1wfK1q7/7dce00cf-5b2d-4ec2-939a-b8f5d273d1e0.png'); }
.suqylh { background-image: url('https://i.ibb.co/ycS1mxPF/2d363269-1784-427d-a1c8-6f6fe59a6e72.png'); }
.aomlh { background-image: url('https://i.ibb.co/jkyHR0pJ/d4ade099-ba21-4cad-a43e-1d0fd5da9406.png'); }
.aqlh { background-image: url('https://i.ibb.co/k6WCQs6F/2a186dd7-1a47-4c2b-8602-fb8fad77c8cb.png'); }
.lnylh { background-image: url('https://i.ibb.co/hxfFWsH0/b55453fd-ef32-4654-b401-7baf27273462.png'); }
.xmllh { background-image: url('https://i.ibb.co/4wd3Qxky/3d38627b-fac0-4796-aae6-a5098b3a3d17.png'); }
.hxslh { background-image: url('https://i.ibb.co/2YY2tp8Z/e4227f8b-534c-4cc9-b883-bd92f66abc9a.png'); }
.danlh { background-image: url('https://i.ibb.co/hxMfzJsb/af1edb88-1b9a-4611-9f84-a49423051c80.png'); }
.lwxlh { background-image: url('https://i.ibb.co/hRZGpcVb/51ee78e1-6be9-4599-893f-e7abd60e510b.png'); }
.sqhlh { background-image: url('https://i.ibb.co/wFH4JNbW/9cbb3b4c-61e6-4374-ae9c-d2abec0cc1a5.png'); }
.lslh { background-image: url('https://i.ibb.co/Z648TBLh/00200-4136467999.png'); }
.ljjlh { background-image: url('https://i.ibb.co/V6jd9tP/00180-700674746.png'); }
.lxqlh { background-image: url('https://i.ibb.co/rK47Mfzy/00217-3455255619.png'); }
.cxelh { background-image: url('https://i.ibb.co/d0ySbVvv/35870041-fbcf-4897-92e5-5d9e8946cbef.png'); }
.mqqlh { background-image: url('https://i.ibb.co/zVM6YF0j/d5525a54-1e0e-4ec2-b976-73fdccd2924a.png'); }
.mrllh { background-image: url('https://i.ibb.co/LdwfsQFX/c0ced6b4-a9e5-4378-be19-963e1c65abfe.png'); }
.ylslh { background-image: url('https://i.ibb.co/j9Xz87DY/d43fcf9d-3bd6-4197-9a0e-d5726fd51511.png'); }
.ymxlh { background-image: url('https://i.ibb.co/7dJJS7rs/7ed64521-fb5e-48f4-bdeb-1fa595672aef.png'); }
.ywklh { background-image: url('https://i.ibb.co/WWvWmkLF/72019249-1b75-45fd-904d-ce82b5b3d39c.png'); }
.qynylh { background-image: url('https://i.ibb.co/Ps6YH44B/6d827c03-6dda-4b72-b8bc-080b3ede74c5.png'); }
.mlxlh { background-image: url('https://i.ibb.co/9HtNTYJL/c3d2117e-9b96-40c6-b509-d80235be616f.png'); }
.blanlh { background-image: url('https://i.ibb.co/ycKrJXw0/5240747f-b91f-434d-a0a6-88cc603a6ac5.png'); }
.lqslh { background-image: url('https://i.ibb.co/XxQy4gQ7/4d68b6e0-c2e7-4f64-8c9c-028f0f8c9b08.png'); }
.yxymlh { background-image: url('https://i.ibb.co/5gLHZhMW/00071-1570414149.png'); }
.wqlsjrlh { background-image: url('https://i.ibb.co/chfQqnsq/00061-3556971102.png'); }
.yhqhlh { background-image: url('https://i.ibb.co/HLS60k2X/8ab13835-0bee-43f6-9c88-9320e56efe27.png'); }
.yhllh { background-image: url('https://i.ibb.co/PGFXRRtq/6d972e54-6dee-4e31-bf29-d220207d64ce.png'); }
.yxlh { background-image: url('https://i.ibb.co/My9JsjG2/00070-3793954465.png'); }
.qmclh { background-image: url('https://i.ibb.co/S7KwnSxt/9c8a50cb-3100-4355-a3de-a505fcfbc3ea.png'); }
.lzhylh { background-image: url('https://i.ibb.co/35h8vzV5/947553b4-a66f-4594-9f69-13fd2e7ce509.png'); }
.kqzlh { background-image: url('https://i.ibb.co/qFmsSPB6/00043-1494987739.png'); }
.kjhlh { background-image: url('https://i.ibb.co/NndC14M1/00020-1494987739.png'); }
.kdhlh { background-image: url('https://i.ibb.co/PzgthwWx/71e66b96-d5de-4215-a525-9adeb2518f3d.jpg'); }
.fzxlh { background-image: url('https://i.ibb.co/x8w1JTrk/02040-1415048132.png'); }
.blylh { background-image: url('https://i.ibb.co/SDdbgDHz/02081-3197216677.png'); }
.lsrlh { background-image: url('https://i.ibb.co/pv99k13H/064ece79-3a1c-4dc2-a2e3-ff443c6e1e26.png'); }
.lyrlh { background-image: url('https://i.ibb.co/dS6mNJw/c3f102b8-6ee5-45cc-8ee4-267b1094c194.png'); }
.mbllh { background-image: url('https://i.ibb.co/tRCchm6/00064-1147366022.png'); }
.mflh { background-image: url('https://i.ibb.co/KcFbKycG/f2054402-d998-42a1-abda-bcddde85dd07.png'); }
.swqlh { background-image: url('https://i.ibb.co/Wv344xQp/42f6e5f6-aa90-4f3b-aa61-240902d0f1e4.jpg'); }
.qylhlh { background-image: url('https://i.ibb.co/zcKzCxw/072190d5-c2a2-4bce-8537-f0bdd8d9acf9.png'); }
.sqqlh { background-image: url('https://i.ibb.co/XrCz7xsX/1e59d8a3-61aa-4620-b5c7-4657053faebe.png'); }
.syllh { background-image: url('https://i.ibb.co/prsz4zfz/343eac26-bbce-4fe2-aaa6-999adf75d512.png'); }
.aglmylh { background-image: url('https://i.ibb.co/fdsNmQWv/1dbcec59-2f9f-4f8a-bb9e-278b20ebce4d.png'); }
.yszlh { background-image: url('https://i.ibb.co/DfW3xRMx/00080-168569970.png'); }
.dsmnlh { background-image: url('https://i.ibb.co/Y48tmFJp/00014-3428187900.png'); }
.stylh { background-image: url('https://i.ibb.co/9k3wvpBx/ec80290c-5992-4517-91f4-958e5d93d17b.png'); }
.tzylh { background-image: url('https://i.ibb.co/0VGwHZW9/20933747-a9ab-4a5a-96f2-b03ad47fe4e8.png'); }
.tldlh { background-image: url('https://i.ibb.co/93kSk22J/ccee6e45-103b-4f10-8c4a-2a5ab4ed1fbb.png'); }
.ynhlh { background-image: url('https://i.ibb.co/xqkSdc6v/d7c6548a-5e63-4a60-b5a1-3dacd46766fb.png'); }
.txrlh { background-image: url('https://i.ibb.co/sp5s394P/Comfy-UI-00368.png'); }
.tkllh { background-image: url('https://i.ibb.co/BVBSkKwP/Comfy-UI-00410.png'); }
.ttylh { background-image: url('https://i.ibb.co/Pv8tWsZc/Comfy-UI-00403.png'); }
.tyxlh { background-image: url('https://i.ibb.co/Z664mj1M/Comfy-UI-00393.png'); }
.tytlh { background-image: url('https://i.ibb.co/WWq0sPb2/Comfy-UI-00381.png'); }

/* ♂ 男角色立绘链接 */
.lyxlh { background-image: url('https://i.ibb.co/WmrPqnd/18f608cb-d52e-4664-b4fa-da734698e682.png'); }
.wqqlh { background-image: url('https://i.ibb.co/M5pSkKKt/3806046e-aff7-476d-86fd-b8c0db608921.png'); }
.xmdlh { background-image: url('https://i.ibb.co/HTTdRVTQ/a6870399-6c26-4063-a9bc-2abeb33b3ad4.png'); }
.allh { background-image: url('https://i.ibb.co/4ZTyPHSB/da6136aa-d7bf-4b41-bfd6-cafbfb99a978.png'); }
.lzqlh { background-image: url('https://i.ibb.co/WNFxBpgW/2828a67f-0dfd-4d4d-bf2c-e113c0135cf5.png'); }
.hwclh { background-image: url('https://i.ibb.co/sdp0yDBm/00071-4137780464.png'); }
.hcllh { background-image: url('https://i.ibb.co/LXttGTsP/00108-4130958767.png'); }
.fwhlh { background-image: url('https://i.ibb.co/ccRKMgvt/00019-1794076380.png'); }
.zjlh { background-image: url('https://i.ibb.co/Mk1ncyZS/00118-866595120.png'); }
.aqclh { background-image: url('https://i.ibb.co/JRbQbtbf/00104-254775883.png'); }
.xylh { background-image: url('https://i.ibb.co/JjLGx71w/50116683-80d5-424c-a805-738702096f54.png'); }
.dblh { background-image: url('https://cg-img.pornai.fun/account/40c590c3-5f4c-4ef0-8d1d-fbf871cbd0a2.jpg'); }
.kjxlh { background-image: url('https://i.ibb.co/Rk4M8jDS/85d0eb27-4e05-4aec-b638-a423fab20c38.png'); }
.dglh { background-image: url('https://i.ibb.co/s99hJdHj/fcecbf74-b8d3-493f-8edf-5ac069d875c8.png'); }
.dgmmlh { background-image: url('https://i.ibb.co/mL6n32p/53d21514-af60-4dee-8b0a-d6635698d017.png'); }
.dgjbzlh { background-image: url('https://i.ibb.co/cpMX2dZ/55bcc624-ea42-4a22-b683-0ad8d608967b.png'); }
.dgjjjlh { background-image: url('https://i.ibb.co/fzXnwnwB/c4b88a90-f214-4fbf-b878-9b3c7a4a5bb0.png'); }

/* ─────────────────────────────────────────────
   5. 移动端尺寸适配
───────────────────────────────────────────── */

@media (max-width: 768px) {
    .bsstx, .qytx, .fjxtx, .txytx, .ylctx, .hxltx, .mljtx, .hqytx, .atxtx, .smetx,
    .alytx, .sqstx, .lzytx, .mqytx, .cletx, .bsltx, .msytx, .qyqtx, .yhytx, .ylxtx, .zlytx,
    .amntx, .qhtx, .sttx, .lwtx, .jrtx, .antx, .dytx, .pyhtx,
    .yytx, .llytx, .suqytx, .aomtx, .aqtx, .lnytx, .xmltx, .hxstx, .dantx, .lwxtx, .sqhtx, .lstx, .ljjtx, .lxqtx, .cxetx, .mqqtx, .mrltx, .ylstx, .lyxtx, .wqqtx, .xmdtx, .altx, .lzqtx,
    .ymxtx, .ywktx, .qynytx, .mlxtx, .blantx, .lqstx, .hwctx, .hcltx, .fwhtx, .zjtx, .aqctx,
    .yhqhtx, .yhltx, .yxtx, .qmctx, .lzhytx, .kqztx, .kjhtx, .kdhtx, .fzxtx, .blytx,
    .lsrtx, .lyrtx, .mbltx, .mftx, .swqtx, .qylhtx, .sqqtx, .syltx, .aglmytx, .xylh, .yszlh, .dsmnlh, .dblh, .dgtx, .dgmmtx, .dgbztx, .dgjjjtx,
    .styxtx, .tzytx, .tldtx, .ynhtx, .kjxtx,
    .txrtx, .tkltx, .ttytx, .tyxtx, .tyttx {
        width: 120px;
        height: 120px;
    }

    .bsslh, .qylh, .fjxlh, .smelh, .atxlh, .ylclh, .hqylh, .txylh, .hxllh, .mljlh,
    .alylh, .sqslh, .lzylh, .mqylh, .clelh, .bsllh, .msylh, .qyqlh, .yhylh, .ylxlh, .zlylh,
    .amnlh, .qhlh, .stlh, .lwlh, .jrlh, .anlh, .dylh, .pyhlh,
    .yylh, .llylh, .suqylh, .aomlh, .aqlh, .lnylh, .xmllh, .hxslh, .danlh, .lwxlh, .sqhlh, .lslh, .ljjlh, .lxqlh, .cxelh, .mqqlh, .mrllh, .ylslh, .lyxlh, .wqqlh, .xmdlh, .allh, .lzqlh,
    .ymxlh, .ywklh, .qynylh, .mlxlh, .blanlh, .lqslh, .yxymlh, .wqlsjrlh, .hwclh, .hcllh, .fwhlh, .zjlh, .aqclh,
    .yhqhlh, .yhllh, .yxlh, .qmclh, .lzhylh, .kqzlh, .kjhlh, .kdhlh, .fzxlh, .blylh,
    .lsrlh, .lyrlh, .mbllh, .mflh, .swqlh, .qylhlh, .sqqlh, .syllh, .aglmylh, .xylh, .yszlh, .dsmnlh, .dblh,
    .stylh, .tzylh, .tldlh, .ynhlh, .kjxlh,
    .txrlh, .tkllh, .ttylh, .tyxlh, .tytlh,
.dglh, .dgmmlh, .dgjbzlh, .dgjjjlh {
        width: 140px;
        height: 300px;
    }
}
/* ============================================ */
/* 思维链折叠面板 · 独立美化版 */
/* 只作用于 <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(100, 150, 180, 0.5) !important;
    background:
        radial-gradient(circle at top left, rgba(120, 180, 200, 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(120, 180, 200, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(150, 200, 220, 0.12) inset,
        0 0 18px rgba(100, 150, 180, 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(80, 120, 160, 0.94), rgba(40, 60, 80, 0.98)) !important;
    border-bottom: 1px solid rgba(120, 180, 200, 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(150, 200, 220, 0.8) !important;
    font-size: 13px !important;
    text-shadow: 0 0 8px rgba(150, 200, 220, 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(120, 180, 200, 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(150, 200, 220, 0.4),
        0 0 12px rgba(100, 150, 180, 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(150, 200, 220, 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(120, 180, 200, 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(150, 200, 220, 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(60, 100, 140, 0.35) !important;
    color: #d8e8f0 !important;
    border: 1px solid rgba(120, 180, 200, 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(120, 180, 200, 0.8) !important;
    border-radius: 6px !important;
    background:
        linear-gradient(90deg, rgba(100, 150, 180, 0.18), rgba(100, 150, 180, 0.04)) !important;
}
details.think-panel blockquote {
    margin: 8px 0 !important;
    padding: 7px 9px !important;
    border-left: 3px solid rgba(100, 150, 180, 0.6) !important;
    border-radius: 7px !important;
    background: rgba(60, 100, 140, 0.18) !important;
    color: #d8e8f0 !important;
}
details.think-panel:hover {
    border-color: rgba(150, 200, 220, 0.7) !important;
}
@media (max-width: 768px) {
    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;
    }
}
/* ============================================ */
/* 思维链 <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(120, 180, 200, 0.3) !important;
    background:
        radial-gradient(circle at top right, rgba(120, 180, 200, 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(120, 180, 200, 0.2) !important;
    background:
        linear-gradient(90deg, rgba(60, 100, 140, 0.7), rgba(100, 150, 180, 0.5), rgba(60, 100, 140, 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(150, 200, 220, 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(150, 200, 220, 0.6) !important;
    background:
        radial-gradient(circle at top right, rgba(150, 200, 220, 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(150, 200, 220, 0.08) inset,
        0 0 14px rgba(100, 150, 180, 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(120, 180, 200, 0.25) !important;
    background: rgba(60, 100, 140, 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(150, 200, 220, 0.4),
        0 0 12px rgba(100, 150, 180, 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(120, 180, 200, 0.8) !important;
    font-weight: 900 !important;
    text-shadow: 0 0 5px rgba(120, 180, 200, 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(120, 180, 200, 0.2) !important;
    background: rgba(60, 100, 140, 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(150, 200, 220, 0.3) !important;
}
details.think-panel .think-inner q:nth-of-type(1) {
    border-left: 3px solid rgba(120, 180, 200, 0.8) !important;
}
details.think-panel .think-inner q:nth-of-type(2) {
    border-left: 3px solid rgba(100, 150, 180, 0.7) !important;
}
details.think-panel .think-inner q:nth-of-type(3) {
    border-left: 3px solid rgba(80, 120, 160, 0.8) !important;
}
details.think-panel .think-inner q:nth-of-type(4) {
    border-left: 3px solid rgba(150, 200, 220, 0.6) !important;
}
details.think-panel .think-inner q:nth-of-type(5) {
    border-left: 3px solid rgba(130, 190, 210, 0.7) !important;
}
details.think-panel .think-inner q:nth-of-type(6) {
    border-left: 3px solid rgba(110, 170, 190, 0.8) !important;
}
details.think-panel .think-inner q:nth-of-type(7) {
    border-left: 3px solid rgba(140, 195, 215, 0.6) !important;
}
@media (max-width: 768px) {
    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;
    }
}

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

/* ─────────────────────────────────────────────
   音频播放器：缩小 + 暗紫圆角风格
───────────────────────────────────────────── */
.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(28, 40, 65, 0.72), rgba(22, 32, 52, 0.68)) !important;
    border: 1px solid rgba(100, 150, 180, 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(170, 205, 235, 0.82) !important;
    line-height: 1.4 !important;
}
/* 播放器文字：caption（歌手） */
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiTypography-root.MuiTypography-caption {
    font-size: 10px !important;
    color: rgba(130, 165, 195, 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, 60, 95, 0.6), rgba(30, 48, 75, 0.55)) !important;
    border: 1px solid rgba(100, 150, 180, 0.25) !important;
    color: rgba(160, 200, 230, 0.82) !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiIconButton-root.MuiIconButton-sizeSmall:hover {
    background:
        linear-gradient(180deg, rgba(50, 75, 115, 0.72), rgba(40, 62, 95, 0.66)) !important;
    border-color: rgba(120, 165, 200, 0.4) !important;
    color: rgba(185, 220, 248, 0.92) !important;
}
.MuiBox-root:has(> .MuiTypography-root.MuiTypography-body2)
    .MuiIconButton-root svg {
    font-size: 13px !important;
}

/* ─────────────────────────────────────────────
   自定义回答工具栏：日期+操作按钮统一美化
───────────────────────────────────────────── */
/* 工具栏容器：MuiStack */
.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(100, 150, 180, 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(110, 160, 195, 0.38) !important;
    box-shadow:
        0 2px 8px rgba(80, 120, 160, 0.15),
        0 0 0 1px rgba(150, 200, 220, 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;
}

/* ─────────────────────────────────────────────
   跨平台兼容：另一平台 AI 回复区统一暗紫风格
───────────────────────────────────────────── */
/* AI 回复卡片容器 */
.group.is-assistant > .is-dark.bg-card,
div[class*="is-assistant"][class*="bg-card"] {
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 180, 200, 0.07), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(120, 180, 200, 0.07), transparent 40%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98)) !important;
    border: 1px solid rgba(100, 150, 180, 0.38) !important;
    border-left: 3px solid rgba(80, 120, 160, 0.55) !important;
    border-right: 3px solid rgba(80, 120, 160, 0.55) !important;
    color: #ece7f8 !important;
    border-radius: 11px !important;
    box-shadow:
        0 0 0 1px rgba(150, 200, 220, 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 回复标题：h1/h2/h3 */
.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(100, 150, 180, 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(150, 200, 220, 0.28) !important;
}

/* ─────────────────────────────────────────────
   宽度扩展：让聊天区域铺满屏幕
───────────────────────────────────────────── */
/* 关键：max-w-2xl 是 Tailwind 的 max-width:672px 限制器 → 仅桌面端改为 ~920px，手机端保持原样 */
@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;
}

/* ============================================ */
/* 春水平台（BrainDance）适配美化层 */
/* 基于《春水平台美化.txt》v2026-05-24 */
/* 使用稳定 hook 类 + CSS 变量，暗紫精修风格 */
/* 平台会自动把 :root 变量与全局选择器作用域到 .bd-content-area */
/* ============================================ */

/* ─── CS1. 设计令牌（自动作用域到 .bd-content-area）─── */
:root {
    --xuan-bg: #0a0a1f;
    --xuan-card: #0f1419;
    --xuan-fg: #ece7f8;
    --xuan-accent: #78b4c8;
    --xuan-accent-2: rgba(120, 180, 200, 0.55);
    --xuan-border: rgba(100, 150, 180, 0.4);
    --xuan-border-soft: rgba(100, 150, 180, 0.22);
    --xuan-quote: #fffbb0;
    --xuan-quote-user: #b0d4ff;
    --xuan-muted: #9ca3af;
    --xuan-user-bg: rgba(45, 35, 60, 0.85);
    --xuan-user-border: #9d7fd4;
    --xuan-font: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif;
}

/* ─── CS2. 内容区背景：暗紫渐变底 ─── */
.bd-content-area {
    background:
        radial-gradient(ellipse at top, rgba(26, 31, 46, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 85% 90%, rgba(45, 35, 60, 0.5), transparent 45%),
        var(--xuan-bg);
    color: var(--xuan-fg);
}

/* ─── CS3. AI 消息气泡：暗紫精修风格 ─── */
/* 注意：background-color 必须显式声明在 background 简写之后，
   否则计算值为 transparent，对比度守卫会误判为浅色背景 → 文字被改成黑色 */
.bd-ai-msg {
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 180, 200, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(120, 180, 200, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98));
    background-color: #0f1419;
    color: #ece7f8 !important;
    border: 1px solid var(--xuan-border);
    border-left: 3px solid rgba(80, 120, 160, 0.6);
    border-right: 3px solid rgba(80, 120, 160, 0.6);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--xuan-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.4px;
    box-shadow:
        0 0 0 1px rgba(150, 200, 220, 0.06) inset,
        0 8px 22px rgba(20, 40, 60, 0.15);
}
/* .bd-content 是 .bd-ai-msg 内的 markdown 渲染容器，
   继承 .bd-ai-msg 的暗色 background-color，防止对比度守卫将 transparent 误判为浅色背景 */
.bd-ai-msg .bd-content {
    background-image: none !important;
    background-color: inherit !important;
    color: inherit !important;
}

/* AI 气泡内 markdown 元素：所有文本元素继承暗色背景，防止守卫改黑文字 */
.bd-ai-msg p {
    margin: 0 0 0.9em 0;
    background-color: inherit;
    color: #ece7f8;
    white-space: pre-line;
}
.bd-ai-msg h1,
.bd-ai-msg h2,
.bd-ai-msg h3,
.bd-ai-msg h4,
.bd-ai-msg h5,
.bd-ai-msg h6 {
    color: #c8d8e8;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 13px 0 7px 0;
    padding: 5px 8px 5px 10px;
    line-height: 1.35;
    border-left: 4px solid rgba(100, 150, 180, 0.6);
    background: linear-gradient(90deg, rgba(100, 150, 180, 0.14), rgba(100, 150, 180, 0.02));
    background-color: #0f1419;
    border-radius: 6px;
}
.bd-ai-msg b,
.bd-ai-msg strong {
    background-color: inherit;
    color: #dce8f0;
    font-weight: 800;
    text-shadow: 0 0 7px rgba(150, 200, 220, 0.35);
}
.bd-ai-msg em,
.bd-ai-msg i,
.bd-ai-msg span {
    background-color: inherit;
}
.bd-ai-msg a {
    background-color: inherit;
    color: #8ec5e0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(120, 180, 200, 0.45);
    transition: color 0.18s ease, border-color 0.18s ease;
}
.bd-ai-msg a:hover {
    color: #b0ddf2;
    border-bottom-color: rgba(140, 200, 220, 0.7);
    text-shadow: 0 0 6px rgba(120, 180, 200, 0.3);
}
.bd-ai-msg blockquote {
    margin: 8px 0;
    padding: 7px 12px;
    border-left: 3px solid rgba(100, 150, 180, 0.6);
    background: #1a2535;
    border-radius: 7px;
    color: #d6ccea;
}
.bd-ai-msg ul,
.bd-ai-msg ol {
    margin: 7px 0 9px 24px;
    padding: 0;
    background-color: inherit;
    color: #d6ccea;
}
.bd-ai-msg li {
    margin: 3px 0;
    background-color: inherit;
    color: #d6ccea;
}
.bd-ai-msg li::marker {
    color: rgba(120, 180, 200, 0.8);
    font-weight: 800;
}
.bd-ai-msg code {
    display: inline-block;
    padding: 1px 5px;
    margin: 0 2px;
    background: rgba(15, 23, 42, 0.88);
    color: #d8e8f0;
    border: 1px solid rgba(100, 150, 180, 0.38);
    border-radius: 5px;
    font-size: 0.92em;
}
.bd-ai-msg pre {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(100, 150, 180, 0.38);
    border-radius: 7px;
    padding: 10px 12px;
    overflow-x: auto;
    box-sizing: border-box;
    white-space: pre;
}
.bd-ai-msg pre code {
    display: inline;
    background-color: inherit;
    border: none;
    padding: 0;
    margin: 0;
}
.bd-ai-msg table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    background: rgba(22, 32, 52, 0.75);
    border-radius: 7px;
    overflow: hidden;
}
.bd-ai-msg th {
    padding: 7px 9px;
    color: rgba(190, 220, 245, 0.92);
    background: rgba(35, 50, 78, 0.82);
    border: 1px solid rgba(100, 150, 180, 0.3);
    font-size: 13px;
    font-weight: 800;
}
.bd-ai-msg td {
    padding: 6px 9px;
    color: #ece7f8;
    background: rgba(22, 32, 52, 0.65);
    border: 1px solid rgba(100, 150, 180, 0.22);
    font-size: 13px;
}
.bd-ai-msg tr:hover td {
    background: rgba(40, 58, 88, 0.72);
}
.bd-ai-msg hr {
    display: none;
}

/* ─── CS3c. 引用文本 <q>（平台自动包裹引号文字）─── */
.bd-ai-msg q {
    background-color: inherit;
    color: var(--xuan-quote);
    font-style: normal;
}
.bd-ai-msg q::before,
.bd-ai-msg q::after {
    content: none;
}

/* ─── CS4. 用户消息气泡 ─── */
.bd-user-msg {
    background: var(--xuan-user-bg);
    background-color: #2d233c;
    color: #f0e8ff !important;
    border-radius: 10px;
    border-right: 3px solid var(--xuan-user-border);
    padding: 10px 14px;
    font-family: var(--xuan-font);
    font-size: 15px;
    line-height: 1.7;
}
.bd-user-msg .bd-content {
    background-image: none !important;
    background-color: inherit !important;
    color: inherit !important;
}
.bd-user-msg q {
    color: var(--xuan-quote-user);
}
.bd-user-msg q::before,
.bd-user-msg q::after {
    content: none;
}
.bd-user-msg p {
    margin: 0 0 0.6em 0;
    background-color: inherit;
}
.bd-user-msg b,
.bd-user-msg strong {
    color: #f3e8ff;
    font-weight: 800;
    background-color: inherit;
}
.bd-user-msg code {
    padding: 1px 5px;
    background: rgba(40, 30, 55, 0.6);
    color: #e8d4f0;
    border: 1px solid rgba(157, 127, 212, 0.3);
    border-radius: 5px;
    font-size: 0.92em;
}
.bd-user-msg a {
    color: #c4a8e8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(157, 127, 212, 0.4);
    background-color: inherit;
}
.bd-user-msg a:hover {
    color: #d8baf0;
    border-bottom-color: rgba(180, 140, 230, 0.7);
}

/* ─── CS5. 输入区外壳 ─── */
.bd-chat-input-wrap {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(120, 180, 200, 0.05), transparent 55%),
        linear-gradient(180deg, rgba(18, 26, 45, 0.97), rgba(14, 20, 38, 0.98));
    background-color: #121a26;
    border: 1px solid var(--xuan-border);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow:
        0 -3px 20px rgba(10, 20, 40, 0.2),
        0 0 30px rgba(120, 180, 200, 0.04) inset;
}
/* 输入框 textarea */
#bd-chat-input {
    background: transparent;
    color: #d6ccea;
    caret-color: rgba(140, 180, 210, 0.85);
    font-size: 16px;
    font-family: var(--xuan-font);
    line-height: 1.65;
    letter-spacing: 0.2px;
}
#bd-chat-input::placeholder {
    color: rgba(130, 160, 190, 0.45);
}
#bd-chat-input:focus {
    outline: none;
}
.bd-chat-input-wrap:focus-within {
    border-color: rgba(120, 180, 200, 0.55);
    box-shadow:
        0 -3px 20px rgba(10, 20, 40, 0.2),
        0 0 0 1px rgba(120, 180, 200, 0.15) inset,
        0 0 18px rgba(120, 180, 200, 0.08) inset;
}

/* ─── CS5b. 工具栏按钮 ─── */
.bd-toolbar-btn {
    border-radius: 8px;
    border: 1px solid var(--xuan-border-soft);
    background: linear-gradient(180deg, rgba(30, 42, 68, 0.72), rgba(24, 34, 56, 0.68));
    color: rgba(150, 185, 215, 0.7);
    padding: 4px 9px;
    font-size: 12px;
    font-family: var(--xuan-font);
    transition: all 0.22s ease;
}
.bd-toolbar-btn:hover {
    background: linear-gradient(180deg, rgba(40, 56, 88, 0.8), rgba(32, 46, 72, 0.76));
    color: rgba(180, 212, 240, 0.92);
    border-color: rgba(110, 160, 195, 0.38);
    transform: translateY(-1px);
}
.bd-toolbar-btn:active {
    transform: translateY(0);
    background: linear-gradient(180deg, rgba(24, 34, 56, 0.85), rgba(20, 30, 50, 0.8));
}

/* ─── CS5c. 发送按钮：高亮强调 ─── */
.bd-send-btn {
    background: linear-gradient(180deg, rgba(60, 90, 130, 0.82), rgba(45, 70, 105, 0.86));
    border: 1px solid rgba(100, 150, 190, 0.45);
    color: rgba(190, 220, 245, 0.92);
    border-radius: 10px;
    padding: 5px 12px;
    transition: all 0.22s ease;
}
.bd-send-btn:hover {
    background: linear-gradient(180deg, rgba(70, 105, 150, 0.88), rgba(55, 85, 125, 0.9));
    border-color: rgba(80, 130, 170, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(80, 120, 160, 0.18);
}
.bd-send-btn:active {
    transform: translateY(0);
    background: linear-gradient(180deg, rgba(45, 70, 105, 0.9), rgba(35, 55, 85, 0.92));
    box-shadow: 0 2px 8px rgba(80, 120, 160, 0.12);
}

/* ─── CS6. 加载动画 ─── */
.bd-loading-dots {
    color: var(--xuan-accent);
    font-size: 14px;
    letter-spacing: 2px;
    padding: 4px 2px;
    text-shadow: 0 0 8px rgba(120, 180, 200, 0.45);
}
.bd-loading-dots::after {
    content: "载入天枢…";
    color: rgba(120, 180, 200, 0.6);
    font-size: 12px;
    margin-left: 6px;
    font-style: italic;
}

/* ─── CS6b. 消息底部操作图标行（编辑/复制/重生成/朗读）─── */
/* 注意：.bd-chrome 本身受平台保护（§6），此处只美化图标行容器与图标颜色 */
.bd-msg-actions {
    margin-top: 6px;
    padding: 4px 6px;
    border-top: 1px dashed rgba(100, 150, 180, 0.18);
    opacity: 0.55;
    transition: opacity 0.2s ease;
}
.bd-msg-actions:hover {
    opacity: 1;
}
.bd-msg-actions button {
    color: rgba(130, 165, 195, 0.65);
    border-radius: 6px;
    padding: 2px 5px;
    transition: color 0.18s ease, background 0.18s ease;
}
.bd-msg-actions button:hover {
    color: rgba(180, 212, 240, 0.92);
    background: rgba(120, 180, 200, 0.1);
}
.bd-msg-actions svg {
    color: inherit;
}

/* ─── CS7. 模型选择器 / Token 统计 / 顶部设置 ─── */
.bd-model-selector,
.bd-token-stats {
    color: rgba(130, 165, 195, 0.78);
    font-size: 12px;
    font-family: var(--xuan-font);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(20, 30, 50, 0.5);
    border: 1px solid var(--xuan-border-soft);
}
.bd-model-selector:hover,
.bd-token-stats:hover {
    color: rgba(170, 200, 225, 0.92);
    border-color: rgba(110, 160, 195, 0.38);
}
.bd-header-settings {
    color: rgba(150, 185, 215, 0.75);
    border-radius: 8px;
    padding: 4px 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.bd-header-settings:hover {
    color: rgba(190, 220, 245, 0.95);
    background: rgba(120, 180, 200, 0.1);
}

/* ─── CS8. 滚动条（作用域到内容区）─── */
.bd-content-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.bd-content-area::-webkit-scrollbar-track {
    background: rgba(240, 245, 255, 0.06);
    border-radius: 4px;
}
.bd-content-area::-webkit-scrollbar-thumb {
    background: rgba(120, 180, 200, 0.4);
    border-radius: 4px;
}
.bd-content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 180, 200, 0.6);
}

/* ─── CS9. 自定义标签兼容（若使用 <story-main> 等自定义标签）─── */
[data-custom-tag="story-main"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 12px 0;
    padding: 16px 15px;
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 180, 200, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(120, 180, 200, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.98));
    border: 1px solid var(--xuan-border);
    border-left: 4px solid rgba(80, 120, 160, 0.6);
    border-right: 4px solid rgba(80, 120, 160, 0.6);
    border-radius: 10px;
    color: #ece7f8;
    font-family: var(--xuan-font);
    white-space: pre-line;
}

/* ─── CS10. 移动端适配 ─── */
@media (max-width: 768px) {
    .bd-ai-msg {
        padding: 12px 12px;
        font-size: 14.5px;
        line-height: 1.85;
    }
    .bd-user-msg {
        padding: 9px 11px;
        font-size: 14px;
    }
    .bd-ai-msg h1,
    .bd-ai-msg h2,
    .bd-ai-msg h3,
    .bd-ai-msg h4 {
        font-size: 14px;
        margin: 10px 0 6px 0;
    }
    .bd-chat-input-wrap {
        padding: 8px 10px;
    }
}
