You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.less 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. // pc端:
  2. // 设计稿1440*900 所有尺寸基本按px来即可;
  3. // 正文 16px;
  4. // 移动端:
  5. // 设计稿宽800px,按逻辑尺寸的两倍制作。因此真实尺寸需要除2;
  6. // 如设计稿字体大小28px,则实真字体大小为28px/2=14px;
  7. // 或使用vw 字体大小:28/800*10 = 3.5vw
  8. // 正文 14px 或 3.5vw
  9. //pc端样式
  10. .main {
  11. width: 100%;
  12. max-width: 1920px;
  13. margin: 0 auto;
  14. padding-top: 70px;
  15. .con{
  16. width: 100%;
  17. margin: 0 auto;
  18. position: relative;
  19. text-align: center;
  20. img{
  21. width: 100%;
  22. display: block;
  23. }
  24. .conDiv{
  25. position: absolute;
  26. top: 0px;
  27. left: 50%;
  28. width: 100%;
  29. height: 100%;
  30. box-sizing: border-box;
  31. max-width: 1300px;
  32. transform: translateX(-50%);
  33. padding-top: 140px;
  34. color: #fff;
  35. .title{
  36. margin-bottom: 30px;
  37. }
  38. }
  39. }
  40. .news_ul{
  41. width: 100%;
  42. max-width: 1920px;
  43. margin: 0 auto;
  44. margin-top: 70px;
  45. .news_list{
  46. width: 1300px;
  47. margin: 0 auto;
  48. .news_li{
  49. display: flex;
  50. align-items: center;
  51. justify-content: space-between;
  52. padding: 40px 8px;
  53. border-bottom:1px solid #DADADA;
  54. transition: all .2s;
  55. box-sizing: border-box;
  56. .li_left{
  57. width: 65px;
  58. height: 66px;
  59. border-radius: 8px;
  60. border: 1px solid #A7A5A5;
  61. text-align: center;
  62. font-size: 12px;
  63. padding: 0px 12px 0;
  64. box-sizing: border-box;
  65. .timerData{
  66. font-size: 26px;
  67. color: #b81c25;
  68. border-bottom: 1px solid #b81c25;
  69. padding-bottom: 3px;
  70. margin-bottom: 3px;
  71. line-height: 30px;
  72. padding-top: 4px;
  73. }
  74. }
  75. // .li_left{
  76. // width: 66px;
  77. // height: 66px;
  78. // background: #F6F6F6;
  79. // border: 1px solid #A7A5A5;
  80. // display: flex;
  81. // align-items: center;
  82. // justify-content: center;
  83. // flex-direction: column;
  84. // margin-right: 30px;
  85. // transition: all .5s;
  86. // border-radius: 8px;
  87. // span:nth-child(1){
  88. // font-family: Source Han Sans CN;
  89. // font-weight: 500;
  90. // font-size: 30px;
  91. // color: #B81C25;
  92. // }
  93. // span:nth-child(2){
  94. // font-family: Source Han Sans CN;
  95. // font-weight: 500;
  96. // font-size: 13px;
  97. // color: #231F20;
  98. // position: relative;
  99. // &::after{
  100. // content: '';
  101. // position: absolute;
  102. // top: -1px;
  103. // left: -8%;
  104. // height: 1px;
  105. // width: 120%;
  106. // background-color: #B81C25;
  107. // }
  108. // }
  109. // a{
  110. // cursor: pointer;
  111. // }
  112. // }
  113. .li_cont{
  114. width: calc(100% - 80px);
  115. font-family: Source Han Sans CN;
  116. font-weight: 400;
  117. transition: all .2s;
  118. div:nth-child(1){
  119. font-weight: 500;
  120. font-size: 20px;
  121. color: #231F20;
  122. line-height: 30px;
  123. margin-bottom: 10px;
  124. transition: all .2s;
  125. }
  126. div:nth-child(2){
  127. font-weight: 500;
  128. font-size: 16px;
  129. color: #A7A5A5;
  130. line-height: 30px;
  131. display: -webkit-box; /* 使用 Flexbox 布局 */
  132. -webkit-box-orient: vertical; /* 垂直方向排列 */
  133. -webkit-line-clamp: 1; /* 限制显示的行数,这里是3行 */
  134. overflow: hidden; /* 隐藏超出部分 */
  135. text-align: justify;
  136. }
  137. }
  138. &:hover{
  139. background: rgba(184, 28, 37, 0.05);
  140. .li_cont{
  141. div:nth-child(1){
  142. color: #B81C25;
  143. }
  144. }
  145. }
  146. &:last-child{
  147. border: none;
  148. }
  149. }
  150. }
  151. }
  152. .news_paging{
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. padding: 100px 0 120px;
  157. .previousPage{
  158. width: 40px;
  159. height: 40px;
  160. color: #000000;
  161. display: flex;
  162. align-items: center;
  163. justify-content: center;
  164. border: 1px solid #000000;
  165. margin-right: 20px;
  166. cursor: pointer;
  167. transition: all 0.2s;
  168. border-radius: 20px;
  169. box-sizing: border-box;
  170. span{
  171. font-size: 26px;
  172. transform: rotate(-90deg);
  173. }
  174. &:hover{
  175. background: #B81C25;
  176. border: 1px solid #B81C25;
  177. color: #fff;
  178. }
  179. }
  180. .nextPage{
  181. width: 40px;
  182. height: 40px;
  183. color: #000000;
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. border: 1px solid #000000;
  188. margin-left: 20px;
  189. cursor: pointer;
  190. transition: all 0.2s;
  191. border-radius: 20px;
  192. box-sizing: border-box;
  193. span{
  194. font-size: 26px;
  195. transform: rotate(90deg);
  196. }
  197. &:hover{
  198. background: #B81C25;
  199. border: 1px solid #B81C25;
  200. color: #fff;
  201. }
  202. }
  203. .pageNum{
  204. min-width: 40px;
  205. height: 40px;
  206. line-height: 40px;
  207. font-family: Source Han Sans CN;
  208. font-size: 18px;
  209. color: #000;
  210. transition: all 0.2s;
  211. padding: 0 5px;
  212. box-sizing: border-box;
  213. cursor: pointer;
  214. text-align: center;
  215. border: 1px solid #DDE2E6;
  216. border-radius: 20px;
  217. box-sizing: border-box;
  218. &:hover{
  219. background: #B81C25;
  220. border: 1px solid #B81C25;
  221. color: #fff;
  222. }
  223. }
  224. .pageNums{
  225. pointer-events: none;
  226. }
  227. .pageNum+.pageNum{
  228. margin-left: 10px;
  229. }
  230. .pageNumActive{
  231. color: #fff;
  232. background-color: #B81C25;
  233. border: 1px solid #B81C25;
  234. }
  235. .ellipsis{
  236. font-family: Source Han Sans CN;
  237. font-weight: bold;
  238. font-size: 22px;
  239. padding: 10px 15px;
  240. color: #333333;
  241. // cursor: pointer;
  242. transition: all 0.2s;
  243. // &:hover{
  244. // color:#48A038
  245. // }
  246. }
  247. }
  248. .typeCon{
  249. width: 100%;
  250. background: #F6F6F6;
  251. padding-bottom: 250px;
  252. display: none;
  253. .infoul{
  254. width: 100%;
  255. max-width: 1300px;
  256. margin: 0 auto;
  257. .infoLi{
  258. padding: 70px 0;
  259. border-bottom:1px solid #9FA3A5;
  260. width: 100%;
  261. .liTitle{
  262. display: flex;
  263. width: 100%;
  264. justify-content: space-between;
  265. cursor: pointer;
  266. .liTit{
  267. width: calc(100% - 220px);
  268. line-height: 84px;
  269. overflow: hidden;
  270. display: flex;
  271. flex-wrap: wrap;
  272. font-size: 40px;
  273. font-weight: bold;
  274. &>div{
  275. width: 100%;
  276. }
  277. }
  278. .button{
  279. width: 84px;
  280. height: 84px;
  281. display: flex;
  282. align-items: center;
  283. justify-content: center;
  284. background-color: #B2B5B7;
  285. border-radius: 50%;
  286. color: #fff;
  287. cursor: pointer;
  288. transition: all .2s;
  289. position: relative;
  290. transform: scale(1);
  291. &::before{
  292. content: '';
  293. width: 17px;
  294. height: 3px;
  295. background-color: #fff;
  296. z-index: 2;
  297. }
  298. &::after{
  299. content: '';
  300. width: 3px;
  301. height: 17px;
  302. background-color: #fff;
  303. left: 50%;
  304. position: absolute;
  305. top: 50%;
  306. transform: translate(-50%, -50%);
  307. }
  308. .btnjbg{
  309. position: absolute;
  310. bottom: 0px;
  311. left: -1px;
  312. right: 0px;
  313. top: 0px;
  314. background-color: #B81C25;
  315. -webkit-clip-path: circle(0 at 50% 50%);
  316. clip-path: circle(0 at 50% 50%);
  317. transition: -webkit-clip-path .65s cubic-bezier(.19,1,.22,1);
  318. transition: clip-path .65s cubic-bezier(.19,1,.22,1);
  319. transition: clip-path .65s cubic-bezier(.19,1,.22,1), -webkit-clip-path .65s cubic-bezier(.19,1,.22,1);
  320. transition: clip-path .65s cubic-bezier(.19,1,.22,1), -webkit-clip-path .65s cubic-bezier(.19,1,.22,1);
  321. }
  322. }
  323. }
  324. .infoSonLi{
  325. padding-top: 30px;
  326. width: 100%;
  327. height: 0px;
  328. box-sizing: border-box;
  329. overflow: hidden;
  330. border-bottom: 1px dashed #000000;
  331. margin-bottom: 95px;
  332. // transition: all 1s ease-in-out;
  333. &:last-child{
  334. border-bottom: 0px;
  335. margin-bottom: 0px;
  336. }
  337. .h4{
  338. margin-top: 80px;
  339. font-size: 28px;
  340. &:first-child{
  341. margin-top: 0;
  342. color: #0056a7;
  343. }
  344. }
  345. .h5R{
  346. margin-top: 40px;
  347. }
  348. .text{
  349. color: #9fa3a5;
  350. }
  351. .btn2{
  352. margin: 130px 0 140px;
  353. }
  354. }
  355. }
  356. .infoLiShow{
  357. .liTitle{
  358. .button{
  359. // background-color: #0054A7;
  360. &::before{
  361. content: '';
  362. width: 17px;
  363. height: 3px;
  364. background-color: #fff;
  365. }
  366. &::after{
  367. display: none;
  368. }
  369. .btnjbg{
  370. -webkit-clip-path: circle(50% at 50% 50%);
  371. clip-path: circle(50% at 50% 50%);
  372. }
  373. }
  374. }
  375. // @-webkit-keyframes textDown{
  376. // 0%{height: 0%;}
  377. // 100%{height: 100%;}
  378. // }
  379. // @keyframes textDown{
  380. // 0%{height: 0%;}
  381. // 100%{height: 100%;}
  382. // }
  383. // .infoSonLi{
  384. // display: block;
  385. // animation: textDown 1s ease-in-out 0 forwards;
  386. // }
  387. }
  388. }
  389. }
  390. }
  391. a{
  392. display: inline-block;
  393. }
  394. @media screen and (min-width: 801px) and (max-width: 1400px) {
  395. .main{
  396. .con {
  397. .conDiv{
  398. padding-top: 20px;
  399. }
  400. }
  401. .news_ul{
  402. width: 100%;
  403. .news_list{
  404. width: calc(100% - 60px);
  405. .news_li{
  406. .li_left{
  407. width: 12.25vw;
  408. height: 12.25vw;
  409. font-size: 2.5vw;
  410. .timerData{
  411. font-size:3.5vw ;
  412. padding: 1vw 0 2.8vw 0;
  413. }
  414. // width: 10vw;
  415. // height: 10vw;
  416. }
  417. .li_cont{
  418. width: 83%;
  419. }
  420. }
  421. }
  422. }
  423. .typeCon{
  424. .infoul{
  425. .infoLi{
  426. width: 95%;
  427. margin: 0 auto;
  428. }
  429. }
  430. }
  431. }
  432. }
  433. @media screen and (min-width: 1400px) and (max-width: 1600px){
  434. .main{
  435. .content{
  436. width: calc(100% - 60px);
  437. .tabs_box{
  438. width: 100%;
  439. }
  440. }
  441. .news_ul{
  442. width: 100%;
  443. .news_list{
  444. width: calc(100% - 60px);
  445. }
  446. }
  447. .typeCon{
  448. .infoul{
  449. .infoLi{
  450. width: 95%;
  451. margin: 0 auto;
  452. }
  453. }
  454. }
  455. }
  456. }
  457. //移动端样式
  458. @media screen and (max-width:800px) {
  459. .main {
  460. width: 100%;
  461. padding-top: 15vw;
  462. .con {
  463. .conDiv{
  464. padding: 20px 15px 0px;
  465. padding-top: 20px;
  466. .title{
  467. margin-bottom: 10px;
  468. }
  469. }
  470. }
  471. .news_ul{
  472. width: 100%;
  473. margin-top: 30px;
  474. .news_list{
  475. margin-top: 0;
  476. width: 100%;
  477. box-sizing: border-box;
  478. padding: 0 3.75vw;
  479. .news_li{
  480. padding:5.625vw 0;
  481. .li_left{
  482. width: 16.25vw;
  483. height: 16.25vw;
  484. font-size: 3vw;
  485. .timerData{
  486. font-size:4.5vw ;
  487. // padding: 2.6vw 0 2.8vw 0;
  488. }
  489. // width: 10vw;
  490. // height: 10vw;
  491. }
  492. .li_cont{
  493. width: 71.5vw;
  494. div:nth-child(1){
  495. font-family: Source Han Sans CN;
  496. font-size: 3.75vw;
  497. color: #282828;
  498. line-height: 7.5vw;
  499. display: -webkit-box; /* 使用 Flexbox 布局 */
  500. -webkit-box-orient: vertical; /* 垂直方向排列 */
  501. -webkit-line-clamp: 1; /* 限制显示的行数,这里是3行 */
  502. overflow: hidden;
  503. font-weight: bold;
  504. margin-bottom: 0;
  505. }
  506. div:nth-child(2){
  507. width: auto;
  508. height: auto;
  509. overflow: unset;
  510. line-height: 1.5;
  511. font-family: Source Han Sans CN;
  512. font-size: 3.25vw;
  513. color: #A7A5A5;
  514. padding: 0;
  515. display: -webkit-box; /* 使用 Flexbox 布局 */
  516. -webkit-box-orient: vertical; /* 垂直方向排列 */
  517. -webkit-line-clamp: 2; /* 限制显示的行数,这里是3行 */
  518. overflow: hidden;
  519. text-align: justify;
  520. }
  521. }
  522. }
  523. }
  524. }
  525. .news_paging{
  526. padding-top: 16vw;
  527. .previousPage{
  528. width: 40px;
  529. height: 40px;
  530. margin-right: 20px;
  531. box-sizing: border-box;
  532. }
  533. .nextPage{
  534. width: 40px;
  535. height: 40px;
  536. margin-left: 3.25vw;
  537. transition: all 0.2s;
  538. box-sizing: border-box;
  539. }
  540. .pageNum{
  541. font-size: 3.5vw;
  542. }
  543. .ellipsis{
  544. font-size: 3.5vw;
  545. padding: 1.875vw 2.5vw;
  546. // &:hover{
  547. // color:#48A038
  548. // }
  549. }
  550. }
  551. .typeCon{
  552. padding: 0px 4vw 150px;
  553. box-sizing: border-box;
  554. .infoul{
  555. .infoLi{
  556. padding: 40px 0;
  557. .liTitle{
  558. align-items: center;
  559. .liTit{
  560. height: auto;
  561. line-height: 40px;
  562. width: calc(100% - 60px);
  563. overflow: initial;
  564. font-size: 24px;
  565. }
  566. .button{
  567. width: 40px;
  568. height: 40px;
  569. left: 0px;
  570. .btnjbg{
  571. left: 0px;
  572. }
  573. &::before{
  574. content: '';
  575. width: 8px;
  576. height: 2px;
  577. }
  578. &::after{
  579. content: '';
  580. width: 2px;
  581. height: 8px;
  582. }
  583. }
  584. }
  585. .infoSonLi{
  586. margin-bottom: 75px;
  587. padding-top: 0px;
  588. transition: padding 0.5s ease-in-out;
  589. .text{
  590. margin-bottom: 0px;
  591. }
  592. }
  593. }
  594. .infoLiShow{
  595. .infoSonLi{
  596. padding-top: 30px;
  597. }
  598. .liTitle .btn .btnjbg{
  599. -webkit-clip-path: circle(19px at 20px 20px);
  600. clip-path: circle(19px at 20px 20px);
  601. }
  602. }
  603. }
  604. }
  605. }
  606. }