body {
    font-family: 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
}
.text-shadow {
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: translateY(-5px);
}

/* Banner 图片样式 */
.banner-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

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

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.scroll-animate {
    opacity: 0;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 漂亮的滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a6b1a;
}

/* 时间线节点动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 139, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 139, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 139, 34, 0);
    }
}

.timeline-node.active {
    transform: scale(1.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 图片过渡效果 */
.timeline-image {
    transition: opacity 0.3s ease, transform 0.5s ease;
}

/* Banner图片覆盖效果 */
.banner-overlay {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

/* 联系电话悬浮动画 */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

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

/* 移动设备导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu .w-full {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out 0.1s;
}

.mobile-menu.active .w-full {
    transform: translateX(0);
}

.mobile-menu ul li {
    margin-bottom: 2px;
}

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .h-\[70vh\] {
        height: 50vh;
    }
    
    .banner-content {
        padding: 0 15px;
    }
    
    .timeline-grid-item {
        margin-bottom: 50px;
    }
    
    .timeline-card {
        height: 100%;
    }
    
    /* 确保评价内容在移动端有合适的留白，让控制按钮有位置 */
    .testimonial {
        padding: 1.5rem;
    }
    
    /* 调整轮播控制按钮在移动端的位置和大小 */
    .testimonial-btn {
        width: 2.5rem;
        height: 2.5rem;
        opacity: 0.9;
    }
    
    /* 确保轮播控制按钮在移动端上始终显示 */
    .prev-btn {
        left: 0.5rem;
    }
    
    .next-btn {
        right: 0.5rem;
    }
}

/* 全局样式 */
:root {
    --watermelon-green: #228B22;
    --watermelon-red: #ff4d4d;
    --watermelon-light: #f0f8f0;
    --watermelon-dark: #2c3e50;
}

/* 自定义顾客口碑轮播样式 */
.testimonial {
    transition: all 0.3s ease;
}

.testimonial-dot {
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    width: 2rem;
}

/* 时间线连接线 */
.timeline-grid-item {
    position: relative;
}

@media (min-width: 640px) {
    .timeline-grid-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, var(--watermelon-green), #4ade80);
        transform: translateY(-50%);
    }
} 