/* 基础样式 */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #F59E0B;
}

body {
    width: 375px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background-color: #FAFAFA;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding-bottom: 50px;
}

html {
    background-color: #E5E5E5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 导航栏样式 */
nav.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    max-width: 375px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    box-sizing: border-box;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    background-color: white;
    border-top: 1px solid #E5E7EB;
    z-index: 50;
}

/* 动画效果 */
.animate-bounce-small {
    animation: bounce-small 1.5s infinite;
}

@keyframes bounce-small {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 卡片悬停效果 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}