/**
 * 语音通话样式
 */

/* 通话按钮 */
.voice-call-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.voice-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

.voice-call-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 通话界面遮罩 */
.voice-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 通话界面内容 */
.voice-call-content {
    text-align: center;
    color: #fff;
}

.voice-call-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890FF 0%, #36A3FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(24, 144, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(24, 144, 255, 0.5); }
    50% { box-shadow: 0 0 50px rgba(24, 144, 255, 0.8); }
}

.voice-call-avatar.connected {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    box-shadow: 0 0 30px rgba(82, 196, 26, 0.5);
    animation: none;
}

.voice-call-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.voice-call-status {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 30px;
}

.voice-call-duration {
    font-size: 32px;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    margin-bottom: 40px;
}

/* 通话控制按钮 */
.voice-call-controls {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.call-control-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.call-control-btn.answer {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.4);
}

.call-control-btn.answer:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.5);
}

.call-control-btn.hangup {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.4);
}

.call-control-btn.hangup:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 77, 79, 0.5);
}

.call-control-btn.mute {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.call-control-btn.mute:hover {
    background: rgba(255, 255, 255, 0.2);
}

.call-control-btn.mute.active {
    background: #ff4d4f;
}

/* 来电界面 */
.voice-call-incoming {
    animation: slideUp 0.3s ease;
}

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

.incoming-animation {
    position: relative;
}

.incoming-animation::before,
.incoming-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(82, 196, 26, 0.5);
    transform: translate(-50%, -50%);
    animation: ring 1.5s ease-out infinite;
}

.incoming-animation::after {
    animation-delay: 0.5s;
}

@keyframes ring {
    0% { width: 100px; height: 100px; opacity: 1; }
    100% { width: 200px; height: 200px; opacity: 0; }
}

/* 微信提示卡片 */
.wechat-tip-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wechat-tip-card .tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #07C160 0%, #2AAE67 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: #fff;
}

.wechat-tip-card .tip-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.wechat-tip-card .tip-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wechat-tip-card .tip-steps {
    text-align: left;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.wechat-tip-card .tip-steps p {
    margin: 5px 0;
}

.wechat-tip-card .copy-link-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1890FF 0%, #36A3FF 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.wechat-tip-card .copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .voice-call-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .voice-call-name {
        font-size: 20px;
    }
    
    .voice-call-duration {
        font-size: 28px;
    }
    
    .call-control-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .voice-call-controls {
        gap: 20px;
    }
}
