@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}
.animate-float {
    animation: float 15s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes scanline {
    0% { top: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.scanline-bar {
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: scanline 2.5s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.animate-pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

.modal-active { display: flex !important; opacity: 1 !important; }
.modal-content-active { transform: scale(1) !important; }

/* 导航按钮 */
.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-btn:active { transform: scale(0.95); }

/* 侧边栏 */
.sidebar-open { transform: translateX(0) !important; }
.overlay-open { display: block !important; opacity: 1 !important; }

/* Slot Card */
.slot-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    width: 0;
    opacity: 0;
    transform: scale(0.9);
    /* margin-right: 0; 已移除，由 grid gap 处理间距 */
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.4s ease-out,
                transform 0.4s ease-out,
                border-color 0.3s ease,
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* [🔥 修改] 自适应宽度设置 */
.slot-card-active { 
    width: 100%; 
    opacity: 1; 
    transform: scale(1); 
    height: auto;
    aspect-ratio: 16/10; /* 保持 16:10 比例，防止变形 */
}

/* 移除了原来的 media queries，完全依赖 Grid */

.content-fade-in { animation: contentFade 0.5s ease-out forwards; }
@keyframes contentFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.dock-panel {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.group:hover .dock-panel { transform: translateY(0); opacity: 1; }

.dialog-backdrop-active {
    opacity: 1 !important;
}

/* 对话框激活状态 (缩放 + 不透明) */
.dialog-content-active {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* 确保 input 聚焦时不显示默认的丑陋蓝框，我们在 HTML 里自定义了 focus 样式 */
input:focus {
    outline: none;
}