body>.home { >.banner { >.layui-carousel { >.carousel-container { >.carousel-item { >a { position: relative; display: block; height: 100%; >img { width: 100%; height: 100%; } >.brief { position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; color: white; letter-spacing: 0.1rem; >.page-width { >* { margin-bottom: 0.5rem; } >.top-title { font-size: 1rem; } >.title { font-size: 3rem; font-weight: bold; } >.bottom-title { font-size: 2.5rem; } >.more { margin-top: 3rem; >span { font-size: 1rem; } >i { margin-left: 1rem; @width: 3.5rem; width: @width; height: @width; padding: 0.1rem; font-size: 1.2rem; color: white; border-radius: 50%; border: 0.15rem solid white; overflow: hidden; } } } &:hover { >.page-width { >.more { >i { &::before, &::after { position: relative; animation: arrow-movement 0.25s ease-in-out; } } } } } } } } } } } >.product, >.about-us, >.knowledge, >.partner, >.newscenter, >.download { >.page-width { padding: 7rem 0; } } .section-head-style { >.title { font-size: 2.5rem; font-weight: bold; margin-bottom: 2rem; } >.description { font-size: 1.2rem; line-height: 1.8rem; margin-bottom: 3.5rem; } } >.product { background-color: white; >.page-width { .section-head-style(); >.title { @leftWidth: 60%; >.left { width: @leftWidth; } >.right { max-width: calc(100% - @leftWidth); >.more { font-size: 1.3rem; color: var(--primaryColor3); >i { @width: 4rem; width: @width; height: @width; border: 0.2rem solid var(--primaryColor3); border-radius: 50%; margin-left: 1rem; overflow: hidden; &::before, &::after { position: relative; } } &:hover { >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } } >.product { position: relative; >.swiper { opacity: 0; @edgeWidth: 10%; mask-image: linear-gradient(to right, transparent 0%, black @edgeWidth, black calc(100% - @edgeWidth), transparent 100%); >.swiper-wrapper { height: max(54rem, 46vw); >.swiper-slide { padding: 0.5rem; >a.cube { @width: 100%; width: 100%; padding: calc(@width / 2) 0; display: block; position: relative; border: var(--primaryBorder); >.img { position: absolute; left: 0%; top: 0%; width: 100%; height: 100%; overflow: hidden; >img { width: 100%; height: 100%; transition: all 0.25s ease-in-out; } } >i { @width: 2rem; position: absolute; box-sizing: border-box; width: @width; height: @width; padding: 0.1rem; bottom: 1rem; right: 1rem; font-size: 1rem; color: white; border-radius: 50%; border: 0.15rem solid white; overflow: hidden; &::before, &::after { position: relative; } } } >a.bottom { flex: 1; display: block; width: 100%; >.title { margin-top: 2rem; font-size: 1.7rem; font-weight: bold; } >.category { font-size: 1rem; color: #666; } } &:hover { >a { >.img { >img { transform: scale(1.05); } } >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } } } >.swiper-button-prev, >.swiper-button-next { opacity: 0; @width: 3rem; width: @width; height: @width; font-size: 1rem; top: 50%; transform: translateY(-50%); margin-top: 0; background-color: rgba(0, 0, 0, .35); color: white; border-radius: 50%; transition: all 0.25s ease-in-out; &::after { display: none; width: 100%; height: 100%; font-size: inherit; } &:hover { opacity: 1; } } >.swiper-button-prev { left: auto; right: calc(100% + 2rem); } >.swiper-button-next { right: auto; left: calc(100% + 2rem); } &:hover { >.swiper-button-prev, >.swiper-button-next { opacity: 1; } } } } } >.about-us { background-color: var(--primaryColor); >.page-width { @rightWidth: 24rem; color: white; >.left { width: calc(100% - @rightWidth - 15rem); .section-head-style(); >.more { color: inherit; font-size: 1.3rem; >i { @width: 4rem; width: @width; height: @width; border: 0.2rem solid white; border-radius: 50%; margin-left: 1rem; overflow: hidden; &::before, &::after { position: relative; } } &:hover { >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } >.right { width: @rightWidth; >video { background-color: white; width: 100%; height: 15rem; border-radius: 2rem; } } } } >.knowledge { >.top.page-width { .section-head-style(); } >.swiper { opacity: 0; height: 16.5rem; margin-top: -5rem; &+.swiper { margin-top: 0; margin-bottom: 7rem; } >.swiper-wrapper { transition-timing-function: linear; >.swiper-slide { padding: 1rem; >a { display: block; width: 100%; height: 100%; border-radius: 0.5rem; overflow: hidden; >.img { width: 100%; height: 100%; >img { width: 100%; height: 100%; transition: all 0.25s ease-in-out; } } } &:hover { >a { >.img { >img { transform: scale(1.05); } } } } } } } } >.partner { background-color: var(--primaryColor); >.page-width { color: white; .section-head-style(); >.title { @leftWidth: 60%; >.left { width: @leftWidth; } >.right { max-width: calc(100% - @leftWidth); >.more { font-size: 1.3rem; color: white; >i { @width: 4rem; width: @width; height: @width; border: 0.2rem solid white; border-radius: 50%; margin-left: 1rem; overflow: hidden; &::before, &::after { position: relative; } } &:hover { >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } } >.partner-logos { @width: calc((100% - 4rem) / 5); >a.item { position: relative; width: @width; padding: calc(@width / 4) 0; margin-bottom: 1rem; >.img { position: absolute; left: 0%; top: 0%; width: 100%; height: 100%; border-radius: 0.5rem; overflow: hidden; >img { width: 100%; height: 100%; transition: all 0.25s ease-in-out; } } &:hover { >.img { >img { transform: scale(1.05); } } } } >.fill-item { width: @width; } } } } >.newscenter { >.page-width { >.factory-swiper-actions { position: relative; margin-bottom: 6rem; >.swiper-button-prev, >.swiper-button-next { width: 16px; height: 16px; font-size: 16px; top: 50%; transform: translateY(-50%); margin-top: 0; &::after { display: none; width: 100%; height: 100%; font-size: inherit; } } >.swiper-scrollbar { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 4rem); height: 0.2rem; background-color: var(--primaryBorderColor); >.swiper-scrollbar-drag { background-color: var(--primaryColor3); } } } >.title { margin-bottom: 6rem; @leftWidth: 60%; >.left { width: @leftWidth; font-size: 2.2rem; } >.right { max-width: calc(100% - @leftWidth); >.more { font-size: 1.3rem; color: var(--primaryColor3); >i { @width: 4rem; width: @width; height: @width; border: 0.2rem solid var(--primaryColor3); border-radius: 50%; margin-left: 1rem; overflow: hidden; &::before, &::after { position: relative; } } &:hover { >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } } >.layui-carousel { background-color: transparent; >.carousel-container { &::before { display: none; } >.carousel-item { background-color: transparent; &.layui-this { display: flex; } >.chunk-item { width: calc((100% - 3rem) / 4); background-color: var(--primaryBorderColor); border-radius: 1rem; overflow: hidden; border: var(--primaryBorder); >a { display: block; position: relative; height: 100%; width: 100%; @imgHeight: 45%; >.img { width: 100%; height: @imgHeight; >img { position: absolute; top: 0%; width: 100%; height: @imgHeight; transition: all 0.25s ease-in-out; } } >.info { position: absolute; bottom: 0%; width: 100%; height: calc(100% - @imgHeight + 10%); border-radius: 1rem; background-color: white; padding: 1rem; >.date { position: relative; font-size: 1.05rem; padding: 0 0.8rem; margin-bottom: 0.5rem; &::before { position: absolute; content: ''; left: 0.3rem; top: 50%; transform: translate(-50%, -50%); width: 2px; height: 2px; background-color: #333; border-radius: 50%; } } >.title { font-size: 1.275rem; -webkit-line-clamp: 3; &:hover { color: var(--primaryColor3); } } } >i { @width: 2rem; position: absolute; box-sizing: border-box; width: @width; height: @width; padding: 0.1rem; bottom: 1rem; right: 1rem; font-size: 1rem; color: var(--primaryColor3); border-radius: 50%; border: 0.15rem solid var(--primaryColor3); overflow: hidden; &::before, &::after { position: relative; } } } &:hover { >a { >.img { >img { transform: scale(1.05); } } >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } >.fill-item { width: calc((100% - 3rem) / 4); } } } } } } >.download { background-color: #eff3f6; >.page-width { >.head { @leftWidth: 60%; >.left { width: @leftWidth; .section-head-style(); } >.right { max-width: calc(100% - @leftWidth); >.more { font-size: 1.3rem; color: var(--primaryColor3); >i { @width: 4rem; width: @width; height: @width; border: 0.2rem solid var(--primaryColor3); border-radius: 50%; margin-left: 1rem; overflow: hidden; &::before, &::after { position: relative; } } &:hover { >i { &::before, &::after { animation: arrow-movement 0.25s ease-in-out; } } } } } } >.list { background-color: white; padding: 1rem 2rem; border-radius: 1rem; .download-style { @width: 2.5rem; width: @width; height: @width; color: var(--primaryColor3); font-size: 1rem; &::after { content: ''; width: 1rem; height: 0.15rem; background-color: var(--primaryColor3); border-radius: 0.15rem; } } >.title, >.item, >.footer { height: 3.8rem; } >.title, >.item { border-bottom: var(--primaryBorder); } >.title { font-weight: bold; } >.item { >a { display: flex; width: 100%; @leftWidth: 50%; >.left { max-width: @leftWidth; } >.right { max-width: calc(100% - @leftWidth); >.date, >.ext, >.size { color: #666; margin: 0 0.5rem; } >i { .download-style(); margin-left: 2rem; } } } } >.footer { >.download-all { color: var(--primaryColor3); cursor: pointer; >i { .download-style(); border: 0.15rem solid var(--primaryColor3); border-radius: 50%; margin-left: 2rem; } } } } } } }