* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 轮播分页器 */
.banner-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s;
    margin: 0 4px !important;
}
.banner-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}
.product-pagination .swiper-pagination-bullet {
    background: rgba(0,0,0,0.3);
}
.product-pagination .swiper-pagination-bullet-active {
    background: #165DFF;
}

/* 卡片动效 */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:active {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 渐变按钮 */
.btn-gradient {
    background: linear-gradient(135deg, #165DFF 0%, #0FC6C2 100%);
    transition: all 0.3s;
}
.btn-gradient:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 93, 255, 0.3);
}

/* 滚动动画 */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头部滚动效果 */
.header-scrolled {
    --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* 适配iOS底部安全区 */
@supports (bottom: env(safe-area-inset-bottom)) {
    main {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
}