/* 在线客服浮动按钮 */
.support-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 99999;  /* 提高z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-support 2s infinite;
    /* 触摸优化 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

/* 如果启用Tawk.to，隐藏自定义客服按钮 */
body.tawk-enabled .support-widget-btn,
body.tawk-enabled .support-widget-panel {
    display: none !important;
}

.support-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.support-widget-btn i {
    font-size: 28px;
    color: white;
}

/* 脉冲动画 */
@keyframes pulse-support {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.7);
    }
}

/* 在线状态指示器 */
.support-online-indicator {
    width: 14px;
    height: 14px;
    background: #27ae60;
    border-radius: 50%;
    border: 3px solid white;
    position: absolute;
    bottom: 2px;
    right: 2px;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 客服面板 */
.support-widget-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.support-widget-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* 面板头部 */
.support-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.support-panel-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.support-panel-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.support-panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.support-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 联系方式选项卡 */
.support-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.support-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.support-tab:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.support-tab.active {
    color: #667eea;
    background: white;
}

.support-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* 面板内容 */
.support-panel-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.support-tab-content {
    display: none;
}

.support-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 在线留言表单 */
.support-form-group {
    margin-bottom: 15px;
}

.support-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.support-form-input,
.support-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.support-form-input:focus,
.support-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.support-form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.support-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.support-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 联系方式列表 */
.support-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.support-contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.support-contact-icon i {
    color: white;
    font-size: 18px;
}

.support-contact-info {
    flex: 1;
}

.support-contact-info h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.support-contact-info p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
}

/* 成功消息 */
.support-success-message {
    text-align: center;
    padding: 30px 20px;
}

.support-success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 15px;
}

.support-success-message h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.support-success-message p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

/* 手机适配 */
@media (max-width: 768px) {
    .support-widget-btn {
        bottom: 120px !important;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .support-widget-btn i {
        font-size: 24px;
    }
    
    .support-widget-panel {
        bottom: 190px;
        right: 20px;
        left: 20px;
        width: auto;
        max-height: 55vh;
    }
    
    .support-tab {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .support-panel-content {
        padding: 15px;
    }
}

/* 加载动画 */
.support-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 快速开户流程样式 */
.quick-step {
    display: none;
}

.quick-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.exchange-quick-buttons {
    display: grid;
    gap: 10px;
}

.exchange-quick-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.exchange-quick-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.exchange-icon {
    font-size: 24px;
    margin-right: 12px;
}

.exchange-name {
    flex: 1;
    text-align: left;
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
}

.exchange-rate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
