/* 版本管理弹窗样式 */
.version-tag {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary, #667eea);
    font-weight: 600;
}

.version-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

/* 版本弹窗遮罩 */
#version-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#version-modal.show {
    display: flex;
    opacity: 1;
}

/* 版本弹窗容器 */
.version-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 版本弹窗头部 */
.version-modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.version-modal-header h2 {
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-modal-header h2 i {
    font-size: 32px;
}

.version-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.version-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 版本弹窗主体 */
.version-modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* 自定义滚动条 */
.version-modal-body::-webkit-scrollbar {
    width: 8px;
}

.version-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.version-modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.version-modal-body::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* 版本项 */
.version-item {
    background: #f7f9fc;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.version-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.version-item.version-latest {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #667eea;
    position: relative;
}

/* 版本头部 */
.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

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

.version-info i {
    font-size: 24px;
}

.version-info h3 {
    margin: 0;
    font-size: 24px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-date {
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 版本徽章 */
.latest-badge {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.version-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.version-major {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.version-feature {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
}

.version-fix {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.version-initial {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: white;
}

/* 版本内容 */
.version-content {
    margin-top: 15px;
}

.version-title {
    font-size: 18px;
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.version-section {
    margin-bottom: 20px;
}

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

.version-section h5 {
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-section h5 i {
    color: #667eea;
}

/* 版本列表 */
.version-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
}

.version-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.version-improvements li::before {
    content: '✓';
    color: #48bb78;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .version-modal-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
    
    .version-modal-header {
        padding: 20px;
    }
    
    .version-modal-header h2 {
        font-size: 22px;
    }
    
    .version-modal-body {
        padding: 20px;
    }
    
    .version-item {
        padding: 20px;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-info h3 {
        font-size: 20px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.version-latest .latest-badge {
    animation: pulse 2s infinite;
}
