.page-consult { position: fixed; right: 10px; top: 50%; z-index: 2020; transform: translateY(-50%); } .page-consult .activity { position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-100%); cursor: pointer; } .page-consult .activity img { width: 50px; } .page-consult .row { display: block; padding: 20px 0; color: #333333; text-align: center; cursor: pointer; margin: 0 5px; } .page-consult .page-consult-wap{ width: 64px; background: #fff; border-radius: 4px; border: 2px solid #000000; font-size: 12px; margin-bottom: 12px; /* box-shadow: 0 3px 20px 0 #dee9ff; */ } .page-consult .page-consult-box{ background: linear-gradient( 180deg, #FFFFFF 0%, #f7f8ff 100%); border-radius: 4px; } .page-consult .row.phone { /*background: #ff8800;#0c5ada*/ color: #333333; text-align: center; cursor: pointer; margin-bottom: 1px; position: relative; } .page-consult .activity-enter-right{ /*background-color: #fff;*/ display: flex; width: 64px; border-radius: 60px; margin-bottom: 12px; box-shadow: 0px 8px 20px 1px rgba(55,99,170,0.2); border-radius: 4px; border: 2px solid #FFFFFF; } .page-consult .activity-enter-right img{ border-radius: 4px; } .page-consult .row.phone .phone-popover { position: absolute; right: 100%; display: none; top: 0; padding-right: 16px; } .page-consult .row.phone .phone-popover .title img{ vertical-align: middle; margin-right: 10px; } .page-consult .row.phone .phone-popover .text { white-space: nowrap; /*background-color: #f3f3f3;*/ color: #333; padding: 0 24px; top: 0; line-height: 20px; cursor: text; font-size: 20px; position: relative; height: 48px; display: flex; align-items: center; border-radius: 4px; background: linear-gradient( 180deg, #FFFFFF 0%, #F6F7FF 100%); box-shadow: 0px 8px 20px 1px rgba(55,99,170,0.2); border: 2px solid #FFFFFF; text-align: left; } .page-consult .row.phone .phone-popover .text:before { /*content: '';*/ position: absolute; border-width: 6px 0 6px 6px; border-color: transparent transparent transparent #f3f3f3; border-style: solid; left: 100%; top: 18px } .page-consult .row.phone:hover .phone-popover { display: block; } .page-consult .row.qq,.page-consult .row.support { /*background: #00B4FF;*/ border-bottom: 1px solid #F5F5F5; } .page-consult .row.support .phone-popover .text,.page-consult .row.channel .phone-popover .text { height: auto !important; display: block; padding: 12px 0 !important; width: 240px; } .page-consult .support .title,.page-consult .channel .title { padding: 0 12px 12px; font-size: 16px; border-bottom: 1px solid #F5F5F5; margin-bottom: 8px; } .page-consult .support .popover-row { display: flex; padding: 8px 12px; align-items: center; font-size: 14px; cursor: pointer; color: #303133; } .page-consult .support .popover-row .img { display: flex; align-items: center; justify-content: center; margin-right: 12px; } .page-consult .support .popover-row .top { font-weight: 600; } .page-consult .support .popover-row .right2 { width: 80%; text-align: right; } .page-consult .support .popover-row:hover .bottom { color: #409eff; } .page-consult .back-top-wap{ background: linear-gradient( 180deg, #FFFFFF 0%, #f7f8ff 100%); box-shadow: 0px 8px 20px 1px rgba(55,99,170,0.2); border-radius: 4px; width: 64px; height: 64px; display: flex; justify-content: center; align-items: center; border: 2px solid #FFFFFF; } .page-consult .back-top { border-radius: 4px; background: #fff; width: 64px; height: 64px; text-align: center; display: flex; justify-content: center; align-items: center; position: relative; bottom: 0; right: 0; } .page-consult .customer-chat-wap{ background: #fff; box-shadow: 0px 8px 20px 1px rgba(55,99,170,0.2); border-radius: 4px; margin-top: 12px; } .page-consult .customer-chat-box { background: linear-gradient( 180deg, #FFFFFF 0%, #f7f8ff 100%); border: 2px solid #FFFFFF; width: 64px; height: 64px; text-align: center; display: flex; justify-content: center; align-items: center; position: relative; bottom: 0; right: 0; border-radius: 4px; } .page-consult .danger { position: absolute; color: white; right: -2px; top: -4px; cursor: pointer; opacity: 0; transition: opacity .3s; } .page-consult:hover .danger { opacity: 1; } #customer-chat { /*width: 50px;*/ /*cursor: pointer;*/ /*position: absolute;*/ /*left: 0;*/ /*top: 100%;*/ /*transform: translateY(80px);*/ } .page-consult .channel { /*background: #f4c93a !important;*/ } .page-consult .channel .text { flex-direction: column; height: auto !important; padding: 16px !important; } .page-consult .channel .service-row { display: flex; font-size: 14px; align-items: center; margin: 7px 12px; color: #333333; border-bottom: 1px solid #F5F5F5; padding-bottom: 9px; } .page-consult .channel .service-row:hover{ color: #0052D9; } .page-consult .channel .service-row .img { flex-shrink: 0; } .page-consult .channel .service-row .name { width: 100px; display: block; margin-left: 10px; } .page-consult .channel .service-row .name img{ vertical-align: middle; margin-left: 5px; } .page-consult .channel .service-row .right2 { width: 80%; text-align: right; } .page-consult svg { width: 25px; } .page-consult svg path { fill: #333c5e!important; } .page-consult-box .row:hover svg,.page-consult-box .row:hover svg path { fill:#1b69ff!important; } /* 移动端响应式样式 */ @media (max-width: 768px) { .page-consult { right: 15px; bottom: 20px; top: auto; transform: none; z-index: 9999; /* 确保在移动端不会被其他元素遮挡 */ position: fixed !important; } .page-consult .page-consult-wap { width: 56px; margin-bottom: 8px; } .page-consult .page-consult-box { border-radius: 8px; } .page-consult .row { padding: 16px 0; } .page-consult svg { width: 22px; } /* 移动端下拉菜单样式优化 */ .page-consult .uk-card { position: fixed !important; right: 15px !important; bottom: 90px !important; top: auto !important; left: auto !important; transform: none !important; width: 280px; max-width: calc(100vw - 30px); z-index: 10000; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); } .page-consult .uk-card h4 { font-size: 18px; margin-bottom: 16px; color: #1f2937; font-weight: 600; } .page-consult .uk-list li { margin-bottom: 8px; } .page-consult .uk-list li a { font-size: 16px; color: #374151; text-decoration: none; padding: 8px 12px; display: block; border-radius: 6px; transition: all 0.2s ease; } .page-consult .uk-list li a:hover { background-color: #f3f4f6; color: #1d4ed8; } } @media (max-width: 480px) { .page-consult { right: 12px; bottom: 15px; } .page-consult .page-consult-wap { width: 50px; } .page-consult .row { padding: 14px 0; } .page-consult svg { width: 20px; } .page-consult .uk-card { right: 12px !important; bottom: 80px !important; width: 260px; max-width: calc(100vw - 24px); } .page-consult .uk-card h4 { font-size: 16px; margin-bottom: 12px; } .page-consult .uk-list li a { font-size: 15px; padding: 6px 10px; } } /* 移动端遮罩层 */ .customer-service-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 9998; display: none; opacity: 0; transition: opacity 0.3s ease; } .customer-service-overlay.show { display: block; opacity: 1; } /* 移动端客服链接样式 */ .customer-service-link { display: block; padding: 12px 16px; color: #374151; text-decoration: none; border-radius: 8px; transition: all 0.2s ease; font-size: 16px; font-weight: 500; } .customer-service-link:hover { background-color: #f3f4f6; color: #1d4ed8; text-decoration: none; } /* 确保移动端下拉菜单正确显示 */ @media (max-width: 768px) { .customer-service-dropdown.uk-open { display: block !important; position: fixed !important; right: 15px !important; bottom: 90px !important; top: auto !important; left: auto !important; transform: none !important; width: 280px; max-width: calc(100vw - 30px); z-index: 10000; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: white; } .customer-service-dropdown h4 { font-size: 18px; margin-bottom: 16px; color: #1f2937; font-weight: 600; padding: 0 16px; margin-top: 16px; } .customer-service-dropdown .uk-list { padding: 0 16px 16px; margin: 0; } .customer-service-dropdown .uk-list li { margin-bottom: 8px; list-style: none; } } /* iOS Safari 特殊处理 */ @supports (-webkit-touch-callout: none) { @media (max-width: 768px) { .page-consult { /* iOS Safari 固定定位优化 */ -webkit-transform: translateZ(0); transform: translateZ(0); } .customer-service-dropdown.uk-open { /* iOS Safari 下拉菜单优化 */ -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; } } } /* 触摸设备优化 */ @media (hover: none) and (pointer: coarse) { .page-consult .floating-trigger { /* 增加触摸区域 */ padding: 8px; margin: -8px; } .customer-service-link { /* 增加触摸区域 */ min-height: 44px; display: flex; align-items: center; } }