/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* SVG 图标样式 */
.svg-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* 悬浮客服主容器 */
.floating-customer-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* 触发按钮样式 - 圆形布局 */
.toggle-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 10000;
}

.toggle-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0;
}

.toggle-button .svg-icon {
    max-width: none !important;
    width: 30px;
    height: 30px;
    stroke: white;
}

/* 联系面板 */
.contact-panel {
    position: fixed;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9998;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.95);
    opacity: 0;
}

.contact-panel.active {
    transform: scale(1);
    opacity: 1;
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 500;
    color:white;
    margin:0;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.close-btn .svg-icon {
    stroke: white;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* 联系选项 */
.contact-options {
    padding: 15px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.contact-option:last-child {
    margin-bottom: 0;
}

.contact-option .icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.contact-option .icon .svg-icon {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-option .info h4 {
    font-weight: 500;
    margin-bottom: 3px;
    font-size:14px
}

.contact-option .info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 各平台特定样式 */
.telegram {
    background-color: rgba(0, 136, 204, 0.1);
}

.telegram:hover {
    background-color: rgba(0, 136, 204, 0.2);
}

.telegram .icon {
    background-color: #0088cc;
}

.whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
}

.whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.2);
}

.whatsapp .icon {
    background-color: #25D366;
}

.qq {
    background-color: rgba(0, 120, 215, 0.1);
}

.qq:hover {
    background-color: rgba(0, 120, 215, 0.2);
}

.qq .icon {
    background-color: #0078d7;
}

/* 面板底部 */
.panel-footer {
    padding: 10px 20px;
    text-align: center;
    background-color: #f8f9fa;
    font-size: 13px;
    color: #777;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .contact-panel {
        width: 280px;
    }

    .floating-customer-service {
        bottom: 20px;
        right: 20px;
    }
}