/* 首页样式 */
.index-page {
    padding-top: 44px;
}

/* 轮播图 */
.banner {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.banner-list {
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.banner-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.dot.active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}

/* 分类导航 */
.category-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    margin: 0 15px 15px;
}

.category-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:active {
    transform: scale(0.9);
}

.category-item i {
    display: block;
    font-size: 28px;
    color: #f23030;
    margin-bottom: 8px;
}

.category-item span {
    font-size: 12px;
    color: #666;
}

/* 商品列表 */
.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 15px 10px;
    position: relative;
    padding-left: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 3px;
    height: 16px;
    background: #f23030;
    border-radius: 1.5px;
}

.product-list {
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-item {
    padding: 0;
    overflow: hidden;
}

.product-img {
    position: relative;
    width: 100%;
    height: 150px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(242,48,48,0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #f23030;
    font-size: 16px;
    font-weight: bold;
}

.btn-buy {
    padding: 4px 12px;
    background: #f23030;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-buy:active {
    transform: scale(0.95);
    background: #e62020;
} 