/* ========== 视频通话组件样式（参考 TUICallKit）========== */

/* 全屏通话容器 */
.vc-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    animation: vcFadeIn 0.3s ease;
}
@keyframes vcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 通话状态栏 */
.vc-status-bar {
    padding: 60px 20px 20px;
    text-align: center;
    color: #fff;
    z-index: 2;
}
.vc-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
    margin: 0 auto 16px;
    display: block;
    background: #3a3a5e;
}
.vc-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.vc-tip {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    animation: vcPulse 2s ease-in-out infinite;
}
@keyframes vcPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.vc-timer {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

/* 视频区域 */
.vc-video-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.vc-remote-video {
    width: 100%;
    height: 100%;
    background: #2a2a3e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vc-remote-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vc-remote-placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}

/* 本地视频小窗（画中画） */
.vc-local-video {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 100px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #3a3a5e;
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 3;
    cursor: move;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    touch-action: none;
}
.vc-local-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* 底部控制栏 */
.vc-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 2;
}
.vc-ctrl-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.vc-ctrl-btn:active {
    transform: scale(0.9);
    opacity: 0.8;
}
.vc-ctrl-btn svg {
    width: 24px;
    height: 24px;
}
.vc-ctrl-btn.active {
    background: rgba(255,255,255,0.35);
}

/* 挂断按钮 */
.vc-btn-hangup {
    background: #ff4d4f !important;
    width: 64px;
    height: 64px;
}
.vc-btn-hangup:active {
    background: #cf1322 !important;
}

/* 接听按钮 */
.vc-btn-accept {
    background: #52c41a !important;
    width: 64px;
    height: 64px;
}
.vc-btn-accept:active {
    background: #389e0d !important;
}

/* 取消呼叫按钮 */
.vc-btn-cancel {
    background: #ff4d4f !important;
    width: 64px;
    height: 64px;
}

/* 来电界面双按钮布局 */
.vc-incoming-controls {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 20px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
}
.vc-incoming-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.vc-incoming-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* 最小化悬浮窗 */
.vc-mini-float {
    position: fixed;
    top: 80px;
    right: 12px;
    width: 80px;
    height: 106px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    z-index: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
    touch-action: none;
    animation: vcSlideIn 0.3s ease;
}
@keyframes vcSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.vc-mini-float video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vc-mini-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 2px 0;
    font-variant-numeric: tabular-nums;
}
.vc-mini-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    gap: 4px;
}
.vc-mini-placeholder svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}
