@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; justify-content: 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; border-radius: 2rem; font-size: 0.7rem; &.s1 { background-color: transparent; border: 1px solid @c1; color: @c1; } } .a-hover { &:hover { color: @c1; } } .coo { h2 { margin-bottom: 2rem; span { font: inherit; font-weight: 100; } } p { &.p { position: relative; padding-left: 1rem; &::after { content: ""; position: absolute; top: 50%; left: 0; width: 0.3rem; height: 0.3rem; border-radius: 50%; background-color: @c1; transform: translateY(-50%); } } } .main-1 { padding-top: 0; .container { div { margin-bottom: 1rem; } } } .main-2 { padding-top: 0; .t { margin-bottom: 3rem; * { text-align: left; } p { margin-top: 2rem; line-height: 2; color: #999; } } h2 { text-align: center; margin-bottom: 0.5rem; span { font: inherit; font-weight: 100; } } h3 { max-width: 60rem; margin: 0.5rem auto; text-align: center; font-size: 0.8rem; font-weight: normal; } .container { .swiper-slide { border-radius: 1rem; position: relative; border-radius: 3rem; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; } .text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 1rem; padding-top: 5rem; background-color: rgba(0, 0, 0, 0.5); * { color: #fff; text-align: center; } h6 { font-size: 1rem; margin-bottom: 2rem; } p { font-weight: 100; line-height: 1.6; } } } } } .main-3 { padding-top: 0; .container { position: relative; .t { position: absolute; top: 0; right: 0; max-width: 16.5rem; } & > .img { height: 15rem; margin-bottom: 3rem; background-color: #ccc; } h4 { font-size: 1.3rem; margin-bottom: 2rem; } p { line-height: 1.8; font-size: 1rem; margin-bottom: 2rem; word-break: break-word; &.p { margin-bottom: 0; } } h5 { font-size: 1.1rem; color: #343434; padding-top: 1rem; padding-bottom: 1rem; } h6 { font-size: 1.2rem; font-weight: 100; margin-bottom: 2rem; } & > div { & > p { font-weight: bold; color: @c1; } } .con { margin-top: 3rem; .item { margin-bottom: 3rem; &:last-of-type { margin-bottom: 0; } h4 { margin-right: 3rem; margin-bottom: 1rem; } } } } } .main-4 { padding-top: 0; .container { .shadow { display: flex; justify-content: space-between; padding: 1rem; margin: 1rem 0; box-shadow: 0rem 0.15rem 0.8rem 0rem rgba(32, 30, 29, 0.35); &.block { display: block; } .left { i { display: block; width: 1.4rem; height: 1.4rem; margin-bottom: 1rem; background-color: @c1; } } .right { margin-left: 4rem; } } ul { li { margin-bottom: 1rem; position: relative; &::before { content: ""; position: absolute; top: 0; right: calc(100% + 1rem); width: 1.4rem; height: 1.4rem; background-color: @c1; } } } ol { li { position: relative; &::before { content: "•"; position: absolute; top: 0; right: calc(100% + 1rem); line-height: 1.4; color: @c1; font-size: 1.2rem; } } } p { a { text-decoration: underline; color: @c1; } } .setBetween { .left { margin-right: 2rem; flex-shrink: 0; } } .img1 { position: relative; display: inline-block !important; img { position: absolute; top: 0; left: 100%; } } .img2 { position: relative; z-index: 1; margin-bottom: 4rem; ul { max-width: 70%; position: relative; z-index: 1; li { background-color: #fff; padding-right: 3rem; } } i { position: absolute; bottom: -2rem; right: 0; display: block; width: 20.65rem; height: 14.95rem; border: 1px solid @c1; z-index: -1; } img { position: absolute; bottom: -2rem; right: 0; z-index: 2; } } } } } @media screen and (max-width:1024px){ .coo .main-4 .container .img1 img{ max-width: 20rem; } .coo .main-4 .container .img2 img{ max-width: 17rem; } } @media screen and (max-width: 768px) { .coo { margin-top: 2rem; .main-3 { .container { & > img { display: none; } } } .main-4 { h2 { font-size: 1.4rem; } .title { & > img { display: none; } div { p { font-size: 1.4rem; } } } .container{ .item{ margin-bottom: 2rem; } .img1,.img2{ ul{ max-width: 100%; li{ padding-right: 1rem; } } img,i{ display: none; } } .img2{ margin-bottom: 4rem; } .img3{ display: none !important; } .img3-wrap{ flex-direction: column; } .shadow{ flex-direction: column; .right{ margin-left: 0; } } h5{ br{ display: none; } } } } } }