/**
 * 联系客服样式
 */

/* ========== 悬浮客服按钮 ========== */
.customer-service-floating-btn {
    position: fixed;
    bottom: 80px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #a6c0ef 0%, #fbd7f2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(166, 192, 239, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

/* 位置：右下角 */
.customer-service-floating-btn.position-right {
    right: 20px;
}

/* 位置：左下角 */
.customer-service-floating-btn.position-left {
    left: 20px;
}

.customer-service-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(166, 192, 239, 0.6);
}

.customer-service-floating-btn:active {
    transform: scale(0.95);
}

.customer-service-floating-btn .btn-icon {
    font-size: 24px;
    line-height: 1;
}

.customer-service-floating-btn .btn-icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.customer-service-floating-btn .btn-text {
    font-size: 11px;
    margin-top: 2px;
    line-height: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .customer-service-floating-btn {
        bottom: 70px;
        width: 52px;
        height: 52px;
    }
    
    .customer-service-floating-btn .btn-icon {
        font-size: 22px;
    }
    
    .customer-service-floating-btn .btn-icon-image {
        width: 28px;
        height: 28px;
    }
    
    .customer-service-floating-btn .btn-text {
        font-size: 10px;
    }
}

/* ========== 客服信息弹窗 ========== */
.customer-service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.customer-service-modal.show {
    display: flex;
}

.customer-service-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customer-service-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #a6c0ef 0%, #fbd7f2 100%);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-service-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-service-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.customer-service-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.customer-service-modal-body {
    padding: 24px;
}

/* 客服二维码 */
.customer-service-qrcode {
    text-align: center;
    margin-bottom: 24px;
}

.customer-service-qrcode img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
}

/* 二维码提示 */
.qrcode-tip {
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #a6c0ef15 0%, #fbd7f215 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qrcode-tip-icon {
    font-size: 18px;
    animation: pointDown 1.5s ease-in-out infinite;
}

@keyframes pointDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.qrcode-tip-text {
    font-size: 13px;
    color: #a6c0ef;
    font-weight: 500;
}

.customer-service-qrcode-empty {
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #999;
    font-size: 14px;
    margin-bottom: 24px;
}

/* 客服信息项 */
.customer-service-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.customer-service-info-item .info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.customer-service-info-item .info-content {
    flex: 1;
    min-width: 0;
}

.customer-service-info-item .info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.customer-service-info-item .info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

/* 可复制的联系方式样式 */
.customer-service-info-item .info-value.copyable {
    cursor: pointer;
    user-select: none;
}

/* 复制提示文字 */
.customer-service-copy-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    padding: 8px 0;
    border-top: 1px dashed #e0e0e0;
}

/* 工作时间 */
.customer-service-hours {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    margin-bottom: 12px;
}

.customer-service-hours .hours-icon {
    font-size: 16px;
    margin-right: 8px;
}

.customer-service-hours .hours-text {
    font-size: 13px;
    color: #856404;
}

/* 按钮组 */
.customer-service-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.customer-service-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* 全宽按钮 */
.customer-service-btn-full {
    width: 100%;
}

.customer-service-btn-primary {
    background: linear-gradient(135deg, #a6c0ef 0%, #fbd7f2 100%);
    color: white;
}

.customer-service-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 192, 239, 0.4);
}

.customer-service-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.customer-service-btn-secondary:hover {
    background: #e0e0e0;
}

/* 提示信息 */
.customer-service-tip {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 16px;
    line-height: 1.6;
}

/* 复制成功提示 */
.copy-success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    animation: toastFadeInOut 2s ease;
}

@keyframes toastFadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* 响应式 */
@media (max-width: 480px) {
    .customer-service-modal-content {
        width: 95%;
        border-radius: 12px;
    }
    
    .customer-service-modal-header {
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .customer-service-modal-title {
        font-size: 16px;
    }
    
    .customer-service-qrcode img {
        width: 180px;
        height: 180px;
    }
    
    .customer-service-info-item {
        padding: 10px 12px;
    }
    
    .customer-service-modal-buttons {
        flex-direction: column;
    }
}

