/* 左边栏 */
/* .sidebar-offcanvas {
    position: static;
  } */
/* ditu */

#scrollable-content {
    height: 900px;
    /* 设置元素高度 */
    overflow: auto;
    /* 显示滚动条 */

}

::-webkit-scrollbar {
    width: 10px;
    /* 设置滚动条宽度 */
    height: 10px;
    /* 设置滚动条高度 */
}

::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    /* 设置拖动条颜色 */
}

::-webkit-scrollbar-track {
    background-color: #f2f2f2;
    /* 设置滚动条背景颜色 */
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    border-radius: 4px;
    /* 设置圆角 */

}

table {
    border-collapse: collapse;
    /*合并表格边框*/
    width: 100%;
    background: #ffffff;
    border: 1px solid black;
}

.sticky-table th {
    position: sticky;
    top: 0;
    /* 首行永远固定在头部  */
    background-color: #13a9f5ef;
    /*设置表头背景色*/
}

.sticky-table td:first-child,
.sticky-table th:first-child {
    position: sticky;
    left: 0;
    /* 首列永远固定在左侧 */
    z-index: 1;
    /* background-color: #1baef7ef; */
}

.sticky-table th:first-child {
    z-index: 2;
}

/*表头的首列要在上面*/
.sticky-table th>div {
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

.x21 {
    background-color: #13a9f5ef;
}

.x27 {

    background-color: #13a9f5ef;
}

.x30 {
    background-color: #13a9f5ef;
}

.x32 {
    vertical-align: bottom;
    background-color: #13a9f5ef;
}

.x33 {
    background-color: #13a9f5ef;
}

.x35 {
    border-top: 3px solid windowtext;

    border-left: 3px dashed windowtext;
}

.x36 {
    border-top: 3px solid windowtext;
}

.x37 {
    border-top: 3px solid windowtext;
    border-right: 2px solid windowtext;
}

.x38 {
    border-top: 3px solid windowtext;
    border-left: 3px dashed windowtext;
}

.x39 {
    border-top: 3px solid windowtext;
}

.x40 {
    border-top: 3px solid windowtext;
    border-right: 2px solid windowtext;
}

.x41 {
    border-left: 3px dashed windowtext;
}

.x43 {
    border-right: 2px solid windowtext;
}

.x44 {
    border-left: 3px dashed windowtext;
}

.x46 {
    border-right: 2px solid windowtext;
}

.x47 {
    border-bottom: 2px solid windowtext;
    border-left: 3px dashed windowtext;
}

.x48 {
    border-bottom: 2px solid windowtext;
}

.x49 {
    border-right: 2px solid windowtext;
    border-bottom: 2px solid windowtext;
}

.x50 {
    border-bottom: 2px solid windowtext;
    border-left: 3px dashed windowtext;
}

.x51 {
    border-bottom: 2px solid windowtext;
}

.x52 {
    border-right: 2px solid windowtext;
    border-bottom: 2px solid windowtext;
}




/* 首列永远固定在左侧 */
#main {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0
}




th {
    position: sticky;
    top: 0;
    background-color: #19affaef;
}

.table-responsive td:first-child,
.table-responsive th:first-child {
    position: sticky;
    left: 0;
    /* 首列永远固定在左侧 */
    z-index: 1;
    background-color: #ffffffef;
}

.table-responsive th:first-child {
    z-index: 2;
}

/*页面*/
.table-responsive th>div {
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

span {
    word-break: normal;
    width: auto;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
}

/* 禁用按钮样式 */
.btn-dark[data-locked="true"] {
    pointer-events: none;
    /* 防止点击 */
    opacity: 0.5;
    /* 降低透明度显示按钮被禁用 */
}



/* 加载中的动画效果 */
.loading::before {
    content: " ";
    display: inline-block;
    position: relative;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    background-color: currentColor;
    animation: loader 1s infinite ease-in-out both;
}

@keyframes loader {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 锁定按钮的样式 */
.locked {
    pointer-events: none;
    /* 防止点击 */
    opacity: 0.5;
    /* 降低透明度 */
}


textarea {
    width: 100%;
    height: 100%;
    border: 0;
    border-collapse: collapse;
}

.expand-btn {
    display: none;
    position: absolute;
    cursor: pointer;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    /* 确保遮罩层在窗口下方 */
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
}

/* AI文本记录代码的CSS样式 */
.data-ku {
    width: 100%;
    height: 400px;
    margin: 20px auto;
    background-color: #F3F5FA;
    border-radius: 5px;
    padding: 20px;
    overflow: auto;
}

.data-ku .record-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
    position: relative;
    cursor: pointer;
}

.data-ku .record-item:hover {
    background-color: #e9f1ff;
}

.data-ku .record-item .title {
    font-size: 16px;
    color: #333;
}

.data-ku .record-item .uuid {
    font-size: 12px;
    color: #666;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.data-ku .record-item:hover .uuid {
    opacity: 1;
}

.data-ku .buttons {
    display: none;
    position: absolute;
    top: 3px;
    right: 20px;
}

.data-ku .buttons button {
    margin-left: 10px;
    background-color: #f8f9fa;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.data-ku .buttons button:hover {
    background-color: #e9ecef;
}

/* 调整文本区字体大小 */
#zhangjieneirong {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整输入框字体大小 */
#zhangjieming {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整输出框字体大小 */
#xzqtis {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整输入框字体大小 */
#shurukuang {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整输出框字体大小 */
#chat-output {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整提问框字体大小 */
#chat-tiwen {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整提问框字体大小 */
#chuangzhuozhiling {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#renwuguanxi {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#AIjianjie {
    font-size: 16px;
    /* 可以根据需要调整大小 */
}



.main {
    margin: 100px auto;
    width: 100px;
}

.btn-box {
    margin-top: 6px;
}

/* button {
    background-color: #e4e4e4;
    color: #0c0c0c;
    border: none;
    padding: 4px 8px;
    border-radius: 2px;
} */

button.unactive {
    cursor: no-drop;
    background-color: #f6f6f6;
    color: #999999;
}



/* 启用按钮样式 */
.btn-dark[data-locked="false"] {
    pointer-events: auto;
    /* 允许点击 */
    opacity: 1;
    /* 恢复透明度 */
}




#hangshu,
#content_num {
    display: none;
}

/* 基础样式 */
#txt_tiqu,
#aizdy {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #F5F5F5;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(173, 173, 173, 0.1);
    padding: 20px;
    width: 800px;
    /* 电脑端宽度 */
    height: 750px;
    /* 高度自适应 */
}

/* 基础样式 */
#aikuai_fx,
#aikuai {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #F5F5F5;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(173, 173, 173, 0.1);
    padding: 20px;
    width: 700px;
    /* 电脑端宽度 */
    height: auto;
    /* 高度自适应 */
}

#zhidingzhiling {
    width: 100%;
    height: 100px;
    /* 电脑端文本区高度 */
    margin-bottom: 10px;
    /* 与按钮的间距 */
    resize: none;
    /* 禁止调整大小 */
    background-color: #F5F5F5;
}

#aikuais_fx,
#aikuais_fx3,
#aikuais_fx4,
#aikuais_fx5,
#aikuais_fx6,
#aikuais_fx7,
#AIneirong,
#aikuaigaos {
    width: 100%;
    height: 500px;
    /* 电脑端文本区高度 */
    margin-bottom: 10px;
    /* 与按钮的间距 */
    resize: none;
    /* 禁止调整大小 */
}

#AI_kuaigao,
#aikuais {
    width: 100%;
    height: 250px;
    /* 电脑端文本区高度 */
    margin-bottom: 10px;
    /* 与按钮的间距 */
    resize: none;
    /* 禁止调整大小 */
}


#aikuais_fx2 {
    width: 100%;
    height: 500px;
    /* 电脑端文本区高度 */
    margin-bottom: 10px;
    /* 与按钮的间距 */
    resize: none;
    /* 禁止调整大小 */
}


/* 手机端样式 */
@media only screen and (max-width: 768px) {

    #txt_tiqu,
    #aikuai_fx,
    #aizdy,
    #aikuai {
        width: 90%;
        /* 宽度占屏幕的 90% */
        max-height: 80vh;
        /* 最大高度为视口的 80% */
        padding: 15px;
        /* 适当减少内边距 */
    }

    #aikuais_fx,
    #aikuais_fx3,
    #aikuais_fx4,
    #aikuais_fx5,
    #aikuais_fx6,
    #aikuais_fx7,
    #zhidingzhiling,
    #AIneirong,
    #AI_kuaigao,
    #aikuaigaos,
    #aikuais {
        height: 300px;
        /* 手机端文本区高度 */
    }

    #aikuais_fx2 {
        height: 300px;
        /* 手机端文本区高度 */
    }

    #AI_kuaigao,
    #aikuais {
        height: 150px;
        /* 手机端文本区高度 */
    }
}


/* 默认样式（电脑端） */
#ai_tyts,
#ai_zhiling,
#aione,
#aifiv,
#aisui,
#aifor,
#aitwo {
    display: none;
    position: absolute;
    width: 700px;
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #F5F5F5;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(173, 173, 173, 0.1);
}

/* 手机端样式 */
@media only screen and (max-width: 768px) {

    #ai_tyts,
    #ai_zhiling,
    #aione,
    #aifiv,
    #aisui,
    #aifor,
    #aitwo {
        width: 90%;
        /* 宽度占屏幕的 90% */
        height: auto;
        /* 高度自适应 */
        max-height: 80vh;
        /* 最大高度为视口的 80% */
        padding: 15px;
        /* 适当减少内边距 */

    }

    #ai_tyts .window-content,
    #ai_zhiling .window-content,
    #aione .window-content,
    #aifiv .window-content,
    #aisui .window-content,
    #aifor .window-content,
    #aitwo .window-content {
        padding: 10px;
        /* 内容区域的内边距调整 */
    }

    #ai_tyts textarea,
    #ai_zhiling textarea,
    #aione textarea,
    #aifiv textarea,
    #aisui textarea,
    #aifor textarea,
    #aitwo textarea {
        width: 100%;
        /* 文本区域宽度占满父容器 */
        height: 200px;
        /* 固定高度，避免过大 */
    }

    textarea #aiaityts,
    #ai_zhiling #aizhiling,
    #aione #aijian1,
    #aifiv #aijian1,
    #aisui #aijian1,
    #aifor #aijian1,
    #aitwo #aijian1 {
        flex-direction: column;
        /* 按钮垂直排列 */
        align-items: center;
        /* 居中对齐 */
    }

    #ai_zhiling #aizhiling button,
    #aione #aijian1 button,
    #aifiv #aijian1 button,
    #aisui #aijian1 button,
    #aifor #aijian1 button,
    #aitwo #aijian1 button {
        width: 100%;
        /* 按钮宽度占满 */
        margin-bottom: 10px;
        /* 按钮之间的间距 */
    }
}

/* 单独为 #aifiv 设置样式 */
#aifiv .window-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* 子元素之间的间距 */
}



#aifiv #aitxt5 textarea {
    flex: 1;
    /* 文本区域均分宽度 */
    height: 350px;
    /* 固定高度 */
}



#aifiv #aijian5 select {
    width: 150px;
    /* 设置选择器的宽度 */
}




#aifai {
    display: none;
    /* 默认隐藏 */
    position: absolute;
    /* 绝对定位 */
    width: 800px;
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* border: 1px solid #ccc; */
    padding: 20px;
    background-color: #F5F5F5;
    /* z-index: 10; */
    /* 确保在textarea之上 */
    z-index: 1000;
    /* 确保在content之上 */
    border-radius: 20px;
    /* 设置元素的圆角边框 */
    box-shadow: 0 4px 8px rgba(173, 173, 173, 0.1);
    /* 设置元素的阴影效果 */
}



.draggable {
    position: absolute;
    /* 初始定位方式 */
    left: 0;
    /* 初始左侧距离 */
    top: 0;
    /* 初始顶部距离 */
    /* 其他样式... */
}

/* 拖动窗口 */
.draggable .drag-handle {
    cursor: move;
    /* 显示拖动的光标 */
}

.draggable .window-content {
    padding: 20px;
}

#editor {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
}

#options {
    display: none;
    position: absolute;
    z-index: 1000;
}

/* 遮罩层样式 */
#overlays {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 半透明黑色 */
    z-index: 1000;
    /* 确保遮罩层在最上层 */
}

/* 指令选项框样式 */
#instructions-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 居中 */
    width: 90%;
    /* 小屏幕上占满 90% 宽度 */
    max-width: 300px;
    /* 默认最大宽度 */
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 60vh;
    /* 最大高度为视口的 60% */
    overflow-y: auto;
    z-index: 1001;
    /* 确保弹框在遮罩层上方 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 阴影效果 */
    cursor: move;
    /* 拖拽光标 */
}

/* 电脑端样式 */
@media (min-width: 768px) {
    #instructions-box {
        width: 650px;
        /* 电脑端宽度为 650px */
        max-width: none;
        /* 取消最大宽度限制 */
    }
}


.container {
    width: 85%;
    height: 600px;
    margin: 20px auto;
    background-color: #F3F5FA;
    border-radius: 5px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    padding: 20px;
    overflow: auto;
    /* 添加这行代码 */
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.search-box input {
    width: calc(100% - 110px);
    padding: 10px;
}

.search-box button {
    width: 100px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #0056b3;
}

.session-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
    position: relative;
    cursor: pointer;
}

.session-item:hover {
    background-color: #e9f1ff;
}

.session-item .title {
    font-size: 16px;
    color: #333;
}

.session-item .uuid {
    font-size: 12px;
    color: #666;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.session-item:hover .uuid {
    opacity: 1;
}

.buttons {
    display: none;
    position: absolute;
    top: 3px;
    right: 20px;
}

.buttons button {
    margin-left: 10px;
    background-color: #f8f9fa;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.buttons button:hover {
    background-color: #e9ecef;
}

.highlight {
    background-color: yellow;
}




.input-style {
    width: 100%;
    height: 100%;
    border: 0;
    border-collapse: collapse;
}

/* 调整文本区字体大小 */
#new-content {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整输入框字体大小 */
#AIjianjie {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整输出框字体大小 */
#jianjie {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整输入框字体大小 */
#AIshuming {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整输出框字体大小 */
#juqingtaolu2 {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整提问框字体大小 */
#juqingtaolu {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整提问框字体大小 */
#renwuguanxi {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#chat-tiwen {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#chat-output {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#chat-output2 {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */

#chat-AIkuaixie {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#input-AIkuaixie {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#shurukuang {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整自动大纲字体大小 */
#boogan_aidagang {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

#txst-qingjie,
#new-content,
#test-kg-zhiling,
#txst-fangxie,
#txst-sdys,
#xzqtis,
#chengyu-xzqtis,
#book-xzqtis,
#guanjiancizancun,
#txst-fenjuan-zhiling,
#txst-fenjuan-web,
#txst-fenxizhiling,
#txst-fenxi {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

/* 调整人物关系框字体大小 */
#chat-AIxuxie {
    font-size: 18px;
    /* 可以根据需要调整大小 */
}

#scrollable-content {
    height: 900px;
    overflow: auto;

}





.sticky-table th {
    position: sticky;
    top: 0;
    background-color: #ebedeeef;
}

.sticky-table td,
.sticky-table th {
    border: 1px solid #d1d8daef;
}

.sticky-table td:first-child,
.sticky-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: #ebedeeef;
}

.sticky-table th:first-child {
    z-index: 2;
}

.sticky-table th>div {
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}







/* 地图默认样式 */
.table-responsive {
    height: 900px;
    /* 默认高度 */
    overflow: auto;
    /* 允许滚动 */
    border: 1px solid #ccc;
    /* 边框，方便查看范围 */
}


/* 手机状态下的样式 */
@media (max-width: 768px) {
    .table-responsive {
        height: 480px;
        /* 手机状态下高度 */
    }
}

.rw-table-responsive {
    height: 580px;
}

@media (max-width: 768px) {
    .rw-table-responsive {
        height: 380px;
    }
}

.gx-table-responsive {
    height: 580px;
}

@media (max-width: 768px) {
    .gx-table-responsive {
        height: 380px;
    }
}

.dgb-table-responsive {
    height: 680px;
}

@media (max-width: 768px) {
    .dgb-table-responsive {
        height: 480px;
    }
}

/* 默认高度（电脑） */
#juqingtaolu2 {
    height: 600px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #juqingtaolu2 {
        height: 400px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#juqingtaolu {
    height: 600px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #juqingtaolu {
        height: 400px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#chat-tiwen {
    height: 260px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #chat-tiwen {
        height: 60px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#chat-output {
    height: 610px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #chat-output {
        height: 410px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#input-AIkuaixie {
    height: 25px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #input-AIkuaixie {
        height: 15px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */

#chat-AIkuaixie {
    height: 500px;
}

/* 手机设备高度 */
@media (max-width: 768px) {

    #chat-AIkuaixie {
        height: 415px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#txst-chajg,
#txst-chazl,
#txst-qingjie,
#guanjiancizancun,
#test-kg-zhiling,
#txst-sdys,
#txst-changjing,
#txst-daoju,
#chengyu-xzqtis,
#txst-fangxie,
#txst-fenxizhiling,
#txst-fenxi,
#txst-fenjuan-zhiling,
#txst-fenjuan-web,
#chat-output2 {
    height: 500px;
}

/* 手机设备高度 */
@media (max-width: 768px) {

    #txst-chajg,
    #txst-chazl,
    #txst-qingjie,
    #guanjiancizancun,
    #test-kg-zhiling,
    #txst-sdys,
    #txst-changjing,
    #txst-daoju,
    #chengyu-xzqtis,
    #txst-fangxie,
    #txst-fenxizhiling,
    #txst-fenxi,
    #txst-fenjuan-zhiling,
    #txst-fenjuan-web,
    #chat-output2 {
        height: 380px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#chat-AIxuxie {
    height: 580px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #chat-AIxuxie {
        height: 380px;
        /* 手机上的高度 */
    }
}

/* 默认高度（电脑） */
#test-txt {
    height: 480px;
}

#test-wenben {
    height: 480px;
}

/* 手机设备高度 */
@media (max-width: 768px) {
    #test-txt {
        height: 380px;
        /* 手机上的高度 */
    }
}



/* BOOGANai容器 */
/* BOOGANai容器 */
#web {
    display: flex;
    flex-direction: column;
    width: 560px;
    height: 360px;
}

/* 提问标题 */
#ai-deepseek-title,
#ai-question-title {
    width: 90%;
    display: flex;
    justify-content: center;
}

/* 主内容区 */
#main-deepseek {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-content {
    width: 100%;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 主内容区内容显示区 */
#deepseektest {
    width: 100%;
    height: 480px;
    max-width: 100%;
    overflow-y: auto;
    padding: 50px 10px 10px;
    background-color: #F3F5FA;
    border: 2px solid #464749;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    margin: auto;
    scroll-behavior: smooth;
}

#booganaitext {
    width: 100%;
    height: 420px;
    max-width: 100%;
    overflow-y: auto;
    padding: 50px 10px 10px;
    background-color: #F3F5FA;
    border: 10px solid #F3F5FA;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    margin: auto;
    scroll-behavior: smooth;
}

/* 手机设备高度 */
@media (max-width: 768px) {

    #main-deepseek,
    #main-content {
        height: 320px;
    }
}

/* 用户提问样式 */
.user-message {
    background-color: blue;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 5px 5% 5px auto;
    max-width: 90%;
    text-align: left;
    clear: both;
    display: flex;
}

/* AI回答样式 */
.ai-message {
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    text-align: left;
    clear: both;
    display: flex;
}

/* 消息容器样式 */
.message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    background-color: #F3F5FA;
}

/* 消息内容框样式 */
.message-content {
    padding: 10px;
    border-radius: 5px;
    background-color: white;
    color: black;
}

/* 用户消息容器 */
.user-message .message-container {
    justify-content: flex-end;
    margin-right: 10px;
}

/* AI消息容器 */
.ai-message .message-container {
    justify-content: flex-start;
    margin-left: 10px;
}

/* 图标样式 */
.message-icon {
    font-size: 1.5em;
}

/* 用户图标 */
.user-icon {
    color: blue;
    margin-left: 10px;
    font-family: 'Themify Icons';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}

/* AI图标 */
.ai-icon {
    color: grey;
    margin-right: 10px;
    font-family: 'Themify Icons';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}

/* 图像容器 */
.image-container {
    margin-top: 10px;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-link {
    display: block;
    margin-top: 5px;
    color: #4a6cf7;
    text-decoration: none;
    font-size: 14px;
}

#content {
    height: 200px;
    margin-left: 10px;
    display: flex;
    position: relative;
}

.main-area {
    width: 360px;
    background-color: white;
    border: 10px solid white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#shurukuang {
    width: 360px;
    background-color: white;
    border: none;
    outline: none;
    resize: none;
    overflow: auto;
    padding: 15px;
    box-sizing: border-box;
    min-height: 4em;
    max-height: 16em;
}


/* 全局表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* 特定表格的样式 */

#novelTable td {
    vertical-align: middle;
    /* 使内容垂直居中 */
    white-space: normal;
    /* 允许内容自动换行 */
    word-wrap: break-word;
    /* 长单词或无法使用断点的URL强制换行 */
    border: 1px solid #000;
    /* 设置边框为1px */
    padding: 5px;
    /* 减小内边距 */
    height: 80px;
    /* 让内容决定高度 */
    background-color: #ffffff;
}

#novelTable th {
    vertical-align: middle;
    /* 使内容垂直居中 */
    white-space: normal;
    /* 允许内容自动换行 */
    word-wrap: break-word;
    /* 长单词或无法使用断点的URL强制换行 */
    border: 1px solid #000;
    /* 设置边框为1px */
    padding: 5px;
    /* 减小内边距 */
    height: 80px;
    /* 让内容决定高度 */
}

#novelTable thead th {
    height: 30px;
    /* 明确设置表头高度 */
    line-height: 1;
    /* 减小行高 */
    font-size: 14px;
    /* 减小字体大小 */
}

#novelTable thead {
    background-color: #f8f9fa;
    /* 确保背景颜色 */
    color: black;
    /* 黑色字体 */
}

#novelTable thead th:first-child {
    background-color: #000000;
    /* 灰色背景 */
    color: rgb(243, 223, 223);
    /* 黑色字体 */
}


/* 默认样式 - 桌面端 */
.table-responsive {
    flex: 1;
    overflow: auto;
    max-height: 500px;
}

#novelTable {
    width: 1550px;
}

/* 手机端样式 */
@media only screen and (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #novelTable {
        min-width: 1550px;
        /* 保持表格原始宽度，强制横向滚动 */
    }
}

/* 确保表头固定在顶部 */


.card-body {
    padding: 1.5rem;
    /* 调整内边距 */
}

.form-control,
.btn {
    width: 100%;
    /* 确保输入框和按钮宽度自适应 */
}

@media (max-width: 768px) {

    .col-md-8,
    .col-md-4 {
        flex: 0 0 100%;
        /* 在小屏幕上，列占满整个宽度 */
        max-width: 100%;
    }
}



/* 设置序号列的样式 */
#novelTable thead th:first-child {
    background-color: #f8f9fa;
    /* 灰色背景 */
    color: black;
    /* 黑色字体 */
}


.control-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    /* 控件之间的间距 */
}

select,
button {
    margin: 0;
    padding: 4px 8px;
    font-size: 14px;
}

button {
    white-space: nowrap;
    /* 防止按钮内容换行 */
}

/* 确保按钮宽度一致 */
button {
    min-width: 80px;
}

/* 退场人物的控件稍微向右对齐 */
#jiaose6,
#jiaose7,
#jiaose8,
#jiaose9,
#jiaose10 {
    margin-left: 8px;
}


.generation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.generation-table th,
.generation-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.generation-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.generation-table tr:hover {
    background-color: #f5f5f5;
}

.generation-table .image-preview {
    width: 300px;
    height: 300px;
    border: 2px dashed #ddd;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generation-table .control-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-generate {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-generate:hover {
    background-color: #45a049;
}

.size-select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 新增按钮样式 */
.btn-primary {
    background-color: #3f6ad8 !important;
    border-color: #3f6ad8 !important;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(63, 106, 216, 0.3);
}

/* 空状态提示 */
.empty-placeholder {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    border: 2px dashed #dee2e6;
    margin: 15px;
}

/* 加载状态 */
.generating-status {
    position: relative;
    pointer-events: none;
}

.generating-status::after {
    content: "生成中...";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f6ad8;
    font-weight: bold;
}

/* 优化后的样式 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.controls {
    gap: 12px;
}

.btn-generate {
    order: 1;
    /* 按钮在前 */
}

.size-select {
    order: 2;
    /* 选择框在后 */
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.image-preview {
    transition: opacity 0.3s;
}

.generating-status {
    opacity: 0.7;
}

.spinner-border {
    vertical-align: -0.125em;
}

/* 取消头部锁定 */
#ditutable thead th,
#renwututable thead th {
    position: static !important;
    /* 取消 sticky 或其他定位 */
    background-color: inherit !important;
    /* 如果有背景颜色，可以继承父元素的背景 */
}


/* 添加模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 40%;
    max-height: 100%;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }

    to {
        transform: scale(1)
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    color: #bbb;
}


#kuaixie_select_xuxie,
#ai_kuaixie_kg_chuang,
#kuaigao_xuhao,
#ai_kuaixie_kg_chuang,
#kgtuichu {
    flex-direction: column;
    /* 按钮垂直排列 */
    align-items: center;
    /* 居中对齐 */
}

.button_hang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    /* horizontal centering */
    align-items: center;
    /* vertical centering (if needed) */
}

.button_hang button {
    flex: 1 0 calc(50% - 8px);
    /* 50% width minus half the gap */
    box-sizing: border-box;
    max-width: calc(50% - 8px);
}

/* For larger screens, you might want to override this */
@media (min-width: 768px) {
    .button_hang button {
        flex: 0 0 auto;
        max-width: none;
    }
}