@keyframes arrow-movement { 0% { left: 0%; } 49% { left: 100%; } 50% { left: -100%; } 100% { left: 0%; } } body { &.copy-protection { -webkit-user-select: none !important; /* Safari */ -moz-user-select: none !important; /* Firefox */ -ms-user-select: none !important; /* IE/Edge */ user-select: none !important; /* 标准 */ } >header { position: relative; z-index: 2; @borderRadius: 25px; >.brief { height: 3.98rem; background-color: var(--primaryColor); color: white; >.page-width { height: 100%; font-weight: bold; >.left { font-size: 1.1rem; letter-spacing: 0.1rem; } >.right { cursor: pointer; >i { @width: 1.7rem; width: @width; height: @width; line-height: @width; border: 0.124rem solid white; border-radius: 50%; font-size: 0.7rem; margin-right: 0.5rem; } } } } >.actions { height: 7.4rem; background-color: white; border-bottom: var(--primaryBorder); >.page-width { height: 100%; @logoWidth: 20rem; @rightWidth: 20rem; >* { max-height: 100%; } >.logo { display: block; width: @logoWidth; height: 60%; >img { width: 100%; height: 100%; } } >.search { width: calc(100% - @logoWidth - @rightWidth); padding: 0 3rem; } >.right { width: @rightWidth; >.layui-btn { @btnHeight: 2.5rem; height: @btnHeight; border-radius: calc(@btnHeight / 2); &.contact { @color: #51c236; position: relative; z-index: 1; color: @color; border-color: @color; opacity: 1; >.fa-weixin { font-size: 1.4rem; margin-right: 0.3rem; } >.weixin { position: absolute; top: 100%; left: 0%; width: 100%; height: 10rem; padding: 0.5rem; display: none; >img { width: 100%; height: 100%; border: var(--primaryBorder); background-color: white; } } &:hover { >.weixin { display: block; } } } &.leave-msg { color: var(--primaryColor2); border-color: var(--primaryColor2); padding: 0 1.5rem; >a { color: inherit; } >i { font-size: 1.4rem; margin-right: 0.3rem; } &:hover { color: var(--primaryColor2); border-color: var(--primaryColor2); } } } } } } >.menu { position: relative; @height: 4.5rem; height: @height; box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.05); >.page-width { height: 100%; >.layui-nav { display: flex; height: 100%; background-color: transparent !important; padding: 0; >.layui-nav-item { flex: 1; height: 100%; >a { height: 100%; line-height: @height; font-size: 1.1rem; font-weight: bold; color: var(--primaryColor); >.layui-icon { margin-left: 0.5rem; } &:hover { color: var(--primaryColor3); } } &::after { background-color: transparent; } &.layui-this { >a { color: var(--primaryColor3); } } } >.layui-nav-bar { background-color: var(--primaryColor); } } } >.big-dropdown { position: absolute; top: 100%; width: 100%; background-color: white; z-index: 1; display: none; border-top: var(--primaryBorder); box-shadow: 0 7px 6px 1px rgba(0, 0, 0, 0.08); >.page-width { padding: 4rem 0; >.column { width: calc(100% / 3); padding: 0 4rem; >.row {} >.intruduction { display: block; border: var(--primaryBorder); border-radius: 0.5rem; padding: 1rem; >.top { margin-bottom: 0.5rem; >.title { font-size: 1.2rem; font-weight: bold; } >i { margin-left: 1rem; color: var(--primaryColor); } } >.brief { margin-bottom: 0.5rem; font-size: 0.8rem; color: #999; } >.img { width: 100%; height: 10rem; border-radius: 0.5rem; overflow: hidden; >img { width: 100%; height: 100%; transition: all 0.3s; } } &:hover { >.top { >.title { color: var(--primaryColor2); } } >.img { >img { transform: scale(1.05); } } } } } } &.products { >.page-width { >.column { >.row { min-height: 5.5rem; >.top { margin-bottom: 0.5rem; font-size: 1.2rem; font-weight: bold; color: var(--primaryColor); } >.sub-title { height: 3rem; font-size: 0.8rem; color: #999; } &:hover { >.top { color: var(--primaryColor2); } } } } } } &.about-us { >.page-width { >.column { >.row { min-height: 5.5rem; >.top { margin-bottom: 0.5rem; font-size: 1.2rem; font-weight: bold; color: var(--primaryColor); } >.sub-title { height: 3rem; font-size: 0.8rem; color: #999; } &:hover { >.top { color: var(--primaryColor2); } } } &:first-of-type { border-right: var(--primaryBorder); >.row { min-height: 5.5rem; >.top { margin-bottom: 0.5rem; font-size: 1.2rem; font-weight: bold; color: var(--primaryColor); } >.sub-title { height: 3.875rem; font-size: 0.8rem; color: #999; -webkit-line-clamp: 3; margin-bottom: 3rem; } >button { border: 1px solid var(--primaryColor2); border-radius: 2rem; padding: 0.5rem 1.5rem; background-color: transparent; color: var(--primaryColor2); } &:hover { >.top { color: var(--primaryColor2); } } } } } } } } } } >footer { background-color: var(--primaryColor); color: white; @border: 1px solid #7b7b7b; >.actions { height: 6.5rem; border-bottom: @border; >.page-width { height: 100%; >.left { font-weight: bold; letter-spacing: 0.1rem; cursor: pointer; >i { @width: 2.2rem; width: @width; height: @width; line-height: @width; border: 0.125rem solid white; border-radius: 50%; font-size: 0.9rem; margin-right: 0.5rem; } } >.right { >.layui-btn { border: none; font-size: 1rem; color: white; &.contact { position: relative; z-index: 1; opacity: 1; >*+* { margin-left: 0.7rem; } >.fa-weixin { font-size: 1.6rem; color: #51c236; } >.weixin { position: absolute; top: 100%; left: 0%; width: 100%; height: 10rem; padding: 0.5rem; display: none; >img { width: 100%; height: 100%; border: var(--primaryBorder); background-color: white; } } &:hover { color: var(--primaryColor3); >.weixin { display: block; } } } &.leave-msg { >a { color: inherit; } &:hover { color: var(--primaryColor3); } } } >.divider { border-right: 0.15rem solid white; height: 1rem; margin: 0 1rem; } } } } >.menu { border-bottom: @border; >.page-width { padding: 3rem 0; >.menu-item { flex: 1; &:last-of-type { flex: 1.8; >.row-between { >.weixin { width: 45%; >img { width: 100%; border-radius: 0.3rem; } >.text { margin-top: 1rem; font-size: 0.9rem; color: #a8a8a8; } } } } &+* { margin-left: 5rem; } >.menu-item-title { padding-bottom: 1rem; border-bottom: @border; margin-bottom: 1rem; } >.menu-item-link { display: block; padding: 0.2rem 0; color: white; letter-spacing: 0.05rem; &:hover { color: var(--primaryColor3); } } } } } >.record { height: 6.5rem; color: #a8a8a8; >.page-width { height: 100%; font-weight: bold; >* { color: inherit; position: relative; &+* { margin-left: 2.5rem; &::before { position: absolute; content: '|'; top: 50%; left: -1.25rem; transform: translateY(-50%); } } } } } } >.float-bar {} }