/* 客服系统样式 - 右侧竖排长条 */
#customer-service-widget {
    position: fixed;
    top: 35%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.service-toggle {
    width: 36px;
    height: 70px;
    background: rgba(60, 60, 60, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px 0 0 6px;
    transition: all 0.3s ease;
    padding: 8px 0;
    backdrop-filter: blur(5px);
}

.service-toggle:hover {
    width: 40px;
    background: rgba(80, 80, 80, 0.9);
}

.service-toggle svg {
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
}

.service-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.service-text span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: white;
}

.service-panel {
    position: absolute;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateY(-50%) translateX(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(-50%) translateX(0);
    }
}

.panel-header {
    background: rgba(60, 60, 60, 0.9);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 16px;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-content {
    padding: 20px;
}

.qrcode-section {
    text-align: center;
    margin-bottom: 20px;
}

.qrcode-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.qrcode-img {
    width: 180px;
    height: 180px;
    background: #f5f5f5;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(60, 60, 60, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(80, 80, 80, 0.9);
}

.mobile-only {
    display: none;
}

.pc-only {
    display: block;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    #customer-service-widget {
        top: 25%;
    }
    
    .service-toggle {
        width: 30px; /* 移动端宽度30px */
        height: 60px;
    }
    
    .service-panel {
        width: 280px;
        right: 30px;
    }
    
    .service-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .service-text span {
        font-size: 12px;
    }
}