
/* 联系方式 */
.contact-bar {
    position: fixed;
    top: 40%;
    transform: translateY(-10%);
    right: 5px;
    background-color: #007bff;

    color: white;
    text-align: center;
    width: 80px;
    border-radius: 10px ;
    z-index: 100;
}
/* 触发按钮（仅手机端显示） */
.contact-trigger {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
.contact-trigger img {
    width: 24px;
    height: 24px;
}

.contact-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    cursor: pointer;
    border-radius: 10px ;
    position: relative; /* 新增：为绝对定位的子元素提供参考 */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.4);
    /*display: flex; !* 使用Flexbox *!*/
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;

}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* 媒体查询：针对手机端 */
@media (max-width: 768px) {
    /*.contact-bar {*/
    /*    transform: translateY(20%);*/
    /*}*/
    .contact-bar {
        /* 初始状态：隐藏在屏幕外 */
        transform: translateY(20%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s linear;
        right: 10px;
        bottom: 80px; /* 避免被触发按钮遮挡 */

    }
    .contact-bar.active {
        /* 展开状态：完全可见 */
        transform: translateY(56%);
        opacity: 1;
        height: 300px;
    }
    .contact-trigger {
        display: flex;
    }
}