// pc端: // 设计稿1440*900 所有尺寸基本按px来即可; // 正文 16px; // 移动端: // 设计稿宽800px,按逻辑尺寸的两倍制作。因此真实尺寸需要除2; // 如设计稿字体大小28px,则实真字体大小为28px/2=14px; // 或使用vw 字体大小:28/800*10 = 3.5vw // 正文 14px 或 3.5vw //pc端样式 .main { width: 100%; max-width: 1920px; margin: 0 auto; padding-top: 70px; .content{ width: 1500px; margin: 0 auto; .banner_box{ display: flex; justify-content: space-between; margin-bottom: 120px; .news_banner{ width: 100%; max-width: 1500px; position: relative; img{ width: 100%; height: 750px; object-fit: cover; } .news_content{ width: 100%; color: #231F20; padding: 120px 30px 40px; box-sizing: border-box; display: flex; justify-content: space-between; .cont1{ font-weight: bold; font-size: 60px; color: #231F20; margin-left: 100px; font-family: 'MyFont1'; } .cont2{ width: 640px; font-size: 20px; color: #231F20; margin-right: 110px; line-height: 40px; text-align: justify; } } } } .tabs_box{ width: 1300px; margin: 0 auto; font-weight: 400; font-size: 24px; display: flex; align-items: center; .tabs_li{ color: #231F20; margin-right: 80px; cursor: pointer; padding: 30px 0; transition: all .2s; border-bottom: 2px solid transparent; position: relative; &::after{ content: ""; width: 0; height: 2px; background: #B81C25; position: absolute; left: 0; bottom: -2px; right: 0; margin: auto; transition: all .4s ease; } &:hover{ color: #B81C25; &::after{ width: 100%; } } } .tabs_lis{ color: #B81C25; border-bottom: 2px solid #B81C25; } } } .news_ul{ width: 100%; max-width: 1920px; margin: 0 auto; background: #F6F6F6; .news_list{ width: 1300px; margin: 0 auto; .news_li{ display: flex; align-items: center; justify-content: space-between; padding: 40px 0; border-bottom:1px solid #DADADA; transition: all .2s; .li_left{ width: 65px; height: 66px; border-radius: 8px; border: 1px solid #A7A5A5; text-align: center; font-size: 12px; padding: 0px 12px 0; box-sizing: border-box; .timerData{ font-size: 26px; color: #b81c25; border-bottom: 1px solid #b81c25; padding-bottom: 3px; margin-bottom: 3px; line-height: 30px; padding-top: 4px; } } // .li_left{ // width: 66px; // height: 66px; // background: #F6F6F6; // border: 1px solid #A7A5A5; // display: flex; // align-items: center; // justify-content: center; // flex-direction: column; // margin-right: 30px; // transition: all .5s; // border-radius: 8px; // span:nth-child(1){ // font-family: Source Han Sans CN; // font-weight: 500; // font-size: 30px; // color: #B81C25; // } // span:nth-child(2){ // font-family: Source Han Sans CN; // font-weight: 500; // font-size: 13px; // color: #231F20; // position: relative; // &::after{ // content: ''; // position: absolute; // top: -1px; // left: -8%; // height: 1px; // width: 120%; // background-color: #B81C25; // } // } // a{ // cursor: pointer; // } // } .li_cont{ width: calc(100% - 80px); font-family: Source Han Sans CN; font-weight: 400; transition: all .2s; div:nth-child(1){ font-weight: 500; font-size: 20px; color: #231F20; line-height: 30px; margin-bottom: 10px; transition: all .2s; } div:nth-child(2){ font-weight: 500; font-size: 16px; color: #A7A5A5; line-height: 30px; display: -webkit-box; /* 使用 Flexbox 布局 */ -webkit-box-orient: vertical; /* 垂直方向排列 */ -webkit-line-clamp: 1; /* 限制显示的行数,这里是3行 */ overflow: hidden; /* 隐藏超出部分 */ text-align: justify; } } &:hover{ background: #EFEFEF; .li_cont{ div:nth-child(1){ color: #B81C25; } } } &:last-child{ border: none; } } } } .news_paging{ display: flex; align-items: center; justify-content: center; padding: 100px 0 120px; background: #F6F6F6; .previousPage{ width: 40px; height: 40px; color: #000000; display: flex; align-items: center; justify-content: center; border: 1px solid #000000; margin-right: 20px; cursor: pointer; transition: all 0.2s; span{ font-size: 26px; transform: rotate(-90deg); } &:hover{ background: #B81C25; border: 1px solid #B81C25; color: #fff; } } .nextPage{ width: 40px; height: 40px; color: #000000; display: flex; align-items: center; justify-content: center; border: 1px solid #000000; margin-left: 20px; cursor: pointer; transition: all 0.2s; span{ font-size: 26px; transform: rotate(90deg); } &:hover{ background: #B81C25; border: 1px solid #B81C25; color: #fff; } } .pageNum{ min-width: 40px; height: 40px; line-height: 40px; font-family: Source Han Sans CN; font-size: 18px; color: #000; transition: all 0.2s; padding: 0 5px; box-sizing: border-box; cursor: pointer; text-align: center; border: 1px solid #DDE2E6; border-radius: 2px; &:hover{ background: #B81C25; border: 1px solid #B81C25; color: #fff; } } .pageNums{ pointer-events: none; } .pageNum+.pageNum{ margin-left: 10px; } .pageNumActive{ color: #fff; background-color: #B81C25; border: 1px solid #B81C25; } .ellipsis{ font-family: Source Han Sans CN; font-weight: bold; font-size: 22px; padding: 10px 15px; color: #333333; // cursor: pointer; transition: all 0.2s; // &:hover{ // color:#48A038 // } } } .typeCon{ width: 100%; background: #F6F6F6; padding-bottom: 250px; display: none; .infoul{ width: 100%; max-width: 1300px; margin: 0 auto; .infoLi{ padding: 70px 0; border-bottom:1px solid #9FA3A5; width: 100%; .liTitle{ display: flex; width: 100%; justify-content: space-between; cursor: pointer; .liTit{ width: calc(100% - 220px); line-height: 84px; overflow: hidden; display: flex; flex-wrap: wrap; font-size: 40px; font-weight: bold; &>div{ width: 100%; } } .button{ width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background-color: #B2B5B7; border-radius: 50%; color: #fff; cursor: pointer; transition: all .2s; position: relative; transform: scale(1); &::before{ content: ''; width: 17px; height: 3px; background-color: #fff; z-index: 2; } &::after{ content: ''; width: 3px; height: 17px; background-color: #fff; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); } .btnjbg{ position: absolute; bottom: 0px; left: -1px; right: 0px; top: 0px; background-color: #B81C25; -webkit-clip-path: circle(0 at 50% 50%); clip-path: circle(0 at 50% 50%); transition: -webkit-clip-path .65s cubic-bezier(.19,1,.22,1); transition: clip-path .65s cubic-bezier(.19,1,.22,1); transition: clip-path .65s cubic-bezier(.19,1,.22,1), -webkit-clip-path .65s cubic-bezier(.19,1,.22,1); transition: clip-path .65s cubic-bezier(.19,1,.22,1), -webkit-clip-path .65s cubic-bezier(.19,1,.22,1); } } } .infoSonLi{ padding-top: 30px; width: 100%; height: 0px; box-sizing: border-box; overflow: hidden; border-bottom: 1px dashed #000000; margin-bottom: 95px; // transition: all 1s ease-in-out; &:last-child{ border-bottom: 0px; margin-bottom: 0px; } .h4{ margin-top: 80px; font-size: 28px; &:first-child{ margin-top: 0; color: #0056a7; } } .h5R{ margin-top: 40px; } .text{ color: #9fa3a5; } .btn2{ margin: 130px 0 140px; } } } .infoLiShow{ .liTitle{ .button{ // background-color: #0054A7; &::before{ content: ''; width: 17px; height: 3px; background-color: #fff; } &::after{ display: none; } .btnjbg{ -webkit-clip-path: circle(50% at 50% 50%); clip-path: circle(50% at 50% 50%); } } } // @-webkit-keyframes textDown{ // 0%{height: 0%;} // 100%{height: 100%;} // } // @keyframes textDown{ // 0%{height: 0%;} // 100%{height: 100%;} // } // .infoSonLi{ // display: block; // animation: textDown 1s ease-in-out 0 forwards; // } } } } } a{ display: inline-block; } @media screen and (min-width: 801px) and (max-width: 1400px) { .main{ .content{ width: calc(100% - 60px); .tabs_box{ width: 100%; } .banner_box{ .news_banner{ .news_content{ .cont1{ margin-left: 0; } .cont2{ width: 600px; margin-right: 0; } } } } } .news_ul{ width: 100%; .news_list{ width: calc(100% - 60px); .news_li{ .li_left{ width: 12.25vw; height: 12.25vw; font-size: 2.5vw; .timerData{ font-size:3.5vw ; padding: 1vw 0 2.8vw 0; } // width: 10vw; // height: 10vw; } .li_cont{ width: 83%; } } } } .typeCon{ .infoul{ .infoLi{ width: 95%; margin: 0 auto; } } } } } @media screen and (min-width: 1400px) and (max-width: 1600px){ .main{ .content{ width: calc(100% - 60px); .tabs_box{ width: 100%; } } .news_ul{ width: 100%; .news_list{ width: calc(100% - 60px); } } .typeCon{ .infoul{ .infoLi{ width: 95%; margin: 0 auto; } } } } } //移动端样式 @media screen and (max-width:800px) { .main { width: 100%; padding-top: 15vw; .content{ width: 92vw; margin: 0 auto; .banner_box{ display: block; margin-bottom: 15vw; .news_banner{ width: 100%; height: auto; margin-bottom: 8vw; img{ width: 100%; height: 62.75vw; border-radius: 1.625vw; object-fit: cover; } .news_content{ padding: 3.75vw; padding-top: 60px; flex-direction: column; .cont1{ font-size: 32px; margin: 0; margin-bottom: 10.625vw; width: 100%; text-align: center; font-family: 'MyFont1'; } .cont2{ width: 100%; line-height: 7.5vw; // font-family: Source Han Sans CN; font-size: 16px; text-align: justify; // color: #fff; // margin-top: 2.5vw; } // .cont3{ // font-family: Source Han Sans CN; // font-size: 3.25vw; // color: #fff; // } } } } .tabs_box{ width: 100%; font-size: 3.75vw; .tabs_li{ margin-right: 4.9vw; padding-bottom: 5.625vw; } } } .news_ul{ width: 100%; .news_list{ margin-top: 0; width: 100%; box-sizing: border-box; padding: 0 3.75vw; .news_li{ padding:5.625vw 0; .li_left{ width: 16.25vw; height: 16.25vw; font-size: 3vw; .timerData{ font-size:4.5vw ; padding: 2.6vw 0 2.8vw 0; } // width: 10vw; // height: 10vw; } .li_cont{ width: 71.5vw; div:nth-child(1){ font-family: Source Han Sans CN; font-size: 3.75vw; color: #282828; line-height: 7.5vw; display: -webkit-box; /* 使用 Flexbox 布局 */ -webkit-box-orient: vertical; /* 垂直方向排列 */ -webkit-line-clamp: 1; /* 限制显示的行数,这里是3行 */ overflow: hidden; font-weight: bold; } div:nth-child(2){ width: auto; height: auto; overflow: unset; line-height: 1.5; font-family: Source Han Sans CN; font-size: 3.25vw; color: #A7A5A5; padding: 0; display: -webkit-box; /* 使用 Flexbox 布局 */ -webkit-box-orient: vertical; /* 垂直方向排列 */ -webkit-line-clamp: 2; /* 限制显示的行数,这里是3行 */ overflow: hidden; text-align: justify; } } } } } .news_paging{ padding-top: 16vw; .previousPage{ width: 40px; height: 40px; margin-right: 20px; box-sizing: border-box; } .nextPage{ width: 40px; height: 40px; margin-left: 3.25vw; transition: all 0.2s; box-sizing: border-box; } .pageNum{ font-size: 3.5vw; } .ellipsis{ font-size: 3.5vw; padding: 1.875vw 2.5vw; // &:hover{ // color:#48A038 // } } } .typeCon{ padding: 0px 4vw 150px; box-sizing: border-box; .infoul{ .infoLi{ padding: 40px 0; .liTitle{ align-items: center; .liTit{ height: auto; line-height: 40px; width: calc(100% - 60px); overflow: initial; font-size: 24px; } .button{ width: 40px; height: 40px; left: 0px; .btnjbg{ left: 0px; } &::before{ content: ''; width: 8px; height: 2px; } &::after{ content: ''; width: 2px; height: 8px; } } } .infoSonLi{ margin-bottom: 75px; padding-top: 0px; transition: padding 0.5s ease-in-out; .text{ margin-bottom: 0px; } } } .infoLiShow{ .infoSonLi{ padding-top: 30px; } .liTitle .btn .btnjbg{ -webkit-clip-path: circle(19px at 20px 20px); clip-path: circle(19px at 20px 20px); } } } } } }