@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; } } .page-banner { position: relative; img { width: 100%; } .text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; .setCenter; * { color: #fff; } h2 { font-size: 1.8rem; line-height: 2; } p { font-size: 1rem; font-weight: 100; } } } .course { .main-1 { padding-bottom: 1rem; padding-top: 0; .container { .link { display: block; padding: 2rem 0; border-bottom: 1px solid @c1; &:hover { h6 { color: @c1; } } &:last-of-type { border-bottom: none; } & > h6 { font-size: 1rem; margin-bottom: 0.2rem; } & > p { color: #999; margin-bottom: 1rem; } .label { .setBetween; align-items: center; span { &:first-of-type { min-width: 13rem; } &.b { padding: 0.2rem 0.5rem; border: 1px solid @c1; border-radius: 0.2rem; color: @c1; text-transform: capitalize; } &.c { background-color: @c1; color: #fff !important; } } } } } } } .fb { font-family: "puhuiti-2-115"; } h4{ font-family: "puhuiti-2-115"; line-height: 2; } .main-title{ margin-bottom: 2rem; *{ text-align: left; } h2{ margin-bottom: 0; line-height: 1.4 !important; } p{ color: #000; max-width: 100%; margin-top: 0 !important; } } .addcart-ico{ position: fixed; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #fff; background-color: #ff204f; border-radius: 50%; width: 1rem; height: 1rem; opacity: 0; z-index: 99; &.move-ico{ animation: move-ico 1s ease-out ; } } @keyframes move-ico { 0%{ opacity: 1; } 99%{ opacity: 1; } 100%{ opacity: 0; } } .course-details { .f-btn { .setCenter; width: 13rem; height: 3rem; border: 1px solid @c1; border-radius: 0.2rem; color: #fff; background-color: @c1; padding: .3rem 1rem; } .main-1 { &>div{ padding-bottom: 2rem; border-bottom: 1px solid #ebebeb; } .container { .setBetween; margin-bottom: 2rem; & > .left { width: 50%; h1{ word-break: break-word; } h4 { margin-top: 1rem; margin-bottom: 0.5rem; } h3 { margin-bottom: 0.5rem; } p { line-height: 3.5; padding-left: 1rem; position: relative; &::before { content: ""; position: absolute; top: 50%; left: 0; width: 0.3rem; height: 0.3rem; border-radius: 50%; background-color: #000; transform: translateY(-50%); } em { display: inline-block; // width: 4rem; text-align-last: justify; text-align: justify; font-weight: bold; } span { color: #666; margin-left: 0.5rem; } } & > div:last-of-type { margin-top: 2rem; } } & > .right { width: 28.5rem; padding: 2.5rem; box-shadow: 0 0 0.3rem #ebebeb; position: relative; &::before { content: ""; position: absolute; bottom: 100%; left: 0; width: 100%; height: 3rem; background-color: @c1; } .info { .t { display: flex; flex-wrap: wrap; justify-content: flex-start; flex-direction: column; height: 14rem; .item { flex: 1; margin-bottom: 1rem; strong { font-size: 2rem; color: @c1; min-height: 2.5rem; display: inline-block; em { font-size: 1.2rem; font-weight: bold; } span { font-size: 1rem; font-weight: bold; } } p { color: #999; &.clk { cursor: pointer; &:hover { color: @c1; } } } } } } .time { .iconf { font-size: 1rem; } .collect-btn { color: @c1; margin-right: 0.5rem; } & > p, label { color: #999; } th, tr { text-align: center; } .link { width: auto !important; } select { width: 100%; border-bottom: 1px solid @c1; font-size: 1rem; color: @c1; padding: 0.5rem 0; margin-bottom: 2rem; } .btn-wrap { display: flex; justify-content: flex-end; align-items: center; .btn { text-align: center; margin: 0 0.2rem; line-height: initial; .icon { font-size: 1rem; } } } } } .right-2 { .setCenter; .s-logo { width: 25rem; height: 9rem; background-color: #ccc; } } } } .main-2 { padding-top: 0; * { line-height: 2; } .container { } .f-btn1 { border-bottom: 1px solid @c1; } .f-btn2 { padding: 0.5rem 1rem; background-color: @c1; color: #fff !important; border-radius: 0.4rem; box-shadow: 0 0.3rem 0.5rem rgba(54, 81, 214, 0.4); } .content1 { .des { display: flex; justify-content: space-between; align-items: flex-end; * { line-height: 2; } h6 { font-size: 0.9rem; } .d-left { width: 50%; & > div { margin-bottom: 2rem; } h4{ font-family: "puhuiti-2-115", } } .d-right { width: 32%; } .table { width: 100%; padding: 1rem; border: 1px solid #ebebeb; } table { width: 100%; .tbh { background-color: @c1; color: #fff; } th { line-height: 1.6; padding: 0.5rem 0; } tbody { display: none; &:first-of-type { display: contents; } } } th, td { height: 2rem; line-height: 2rem; border-color: @c1; flex: 1; text-align: center; } tbody { td { padding: 0.3rem 0; &, * { color: #666; } } } td:nth-of-type(2) { cursor: pointer; } th { font-size: 1.2em; } } & > .f-btn-all { display: block; width: 100%; height: 2rem; line-height: 2rem; text-align: center; border-radius: 0.2rem; background-color: #e2e2e2; } .txt { & > div { display: flex; margin-bottom: 1rem; &.col-3 { width: 33.33%; } } strong { font-size: 1rem; margin-right: 2rem; flex-shrink: 0; font-weight: 500; line-height: 1.8; } p { flex: 1; line-height: 1.8; } } .f-btn-con { display: flex; justify-content: flex-end; margin-top: 2rem; .f-btn { width: auto; height: auto; margin: 0 1rem; border: none; } } &.fees-content { .des { display: block; } th { background-color: @c1; color: #fff; } tbody { tr { &:nth-of-type(even) { background-color: #e6ebfe; } } } .fees-all { display: flex; justify-content: flex-end; border-top: 1px solid #ebebeb; padding-top: 1rem; margin-top: 1rem; strong { font-size: 1.2rem; font-weight: bold; margin-left: 1rem; } } } &.apply-content { .txt { strong { font-size: 0.9rem; font-weight: bold; padding-left: 1rem; position: relative; &::before { content: ""; position: absolute; top: 0.45rem; left: 0; width: 0.4rem; height: 0.4rem; border-radius: 50%; background-color: #333; } } p { color: #999; } } } &.contact-content { .txt { flex-wrap: wrap; position: relative; .col-6 { width: 50%; } .col-12 { width: 100%; } img { position: absolute; top: 0; right: 0; } } } } .content2 { .con { display: flex; justify-content: space-between; .left { h5 { font-size: 1.4rem; margin-bottom: 1rem; margin-top: 2rem; &:first-of-type { margin-top: 0; } } p { line-height: 1.8; margin-bottom: 0.5rem; } a { display: inline-block; color: @c1; margin-bottom: 1rem; i { margin-left: 1rem; } } .f-btn { display: flex; } } } } .content3 { .img-title { background-origin: border-box; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 10rem; .fb; text-transform: uppercase; text-align: center; line-height: 1.2; } .con { .des { margin-top: 2rem; p{ margin-bottom: 1rem; } } .swiper-slide { img { width: 100%; } } } .swiper-container { margin: 0; .swiper-slide { } } .des { &, * { line-height: 1.8; } } } .content4 { .con { .setBetween; align-items: center; & > div { width: 49%; } } .text { &, * { line-height: 2; color: #666; } p { margin-bottom: 2rem; } } .img { p { text-align: center; font-size: 1rem; color: #999; } } .more { text-align: center; margin-top: 2rem; a { font-size: 1rem; color: @c1; text-decoration: underline; } } } .con1, .con2 { margin-bottom: 2rem; h4 { font-size: 2rem; .fb; } strong { font-weight: bold; } p { margin-top: 1rem; } em { font-weight: bold; .fb; font-size: 1rem; } .f-img { img { float: right; max-width: 21rem; } } .item-list1 { display: flex; justify-content: space-between; h6 { text-align: center; line-height: 1.4; min-height: 3.2rem; margin-bottom: 1rem; } .item { width: 30%; position: relative; border: 1px solid #000; margin-top: 1rem; padding: 1rem; &::after { content: attr(num); position: absolute; bottom: 0; right: 1rem; font-size: 1.4rem; color: @c1; .fb; } } } .item-list2 { .item { position: relative; margin-top: 2rem; box-shadow: 0rem 0.15rem 0.8rem 0rem rgba(32, 30, 29, 0.35); padding: 1rem; border-radius: 0.2rem; overflow: hidden; &::before { content: ""; position: absolute; right: calc(100% + 1rem); top: 0; width: 1rem; height: 1rem; background-color: @c1; } } } } } .main-QA { padding-bottom: 2rem; .container { box-shadow: none; padding: 0; } } .rec-container { padding-bottom: 2rem; .container { padding: 0; } } .main-FAQ { padding: 0; padding-bottom: 2rem; .t { margin-bottom: 2rem; h2 { margin-bottom: 0; } } .container { p { line-height: 1.8; font-size: 0.7rem; margin-bottom: 1rem; &:last-of-type { margin-bottom: 0; } } } } } @media screen and (max-width:1024px){ .course-details .main-2 .content1.contact-content .txt img{ max-width: 16rem; } } @media screen and (max-width: 768px) { .course { .main-1 { .container { .link { .label { flex-wrap: wrap; span { &:nth-of-type(1) { width: 80%; } &:nth-of-type(2) { margin-bottom: 1rem; } } } .link { & > p { margin-bottom: 0.5rem; } } } } } } .course-details { h2 { font-size: 1.4rem; margin-bottom: 1rem; } .main-1 { .container { display: flex; flex-direction: column; & > div { max-width: 100% !important; width: 100% !important; flex: none !important; } & > .right { margin-top: 4rem; } & > .left { &>div:last-of-type{ margin-top: 0; } h3 { font-size: 1.4rem; } p { line-height: 2.8; } } .right-2{ margin-top: 1rem; } } } .main-2 { .content1 { .des { flex-direction: column-reverse; & > div { width: 100% !important; } .d-right { margin-bottom: 1rem; } .table { overflow-x: scroll; } table { min-width: 40rem; } } .txt { strong { margin-right: 0.5rem; } .col-6 { width: 100% !important; } & > div { flex-wrap: wrap; } p { flex: none; width: auto; max-width: 100%; } } } .content3 { .con { .des { margin-top: 1rem; } } } .content4 { .con { flex-direction: column; & > div { width: 100% !important; } } } } } .course-details .main-2 .content3 .img-title{ font-size: 3rem; } .course-details .main-2 .con1 .f-img img, .course-details .main-2 .con2 .f-img img { display: none; } .course-details .main-2 .con1 .item-list1 { overflow-x: scroll; } .course-details .main-2 .con1 .item-list1 .item, .course-details .main-2 .con2 .item-list1 .item { flex-shrink: 0; width: 15rem; margin-right: 1rem; } .course-details .main-2 .content1 .f-btn-con .f-btn{ margin: 0; } .course-details .main-2 .content1.contact-content .txt img{ width: 6rem; } .course-details .main-2 .content1 .des .d-right{ img{ display: block; width: 50%; margin: 0 auto; } } }