/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 70px;
}

/* 顶部搜索框样式 */
.search-container {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 8px 15px;
}

.search-icon {
    color: #999;
    cursor: pointer;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}

/* Banner轮播图样式 */
.banner-container {
    margin-bottom: 15px;
    position: relative;
}

.swiper-container {
    width: 100%;
    height: 180px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.banner-container .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10;
}

.banner-container .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.5;
    margin: 0 4px;
}

.banner-container .swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
}

/* 分类导航样式 */
.category-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
}

.category-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.category-name {
    font-size: 12px;
    color: #666;
}

/* 商品区域样式 */
.product-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 600;
}

.product-price .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 加载提示和空数据提示 */
.loading-tip, .empty-tip {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .swiper-container {
        height: 150px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image {
        height: 120px;
    }
}

/* 底部导航栏样式已移至common.css */
