/* 浮动客服按钮样式 - 符合网站风格 */
.customer-service-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 主按钮 - 使用网站主色调 */
.cs-main-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #20B05C);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cs-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}

.cs-main-button.active {
    background: linear-gradient(135deg, #1b365d, #2d3748);
    border-color: rgba(255, 255, 255, 0.3);
}

.cs-main-button i {
    font-size: 28px;
    color: white;
    margin-bottom: 2px;
}

.cs-text {
    font-size: 10px;
    color: white;
    font-weight: 600;
    text-align: center;
}

/* 脉冲动画效果 - 使用网站风格 */
.cs-pulse {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse 2.5s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* 展开面板 - 符合网站设计风格 */
.cs-expanded-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: transparent;
    backdrop-filter: blur(15px);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 联系信息样式 */
.cs-contact-info {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-phone-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.cs-phone-info:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cs-phone-info i {
    color: #25D366;
    font-size: 16px;
    margin-right: 4px;
}

.phone-number {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cs-expanded-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 信息提示框 - 使用网站变量 */
.cs-info-box {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.cs-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #2d3748;
}

.cs-info-header i {
    color: #1b365d;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.cs-info-header strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.cs-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cs-info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.cs-info-item.emergency {
    background: #f7fafc;
}

.cs-info-item.whatsapp {
    background: #f0fff4;
}

.cs-info-item i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.cs-info-item.emergency i {
    color: #1b365d;
}

.cs-info-item.whatsapp i {
    color: #25D366;
}

.cs-info-item div {
    display: flex;
    flex-direction: column;
}

.cs-info-item strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.125rem;
}

.cs-info-item span {
    font-size: 0.75rem;
    color: #718096;
}

/* 按钮组 - 符合网站风格 */
.cs-buttons-group {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cs-expanded-panel .cs-button {
    width: 100%;
    box-sizing: border-box;
}

.cs-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    font-weight: 500;
}

.cs-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* WhatsApp按钮 - 主要推荐，符合网站风格 */
.whatsapp-btn {
    background: #25D366;
    color: white !important;
    border: 1px solid #25D366;
}

.whatsapp-btn.primary {
    animation: highlight 3s infinite;
}

@keyframes highlight {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 0 4px 6px rgba(37, 211, 102, 0.4), 0 0 0 3px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-btn:hover {
    background: #20B05C;
    color: white !important;
    border-color: #20B05C;
}

/* 电话按钮 - 使用网站主色调 */
.phone-btn {
    background: #1b365d;
    color: white !important;
    border: 1px solid #1b365d;
}

.phone-btn:hover {
    background: #2d3748;
    color: white !important;
    border-color: #2d3748;
}

/* 邮件按钮 - 使用网站次要色调 */
.email-btn {
    background: #4a5568;
    color: white !important;
    border: 1px solid #4a5568;
}

.email-btn:hover {
    background: #2d3748;
    color: white !important;
    border-color: #2d3748;
}

/* 按钮图标 - 符合网站风格 */
.cs-button i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    min-width: 1.25rem;
}

/* 按钮文字 - 使用网站字体规范 */
.cs-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cs-btn-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    letter-spacing: 0.025em;
}

.cs-btn-text small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 移动端优化设计 */
@media (max-width: 1200px) {
    .customer-service-float {
        bottom: 20px;
        right: 20px;
        z-index: 1050; /* 确保在所有内容之上 */
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    /* 当移动端导航栏展开时隐藏客服按钮 - 提高优先级 */
    .customer-service-float.nav-open {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        z-index: -1 !important; /* 确保完全隐藏 */
    }
    
    .cs-main-button {
        width: 64px;
        height: 64px;
        /* 增加触摸友好的最小尺寸 */
        min-width: 48px;
        min-height: 48px;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    }
    
    .cs-main-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    
    .cs-main-button i {
        font-size: 26px;
    }
    
    .cs-text {
        font-size: 9px;
        font-weight: 700;
    }
    
    .cs-pulse {
        width: 64px;
        height: 64px;
    }
    
    /* 优化展开面板 */
    .cs-expanded-panel {
        width: calc(100vw - 40px);
        max-width: 300px;
        right: 0;
        bottom: 75px;
        background: transparent;
        backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }
    
    /* 移动端联系信息优化 */
    .cs-contact-info {
        padding: 0 0 5px 0px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin: 0;
    }
    
    .cs-phone-info {
        padding: 18px 20px;
        border-radius: 12px;
        min-height: 56px;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(37, 211, 102, 0.2);
        transition: all 0.2s ease;
    }
    
    .cs-phone-info:hover {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(37, 211, 102, 0.4);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .cs-phone-info i {
        color: #25D366;
        font-size: 20px;
        margin-right: 0;
    }
    
    .phone-number {
        color: #2d3748;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.3px;
        text-align: center;
    }
    
    /* 优化按钮组 */
    .cs-buttons-group {
        padding: 16px;
        margin: 0;
    }
    
    /* 优化按钮 */
    .cs-button {
        padding: 18px 20px;
        border-radius: 12px;
        min-height: 56px;
        display: flex;
        align-items: center;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        justify-content: flex-start;
    }
    
    .cs-button i {
        font-size: 22px;
        margin-right: 12px;
        min-width: 22px;
    }
    
    .cs-btn-text strong {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .cs-btn-text small {
        font-size: 13px;
        opacity: 0.85;
        margin-top: 2px;
    }
    
    /* 增强 WhatsApp 按钮 */
    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366 0%, #20B05C 100%);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    
    .whatsapp-btn:hover {
        background: linear-gradient(135deg, #20B05C 0%, #1DA851 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 576px) {
    .customer-service-float {
        bottom: 16px;
        right: 16px;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    /* 当移动端导航栏展开时隐藏客服按钮 - 提高优先级 */
    .customer-service-float.nav-open {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        z-index: -1 !important; /* 确保完全隐藏 */
    }
    
    .cs-main-button {
        width: 60px;
        height: 60px;
    }
    
    .cs-main-button i {
        font-size: 24px;
    }
    
    .cs-pulse {
        width: 60px;
        height: 60px;
    }
    
    .cs-expanded-panel {
        width: calc(100vw - 32px);
        max-width: 280px;
        right: 0;
        bottom: 70px;
        padding: 16px;
    }
    
    .cs-button {
        padding: 14px 16px;
        min-height: 52px;
    }
    
    .cs-button i {
        font-size: 22px;
        margin-right: 12px;
        min-width: 22px;
        flex-shrink: 0;
    }
    
    .cs-btn-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cs-btn-text strong {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .cs-btn-text small {
        font-size: 13px;
        opacity: 0.9;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .customer-service-float {
        bottom: 12px;
        right: 12px;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    /* 当移动端导航栏展开时隐藏客服按钮 - 提高优先级 */
    .customer-service-float.nav-open {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        z-index: -1 !important; /* 确保完全隐藏 */
    }
    
    .cs-main-button {
        width: 56px;
        height: 56px;
    }
    
    .cs-main-button i {
        font-size: 22px;
    }
    
    .cs-text {
        font-size: 8px;
    }
    
    .cs-pulse {
        width: 56px;
        height: 56px;
    }
    
    .cs-expanded-panel {
        width: calc(100vw - 24px);
        max-width: 260px;
        right: 0;
        bottom: 65px;
        padding: 12px;
    }
    
    .cs-button {
        padding: 12px 14px;
        min-height: 48px;
        border-radius: 10px;
    }
    
    .cs-button i {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .cs-btn-text strong {
        font-size: 14px;
    }
    
    .cs-btn-text small {
        font-size: 11px;
    }
}

/* 超小屏幕设备 (< 360px) */
@media (max-width: 360px) {
    .customer-service-float {
        bottom: 10px;
        right: 10px;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    /* 当移动端导航栏展开时隐藏客服按钮 - 提高优先级 */
    .customer-service-float.nav-open {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        z-index: -1 !important; /* 确保完全隐藏 */
    }
    
    .cs-expanded-panel {
        width: calc(100vw - 20px);
        max-width: 240px;
        right: 0;
    }
} 