/* 强制注入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');

/* 
 * =========================================
 *   ai风月 - 宣纸雅韵 主题 (用户精简版)
 *   设计: CSS元素美化助手
 *   功能: 仅保留核心四模块，古风化改造
 * =========================================
 */

/* 
 * ---------------------------------
 *   模块一：底部输入框
 * ---------------------------------
 */
#ai-chat-input {
    background-color: rgba(245, 240, 230, 0.8) !important; /* 宣纸底色，微透明 */
    border: 2px solid #6c5d4b !important; /* 沉香棕色边框 */
    color: #3a3a3a !important; /* 墨色文字 */
    border-radius: 10px !important;
    font-family: 'Noto Serif SC', serif !important;
    backdrop-filter: blur(3px) !important;
}

/* 
 * ---------------------------------
 *   模块二：输入框上方平台按钮
 * ---------------------------------
 */
.MuiButtonBase-root.MuiButton-root.MuiButton-default, 
.flex.items-center.gap-2.mb-4 button.px-3 {
    background: rgba(245, 240, 230, 0.7) !important; /* 宣纸底色 */
    color: #3a3a3a !important; /* 墨色文字 */
    border: 1px solid #6c5d4b !important; /* 沉香棕色边框 */
    border-radius: 8px !important;
    text-transform: none !important;
    font-family: 'Noto Serif SC', serif !important;
    font-weight: bold !important;
    box-shadow: 0 1px 3px rgba(108, 93, 75, 0.2) !important;
    transition: all 0.3s ease !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-default:hover, 
.flex.items-center.gap-2.mb-4 button.px-3:hover { 
    background: rgba(230, 220, 205, 0.9) !important; /* 悬停时颜色加深 */
    color: #000000 !important; 
    border-color: #3a3a3a !important;
    box-shadow: 0 1px 5px rgba(108, 93, 75, 0.4) !important; 
}

/* 
 * ---------------------------------
 *   模块三：模型选择器
 * ---------------------------------
 */
#ai-model-selector .group {
    background: rgba(245, 240, 230, 0.85) !important; /* 宣纸底色 */
    border: 1px solid #6c5d4b !important; /* 沉香棕色边框 */
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}
#ai-model-selector .group:hover { 
    box-shadow: 0 0 8px rgba(108, 93, 75, 0.4) !important; 
    border-color: #8b7d6b !important; /* 悬停时边框颜色变浅 */
}
#ai-model-selector .group *, #ai-model-selector .group { 
    color: #3a3a3a !important; /* 墨色文字 */
}

/* 
 * ---------------------------------
 *   模块四：评论区
 * ---------------------------------
 */
.sticky.top-0.my-0.mx-3.border-\[1\.5px\] {
    background: rgba(245, 240, 230, 0.7) !important; /* 宣纸底色 */
    border: 1px solid #6c5d4b !important; /* 沉香棕色边框 */
    backdrop-filter: blur(5px) !important;
    position: relative !important;
    padding-top: 25px !important;
    border-radius: 8px !important;
}
.sticky.top-0.my-0.mx-3.border-\[1\.5px\]::before {
    content: '清谈雅叙' !important; /* 更换为更具古风的文字 */
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #6c5d4b;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(108, 93, 75, 0.3);
    font-family: 'Noto Serif SC', serif !important;
}
.translate-y-0 .p-3.overflow-y-auto {
    background: rgba(245, 240, 230, 0.9) !important; /* 内部背景更实，便于阅读 */
}
        /* 
         * 字体注入功能已重置。
         * 在此行下方，填入您自己的字体注入代码。
         * 示例:
         * @import url('https://fonts.googleapis.com/css2?family=Your_Custom_Font&display=swap');
         * * { font-family: 'Your_Custom_Font', sans-serif !important; }
         */
        @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');
        * { font-family: 'Noto Serif SC', serif !important; }
        /* 以下为“星空卡”外观代码，请勿修改以保留正常功能 */
        #chat-ui-yhhyhh-magic-card {
            width: 320px;
            height: 100px;
            background: #000;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(71, 132, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        #chat-ui-yhhyhh-magic-card .stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: transparent;
            animation: move-stars-magic linear infinite;
        }
        #chat-ui-yhhyhh-magic-card .stars-sm {
            width: 1px;
            height: 1px;
            background: transparent;
            box-shadow: 15px 88px #FFF, 296px 33px #FFF, 129px 4px #FFF, 240px 62px #FFF, 5px 3px #FFF, 151px 51px #FFF, 313px 77px #FFF, 71px 86px #FFF, 20px 66px #FFF, 199px 98px #FFF, 274px 50px #FFF, 100px 10px #FFF, 45px 35px #FFF;
            animation-duration: 50s;
        }
        #chat-ui-yhhyhh-magic-card .stars-md {
            width: 2px;
            height: 2px;
            background: transparent;
            box-shadow: 251px 12px #FFF, 80px 41px #FFF, 182px 81px #FFF, 301px 29px #FFF, 50px 75px #FFF, 120px 90px #FFF, 200px 5px #FFF;
            animation-duration: 100s;
        }
        #chat-ui-yhhyhh-magic-card .stars-lg {
            width: 3px;
            height: 3px;
            background: transparent;
            box-shadow: 60px 20px #FFF, 220px 70px #FFF, 150px 50px #FFF;
            animation-duration: 150s;
        }
        @keyframes move-stars-magic {
            from { transform: translateY(-100px); }
            to { transform: translateY(100px); }
        }
        #chat-ui-yhhyhh-magic-card p {
            margin: 0;
            padding: 0 15px;
            color: #EAEAEA;
            font-size: 14px !important;
            text-align: center;
            line-height: 1.6 !important;
            z-index: 1;
            position: relative;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
            font-family: 'Noto Sans SC', sans-serif !important; /* 此处字体强制保留，以确保卡片信息正常显示 */
        }

[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
.bg-gray-100\/90.relative.inline-block {
    background-color: #fdfaf4 !important;
    border: 0.5px solid #d8c8b0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(216, 200, 176, 0.2) !important;
    padding: 12px !important;
    transition: box-shadow 0.3s ease !important;
    font-family: 'Noto Serif SC', serif !important;
}
.bg-gray-100\/90.relative.inline-block:hover {
    box-shadow: 0 4px 12px rgba(216, 200, 176, 0.3) !important;
}
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background: linear-gradient(145deg, #fdfaf4, #faf7f0) !important;
    border-left: 0.5px solid #c5a56d !important;
    margin-bottom: 8px !important;
}
.markdown-body {
    color: #4a3728 !important;
    font-size: 1em !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    background: linear-gradient(145deg, #a91e22, #c53030) !important;
    color: #fdfaf4 !important;
    border: 0.5px solid #a91e22 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    font-family: 'Noto Serif SC', serif !important;
    transition: all 0.3s ease !important;
    margin-right: 8px !important;
    box-shadow: 0 1px 4px rgba(169, 30, 34, 0.2) !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background: linear-gradient(145deg, #c53030, #e53e3e) !important;
    color: #fdfaf4 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(169, 30, 34, 0.3) !important;
}
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #7a6250 !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    font-family: 'Noto Serif SC', serif !important;
    background: rgba(216, 200, 176, 0.2) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 0.5px solid #d8c8b0 !important;
    margin-right: 8px !important;
}
.text-orange-500 {
    color: #c5a56d !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    font-family: 'Noto Serif SC', serif !important;
    background: linear-gradient(145deg, rgba(197, 165, 109, 0.2), rgba(216, 200, 176, 0.1)) !important;
    padding: 6px 12px !important;
    border: 0.5px solid #c5a56d !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(197, 165, 109, 0.2) !important;
    display: inline-block !important;
    margin-right: 8px !important;
}
.text-orange-500:hover {
    background: linear-gradient(145deg, rgba(197, 165, 109, 0.3), rgba(216, 200, 176, 0.2)) !important;
    color: #4a3728 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(197, 165, 109, 0.3) !important;
}
@media (max-width: 768px) {
    .bg-gray-100\/90.relative.inline-block {
        padding: 10px !important;
        margin: 4px !important;
    }
    .MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
    .MuiTypography-root.MuiTypography-body2.css-6c0gf2,
    .text-orange-500 {
        font-size: 0.8em !important;
        padding: 4px 8px !important;
        margin: 2px !important;
    }
    .markdown-body {
        font-size: 0.95em !important;
    }
}

.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;
}

/* ====== 个人角色信息悬浮窗（在总结区上方一点） ====== */
.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;
}

.gufeng-details {
  background: #faf7f2; /* 柔和米色背景 */
  border-radius: 10px; /* 圆角 */
  padding: 10px 15px;
  border: 1px solid #e2d6c8; /* 浅棕色边框 */
  font-family: "KaiTi", "STKaiti", serif; /* 楷体，古风感 */
  color: #4b3f2f; /* 深棕色文字 */
}

.gufeng-details summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.05em;
  color: #3b2f2f;
  padding: 4px 0;
}

.gufeng-details summary::marker {
  color: #a67c52; /* 传统棕色箭头 */
}

.gufeng-details summary:hover {
  color: #8c6239; /* 悬停变暖色 */
}

/* 保留代码块原样，不改变 markdown 显示样式 */
.gufeng-details pre, 
.gufeng-details code {
  background: inherit !important;
  color: inherit !important;
  font-family: inherit;
}