 /* 全局样式 */
 body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('../images/index/bg.png') no-repeat top;
    background-size: cover;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

 /* 内容区域样式 */

 /* TabBar 样式 */
 .tab-bar {
    width: 100%;
    height: 1.2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: #190602;
    justify-content: space-between;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.tab-item {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.tab-item img{
    display: block;
    height: 0.52rem;
    
}
/* .tab-item:first-of-type img{
    height: 0.52rem;
}
.tab-item:last-of-type img{
    height: 0.51rem;
} */
    .tab-item span {
        color: #ffda6f;
        font-size: 0.2rem;
        margin-top: 0.08rem;
    }
.tab-item.active span{
    color: #ffda6f;
}


  /* 左侧列表样式 */
  .left-list {
    position: fixed;
    top: 2.3rem;
    left:0.2rem;
    width: 1.69rem;
    height: 5.5rem;
	z-index:5;
}
.left-list .listBox{
    width: 100%;
    height: 100%;
    position: relative;
}
.left-list .listBox .menu{
    width: 1.21rem;
    height: 1.2rem;
    position: absolute;
    top: 0;
    left: 0.24rem;
    z-index: 2;
    background: url('../images/index/menu.png') no-repeat;
    background-size: 100%;
    cursor: pointer; /* 添加光标样式 */
}
.left-list .listBox .list{
    width: 1.69rem;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0.6rem;
    background: url('../images/index/list.png') no-repeat;
    background-size: 100%;
    height: 0; /* 初始高度为 0 */
    overflow: hidden; /* 隐藏溢出内容 */
    transition: height 1s ease; /* 高度变化动画 */
}
.left-list .listBox .list.show {
    height: 4.8rem; /* 展开后的高度 */
}
.left-list-item {
    cursor: pointer;
    font-size: 0.28rem;
    color: #eda070;
    text-align: center;
    font-family: fangsong;
font-weight:bold;
line-height: 0.7rem;
}
.left-list-item:first-of-type{
    margin-top: 0.7rem;
}
.left-list-item.active {
    color: white;
}
/* ------------------ */
 /* 内容区域样式 */
 .content {
    height: calc(100vh - 1.2rem);
    overflow-y: auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
	position:relative;
}

/* 对话窗口样式 */
.chat-window {
    height: 10.3rem; /* 固定对话窗口高度 */
    display: flex;
    flex-direction: column;
    width: 100%;
    background: url('../images/index/chat_bg.png') no-repeat;
    background-size: 100%;
	position:absolute;
	left:0;
	bottom:0;
}
.chatTitle{
    width: 3.97rem;
    height: 0.56rem;
    margin: 0.6rem auto 0;
    background: url('../images/index/chatTitle.png') no-repeat;
    background-size: 100%;
    font-size: 0.33rem;
    line-height: 0.56rem;
    text-align: center;
    color: #e8d363;
    font-weight: bold;
    font-family: fangsong;
}
.chat-messages {
    overflow-y: auto;
    height: 6.5rem;
    padding: 0 0.7rem;
    box-sizing: border-box;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
}

.chat-input {

    display: flex;
    padding: 0 0.9rem;
    box-sizing: border-box;
}
.chat-input.mobile{
    position: fixed;
    bottom: 2.1rem;
    left: 0;
    right: 0;
    z-index: 100;
}
.chat-input input {
    flex-grow: 1;
    padding: 0.05rem;
    border: 1px solid #30130e;
    border-radius: 3px;
    font-size: 0.25rem;
    outline: none;
    background-color: #30130e;
    color: #fff;
}

.chat-input button {
    padding: 0.05rem 0.1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 0.1rem;
    font-size: 0.3rem;
    width: 0.5rem;
    height: 0.5rem;
}
.chat-input button#upload-button{
    background: #fff;
    color: #000;
}
/* -------------- */
 /* 消息样式 */
 .message {
    display: flex;
    margin-bottom: 0.3rem;
}

.message.left {
    justify-content: flex-start;
}

.message.right {
    justify-content: flex-end;
}

.message .avatar {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin: 0 0.1rem;
    background-color: #fff;
    overflow: hidden;
}
.message.right .avatar img{
    display: block;
    height: 100%;
}
.message.left .avatar{
    background: url('../images/login/logo.png') no-repeat;
    background-size: 100%;
}
.message .text {
    font-size: 0.25rem;
    border-radius: 5px;
    background-color: #a84434;
    padding: 0.1rem;
    color: #dcbb3d;
    max-width: 4.5rem;
    word-wrap: break-word;
    word-break: break-all;
}

/* 上传文件样式 */
.message .file {
    padding: 8px;
    border-radius: 5px;
    background-color: #e0e0e0;
    text-decoration: none;
    color: #000;
}

/* 图片样式 */
.message .image {
    /* 设置图片最大宽度 */
    max-width: 3rem;
    max-height: 4rem;
    border-radius: 5px;
}
.message .image img{
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    float: right;
}

/* ---------选择图片和文件 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 黑色半透明 */
    display: none;
    z-index: 1000;
}
#upload-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    width: 6.9rem;
    height: 5.83rem;
    background: url('../images/index/tan.png') no-repeat;
    background-size: 100%;
}

#popup-img {
    cursor: pointer;
    margin: 0 auto;
    display: block;
}
#close-popup {
    width: 0.53rem;
    height: 0.51rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: url('../images/index/close.png') no-repeat;
    background-size: 100%;
}