/* 浮动球样式 */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

/* 主浮动球 */
.floating-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.floating-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.floating-ball i {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.floating-ball.active i {
    transform: rotate(45deg);
}

/* 询价数量角标 */
.quote-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
}

.quote-badge.hidden {
    display: none;
}

.quote-badge.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 浮动球图标 */
.floating-ball-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

/* 浮动菜单 */
.floating-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.floating-menu.active {
    display: flex;
}

/* 菜单项 */
.floating-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.floating-menu.active .floating-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.floating-menu.active .floating-menu-item:nth-child(1) { transition-delay: 0.1s; }
.floating-menu.active .floating-menu-item:nth-child(2) { transition-delay: 0.2s; }
.floating-menu.active .floating-menu-item:nth-child(3) { transition-delay: 0.3s; }
.floating-menu.active .floating-menu-item:nth-child(4) { transition-delay: 0.4s; }
.floating-menu.active .floating-menu-item:nth-child(5) { transition-delay: 0.5s; }

/* 社交媒体图标 */
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: #e4405f;
}

.social-icon.quote {
    background: #ff6b6b;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* 询价列表 */
.quote-list-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.quote-list-panel.active {
    display: flex;
}

.quote-list-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-list-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.quote-list-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s ease;
}

.quote-list-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quote-list-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.quote-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.quote-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.quote-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
}

.quote-item-info {
    flex: 1;
}

.quote-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.quote-item-sku {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.quote-item-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quote-item-remove:hover {
    background: #fecaca;
}

.quote-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.quote-list-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.quote-list-footer {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.quote-list-footer .quote-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.quote-list-footer .submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-list-footer .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-widget {
        bottom: 20px;
        right: 20px;
    }

    .floating-ball {
        width: 50px;
        height: 50px;
    }

    .quote-list-panel {
        width: 280px;
        right: -10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}
