
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    .text-balance {
        text-wrap: balance;
    }
    .bg-gradient-sky {
        background: linear-gradient(135deg, #f0f9ff 0%, #cfe8fc 100%);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 新增弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    color: #165DFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #4E5969;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: #6B7280;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #165DFF;
}

/* 激活码弹窗样式 */
.activation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.activation-modal.active {
    opacity: 1;
    visibility: visible;
}

.activation-modal .modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.activation-modal.active .modal-content {
    transform: scale(1);
}

.qr-code-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    color: #165DFF;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: #6B7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.activation-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.activation-input:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.validity-info {
    color: #6B7280;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.activation-btn {
    width: 100%;
    padding: 0.9rem 0;
    background: #165DFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.activation-btn:hover {
    background: #0f48c7;
    transform: translateY(-1px);
}

.activation-btn:active {
    transform: translateY(0);
}
