/* 悬浮客服按钮主样式 */
.right-sms {
    text-align: center;
    margin: 0;
    padding: 0;
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.right-sms.left {
    right: auto;
    left: 0px;
}

.right-sms li {
    width: 60px;
    list-style: none;
    box-shadow: 0 2px 4px 0 rgba(15, 33, 78, .2);
    text-align: center;
    border-radius: 4px 0 0 4px;
    margin-bottom: 5px;
    padding: 5px 0;
    position: relative;
    background: #fff;
    transition: 0.3s ease;
}

.right-sms li:hover {
    box-shadow: 0 4px 8px 0 rgba(15, 33, 78, .3);
}

.right-sms a {
    color: #666;
    text-decoration: none;
    padding: 5px;
    display: block;
    background: #fff;
    transition: all 0.3s ease;
}

.right-sms i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.right-sms p {
    line-height: 15px;
    font-size: 10px;
    margin: 0;
    padding-bottom: 0;
    transition: all 0.3s ease;
}

/* WhatsApp */
.whatsapp-dak i {
    color: #2BA245;
}
.whatsapp-dak:hover i {
    color: #1e7e34;
}

/* WeChat */
.weixin-dak i {
    color: #1AAD19;
}
.weixin-dak:hover i {
    color: #0f8a0e;
}

/* Message */
.message-dak i {
    color: #ca6f1e;
}
.message-dak:hover i {
    color: #a0522d;
}

/* TikTok */
.tiktok-dak i {
    color: black;
}
.tiktok-dak:hover i {
    color: #333;
}

/* LinkedIn */
.linkedin-dak i {
    color: #0072b1;
}
.linkedin-dak:hover i {
    color: #005885;
}

/* Facebook */
.facebook-dak i {
    color: #3b5998;
}
.facebook-dak:hover i {
    color: #2d4373;
}

/* X (Twitter) */
.twitter-dak i {
    color: #000;
}
.twitter-dak:hover i {
    color: #333;
}

/* Instagram */
.instagram-dak i {
    background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-radius: 4px;
}

/* YouTube */
.youtube-dak i {
    color: #FF0000;
}
.youtube-dak:hover i {
    color: #cc0000;
}

/* Mobile */
.mobile-dak i {
    color: #3b5998;
}
.mobile-dak:hover i {
    color: #2d4373;
}

/* Email */
.envelope-dak i {
    color: #e67e22;
}
.envelope-dak:hover i {
    color: #d35400;
}

/* Back to Top */
.top-dak i {
    color: #666;
}
.top-dak:hover i {
    color: #333;
}

/* Info Tooltip */
.info {
    right: 60px;
    background: #000;
    padding: 10px;
    position: absolute;
    top: 10px;
    opacity: 0;
    color: #fff;
    transition: .25s;
    z-index: -1;
    border-radius: 5px 0 0 5px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-sms.left .info {
    left: 50px;
    border-radius: 0 5px 5px 0;
}

.info p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.right-sms li:hover .info {
    opacity: 1;
    z-index: 10000;
}

.right-sms img {
    max-width: 160px;
    height: auto;
    border-radius: 4px;
    margin-top: 6px;
}

.right-sms li i {
    transition: .15s;
}

.right-sms li:hover i {
    opacity: .8;
}

.right-sms li:hover a {
    color: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .right-sms {
        right: 0;
    }
    .right-sms.left {
        left: 0;
    }
    .right-sms li {
        width: 50px;
    }
    .right-sms i {
        font-size: 15px;
    }
    .right-sms p {
        font-size: 8px;
    }
    .info {
        right: 50px;
        max-width: 200px;
    }
    .right-sms.left .info {
        left: 50px;
    }
    /* 移动设备上的邮箱地址样式 */
    .envelope-dak .info {
        max-width: 220px;
    }
    .envelope-dak .info p {
        font-size: 10px;
    }
    
    /* 移动端收起按钮样式 */
    .fcs-toggle-btn {
        width: 20px;
        height: 35px;
        font-size: 10px;
        top: -40px;
        right: 0;
        border-right: none;
    }
}

/* 动画效果 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.right-sms li {
    animation: fadeInRight 0.5s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.right-sms.left li {
    animation: fadeInLeft 0.5s ease-out;
    border-radius: 0 4px 4px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.right-sms.fcs-collapsed li {
    opacity: 0;
    animation: none;
}

/* 加载动画 */
.fcs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 收起/展开按钮样式 */
.fcs-toggle-btn {
    position: absolute;
    right: 0;
   
}
.fcs-toggle-btn{
  background: #000;
  width: 30px;
  height: 30px;
  border: 0px solid #eee;
  border-left: none;
  border-right: none;
  border-radius: 4px 0 0 4px;
  top: -45px;
  right: -16px;
  color: #fff;
}


.fcs-toggle-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
}

.fcs-toggle-icon i {
    font-size: 12px;
}

/* 收起状态 - 使用相同的定位，只改变边框和圆角 */
.right-sms.fcs-collapsed li,
.right-sms.fcs-collapsed .info {
    display: none !important;
}

.right-sms.fcs-collapsed .fcs-toggle-btn {
    background: #000;
    width: 30px;
    height: 30px;
    border: 0px solid #eee;
    border-left: none;
    border-right: none;
    border-radius: 4px 0 0 4px;
    top: -45px;
    right: -16px;
    color: #fff;
}


.right-sms.fcs-collapsed .fcs-toggle-icon {
    transform: rotate(-180deg);
}

/* 左侧悬浮时的按钮样式 */
.right-sms.left .fcs-toggle-btn {
    right: auto;
    left: 0;
    top: -45px;
    border-left: 0px solid #eee;
    border-right: none;
    border-radius: 0 4px 4px 0;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    transform: none;
}


.right-sms.left.fcs-collapsed .fcs-toggle-btn {
    left: 0;
    top: -45px;
    background: #fff;
    border-right: 0px solid #eee;
    border-left: none;
    border-radius: 0 4px 4px 0;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    transform: none;
    width: 30px;
    height: 30px;
}

.right-sms.left.fcs-collapsed .fcs-toggle-btn:hover {
    background: #f8f8f8;
    box-shadow: -3px 0 6px rgba(0,0,0,0.15);
}

/* 优化动画，避免闪烁 */
.right-sms.fcs-collapsed li {
    opacity: 0;
    animation: none;
}

@media (max-width: 768px) {
    .fcs-toggle-btn {
        width: 20px;
        height: 35px;
        font-size: 10px;
        top: -40px;
        right: -10px;
        border-right: none;
    }
    
    .fcs-toggle-icon i {
        font-size: 10px;
    }
    .right-sms li{
        padding: 0;
        
    }
    .right-sms a{
        border-radius: 4px 0 0 4px;
    }
    
    /* 移动端收起状态按钮位置 */
    .right-sms.fcs-collapsed .fcs-toggle-btn {
        top: -40px;
        right: -10px;
        border-left: 0px solid #eee;
        border-right: none;
        width: 20px;
        height: 35px;
    }
    
    .right-sms.left.fcs-collapsed .fcs-toggle-btn {
        top: -40px;
        left: 0;
        border-right: 0px solid #eee;
        border-left: none;
        background: #fff;
        width: 20px;
        height: 35px;
    }
} 