/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
/* 客服按钮样式 */
.customer-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.service-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: shake 1.5s infinite ease-in-out; /* 晃动动画 */
    border: 1px solid transparent;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}
/* 晃动动画 */
@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}
.service-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* 红色感叹号 */
.exclamation {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}
.service-btn:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
/* 客服面板样式 */
.service-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}
.service-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #7f8c8d;
    border: 1px solid #e0e0e0;
    -webkit-tap-highlight-color: transparent;
}
.close-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: none;
}
.panel-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: transparent;
    padding: 12px;
    border-radius: 6px;
    transition: none;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}
.contact-item:hover {
    background: #f8f9fa;
    transform: none;
    border-color: #e0e0e0;
}
.contact-icon {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
    background: transparent;
    border: none;
}
.contact-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: none;
}
.contact-info {
    flex-grow: 1;
    text-align: left;
}
.contact-type {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 3px;
}
.contact-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}
.copy-btn {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: none;
}
.copy-btn:hover {
    background: #3498db;
    color: white;
}
.success-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}
.success-toast.active {
    opacity: 1;
    visibility: visible;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .service-panel {
        width: 260px;
        right: -5px;
    }
    .service-btn {
        width: 50px;
        height: 50px;
    }
    .exclamation {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}
@media (max-width: 480px) {
    .customer-service {
        bottom: 20px;
        right: 20px;
    }
    .service-panel {
        width: 240px;
    }
    .service-btn {
        width: 45px;
        height: 45px;
    }
    .exclamation {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}
