zxf/css/responsive.less

795 lines
15 KiB
Plaintext

// main max width
@mw: 6.8rem;
@xt: 0.36rem;
@mt: 0.32rem;
@st: 0.28rem;
@mst: 0.24rem;
@keyframes mobileHeaderFadeIn {
0% {
opacity: 0;
transform: translateY(-100%);
}
100% {
opacity: 0.9;
transform: translateY(0);
}
}
@keyframes mobileHeaderFadeOut {
0% {
opacity: 0.9;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(-100%);
}
}
@media screen and (max-width: 768px) {
.main-wrap {
width: @mw;
max-width: 10rem;
}
.header.style1 {
.menu {
.link {
color: #FFFFFF;
}
.link.active {
color: #FFFFFF;
font-weight: bold;
}
.link:hover {
color: #FFFFFF;
}
}
}
.header.style2 {
.menu {
.link {
color: #FFFFFF;
}
.link.active {
color: #FFFFFF;
font-weight: bold;
}
.link:hover {
color: #FFFFFF;
}
}
}
.header {
.logo {
position: relative;
z-index: 10;
font-size: 0;
img {
height: 0.52rem;
}
}
.main {
height: 0.9rem;
}
.menu {
.menu-group.iFadeIn,
.menu-mask.iFadeIn {
animation: mobileHeaderFadeIn 1.2s;
}
.menu-group.iFadeOut,
.menu-mask.iFadeOut {
animation: mobileHeaderFadeOut 1.2s;
}
.menu-group {
z-index: 10;
display: none;
position: fixed;
left: 0;
top: 0.9rem;
right: 0;
}
.menu-mask {
z-index: 5;
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #000000;
opacity: 0.9;
}
.menu-btn {
display: block;
z-index: 10;
position: relative;
font-size: 0;
.btn-img {
max-width: 0.52rem;
}
}
.item {
margin-left: 0;
padding: 0 0.36rem;
.link {
display: block;
box-sizing: border-box;
border-bottom: 0.02rem solid #737373;
padding: 0.26rem 0;
font-size: 0.32rem;
}
}
}
}
.footer {
.logo-bottom {
height: 0.52rem;
}
.main {
.row {
font-size: @mt;
margin-top: 0.3rem;
line-height: 0.32rem;
}
.tel {
width: 4.16rem;
font-size: @mt;
padding: 0.2rem;
}
}
}
.section.main-banner {
.item {
height: 5.1rem;
}
.swiper-pagination {
display: none;
}
}
.banner-text {
padding-top: 0.5rem;
p:nth-child(1) {
font-size: @xt;
line-height: 0.36rem;
margin-bottom: 0.3rem;
}
p:nth-child(2) {
font-size: @st;
line-height: 0.32rem;
}
}
.section {
.section-title.style-1 {
.title {
font-size: @xt;
line-height: 0.36rem;
}
.title::before,
.title::after {
width: 0.58rem;
height: 0.04rem;
}
}
}
.section.idx-about {
margin-top: 0.4rem;
.ia-container {
margin-top: 0.4rem;
font-size: @mt;
line-height: 0.4rem;
}
.ia-image {
margin-top: 0.4rem;
}
}
.section.idx-culture {
margin-top: 0.7rem;
margin-bottom: 0.7rem;
.culture-item:first-child {
margin-top: 0.4rem;
}
.culture-item {
width: 100%;
height: auto;
margin-top: 0.2rem;
padding: 0.4rem;
box-shadow: 0rem 0.04rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
}
.title {
margin-bottom: 0.28rem;
.text {
font-size: @mt;
}
.cover {
width: 0.3rem;
height: 0.3rem;
margin-right: 0.16rem;
}
}
.desc {
font-size: @st;
line-height: 0.36rem;
}
}
.section.sec-banner {
height: 3.48rem;
.banner-text {
padding-top: 0.6rem;
}
}
.full-wrap.about {
background-color: unset;
}
.section.about-textarea {
padding-top: 0.4rem;
padding-bottom: 0.7rem;
.at-img {
max-height: 0.6rem;
}
.content {
margin-top: 0.4rem;
font-size: @mt;
line-height: 0.4rem;
}
.img-group {
margin-top: 0.6rem;
.item {
width: 32%;
height: auto;
}
}
}
.section.mapcont {
margin-top: 0;
.mcont {
margin-top: 0.5rem;
}
}
.section.addrcont {
margin-top: 0.4rem;
margin-bottom: 1rem;
.aacont {
margin-top: 0.5rem;
li::before {
width: 0.38rem;
height: 0.38rem;
margin-top: 0.04rem;
}
li:nth-child(2) {
margin-top: 0.3rem;
}
li {
width: 100%;
float: unset;
margin-top: 0.3rem;
align-items: flex-start;
}
a {
font-size: @mt;
line-height: unset;
margin-left: 0.14rem;
}
}
}
.section.contact-map {
margin-top: 0.6rem;
height: 5rem;
.cm-desc {
width: 6.78rem;
border: 0.02rem solid #DDDDDD;
box-shadow: 0rem 0.04rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
.logo {
width: 2.54rem;
height: 2.54rem;
}
.desc {
width: auto;
padding: 0.28rem;
}
}
.cm-map {
top: 0.6rem;
height: 4.4rem;
background-size: cover;
}
.title {
h1 {
font-size: @xt;
margin-bottom: 0;
line-height: 0.36rem;
}
p {
font-size: @st;
line-height: 0.28rem;
}
}
.items {
li {
align-items: flex-start;
margin-top: 0.1rem;
}
img {
width: 0.28rem;
height: 0.28rem;
}
p {
font-size: @st;
line-height: 0.28rem;
}
}
}
.section.paragraph-content {
margin-top: 0.7rem;
margin-bottom: 0.74rem;
.paragraph {
.title {
font-size: @xt;
line-height: 0.36rem;
text-align: center;
margin-bottom: 0.36rem;
}
.content {
font-size: @mt;
line-height: 0.4rem;
}
}
}
.section.cooperate {
.content {
font-size: @mt;
line-height: 0.4rem;
margin-top: 0.56rem;
margin-bottom: 0.7rem;
}
}
.section.article-detail {
margin-top: 0;
margin-bottom: 0.8rem;
.title {
padding: 0.4rem 0;
text-align: left;
border-bottom: 0.04rem dashed #E5E5E5;
h1 {
font-size: @xt;
line-height: 0.4rem;
}
}
.content {
padding: 0.24rem 0;
font-size: @mt;
line-height: 0.4rem;
}
.close-page {
display: none;
}
}
.section.story-cont {
margin-top: 0.48rem;
.title {
font-size: @xt;
text-align: center;
margin-bottom: 0.24rem;
line-height: 0.36rem;
}
.image-con {
border-radius: 0;
.swiper-slide {
width: 100%;
height: 2.98rem;
border-radius: 0;
}
.text-con {
padding: 0.18rem 0.2rem;
p {
height: 0.32rem;
font-size: @mt;
line-height: 0.32rem;
}
}
}
.story-item:nth-child(2n) {
.desc {
border-radius: 0;
}
}
.story-item {
.img {
width: 100%;
height: 3.76rem;
border-radius: 0;
float: unset;
}
.desc {
width: 100%;
height: auto;
border-radius: 0;
float: unset;
margin-top: 0;
padding: 0.6rem 0.4rem;
}
.text {
display: inline-block;
font-size: @mt;
line-height: 0.4rem;
margin-bottom: 0.4rem;
}
.text:nth-child(2) {
color: #666666;
margin-left: 0.2rem;
}
.content {
font-size: @st;
line-height: 0.4rem;
}
}
}
.section.story-cont.last {
margin-bottom: 0.48rem;
}
.s-section {
.s-title {
font-size: @xt;
line-height: 0.32rem;
text-align: center;
}
}
.s-section.s1-first {
margin-top: 0.6rem;
margin-bottom: 0.6rem;
}
.section.business-nav {
width: 100%;
margin-top: 0.2rem;
.nav {
li {
width: auto;
padding: 0;
}
a {
display: block;
width: 100%;
color: #666666;
font-size: @st;
line-height: 0.6rem;
padding: 0.04rem 0.24rem;
box-sizing: border-box;
}
}
}
.section.business-cont {
.title {
font-size: 0rem;
h2 {
font-size: @xt;
line-height: 0.36rem;
}
}
.title::after {
width: 0.58rem;
height: 0.04rem;
margin-top: 0.2rem;
}
}
.business-cont.s1 {
margin-top: 0.5rem;
}
.business-cont.s2 {
margin-top: 0.6rem;
.mid-box {
margin: 0.3rem 0 0.1rem 0;
.ad-text {
font-size: @st;
line-height: 0.32rem;
font-weight: normal;
text-align: center;
}
}
}
.business-cont.s3 {
margin-top: 1rem;
padding-bottom: 0;
padding-top: 0;
background-color: unset;
.mid-box {
margin-top: 0.4rem;
margin-bottom: 0.4rem;
.num {
font-size: @st;
line-height: 0.36rem;
}
.desc {
font-size: @st;
line-height: 0.36rem;
margin-top: 0.2rem;
}
.cont {
width: 100%;
}
li {
width: 33.33333%;
}
li::after {
height: 0.52rem;
}
}
}
.business-cont.s4 {
padding: 0.6rem 0;
}
.s-content.g1 {
text-align: center;
li {
width: 46%;
margin-left: 2%;
margin-right: 2%;
}
li:nth-child(4n) {
margin-right: 2%;
}
.icon {
width: 1.14rem;
height: 0.82rem;
}
h4 {
height: 0.4rem;
font-size: @mt;
margin: 0.3rem 0;
line-height: 0.4rem;
}
p {
height: 0.32rem;
font-size: @st;
line-height: 0.32rem;
}
.item {
width: 100%;
height: auto;
padding: 0.4rem 0;
box-shadow: 0rem 0.04rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
border-radius: 0.2rem;
}
}
.s-content.g2 {
li {
float: initial;
margin-right: 0;
}
.item {
width: 100%;
height: auto;
border: 0.02rem solid #DDDDDD;
box-shadow: 0rem 0.04rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
}
.icon-cont {
width: 100%;
height: 2.3rem;
}
.desc {
padding: 0.3rem;
height: auto;
h4 {
height: 0.4rem;
font-size: @mt;
line-height: 0.4rem;
margin-bottom: 0.2rem;
}
p {
height: 0.32rem;
font-size: @st;
line-height: 0.32rem;
}
}
}
.s-content.g3,
.s-content.g4 {
ul {
text-align: center;
}
li {
width: 3.25rem;
margin-right: 0.3rem;
margin-top: 0.24rem;
}
li:nth-child(3n) {
margin-right: 0.3rem;
}
li:nth-child(2n) {
margin-right: 0;
}
.item {
width: 100%;
height: auto;
border: 0.02rem solid #DDDDDD;
box-shadow: 0rem 0.04rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
}
.desc {
text-align: left;
.i-title {
height: 0.4rem;
font-size: @mt;
margin-bottom: 0.1rem;
line-height: 0.4rem;
}
.i-desc {
height: 0.64rem;
font-size: @st;
line-height: 0.32rem;
color: #666666;
}
}
.icon-cont {
width: 100%;
height: 1.67rem;
}
.desc {
height: auto;
padding: 0.2rem;
}
// g4
.btn {
height: auto;
padding: 0.2rem;
}
.btn {
.b-text {
width: 2.6rem;
height: 0.52rem;
line-height: 0.52rem;
font-size: @st;
}
}
}
.s-content.g5 {
margin-top: 0.3rem;
.item {
width: 2rem;
img {
width: 0.52rem;
height: 0.52rem;
}
p {
font-size: @mt;
line-height: 0.4rem;
margin-top: 0.3rem;
}
}
}
}