/* 头部标题 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 750px;
    padding: 15px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.header h1 {
    font-size: 18px;
    margin: 0;
}

/* 内容区域 */
.container {
    margin-top: 50px;
    margin-bottom: 120px;
    padding: 10px;
}

/* 购物车商品项 */
.cart-item {
    display: flex;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.goods-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-right: 15px;
}

.goods-info {
    flex: 1;
}

.goods-info h3 {
    font-size: 14px;
    margin: 0 0 8px;
    color: #333;
}

.price {
    color: #f00;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px;
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.quantity-control span {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.item-total {
    display: flex;
    align-items: flex-end;
    padding-left: 15px;
    color: #666;
}

/* 底部结算栏 */
.checkout-bar {
    position: fixed;
    bottom: 50px;
    width: 100%;
    max-width: 750px;
    padding: 10px 15px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.total-price {
    font-size: 16px;
    color: #333;
}

#cart-total {
    color: #f00;
    font-weight: bold;
}

.checkout-btn {
    background: #f00;
    color: #fff;
    border: none;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.checkout-btn:active {
    background: #e00;
} 