/* 自定义动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* 标签页按钮样式 */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:not(.active) {
    color: #6b7280;
    border-bottom: 2px solid transparent;
}

.tab-btn:not(.active):hover {
    color: #2563eb;
    border-bottom-color: #93c5fd;
}

/* 确保图片不会溢出 */
img {
    max-width: 100%;
    height: auto;
}

/* 平滑过渡 */
* {
    transition-property: color, background-color, border-color;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

/* 移动端优化 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 防止文本溢出 */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}