#root { > .about-us { padding: 50px 0 30px 0; > .page-width { > .title { text-align: center; font-size: 26px; font-weight: 400; color: #333; margin-bottom: 10px; } > .description { color: #666; margin-bottom: 25px; } > .img { display: block; height: 394px; > img { height: 100%; width: 100%; object-fit: contain; } } } } > .hot-products { padding: 50px 0 50px 0; > .page-width { > .title { text-align: center; font-size: 26px; font-weight: 400; color: #333; margin-bottom: 10px; } > .description { color: #666; margin-bottom: 25px; } > ul { > li { width: 31%; margin-bottom: 40px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); > .img { display: block; width: 100%; height: 356px; > * { width: 100%; height: 100%; object-fit: contain; } } > .title { padding: 15px 15px 10px 15px; > a { display: block; font-size: 18px; color: #333; } } > .description { padding: 0 35px 0 15px; margin-bottom: 20px; height: calc(4em * 1.7); overflow: hidden; text-overflow: ellipsis; color: #8d9095; } > .read-more { display: block; text-align: center; color: #006b47; font-size: 18px; padding-bottom: 40px; } &:hover { > .img { opacity: 0.9; } } } } > .empty { margin: 32px 0; text-align: center; font-size: 12px; color: #ccc; } > .more { > a { display: inline-block; width: 135px; line-height: 42px; text-align: center; border: 1px solid #bbb; color: #777; &:hover { color: #006b47; border-color: #006b47; } } } } } > .news { padding: 50px 0 50px 0; background-color: #f4f4f4; > .page-width { > .title { text-align: center; font-size: 26px; font-weight: 400; color: #333; margin-bottom: 10px; } > .carousel { background-color: white; margin-bottom: 80px; @btnWidth: 45px; > button { width: @btnWidth; line-height: 64px; text-align: center; border: none; background-color: #dbdbdb; color: white; font-size: 20px; } > ul { position: relative; width: calc(100% - 2 * @btnWidth); height: 225px; > li { position: absolute; left: 0; top: 0; width: 100%; height: 100%; > a { padding: 30px 12px; height: 100%; @imgWidth: 260px; > .left { width: @imgWidth; height: 100%; > * { width: 100%; height: 100%; object-fit: contain; } } > .right { width: calc(100% - @imgWidth); > .title { font-weight: 700; color: #333; } > .date { margin-bottom: 10px; color: #333; } > .description { line-height: 25px; max-height: calc(4 * 25px); overflow: hidden; text-overflow: ellipsis; color: #666; transition: all 0.6s; &:hover { margin-left: 6%; } } } } } > .news-fade-enter-active, > .news-fade-leave-active { transition: opacity 1s; } > .news-fade-enter, > .news-fade-leave-to { opacity: 0; } } } > .empty { margin: 32px 0; text-align: center; font-size: 12px; color: #ccc; } > .more { > a { display: inline-block; width: 135px; line-height: 42px; text-align: center; border: 1px solid #bbb; color: #777; &:hover { color: #006b47; border-color: #006b47; } } } } } > .project-show { padding: 50px 0 100px 0; > .page-width { > .title { text-align: center; font-size: 26px; font-weight: 400; color: #333; margin-bottom: 10px; } > .description { color: #666; margin-bottom: 25px; } > ul { margin-bottom: 50px; > li { width: 23%; height: 250px; margin-bottom: 20px; transition: all 0.6s; > a { display: block; width: 100%; height: 100%; overflow: hidden; transition: inherit; > * { width: 100%; height: 100%; object-fit: cover; transition: inherit; } } &:hover { > a { box-shadow: 1px 5px 20px #c9c7c7; > * { transform: scale(1.2); } } } } } > .empty { margin: 32px 0; text-align: center; font-size: 12px; color: #ccc; } > .more { > a { display: inline-block; width: 135px; line-height: 42px; text-align: center; border: 1px solid #bbb; color: #777; &:hover { color: #006b47; border-color: #006b47; } } } } } }