* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            font-size: 16px; /* 设置基准字体大小为16px，1rem = 16px */
        }

        body, html {
            font-family: Arial, sans-serif;
            background: url('../assets/bj.jpg') no-repeat center center fixed;
            background-size: cover;
            min-height: 100vh;
            overflow: hidden;
        }

        #app {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
        }

        /* 顶部标题栏 */
        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: white;
            backdrop-filter: blur(10px);
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .top-bar h3 {
            margin: 0;
            font-size: 16px;
            color: #333;
        }

        .top-bar .close-btn {
            font-size: 20px;
            cursor: pointer;
            color: #666;
        }

        /* 头部信息 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem;
            background: transparent;
            backdrop-filter: blur(0.625rem);
            width: 100%;
            max-width: 100%;
        }

        .header-left {
            display: flex;
            align-items: center;
        }

        .logo {
            width: 1.875rem;
            height: 1.875rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-right: 0.625rem;
            font-size: 0.875rem;
        }

        .logo-text {
            font-size: 0.875rem;
            font-weight: bold;
            color: #333;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 0.9375rem;
        }

        .header-icon {
            font-size: 0.875rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .conversationTranscript{
            /*display: flex;*/
            overflow-y: auto;
        }

        .searchInput{
            width: 100%;
            border: none;
            border-radius: 1.25rem;
            color: #333;
            font-size: 0.875rem;
            margin-top: 0.625rem;
        }

        .icon-img {
            width: 1.25rem;
        }

        /* 欢迎区域 */
        .welcome-section {
            background: url('../assets/hello.png') no-repeat center center;
            background-size: cover;
            aspect-ratio: 3 / 1; /* 宽高比为 2.67:1 */
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            box-sizing: border-box;
            margin-bottom: 1.25rem;
        }

        /* 聊天区域 */
        .welcome-container {
            width: 90%;
            height: 3.75rem;
            background: rgba(250, 250, 250, 0.47);
            backdrop-filter: blur(0.125rem); /* 添加模糊效果 */
            border: 0.03125rem solid white;
            border-bottom: none; /* 只保留上边框 */
            border-radius: 0.625rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-left: 0.625rem;
            align-items: flex-start; /* 左对齐文本 */
        }

        .welcome-title {
            font-size: 1rem;
            background: linear-gradient(90deg, #3034cd, #0a0a0a);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin: 0; /* 移除默认margin */
        }

        .welcome-desc {
            color: #636363;
            font-size: 0.75rem;
        }

        /* 聊天区域 */
        .chat-container {
            overflow-y: auto;
            overflow-x: hidden;
            height: calc(100vh - 13.8125rem);
            width: 100%;
            max-width: 100%;
            /* 隐藏滚动条但保留滚动功能 */
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        
        /* Chrome, Safari 和 Opera */
        .chat-container::-webkit-scrollbar {
            display: none;
        }

        .messages {
            margin-top: 0;
            font-size: 0.875rem;
            padding: 0 1.25rem;
        }

        .message-container {
            margin-top: 1.25rem;
            display: flex;
            /* margin-bottom: 1.25rem; */
            align-items: flex-start;
        }

        .user-message-container {
            justify-content: flex-end;
        }

        .assistant-message-container {
            justify-content: flex-start;
        }

        .avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6b5ce7, #8479ff);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin: 0 10px;
            padding: 5px;
            font-size: 16px;
        }

        .message {
            padding: 0.625rem 0.625rem;
            max-width: 90%;
            box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
            word-break: break-word;
            overflow-wrap: break-word;
        }
        
        /* Markdown 列表样式 - 只需要首行缩进 */
        /* 提高选择器优先级 */
        .message ol,
        .message ul {
            padding-left: 1.5625rem !important;
            margin: 0.5em 0 !important;
            list-style-position: outside !important;
        }
        
        .message li {
            margin: 0.25em 0 !important;
            word-break: break-word !important;
            overflow-wrap: break-word !important;
            list-style-position: outside !important;
            /* text-indent: -1.5625rem !important; */
            padding-left: 0.5625rem !important;
        }
        
        /* 嵌套列表样式 - 保持首行缩进一致 */
        /* 提高选择器优先级 */
        .message li ol,
        .message li ul {
            /* padding-left: 1.5625rem !important; */
            /* margin: 0.25em 0 !important; */
        }
        
        /* 深层嵌套列表样式 */
        /* 提高选择器优先级 */
        .message li li ol,
        .message li li ul {
            /* padding-left: 1.5625rem !important; */
            /* margin: 0.25em 0 !important; */
        }
        
        .message li li {
            /* margin: 0.1em 0 !important; */
            /* text-indent: -1.5625rem !important; */
            /* padding-left: 1.5625rem !important; */
        }
        
        /* 深层嵌套列表项样式 */
        .message li li li {
            /* margin: 0.1em 0 !important; */
            /* text-indent: -1.5625rem !important; */
            /* padding-left: 1.5625rem !important; */
        }

        /* 修复列表项标记溢出问题 */
        .message ol li,
        .message ul li {
            /* list-style-position: outside !important; */
        }

        /* 修复 ::marker 溢出 */
        .message ol li::marker,
        .message ul li::marker {
            /* white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important; */
        }

        .message .copyClass{
            display: flex;
            justify-content: end;
            align-items: center;
            width: 100%;
        }
        .message .copyClass img{
            width: 1.25rem;
        }
        
        /* 复制按钮样式 */
        .copy-container {
            margin-top: 5px;
            flex-direction: column;
        }
        
        .copy-text {
            font-size: 12px;
            color: #6b5ce7;
            cursor: pointer;
            padding: 2px 8px;
            border-radius: 4px;
            background-color: rgba(107, 92, 231, 0.1);
            transition: all 0.2s ease;
        }
        
        .copy-text:hover {
            background-color: rgba(107, 92, 231, 0.2);
            color: #8479ff;
        }
        
        /* 用户消息中的复制按钮样式 */
        .user-message .copy-text {
            color: rgba(255, 255, 255, 0.8);
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .user-message .copy-text:hover {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .user-message {
            background: linear-gradient(135deg, #8470ff, #5b55ff);
            color: white;
            margin-left: 0.625rem;
            border-radius: 0.625rem 0.625rem 0rem 0.625rem;
        }

        .assistant-message {
            background-color: white;
            color: #333;
            margin-right: 0.625rem;
            border-radius: 0.625rem 0.625rem 0.625rem 0rem;
        }

        /* 固定输入区域样式 */
        .fixed-input-container {
            position: fixed;
            bottom: 0.625rem;
            left: 0;
            right: 0;
            padding: 0 1.25rem;
            z-index: 100;
            width: 100%;
            max-width: 100%;
        }

        .fixed-input-container .createChat{
            font-size: 0.875rem;
            color: #636363;
            cursor: pointer;
            margin-bottom: 0.625rem;
            display: flex;
            align-items: center;
        }

        .createChat img{
            width: 1.25rem;
            margin-right: 0.3125rem;
        }

        .send-btn {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #6b5ce7, #8479ff);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .send-btn:hover {
            transform: scale(1.05);
        }

        .send-btn img {
            width: 1.25rem;
            height: 1.25rem;
        }

        /* 加载状态 */
        .loading {
            text-align: center;
            color: #6b5ce7;
            padding: 1.25rem;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.9375rem;
        }

        /* 加载图片旋转动画 */
        .loading img {
            animation: rotate 1.5s linear infinite;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        /* 底部说明 */
        .bottom-note {
            text-align: center;
            color: #999;
            font-size: 0.75rem;
            margin-top: 0.625rem;
            padding-bottom: 0.625rem;
        }

        /* 弹窗按钮样式 */
        .popup-button-img {
            position: absolute;
            left: 50%;
            top: 67%;
            transform: translateX(-50%);
            width: 11.25rem;
            cursor: pointer;
        }

        /* Logo图片样式 */
        .logo img {
            width: 1.5625rem;
        }

        /* 对话记录容器样式 */
        .conversation-list {
            max-height: 18.75rem;
            overflow-y: auto;
        }

        /* 日期分组样式 */
        .date-group {
            margin-top: 0.9375rem;
        }

        /* 日期标题样式 */
        .date-title {
            font-weight: bold;
            margin-bottom: 0.625rem;
            color: #333;
        }

        /* 对话记录项样式 */
        .conversation-item {
            margin-bottom: 0.625rem;
            padding: 0.625rem;
            background-color: #f9f9f9;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        /* 删除按钮样式 */
        .delete-btn {
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
            padding: 0.3125rem;
            margin-left: 0.625rem;
        }

        .delete-btn:hover {
            opacity: 1;
        }

        /* 对话内容样式 */
        .conversation-content {
            font-size: 0.75rem;
            color: #666;
            line-height: 1.4;
            flex: 1;
        }

        /* 消息项样式 */
        .message-item {
            margin-bottom: 0.3125rem;
        }

        /* 消息内容样式 */
        .message-text {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 无对话记录容器样式 */
        .no-conversation {
            text-align: center;
            margin-top: 1.25rem;
        }

        /* 无数据图片样式 */
        .no-data-img {
            max-width: 80%;
        }

        /* 无对话记录文本样式 */
        .no-conversation-text {
            margin-top: 0.625rem;
        }

        /* 输入区域容器样式 */
        .input-wrapper {
            position: relative;
            max-width: 50rem;
            margin: 0.625rem auto;
        }

        /* 发送图标容器样式 */
        .send-icon-container {
            position: absolute;
            right: 0.625rem;
            top: 70%;
            transform: translateY(-50%);
            color: #999;
            font-size: 1rem;
        }

        /* 发送图标样式 */
        .send-icon {
            width: 1.25rem;
            cursor: pointer;
        }

        /* 处理中状态样式 */
        .processing {
            cursor: not-allowed !important;
            opacity: 0.5 !important;
        }

        /* 去除聚焦边框 */
        .no-focus-border .el-input__inner:focus {
            border-color: #5F4DFF !important;
            box-shadow: none !important;
            outline: none !important;
        }

        .no-focus-border .el-input__inner {
            border-color: #5F4DFF !important;
            box-shadow: none !important;
            outline: none !important;
            transition: none !important;
        }

        .no-focus-border .el-input.is-focus .el-input__inner {
            border-color: #5F4DFF !important;
            box-shadow: none !important;
            outline: none !important;
        }

        /* 弹窗样式 */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .popup-content {
            width: 25rem;
            max-width: 90%;
            position: relative;
            background: url('../assets/_popup.png') no-repeat center center;
            background-size: contain;
            box-sizing: border-box;
            min-height: 32.5rem;
            height: 32.5rem;
            text-align: center;
        }

        .popup-close {
            position: absolute;
            top: 0.625rem;
            right: 0.9375rem;
            font-size: 1.25rem;
            cursor: pointer;
            color: #999;
        }

        .popup-close:hover {
            color: #333;
        }

        .popup-title {
            font-size: 1.125rem;
            font-weight: bold;
            margin-bottom: 1.25rem;
            color: #333;
        }

        .popup-button {
            width: 100%;
        }

        .custom-input {
            width: 100%;
            padding: 0.625rem;
            height: 3.75rem;
            outline: none; /* 去除焦点时的轮廓 */
            background-color: white; /* 设置背景透明 */
            text-align: left; /* 文本居中 */
            font-size: 0.875rem; /* 可选：调整字体大小 */
            border-radius: 0.625rem;
            border: 0.0625rem solid transparent;
            overflow: hidden;
            resize: none; /* 禁止拖拽调整大小 */
            -ms-overflow-style: none;  /* 隐藏IE和Edge的滚动条 */
            scrollbar-width: none;     /* 隐藏Firefox的滚动条 */
            -webkit-text-size-adjust: 100%;
        }

        /* 隐藏Webkit浏览器的滚动条 */
        .custom-input::-webkit-scrollbar {
            display: none;
        }

        /* 确保没有伪元素 */
        .custom-input::after,
        .custom-input::before {
            display: none;
        }

        /* 如果需要在某些情况下显示边框，可以通过伪类控制 */
        .custom-input:focus {
            /* 不设置任何边框或高亮效果 */
            border: 1px solid transparent;
            background:
                    linear-gradient(white, white) padding-box,
                    linear-gradient(90deg, #8470ff, #5b55ff) border-box;
        }

        .popup-input {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translateX(-50%);
            width: 60%;
            padding: 0.625rem 0.9375rem;
            height: 5rem;
            outline: none;
            background-color: white;
            text-align: left;
            border-radius: 0.625rem;
            font-size: 0.875rem;
            border: 0.0625rem solid transparent;
            font-weight: 400;
            -webkit-text-size-adjust: 100%;
            resize: none; /* 禁止拖拽调整大小 */
            -ms-overflow-style: none;  /* 隐藏IE和Edge的滚动条 */
            scrollbar-width: none;     /* 隐藏Firefox的滚动条 */
        }

        /* 隐藏Webkit浏览器的滚动条 */
        .popup-input::-webkit-scrollbar {
            display: none;
        }

        /* 确保没有伪元素 */
        .popup-input::after,
        .popup-input::before {
            display: none;
        }

        /* 如果需要在某些情况下显示边框，可以通过伪类控制 */
        .popup-input:focus {
            /* 不设置任何边框或高亮效果 */
            border: 1px solid transparent;
            background:
                    linear-gradient(white, white) padding-box,
                    linear-gradient(90deg, #8470ff, #5b55ff) border-box;
        }

        /* 气泡确认对话框样式 */
        .el-message-box--bubble {
            border-radius: 8px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            border: none;
            padding: 16px;
            min-width: 280px;
        }

        .el-message-box--bubble .el-message-box__title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .el-message-box--bubble .el-message-box__content {
            font-size: 13px;
            color: #606266;
            margin-bottom: 16px;
        }

        .el-message-box--bubble .el-message-box__btns {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }

        .el-message-box--bubble .el-button {
            padding: 6px 12px;
            font-size: 12px;
            border-radius: 4px;
        }

        .el-message-box--bubble .el-button--primary {
            background-color: #409EFF;
            border-color: #409EFF;
        }

        .el-message-box--bubble .el-button--default {
            background-color: #f5f7fa;
            border-color: #dcdfe6;
            color: #606266;
        }