﻿.Tail {
    font-size: 24px;
    font-family: FangSong;
    height: 80px;
    background-color: rgba(0, 0, 0, 0);
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: right; /* 水平居中 */
}

    .Tail ul {
        list-style: none; /* 去掉默认的列表样式 */
        margin: 0; /* 去掉外边距 */
        padding: 0; /* 去掉内边距 */
        display: flex; /* 使用flex布局 */
    }

    .Tail .ItemImg {
        padding: 0 15px; /* 图片之间的间距 */
        width: 24px; /* 图标宽度 */
        height: auto; /* 自动按比例调整高度 */
    }

    .Tail .Contact {
        margin-right: 50px; /* 联系方式距离右边的距离 */
        cursor: pointer;
    }

/* 悬浮的二维码样式 */
.ContactItemWechat {
    display: block;
    opacity: 0;
    position: absolute;
    top: -180px; /* 控制二维码显示在图标上方，可根据情况调整 */
    left: 50%; /*先把左边边缘放到中间*/
    transform: translateX(-50%); /* 再向左偏移自身宽度的一半，使其真正居中 */
    width: 150px;
    height: 150px;
    background-color: rgba(255,255,255,1);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
    transition: opacity 0.4s ease,top 0.4s ease;
}

    .ContactItemWechat .ContactItemImg {
        width: 150px; /* 图标宽度 */
        height: auto; /* 自动按比例调整高度 */
        top: 5%;
    }

/* 悬浮时显示二维码 */
.ItemWechat {
    position: relative; /* 用于让 Item 相对定位 */
}

    .ItemWechat:hover .ContactItemWechat {
        top: -190px;
        opacity: 1;
    }


    
/* 悬浮的邮箱样式 */
.ContactItemMail {
    display: flex;
    opacity: 0;
    position: absolute;
    top: -80px; /* 控制二维码显示在图标上方，可根据情况调整 */
    left: 50%; /*先把左边边缘放到中间*/
    transform: translateX(-50%); /* 再向左偏移自身宽度的一半，使其真正居中 */
    width: 250px;
    height: 50px;
    background-color: rgba(255,255,255,1);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
    transition: opacity 0.4s ease,top 0.4s ease;
}

    .ContactItemMail .ContactItemText {
        width: 250px; /* 图标宽度 */
        height: auto; /* 自动按比例调整高度 */
        top: 5%;
        font-size: 20px;
        font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px; /* 确保有高度 */
    }

/* 悬浮时显示二维码 */
.ItemMail {
    position: relative; /* 用于让 Item 相对定位 */
}

    .ItemMail:hover .ContactItemMail {
        top: -90px;
        opacity: 1;
    }


