html { height: 100%; width: 100%; padding: 0; margin: 0; } * { box-sizing: border-box; -webkit-overflow-scrolling: touch; } body { height: 100%; width: 100%; padding: 0; margin: 0; } #app { height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0; margin: 0; position: relative; min-width: 1460px; } .mask { width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); position: fixed; top: 0; left: 0; z-index: 999; display: flex; align-items: center; justify-content: center; } .close-btn { position: absolute; right: 0; top: 0px; z-index: 9999; color: #4c4a4a; font-size: 18px; cursor: pointer; width: 20px; height: 20px; background: #faf0ef; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .video-box { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .video-box video { width: 100%; } .headimg { width: 100%; z-index: 9; pointer-events: none; } .subtitle { font-weight: bold; font-size: 16px; color: #000000; line-height: 40px; width: 100%; cursor: pointer; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; /* 控制显示的行数 */ overflow: hidden; text-overflow: ellipsis; &:hover { color: #e50a17; } } .title-box { display: flex; align-items: center; font-weight: bold; font-size: 24px; color: #e50a17; line-height: 30px; margin-bottom: 20px; padding-left: 30px; } .bottom { display: flex; align-items: center; justify-content: center; margin-top: 40px; } .bottom-text { display: flex; flex-direction: column; align-items: center; font-size: 14px; color: #333333; line-height: 30px; margin-left: 10px; } .main { width: 100%; background: ; background-size: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 0 50px 0; z-index: 2; margin-top: -210px; } ::-webkit-scrollbar { width: 0; /* 滚动条宽度 */ display: none; } .box { width: 1150px; background-size: cover; padding: 80px 0 20px 0; background: linear-gradient(to bottom, rgba(250, 250, 250, 0.5), rgba(250, 250, 250, 1)); } .swiper { /* height: 800px; */ margin: 0 30px; } .swipervideo{ width: 100%; margin: 0 30px; } .swiper-slide { width: 100%; height: 100%; display: flex; justify-content: space-between; padding-bottom: 40px; } .slide-item-vedio { width: 510px; height: 343px; background: no-repeat; background-size: 100%; padding: 20px; position: relative; } .play { width: 64px; position: absolute; top: 35%; left: 45%; cursor: pointer; } .grid { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px; padding: 30px; } .right-box { margin-left: 20px; } .grid-item { display: flex; padding: 10px; background: linear-gradient(to right, #faf0ef, #fd8c69); align-items: center; justify-content: center; } .grid-title { font-weight: bold; font-size: 16px; color: #000000; line-height: 20px; margin-bottom: 10px; cursor: pointer; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; /* 控制显示的行数 */ overflow: hidden; text-overflow: ellipsis; &:hover { color: #e50a17; } } .grid-introduce { font-weight: 400; font-size: 14px; color: #666666; line-height: 18px; cursor: pointer; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; /* 控制显示的行数 */ overflow: hidden; text-overflow: ellipsis; &:hover { color: #e50a17; } } .style-text { font-weight: 400; font-size: 14px; color: #666666; line-height: 18px; margin-bottom: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; /* 控制显示的行数 */ overflow: hidden; text-overflow: ellipsis; cursor: pointer; &:hover { color: #e50a17; } } .slide-item { width: 345px; min-height: 645px; background: no-repeat; background-size: cover; background-position: bottom; display: flex; flex-direction: column; align-items: center; padding: 20px 10px 30px 10px; position: relative; } .video-title{ cursor: pointer; &:hover { opacity: 0.7; } } img { cursor: pointer; } .text { font-size: 18px; color: #000000; line-height: 24px; margin-bottom: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; /* 控制显示的行数 */ overflow: hidden; text-overflow: ellipsis; /* 超出部分用省略号表示 */ cursor: pointer; &:hover { color: #e50a17; } } .slide-item-head { width: 120px; height: 44px; background: #ffffff; border-radius: 22px; font-weight: bold; font-size: 24px; color: #e50a17; line-height: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; cursor: pointer; } .swiper-scrollbar { display: none; } .swiper-button-prev { width: 32px; height: 32px; border-radius: 50%; background: no-repeat; background-size: cover; } .swiper-button-next { width: 32px; height: 32px; border-radius: 50%; background: no-repeat; background-size: cover; } .swiper-button-next:after, .swiper-button-prev:after { opacity: 0; font-family: swiper-icons; font-size: var(--swiper-navigation-size); text-transform: none !important; letter-spacing: 0; font-variant: initial; line-height: 1; } .swiper-pagination-bullet-active { opacity: 1; background: #fd8c69; } /* .swiper-pagination-bullet { width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px)); height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px)); display: inline-block; border-radius: var(--swiper-pagination-bullet-border-radius, 50%); background: #f0cabd; opacity: 1; } */