/**
 * 閫€鍑洪」鐩?鍒嗙粍鏉冮檺椤圭洰寮圭獥 - 鐙珛鏍峰紡
 * 浠呯敤浜?#leaveProjectModal锛岃鑼冿細Microsoft YaHei
 */

.leave-project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leave-project-modal.show {
    display: flex;
}

.leave-project-content {
    width: 450px;
    height: 450px;
    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;
}

.leave-project-content.show {
    animation: slideUpFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.leave-project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 12px;
    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: 12px;
    flex-shrink: 0;
}

.leave-project-icon {
    width: 56px;
    height: 56px;
    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: leaveProjectIconPulse 0.6s ease-out;
    position: relative;
    color: #e74c3c;
}

.leave-project-icon::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: leaveProjectIconRipple 1.5s ease-out infinite;
}

@keyframes leaveProjectIconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes leaveProjectIconRipple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.leave-project-icon svg {
    width: 32px;
    height: 32px;
    animation: leaveProjectIconDraw 0.6s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    stroke: currentColor;
}

@keyframes leaveProjectIconDraw {
    0% {
        stroke-dasharray: 0, 100;
        opacity: 0;
        transform: rotate(-90deg);
    }
    100% {
        stroke-dasharray: 100, 0;
        opacity: 1;
        transform: rotate(0deg);
    }
}

.leave-project-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.leave-project-body {
    padding: 20px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    gap: 8px;
}

.leave-project-message {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-weight: 500;
}

.leave-project-hint {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.leave-project-folder-name {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-accent);
    margin: 8px 0 0 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.leave-project-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    justify-content: center;
    flex-shrink: 0;
    border-top: 1px solid var(--border-primary);
}

.leave-project-cancel-btn,
.leave-project-confirm-btn {
    min-width: 100px;
    padding: 10px 24px;
    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;
}

.leave-project-cancel-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.leave-project-cancel-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.leave-project-cancel-btn:active {
    transform: translateY(0);
}

.leave-project-confirm-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.leave-project-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;
}

.leave-project-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.leave-project-confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.leave-project-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.leave-project-confirm-btn:active::before {
    width: 0;
    height: 0;
}

/* 关闭动画 */
.leave-project-modal.closing {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.leave-project-content.closing {
    animation: slideDownFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 分组权限项目相关样式 */
.leave-project-message.leave-project-warning {
    color: #e74c3c;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 16px 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    word-wrap: break-word;
    word-break: normal;
    line-height: 1.5;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.leave-project-hint-group {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: var(--radius-md);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    text-align: left;
    flex-shrink: 0;
}

.affected-projects-container {
    background: rgba(231, 76, 60, 0.05);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

.current-project-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-weight: 500;
}

.current-project-name strong {
    color: #e74c3c;
}

.affected-projects-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    max-height: 280px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding-right: 4px;
}

/* 受影响项目列表滚动条样式 */
.affected-projects-list::-webkit-scrollbar {
    width: 6px;
}

.affected-projects-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.affected-projects-list::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.5);
    border-radius: 3px;
}

.affected-projects-list::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 76, 60, 0.7);
}

.affected-projects-list li {
    font-size: 13px;
    color: var(--text-primary);
    padding: 8px 14px;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(231, 76, 60, 0.3);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    flex: 0 0 auto;
    min-width: 60px;
    text-align: center;
    font-weight: 500;
}

.no-affected-projects {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    padding: 8px 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.group-info-container {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
    text-align: left;
    flex-shrink: 0;
}

.group-info-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-weight: 500;
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

/* 分组列表滚动条样式 */
.groups-list::-webkit-scrollbar {
    width: 6px;
}

.groups-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.groups-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.groups-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.group-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.group-info-item .group-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.group-info-item .group-type {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-sm);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

/* 分组权限项目对话框需要更大的宽度和高度 */
.leave-project-content.group-project {
    width: 600px;
    min-height: 600px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.leave-project-body.group-project {
    text-align: left;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 分组项目弹窗body滚动条样式 */
.leave-project-body.group-project::-webkit-scrollbar {
    width: 8px;
}

.leave-project-body.group-project::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.leave-project-body.group-project::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 4px;
}

.leave-project-body.group-project::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* 画笔工具样式已迁移：css/modules/review/tools/drawing-tool.css（使用 .review-drawing-tool-*） */

