* {
    margin: 0;
    padding: 0;
    font-family: "宋体";
    /* -webkit-user-select: none; */
    /* user-select: none; */
}

/* 禁止图片长按放大/保存（针对 Safari 等浏览器） */
img {
    pointer-events: none;
    /* 先禁止图片的默认事件，后续通过 JS 重新处理拖拽 */
}

html {
    /* 顶部安全区域 - 避免被浏览器顶部遮挡 */
    padding-top: env(safe-area-inset-top);
    padding-top: constant(safe-area-inset-top);

    /* 底部安全区域 - 避免被浏览器底部遮挡 */
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: constant(safe-area-inset-bottom);

    /* 左右安全区域 - 主要针对刘海屏侧边 */
    padding-left: env(safe-area-inset-left);
    padding-left: constant(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-right: constant(safe-area-inset-right);

    /* 兼容旧版iOS */
    box-sizing: border-box;

    height: 100%;
}

input:focus {
    outline: none;
}

:root {
    --theme-color: #000000;
    --theme-IptTextcolor: #ffffff;
    --theme-TextColor: #ffffff;
    --real-viewport-height: 100vh;
    /* 兜底值 */
    --footer_tab_height: 55px;
}

svg path {
    fill: var(--theme-color) !important;
}

body {
    box-sizing: border-box;
    position: relative;
    width: 100vw;
    height: var(--real-viewport-height);
    /* 关键：禁用固定视口高度，防止整体上移 */
    height: 100%;
    overflow-y: auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.pages,
.index_page {
    flex-direction: column;
    position: fixed;
    top: 0px;
    width: 100%;
    height: var(--real-viewport-height);
    /*display: flex;*/
    transition: ease .3s;
    z-index: 999;
    -webkit-user-select: none;
    user-select: none;

}

.index_page {
    /* display: none; */
    z-index: 999;
    transition: ease .3s;
    background: #fff;
    background-size: cover;
    background-position: center;

}

.index_page .Status_bar_Battery svg path {
    fill: #000 !important;
}

.Status_bar_Time {
    font-family: "微软雅黑";
}

.page {
    display: none;
    position: absolute;
    top: 0;
    width: 100vw;
    height: calc(var(--real-viewport-height) - 1vh - var(--footer_tab_height));
    z-index: 999;
}

.page .header {
    width: 100%;
    height: 7vh;
    text-align: center;
    line-height: 7vh;
    font-size: 18px;
    background-color: #ffffff;
    color: var(--theme-color);
    font-weight: 700;
}

.page-home .header svg {
    width: 24px;
    height: 24px;
    position: absolute;
    right: 5%;
}

.home_logo {
    width: 5vh;
    height: 5vh;
    margin-left: 4vw;
}

.home_title {
    position: absolute;
    width: 100%;
    margin: auto;
    font-size: 18px;
    line-height: 7vh;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: "微软雅黑";
}

.page-home .header {
    display: flex;
    align-items: center;
}

.home-ipt {
    margin: 0 auto;
    display: block;
    width: 90%;
    height: 40px;
    border-radius: 10px;
    border: none;
    background-color: var(--theme-color);
    opacity: 0.7;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
}

.home-ipt::placeholder {
    color: var(--theme-IptTextcolor);
}

.home-ipt:focus {
    outline: none;
    border: none;
    background-color: #000000;
    color: #fff;

}

/* 底部tab栏 */
.footer-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--footer_tab_height);
    background-color: #ffffff;
    /* border: 1px solid #f5f5f5; */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 1vh;
    padding-top: 10px;
    z-index: 999;
}

.footer-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: var(--theme-color);
    /* opacity: 0.7; */
    background: transparent;
}

.footer_home_reagion {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-tab-item svg {
    width: 23px;
    height: 23px;
    margin-bottom: 10px;
}

.footer-tab-item:nth-of-type(1) svg {
    /* position: relative; */
    width: 23px;
    height: 23px;
    margin-bottom: 13px;
}

.footer-tab-item:nth-of-type(2) svg {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
}

.footer-tab-item:nth-of-type(3) svg {
    width: 23px;
    height: 23px;
    margin-bottom: 13px;
    margin-top: 2px;
}

.footer-tab-item:nth-of-type(4) svg {
    width: 23px;
    height: 23px;
    margin-bottom: 13px;
    margin-top: 2px;
}

/* 聊天消息列表 */
.chat-list {
    width: 100%;
    /* height: calc(var(--real-viewport-height) - 7vh - 40px - 70px - 1vh - 10px - 20px); */
    height: calc(var(--real-viewport-height) - 7vh - var(--footer_tab_height));
    /* margin-top: 20px; */
    overflow-y: auto;
}

/* ai好友聊天项 */
.chat-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 10px 0;
    border-bottom: 1.5px dashed #eaeaea;
}
.chat-item:last-child{
    border-bottom: none !important;
}
.AI_Friends_Avatar {
    width: 2.8125rem;
    margin-left: 4vw;
    height: 2.8125rem;
    object-fit: cover;
    border-radius: 5px;
}

.chat-content {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    /* flex: 1; */
    max-width: 60%;
    /* width: max-content; */
    height: 2.9375rem;
    margin-left: 10px;
    /* padding: 7px 0; */
    box-sizing: border-box;
}

.chat-name {
    font-size: 1rem;
    font-weight: 700;
    /* margin-bottom: 1%; */
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-text {
    font-size: 15px;
    width: 66vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #979797;
    margin-top: auto;
}

/* 我的页面 */
.page-Mine {
    background-color: #fafafa;
}

.userInfo_region {
    position: relative;
    width: 100vw;
    height: 25vh;
    background-color: #ffffff;
}

.userInfo_item {
    position: absolute;
    left: 5%;
    bottom: 30px;
    width: 90%;
    display: flex;
}

.userInfo_left {
    position: relative;
}

.userInfo_avatar {
    position: absolute;
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    z-index: 1;
    /* border: 1px solid var(--theme-color); */

}

.userInfo_avatar_box {
    position: absolute;
    left: calc(-5% - 6px);
    top: calc(-5% - 6px);
    width: 90px;
    height: 90px;
    background: url(./头像框3.png);
    background-size: cover;
    z-index: 2;
}

.userInfo_right {
    position: relative;
    left: 22%;
    margin-left: 20px;
}

.username {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4%;
    /* color: var(--theme-color); */
    color: #000;
}

.AP_Id {
    font-size: 17px;
    color: #6d6d6d;
    text-indent: 2px;
}

.userState {
    margin-top: 15px;
    font-size: 13px;
    color: #6d6d6d;
    border: 1px solid #6d6d6d;
    width: max-content;
    padding: 3px 10px;
    border-radius: 30px;
}

/* 服务选项 */
.service_region,
.option {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    line-height: 60px;
    margin-top: 5px;
    font-size: 16px;
    box-sizing: border-box;
    padding-left: 20px;
}

.Circleoffriends_option {
    margin-top: 0px !important;
    /* color: var(--theme-color) !important; */
}

.option svg {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0px;
}

.collection_option svg,
.Circleoffriends_option svg {
    width: 22px;
    height: 22px;
    margin-left: -3px !important;
}

.collection_option svg {
    width: 27px;
    height: 27px;
    margin-left: -5px !important;
    margin-right: 8px;
}
/* 设置页 */
.setting_page,
.api_set_page,
.setThemeColor_Page,
.ViewerUSER_ID_Page,
.Thirdparty_pages {
    position: absolute;
    top: 0;
    width: 100vw;
    height: calc(var(--real-viewport-height));
    display: none;
    background-color: #f5f5f5;
    z-index: 999;
}

.Add_aiFriend_Page {
    position: absolute;
    top: 0;
    background-color: #ffffff !important;
    overflow-y: auto;
}

.Add_aiFriend_Page .back_header {
    position: sticky;
    top: 0;
}

.back_header svg {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
}

.backBtn {
    display: flex;
    align-items: center;
    height: 100%;
}

.ViewerUSER_ID_Page {
    background-color: #ffffff !important;
}

.USER_ID_region {
    position: relative;
    width: 90%;
    height: 40px;
    margin: 0 auto;
}

.USER_ID_ipt {
    box-sizing: border-box;
    padding: 0 120px 0 10px;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    text-indent: 5%;
    border: 1px solid var(--theme-color);
    font-size: 16px;
}

.toast_region {
    display: none;
    position: fixed;
    top: 0%;
    left: 0%;
    background-color: #00000049;
    z-index: 999;
    width: 100vw;
    height: 100vh;
}

.toast_1 {
    margin: auto;
    width: max-content;
    height: max-content;
    padding: 10px 20px;
    border-radius: 60px;
    z-index: 999;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
}

.USER_ID_ipt:focus {
    outline: none;
}

.USER_ID_copyBtn {
    display: block;
    position: absolute;
    right: 5px;
    top: 5px;
    width: max-content;
    height: 30px;
    background-color: var(--theme-color);
    padding: 0 10px;
    border-radius: 60px;

    line-height: 30px;
    text-align: center;
    font-size: 15px;
    color: var(--theme-TextColor);
}

.setting_page .back_header {
    margin-bottom: 0 !important;
}

.api_set_page .option {
    font-size: 18px;
    /* font-weight: 700; */
}

.api_set_page {
    background-color: #ffffff;
}

.back_header {
    position: relative;
    display: flex;
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 50px;
    font-weight: 600;
    /* text-align: center; */
}

.backBtn {
    position: absolute;
    left: 20px;
    width: max-content;
    color: var(--theme-color);
    z-index: 2;
}

.backBtn:active {
    background: transparent;
}

.page_text {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 50px;
    color: var(--theme-color);
    z-index: 1;
}

.api_optionForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    height: auto;
    margin: 5vh auto;
}

.api_ipt {
    box-sizing: border-box;
    padding: 0 5%;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #424242;
    background-color: var(--theme-color);
    color: var(--theme-IptTextcolor);
    text-align: center;
    font-size: 17px;
    letter-spacing: 2px;
    margin: 10px 0;
}

.api_ipt:focus {
    outline: none;
    color: var(--theme-IptTextcolor);
    border: 1px solid var(--theme-color);

}

.api_ipt::placeholder {
    color: var(--theme-IptTextcolor);
}

.api_title {
    box-sizing: border-box;
    width: 100%;
    /* text-indent: 10px; */
    padding-left: 5px;
    line-height: 25px;
    /* margin: 5px 0; */
    font-size: 15px;
    color: #979797;
}

.models {
    width: 100%;
    margin: 0px 0 10px 0;
}

.model {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #929292;
    color: #929292;
    text-align: center;
    line-height: 50px;
    font-size: 17px;
    letter-spacing: 2px;
    margin: 15px 0 0 0;

}

.model_active {
    box-sizing: border-box;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    font-weight: 700;
}

.add_aiFriend {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: calc(50vh - 25px);
    right: 5%;
    width: max-content;
    height: max-content;
    background: transparent;
    border-radius: 50%;
    padding: 5px !important;
}

.add_aiFriend svg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0px 0px 5px var(--theme-color);
}

.theme_color_region {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 20px auto;
    height: 150px;
}

.ThemeColor_regionLeft {
    width: 150px;
    height: 100%;
}

.ThemeColor_regionLeft_text {
    width: 150px;
    height: 40px;
    line-height: 40px;
    text-indent: 10px;
}

.themeColorIpt {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 20px;
    border: none;
}

.themeColorIpt:focus {
    outline: none;
}

.themeColorIpt:hover {
    outline: none;
}

.ai_option_title {
    line-height: 30px;
    text-indent: 5%;
    font-size: 1.9vh;
    font-weight: 700;
}

.Ai_firend_avaterUpload {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#ai_friend_avatar {
    display: none;
}

.ai_friend_avatar_label {
    display: block;
    width: 100px;
    height: 100px;
    border: 2px solid #000;
    margin-left: 5%;
    margin-top: 10px;
    font-size: 12vh;
    /* font-weight: 700; */
    text-align: center;
    line-height: 100px;
    border-radius: 5px;
}

.ai_friend_avatar_preview {
    display: none;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin-left: 5%;
    margin-top: 10px;
    object-fit: cover;
}

.handleAvatar_title {
    display: none;
    width: 200px;
    height: 100px;
    margin-left: 5%;
    margin-top: 10px;
}

.ai_friend_nickname_region {
    width: 100%;
    margin-top: 20px;
}

.ai_friend_nickname_ipt {
    display: block;
    width: 90%;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #000000;
    text-indent: 5%;
    margin: 15px auto;
    font-size: 16px;
}

.ai_friend_nickname_ipt:focus {
    outline: none;
}

.ai_friend_nickname_ipt::placeholder {
    font-size: 16px;
    color: #000;
}

.gender_section {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 20px auto;
}

.ai_friend_gender_select,
.ai_friend_group_select {
    display: block;
    width: 100%;
    height: 40px;
    text-indent: 5%;
    font-size: 16px;
    color: #000;
    background: transparent;
    border: 2px solid #000;
    border-radius: 10px;
    /* 移除所有系统默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.group_section {
    align-items: center;
    width: 90%;
    margin: 20px auto;
}

.ai_friend_gender_select:focus,
.ai_friend_group_select:focus {
    outline: none;
}

.ai_friend_world_region,
.ai_friend_personality_region,
.ai_friend_tipsWord_region {
    display: block;
    width: 90%;
    margin-top: 20px;
}

/* ai好友配置页textarea样式 */
#aiFriendWorld_textarea,
#aiFriendPersonality_textarea,
#aiFriendTipsWord_textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-left: 5%;
    margin-top: 10px;
    border: 2px solid #000;
    padding: 10px;
    font-size: 16px;
}

.AiFreindInfoSave_btn {
    display: block;
    width: 90%;
    height: 50px;
    background:var(--theme-color);
    border-radius: 10px;
    color: #fff;
    margin: 30px auto;
    line-height: 50px;
    text-align: center;
    font-size: 17px;
}

.chatPage {
    position: fixed;
    bottom: 0;
    /* height: 100vh; */
    height: var(--real-viewport-height);
    /* background-color: #fff; */
    overflow-y: hidden;
}

.chat_bottom_region {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0px;
    width: 100%;
    min-height: 13vh;
    background-color: #ffffff !important;
    z-index: 999;
}

.message_ipt_send {
    /* position: absolute; */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 6vh;
    margin-top: 1vh;
}

.message_ipt {
    width: 90%;
    height: 5vh;
    border-radius: 5px;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    text-indent: 5%;
    font-size: 1.6vh;
}

/* .message_ipt:focus {} */

.message_ipt::placeholder {
    color: var(--theme-color);
}

.send_btn {
    display: flex;
    align-items: center;
    position: absolute;
    right: 7%;
    width: 4.5vh;
    height: 4.5vh;
    border-radius: 50%;
    text-align: center;
    line-height: 4vh;
    font-size: 2vh;
    /* background:url(http://192.168.238.96:3000/uploads/超可爱的动态表情包！！！_1_doki_来自小红书网页版.gif); */
    /* background-color: #000; */
    color: #ffffff;
}

.send_btn video {
    width: 100%;
    height: 100%;
    border: none;

}

.send_btn img {
    width: 100%;
    height: 100%;
    /* max-width: 90%;
    max-height: 90%; */
    border: none;
}

.capabilities_region {
    /* box-sizing: border-box; */
    display: flex;
    align-items: center;
    /* padding: 0 5%; */
    /* position: absolute; */
    /* left: 6%; */
    /* bottom: 5px; */
    width: 90%;
    overflow-x: auto;
    height: calc(6vh - 10px);
    margin-top: .5vh;
    /* 可选：优化滚动体验，尤其在移动端 */
    -webkit-overflow-scrolling: touch;
    /* 隐藏滚动条 - 标准浏览器 */
    scrollbar-width: none;
    /* Firefox */
}

/* 隐藏滚动条 - WebKit内核浏览器（Chrome/Safari/Edge） */
.capabilities_region::-webkit-scrollbar {
    display: none;
    /* 彻底隐藏滚动条 */
}

.capabilities_item {
    /* width: calc(6vh - 25px);
    height: calc(6vh - 25px); */
    width: 7vw;
    height: 7vw;
    text-align: center;
    margin-right: 20px;
    /* 禁止子元素压缩，保证尺寸固定 */
    flex-shrink: 0;
}

.capabilities_item svg {
    width: 100%;
    height: 100%;

}

.chat_history_region {
    position: fixed;
    top: 50px;
    width: 100%;
    height: calc(var(--real-viewport-height) - 13vh - 40px);
    /* box-sizing: border-box; */
    /* margin-bottom: 13vh; */
    overflow-y: auto;
    overflow-x: hidden;
    /* background-color: #f2f2f2; */
    /* background:url(./images/微信图片_20250811232129.png); */
    background-size: cover;
    /* padding-bottom: 13vh; */
    /* box-sizing:border-box; */
    /* padding-top:50px; */
}

.chat-avatar {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.noreadMessageNumber {
    position: absolute;
    right: -7px;
    top: -1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff3300;
    color: #ffffff;
    text-align: center;
    line-height: 20px;
}

.noreadMessageNumber_icon {
    display: none;
    position: absolute;
    right: -5px;
    top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff0000;
    color: #ffffff;
    text-align: center;
    line-height: 20px;
}

.ai_message_region {
    display: flex;
    align-items: start;
    width: 90%;
    margin: 20px auto;
    min-height: 4.5vh;
    /* background-color: #000; */
}

.chatPage>.back_header {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    position: fixed !important;
    background: #ffffff86 !important;
    top: 0 !important;
    z-index: 999 !important;

}

.chatPage>.back_header>svg {
    position: absolute;
    right: 20px;
    width: 27px;
    height: 27px;
    z-index: 2;
}

.ai_Avatar {
    width: 38px;
    height: 38px;
    border-radius: 5px;
}

.ai_message_right {
    margin-left: 10px;

}

/* ai的聊天气泡样式——默认 */
.ai_Chat_bubbles {
    padding: 5px 10px;
    line-height: 25px;
    box-sizing: border-box;
    width: max-content;
    max-width: 66.5vw;
    min-height: 37px;
    background-color: #ffffff;
    border-radius: 5px;
    position: relative;
    color: #000000;
}

/* ai的聊天气泡样式——自定义 */
/* .ai_Chat_bubbles {
    padding: 10px 10px 10px 20px;
    line-height: 3vh;
    box-sizing: border-box;
    width: max-content;
    max-width: 60vw;
    min-height: 4.5vh;
    background-color: #dcfff2;
    background: linear-gradient(to right bottom, #ffdce5, #ffd1e3);
    border: 2px solid #ef70a1;
    border-radius: 30px 10px 30px 5px;
    border-top: none;
    border-left: 1px solid #ef70a7;
    border-right: 1px solid #ef7094;
    position: relative; 
    color: #b90034;
    
} */

/* 给.ai_Chat_bubbles 左上角加背景图的伪类 ::before */
/* .ai_Chat_bubbles::before {
    content: "";
    position: absolute;
    bottom: 0%;
    left: -25px;
    width: 30px; 
    height: 30px;
    background-image: url('https://cdn.pixabay.com/animation/2025/02/04/01/20/01-20-23-935_512.gif'); 
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 30px 0 0 5px; 
} */

/* 如果你想给.Chat_bubbles 其他角加背景图，比如右下角，可新增类似这样的伪类（用 ::after 区分示例） */
/* .ai_Chat_bubbles::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 30px;
    height: 30px;
    background-image: url('https://cdn.pixabay.com/animation/2022/12/05/15/23/15-23-06-837_512.gif');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 0 30px 5px;
} */
/* -------------------- */
.user_message_region {
    display: flex;
    justify-content: end;
    align-items: start;
    width: 90%;
    margin: 20px auto;
    min-height: 4.5vh;
    /* background-color: #000; */
}

.user_Avatar {
    width: 38px;
    height: 38px;
    border-radius: 5px;
}

.user_message_left {
    margin-right: 10px;
}

/* 用户的聊天气泡样式——默认 */
.user_Chat_bubbles {
    padding: 5px 10px;
    line-height: 30px;
    box-sizing: border-box;
    margin-right: 5%;
    width: max-content;
    max-width: 66.5vw;
    min-height: 30px;
    background-color: #4bff73;
    border-radius: 5px;
    position: relative;
    color: #000000;
}

/* ai的聊天气泡样式——自定义 */
/* .user_Chat_bubbles{
    padding: 10px 20px 10px 20px;
    line-height: 3vh;
    box-sizing: border-box;
    margin-right: 5%;
    width: max-content;
    max-width: 60vw;
    min-height: 4.5vh;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 23px 17px 19px 16px;
    border-top: none;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    position: relative; 
    color: #000000;
} */
/* 给.user_Chat_bubbles 左上角加背景图的伪类 ::before */
/* .user_Chat_bubbles::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -30px;
    width: 40px; 
    height: 40px;
    background-image: url('https://cdn.pixabay.com/animation/2024/10/24/21/30/21-30-12-951_512.gif'); 
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 30px 0 0 5px; 
} */

/* 如果你想给.Chat_bubbles 其他角加背景图，比如右下角，可新增类似这样的伪类（用 ::after 区分示例） */
/* .user_Chat_bubbles::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 30px;
    height: 30px;
    background-image: url('https://cdn.pixabay.com/animation/2022/12/05/15/23/15-23-06-837_512.gif');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 0 30px 5px;
} */
.group_title {
    position: sticky;
    top: 0;
    width: 90%;
    height: 40px;
    line-height: 40px;
    margin: 0 auto;
    color: var(--theme-color);
    font-weight: 700;
    font-size: 15px;
    background-color: #fff;
}

.group {
    width: 100%;
}

.ai_friend_item {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 15px auto;
}

.friend_avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.firend_name {
    margin-left: 5%;
    font-size: 16px;
    width: 90%;
    line-height: 40px;
    border-bottom: 1px solid #f7f7f7;
}

.page-Contacts {
    overflow-y: auto;
}

.page-Contacts .header {
    position: sticky;
    top: 0;
}

.all_friends_number {
    margin: 20px auto;
    text-align: center;
    font-size: 14px;
    color: #6d6d6d;
    /* margin-bottom: 17vh; */
}

.newMessagesToast_item {
    display: flex;
    align-items: center;
    position: fixed;
    top: 2vh;
    left: 5%;
    width: 90%;
    height: 55px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
    box-shadow: 0 3px 10px #d0d0d0;
    transition: ease 1s;
    z-index: 9999;
    animation: newMessagesToast_item ease 1s forwards;
    padding: 0px 10px;
    box-sizing: border-box;
}

@keyframes newMessagesToast_item {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0vh);
        opacity: 1;
    }
}

.newMessage_friendAvatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.newMessagesToast_itemRight {
    flex: 1;
    height: 40px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.newMessagesToast_itemName {
    font-weight: 500;
    /* margin-bottom: 8px; */
    font-size: 15px;
}

.newMessagesToast_itemContent {
    font-size: 14px !important;
    color: #646464;
    /* text-indent: 3px; */
}

.chat_more_page {
    height: var(--real-viewport-height) !important;

}

.setchatBg_page {
    height: var(--real-viewport-height) !important;

}

.refresh-loading {
    position: fixed;
    top: 50px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30px;
    background-color: #fff;
    color: #6d6d6d;
}

.refresh-loading img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

.updateUserInfo_page>.back_header {
    margin-bottom: 0 !important;
}

.updateUserInfo_page>.option {
    margin-top: 0px !important;
    font-size: 16px;
    /* margin-bottom: 5px !important; */
}

.option_right {
    display: flex;
    align-items: center;
    position: absolute;
    right: 5%;
    height: 60px;

}

.set_userAvatar {
    width: 35px;
    height: 35px;
    border-radius: 5px;
}

.updateUserInfo_page {
    height: var(--real-viewport-height);
}

.updateUserAvatar_page,
.lastAvatarMenu_page {
    position: relative;
    background-color: #000;
}
.bqb_preview_page{
    display: none;
    flex-direction: column;
    /* justify-content: center;
    align-items: center; */
    position: relative;
    background: #ffffff;
    height: var(--real-viewport-height) !important;
}
.bqb_more>path{
    fill: var(--theme-color) !important;
}
.bqb_more {
    position: absolute;
    right: 20px;
    width: 27px;
    height: 27px;
    z-index: 2;
}
.bqb_preview_page>.back_header{
    position: absolute;
    top: 0;
    display: flex;
    align-items: center !important;
}
.bqb_preview_page>.back_header>svg{
    width: 27px;
    height: 27px;
}
.bqb_preview_img{
    /* position: absolute;
    top: calc(var(--real-viewport-height) / 2 - 25vw); */
    margin: auto;
    /* left: 25vw; */
    max-width: 50vw;
    max-height: 50vw;
    object-fit: cover;
    /* z-index: 99999; */
}
.updateUserAvatar_page.backBtn {
    position: relative;
}

.updateUserAvatar_page>.back_header,
.lastAvatarMenu_page>.back_header {
    display: flex;
    align-items: center;
    background: none;
    color: #fff !important;
}

.updateUserAvatar_page>.back_header>.backBtn>svg>path {
    fill: #fff !important;
}

.lastAvatarMenu_page>.back_header>.backBtn>svg>path {
    fill: #fff !important;
}

.backBtn>svg>path {
    fill: var(--theme-color) !important
}

.avatar_more {
    position: absolute;
    right: 20px;
    width: 27px;
    height: 27px;
    z-index: 2;
}


.lastAvatar_more {
    position: absolute;
    right: 20px;
    width: 27px;
    height: 27px;
    z-index: 2;
}

.lastAvatar_more>path {
    fill: #fff !important;
}

.avatar_more>path {
    fill: #fff !important;
}

.set_userInfo_preview {
    position: absolute;
    top: calc(var(--real-viewport-height) / 2 - 50vw);
    width: 100vw;
    height: 100vw;
    object-fit: cover;
}

.set_lastAvatarMenu_preview {
    position: absolute;
    top: calc(var(--real-viewport-height) / 2 - 50vw);
    width: 100vw;
    height: 100vw;
    object-fit: cover;
}

.avatarMore_menuMask {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: ease .3s;
    height: var(--real-viewport-height);
    background: #000000b3;
    z-index: -2;
}


.lastAvatarMore_menuMask {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: ease .3s;
    height: var(--real-viewport-height);
    background: #000000b3;
    z-index: -2;
}

.avatar_more_menu {
    position: fixed;
    /* top: translateY(calc(var(--real-viewport-height) - 330px - 4vh)); */
    bottom: 0;
    opacity: 0;
    width: 100%;
    /* transform: translateY(var(--real-viewport-height)); */
    transition: ease .3s;
    background: #f7f7f7;
    /* height: 130px; */
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    /* padding-top: 20px; */
    z-index: -1;
    border: 1px solid #dddddd;
}

.avatar_more_menuItem,
.avatar_more_menubackItem {
    width: 100%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background: #fff;
}

.avatar_more_menubackItem {
    padding-bottom: 4vh;
    margin-top: 10px;
}


.lastAvatar_more_menu {
    position: fixed;
    /* top: translateY(calc(var(--real-viewport-height) - 330px - 4vh)); */
    bottom: 0;
    opacity: 0;
    width: 100%;
    /* transform: translateY(var(--real-viewport-height)); */
    transition: ease .3s;
    background: #f7f7f7;
    /* height: 130px; */
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    /* padding-top: 20px; */
    z-index: -1;
    border: 1px solid #dddddd;
}

.lastAvatar_more_menuItem,
.lastAvatar_more_menubackItem {
    width: 100%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background: #fff;
}

.lastAvatar_more_menubackItem {
    padding-bottom: 4vh;
    margin-top: 10px;
}


.use_lastAvatar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #2a2a2a;
    color: #ffffff;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    box-sizing: border-box;
    padding-top: 10px;
}

.saveSetAfterName {
    position: fixed;
    right: 5%;
    font-size: 1rem;
    color: #fff;
    background: #2865f3;
    padding: 3px 5px;

}

.iphone_Status_bar {
    display: flex;
    width: 100%;
    height: 44px;
    background-color: transparent;
}

.Status_bar_Time {
    flex: 2;
    color: #000;
    line-height: 44px;
    text-align: center;
    font-weight: 700;
    /* font-size: 1.9vh; */
    font-size: 17px;
}

.Status_bar_Network {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.NetWorkContent {
    position: relative;
    display: flex;
    width: 70%;
    height: 30px;
    background-color: #000;
    border-radius: 30px;
    transition: all 0.5s ease;
    /* border: .5px solid #232323; */
    box-shadow: 0px 0px 10px #232323, inset 0px 0px 10px #232323;
    /* margin: 7px auto; */
}

.status_gif {
    margin: auto;
    width: 30px;
    height: 30px;
}

.status_gif video {
    width: 100%;
    height: 100%;
}

.statusColor {
    position: absolute;
    top: 10px;
    right: 7%;
    width: 10px;
    height: 10px;
    transition: all 0.5s ease;
    background-color: rgb(53, 235, 113);
    border-radius: 50%;
}

.Status_bar_Battery {
    position: relative;
    right: 3%;
    display: flex;
    justify-content: center;
    flex: 1;
}

.Status_bar_Battery svg {
    width: 24px;
    height: 24px;
    margin: 10px auto;
    font-weight: 700;
}

.page-Mine svg path{
    fill: #000 !important;
}
.Status_bar_Signal {
    position: relative;
    right: 4%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: start;
}

.Signal_content {
    box-sizing: border-box;
    padding: 2% 2%;
    position: relative;
    display: flex;
    align-items: center;
    width: 60%;
    height: 16px;
    border: 2px solid #5c5c5c;
    border-radius: 4px;
}


.signal_content_right {
    position: absolute;
    right: -5px;
    width: 2px;
    height: 70%;
    background-color: #5c5c5c;
}

.signal {
    width: 100%;
    height: 100%;
    /* border-radius: 5px; */
    background-color: #000;

}

.iphone_dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* 让背景穿透点击 */
    z-index: 999;
}

.dock_background {
    position: absolute;
    bottom: 20px;
    width: 90%;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.dock_icons {
    position: absolute;
    bottom: 20px;
    width: 90%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    pointer-events: auto;
}

.app_icon {
    display: flex;
    /* height: 70vw; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 17vw;
    margin: 0 2vw;
    text-align: center;
    /* cursor: pointer; */
    /* 核心：去除所有默认交互反馈 */
    -webkit-tap-highlight-color: transparent;
    /* 去除移动端点击灰色背景 */
    outline: none;
    /* 去除聚焦时的轮廓线 */
    /* user-select: none; */
    /* 禁止文本选中 */
}

.aipeibanApp {
    height: 18vw;
}

.app_icon:focus {
    outline: none;
}

.app_icon img {
    width: 16vw;
    height: 16vw;
    border-radius: 10px;
    object-fit: cover;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    transition: transform 0.2s ease;
}

.app_icon span {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #000;
    margin-top: 10px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 图标悬停效果 */
.app_icon:hover img {
    transform: scale(1.05);
}

/* 适配深色背景 */
body.dark-mode .app_icon span {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* 3. APP网格布局 */
.app_desktop {
    width: 100%;
    height: calc(100vh - var(--footer_tab_height) - 44px);
    box-sizing: border-box;
    padding: 10px 5%;
}

.app_grid {
    height: 100%;
}

.app_list {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(8, 1fr); */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
    height: 90%;
    position: relative;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    /* height: max-content; */
    height: 100%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: relative;
    z-index: 20;
    cursor: pointer;
}


/* 长按激活状态 */
.app.edit_active {
    z-index: 999 !important;
    /* 强制置顶 */
    transform: scale(1.15);
    z-index: 40;
    /* 确保在最上层 */
}

/* 编辑模式下其他图标样式 */
.edit_mode .app:not(.edit_active) {
    opacity: 0.7;
    transition: transform 0.3s ease;
    /* 为位置调整添加动画 */
}

/* 5. 图标和文字样式 */
.desktop_app_icon {
    width: 75%;
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
}

.diy_app_icon {
    width: 67%;
}

.desktop_app_name {
    width: 100%;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #000000;
    font-family: "微软雅黑";
    font-size: 3.5vw;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 1.5vw;
    text-overflow: ellipsis;
}

/* 6. 编辑菜单样式 */
.app_edit_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    /* display: flex; */
    gap: 10px;
    background: rgba(255, 255, 255, 0.863);
    /* padding: 5px 10px; */
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    width: 25vw;
}

.widget_edit_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    /* display: flex; */
    gap: 10px;
    background: rgba(255, 255, 255, 0.863);
    /* padding: 5px 10px; */
    border-radius: 8px;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.2s ease;
    width: 25vw;
    z-index: 999;
}

.widget.edit_active .widget_edit_menu {
    opacity: 1;
    pointer-events: auto;
    z-index: 999 !important;
    /* 强制最高层级 */
}

.app.edit_active .app_edit_menu {
    opacity: 1;
    pointer-events: auto;
    z-index: 999 !important;
    /* 强制最高层级 */
}

.app_edit_menuoption {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #000 !important;
    font-family: "微软雅黑";

}

.widget_edit_menuoption {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #000 !important;
    font-family: "微软雅黑";
}

.app_edit_menu div {
    color: white;
    font-size: 12px;
    padding: 3px 8px;
}

.remove_btn {
    /* background: #ff3b30; */
    border-radius: 4px;
}

.share_btn {
    /* background: #007aff; */
    border-radius: 4px;
}

/* 1. 背景模糊层样式 */
.blur_background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-user-select: none;
    user-select: none;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 2. 编辑模式激活时的样式 */
.edit_mode {
    /* 防止页面滚动 */
    overflow: hidden;
}

.edit_mode .blur_background {
    opacity: 1;
    pointer-events: auto;
    z-index: 998;
}

.edit_active img {
    pointer-events: auto;
}

/* 添加小组件按钮 */
.add_widget_btn {
    position: fixed;
    top: 50px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.add_widget_btn.active {
    opacity: 1;
    pointer-events: auto;
}

.add_widget_btn span:first-child {
    background: white;
    color: black;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* 小组件选择弹窗 */
.widget_selector {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1001;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 80vh;
    padding-bottom: 3vh;

}

.widget_selector.active {
    bottom: 0;
}

.widget_selector_header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.widget_selector_header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close_btn {
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close_btn:hover {
    background: #f0f0f0;
}

.widget_list {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 60px);
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.widget_item {
    padding: 15px;
    padding-left: 20px;
    border-radius: 0 10px 10px 0;
    border-left: 10px solid #f11861;
    background: #000000;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    color: #fff;
}

/* .widget_item:hover {
    background: #eee;
    transform: translateY(-2px);
} */

.widget_item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.widget_item p {
    margin: 0;
    font-size: 14px;
    color: #c5c5c5;
}

/* 小组件样式 */
.widget {
    border-radius: 16px;
    /* overflow: hidden; */
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: relative;
    z-index: 20;
    cursor: pointer;
}


.widget-clock-small {
    position: relative;
    grid-column: span 2;
    grid-row: span 1;
}

.widget-clock-small .widget_content {
    background: #f30077 !important;
    color: #fff;
    border-radius: 10px;
    box-shadow: inset 1vh 1vh 10px #ff3d9b,
        inset -1vh -1vh 10px #ce0064,
        5px 5px 10px #840f48;
}

.widget-clock-small .widget_content .date {
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 1.5vh;
    color: #ffffff;
}

.widget-clock-small .widget_content .time {
    position: absolute;
    /* top: 30%; */
    font-size: 3.5vh;
    color: #ffffff;
    font-family: "微软雅黑";
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #b7b7b7;
}

.widget-weather-small {
    grid-column: span 2;
    grid-row: span 1;
}

.widget-weather-small .widget_content {
    background: linear-gradient(45deg, #829ee0, #2865f3) !important;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    /* line-height: ; */
}

.widget-clock-medium {
    grid-column: span 3;
    grid-row: span 1;
}

.widget-clock-medium .widget_content {
    background: #000000 !important;
    color: #fff;
    border-radius: 10px;
}

/* .widget.medium {
    grid-column: span 3;
    grid-row: span 2;
} */

.widget.large {
    grid-column: span 4;
    grid-row: span 3;
}

.widget.edit_active {
    z-index: 999 !important;
    /* 强制置顶 */
    transform: scale(1);
    z-index: 40;
}

.widget_content {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    padding: 15px;
    box-sizing: border-box;
}

.widget_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.widget_title {
    font-weight: 600;
    font-size: 14px;
}

/* 遮罩层 */
.widget_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.widget_overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.clock_widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 时间样式（大字体，粗体） */
.clock_time {
    font-size: 40px;
    /* 大尺寸时间 */
    font-weight: 600;
    letter-spacing: -1px;
    /* 紧凑排版 */
    margin-bottom: 5px;
}

/* 日期和星期（小字体，灰色） */
.clock_date {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 8px;
    /* 日期和星期间隔 */
}





.console-container {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100vw;
    height: calc(var(--real-viewport-height) - 50px);
    font-family: "微软雅黑" !important;
    background-color: #1a1a1a;
    color: #fff;
    border-top: 1px solid #444;
    z-index: 9999;
    overflow: hidden;
}

.console-header {
    padding: 10px 15px;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.clear-btn {
    background-color: #666;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.clear-btn:hover {
    background-color: #888;
}

.console-messages {
    height: calc(var(--real-viewport-height) - 42px - 50px);
    overflow-y: auto;
    padding: 10px 15px;
    font-family: monospace;
    font-size: 16px;
    box-sizing: border-box;
}

.console-message {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #444;
}

/* 普通日志 */
.console-log {
    color: #ffffff;
}

/* 错误日志 */
.console-error {
    color: #ff3e3e;
}

/* 警告日志 */
.console-warning {
    color: #ffcc00;
}

/* 信息日志 */
.console-info {
    color: #6aff00;
}

/* 代码行来源样式 */
.console-source {
    font-size: 11px;
    color: #a7a7a7;
    margin-top: 2px;
}
.deleteFriend{
    color: #ff0000;
    text-align: center !important;
}
.ai_Chat_bqb{
    /* 确保有足够的点击区域 */
    display: block;
    max-width: 30vw;
    max-height: 30vw;
}
.user_Chat_bqb{
    /* 确保有足够的点击区域 */
    display: block;
    max-width: 30vw;
    max-height: 30vw;
}
.newMessageTime{
    width: calc(30% - 45px);
    /* width: max-content; */
    /* w */
    margin-right: 4vw;
    text-align:right;
    height: 100%;
    font-size: 13px;
    color: #b9b9b9;
}
.footer-tab-icon{
    width: calc(var(--footer_tab_height) - (var(--footer_tab_height)*0.1));
    height: calc(var(--footer_tab_height) - (var(--footer_tab_height)*0.1));
    /* background: #000; */
}
.loading_page{
    position: relative;
    width: 100vw;
    height: var(--real-viewport-height);
    background: #fff;
    z-index: 999000;
}
.loading_gif_box{
    position: absolute;
    top: 0;
    width: 100vw;
    height: var(--real-viewport-height);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-items: center;
}
.loading_text{
    font-size: 1.4rem;
    margin-top: 20px;
    letter-spacing: 0.18rem;
    color: #000000;
    font-weight: 700;
}
.Emojis_region {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    align-content: flex-start;
    height: 0vh;
    margin: 1vh auto 0;
    background-color: #fff !important;
    transition: linear .3s;
    overflow-y: auto;
    box-sizing: border-box;
    /* display: grid; */
    /* 改：用 minmax 固定每列最小宽度，确保 5 列不挤压 */
    /* grid-template-columns: repeat(5, minmax(40px, 1fr));  */
    /* grid-template-rows: repeat(5, minmax(40px, 1fr));  */
    /* gap: 2vw; */
    z-index: 999;
    /* padding: 2vw;  */
  }

.emojis_option{
    /* 确保元素为正方形 */
    /* aspect-ratio: 1/1; */
    width: 16vw;
    height: 16vw;

    display: block;
    align-items: center;
    justify-content: center;
    /* 移除原有的margin，改用grid的gap控制间距 */
    margin: 1vw 1vw;
    object-fit: cover;
    /* vertical-align:middle;  */
}
.emojis_option:nth-child(2){
    /* margin-left: -0.2vw; */
}
.emojis_option img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add_emojis_btn{
    /* display: inline-block; */
    /* background: var(--theme-color); */
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    /* width: 16vw;
    height: 16vw; */
    font-size: 10vw; /* 适配不同屏幕的加号大小 */
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    line-height: 16vw;
    box-sizing: border-box;
}
.emojis_preview{
    display: none;
    position: fixed;
    top: 20vh;
    left: 5vw;
    width: 90vw;
    height: 40vh;
    background: #ffffff;
    z-index: 1000;
    border-radius: 10px;
    /* box-shadow: 0px 0px 10px #d8d8d8; */
    overflow: hidden;
    z-index: 999;
}
.emojis_preview_mask{
    display: none;
    position: fixed;
    top: 0;
    width: 100vw;
    height: var(--real-viewport-height);
    background:#0000009d;
    z-index: 998;
    /* filter: blur(10px); */
}
.emojis_preview_images{
    position: absolute;
    top: 2vh;
    left: 2%;
    width: 95%;
    height: 30vh;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 2vh 2vw;
    
    /* 新增网格布局样式 */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 每行4列 */
    gap: 1.5vw; /* 行列与列间距一致 */
    overflow-y: auto; /* 内容超出高度时显示滚动条 */
    align-content: start; /* 网格内容顶部对齐，避免顶部留白 */
}

.preview_emojis_img{
    /* 保持1:1正方形比例 */
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto; /* 高度自动匹配宽度，保持正方形 */
    
    /* 图片适配样式 */
    object-fit: cover; /* 保持比例填充容器，避免拉伸 */
    border-radius: 4px; /* 可选：添加圆角美化 */
}

/* 小屏幕适配 - 保持原有参数的同时优化显示 */


.emojis_preview_sure{
    position: absolute;
    bottom: 1vh;
    left: 2.5%;
    display: flex;
    width: 95%;
    justify-content: space-between;
    background-color: #fff;
}
.emojis_preview_back,.emojis_preview_next{
    width: 49%;
    height: 5vh;
    line-height: 5vh;
    text-align: center;
}
.emojis_preview_next{
    background-color: var(--theme-color);
    color: var(--theme-TextColor);
    border-radius: 30px;
}
/* 图片容器：需要相对定位，作为删除按钮的定位父级 */
.preview_item {
    position: relative; /* 关键：让删除按钮相对于此容器定位 */
}
/* 删除按钮：右上角红色底叉号 */
.delete_btn {
    position: absolute;
    top: -8px;      /* 向上偏移，贴近图片顶部 */
    right: -8px;    /* 向右偏移，贴近图片右侧 */
    background-color: red; /* 红色背景 */
    color: white;   /* 白色叉号 */
    width: 20px;    /* 按钮宽度 */
    height: 20px;   /* 按钮高度 */
    border-radius: 50%; /* 圆形外观 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer; /* 鼠标悬浮为手型，提示可点击 */
    box-shadow: 0 0 3px rgba(0,0,0,0.3); /* 可选：添加阴影增强视觉 */
    z-index: 999;
}

