/**
 * VPN/加速器提示彈窗樣式
 * 僅在簡體中文語系下使用
 */

.vpn-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.vpn-alert-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: vpnAlertSlideIn 0.3s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes vpnAlertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vpn-alert-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vpn-alert-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vpn-alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.vpn-alert-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.vpn-alert-content {
    padding: 30px 24px;
    text-align: center;
    color: white;
}

.vpn-alert-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: vpnAlertPulse 2s infinite;
}

@keyframes vpnAlertPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.vpn-alert-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vpn-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vpn-alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.vpn-alert-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vpn-alert-btn-primary:hover {
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.vpn-alert-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vpn-alert-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 響應式設計 */
@media screen and (max-width: 480px) {
    .vpn-alert-modal {
        width: 95%;
        margin: 20px;
    }

    .vpn-alert-header {
        padding: 16px 20px;
    }

    .vpn-alert-header h3 {
        font-size: 16px;
    }

    .vpn-alert-content {
        padding: 24px 20px;
    }

    .vpn-alert-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .vpn-alert-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .vpn-alert-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .vpn-alert-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* 暗色主題適配 */
@media (prefers-color-scheme: dark) {
    .vpn-alert-modal {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .vpn-alert-btn-primary {
        background: #4299e1;
        color: white;
    }
    
    .vpn-alert-btn-primary:hover {
        background: #3182ce;
    }
}
