/**
 * 版本更新弹窗 - Apple Design 风格
 */

/* 遮罩层 */
.version-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 显示状态 */
.version-modal.modal--show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 弹窗内容容器 */
.version-modal__content {
    background: #ffffff;
    padding: 40px 32px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 380px;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    animation: versionModalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes versionModalFadeIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 图标 */
.version-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 标题 */
.version-modal__title {
    margin: 0 0 12px 0;
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

/* 描述文字 */
.version-modal__description {
    margin: 0 0 28px 0;
    color: #86868b;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.1px;
}

/* 版本信息卡片 */
.version-modal__info-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.version-info-label {
    color: #86868b;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.05px;
}

.version-info-value {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

.version-info-value--highlight {
    color: #007AFF;
}

/* 分割线 */
.version-info-divider {
    width: 1px;
    height: 40px;
    background: #d1d1d6;
}

/* 按钮组 */
.version-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 主按钮 */
.version-modal__button {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.version-modal__button--primary {
    background: linear-gradient(180deg, #007AFF 0%, #0062CC 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.version-modal__button--primary:hover {
    background: linear-gradient(180deg, #0062CC 0%, #0051D5 100%);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.version-modal__button--primary:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.version-modal__button--secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.version-modal__button--secondary:hover {
    background: #e5e5e7;
}

.version-modal__button--secondary:active {
    transform: scale(0.98);
    background: #d5d5d7;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .version-modal__content {
        width: 90%;
        padding: 32px 24px 24px;
    }

    .version-modal__title {
        font-size: 22px;
    }

    .version-info-value {
        font-size: 18px;
    }
}
