*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 全局设置 */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
}

.all-products{
    margin: auto;
    padding-bottom: 80px;
    display: flex;
    width: 70%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 30px;
    background:white;
    border-radius: 10px;
    box-shadow: 1px 1px 20px rgb(210, 210, 210);
    margin-top: 70px;
}

.product{
    overflow: hidden;
    background: #fff;
    color: red;
    text-align: center;
    width: 250px;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    margin: 2rem;
    box-shadow: 1px 1px 10px #d6d6d6;
}

.product:hover img{
    scale: 1.05;
}

.product img{
    height: 150px;
    margin: 0.5rem;
    transition: all 0.3s;
}

.product a:link, .product a:visited{
    color: red;
    display: inline-block;
    text-decoration: none;
    background-color: rgb(255, 255, 255);
    margin-top: 1rem;
    transition: all 0.2s;
    max-width: calc(100% - 50px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.product a:hover{
    color: black;
    text-decoration: underline;
}

.product-info{
    font-size:18px;
}

@media screen and (max-width: 1000px) {

    .all-products{
        margin-top: 50px;
    }
}