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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 2px dashed #c7c7c7ee;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #3d3d3d;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    transition: all 0.2s;
    box-shadow: 0 2px 6px 0 rgb(148 147 147 / 10%);
}

.pagination .page-link:hover {
    background: #e0e0e0;
    color: #000;
    transform: translateY(-1px);
}

.pagination .page-link.active {
    background: #2d2d2d;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px 0 rgb(45 45 45 / 40%);
}

@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.9rem;
    }
}

/* 浮动留言按钮 - PC端显示，手机端隐藏 */
.floating-toggle {
    display: none;
}

/* 留言表单 - 默认(手机端)普通流式布局 */
.leav-form {
    margin: 0 0 1rem 0;
}

/* 表单元素基础样式（移动端和PC端共用） */
.leav-form .inputbox {
    margin-top: 0;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.leav-form .inputbox .avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 5rem;
    display: block;
    box-shadow: 0 2px 20px #c5c5c575;
    border: 1px solid #fff;
    object-fit: cover;
}

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

.leav-form .inputbox input:focus {
    background: #fff;
    border-color: #6b7280;
}

.leav-form .inputbox .rig {
    margin-right: 1rem;
}

.leav-form #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;
}

.leav-form #wenben:focus {
    background: #fff;
    border-color: #6b7280;
}

.leav-form .input-sub {
    text-align: right;
    margin: 1rem 0;
}

.leav-form .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;
    cursor: pointer;
    transition: opacity 0.2s;
}

.leav-form .input-sub .tijiao:hover {
    opacity: 0.7;
}

/* ========== 爱的见证卡片样式 ========== */
.witness-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.25);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 182, 193, 0.3);
    position: relative;
    overflow: hidden;
}

.witness-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffb6c1, #ffc8dd, #ffafcc);
}

.witness-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.4);
    border-color: rgba(255, 182, 193, 0.5);
}

.witness-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ffb6c1, #ff8fa3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 143, 163, 0.4);
    transition: transform 0.3s ease;
}

.witness-card:hover .witness-card-icon {
    transform: scale(1.08);
}

.witness-card-body {
    flex: 1;
    min-width: 0;
}

.witness-card-title {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #3d3d3d;
    margin-bottom: 0.3rem;
}

.witness-card-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #969292;
    line-height: 1.4;
}

.witness-card-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.witness-card-stat {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 182, 193, 0.15);
    border-radius: 1rem;
    transition: background 0.3s ease;
}

.witness-card:hover .witness-card-stat {
    background: rgba(255, 182, 193, 0.25);
}

.witness-card-stat-num {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ff6b8a;
    line-height: 1;
}

.witness-card-stat-label {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #969292;
    margin-top: 0.2rem;
}

.witness-card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ffb6c1, #ff8fa3);
    color: #fff;
    border-radius: 2rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.witness-card:hover .witness-card-cta {
    background: linear-gradient(135deg, #ff8fa3, #ff6b8a);
}

.witness-card-cta-arrow {
    transition: transform 0.3s ease;
}

.witness-card:hover .witness-card-cta-arrow {
    transform: translateX(4px);
}

/* 城市标签样式 */
.city-tag {
    display: inline;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-tag:hover {
    color: #0052ff;
    border-bottom: 1px dashed #0052ff;
}

/* MsgTopInfo 中的城市标签样式 - 与时间文字一致 */
.MsgTopInfo .city-tag {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    border-bottom: none;
}

.MsgTopInfo .city-tag:hover {
    color: #0052ff;
    border-bottom: 1px dashed #0052ff;
}

/* 移动端见证卡片适配 */
@media (max-width: 768px) {
    .witness-card {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .witness-card-icon {
        width: 44px;
        height: 44px;
    }

    .witness-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .witness-card-body {
        flex: 1 1 100%;
    }

    .witness-card-title {
        font-size: 1.1rem;
    }

    .witness-card-subtitle {
        font-size: 0.8rem;
    }

    .witness-card-stats {
        flex: 1 1 100%;
        justify-content: center;
        gap: 1rem;
    }

    .witness-card-stat {
        padding: 0.4rem 0.8rem;
    }

    .witness-card-stat-num {
        font-size: 1.4rem;
    }

    .witness-card-cta {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* PC端：屏幕宽度大于768px时启用浮动定位 */
@media (min-width: 769px) {
    /* 浮动写留言按钮 */
    .floating-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 1000;
        padding: 0.8rem 1.5rem;
        background: #2d2d2d;
        color: #fff;
        border-radius: 3rem;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(45, 45, 45, 0.4);
        transition: all 0.3s;
        font-family: 'Noto Serif SC', serif;
        font-weight: 700;
        font-size: 1rem;
        user-select: none;
    }

    .floating-toggle:hover {
        transform: translateY(-2px);
        background: #1a1a1a;
        box-shadow: 0 6px 25px rgba(45, 45, 45, 0.5);
    }

    .floating-toggle.active {
        background: #fa5c7c;
        box-shadow: 0 4px 20px rgba(250, 92, 124, 0.4);
    }

    .floating-toggle .icon {
        width: 1.3rem;
        height: 1.3rem;
    }

    /* 浮动留言表单 */
    .leav-form {
        position: fixed;
        bottom: 5.5rem;
        right: 2rem;
        z-index: 1001;
        width: 380px;
        background: #fff;
        border-radius: 1.2rem;
        padding: 1.5rem;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(208, 206, 206, 0.3);
        transform: scale(0.8) translateY(20px);
        opacity: 0;
        visibility: hidden;
        transform-origin: bottom right;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        margin: 0;
    }

    .leav-form.show {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* PC端表单内部尺寸调整 */
    .leav-form .inputbox {
        padding: 0.5rem 0 1rem;
    }

    .leav-form .inputbox .avatar {
        width: 3rem;
        height: 3rem;
    }

    .leav-form .inputbox input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .leav-form #wenben {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        border-radius: 0.8rem;
    }

    .leav-form .input-sub {
        margin: 0.8rem 0 0;
    }

    .leav-form .input-sub .tijiao {
        padding: 0.5rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* ========================================
   情侣纪念卡样式 - 高级质感版
   ======================================== */

/* 纪念卡基础样式 - 男女主共用 */
.leavform.memorial-card .textinfo {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.8rem 80px 1.2rem 2rem;
    /* 统一柔和阴影，比普通留言卡片更精致 */
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
}

.leavform.memorial-card .textinfo:hover {
    transform: translateY(-3px);
    cursor: url(../cur/hover.cur), pointer;
}

/* 装饰容器 - 绝对定位在右侧 */
.card-decorations {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* 爱心基础样式 - SVG版本 */
.card-decorations .heart {
    position: absolute;
    opacity: 0.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    transform: rotate(12deg);
    transition: all 0.3s ease;
}

.card-decorations .heart-lg {
    width: 42px;
    height: 42px;
    right: 18px;
    top: 24px;
}

.card-decorations .heart-sm {
    width: 26px;
    height: 26px;
    right: 50px;
    top: 62px;
    opacity: 0.14;
    transform: rotate(-8deg);
}

/* 星光点缀 */
.card-decorations .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

.card-decorations .sparkle-1 {
    right: 30px;
    top: 35px;
    width: 3px;
    height: 3px;
    animation-delay: 0s;
}

.card-decorations .sparkle-2 {
    right: 60px;
    top: 30px;
    width: 2px;
    height: 2px;
    animation-delay: 1s;
}

.card-decorations .sparkle-3 {
    right: 45px;
    top: 80px;
    width: 3px;
    height: 3px;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.6; transform: scale(1); }
}

/* hover时爱心效果 */
.leavform.memorial-card:hover .card-decorations .heart-lg {
    opacity: 0.3;
    transform: rotate(8deg) scale(1.08);
}

.leavform.memorial-card:hover .card-decorations .heart-sm {
    opacity: 0.2;
    transform: rotate(-5deg) scale(1.1);
}

/* ==================== 女主卡片（粉色系）==================== */
.leavform.girl-card .textinfo {
    background: linear-gradient(135deg, #fff9fb 0%, #fff0f6 100%);
    border: 1.5px dashed rgba(244, 142, 176, 0.4);
}

.leavform.girl-card:hover .textinfo {
    background: linear-gradient(135deg, #fff5f8 0%, #ffeaf3 100%);
    box-shadow: 
        0 4px 16px rgba(244, 142, 176, 0.1),
        0 12px 32px rgba(244, 142, 176, 0.15);
}

.leavform.girl-card .card-decorations .heart {
    color: #f48eb0;
}

.leavform.girl-card .card-decorations .sparkle {
    background-color: #f48eb0;
    box-shadow: 0 0 6px #f48eb0;
}

/* ==================== 男主卡片（蓝色系）==================== */
.leavform.boy-card .textinfo {
    background: linear-gradient(135deg, #f7faff 0%, #edf3ff 100%);
    border: 1.5px dashed rgba(116, 163, 255, 0.4);
}

.leavform.boy-card:hover .textinfo {
    background: linear-gradient(135deg, #f2f7ff 0%, #e5edff 100%);
    box-shadow: 
        0 4px 16px rgba(116, 163, 255, 0.1),
        0 12px 32px rgba(116, 163, 255, 0.15);
}

.leavform.boy-card .card-decorations .heart {
    color: #74a3ff;
}

.leavform.boy-card .card-decorations .sparkle {
    background-color: #74a3ff;
    box-shadow: 0 0 6px #74a3ff;
}

/* ==================== 性别标签 ==================== */
.gender-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-right: 8px;
    flex-shrink: 0;
}

.girl-tag {
    background: rgba(244, 142, 176, 0.15);
    color: #e86c95;
    border: 1px solid rgba(244, 142, 176, 0.3);
}

.boy-tag {
    background: rgba(116, 163, 255, 0.15);
    color: #5a8aef;
    border: 1px solid rgba(116, 163, 255, 0.3);
}

/* 纪念卡用户名字体稍微精致一点 */
.leavform.memorial-card .name {
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}

/* 头像在纪念卡中增加细边框 */
.leavform.memorial-card img {
    border-width: 2px !important;
}

.leavform.girl-card img {
    border-color: rgba(244, 142, 176, 0.3) !important;
    box-shadow: 0 2px 12px rgba(244, 142, 176, 0.15) !important;
}

.leavform.boy-card img {
    border-color: rgba(116, 163, 255, 0.3) !important;
    box-shadow: 0 2px 12px rgba(116, 163, 255, 0.15) !important;
}

/* 男女主卡片间距 */
.leavform.memorial-card + .leavform.memorial-card {
    margin-top: 2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .leavform.memorial-card .textinfo {
        padding: 1.5rem 70px 1.5rem 1.5rem;
    }
    
    .card-decorations {
        width: 70px;
    }
    
    .card-decorations .heart-lg {
        width: 34px;
        height: 34px;
        right: 14px;
        top: 20px;
    }
    
    .card-decorations .heart-sm {
        width: 22px;
        height: 22px;
        right: 42px;
        top: 52px;
    }
    
    .leavform.memorial-card + .leavform.memorial-card {
        margin-top: 1.5rem;
    }
}
