/* 头部搜索栏 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 750px;
    padding: 10px;
    background: #fff;
    z-index: 100;
}

.search-bar {
    position: relative;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.search-bar input {
    width: 100%;
    border: none;
    background: none;
    font-size: 14px;
    padding-left: 24px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* 内容区域 */
.container {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0 10px;
}

/* 轮播图 */
.banner {
    margin: 10px 0;
}

.banner img {
    width: 100%;
    border-radius: 8px;
}

/* 分类导航 */
.category {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}

.category-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 12px;
    color: #333;
}

.category-item i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #666;
}

/* 商品列表 */
.goods-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.goods-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.goods-item img {
    width:100px;
    height: 100px;
    border-radius: 4px;
}

.goods-item h3 {
    font-size: 14px;
    margin: 8px 0;
    color: #333;
}

.goods-item .price {
    color: #f00;
    font-size: 16px;
    font-weight: bold;
}

/* 底部导航 */
.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
}

.footer-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.footer-item span {
    font-size: 12px;
}

.footer-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.footer-item.active {
    color: #f00;
}

.footer-item.active i {
    color: #f00;
}

.buy-btn {
    width: 85%;
    padding: 10px 0;
    margin: 12px auto;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.buy-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.2);
}

/* 在支持hover的设备上添加悬停效果 */
@media (hover: hover) {
    .buy-btn:hover {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
        transform: translateY(-1px);
    }
} 