/* 公共样式 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 选中动画 */
.slot-item {
    transition: all 0.2s ease;
}

.slot-item:active {
    transform: scale(0.98);
}

/* 复选框动画 */
.check-circle {
    transition: all 0.2s ease;
}

.slot-item.selected .check-circle {
    border-color: #3b82f6;
    background-color: #3b82f6;
}

/* 按钮点击效果 */
button:active {
    transform: scale(0.98);
}

/* 输入框焦点效果 */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* 表格样式优化 */
table {
    border-collapse: collapse;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}
