.central.bg {
    background: #fff;
    border-radius: 2rem;
    padding: 1rem 2rem;
    box-shadow: 0 8px 12px #ebedf0;
    border: 1px solid rgba(208, 206, 206, 0.4) !important;
}

.central.bg h3 {
    text-align: center;
    font-size: 1.5em;
    padding: 2rem 0;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.central.bg h3 b {
    font-size: 2.5rem;
    color: #ffbe27;
    text-shadow: 0 2px 3px rgb(255 183 17 / 36%);
}

.central.bg .row .card .leavform {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    position: relative;
}

.jiequ {
    display: block;
    font-size: 1.2rem;
    font-style: normal;
    color: #969292;
    margin-top: 0.9rem;
}

.central.bg .row .card .leavform .user_info img {
    width: 4rem;
    height: 4rem;
    border-radius: 5rem;
    display: block;
    box-shadow: 0 2px 20px #c5c5c575;
    border: 1px solid #fff;
}

.central.bg .row .card .textinfo .user_info {
    display: flex;
    align-items: center;
}

.central.bg .row .card .leavform .textinfo {
    width: 100%;
    padding: 1.5rem 1.5rem .5rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 0 35px 0 rgb(172 178 185 / 22%);
    transition: all .2s;
}

/* 男方留言 - 浅蓝色背景 */
.central.bg .row .card .leavform.boy-message .textinfo {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

/* 女方留言 - 粉色背景 */
.central.bg .row .card .leavform.girl-message .textinfo {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-left: 4px solid #ec407a;
}



.central.bg .row .card .leavform .textinfo:hover{
    background: #f0f0f0;
    cursor: url(../cur/hover.cur), pointer;
}


/* 男方留言悬停效果 */
.central.bg .row .card .leavform.boy-message .textinfo:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    box-shadow: 0 4px 20px 0 rgba(33, 150, 243, 0.3);
}

/* 女方留言悬停效果 */
.central.bg .row .card .leavform.girl-message .textinfo:hover {
    background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
    box-shadow: 0 4px 20px 0 rgba(236, 64, 122, 0.3);
}

.central.bg .row .card .leavform .textinfo .name {
    font-size: 1.2rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
}

.central.bg .row .card .leavform .textinfo .time {
    font-size: .9rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0rem;
}

.central.bg .row .card .leavform .textinfo .MsgTopInfo {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.central.bg .row .card .leavform .textinfo .text {
    margin-top: 1rem;
    padding: 0.8rem 0;
    color: #3d3d3d;
    border-top: 1px dashed #c5c5c5;
    letter-spacing: 0.1rem;
    line-height: 1.6rem;
}

/* 留言图片自适应，不被固定头像尺寸影响 */
.central.bg .row .card .leavform .textinfo .leav-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
    display: block;
}

/* 分页条样式：固定在卡片底部内，居中美观 */
.central.bg .row .card .leav-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    padding: 0.5rem 0 1rem;
}
.central.bg .row .card .leav-pagination a {
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    padding: .35rem .7rem;
    border-radius: .5rem;
    box-shadow: 0 2px 10px 0 rgb(148 147 147 / 15%);
}
.central.bg .row .card .leav-pagination a:hover {
    background: #fff;
}
.central.bg .row .card .leav-pagination a.active {
    background: #0052ff;
    color: #fff;
    border-color: #0052ff;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #0052ff;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,82,255,.35);
    cursor: pointer;
    display: none;
    z-index: 999;
}
.back-to-top.show {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.central.bg .row .card .inputbox {
    margin-top: 7rem;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px dashed #c7c7c7ee;
}

.central.bg .row .card .inputbox input {
    border: none;
    padding: 1rem 1.5rem;
    border: 1px solid transition !important;
    box-shadow: 0 2px 10px 0 rgb(148 147 147 / 15%);
    border-radius: 0.5rem;
    width: 40%;
    background: #f3f4f6;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    background: #e8e8e8;
    transition: all .3s;
}

.central.bg .row .card .inputbox input:focus,
.central.bg .row .card #wenben:focus {
    background: #fff;
    border-color: #6b7280;
}

.central.bg .row .card .inputbox .rig {
    margin-right: 1rem;
}

input#QQ {
    margin-bottom: 0;
}

.central.bg .row .card #wenben {
    box-sizing: border-box;
    padding: 0.8rem 1.5rem;
    width: 100%;
    resize: vertical;
    border-radius: 1rem;
    font-size: 1.1rem;
    background-color: #f0f0f0;
    transition: all 0.25s ease-in-out 0s;
    border: none !important;
    box-shadow: 0 2px 10px 0 rgb(148 147 147 / 15%);
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
}

.central.bg .row .card #wenben:focus {
    background-position-y: 187px;
    transition: all 0.25s ease-in-out 0s;
}

.central.bg .row .card .input-sub {
    text-align: right;
    margin: 1rem 0;
}

.central.bg .row .card .input-sub .tijiao {
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 0.5rem;
    background: #000;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 2px 10px 0 rgb(92 92 92 / 44%);
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    margin-top: 20px;
}

.central.bg .row .card .input-sub .tijiao:hover {
    cursor: pointer;
    opacity: 0.7;
}

.leav_icon {
    width: 2em;
    height: 2em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}


.central.bg .row .card .leavform .textinfo span.name {
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 1.2rem !important;
    text-transform: capitalize;
    color: #3f3f3f;
    font-weight: 700;
}

.central.bg .row .card .leavform .textinfo span.name.ipclass {
    color: #fa5c7c;
    background-color: rgba(250, 92, 124, .18);
    font-size: 0.8rem !important;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.central.bg .row .card .leavform .textinfo .time {
    text-align: right;
    display: inherit;
}

.central.bg .row .card .leavform .textinfo .text {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
}

svg.leav_icon.sm22 {
    padding: 0.5rem;
    background: #f3f3f3;
    border-radius: 50%;
    margin-right: 0.8rem;
}

.central.bg .row .card .leavform .textinfo .time {
    text-align: right;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    background: #eef3ff;
    color: #0052ff;
    padding: 0.5rem 1.5rem;
    border-radius: 10rem;
    display: flex;
    align-items: center;
    border: 1px solid #90b4ff;
}

.central.bg .row .card .leavform .textinfo .time .yuan {
    display: block;
    margin: 0 .5rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 10rem;
    background-color: #00a4ff;
    border: 1px solid #fff;
}


.MessageButtonCard{
    position: fixed;
    top: 8rem;
    right: 3rem;
    z-index: 100;
    background: #70a9ff;
    padding: .8rem;
    border-radius:10rem;
    border: 2px solid #fff;
    transition: all .2s;
    box-shadow: 0 0 35px 0 rgb(140 186 255 / 39%);
}

.MessageButtonCard:hover{
    background:#fff;
    cursor:pointer;
}

.MessageButtonCard:hover .Message-Icon{
    color: #70a9ff;
}

.MessageButtonCard .Message-Icon{
    color: #fff;
    width:2rem !important;
    height:2rem !important;
}

/* Emoji表情样式 */
.emoji-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.emoji-toggle {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-toggle:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    min-width: 200px;
    max-height: 300px;
    overflow: hidden;
}

.emoji-picker.show {
    display: block !important;
}

.emoji-picker-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
    padding: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.emoji-btn {
    display: inline-block;
    font-size: 1.5rem;
    padding: 0.3rem;
    cursor: pointer;
    border-radius: 0.3rem;
    transition: background-color 0.2s ease;
    text-align: center;
}

.emoji-btn:hover {
    background-color: #f0f0f0;
}

/* 自定义滚动条样式 */
.emoji-picker-content::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.emoji-picker-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.emoji-picker-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表情选择器头部样式 */
.emoji-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.emoji-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.emoji-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    transition: all 0.2s ease;
}

.emoji-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* 表情按钮点击动画 */
.emoji-btn.clicked {
    transform: scale(0.9);
    background-color: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .emoji-picker {
        min-width: 180px;
        max-height: 250px;
    }
    
    .emoji-picker-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.2rem;
        max-height: 200px;
    }
    
    .emoji-btn {
        font-size: 1.3rem;
        padding: 0.25rem;
    }
    
    .emoji-header {
        padding: 0.4rem;
    }
    
    .emoji-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .emoji-picker {
        min-width: 160px;
        max-height: 200px;
    }
    
    .emoji-picker-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.15rem;
        max-height: 150px;
    }
    
    .emoji-btn {
        font-size: 1.1rem;
        padding: 0.2rem;
    }
}
