@c1: #3b52f6; .item-wrap(@num,@between,@mb) { display: flex; flex-wrap: wrap; .item { width: calc((100% - (@num - 1) * @between) / @num); margin-right: @between; margin-bottom: @mb; &:nth-of-type(@{num}n) { margin-right: 0; } } } .dot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dots(@num) { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: @num; //行数 -webkit-box-orient: vertical; } .setBetween { display: flex; justify-content: space-between; } .setRowCenter { display: flex; align-items: center; } .setColumnCenter { display: flex; align-items: center; } .setCenter { display: flex; flex-direction: column; align-items: center; justify-content: center; } .ra { border-radius: 0.2rem; overflow: hidden; } .bs { box-shadow: 0 0 0.5rem #ebebeb; } .box-shadow { box-shadow: 0rem 0.3rem 0.5rem 0rem rgba(36, 65, 116, 0.1); } .tit-line(@fs,@pb,@mb,@width,@height,@color) { font-size: @fs; padding-bottom: @pb; margin-bottom: @mb; position: relative; &::after { content: ""; position: absolute; bottom: 0; left: 0; width: @width; border-bottom: @height solid @color; } } .tit-line-center(@fs,@pb,@mb,@width,@height,@color) { font-size: @fs; padding-bottom: @pb; margin-bottom: @mb; position: relative; &::after { content: ""; position: absolute; bottom: 0; left: 50%; width: @width; border-bottom: @height solid @color; transform: translateX(-50%); } } .btn { padding: 0.3rem 1rem; background-color: @c1; color: #fff !important; border-radius: 2rem; font-size: 0.7rem; display: inline-block; width: auto; &.s1 { background-color: transparent; border: 1px solid @c1; color: @c1 !important; } } .a-hover { &:hover { color: @c1; } } .fb { font-family: "puhuiti-2-115"; } .contact-banner { padding: 3rem 0; h1 { .fb; font-size: 2.3rem; } h5{ font-size: 1.3rem; .fb; margin-top: 4rem; } } .contact-container { section:not(:first-of-type){ padding-top: 0; } .container { .item { margin-bottom: 3rem; &:last-of-type{ margin-bottom: 0; } h6 { .fb; font-size: 1.5rem; position: relative; &::before { content: ""; position: absolute; top: 50%; right: calc(100% + .5rem); width: 1.1rem; height: 1.1rem; background-color: @c1; transform: translateY(-50%); } } strong{ font-weight: bold; } .text { width: fit-content; box-shadow: 0rem 0.15rem 0.8rem 0rem rgba(32, 30, 29, 0.35); border-radius: 0.25rem; padding: 1rem; margin: 1rem 0; position: relative; padding-right: 8rem; img{ position: absolute; } } &.item1{ .text{ img{ bottom: -12%; left: 45%; } } } &.item2{ .text{ img{ bottom: -12%; left: 83%; } } } &.item3{ .text{ img{ bottom: -110%; left: 90%; } } } .mail { text-align: center; padding-top: 2rem; a { display: inline-block; font-size: .9rem; font-weight: bold; color: @c1; padding: .6rem; padding-bottom: .8rem; padding-left: 4rem; padding-right: 1rem; background-image: url("../images/jx2.png"); background-repeat: no-repeat; background-size: 100% 100%; } } } } } @media screen and (max-width:1024px){ .contact-container .container .item.item2 .text img{ max-width: 13rem; } .contact-container .container .item.item3 .text img{ max-width: 18rem; } } @media screen and (max-width:768px){ .main-center{ padding-left: 2%; padding-right: 2%; } .contact-container .container .item .text img, .contact-container .container .item h6::before{ display: none; } .contact-container .container .item .mail a{ font-size: 1.1em; } .contact-container .container .item .text{ width: 100%; padding: 1rem !important; } }