body {
    background-color: #F9F9F9;
}
.cosmetics-title {
    text-align: center;
    background-color: #E4ECFC;
    justify-content: center;
    padding-top: 10px;
    display: flex;
    align-items: center;
    font-size: 42px;
}

.cosmetics-title img {
    width: 80px;
    margin-right: 15px;
}

.cosmetics-year .year-title {
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 280px;
    display: flex;
    /* align-items: center; */
}

.cosmetics-year .year-title img {
    height: 100%;
    height: 34px;
    margin-top: 8px;
}

.cosmetics-list {
    flex-wrap: wrap;
}

.cosmetics-item {
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    background-color: white;
    /* margin-right: 20px;  */
}

.cosmetics-item:hover {
    box-shadow: 0 4px 8px #6666661a;
}

.cosmetics-item:hover .cosmetics-img {
    transform: scale(1.1);
}

.cosmetics-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.cosmetics-img {
    height: 100%;
    width: 100%;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: all .3s;
}

.cosmetics-name {
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: nowrap;
    /* 不换行 */
    overflow: hidden;
    /* 溢出部分隐藏 */
    text-overflow: ellipsis;
    /* 添加省略号 */
    width: 80%;
    text-align: center;
}

a.cosmetics-item:hover {
    color: black;
}


/* 粤妆甄品详情页 */
.cosmetics-detail .flex-center {
    display: flex;
    justify-content: center;
}
.cosmetics-detail .info-box {
    border-radius: 5px;
    background: white;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.cosmetics-detail .info-box-title {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 10px;
}
.cosmetics-detail .info-box-title.bt-line {
    border-bottom: 1px dashed #DEDEDE;
}
.cosmetics-detail .info-box-title img { 
    width: 25px;
}
.cosmetics-detail .product-img {
    height: 250px;
    margin: 0 auto;
}
.cosmetics-detail .flex-box {
    display: flex;
}
.cosmetics-detail .flex-1 {
    flex: 1;
}
.cosmetics-detail .info-box-body {
    padding: 10px;
}
.cosmetics-detail .info-item {
    margin-top: 10px;
}
.cosmetics-detail .info-item span:first-child {
    color: #999;
}

.cosmetics-detail .pro-body {
    display: flex;
    flex-direction: column;
}
.cosmetics-detail .pro-body .info-line {
    justify-content: space-between;
}
.cosmetics-detail .com-img {
    max-height: 350px;
    max-width: 100%;
}

.cosmetics-detail .cert-img {
    height: 500px;
}
.cosmetics-detail .com-box {
    flex-direction: column;
}
.cosmetics-detail .com-header {
    width: 100%;
    padding-bottom: 20px;
}

.cosmetics-detail .com-info {
    min-width: 250px;
}
.cosmetics-detail .com-info a {
    color: #145ccd
}
.cosmetics-detail .com-info span:first-child {
    display: inline-block;
    margin-right: 15px;
}

@media (max-width: 770px) {
    .cosmetics-detail .info-box-body {
        font-size: 12px;
    }
    .cosmetics-title {
        font-size: 30px;
    }
    .cosmetics-title div {
        margin-bottom: 10px;
    }
}
@media (max-width: 390px) {
    .cosmetics-title {
        font-size: 24px;
    }
    .cosmetics-title img {
        width: 60px;
        margin-left: 10px;
    }

}