.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 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 .textinfo:hover{
    background: #f0f0f0;
    cursor: url(../cur/hover.cur), pointer;
}


.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 .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;
}

/* 新的留言板样式 */
.message-container {
    margin-bottom: 3rem;
}

.message-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.message-avatar {
    margin-right: 1rem;
    flex-shrink: 0;
}

.message-avatar img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
}

.message-item:hover .message-avatar img {
    border-color: #70a9ff;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    font-family: 'Noto Serif SC', serif;
}

.message-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.message-time,
.message-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.time-icon,
.location-icon {
    opacity: 0.7;
}

.message-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
    font-family: 'Noto Serif SC', serif;
}

/* 留言表单样式 */
.message-form-container {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.form-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif SC', serif;
}

.form-icon {
    opacity: 0.9;
}

.message-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.avatar-section {
    flex-shrink: 0;
}

.form-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group,
.textarea-group {
    position: relative;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif SC', serif;
}

.input-icon {
    opacity: 0.7;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    background: #fff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.textarea-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

.form-actions {
    text-align: right;
    margin-top: 1.5rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-family: 'Noto Serif SC', serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    position: relative;
}

.submit-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-icon {
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .central.bg {
        margin: 0 1rem;
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .central.bg h3 {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    .central.bg h3 b {
        font-size: 1.8rem;
    }
    
    .message-item {
        flex-direction: column;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .message-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .message-avatar img {
        width: 3rem;
        height: 3rem;
    }
    
    .message-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
    
    .message-name {
        font-size: 1rem;
    }
    
    .message-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .message-time,
    .message-location {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .message-text {
        text-align: center;
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }
    
    .message-form-container {
        margin: 0 -1rem;
        border-radius: 1rem 1rem 0 0;
        padding: 1.5rem 1rem;
    }
    
    .form-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .message-form {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .avatar-section {
        align-self: center;
    }
    
    .form-avatar {
        width: 3rem;
        height: 3rem;
    }
    
    .input-section {
        width: 100%;
    }
    
    .form-input,
    .form-textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .form-textarea {
        min-height: 80px;
    }
    
    .input-label {
        font-size: 0.8rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .MessageButtonCard {
        right: 1rem;
        top: 6rem;
        padding: 0.6rem;
    }
    
    .MessageButtonCard .Message-Icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* 更小屏幕优化 */
@media (max-width: 480px) {
    .central.bg {
        margin: 0 0.5rem;
        padding: 0.8rem;
    }
    
    .central.bg h3 {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .central.bg h3 b {
        font-size: 1.5rem;
    }
    
    .jiequ {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .message-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .message-avatar img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .form-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .message-name {
        font-size: 0.9rem;
    }
    
    .message-time,
    .message-location {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    .message-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .message-form-container {
        padding: 1rem 0.8rem;
    }
    
    .form-title {
        font-size: 1rem;
    }
    
    .message-form {
        padding: 1rem 0.8rem;
    }
    
    .input-label {
        font-size: 0.75rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .submit-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .MessageButtonCard {
        right: 0.5rem;
        top: 5rem;
        padding: 0.5rem;
    }
    
    .MessageButtonCard .Message-Icon {
        width: 1.2rem !important;
        height: 1.2rem !important;
    }
}

/* 动画效果 */
.message-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏旧的样式类 */
.leavform,
.inputbox,
.input-sub .tijiao {
    display: none !important;
}
