/*大模型logo样式*/

#image-button {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

#image-button img {
    width: 40px; /* 设置图片宽度 */
    height: 40px; /* 设置图片高度 */
    border-radius: 50%; /* 如果需要圆形，可以设置圆角 */
    object-fit: cover; /* 确保图片填满整个按钮 */
}

#circle-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: fixed;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(230, 230, 230, 1) 60%, rgba(200, 200, 200, 1) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    z-index: 9998;
    transition: box-shadow 0.3s ease;
}

#circle-button:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.7);
}

#circle-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none; /* 禁止鼠标事件，如右键点击 */
    user-select: none; /* 禁止文本选择 */
    -webkit-user-drag: none; /* 禁止图片拖动 */
}

/* 设置模态框的高度为全屏，宽度为300px，并从右侧滑入 */
.modal.right .modal-dialog {
    /*position: fixed;*/
    margin: 0;
    /*right: 0;*/
    top: 0;
    height: 100%;
    width: 560px;
    float: right;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10000;
}


.modal.right .modal-content {
    width: 105%;
    margin: 0;
    height: 100%;
    float: right;
}

.modal.right .modal-content .modal-header{
    width: 100%;
}

.modal .modal-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.modal .modal-title {
    display: inline;
    margin-left: 10px;
    object-fit: cover;
    width: 130px;
}

.modal .modal-delete {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    display: inline;
    margin-left: 80px;
}

.modal.right.show .modal-dialog {
    transform: translateX(0);
}

/*!* 遮罩层全屏覆盖 *!*/
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 设置 textarea 宽度铺满，高度为页面的 90% */
.modal-body {
    width: 100%;
    height: 82vh; /* 高度为视口的 90% */
    margin: 0;
    float: right;
}

#chat-box {
    height: 100%;
    width: 100%; /* 宽度为100% */
    overflow-y: scroll; /* 允许滚动 */
    margin: 0;
    border: none;
    float: right;
    scrollbar-width: none;
}

/* 隐藏滚动条（在Webkit内核的浏览器中） */
#chat-box::-webkit-scrollbar {
    display: none;
}

/* 聊天气泡 - 用户消息 */
.chat-bubble-user {
    background-color: #3dd5f3;
    color: white;
    padding: 10px;
    border-radius: 15px;
    margin: 5px 0;
    max-width: 80%;
    align-self: flex-end;
    user-select: text;
}

/* 聊天气泡 - 系统消息 */
.chat-bubble-system {
    background-color: #f1f1f1;
    color: black;
    padding: 10px;
    border-radius: 15px;
    margin: 15px 0;
    max-width: 80%;
    align-self: flex-start;
    user-select: text;
    font-size: 16px;
    white-space: normal;
    font-family: sans-serif;
    line-height: 1.6;
}
.chat-bubble-system h1 { font-size: 1.6em; border-bottom: 1px solid #eee; }
.chat-bubble-system h1 { font-size: 1.4em; border-bottom: 1px solid #eee; }
.chat-bubble-system h3 { font-size: 1.2em; border-bottom: 1px solid #eee;}
.chat-bubble-system strong { font-weight: bold; }
.chat-bubble-system em { font-style: italic; }
.chat-bubble-system a { color: #0366d6; text-decoration: none; }
.chat-bubble-system code { background: #f6f8fa; padding: 2px 4px; }
.chat-bubble-system pre { background: #f6f8fa; padding: 10px; overflow: auto; }
/* 消息容器，支持左右对齐 */
.chat-message {
    display: flex;
    flex-direction: column;
}

.modal-body .form-control .container-bottom1 {
    margin-top: 50vh;
}

.modal-body .form-control .card {
    left: 15px;
    width: 13rem;
    display: inline;
    cursor: pointer; /* 鼠标变成手型 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #f3f3f3;
}

.modal-body .form-control .card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#select-collection {
    height: 50px;
    flex: 0 0 100px;
}



/*
 2025/2/27
 提取deepseek的思考过程
 */
.think-container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
}

.think-title {
    background-color: #f5f5f5;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.think-title::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    transition: transform 0.2s;
}

.think-content {
    padding: 15px;
    display: none;
    background-color: #fafafa;
    white-space: pre-wrap;
    font-family: monospace;
}

/* 展开状态样式 */
.think-container.active .think-title::before {
    transform: rotate(90deg);
}

.think-container.active .think-content {
    display: block;
}


