/* 现代化按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* 导航项动态移动效果 */
.nav-item {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.nav-item:hover {
    padding-top: 0;
    padding-bottom: 1.25rem;
}

/* Hero背景渐变 */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 文字截断 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

/* 液态渐变动画 */
@keyframes liquid-morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 70% 60% 40% / 50% 60% 40% 50%;
        transform: rotate(90deg) scale(1.05);
    }
    50% {
        border-radius: 70% 30% 40% 60% / 30% 50% 60% 40%;
        transform: rotate(180deg) scale(0.95);
    }
    75% {
        border-radius: 40% 60% 70% 30% / 70% 40% 30% 60%;
        transform: rotate(270deg) scale(1.1);
    }
}

.liquid-blob {
    animation: liquid-morph 20s ease-in-out infinite;
}

.blob-1 {
    animation-duration: 35s;
    animation-timing-function: ease-in-out;
}

.blob-2 {
    animation-duration: 42s;
    animation-direction: reverse;
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

.blob-3 {
    animation-duration: 38s;
    animation-timing-function: ease-out;
}

/* 流动路径动画 */
@keyframes flow {
    0% {
        stroke-dasharray: 0 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 100 200;
        stroke-dashoffset: -50;
    }
    100% {
        stroke-dasharray: 0 200;
        stroke-dashoffset: -200;
    }
}

.flowing-path {
    animation: flow 8s ease-in-out infinite;
}

/* 代码动画 */
@keyframes code-fade {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.code-animation {
    animation: code-fade 4s ease-in-out infinite;
}

/* 流线型光效动画 */
@keyframes flowing-light {
    0%, 100% {
        transform: scale(1) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05) translateX(10px);
        opacity: 0.4;
    }
}

.flowing-light {
    animation: flowing-light 12s ease-in-out infinite;
}

/* 随机线条动画 */
@keyframes random-fade {
    0%, 100% { opacity: 0.1; }
    30% { opacity: 0.2; }
    70% { opacity: 0.15; }
}

.random-lines {
    animation: random-fade 8s ease-in-out infinite;
}

/* 几何图形动画 */
@keyframes geometric-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
        opacity: 0.18;
    }
}

.geometric-shapes {
    animation: geometric-float 6s ease-in-out infinite;
}

/* 几何点闪烁 */
@keyframes dot-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.geometric-dot {
    animation: dot-twinkle 4s ease-in-out infinite;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}