/**
 * 视频通话系统样式
 * 淡粉色公主风格视频通话界面
 */

/* ========== 确认弹窗 ========== */
.video-call-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-call-confirm-modal.show {
    opacity: 1;
}

.video-call-confirm-content {
    background: linear-gradient(135deg, #fff 0%, #fff5f9 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.2);
    animation: modalSlideIn 0.3s ease;
    max-width: 90%;
    width: 350px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-call-confirm-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffd4e8;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.video-call-confirm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-call-confirm-title {
    font-size: 20px;
    color: #ffb3d9;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-call-confirm-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.video-call-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.video-call-confirm-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.video-call-confirm-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.video-call-confirm-btn.cancel:hover {
    background: #e0e0e0;
}

.video-call-confirm-btn.ok {
    background: linear-gradient(135deg, #ffb3d9, #ffc0e0);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.video-call-confirm-btn.ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
}

/* ========== 视频通话界面 ========== */
.video-call-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.video-call-interface.show {
    display: flex;
}

/* 视频通话等待连接状态 */
.video-call-interface.waiting {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-call-interface.waiting .video-main-screen {
    opacity: 0.3;
}

.video-call-interface.waiting .video-small-screen {
    opacity: 0.3;
}

/* 等待状态提示文字 */
.video-waiting-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 100;
    display: none;
}

.video-call-interface.waiting .video-waiting-status {
    display: block;
}

.video-waiting-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: videoWaitingSpin 1s linear infinite;
}

@keyframes videoWaitingSpin {
    to {
        transform: rotate(360deg);
    }
}

.video-waiting-text {
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== 顶部工具栏 ========== */
.video-call-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.video-call-minimize-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 245, 248, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-call-minimize-btn:hover {
    background: rgba(255, 245, 248, 0.35);
    transform: scale(1.1);
}

.video-call-header-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex: 1;
    text-align: center;
}

.video-call-header-buttons {
    display: flex;
    gap: 15px;
}

.video-call-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 245, 248, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-call-header-btn:hover {
    background: rgba(255, 245, 248, 0.35);
    transform: scale(1.1);
}

.video-call-header-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========== 主屏幕区域 ========== */
.video-main-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

/* ========== 小屏幕区域 ========== */
.video-small-screen {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 120px;
    height: 160px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
}

.video-small-screen:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-small-screen {
        width: 100px;
        height: 133px;
        top: 70px;
        right: 15px;
    }
}

/* ========== 聊天区域（居中透明磨砂） ========== */
.video-chat-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-chat-container.show-messages {
    opacity: 1;
}

.video-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

.video-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.video-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.video-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.video-chat-message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.5;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation-fill-mode: forwards;
    position: relative;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-chat-message.hiding {
    animation: messageSlideOut 0.3s ease forwards;
}

@keyframes messageSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
}

.video-chat-message.user {
    align-self: flex-end;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 100%
    );
    color: #1a1a1a;
    border-bottom-right-radius: 6px;
    box-shadow:
        0 8px 32px rgba(255, 105, 180, 0.12),
        0 2px 8px rgba(255, 105, 180, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.video-chat-message.user::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 182, 193, 0.15) 0%,
        rgba(255, 218, 225, 0.1) 100%
    );
    border-radius: 18px;
    border-bottom-right-radius: 6px;
    pointer-events: none;
    opacity: 0.6;
}

.video-chat-message.ai {
    align-self: flex-start;
    background: linear-gradient(
        135deg,
        rgba(250, 250, 250, 0.8) 0%,
        rgba(245, 245, 245, 0.7) 100%
    );
    color: #2a2a2a;
    border-bottom-left-radius: 6px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

.video-chat-message.ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(200, 200, 200, 0.08) 0%,
        rgba(180, 180, 180, 0.05) 100%
    );
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    pointer-events: none;
    opacity: 0.5;
}

/* ========== 聊天输入框（居中高级感） ========== */
.video-chat-input-wrapper {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
    z-index: 15;
}

.video-chat-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.video-chat-input-container:focus-within {
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 12px 40px rgba(255, 105, 180, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 179, 217, 0.3);
}

.video-chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #fff;
    padding: 6px 8px;
    font-weight: 400;
}

.video-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.video-chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.video-chat-send-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.video-chat-send-btn:active {
    transform: scale(0.92);
}

.video-chat-send-btn svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ========== 底部控制栏（参考语音通话样式） ========== */
.video-call-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 25px;
    background: linear-gradient(to top, rgba(255, 245, 248, 0.95), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 12;
}

.video-call-duration {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.video-call-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.video-call-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-call-control-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.video-btn-label {
    display: none;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.video-call-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.video-call-control-btn:active {
    transform: scale(0.95);
}

.video-call-control-btn.muted {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
}

.video-call-control-btn.speaker-off {
    background: rgba(255, 180, 100, 0.3);
    border-color: rgba(255, 180, 100, 0.5);
}

.video-end-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 82, 82, 0.9) 100%);
    border-color: rgba(255, 82, 82, 0.6);
    box-shadow: 0 4px 20px rgba(255, 82, 82, 0.4);
}

.video-end-btn:hover {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.95) 0%, rgba(255, 56, 56, 0.95) 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(255, 82, 82, 0.5);
}

/* ========== 滚动条样式 ========== */
.video-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.video-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.video-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 182, 193, 0.3);
    border-radius: 3px;
}

.video-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 182, 193, 0.5);
}

/* ========== 移动端优化 ========== */
@media (max-width: 768px) {
    .video-call-header {
        height: 50px;
        padding: 0 15px;
    }
    
    .video-call-header-title {
        font-size: 14px;
    }
    
    .video-call-header-btn {
        width: 36px;
        height: 36px;
    }
    
    .video-chat-container {
        max-height: 45%;
        padding: 15px 15px 10px;
    }
    
    .video-chat-message {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .video-call-controls {
        bottom: 15px;
        gap: 15px;
    }
    
    .video-call-control-btn {
        width: 50px;
        height: 50px;
    }
    
    .video-call-control-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ========== 照片管理弹窗 ========== */
.video-photo-manager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.video-photo-manager-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.video-photo-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.video-photo-manager-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.video-photo-manager-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-photo-manager-close:hover {
    background: #ff69b4;
    color: white;
    transform: rotate(90deg);
}

.video-photo-manager-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.video-photo-section {
    margin-bottom: 30px;
}

.video-photo-section:last-child {
    margin-bottom: 0;
}

.video-photo-section h4 {
    font-size: 16px;
    color: #ff69b4;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.video-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.video-photo-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.video-photo-item:hover {
    border-color: #ff69b4;
    transform: scale(1.05);
}

.video-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-photo-item-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #ff4757;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-photo-item:hover .video-photo-item-delete {
    opacity: 1;
}

.video-add-photo-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ff69b4;
    border-radius: 10px;
    background: #fff5f9;
    color: #ff69b4;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-add-photo-btn:hover {
    background: #ffe8f0;
    border-color: #ff1493;
    color: #ff1493;
}

.video-add-photo-btn svg {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* 照片管理弹窗移动端适配 */
@media (max-width: 768px) {
    .video-photo-manager-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .video-photo-manager-header {
        padding: 15px 20px;
    }
    
    .video-photo-manager-body {
        padding: 15px 20px;
    }
    
    .video-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
}

/* ========== 视频通话悬浮窗（角色照片背景） ========== */
.video-call-floating-window {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 90px;
    height: 130px;
    border-radius: 15px;
    cursor: move;
    user-select: none;
    z-index: 9999;
    display: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.3);
}

.video-call-floating-window.dragging {
    transition: none;
}

.video-call-floating-window.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.video-call-floating-window:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.4);
}

.video-floating-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.video-floating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    z-index: 2;
}

.video-floating-duration {
    position: relative;
    z-index: 3;
    font-size: 12px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 8px;
}

/* 悬浮窗移动端适配 */
@media (max-width: 768px) {
    .video-call-floating-window {
        width: 85px !important;
        height: 120px !important;
        top: 70px;
        right: 12px;
    }
    
    .video-floating-photo-wrapper {
        width: 52px;
        height: 52px;
    }
    
    .video-floating-duration {
        font-size: 12px;
    }
}

/* ========================================
   聊天中的视频通话状态卡片样式
======================================== */
.videocall-message {
    margin: 8px 0;
}

.videocall-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    max-width: 280px;
}

.videocall-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.videocall-icon.calling-icon {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    color: #1976d2;
    animation: videoCallPulse 1.5s ease-in-out infinite;
}

.videocall-icon.cancelled-icon {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
}

.videocall-icon.ended-icon {
    background: rgba(150, 150, 150, 0.1);
    color: #888;
}

@keyframes videoCallPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.videocall-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.videocall-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.videocall-status {
    font-size: 12px;
    color: #666;
}

/* 通话中状态的特殊样式 */
.videocall-message .videocall-bubble:has(.calling-icon) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}

/* 已取消状态的特殊样式 */
.videocall-message .videocall-bubble:has(.cancelled-icon) {
    background: rgba(255, 245, 245, 0.95);
    border-color: rgba(255, 107, 107, 0.2);
}

/* 已挂断状态的特殊样式 */
.videocall-message .videocall-bubble:has(.ended-icon) {
    background: rgba(245, 245, 245, 0.95);
    border-color: rgba(200, 200, 200, 0.2);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .videocall-bubble {
        min-width: 160px;
        max-width: 240px;
        padding: 10px 14px;
    }
    
    .videocall-icon {
        width: 32px;
        height: 32px;
    }
    
    .videocall-title {
        font-size: 13px;
    }
    
    .videocall-status {
        font-size: 11px;
    }
}

/* ========== 视频通话聊天页面状态栏样式 ========== */
.chat-status-bar.video-call-status {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
}

.video-status-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1976d2;
    border-radius: 50%;
    margin-right: 6px;
    animation: videoPulse 2s ease-in-out infinite;
}

@keyframes videoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(25, 118, 210, 0);
    }
}

.video-status-text {
    color: #1976d2;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* ========== 屏幕提示文字 ========== */
.video-screen-hint {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.video-main-screen:hover .video-screen-hint {
    opacity: 1;
}

.video-screen-hint-small {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.video-small-screen:hover .video-screen-hint-small {
    opacity: 1;
}

/* ========== 照片快速选择器 ========== */
.video-photo-quick-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.video-photo-quick-selector.show {
    opacity: 1;
}

.video-photo-quick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.video-photo-quick-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.video-photo-quick-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-photo-quick-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-photo-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 600px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 20px;
}

.video-photo-quick-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.video-photo-quick-item:hover {
    transform: scale(1.05);
    border-color: #ffb3d9;
    box-shadow: 0 8px 20px rgba(255, 179, 217, 0.4);
}

.video-photo-quick-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-photo-quick-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.video-photo-quick-random {
    background: linear-gradient(135deg, #ffb3d9 0%, #ffc4e8 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 179, 217, 0.3);
}

.video-photo-quick-random:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 217, 0.4);
}

.video-photo-quick-random:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-photo-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .video-photo-quick-header h4 {
        font-size: 16px;
    }
    
    .video-screen-hint {
        bottom: 100px;
        font-size: 11px;
        padding: 6px 12px;
    }
}