/* === 蓝色仙气主题 - 寒月峰专属 === */

/* 整体容器美化（如果你在主提示词里用了<div class="xian-container">包裹所有内容） */
.xian-container {
    background: linear-gradient(135deg, #0a1f2e 0%, #0f2b4a 100%);
    border: 1px solid #4a9eff;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(74, 158, 255, 0.3);
    padding: 15px;
    margin: 10px 0;
}

/* 前置/后置状态栏美化 */
.status-bar {
    background: rgba(10, 31, 46, 0.85);
    border: 1px solid #6bb8ff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(107, 184, 255, 0.4);
    color: #e0f0ff;
    font-size: 14px;
}

/* summary折叠块 - 师尊/师姐信息专用 */
details summary {
    background: linear-gradient(to right, #1e3a5f, #2a5b8c);
    color: #a0d8ff;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #7cc6ff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.25);
}

details summary:hover {
    background: linear-gradient(to right, #2a5b8c, #3a7ab8);
    box-shadow: 0 0 20px rgba(122, 198, 255, 0.6);
    transform: translateY(-2px);
}

/* 展开后的内容区 */
details[open] {
    background: rgba(15, 43, 74, 0.7);
    border: 1px dashed #6bb8ff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    color: #c0e0ff;
}

/* 正文<p>标签 - 仙气描写专用 */
.text-content p {
    color: #d0e8ff;
    line-height: 1.75;
    margin: 12px 0;
    text-shadow: 0 0 8px rgba(122, 198, 255, 0.3);
    position: relative;
}

/* 正文轻雾飘渺效果（模拟寒气） */
.text-content p::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(122, 198, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.6;
    filter: blur(3px);
}

/* 关键剧情高亮（比如江寒月出场、禁忌场景） */
.highlight {
    color: #7cc6ff;
    font-weight: bold;
    text-shadow: 0 0 12px #4a9eff;
    padding: 2px 6px;
    border-bottom: 1px dotted #a0d8ff;
}

/* 记忆区 & 任务栏小卡片 */
.memory-card {
    background: linear-gradient(145deg, #112b45, #1e4a6e);
    border-left: 4px solid #5eb0ff;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(94, 176, 255, 0.2);
}

/* 仙气动态光效（轻微呼吸感） */
@keyframes xian-breath {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.status-bar, details summary {
    animation: xian-breath 6s ease-in-out infinite;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .xian-container, .status-bar, details[open] {
        padding: 10px;
        border-radius: 10px;
    }
    details summary {
        padding: 8px 12px;
        font-size: 15px;
    }
}
/* 移除顶部的颜色装饰条 */
[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 统一聊天框 (输入与输出共有) 基础样式 - 仙气蓝色渐变背景 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #001f3f 100%) !important;
    border: 1px solid #0056b3 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 15px rgba(0, 100, 200, 0.5) !important;
    position: relative !important; /* 确保伪元素定位基准 */
    overflow: hidden !important; /* 隐藏溢出的伪元素背景 */
    transition: all 0.3s ease-in-out !important;
}

/* 聊天框背景的仙气伪元素装饰 */
.bg-gray-100\/90.relative.inline-block::before {
    content: '';
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle at center, rgba(0, 200, 255, 0.1) 0%, transparent 70%) !important;
    animation: celestialMist 15s infinite linear !important;
    z-index: 0 !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.bg-gray-100\/90.relative.inline-block::after {
    content: '';
    position: absolute !important;
    bottom: -50% !important;
    right: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle at center, rgba(0, 200, 255, 0.15) 0%, transparent 70%) !important;
    animation: celestialMist2 18s infinite linear reverse !important;
    z-index: 0 !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

@keyframes celestialMist {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(360deg); }
}

@keyframes celestialMist2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10%, -10%) rotate(-360deg); }
}

/* 聊天框内的主要文本内容 - 确保高可读性 */
.markdown-body {
    color: #FFFFFF !important; /* 浅色文本确保在深色背景上可读 */
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    line-height: 1.6 !important;
    padding: 15px !important;
    position: relative !important;
    z-index: 1 !important; /* 确保文本在背景伪元素之上 */
    background: transparent !important; /* 确保文本背景透明，显示下层渐变 */
}

/* 聊天框底部附加元素 - 统一颜色以确保可见性 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #E0FFFF !important; /* 浅青色，与背景形成高对比 */
    font-size: 13px !important;
    font-weight: normal !important;
    transition: color 0.3s ease-in-out !important;
}

/* 按钮悬停效果 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #87CEEB !important; /* 悬停时变为更亮的蓝色 */
}

/* 隐藏默认加载元素 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 自定义加载动画 - 仙气缭绕的能量球 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 24px !important; /* 确保容器有足够大小 */
    height: 20px !important;
    overflow: visible !important; /* 允许SVG溢出，但保持主要动画在容器内 */
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: '';
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0%25' stop-color='%2387CEEB'/%3E%3Cstop offset='100%25' stop-color='%230056b3'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='8' fill='url(%23g)'%3E%3Canimate attributeName='r' values='8;10;8;6;8' dur='2s' repeatCount='indefinite' calcMode='spline' keySplines='0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1'/%3E%3Canimate attributeName='opacity' values='1;0.7;1;0.5;1' dur='2s' repeatCount='indefinite' calcMode='spline' keySplines='0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='4s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") no-repeat center center !important;
    background-size: contain !important;
    z-index: 1 !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        border-radius: 8px !important;
        box-shadow: 0 0 10px rgba(0, 100, 200, 0.4) !important;
    }
    .markdown-body {
        font-size: 14px !important;
        padding: 10px !important;
    }
    .MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
    .MuiTypography-root.MuiTypography-body2.css-6c0gf2,
    .text-orange-500 {
        font-size: 12px !important;
    }
}

/* 低动效模式 */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block::before,
    .bg-gray-100\/90.relative.inline-block::after {
        animation-duration: 0s !important; /* 禁用背景动画 */
    }
    .flex.items.center.justify-center.w-6.h-5::before circle {
        animation: none !important; /* 禁用加载动画 */
        r: 8 !important; /* 恢复默认大小 */
        opacity: 1 !important; /* 恢复默认不透明度 */
    }
}
/* -------------------- 顶部栏相关 -------------------- */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(to right, #001a33, #003366, #001a33) !important;
    border-bottom: 1px solid #0056b3 !important;
    box-shadow: 0 2px 10px rgba(0, 100, 200, 0.4) !important;
    padding: 8px 15px !important;
    transition: background 0.3s ease !important;
}

/* 模型选择器背景及悬停效果 */
#ai-model-selector .group.flex.items-center {
    background-color: rgba(0, 51, 102, 0.7) !important;
    border-radius: 20px !important;
    padding: 5px 10px !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

#ai-model-selector .group.flex.items.center:hover {
    background-color: rgba(0, 86, 179, 0.8) !important;
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.6) !important;
}

/* 模型名称 */
#ai-model-selector .truncate.text-\[13px\] {
    color: #E0FFFF !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.5) !important;
}

/* 下拉箭头图标 */
#ai-model-selector .shrink-0.flex.items-center svg {
    color: #87CEEB !important;
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}
#ai-model-selector .shrink-0.flex.items-center:hover svg {
    transform: scale(1.2) rotate(180deg) !important;
}

/* 历史记录图标和角标 (移动端) */
.sticky.w-full.top-0 svg.lucide-clock-8,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) { /* 移动端设置图标 */
    color: #ADD8E6 !important;
    transform: scale(1.1) !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
}
.sticky.w-full.top-0 svg.lucide-clock-8:hover,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
    color: #E0FFFF !important;
    transform: scale(1.2) !important;
}

.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
    background-color: #FFD700 !important; /* 金色角标 */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.7) !important;
}

/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
    background-color: rgba(0, 51, 102, 0.7) !important;
    border-radius: 50% !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
    background-color: rgba(0, 86, 179, 0.8) !important;
    transform: scale(1.1) !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
    color: #87CEEB !important;
    animation: rotateMusic 3s linear infinite !important;
}
@keyframes rotateMusic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* '设置'按钮 */
#header-setting-button {
    background-color: rgba(0, 51, 102, 0.7) !important;
    border-radius: 20px !important;
    padding: 5px 10px !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}
#header-setting-button:hover {
    background-color: rgba(0, 86, 179, 0.8) !important;
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.6) !important;
}
#header-setting-button svg {
    color: #ADD8E6 !important;
    transform: scale(1.1) !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
}
#header-setting-button:hover svg {
    color: #E0FFFF !important;
    transform: scale(1.2) !important;
}

/* -------------------- 开场白选择器相关 -------------------- */
div.flex.items.center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
    background: linear-gradient(to right, #003366, #0056b3) !important;
    border: 1px solid #008cff !important;
    color: #E0FFFF !important;
    box-shadow: 0 2px 8px rgba(0, 150, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

div.flex.items.center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
    background: linear-gradient(to right, #0056b3, #008cff) !important;
    box-shadow: 0 4px 12px rgba(0, 150, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

div.flex.items.center.h-9.cursor-pointer.group svg[data-icon="SlidersH"],
div.flex.items.center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
    color: #ADD8E6 !important;
}

/* -------------------- 按钮栏相关 -------------------- */
#ai-mod-button2 button.MuiButton-root {
    background: linear-gradient(45deg, #0056b3 30%, #008cff 90%) !important;
    color: #E0FFFF !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 150, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    text-transform: none !important; /* 保持按钮文字大小写 */
}

#ai-mod-button2 button.MuiButton-root:hover {
    background: linear-gradient(45deg, #008cff 30%, #00BFFF 90%) !important;
    box-shadow: 0 5px 15px rgba(0, 150, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}

#ai-mod-button2 button.MuiButton-root svg {
    color: #E0FFFF !important;
    margin-right: 5px !important;
    transform: scale(1.1) !important;
}

/* -------------------- 底部栏相关 -------------------- */
/* 底部栏外层主背景 */
.bg-gradient-to-t {
    background: linear-gradient(to top, #001a33, #003366) !important;
    border-top: 1px solid #0056b3 !important;
    box-shadow: 0 -5px 20px rgba(0, 100, 200, 0.4) !important;
    padding-top: 10px !important; /* 确保内容不被背景遮挡 */
}

/* 输入框容器 */
#ai-chat-bottom-input {
    background-color: #003366 !important;
    border: 1px solid #0056b3 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.3) !important;
    transition: border-color 0.3s ease !important;
}

#ai-chat-bottom-input:focus-within {
    border-color: #008cff !important;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.3), 0 0 8px rgba(0, 150, 255, 0.5) !important;
}

/* 主聊天输入框的实际文本和占位符优化 */
/* 这部分是针对主要的聊天输入框，确保其文本清晰 */
#ai-chat-bottom-input textarea.rc-textarea { /* 更精确地定位主聊天输入框 */
    background-color: transparent !important;
    color: #FFFFFF !important; /* 确保文本颜色为纯白色，对比度最大 */
    border: none !important;
    resize: vertical !important;
    padding: 10px !important;
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important; /* 稍微增大字体，提高可读性 */
    font-weight: normal !important; /* 确保不是太细的字体 */
    line-height: 1.5 !important; /* 增加行高 */
}

/* 主聊天输入框的占位符文本 */
#ai-chat-bottom-input textarea.rc-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important; /* 白色半透明，确保占位符也清晰可见 */
}


/* -------------------- 分页栏相关 -------------------- */
.MuiPaginationItem-root {
    color: #ADD8E6 !important;
    border: 1px solid rgba(0, 86, 179, 0.5) !important;
    background-color: rgba(0, 51, 102, 0.6) !important;
    transition: all 0.3s ease !important;
    font-weight: normal !important;
}

.MuiPaginationItem-root:hover {
    background-color: rgba(0, 86, 179, 0.8) !important;
    color: #E0FFFF !important;
    border-color: #00BFFF !important;
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.5) !important;
}

.MuiPaginationItem-root.Mui-selected {
    background: linear-gradient(45deg, #008cff 30%, #00BFFF 90%) !important;
    color: #FFFFFF !important;
    border-color: #00BFFF !important;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.7) !important;
    font-weight: bold !important;
}

.MuiPaginationItem-root.Mui-disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    background-color: rgba(0, 51, 102, 0.3) !important;
    border-color: rgba(0, 86, 179, 0.3) !important;
    color: rgba(173, 216, 230, 0.5) !important;
}

.MuiPaginationItem-icon {
    color: #E0FFFF !important;
}



/* -------------------- 评论区相关 -------------------- */
/* 背景容器 (主容器) - 禁止修改布局相关 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(to bottom, #001f3f, #003366, #001f3f) !important;
    color: #E0FFFF !important; /* 默认文本颜色 */
    border-top: 1px solid #0056b3 !important;
    box-shadow: 0 -5px 20px rgba(0, 100, 200, 0.5) !important;
}

/* 顶部标题 */
div.text-lg.font-bold {
    color: #E0FFFF !important;
    text-shadow: 0 0 8px rgba(135, 206, 235, 0.7) !important;
    margin-bottom: 15px !important;
}

/* '个人评分'文字 */
p.MuiTypography-body1.text-grey-600 {
    color: #ADD8E6 !important;
}

/* 未选中的评分星星 (空心) */
span.MuiRating-iconEmpty svg {
    color: rgba(173, 216, 230, 0.4) !important; /* 半透明浅蓝色 */
}

/* 选中的星星 */
span.MuiRating-iconFilled svg {
    color: #FFD700 !important; /* 金色 */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7)) !important; /* 金色光晕 */
}

/* 评分数字 */
span.text-orange-500 {
    color: #FFD700 !important;
    font-weight: bold !important;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5) !important;
}

/* 评论输入框容器 */
div.flex.flex-col.border-gray-200 {
    background-color: #003366 !important; /* 容器背景 */
    border: 1px solid #0056b3 !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 15px !important;
    overflow: hidden !important; /* 确保内部元素圆角 */
}

/* 评论输入框的实际文本和占位符优化 */
div.flex.flex-col.border-gray-200 textarea.rc-textarea { /* 精准定位评论区的输入框 */
    background-color: rgba(0, 51, 102, 0.8) !important; /* 稍浅的深蓝色背景，确保文本高对比 */
    color: #FFFFFF !important; /* 确保文字是纯白色 */
    border: none !important;
    resize: vertical !important;
    padding: 12px !important; /* 增加内边距 */
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important; /* 确保字体大小足够 */
    font-weight: normal !important; /* 确保字体不是太细 */
    line-height: 1.5 !important; /* 确保行高舒适 */
}

/* 评论输入框的占位符文本 */
div.flex.flex-col.border-gray-200 textarea.rc-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important; /* 占位符颜色，稍微亮一点 */
}


/* 输入字数统计 */
div.bg-gray-100.text-gray-500 {
    background-color: #004080 !important;
    color: #ADD8E6 !important;
    padding: 5px 10px !important;
    border-top: 1px solid #0056b3 !important;
    font-size: 12px !important;
}

/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(45deg, #008cff 30%, #00BFFF 90%) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 3px 10px rgba(0, 150, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

div.cursor-pointer.group.flex.items.center.justify-center:hover {
    background: linear-gradient(45deg, #00BFFF 30%, #4682B4 90%) !important;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.6) !important;
    transform: scale(1.1) !important;
}

/* 发送评论按钮的图标 */
div[data-state="closed"] svg[data-icon="Send03"] {
    color: #FFFFFF !important;
    transform: scale(1.2) !important;
}

/* 分割线 */
div.style_divider__mW0YX {
    background-color: #0056b3 !important;
    height: 1px !important;
    margin: 20px 0 !important;
    box-shadow: 0 0 5px rgba(0, 100, 200, 0.5) !important;
}

/* 排序按钮(通用) */
button.MuiButton-containedPrimary, button.MuiButton-outlinedPrimary {
    text-transform: none !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* 排序按钮(已选中) */
button.MuiButton-containedPrimary {
    background: linear-gradient(45deg, #008cff 30%, #00BFFF 90%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(0, 150, 255, 0.4) !important;
    border: none !important;
}

button.MuiButton-containedPrimary:hover {
    background: linear-gradient(45deg, #00BFFF 30%, #4682B4 90%) !important;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.6) !important;
}

/* 排序按钮(未选中) */
button.MuiButton-outlinedPrimary {
    border: 1px solid #008cff !important;
    color: #ADD8E6 !important;
    background-color: rgba(0, 51, 102, 0.6) !important;
}

button.MuiButton-outlinedPrimary:hover {
    background-color: rgba(0, 86, 179, 0.8) !important;
    color: #E0FFFF !important;
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.5) !important;
}

/* 评论项 */
div.group.ml-0 {
    background-color: rgba(0, 51, 102, 0.5) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: background-color 0.3s ease !important;
}

div.group.ml-0:hover {
    background-color: rgba(0, 51, 102, 0.7) !important;
}

/* 用户头像 */
div.group img.rounded-full {
    border: 2px solid #008cff !important;
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.6) !important;
    transition: transform 0.3s ease !important;
}
div.group img.rounded-full:hover {
    transform: scale(1.05) !important;
}

/* 用户名 */
div.text-sm.text-grey-600 span.font-bold {
    color: #E0FFFF !important;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.5) !important;
}

/* "（你）" 标签 */
span.text-\[10px\] {
    color: #ADD8E6 !important;
    background-color: rgba(0, 86, 179, 0.5) !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    margin-left: 5px !important;
    font-weight: bold !important;
}

/* 评论内容 */
div.break-all {
    color: #FFFFFF !important;
    line-height: 1.6 !important;
    margin-top: 5px !important;
}

/* 时间戳 */
div.text-xs.text-grey-600 {
    color: #ADD8E6 !important;
    opacity: 0.8 !important;
}

/* 点赞按钮 */
button.text-gray-400 {
    color: #ADD8E6 !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
}

button.text-gray-400:hover {
    color: #00BFFF !important;
    transform: scale(1.2) !important;
}

/* 点赞按钮的图标 */
button.text-gray-400 svg {
    color: inherit !important; /* 继承父元素的颜色 */
}

/* 回复(是无边框的两个字,点击回复) */
span.cursor-pointer {
    color: #87CEEB !important;
    font-weight: bold !important;
    transition: color 0.3s ease !important;
}

span.cursor-pointer:hover {
    color: #00BFFF !important;
    text-decoration: underline !important;
}

/* 回复区域边框 */
div.ml-8.border-l {
    border-left: 2px solid #008cff !important;
    padding-left: 10px !important;
    margin-top: 10px !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .sticky.w-full.top-0.flex.items-center {
        padding: 5px 10px !important;
    }
    #ai-model-selector .group.flex.items.center {
        padding: 3px 8px !important;
    }
    #ai-model-selector .truncate.text-\[13px\] {
        font-size: 12px !important;
    }
    #ai-mod-button2 button.MuiButton-root {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    #ai-chat-bottom-input {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
    div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
        padding: 10px !important;
    }
    div.text-lg.font-bold {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    div.group.ml-0 {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    /* 评论区输入框的移动端适配 */
    div.flex.flex-col.border-gray-200 textarea.rc-textarea {
        padding: 8px !important;
        font-size: 14px !important;
    }
    div.cursor-pointer.group.flex.items.center.justify-center {
        width: 35px !important;
        height: 35px !important;
    }
    div[data-state="closed"] svg[data-icon="Send03"] {
        transform: scale(1.1) !important;
    }
}
details.m {margin-top: 20px;border: 1px solid #d1d5db;border-radius: 6px;box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);background-color: #f9fafb;}
details.m summary {padding: 12px 16px;font-weight: bold;color: #374151;cursor: pointer;border-radius: 5px 5px 0 0;background-color: #f3f4f6;transition: background-color 0.2s;list-style: none;user-select: none;}
details.m summary::-webkit-details-marker {display: none;}
details.m summary:hover {background-color: #e5e7eb;}
details.m summary::before {content: '▶';display: inline-block;margin-right: 8px;font-size: 12px;transition: transform 0.2s;}


/* ========== 状态栏悬浮侧边栏 ========== */
@media (min-width: 768px) {
  details {
    position: fixed !important;
    right: 20px !important;
    top: 20px !important;
    width: 320px !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    z-index: 999 !important;
    background: linear-gradient(135deg, rgba(22,27,34,0.98), rgba(13,17,23,0.96)) !important;
    border: 1px solid rgba(121,192,255,0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,215,0,0.1) inset !important;
    backdrop-filter: blur(10px) !important;
  }
  /* 第二个 details 固定在右下角 */
  details:not(:first-of-type) {
    top: auto !important;
    bottom: 20px !important;
  }
  /* 如果有第三个及以上，可以继续叠加 bottom 偏移，或用 nth-of-type 单独控制 */
  details:nth-of-type(3) {
    bottom: 80px !important;
  }
  details:nth-of-type(4) {
    bottom: 140px !important;
  }
  details:nth-of-type(5) {
    bottom: 200px !important;
  }
  details[open] {
    max-height: 70vh !important;
  }
}

/* 移动端自动恢复常规布局 */
@media (max-width: 767px) {
  details {
    position: static !important;
    width: auto !important;
    margin: 0 10px 16px 10px !important;
  }
}

/* ========== 正文翻转效果 ========== */
.flip-wrap {
  position: relative;
  margin: 24px 0;
  perspective: 1000px;
}

.flip-check {
  display: none;
}

.flip-hint {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #79c0ff;
  letter-spacing: 0.15em;
  padding: 8px 0;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  position: relative;
}

.flip-hint::before {
  content: '💭';
  margin-right: 6px;
  font-size: 0.9rem;
}

.flip-hint:hover {
  opacity: 1;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.flip-card {
  position: relative;          /* ✅ 新增：使绝对定位的子元素正确定位 */
  width: 100%;
  min-height: 200px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-check:checked ~ .flip-card {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  padding: 24px 28px;
  min-height: 200px;
}

.flip-front {
  background: linear-gradient(135deg, rgba(22,27,34,0.95), rgba(13,17,23,0.92));
  border: 1px solid rgba(121,192,255,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.flip-back {
  background: linear-gradient(135deg, rgba(33,38,45,0.97), rgba(22,27,34,0.94));
  border: 1px solid rgba(210,168,255,0.35);
  box-shadow: 0 4px 20px rgba(210,168,255,0.15);
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
}

.npc-inner-title {
  font-size: 1.1rem;
  color: #d2a8ff;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(210,168,255,0.3);
  text-align: center;
  text-shadow: 0 0 10px rgba(210,168,255,0.5);
}

.npc-inner-title::before {
  content: '🔮 ';
  margin-right: 8px;
}

.npc-inner-text {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #c9d1d9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* 原 text 选择器改为 *（若需匹配所有文本）或保留注释 */
/* 如果只想影响 npc-inner-text 内的文本，上面的 .npc-inner-text 已足够 */
/* 此处删除原 text 规则，如需通用文本样式请自行添加 */

/* ========== 状态栏样式增强 ========== */
details {
  background: linear-gradient(135deg, rgba(22,27,34,0.95), rgba(13,17,23,0.92)) !important;
  border: 1px solid rgba(121,192,255,0.25) !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
}

/* 左侧分类灵光边框 */
details {
  border-left: 4px solid #79c0ff !important;
}
details:nth-of-type(1) { border-left-color: #7ee787 !important; }
details:nth-of-type(2) { border-left-color: #ffd700 !important; }
details:nth-of-type(3) { border-left-color: #d2a8ff !important; }
details:nth-of-type(4) { border-left-color: #56d4dd !important; }
details:nth-of-type(5) { border-left-color: #ff6b6b !important; }

/* 顶部金光扫描线 */
details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700 30%, rgba(255,215,0,0.8) 50%, #ffd700 70%, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
details[open]::before {
  opacity: 1;
  animation: xiuGoldScan 3s linear infinite;
}
@keyframes xiuGoldScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* 展开时整体发光 */
details[open] {
  border-color: rgba(255,215,0,0.4) !important;
  box-shadow: 0 8px 30px rgba(121,192,255,0.2), 0 0 40px rgba(255,215,0,0.15) !important;
}

/* 折叠标题样式 */
details summary {
  padding: 14px 18px !important;
  cursor: pointer !important;
  color: #ffd700 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  position: relative !important;
  z-index: 1 !important;
  text-shadow: 0 0 10px rgba(255,215,0,0.5) !important;
  transition: all 0.3s ease !important;
  background: linear-gradient(90deg, rgba(121,192,255,0.08) 0%, transparent 50%) !important;
}

/* Hover扫光特效 */
details summary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(121,192,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
details summary:hover::after {
  left: 150%;
}
details summary:hover {
  color: #79c0ff !important;
  text-shadow: 0 0 12px rgba(121,192,255,0.6) !important;
  padding-left: 22px !important;
  background: linear-gradient(90deg, rgba(121,192,255,0.15) 0%, transparent 50%) !important;
}

/* 箭头符号 */
details summary::before {
  content: '⚝';
  margin-right: 8px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}
details[open] summary::before {
  transform: rotate(90deg);
  color: #ffd700 !important;
}

/* 内容区 — ✅ 修复了 &gt; 为 > */
details > *:not(summary) {
  padding: 12px 18px 16px !important;
  color: #c9d1d9 !important;
  line-height: 1.8 !important;
  background: rgba(0,0,0,0.25) !important;
  border-top: 1px solid rgba(121,192,255,0.15) !important;
}

/* 表格样式 */
details table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
details th, details td {
  padding: 8px 12px;
  border: 1px solid rgba(121,192,255,0.2);
  text-align: left;
}
details th {
  background: rgba(121,192,255,0.1);
  color: #ffd700;
  font-weight: 600;
}
details tr:nth-child(even) {
  background: rgba(121,192,255,0.05);
}

/* 强调文本 */
details strong,
details .preview-label {
  color: #ffd700 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(255,215,0,0.4) !important;
}

/* 女性身体部位样式 */
details em {
  color: #d2a8ff !important;
  font-style: normal !important;
  text-shadow: 0 0 6px rgba(210,168,255,0.4) !important;
}

/* 滚动条美化 */
details::-webkit-scrollbar {
  width: 6px;
}
details::-webkit-scrollbar-track {
  background: rgba(13,17,23,0.8);
  border-radius: 3px;
}
details::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #79c0ff, #56d4dd);
  border-radius: 3px;
}
details::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ffd700, #e6c200);
}
