
/* ===== 全局图层压制：将页面内所有元素z-index压到底层，侧边栏除外 ===== */
*:not(.a):not(.b):not(.c):not(.d):not(.a *):not(.b *){
  z-index:auto!important;
}
body>*:not(.a):not(#xiu-xian-sidebar){
  position:relative;
  z-index:1!important;
}
/* ═══════════════════════════════════════════
   古典修仙·宣纸风格 - 完整美化方案
   ═══════════════════════════════════════════ */
/* --- 全局字体与色彩变量 --- */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Ma+Shan+Zheng&display=swap');
/* ═══════════════════════════════════════════
   一、顶部栏美化
   ═══════════════════════════════════════════ */
/* 顶部栏主容器 - 宣纸底纹 */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(
        135deg,
        #f5f0e1 0%,
        #ebe4d1 25%,
        #f7f2e3 50%,
        #e8e0c8 75%,
        #f3edd9 100%
    ) !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(
        90deg,
        transparent 0%,
        #8b7355 20%,
        #5c4a32 50%,
        #8b7355 80%,
        transparent 100%
    ) 1 !important;
    box-shadow: 
        0 2px 8px rgba(92, 74, 50, 0.15),
        inset 0 -1px 0 rgba(139, 115, 85, 0.2) !important;
    position: relative !important;
}
/* 顶部栏水墨装饰 */
.sticky.w-full.top-0.flex.items-center::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        radial-gradient(ellipse at 10% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 50%) !important;
    pointer-events: none !important;
}
/* 模型选择器容器 */
#ai-model-selector .group.flex.items-center {
    background: linear-gradient(145deg, #faf6eb 0%, #f0e9d8 100%) !important;
    border: 1px solid #c4b59d !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    box-shadow: 
        2px 2px 4px rgba(92, 74, 50, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease !important;
}
#ai-model-selector .group.flex.items-center:hover {
    background: linear-gradient(145deg, #fff9ec 0%, #f5eedc 100%) !important;
    border-color: #a08060 !important;
    box-shadow: 
        3px 3px 6px rgba(92, 74, 50, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
/* 模型名称文字 */
#ai-model-selector .truncate.text-\[13px\] {
    font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
    color: #4a3c2a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
}
/* 下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
    color: #8b7355 !important;
    transition: transform 0.3s ease !important;
}
#ai-model-selector .group.flex.items-center:hover svg {
    color: #5c4a32 !important;
    transform: translateY(2px) !important;
}
/* 设置按钮 */
#header-setting-button {
    background: linear-gradient(145deg, #f5f0e1 0%, #e8e0c8 100%) !important;
    border: 1px solid #c4b59d !important;
    border-radius: 50% !important;
    color: #6b5a45 !important;
    transition: all 0.3s ease !important;
    box-shadow: 2px 2px 4px rgba(92, 74, 50, 0.1) !important;
}
#header-setting-button:hover {
    background: linear-gradient(145deg, #fff9ec 0%, #f0e9d8 100%) !important;
    border-color: #a08060 !important;
    color: #4a3c2a !important;
    transform: rotate(30deg) !important;
}
/* ═══════════════════════════════════════════
   二、开场白选择器美化
   ═══════════════════════════════════════════ */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"],
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]) {
    background: linear-gradient(145deg, #faf6eb 0%, #f0e9d8 100%) !important;
    border: 1px solid #c4b59d !important;
    box-shadow: 2px 2px 6px rgba(92, 74, 50, 0.12) !important;
    transition: all 0.3s ease !important;
}
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover,
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]):hover {
    background: linear-gradient(145deg, #fff9ec 0%, #f5eedc 100%) !important;
    border-color: #a08060 !important;
    box-shadow: 3px 3px 8px rgba(92, 74, 50, 0.18) !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: #8b7355 !important;
    transition: color 0.3s ease !important;
}
div.flex.items-center.h-9.cursor-pointer.group:hover svg {
    color: #5c4a32 !important;
}
/* ═══════════════════════════════════════════
   三、按钮栏美化
   ═══════════════════════════════════════════ */
#ai-mod-button2 {
    background: transparent !important;
}
#ai-mod-button2 button.MuiButton-root {
    background: linear-gradient(
        145deg,
        #f5f0e1 0%,
        #ebe4d1 50%,
        #e0d7c0 100%
    ) !important;
    border: 1px solid #c4b59d !important;
    border-radius: 6px !important;
    color: #5c4a32 !important;
    font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
    padding: 6px 16px !important;
    box-shadow: 
        2px 2px 4px rgba(92, 74, 50, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}
#ai-mod-button2 button.MuiButton-root::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover::before {
    left: 100% !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
    background: linear-gradient(
        145deg,
        #fff9ec 0%,
        #f5eedc 50%,
        #ebe4d1 100%
    ) !important;
    border-color: #a08060 !important;
    color: #3d2e1a !important;
    box-shadow: 
        3px 3px 8px rgba(92, 74, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
    color: #8b7355 !important;
    transition: color 0.3s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover svg {
    color: #5c4a32 !important;
}
.ui-beautifier-container {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  background: #fdfaf5;
  border: 2px solid #5a3e1b;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  line-height: 1.8;
  color: #2b2110;
  box-shadow: 0 0 15px rgba(90, 62, 27, 0.5);
}
.section {
  border: 2px solid #c2a875;
  margin-bottom: 25px;
  background: linear-gradient(to bottom, #fdfaf5 0%, #faf3e6 100%);
  box-shadow: inset 0 0 12px rgba(144, 120, 72, 0.15);
  border-radius: 8px;
}
.section-title {
  background: #e7ddb6;
  padding: 8px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px dashed #8b5e34;
  font-size: 16px;
  letter-spacing: 1px;
}
.status-bar {
  background: #fbf6ef;
  border: 2px solid #c2a875;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(102, 85, 46, 0.2);
}
.status-item {
  margin: 6px 0;
}

/* ═══════════════════════════════════════════
   四、底部栏美化
   ═══════════════════════════════════════════ */
/* 底部栏渐变背景 */
.bg-gradient-to-t {
    background: linear-gradient(
        to top,
        #f5f0e1 0%,
        #f8f4e8 60%,
        rgba(248, 244, 232, 0.95) 80%,
        transparent 100%
    ) !important;
}
/* 输入框容器 */
#ai-chat-bottom-input {
    background: linear-gradient(
        145deg,
        #fdfaf2 0%,
        #f5f0e1 50%,
        #ebe4d1 100%
    ) !important;
    border: 2px solid #c4b59d !important;
    border-radius: 12px !important;
    box-shadow: 
        inset 2px 2px 6px rgba(92, 74, 50, 0.08),
        4px 4px 12px rgba(92, 74, 50, 0.1) !important;
    position: relative !important;
}
/* 输入框容器装饰边角 */
#ai-chat-bottom-input::before {
    content: "◈" !important;
    position: absolute !important;
    top: -8px !important;
    left: 20px !important;
    font-size: 12px !important;
    color: #a08060 !important;
    background: #f5f0e1 !important;
    padding: 0 6px !important;
}
#ai-chat-bottom-input::after {
    content: "◈" !important;
    position: absolute !important;
    top: -8px !important;
    right: 20px !important;
    font-size: 12px !important;
    color: #a08060 !important;
    background: #f5f0e1 !important;
    padding: 0 6px !important;
}
/* 主输入框 */
#ai-chat-input {
    background: transparent !important;
    color: #3d2e1a !important;
    font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    letter-spacing: 1px !important;
}
/* 占位符 */
#ai-chat-input::placeholder {
    color: #a09080 !important;
    font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
    font-style: italic !important;
}
/* 文字选中效果 */
#ai-chat-input::selection {
    background: rgba(139, 115, 85, 0.3) !important;
    color: #3d2e1a !important;
}
/* ═══════════════════════════════════════════
   五、分页栏美化
   ═══════════════════════════════════════════ */
/* 分页按钮通用 */
.MuiPaginationItem-root {
    background: linear-gradient(145deg, #f5f0e1 0%, #ebe4d1 100%) !important;
    border: 1px solid #c4b59d !important;
    color: #5c4a32 !important;
    font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
    transition: all 0.3s ease !important;
}
.MuiPaginationItem-root:hover {
    background: linear-gradient(145deg, #fff9ec 0%, #f5eedc 100%) !important;
    border-color: #a08060 !important;
    color: #3d2e1a !important;
    box-shadow: 2px 2px 6px rgba(92, 74, 50, 0.15) !important;
}
/* 选中状态 - 仿印章效果 */
.MuiPaginationItem-root.Mui-selected {
    background: linear-gradient(145deg, #8b4513 0%, #a0522d 50%, #8b4513 100%) !important;
    border: 1px solid #5c3317 !important;
    color: #faf6eb !important;
    box-shadow: 
        inset 1px 1px 2px rgba(0, 0, 0, 0.2),
        2px 2px 4px rgba(92, 74, 50, 0.2) !important;
}
/* 禁用状态 */
.MuiPaginationItem-root.Mui-disabled {
    background: #e8e0c8 !important;
    border-color: #d4c9b0 !important;
    color: #b0a090 !important;
    opacity: 0.7 !important;
}
/* 翻页箭头 */
.MuiPaginationItem-icon {
    color: #8b7355 !important;
}
.MuiPaginationItem-root:hover .MuiPaginationItem-icon {
    color: #5c4a32 !important;
}
/* 跳转区域 */
.MuiStack-root.css-1uwir8f {
    background: transparent !important;
}
.MuiStack-root.css-1uwir8f .MuiBox-root {
    color: #5c4a32 !important;
    font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
}
.MuiInputBase-input {
    background: #faf6eb !important;
    border: 1px solid #c4b59d !important;
    border-radius: 4px !important;
    color: #3d2e1a !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
}
/* ═══════════════════════════════════════════
   六、评论区美化
   ═══════════════════════════════════════════ */
/* 评论区主背景 - 宣纸纹理 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: 
        linear-gradient(
            135deg,
            #f8f4e8 0%,
            #f3edd9 25%,
            #f7f2e3 50%,
            #ebe4d1 75%,
            #f5f0e1 100%
        ) !important;
    border-top: 3px solid transparent !important;
    border-image: linear-gradient(
        90deg,
        transparent 0%,
        #c4b59d 15%,
        #8b7355 50%,
        #c4b59d 85%,
        transparent 100%
    ) 1 !important;
}
/* 顶部标题 - 书法风格 */
div.text-lg.font-bold {
    font-family: 'Ma Shan Zheng', 'STXingkai', cursive !important;
    color: #3d2e1a !important;
    font-size: 20px !important;
    letter-spacing: 4px !important;
    position: relative !important;
}
div.text-lg.font-bold::before {
    content: "『" !important;
    color: #8b7355 !important;
    margin-right: 4px !important;
}
div.text-lg.font-bold::after {
    content: "』" !important;
    color: #8b7355 !important;
    margin-left: 4px !important;
}
/* 个人评分文字 */
p.MuiTypography-body1.text-grey-600 {
    font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
    color: #6b5a45 !important;
    letter-spacing: 2px !important;
}
/* 评分星星 */
span.MuiRating-iconEmpty svg {
    color: #d4c9b0 !important;
}
span.MuiRating-iconFilled svg {
    color: #c9a227 !important;
    filter: drop-shadow(1px 1px 1px rgba(139, 115, 85, 0.3)) !important;
}
/* 评分数字 */
span.text-orange-500 {
    color: #b8860b !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
    font-weight: bold !important;
}
/* 输入框容器 */
div.flex.flex-col.border-gray-200 {
    border-color: #c4b59d !important;
    background: linear-gradient(145deg, #fdfaf2 0%, #f5f0e1 100%) !important;
    border-radius: 8px !important;
}
/* 评论输入框 */
textarea.rc-textarea {
    background: transparent !important;
    color: #3d2e1a !important;
    font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}
textarea.rc-textarea::placeholder {
    color: #a09080 !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
}
/* 字数统计 */
div.bg-gray-100.text-gray-500 {
    background: #ebe4d1 !important;
    color: #8b7355 !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
}
/* 发送按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(145deg, #8b4513 0%, #a0522d 100%) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background: linear-gradient(145deg, #a0522d 0%, #cd853f 100%) !important;
    transform: scale(1.05) !important;
    box-shadow: 2px 2px 8px rgba(139, 69, 19, 0.3) !important;
}
div[data-state="closed"] svg[data-icon="Send03"] {
    color: #faf6eb !important;
}
/* 分割线 */
div.style_divider__mW0YX {
    background: linear-gradient(
        90deg,
        transparent 0%,
        #c4b59d 20%,
        #8b7355 50%,
        #c4b59d 80%,
        transparent 100%
    ) !important;
    height: 1px !important;
}
/* 排序按钮 */
button.MuiButton-containedPrimary {
    background: linear-gradient(145deg, #8b4513 0%, #a0522d 100%) !important;
    color: #faf6eb !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
    border: none !important;
    box-shadow: 2px 2px 4px rgba(92, 74, 50, 0.2) !important;
}
button.MuiButton-outlinedPrimary {
    background: #f5f0e1 !important;
    color: #5c4a32 !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
    border: 1px solid #c4b59d !important;
}
button.MuiButton-outlinedPrimary:hover {
    background: #ebe4d1 !important;
    border-color: #a08060 !important;
}
/* 评论列表容器 */
div.p-3.overflow-y-auto {
    background: transparent !important;
}
/* 评论项 */
div.group.ml-0 {
    background: linear-gradient(145deg, #fdfaf2 0%, #f8f4e8 100%) !important;
    border: 1px solid #e0d7c0 !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    box-shadow: 2px 2px 6px rgba(92, 74, 50, 0.08) !important;
    transition: all 0.3s ease !important;
}
div.group.ml-0:hover {
    border-color: #c4b59d !important;
    box-shadow: 3px 3px 10px rgba(92, 74, 50, 0.12) !important;
}
/* 用户头像 */
div.group img.rounded-full {
    border: 2px solid #c4b59d !important;
    box-shadow: 2px 2px 4px rgba(92, 74, 50, 0.15) !important;
}
/* 用户名 */
div.text-sm.text-grey-600 span.font-bold {
    font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
    color: #4a3c2a !important;
    font-size: 14px !important;
}
/* "（你）"标签 */
span.text-\[10px\] {
    background: linear-gradient(145deg, #c9a227 0%, #daa520 100%) !important;
    color: #3d2e1a !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
}
/* 评论内容 */
div.break-all {
    font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
    color: #4a3c2a !important;
    line-height: 1.8 !important;
    letter-spacing: 0.5px !important;
}
/* 时间戳 */
div.text-xs.text-grey-600 {
    color: #a09080 !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
}
/* 点赞按钮 */
button.text-gray-400 {
    color: #a09080 !important;
    transition: all 0.3s ease !important;
}
button.text-gray-400:hover {
    color: #c9a227 !important;
}
button.text-gray-400 svg {
    transition: transform 0.3s ease !important;
}
button.text-gray-400:hover svg {
    transform: scale(1.2) !important;
}
/* 回复文字 */
span.cursor-pointer {
    color: #8b7355 !important;
    font-family: 'ZCOOL XiaoWei', serif !important;
    transition: color 0.3s ease !important;
}
span.cursor-pointer:hover {
    color: #5c4a32 !important;
}
/* 回复区域边框 */
div.ml-8.border-l {
    border-color: #d4c9b0 !important;
}
div[class*="w-full"][class*="bg-white"][class*="bottom-0"]::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5 Q35 15 30 25 Q25 15 30 5' fill='none' stroke='%23c4b59d' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") !important;
    opacity: 0.15 !important;
    pointer-events: none !important;
}
#ai-mod-button2 button.MuiButton-root {
    border: 2px dashed #a08060 !important;
    border-style: double !important;
}
/* 侧边标签按钮 */
.xianxia-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.xianxia-sidebar * {
  box-sizing: border-box;
}
/* 隐藏checkbox */
.xianxia-sidebar .tab-toggle {
  display: none;
}
/* XXX */
.section {
  border: 2px solid #c2a875;
  margin-bottom: 25px;
  background: linear-gradient(to bottom, #fdfaf5 0%, #faf3e6 100%);
  box-shadow: inset 0 0 12px rgba(144, 120, 72, 0.15);
  border-radius: 8px;
}
.section-title {
  background: #e7ddb6;
  padding: 8px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px dashed #8b5e34;
  font-size: 16px;
  letter-spacing: 1px;
}
.section-body {
  padding: 15px 20px;
  font-size: 15px;
  color: #31291d;
}
.section-body p {
  margin: 8px 0;
}
.dropdown-list {
  max-width: 600px;
  margin: 20px auto;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  color: #2b2110;
}
/* 隐藏 Checkbox */
.dropdown-item input {
  display: none;
}
/* 标签标题效果 */
.dropdown-label {
  display: block;
  background: #e7ddb6;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #c2a875;
  border-radius: 6px;
  margin-bottom: 6px;
  position: relative;
  box-shadow: 0 2px 6px rgba(90,62,27,0.2);
  transition: background 0.3s;
}
.dropdown-label:hover {
  background: #dacc9a;
}
/* label前添加箭头 */
.dropdown-label::before {
  content: "▶ ";
  font-size: 14px;
  transition: transform 0.3s;
}
/* 内容区默认收起 */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, #fdfaf5, #faf3e6);
  border-left: 2px solid #c2a875;
  border-right: 2px solid #c2a875;
  border-bottom: 2px solid #c2a875;
  border-radius: 0 0 6px 6px;
  padding: 0 16px;
  transition: max-height 0.5s ease, padding 0.5s ease;
}
/* 展开效果 */
.dropdown-item input:checked ~ .dropdown-content {
  max-height: 300px;
  padding: 12px 16px;
}
/* 箭头翻转 */
.dropdown-item input:checked + .dropdown-label::before {
  transform: rotate(90deg);
}
.role-info-container {
  max-width: 750px;
  margin: 25px auto;
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  color: #2b2110;
}
/* 下拉整体 */
.role-info {
  border: 2px solid #8b5e34;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fdfaf5, #f8f0dc);
  box-shadow: 0 2px 8px rgba(90, 62, 27, 0.35);
  overflow: hidden;
}
/* summary 标题 */
.role-info summary {
  cursor: pointer;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: bold;
  background: #e7ddb6;
  text-align: center;
  border-bottom: 2px dashed #a37b44;
  transition: background 0.3s ease;
}
.role-info summary:hover {
  background: #d4c190;
}
/* 展开内容 */
.role-info-content {
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.7;
}
/* 分区标题 */
.info-section {
  margin-bottom: 15px;
  padding: 8px 12px;
  border: 1px solid #c2a875;
  background: #fffdf8;
  border-radius: 5px;
  box-shadow: inset 0 0 8px rgba(144, 120, 72, 0.2);
}
.section-title {
  font-weight: bold;
  text-align: center;
  color: #4a351f;
  margin-bottom: 8px;
  font-size: 15px;
  border-bottom: 1px dashed #a37b44;
  padding-bottom: 3px;
}
/* 悬浮按钮位置 */
.floating-summary {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  z-index: 999;
}
/* summary 按钮样式 */
.floating-summary summary {
  cursor: pointer;
  background: #e7ddb6;
  border: 2px solid #8b5e34;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(50, 35, 18, 0.4);
  list-style: none;
  text-align: center;
  transition: background 0.3s ease;
}
.floating-summary summary:hover {
  background: #d4c190;
}
/* 通用字体 */
.floating-role-info, .floating-summary {
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  z-index: 999;
}
/* ====== 个人角色信息悬浮窗（在总结区上方一点） ====== */
.floating-role-info {
  position: fixed;
  bottom: 110px;   /* ⬅️ 比总结区更高一些，保持间隔 */
  right: 20px;
}
/* summary 按钮样式（个人角色信息） */
.floating-role-info summary {
  cursor: pointer;
  background: #e7ddb6;
  border: 2px solid #8b5e34;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 6px rgba(50, 35, 18, 0.4);
  list-style: none;
  transition: background 0.3s ease;
}
.floating-role-info summary:hover {
  background: #d4c190;
}
/* 隐藏小三角 */
.floating-role-info summary::-webkit-details-marker {
  display: none;
}
/* 悬浮窗内容 */
.role-info-content {
  position: absolute;
  bottom: 45px;
  right: 0;
  width: 300px;
  max-height: 420px;
  overflow-y: auto;
  background: #fdfaf5;
  border: 2px solid #8b5e34;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(90, 62, 27, 0.5);
  padding: 15px;
  font-size: 14px;
  line-height: 1.65;
  display: none;
}
/* 展开时显示悬浮窗 */
.floating-role-info details[open] .role-info-content {
  display: block;
}
/* 分区样式 */
.info-section {
  margin-bottom: 12px;
  padding: 6px 8px;
  border: 1px solid #c2a875;
  border-radius: 5px;
  background: #fffdf8;
  box-shadow: inset 0 0 6px rgba(144, 120, 72, 0.2);
}
.section-title {
  font-weight: bold;
  text-align: center;
  color: #4a351f;
  margin-bottom: 6px;
  font-size: 14px;
  border-bottom: 1px dashed #a37b44;
  padding-bottom: 2px;
}
/* ====== 总结区悬浮窗（靠下） ====== */
.floating-summary {
  position: fixed;
  bottom: 20px; /* 紧贴底部 */
  right: 20px;
}
/* summary 样式（总结区按钮，与上面一致保持统一风格） */
.floating-summary summary {
  cursor: pointer;
  background: #e7ddb6;
  border: 2px solid #8b5e34;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 6px rgba(50, 35, 18, 0.4);
  list-style: none;
  transition: background 0.3s ease;
}
.floating-summary summary:hover {
  background: #d4c190;
}
.floating-summary summary::-webkit-details-marker {
  display: none;
}
/* 浮窗内容 */
.summary-content {
  position: absolute;
  bottom: 45px;
  right: 0;
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: #fdfaf5;
  border: 2px solid #8b5e34;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(90, 62, 27, 0.5);
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.floating-summary details[open] .summary-content {
  display: block;
}
/* ========= 互动角色信息悬浮窗 ========= */
.floating-interaction {
  position: fixed;
  bottom: 185px;   /* ← 距离底部比个人信息高一点，刚好紧贴 */
  right: 20px;
  font-family: "KaiTi","STKaiti","Songti SC",serif;
  z-index: 1;      /* 默认为最底层 */
}
/* summary 按钮 */
.floating-interaction summary {
  cursor: pointer;
  background: #e7ddb6;
  border: 2px solid #8b5e34;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 6px rgba(50, 35, 18, 0.4);
  list-style: none;
  transition: background 0.3s ease;
}
.floating-interaction summary:hover {
  background: #d4c190;
}
.floating-interaction summary::-webkit-details-marker {
  display: none;
}
/* 浮窗主体 */
.interaction-content {
  position: absolute;
  bottom: 45px;
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: #fdfaf5;
  border: 2px solid #8b5e34;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(90,62,27,0.35);
  padding: 12px;
  font-size: 14px;
  line-height: 1.65;
  display: none;
  z-index: 1;   /* 展开时依旧处于最下方 */
}
/* 展开时显示 */
.floating-interaction details[open] .interaction-content {
  display: block;
}
/* 内部分区 */
.info-section {
  margin-bottom: 12px;
  padding: 6px 8px;
  border: 1px solid #c2a875;
  border-radius: 5px;
  background: #fffdf8;
  box-shadow: inset 0 0 6px rgba(144,120,72,0.2);
}
.section-title {
  font-weight: bold;
  text-align: center;
  color: #4a351f;
  margin-bottom: 6px;
  font-size: 14px;
  border-bottom: 1px dashed #a37b44;
  padding-bottom: 2px;
}.ui-beautifier-container {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  background: #fdfaf5;
  border: 2px solid #5a3e1b;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  line-height: 1.8;
  color: #2b2110;
  box-shadow: 0 0 15px rgba(90, 62, 27, 0.5);
}
.status-bar {
  background: #fbf6ef;
  border: 2px solid #c2a875;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(102, 85, 46, 0.2);
}
.status-item {
  margin: 6px 0;
}
.story-content {
  background: #fffdf8;
  border-left: 4px solid #8b5e34;
  padding: 15px;
  font-size: 15px;
  margin-bottom: 25px;
}
.section {
  border: 2px solid #c2a875;
  margin-bottom: 25px;
  background: linear-gradient(to bottom, #fdfaf5 0%, #faf3e6 100%);
  box-shadow: inset 0 0 12px rgba(144, 120, 72, 0.15);
  border-radius: 8px;
}
.section-title {
  background: #e7ddb6;
  padding: 8px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px dashed #8b5e34;
  font-size: 16px;
  letter-spacing: 1px;
}
.section-body {
  padding: 15px 20px;
  font-size: 15px;
  color: #31291d;
}
.section-body p {
  margin: 8px 0;
}
.dropdown-list {
  max-width: 600px;
  margin: 20px auto;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  color: #2b2110;
}
/* 隐藏 Checkbox */
.dropdown-item input {
  display: none;
}
/* 标签标题效果 */
.dropdown-label {
  display: block;
  background: #e7ddb6;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #c2a875;
  border-radius: 6px;
  margin-bottom: 6px;
  position: relative;
  box-shadow: 0 2px 6px rgba(90,62,27,0.2);
  transition: background 0.3s;
}
.dropdown-label:hover {
  background: #dacc9a;
}
/* label前添加箭头 */
.dropdown-label::before {
  content: "▶ ";
  font-size: 14px;
  transition: transform 0.3s;
}
/* 内容区默认收起 */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, #fdfaf5, #faf3e6);
  border-left: 2px solid #c2a875;
  border-right: 2px solid #c2a875;
  border-bottom: 2px solid #c2a875;
  border-radius: 0 0 6px 6px;
  padding: 0 16px;
  transition: max-height 0.5s ease, padding 0.5s ease;
}
/* 展开效果 */
.dropdown-item input:checked ~ .dropdown-content {
  max-height: 300px;
  padding: 12px 16px;
}
/* 箭头翻转 */
.dropdown-item input:checked + .dropdown-label::before {
  transform: rotate(90deg);
}
.role-info-container {
  max-width: 750px;
  margin: 25px auto;
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  color: #2b2110;
}
/* 下拉整体 */
.role-info {
  border: 2px solid #8b5e34;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fdfaf5, #f8f0dc);
  box-shadow: 0 2px 8px rgba(90, 62, 27, 0.35);
  overflow: hidden;
}
/* summary 标题 */
.role-info summary {
  cursor: pointer;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: bold;
  background: #e7ddb6;
  text-align: center;
  border-bottom: 2px dashed #a37b44;
  transition: background 0.3s ease;
}
.role-info summary:hover {
  background: #d4c190;
}
/* 展开内容 */
.role-info-content {
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.7;
}
/* 分区标题 */
.info-section {
  margin-bottom: 15px;
  padding: 8px 12px;
  border: 1px solid #c2a875;
  background: #fffdf8;
  border-radius: 5px;
  box-shadow: inset 0 0 8px rgba(144, 120, 72, 0.2);
}
.section-title {
  font-weight: bold;
  text-align: center;
  color: #4a351f;
  margin-bottom: 8px;
  font-size: 15px;
  border-bottom: 1px dashed #a37b44;
  padding-bottom: 3px;
}
/* 悬浮按钮位置 */
.floating-summary {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  z-index: 999;
}
/* summary 按钮样式 */
.floating-summary summary {
  cursor: pointer;
  background: #e7ddb6;
  border: 2px solid #8b5e34;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(50, 35, 18, 0.4);
  list-style: none;
  text-align: center;
  transition: background 0.3s ease;
}
.floating-summary summary:hover {
  background: #d4c190;
}
/* 通用字体 */
.floating-role-info, .floating-summary {
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  z-index: 999;
}
/* --- 以下是您提供的核心CSS --- */
/* 为演示添加的基础样式 */
.ctn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: #343a40;
  max-width: 600px;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 16px;
}
/* 应用工具提示的元素的基础样式 (已按要求修改) */
.tooltip-container {
  position: relative; /* 这是伪元素定位的关键 */
  cursor: pointer;
  color: inherit; /* 字体颜色保持不变 */
  font-weight: 600;
  border-bottom: 2px solid #d9534f; /* 红色实线底线 */
  padding-bottom: 2px;
}

/* 应用工具提示的元素的基础样式 */
.tooltip-container {
  position: relative;
  cursor: pointer;
  color: inherit;
  font-weight: 600;
  border-bottom: 2px solid #d9534f;
  padding-bottom: 2px;
}

/* 工具提示框样式 - 智能换行版本 */
.tooltip-container::after {
  content: attr(title);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  /* 改为自动换行，限制最大宽度 */
  white-space: normal;
  max-width: min(280px, 80vw); /* 最大280px或80%视口宽度 */
  min-width: 100px;
  /* 米白色背景和边框 */
  background-color: #f5f5dc;
  color: #333;
  border: 1px solid #e0d8b0;
  border-radius: 8px;
  /* 阴影效果 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* 内边距 */
  padding: 8px 12px;
  /* 字体 */
  font-size: 14px;
  line-height: 1.5;
  /* 隐藏并设置过渡效果 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* 确保在最上层 */
  z-index: 1000;
  text-align: center;
  word-wrap: break-word;
  word-break: break-all;
}

/* 工具提示箭头 */
.tooltip-container::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  /* 三角形箭头 */
  border-width: 6px;
  border-style: solid;
  border-color: #e0d8b0 transparent transparent transparent;
  /* 隐藏并设置过渡效果 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1001;
}

/* 悬停时显示工具提示 */
.tooltip-container:hover::after,
.tooltip-container:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 防止超出屏幕左侧 */
.tooltip-container:first-child::after,
.tooltip-container:nth-child(-n+3)::after {
  left: 0;
  transform: translateX(0) translateY(4px);
}

.tooltip-container:first-child:hover::after,
.tooltip-container:nth-child(-n+3):hover::after {
  transform: translateX(0) translateY(0);
}

.tooltip-container:first-child::before,
.tooltip-container:nth-child(-n+3)::before {
  left: 20px;
  transform: translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tooltip-container::after {
    max-width: min(240px, 85vw);
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .tooltip-container::after {
    max-width: min(200px, 90vw);
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* ===== 隐藏默认加载动画 ===== */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}
/* ===== 聊天框背景美化 - 纯白+宣纸边缘渐变 ===== */
.bg-gray-100\/90.relative.inline-block {
    background: 
        linear-gradient(to right, 
            rgba(215, 200, 180, 0.5) 0%, 
            rgba(215, 200, 180, 0.2) 2%, 
            transparent 5%, 
            transparent 95%, 
            rgba(215, 200, 180, 0.2) 98%, 
            rgba(215, 200, 180, 0.5) 100%
        ),
        #FFFFFF !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(180, 160, 140, 0.15) !important;
}
/* ===== 加载动画容器重构 ===== */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 100% !important;
    min-height: 150px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 15px 20px !important;
    gap: 25px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
/* ===== 左侧GIF图片 ===== */
.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    display: block !important;
    order: 1 !important;
    width: 155px !important;
    height: 155px !important;
    min-width: 155px !important;
    min-height: 155px !important;
    max-width: 155px !important;
    max-height: 155px !important;
    background-image: url("https://i.postimg.cc/zfxRyF19/1769970466718.gif") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}
/* ===== 右侧文字区域（电脑版） ===== */
.flex.items-center.justify-center.w-6.h-5::after {
    content: "等待有点无聊，来看佩丽卡跳舞吧\A(如果看到这玩意摇半天还不出字请重新刷新，也可能是破甲不行要加mod)\A推荐记忆调至2，不推荐开黑夜模式与无图模式" !important;
    display: block !important;
    white-space: pre-wrap !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #5a5a5a !important;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
    text-align: left !important;
    flex: 1 !important;
    order: 2 !important;
    margin-left: 20px !important;
    padding-right: 10px !important;
}
/* ===== 隐藏顶部颜色条 ===== */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* ===== 确保文本可读性 ===== */
.markdown-body {
    color: #333333 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
}
/* ===== 移动端适配（横向布局） ===== */
@media (max-width: 480px) {
    .flex.items-center.justify-center.w-6.h-5 {
        flex-direction: row !important;
        min-height: 100px !important;
        padding: 12px 10px !important;
        gap: 15px !important;
    }
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
        margin-left: 5px !important;
    }
    .flex.items-center.justify-center.w-6.h-5::after {
        font-size: 11px !important;
        line-height: 1.5 !important;
        margin-left: 10px !important;
        padding-right: 5px !important;
        text-align: left !important;
    }
}
/* ═══════════════════════════════════════════════════════════════
   🌿 灵草秘录·下拉清单风格 🌿
   已排除侧边栏 .b 元素，与修仙侧边栏互不干扰
   ═══════════════════════════════════════════════════════════════ */
/* 下拉清单容器 - 竹简卷轴 */
.markdown-body details:not(.b) {
  background: 
    linear-gradient(135deg,
      rgba(139, 90, 43, 0.05) 0%,
      rgba(210, 180, 140, 0.1) 50%,
      rgba(139, 90, 43, 0.05) 100%),
    linear-gradient(180deg,
      #faf6f0 0%,
      #f5ebe0 100%) !important;
  border: 1px solid rgba(139, 90, 43, 0.3) !important;
  border-radius: 8px !important;
  margin: 1em 0 !important;
  padding: 0 !important;
  box-shadow: 
    0 2px 8px rgba(139, 90, 43, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* 下拉清单hover */
.markdown-body details:not(.b):hover {
  border-color: rgba(139, 90, 43, 0.5) !important;
  box-shadow: 
    0 4px 16px rgba(139, 90, 43, 0.18),
    0 0 20px rgba(218, 165, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
/* 展开状态 */
.markdown-body details:not(.b)[open] {
  background: 
    linear-gradient(135deg,
      rgba(139, 90, 43, 0.03) 0%,
      rgba(210, 180, 140, 0.08) 50%,
      rgba(139, 90, 43, 0.03) 100%),
    linear-gradient(180deg,
      #fdfaf5 0%,
      #f8f0e5 100%) !important;
  box-shadow: 
    0 4px 20px rgba(139, 90, 43, 0.15),
    0 0 30px rgba(218, 165, 32, 0.1),
    inset 0 0 40px rgba(255, 255, 255, 0.3) !important;
}
/* 标题栏 - 仙门卷首 */
.markdown-body details:not(.b) > summary {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
  background: 
    linear-gradient(180deg,
      rgba(139, 90, 43, 0.08) 0%,
      rgba(180, 130, 70, 0.05) 50%,
      rgba(139, 90, 43, 0.12) 100%) !important;
  border-bottom: 1px solid rgba(139, 90, 43, 0.15) !important;
  cursor: pointer !important;
  font-family: "STKaiti", "KaiTi", "楷体", serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #6b4423 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  list-style: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}
/* 隐藏默认三角 */
.markdown-body details:not(.b) > summary::-webkit-details-marker {
  display: none !important;
}
.markdown-body details:not(.b) > summary::marker {
  display: none !important;
  content: "" !important;
}
/* 自定义展开图标 - 太极符文 */
.markdown-body details:not(.b) > summary::before {
  content: "☯" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin-right: 10px !important;
  font-size: 16px !important;
  color: #8b5a2b !important;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(245, 230, 200, 0.6) 100%) !important;
  border: 1px solid rgba(139, 90, 43, 0.3) !important;
  border-radius: 50% !important;
  box-shadow: 
    0 1px 3px rgba(139, 90, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
}
/* 展开时图标旋转发光 */
.markdown-body details:not(.b)[open] > summary::before {
  transform: rotate(180deg) !important;
  color: #b8860b !important;
  background: linear-gradient(145deg, 
    rgba(255, 215, 0, 0.2) 0%, 
    rgba(245, 230, 200, 0.8) 100%) !important;
  box-shadow: 
    0 2px 8px rgba(218, 165, 32, 0.4),
    0 0 15px rgba(218, 165, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
/* 标题右侧装饰 */
.markdown-body details:not(.b) > summary::after {
  content: "❧" !important;
  position: absolute !important;
  right: 16px !important;
  font-size: 14px !important;
  color: rgba(139, 90, 43, 0.4) !important;
  transition: all 0.3s ease !important;
}
.markdown-body details:not(.b)[open] > summary::after {
  content: "❦" !important;
  color: rgba(184, 134, 11, 0.6) !important;
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.4) !important;
}
/* 标题hover */
.markdown-body details:not(.b) > summary:hover {
  background: 
    linear-gradient(180deg,
      rgba(139, 90, 43, 0.12) 0%,
      rgba(180, 130, 70, 0.08) 50%,
      rgba(139, 90, 43, 0.15) 100%) !important;
  color: #5a3a1a !important;
}
.markdown-body details:not(.b) > summary:hover::before {
  transform: scale(1.1) !important;
  box-shadow: 
    0 2px 6px rgba(139, 90, 43, 0.3),
    0 0 10px rgba(218, 165, 32, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
/* 展开时hover特效 */
.markdown-body details:not(.b)[open] > summary:hover::before {
  transform: rotate(180deg) scale(1.1) !important;
}
/* 内容区 - 秘籍内文 */
.markdown-body details:not(.b) > *:not(summary) {
  padding: 16px 20px !important;
  color: #5d4e37 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  animation: unfurlScroll 0.4s ease-out !important;
}
/* 内容区首段 */
.markdown-body details:not(.b) > p:first-of-type {
  margin-top: 0 !important;
}
/* 卷轴展开动画 */
@keyframes unfurlScroll {
  0% {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
  }
}
/* 内容区分隔线装饰 */
.markdown-body details:not(.b)[open] > summary {
  border-bottom: 1px solid rgba(139, 90, 43, 0.25) !important;
  position: relative !important;
}
.markdown-body details:not(.b)[open] > summary::before {
  content: "☯" !important;
}
.a{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-58%);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0;
  z-index:2147483647;
  pointer-events:none;
  font-family:"STKaiti","KaiTi","楷体","Noto Serif SC","SimSun",serif;
}
.b{
  position:relative;
  pointer-events:auto;
  z-index:2147483640;
  transition:z-index 0s;
  flex-shrink:0;
}
.b[open]{
  z-index:2147483647;
}
.b:nth-of-type(1){ margin-bottom:1px; }
.b:nth-of-type(2){ margin-bottom:1px; }
.b:nth-of-type(3){ margin-bottom:1px; }
.b:nth-of-type(4){ margin:0; }
.c{
  writing-mode:vertical-rl;
  text-orientation:upright;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 8px;
  letter-spacing:0.2em;
  font-size:15px;
  font-weight:700;
  color:#5a3e1b;
  background:
    linear-gradient(135deg,
      rgba(234,221,195,0.97) 0%,
      rgba(215,198,166,0.95) 40%,
      rgba(234,221,195,0.97) 60%,
      rgba(205,186,153,0.93) 100%);
  border-left:3px solid #b8956a;
  border-top:1px solid rgba(184,149,106,0.4);
  border-bottom:1px solid rgba(184,149,106,0.4);
  box-shadow:
    -3px 0 12px rgba(90,62,27,0.15),
    inset 0 0 20px rgba(255,248,235,0.5),
    inset -1px 0 8px rgba(184,149,106,0.2);
  text-shadow:
    0 0 6px rgba(184,149,106,0.3),
    1px 1px 0 rgba(255,248,235,0.6);
  position:relative;
  overflow:hidden;
  transition:all 0.3s ease;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.c::-webkit-details-marker{display:none;}
.c::marker{display:none;content:"";}
.c::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(184,149,106,0.04) 3px,
      rgba(184,149,106,0.04) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 5px,
      rgba(184,149,106,0.03) 5px,
      rgba(184,149,106,0.03) 6px
    );
  pointer-events:none;
  z-index:1;
}
.c:hover{
  color:#8b4513;
  background:
    linear-gradient(135deg,
      rgba(244,233,210,0.98) 0%,
      rgba(228,212,182,0.97) 40%,
      rgba(244,233,210,0.98) 60%,
      rgba(218,200,168,0.95) 100%);
  border-left-color:#8b4513;
  box-shadow:
    -5px 0 18px rgba(139,69,19,0.2),
    inset 0 0 25px rgba(255,248,235,0.6),
    0 0 12px rgba(184,149,106,0.15);
  text-shadow:
    0 0 10px rgba(139,69,19,0.25),
    0 0 20px rgba(184,149,106,0.15);
}
.b[open]>.c{
  color:#7b2d00;
  background:
    linear-gradient(135deg,
      rgba(248,238,218,0.99) 0%,
      rgba(235,220,192,0.98) 50%,
      rgba(248,238,218,0.99) 100%);
  border-left:4px solid #7b2d00;
  box-shadow:
    -6px 0 20px rgba(123,45,0,0.2),
    inset 0 0 30px rgba(255,248,235,0.7),
    0 0 15px rgba(184,149,106,0.2);
}
.c::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:4px;
  width:2px;
  height:0;
  background:linear-gradient(180deg,#b8956a,transparent);
  transition:height 0.3s;
  z-index:2;
}
.c:hover::after{height:12px;}
.d{
  position:absolute;
  right:100%;
  top:50%;
  transform:translateY(-50%);
  width:clamp(260px,42vw,400px);
  max-height:70vh;
  overflow-y:auto;
  overflow-x:hidden;
  z-index:2147483647;
  background:
    linear-gradient(170deg,
      rgba(245,237,220,0.98) 0%,
      rgba(234,221,195,0.97) 30%,
      rgba(225,210,183,0.96) 60%,
      rgba(234,221,195,0.97) 100%);
  border:2px solid #b8956a;
  border-right:none;
  border-radius:12px 0 0 12px;
  padding:20px 18px;
  box-shadow:
    -8px 0 30px rgba(90,62,27,0.18),
    inset 0 0 40px rgba(255,248,235,0.4),
    inset 0 2px 8px rgba(184,149,106,0.1);
  color:#3e2b0f;
  font-size:13.5px;
  line-height:1.75;
  animation:e 0.35s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.d::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184,149,106,0.03) 2px,
      rgba(184,149,106,0.03) 3px
    ),
    radial-gradient(
      ellipse at 20% 50%,
      rgba(184,149,106,0.06) 0%,
      transparent 70%
    );
  border-radius:12px 0 0 12px;
  pointer-events:none;
  z-index:0;
}
.d>*{position:relative;z-index:1;}
.d::-webkit-scrollbar{width:5px;}
.d::-webkit-scrollbar-track{background:rgba(184,149,106,0.1);border-radius:3px;}
.d::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#c4a26a,#b8956a,#a07840);
  border-radius:3px;
}
.d::-webkit-scrollbar-thumb:hover{background:#8b6914;}
.d::after{
  content:"✾ ✾ ✾";
  display:block;
  text-align:center;
  color:rgba(184,149,106,0.35);
  font-size:10px;
  letter-spacing:8px;
  margin-top:14px;
  position:relative;
  z-index:1;
}
@keyframes e{
  from{opacity:0;transform:translateY(-50%) translateX(15px);}
  to{opacity:1;transform:translateY(-50%) translateX(0);}
}
.f{
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#7b2d00;
  margin:0 0 14px 0;
  padding-bottom:10px;
  letter-spacing:0.15em;
  border-bottom:1px solid rgba(184,149,106,0.4);
  text-shadow:0 0 8px rgba(184,149,106,0.2);
  position:relative;
}
.f::after{
  content:"";
  position:absolute;
  bottom:-1px;
  left:50%;
  transform:translateX(-50%);
  width:60%;
  height:1px;
  background:linear-gradient(90deg,transparent,#b8956a,transparent);
}
.g{
  font-size:14px;
  font-weight:700;
  color:#5a3e1b;
  margin:12px 0 4px 0;
  padding-left:8px;
  border-left:3px solid #c4a26a;
  text-shadow:0 0 4px rgba(184,149,106,0.15);
}
.h{
  font-size:13px;
  color:#4a3520;
  margin:3px 0 3px 12px;
  line-height:1.7;
  word-break:break-all;
}
.i{
  display:inline;
  color:#b8956a;
  margin:0 4px;
  font-size:12px;
}
.j{
  border:none;
  border-top:1px dashed rgba(184,149,106,0.45);
  margin:10px 0;
}
.k{
  display:none;
}
.q{
  color:#8b4513;
  font-weight:700;
  font-size:13.5px;
}
.r{
  display:inline-block;
  background:linear-gradient(135deg,rgba(184,149,106,0.2),rgba(184,149,106,0.08));
  border:1px solid rgba(184,149,106,0.35);
  border-radius:4px;
  padding:1px 6px;
  font-size:11.5px;
  color:#6b4c1e;
  margin:0 2px;
  white-space:nowrap;
}
.s{
  font-size:12px;
  color:#6b5a3e;
  margin:2px 0 6px 20px;
  line-height:1.65;
  font-style:italic;
  opacity:0.88;
}
/* ===== 响应式 ===== */
@media(min-width:1401px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:400px;}
  .c{font-size:15px;padding:10px 8px;}
}
@media(min-width:1025px) and (max-width:1400px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:370px;}
  .c{font-size:14.5px;padding:9px 7px;}
}
@media(min-width:769px) and (max-width:1024px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:320px;}
  .c{font-size:13.5px;padding:8px 6px;letter-spacing:0.18em;}
}
@media(min-width:601px) and (max-width:768px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 50px);max-width:340px;}
  .c{font-size:12.5px;padding:7px 5px;letter-spacing:0.16em;border-left-width:2px;}
  .c:hover::after{height:8px;}
  .f{font-size:14.5px;}
  .g{font-size:13px;}
  .h{font-size:12.5px;}
  .s{font-size:11.5px;}
}
@media(min-width:481px) and (max-width:600px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 44px);max-width:310px;padding:16px 14px;max-height:65vh;}
  .c{font-size:11.5px;padding:6px 4px;letter-spacing:0.14em;border-left-width:2px;}
  .f{font-size:14px;margin-bottom:10px;padding-bottom:8px;}
  .g{font-size:12.5px;margin:9px 0 3px 0;}
  .h{font-size:12px;margin-left:8px;}
  .s{font-size:11px;margin-left:14px;}
  .r{font-size:10.5px;padding:1px 4px;}
}
@media(min-width:381px) and (max-width:480px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 38px);max-width:290px;padding:14px 12px;max-height:60vh;border-radius:10px 0 0 10px;}
  .c{font-size:11px;padding:5px 3px;letter-spacing:0.12em;border-left-width:2px;}
  .f{font-size:13.5px;letter-spacing:0.1em;}
  .g{font-size:12px;}
  .h{font-size:11.5px;}
  .s{font-size:10.5px;}
  .r{font-size:10px;padding:0 3px;}
}
@media(max-width:380px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 32px);max-width:260px;padding:12px 10px;max-height:58vh;border-radius:8px 0 0 8px;}
  .c{font-size:10px;padding:4px 3px;letter-spacing:0.1em;border-left-width:2px;}
  .f{font-size:12.5px;letter-spacing:0.08em;}
  .g{font-size:11.5px;padding-left:6px;border-left-width:2px;}
  .h{font-size:11px;margin-left:6px;}
  .s{font-size:10px;margin-left:10px;}
  .r{font-size:9.5px;padding:0 3px;}
  .d::-webkit-scrollbar{width:3px;}
}
@media(max-width:600px){
  .b[open]>.d{right:100%;max-width:calc(100vw - 36px);}
}
@media(max-width:600px){
  .b[open]::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(30,20,5,0.25);
    z-index:-1;
    animation:ac 0.25s ease forwards;
  }
  @keyframes ac{
    from{opacity:0;}
    to{opacity:1;}
  }
}
/* 替换原来的 .a 规则，增加以下内容 */
/* 当页面上有多个侧边栏时，非最后一个的 .a 降低 z-index */
.a:not(:last-of-type) {
  z-index: 2147483640;
}
/* 只有最后一个侧边栏保持最高层级 */
.a:last-of-type {
  z-index: 2147483647;
}
/* 关键：当旧侧边栏中有 details 处于 open 状态时，提升它的层级到最高，盖过新的 */
.a:not(:last-of-type):has(.b[open]) {
  z-index: 2147483647;
}
/* 同时，当旧侧边栏有 open 的 details 时，让新侧边栏降级，避免遮挡 */
.a:has(.b[open]) ~ .a:not(:has(.b[open])) {
  z-index: 2147483640;
}
/* 确保未展开状态下，旧侧边栏不会用 pointer-events 挡住新的 */
.a:not(:last-of-type):not(:has(.b[open])) {
  pointer-events: none;
}
.a:not(:last-of-type):not(:has(.b[open])) .b {
  pointer-events: auto;
}
/* 当旧侧边栏有展开项时，恢复完整交互 */
.a:not(:last-of-type):has(.b[open]) {
  pointer-events: auto;
}
/* ===== 横屏桌面优化 ===== */
/* 横屏且宽度>=1024px的桌面设备 */
@media (min-width:1024px) and (orientation:landscape) {
  /* 确保侧边栏容器不会超出视口右边 */
  .a {
    right: 0;
    max-width: 100vw;
    overflow: visible;
  }
  /* summary 按钮确保最小宽度，文字不被吞 */
  .c {
    min-width: 36px;
    box-sizing: border-box;
  }
  /* 展开面板：限制最大宽度不超过视口宽度减去按钮宽度 */
  .d {
    width: clamp(280px, 28vw, 420px);
    max-width: calc(100vw - 60px);
    max-height: 75vh;
  }
  /* 防止面板左侧溢出视口 */
  .b[open] > .d {
    max-width: calc(100vw - 50px);
  }
}
/* 超宽屏 >=1920px */
@media (min-width:1920px) {
  .d {
    width: clamp(320px, 22vw, 450px);
  }
  .c {
    font-size: 15px;
    padding: 11px 9px;
  }
}
/* 超宽屏 >=2560px，防止42vw过大 */
@media (min-width:2560px) {
  .d {
    width: clamp(350px, 18vw, 480px);
  }
}
/* 针对横屏但高度较矮的屏幕（如笔记本） */
@media (min-width:1024px) and (max-height:800px) {
  .a {
    transform: translateY(-50%);
  }
  .d {
    max-height: 65vh;
    padding: 16px 14px;
  }
  .c {
    padding: 7px 6px;
    font-size: 13.5px;
  }
}
/* 针对横屏但高度很矮的屏幕（如超宽带鱼屏） */
@media (min-width:1200px) and (max-height:600px) {
  .a {
    transform: translateY(-50%);
  }
  .d {
    max-height: 55vh;
    padding: 12px 10px;
  }
  .c {
    padding: 5px 4px;
    font-size: 12px;
    letter-spacing: 0.15em;
  }
  .f { font-size: 14px; }
  .g { font-size: 12.5px; }
  .h { font-size: 12px; }
  .s { font-size: 11px; }
}