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; >.top { position: relative; height: 7rem; box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.1); >.page-width { position: relative; height: 100%; >.normal { height: 100%; @leftWidth: 13rem; >.left { >.logo { width: @leftWidth; height: 100%; >img { width: 100%; } } } >.right { max-width: calc(100% - @leftWidth); >.menus { >.menu-item { margin-right: 1rem; /* 平板/小桌面 */ @media (min-width: 1333px) { margin-right: 2rem; } >a { display: inline-block; padding: 1rem; font-weight: bold; letter-spacing: 0.1rem; } &:hover { >a { transition: all 0.5s; color: var(--primaryColor) !important; } } } } >.search { width: 11rem; } } } >.big-dropdown { display: none; position: absolute; top: 100%; left: 0%; width: 100%; background-color: white; border-radius: 1.5rem; overflow: hidden; @rightWidth: 24rem; >.left, >.right { padding: 2.5rem; } >.left { width: calc(100% - @rightWidth); >.list { >.item { width: calc((100% - 2rem) / 2); margin-bottom: 1.5rem; >a { display: flex; height: 100%; padding: 0.5rem; border-radius: 0.5rem; @leftWidth: 5rem; >.left { width: @leftWidth; height: @leftWidth; border: var(--primaryBorder); border-radius: 0.5rem; padding: 0.8rem; >img { width: 100%; height: 100%; } } >.right { width: calc(100% - @leftWidth); padding-left: 1.5rem; >.title { font-size: 1.1rem; font-weight: bold; margin-bottom: 0.5rem; } >.sub-title { font-size: 0.8rem; color: #666; -webkit-line-clamp: 2; } } &:hover { background-color: #f6fbff; >.left { background-color: var(--primaryColor); >img { // 使用filter将图片变为纯白色 filter: brightness(0) invert(1); } } } } } } } >.right { width: @rightWidth; >.img { width: 100%; margin-bottom: 1.5rem; >img { width: 100%; height: auto; } } >.title { font-size: 1.2rem; font-weight: bold; margin-bottom: 1.2rem; } >.sub-title { font-size: 0.9rem; color: #666; margin-bottom: 2rem; } >.more { display: inline-block; font-weight: bold; color: white; padding: 0.5rem 2rem; border-radius: 2rem; font-size: 0.9rem; background-image: linear-gradient(to right, var(--primaryColor2), var(--primaryColor4)); } } } } // 幽灵样式 &.ghost { box-shadow: none; height: 0; >.page-width { height: 12rem; >.normal { >.left { >.logo { >img { filter: invert(1) brightness(1000%); // 将图片变为纯白色 } } } >.right { >.menus { >.menu-item { >a { color: white; &:hover { color: white !important; } } } } } } >.big-dropdown { top: 75%; } } } } } >footer { >.get-more { background-color: var(--primaryColor); overflow: hidden; >.page-width { @leftWidth: 50%; >.left { width: @leftWidth; color: white; >.title { font-size: 2.4rem; font-weight: bold; letter-spacing: 0.2rem; } >.sub-title { margin-top: 1rem; font-size: 1.1rem; } } >.right { position: relative; // width: calc(100% - @leftWidth); // 不需要设置宽度,自动被.front撑开 height: 23rem; >.ripple { position: absolute; left: 50%; top: 0%; width: 300%; height: 100%; transform: translateX(-50%); >* { width: 100%; height: 100%; } } >.front { position: relative; height: 100%; >a { background-image: linear-gradient(to right, var(--primaryColor2), var(--primaryColor4)); color: white; border: none; padding: 0.8rem 3rem; border-radius: 0.8rem; &:hover { opacity: 0.9; } } } } } } >.contact { background-color: var(--primaryColor); >.page-width { padding: 6rem 0; @leftWidth: 50%; >.left { width: @leftWidth; color: white; >.title { font-size: 2.4rem; font-weight: bold; letter-spacing: 0.2rem; } >.sub-title { margin-top: 1rem; font-size: 1.1rem; } } >.right { width: calc(100% - @leftWidth); >.title { display: none; } } >.info { display: none; } } &.modal { display: flex !important; justify-content: center; align-items: center; position: fixed; z-index: 999999; top: 0%; left: 0%; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.2); overflow: auto; >.page-width { padding: 0; border-radius: 2rem; background-color: white; overflow: hidden; width: min(56vw, 920px); >.left { display: none; } @rightWidth: 50%; >.right, >.info { padding: 3.5rem 4rem; } >.right { width: @rightWidth; background-color: var(--primaryColor); >.title { display: block; font-size: 1.5rem; font-weight: bold; color: white; margin-bottom: 1rem; } } >.info { display: flex; width: calc(100% - @rightWidth); >.title { font-size: 1.9rem; font-weight: bold; margin-bottom: 1rem; } >.sub-title { font-size: 1.1rem; color: #666; margin-bottom: 3rem; } >.weixin-title { color: var(--primaryColor); font-size: 1.3rem; font-weight: bold; margin-bottom: 1rem; } >.weixin { width: 17rem; height: 17rem; border: var(--primaryBorder); padding: 1rem; >img { width: 100%; height: 100%; } } } } } } >.menu { background-color: white; >.page-width { padding: 8rem 0; border-bottom: var(--primaryBorder); @leftWidth: 25rem; >.left { width: @leftWidth; >.logo { display: inline-block; width: 13rem; >img { width: 100%; } } >.title { font-weight: bold; margin-top: 2rem; } >.sub-title { margin-top: 0.2rem; font-size: 0.9rem; } >.links { margin-top: 3.5rem; >.link { width: 2.5rem; height: 2.5rem; padding: 0.3rem; border-radius: 50%; border: var(--primaryBorder); &+.link { margin-left: 1rem; } >a { display: inline-block; width: 100%; height: 100%; >img { width: 100%; height: 100%; } } } } } >.right { width: calc(100% - @leftWidth); >.menu-item { >.menu-item-title { color: var(--primaryColor); margin-bottom: 1.2rem; } >.menu-item-link { display: block; margin-top: 0.15rem; &:hover { transition: all 0.5s; color: var(--primaryColor); } } } } } } >.record { background-color: white; >.page-width { padding: 3rem 0; >.left {} >.right { >* { color: inherit; position: relative; &+* { @gap: 1.25rem; margin-left: @gap; &::before { position: absolute; content: '|'; top: 50%; left: calc(-@gap / 2); transform: translateY(-50%); } } } } } } } }