/**
 * Floating Contact — 右侧客服悬浮
 * 匹配 shop.zhen666.com 原始样式 + QQ/微信扩展
 */

/* ========== 容器 ========== */
.fc-float {
    position: fixed;
    right: 0;
    top: 35%;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== 触发按钮 ========== */
.fc-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 8px 0 0 8px;
    background: #FF6600;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    line-height: 48px;
    text-align: center;
}
.fc-float-btn:hover {
    box-shadow: -3px 3px 18px rgba(0, 0, 0, 0.22);
}

/* ========== 展开面板 ========== */
.fc-float-panel {
    display: none;
    width: 220px;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.fc-float.open .fc-float-panel {
    display: block;
}

/* ========== 面板头部 ========== */
.fc-float-header {
    background: #FF6600;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ========== 联系方式条目 ========== */
.fc-float-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.fc-float-item:last-child {
    border-bottom: none;
}

/* 图标 */
.fc-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}

/* 标签 */
.fc-float-item small {
    display: block;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}

/* 内容 */
.fc-float-item strong {
    font-size: 13px;
    color: #333;
    word-break: break-all;
    font-weight: 600;
    line-height: 1.6;
}

/* ========== QQ 在线状态链接 ========== */
.fc-float-item a {
    color: #333;
    text-decoration: none;
}
.fc-float-item a:hover {
    color: #FF6600;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .fc-float {
        top: auto;
        bottom: 80px;
        right: 0;
    }
    .fc-float-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 6px 0 0 6px;
        line-height: 40px;
    }
    .fc-float-panel {
        width: 200px;
    }
    .fc-float-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    .fc-float-item {
        padding: 10px 12px;
        gap: 8px;
    }
    .fc-float-item strong {
        font-size: 12px;
    }
}

/* ========== 动画增强：面板滑入 ========== */
.fc-float.open .fc-float-panel {
    animation: fcSlideIn 0.25s ease;
}

@keyframes fcSlideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
