/* 版本管理器样式 */

.version-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.version-manager-overlay.active {
    opacity: 1;
}

.version-manager-overlay.active .version-manager-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.version-manager-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 头部 */
.version-manager-header {
    padding: 28px 32px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.version-manager-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-manager-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.version-manager-icon svg {
    width: 28px;
    height: 28px;
}

.version-manager-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.version-manager-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.version-manager-close {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.version-manager-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.version-manager-close svg {
    width: 20px;
    height: 20px;
}

/* 当前版本卡片 */
.version-manager-current {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 24px;
    margin: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.3);
    flex-shrink: 0;
}

.version-current-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.version-current-number {
    font-size: 36px;
    font-weight: 800;
    margin: 8px 0;
    letter-spacing: -1px;
}

.version-current-date {
    font-size: 14px;
    opacity: 0.9;
}

/* 版本时间线 */
.version-manager-body {
    padding: 0 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.version-manager-body::-webkit-scrollbar {
    width: 6px;
}

.version-manager-body::-webkit-scrollbar-track {
    background: transparent;
}

.version-manager-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.version-manager-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.version-timeline {
    position: relative;
    padding: 20px 0;
}

.version-timeline-item {
    position: relative;
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.version-timeline-item:last-child {
    margin-bottom: 0;
}

/* 时间线标记 */
.version-timeline-marker {
    position: relative;
    flex-shrink: 0;
    padding-top: 8px;
}

.version-timeline-item:not(:last-child) .version-timeline-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 32px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 24px);
    background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
}

.version-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #cbd5e1;
    transition: all 0.3s ease;
}

.version-timeline-marker.major .version-timeline-dot {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 0 0 2px #dc2626, 0 4px 12px rgba(220, 38, 38, 0.3);
}

.version-timeline-marker.minor .version-timeline-dot {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 0 0 2px #2563eb, 0 4px 12px rgba(37, 99, 235, 0.3);
}

.version-timeline-item.current .version-timeline-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 时间线内容 */
.version-timeline-content {
    flex: 1;
}

.version-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.version-timeline-item.current .version-card {
    border-color: #2a5298;
    box-shadow: 0 4px 16px rgba(42, 82, 152, 0.15);
}

.version-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.version-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.version-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-card-number {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.version-card-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.version-card-type.major {
    background: #fee2e2;
    color: #dc2626;
}

.version-card-type.minor {
    background: #dbeafe;
    color: #2563eb;
}

.version-card-date {
    font-size: 13px;
    color: #94a3b8;
}

.version-card-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.version-card-changes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.version-card-changes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.change-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}

.change-text {
    flex: 1;
}

/* 底部 */
.version-manager-footer {
    padding: 20px 32px 28px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.version-manager-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.version-manager-btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.version-manager-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.version-manager-btn-primary:active {
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 768px) {
    .version-manager-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .version-manager-header {
        padding: 20px;
    }
    
    .version-manager-current {
        margin: 20px;
        padding: 20px;
    }
    
    .version-current-number {
        font-size: 28px;
    }
    
    .version-manager-body {
        padding: 0 20px;
    }
    
    .version-timeline-item {
        gap: 16px;
    }
    
    .version-card {
        padding: 16px;
    }
    
    .version-manager-footer {
        padding: 16px 20px 20px;
    }
}
