@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    }
    .bg-gradient-green {
        background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* 底部固定菜单 */
.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 套餐卡片悬停效果 */
.package-card {
    transition: all 0.3s ease;
}
.package-card:hover {
    transform: translateY(-5px);
}

/* 按钮动画效果 */
.btn-pulse {
    position: relative;
    overflow: hidden;
}
.btn-pulse:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.btn-pulse:focus:not(:active)::after {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(0.8, 0.8);
        opacity: 0.5;
    }
    20% {
        transform: scale(1.5, 1.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}