/* styles.css */
/* 基础样式 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f8fafc;
}

/* 移动端优先设计 */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

/* 平台卡片 */
.platform-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 响应式导航 */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
    max-height: 500px;
}

/* 移动端优化 */
@media (max-width: 767px) {
    .payment-icons img {
        width: 32px;
        height: 32px;
    }

    .view-details-btn {
        padding: 12px;
        font-size: 16px;
        min-height: 48px;
    }

    /* 禁用hover效果 */
    @media (hover: none) {
        .platform-card:hover {
            transform: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
    }
}

/* 轮播组件 */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 16px 0;
}

.testimonial-carousel {
    @apply relative overflow-hidden;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 auto;
    width: calc(100% - 32px);
    margin: 0 16px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .testimonial-slide {
        width: calc(50% - 32px);
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        width: calc(33.333% - 32px);
    }
}

/* 触摸优化 */
@media (pointer: coarse) {
    .testimonials-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
}