@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body { font-family: 'Inter', "Microsoft YaHei", sans-serif; }

/* Vue Cloak to hide uncompiled templates */
[v-cloak] { display: none; }

/* 画布背景网格 */
.canvas-container-wrapper {
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f3f4f6;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.canvas-container-wrapper.drag-active {
    background-color: #e0f2fe;
    box-shadow: inset 0 0 0 4px #3b82f6;
}

button:active { transform: scale(0.96); }
input[type="radio"].hidden-radio { position: absolute; opacity: 0; width: 0; height: 0; }

.model-card.active {
    border-color: #0d9488;
    background-color: #f0fdfa;
    color: #0f766e;
}
.model-card {
    transition: all 0.2s ease;
    /* 缩小高度 */
    min-height: auto;
}

.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease, transform 0.3s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateY(-10px); }

.crop-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 100;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.crop-container {
    max-width: 80vw; max-height: 70vh; background: #000;
    overflow: hidden; border-radius: 8px;
}
.radio-label { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: #374151; cursor: pointer; }
