/* static/css/float-service.css - 专业客服悬浮组件 */

/* 右侧悬浮客服容器 */
.float-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

/* 客服按钮基础样式 */
.service-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e62340, #ff6b6b);
    border: none;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(230, 35, 64, 0.25);
    position: relative;
    overflow: visible;
}

.service-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 30px rgba(230, 35, 64, 0.4);
}

/* 按钮图标 */
.service-icon {
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* 按钮文字标签 */
.service-label {
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: linear-gradient(135deg, #0c2243, #1a3668);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: white;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 34, 67, 0.2);
    pointer-events: none;
    z-index: 2;
}

.service-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #0c2243;
}

.service-btn:hover .service-label {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* 不同客服的图标背景 */
.service-telegram-biz .service-icon { background: none; } /* 商务飞机 */
.service-telegram-tech .service-icon { background: none; } /* 技术飞机 */
.service-email .service-icon { background: none; } /* 邮件 */

/* 客服卡片容器 */
.service-card-container {
    position: absolute;
    right: 80px;
    top: 0;
    width: 0;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    border: 1px solid #e6ecf8;
}

/* 鼠标悬停时展开卡片 */
.service-btn:hover .service-card-container {
    width: 320px;
    opacity: 1;
    visibility: visible;
}
/* 在 float-service.css 中添加以下样式 */

/* 商务飞机图标特殊效果 */
.service-telegram-biz .service-icon {
    transform: rotate(-15deg);
    display: inline-block;
}

.service-telegram-biz:hover .service-icon {
    animation: flyBusiness 0.6s ease infinite alternate;
}

@keyframes flyBusiness {
    from { transform: rotate(-15deg) translateY(0px); }
    to { transform: rotate(-15deg) translateY(-3px); }
}

/* 技术飞机图标特殊效果 */
.service-telegram-tech .service-icon {
    transform: rotate(15deg);
    display: inline-block;
}

.service-telegram-tech:hover .service-icon {
    animation: flyTech 0.6s ease infinite alternate;
}

@keyframes flyTech {
    from { transform: rotate(15deg) translateY(0px); }
    to { transform: rotate(15deg) translateY(-3px); }
}

/* 邮件图标特殊效果 */
.service-email:hover .service-icon {
    animation: bounceEmail 0.6s ease infinite alternate;
}

@keyframes bounceEmail {
    from { transform: translateY(0px); }
    to { transform: translateY(-3px); }
}
/* 客服卡片头部 */
.service-card-header {
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, #0c2243, #1a3668);
    border-radius: 16px 16px 0 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.card-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.card-subtitle {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* 客服卡片内容 */
.service-card-content {
    padding: 25px;
}

/* 客服信息展示 */
.service-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafd;
    border-radius: 12px;
    border: 1px solid #e6ecf8;
}

.service-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #e6ecf8;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    flex: 1;
}

.service-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #0c2243;
    font-weight: 600;
}

.service-account {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #e62340;
    font-weight: 500;
}

.service-role {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* 二维码区域 */
.service-qrcode {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafd;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e6ecf8;
}

.qrcode-icon {
    font-size: 32px;
    color: #0c2243;
    margin-bottom: 8px;
    display: block;
}

.qrcode-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 操作按钮区域 */
.service-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 12px;
    background: linear-gradient(135deg, #e62340, #ff6b6b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 35, 64, 0.3);
}

.action-btn.secondary {
    background: #f8fafd;
    color: #39485d;
    border: 1px solid #e6ecf8;
}

.action-btn.secondary:hover {
    background: #e6ecf8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 邮件客服特殊样式 */
.service-card-email .service-header-icon {
    background: linear-gradient(135deg, #2c7be5, #6ba0ff);
}

.service-card-email .action-btn {
    background: linear-gradient(135deg, #2c7be5, #6ba0ff);
}

.service-card-email .action-btn:hover {
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.3);
}

/* 工作时间说明 */
.service-hours {
    padding-top: 15px;
    border-top: 1px solid #e6ecf8;
    font-size: 12px;
    color: #666;
    display: grid;
    gap: 8px;
}

.hour-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hour-icon {
    color: #e62340;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .float-service {
        right: 10px;
    }
    
    .service-btn {
        width: 50px;
        height: 50px;
    }
    
    .service-btn:hover .service-label {
        display: none; /* 移动端不显示标签 */
    }
    
    .service-btn:hover .service-card-container {
        width: 280px;
        right: 60px;
    }
    
    .service-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .float-service {
        right: 5px;
    }
    
    .service-btn {
        width: 45px;
        height: 45px;
    }
    
    .service-btn:hover .service-card-container {
        width: 260px;
        right: 50px;
    }
	
}