/* 自定义CSS样式，补充Tailwind CSS */

/* 全局样式 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* 延迟动画 */
.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

.fade-in-delay-5 {
    animation-delay: 0.5s;
}

/* 进度条动画 */
@keyframes progressBar {
    from { width: 0; }
    to { width: 100%; }
}

.progress-bar {
    animation: progressBar 1.5s ease-out forwards;
}

/* 数字计数动画 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-up {
    animation: countUp 0.8s ease-out forwards;
}

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

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -10px rgba(22, 93, 255, 0.15);
}

/* 按钮悬停效果 */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.3);
}

/* 导航链接悬停效果 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #165DFF;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 图片悬停缩放效果 */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.03);
}

/* 卡片阴影分层 */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 响应式字体调整 */
@media (max-width: 768px) {
    .text-lg {
        font-size: 1rem;
    }
    
    .text-xl {
        font-size: 1.25rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* 表单焦点样式 */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
    border-color: #165DFF;
}

/* 渐变背景增强 */
.gradient-primary {
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #36CFC9 0%, #165DFF 100%);
}

/* 文本渐变 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
}

/* 分隔线样式 */
.divider {
    height: 2px;
    background: linear-gradient(90deg, rgba(22, 93, 255, 0) 0%, rgba(22, 93, 255, 0.3) 50%, rgba(22, 93, 255, 0) 100%);
}

/* 标签样式 */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background-color: #165DFF;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 图标背景 */
.icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 8px;
    color: #165DFF;
    font-size: 1.25rem;
}