/**
 * 退出登录确认弹窗样式模块
 * 符合规范：CSS样式独立性，使用命名空间避免冲突
 */

/* ==================== 退出登录确认弹窗样式 ==================== */

.logout-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-confirm-modal.show {
    display: flex;
}

.logout-confirm-content {
    width: 420px;
    height: 270px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    border: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
}

.logout-confirm-content.show {
    animation: slideUpFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    50% {
        transform: scale(1.02) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logout-confirm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 10px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    border-bottom: 1px solid var(--border-primary);
    gap: 8px;
    flex-shrink: 0;
}

.logout-icon-container {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2));
    border-radius: 50%;
    animation: logoutIconPulse 0.6s ease-out;
    position: relative;
}

.logout-icon-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3), rgba(192, 57, 43, 0.3));
    animation: logoutIconRipple 1.5s ease-out infinite;
}

@keyframes logoutIconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes logoutIconRipple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.logout-icon {
    width: 24px;
    height: 24px;
    color: #e74c3c;
    animation: logoutIconDraw 0.6s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

@keyframes logoutIconDraw {
    0% {
        stroke-dasharray: 0, 100;
        opacity: 0;
        transform: rotate(-90deg);
    }
    100% {
        stroke-dasharray: 100, 0;
        opacity: 1;
        transform: rotate(0deg);
    }
}

.logout-confirm-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.logout-confirm-body {
    padding: 12px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.logout-message {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-weight: 500;
}

.logout-hint {
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-secondary);
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.logout-confirm-footer {
    display: flex;
    gap: 12px;
    padding: 10px 24px 12px;
    justify-content: center;
    flex-shrink: 0;
}

.logout-cancel-btn,
.logout-confirm-btn {
    min-width: 90px;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.logout-cancel-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.logout-cancel-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logout-cancel-btn:active {
    transform: translateY(0);
}

.logout-confirm-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.logout-confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.logout-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.logout-confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.logout-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.logout-confirm-btn:active::before {
    width: 0;
    height: 0;
}

/* 关闭动画 */
.logout-confirm-modal.closing {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logout-confirm-content.closing {
    animation: slideDownFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDownFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

