/**
 * 在线客服插件样式
 * Plugin: service
 * Generated by Plugin System
 */

/* 客服按钮 - 与 backtop 按钮一致 */
#service-btn {
    position: fixed;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#service-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.1);
}

#service-btn i {
    color: #fff;
    font-size: 20px;
}

/* 位置变体 - 与 backtop 一致 */
#service-btn.position-right-bottom {
    right: 20px;
    bottom: 20px;
}

#service-btn.position-left-bottom {
    left: 20px;
    bottom: 20px;
}

/* 距底距离变体 */
#service-btn.offset-bottom-80 {
    bottom: 80px !important;
}

#service-btn.offset-bottom-100 {
    bottom: 100px !important;
}

#service-btn.offset-bottom-150 {
    bottom: 150px !important;
}

#service-btn.offset-bottom-200 {
    bottom: 200px !important;
}

/* 距侧距离变体 */
#service-btn.offset-side-10.position-right-bottom {
    right: 10px !important;
}

#service-btn.offset-side-10.position-left-bottom {
    left: 10px !important;
}

#service-btn.offset-side-30.position-right-bottom {
    right: 30px !important;
}

#service-btn.offset-side-30.position-left-bottom {
    left: 30px !important;
}

#service-btn.offset-side-50.position-right-bottom {
    right: 50px !important;
}

#service-btn.offset-side-50.position-left-bottom {
    left: 50px !important;
}

/* 圆角变体 */
#service-btn.radius-none {
    border-radius: 0;
}

#service-btn.radius-small {
    border-radius: 4px;
}

#service-btn.radius-medium {
    border-radius: 8px;
}

#service-btn.radius-large {
    border-radius: 12px;
}

#service-btn.radius-full {
    border-radius: 50%;
}

/* 客服面板 */
#service-panel {
    position: fixed;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

#service-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 面板头部 */
.service-panel-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    position: relative;
}

.service-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.service-panel-header p {
    margin: 6px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.service-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.service-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.service-close i {
    color: #fff;
    font-size: 16px;
}

/* 面板内容 */
.service-panel-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.service-contact-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.service-contact-item:last-child {
    border-bottom: none;
}

.service-contact-item:first-child {
    padding-top: 0;
}

.service-contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.service-contact-info {
    flex: 1;
}

.service-contact-info strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}

.service-contact-info span {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

.service-contact-info a {
    color: #10b981;
    text-decoration: none;
}

.service-contact-info a:hover {
    text-decoration: underline;
}

/* 二维码图片 */
.service-contact-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: auto;
    border: 2px solid #e5e7eb;
}

/* 位置变体 - 面板 */
#service-panel.position-right-bottom {
    right: 20px;
}

#service-panel.position-left-bottom {
    left: 20px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    #service-panel {
        width: calc(100% - 40px);
        left: 20px !important;
        right: 20px !important;
    }
}
