www.lightcourse.com/public/static/home/new/css/program.css

304 lines
5.5 KiB
CSS

.dot {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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);
}
.btn {
padding: 0.3rem 0.9rem;
background-color: #3b52f6;
color: #fff;
border-radius: 2rem;
font-size: 0.9rem;
}
.btn.s1 {
background-color: transparent;
border: 1px solid #3b52f6;
color: #3b52f6;
}
.a-hover:hover {
color: #3b52f6;
}
.program .main-1 {
padding-top: 0;
}
.program .main-1 .container .link {
display: block;
margin: 3rem 0;
}
.program .main-1 .container .link .con {
display: flex;
justify-content: space-between;
}
.program .main-1 .container .link .img {
width: 23rem;
height: 13.7rem;
flex-shrink: 0;
background-color: #ccc;
}
.program .main-1 .container .link .img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.program .main-1 .container .link .text {
flex: 1;
margin-left: 1.3rem;
}
.program .main-1 .container .link .text h3 {
font-size: 1.3rem;
line-height: 2;
}
.program .main-1 .container .link .text h3 span {
font: inherit;
font-weight: normal;
}
.program .main-1 .container .link .text .field {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 0.9rem;
}
.program .main-1 .container .link .text .field > div {
width: 48%;
line-height: 3;
font-size: 0.9rem;
display: flex;
align-items: center;
}
.program .main-1 .container .link .link-btn {
margin-top: 0.9rem;
display: flex;
align-items: center;
justify-content: flex-end;
}
.program .main-1 .container .link .link-btn a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 8rem;
height: 2rem;
border: 1px solid #ebebeb;
border-radius: 0.4rem;
color: #999;
margin-left: 0.9rem;
}
.program .main-1 .container .link .link-btn a.b {
background-color: #3b52f6;
color: #fff;
}
.program-top{
width: 100%;
height: 37.5rem;
background-color: #284dfd;
position: relative;
color: #ffffff;
}
.program-top .main-center{
max-width: 89.9%;
text-align: right;
}
.program-top>img{
position: absolute;
left: 0;
top: 0;
width: 51rem;
z-index: 9;
}
.program-top h2{
font-size: 2.25rem;
padding-top: 3.5rem;
}
.program-top span{
font-family: "HarmonyOS_Sans_Regular" !important;
display: block;
font-size: 0.85rem;
line-height: 1.9;
margin-top: 1rem;
}
.program-top .program-btn{
display: inline-block;
margin-top: 2.3rem;
border-top: 0.1rem solid #fff;
transition: all .6s;
}
.program-top .program-btn a{
font-size: 1.1rem;
line-height: 2;
color: #fff;
transition: all .6s;
}
.program-top .program-btn a em{
font-family: "HarmonyOS_Sans_Regular" !important;
display: inline-block;
margin-left: 0.8rem;
transform: scaleX(1.85) rotate(90deg);
}
.program-top .program-btn:hover{
border-top: 0.1rem solid #00db6d;
}
.program-top .program-btn:hover a{
color: #00db6d;
}
.program-top .program-btn:hover a>em{
transform: scaleX(1.85) rotate(-90deg);
}
.program .main-center{
max-width: 89.9%;
}
.program{
margin-top: -14rem;
position: relative;
z-index: 1;
}
.program>img{
position: absolute;
bottom: 6.98rem;
right: 0;
width: 18rem;
z-index: 9;
}
.program .swiper-container{
height: 30rem;
}
.program .swiper-slide{
width: 100%;
height: 30rem;
position: relative;
}
.program .swiper-slide img{
width: 100%;
min-height: 100%;
transition: all .6s;
}
.program .swiper-slide ins{
display: block;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0);
position: absolute;
left: 0;
top: 0;
z-index: 1;
transition: all .6s;
}
.program .swiper-slide:hover ins{
background-color: rgba(0,0,0,.6);
}
.program .swiper-slide>em{
display: block;
position: absolute;
top: 1.8rem;
right: 2.1rem;
font-size: 3.5rem;
color: #ffffff;
z-index: 2;
}
.program .program-txt{
position: absolute;
left: 4.5rem;
bottom: 4rem;
max-width: 26.5rem;
z-index: 2;
}
.program .program-txt>span{
display: block;
font-size: 1.3rem;
color: #00db6d;
margin-bottom: 1.4rem;
}
.program .program-txt>em{
display: block;
font-size: 1.9rem;
color: #ffffff;
line-height: 1.25;
}
.program .pagination{
margin: 0;
}
.program .swiper-container-horizontal>.swiper-pagination-bullets{
bottom: 1.1rem !important;
}
.program .swiper-pagination .swiper-pagination-bullet{
width: 0.65rem;
height: 0.65rem;
border-radius: 0.325rem;
background-color: rgba(204, 202, 202, .3);
margin: 0 .45rem;
opacity: 1;
}
.program .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
width: 3.75rem;
background-color: rgba(204, 202, 202, 1);
}
@media screen and (max-width: 820px) {
.program .main-1 .container .link .img {
width: 18rem;
height: 12rem;
}
}
@media screen and (max-width: 768px) {
.program .main-1 .container .link .con {
flex-direction: column;
}
.program .main-1 .container .link .con .img {
width: 100%;
height: 10rem;
margin-bottom: 0.9rem;
}
.program .main-1 .container .link .con .text {
margin-left: 0;
}
.program .main-1 .container .link .con .text h3 {
/*overflow: hidden;*/
/*text-overflow: ellipsis;*/
/*white-space: nowrap;*/
}
.program .main-1 .container .link .con .text .field > div {
width: auto;
}
}