body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    overflow-y: hidden;
}

.chat-container {
    width: 90%;
    /*max-width: 600px;*/
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow-y: auto;
    height: 95vh;
}

.message {
    display: flex;
    margin-bottom: 15px;
    opacity: 0.7;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 0;
}

.message-content {
    margin-left: 10px;
    background-color: #f0f4f7;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 70%;
    color: #8495a3;
}

.left .message-content {
    order: -1;
    margin-left: 0;
    margin-right: 10px;
    background-color: #f0f4f7;
    color: #8495a3;
}

.nickname {
    font-weight: bold;
    margin-bottom: 5px;
    color: #66CC99;
}

.time {
    font-size: 0.8em;
    color: #aab8c2;
}

        .chatBoxOutside{
            position: fixed; 
    	    bottom: 0rem; 
    	    width: 90%; 
    	    margin: auto;
            left: 0;
            right: 0;
    	    background-color: #fff;
            padding: 10px 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 0 0 10px 10px;
            height: 80px;
        }
    
        .chatBoxInside{
            width: 100%; 
            height: 50%; 
            display: block;
        }
        
        .chatBoxList{
            width: 100%; 
            height: 30px; 
            margin-top: 0.5rem;
            white-space: nowrap; /* 防止内容换行 */
            overflow-y: hidden;  /* 隐藏纵向滚动条 */
            display: flex;
            scroll-behavior: smooth;
            overflow-x: scroll;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            float: left;
            /*移动端要注释掉下面这一行才能滑动*/
            /*overflow-x: hidden;*/
        }

        .chatBoxList::-webkit-scrollbar {
          display: none; /* WebKit 浏览器 */
        }
        
        .chatBoxListButton{
            flex: 0 0 auto; /* 禁止伸缩 */
            height: 30px;
            line-height: 30px;
            text-align: center;
            padding:  0 1rem;
            margin-right: 1rem;
            font-size: 0.8rem;
            float: left;
            background: #cccccc;
            border-radius: 20px;
            color: #ffffff;
            /*max-width: 10rem;*/
            white-space: nowrap; /* 防止文本换行 */
            overflow: hidden; /* 隐藏溢出的文本 */
            text-overflow: ellipsis; /* 显示省略号 */
            cursor: not-allowed;
            display: inline-block;
            /*禁止选中文本*/
            -webkit-user-select: none; /* Chrome, Safari, Opera */
            -moz-user-select: none; /* Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
            width: 33%;
            scroll-snap-align: start;
            display: inline-block;
        }
        
        .chatBoxListButtonMore{
            flex: 0 0 auto; /* 禁止伸缩 */
            height: 30px;
            line-height: 30px;
            text-align: center;
            padding:  0 1rem;
            margin-right: 1rem;
            font-size: 0.8rem;
            float: left;
            background: #cccccc;
            border-radius: 20px;
            color: #ffffff;
            /*max-width: 10rem;*/
            white-space: nowrap; /* 防止文本换行 */
            overflow: hidden; /* 隐藏溢出的文本 */
            text-overflow: ellipsis; /* 显示省略号 */
            cursor: not-allowed;
            display: inline-block;
            /*禁止选中文本*/
            -webkit-user-select: none; /* Chrome, Safari, Opera */
            -moz-user-select: none; /* Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
            width: 33%;
            scroll-snap-align: start;
            display: inline-block;
        }
    
        input[type="text"]{
            outline: none;
            position: relative; 
            width: 80%; 
            left: 0%; 
            height: 100%; 
            line-height: 100%; 
            border-radius: 10px 0 0 10px; 
            border: none; 
            padding-left: 20px; 
            padding-right: 10px; 
            padding-top: 0px; 
            font-size: 1rem; 
            color: #888; 
            float: left; 
            background: #f0f4f7; 
            box-sizing: border-box;
        }
        
        input[type="text"]:focus {
            outline: none;
            position: relative; 
            width: 80%; 
            left: 0%; 
            height: 100%; 
            line-height: 100%; 
            border-radius: 10px 0 0 10px; 
            border: none; 
            padding-left: 20px; 
            padding-right: 10px; 
            padding-top: 0px; 
            font-size: 1rem; 
            color: #888; 
            float: left; 
            background: #f0f4f7; 
            box-sizing: border-box;
        }
        
        button {
            background-color: #ccc;
            border: none;
            border-radius: 0 10px 10px 0;
            outline: none;
            cursor: pointer;
            color: #ffffff;
            text-align: center;
            height: 100%;
            line-height: 100%;
            width: 20%;
            float: left;
            font-size: 1rem;
            cursor: not-allowed;
        }
        .para-break {
          height: 0; /* 保持结构但隐藏元素 */
          margin-bottom: 0.4em;
          display: block;
        }
        
        .semi-break {
          margin-bottom: 0.2em;
          display: block;
        }
        
        .colon-break {
          margin-bottom: 0.1em;
          display: block;
        }
        
        /* 中文标点挤压优化 */
        :lang(zh) {
          text-spacing: ideograph-alpha ideograph-numeric;
        }
        
        /* 基础分割线样式 */
        .think-divider {
          border: 3px;
          height: 2px;
          background: linear-gradient(90deg, transparent, #ddd, transparent);
          margin: 1.5em 0;
        }
        
        .chat-br{
            height: 0.1em;
        }
        
        .chat-think{
            color: #007bff;
            margin-bottom: 1rem;
            text-align: right;
        }
        
        .chat-answer{
            color: #007bff;
            margin-bottom: 1rem;
            text-align: right;
        }
        
.bottom{
    width: 100%; 
    height: 5.2rem; 
    display: block;
}
        
@media (max-width: 400px) {
    body {
        zoom: 0.8;
    }
    
    .chat-container {
        width: 90%;
        /*max-width: 600px;*/
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        overflow-y: auto;
        height: 110%;
        position: relative;
        top: 10%;
    }
    
    .bottom{
        width: 100%; 
        height: 2.5rem; 
        display: block;
    }
    
    .time{
        width: 70%;
        position: relative;
        left: 15%;
    }
}    
    