/* 电脑端布局控制 */
@media (min-width: 1024px) {
    html,
    body {
        height: 100vh;
        overflow: hidden;
    }
}
@media (max-width: 1023px) {
    html,
    body {
        height: auto;
        overflow: auto;
    }
    .main-grid {
        overflow: visible !important;
    }
}

/* 滚动条 */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* 弹窗核心样式 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}
.modal-content {
    transform: translateY(20px);
    animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

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

/* 加载动画 */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 列表条目 */
.midi-item:hover {
    background-color: #f8fafc;
    padding-left: 1.25rem;
    transition: all 0.2s;
}
