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 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  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. .content{
  16. margin: 0 auto;
  17. .news_title{
  18. text-align: center;
  19. padding-top: 80px;
  20. margin-bottom: 50px;
  21. font-weight: bold;
  22. font-size: 64px;
  23. color: #333333;
  24. font-family: 'MyFont1';
  25. }
  26. }
  27. .content2{
  28. .news_title{
  29. font-size: 48px;
  30. }
  31. }
  32. .banner{
  33. width: 100%;
  34. height: 100vh;
  35. .bannerSwiper{
  36. width: 100%;
  37. height: 100%;
  38. img{
  39. width: 100%;
  40. object-fit: cover;
  41. }
  42. .btn-prev,.btn-next{
  43. position: absolute;
  44. top: 50%;
  45. margin-top: -22px;
  46. width: 44px;
  47. height: 44px;
  48. border: 1px solid #000000;
  49. z-index: 2;
  50. text-align: center;
  51. color: #000000;
  52. background: transparent;
  53. transition: all .3s ease-in-out;
  54. cursor: pointer;
  55. span{
  56. font-size: 36px;
  57. display: inline-block;
  58. transform: rotate(90deg);
  59. line-height: 44px;
  60. }
  61. &:hover{
  62. background: #48a038;
  63. border-color: #48a038;
  64. color: #fff;
  65. }
  66. }
  67. .btn-prev{
  68. left: 100px;
  69. transform: rotate(-180deg);
  70. }
  71. .btn-next{
  72. right: 100px;
  73. }
  74. .swiper-button-disabled{
  75. cursor: no-drop;
  76. background: transparent;
  77. color: #979292;
  78. border-color: #979292;
  79. &:hover{
  80. background: transparent;
  81. border-color: #979292;
  82. color: #979292;
  83. }
  84. }
  85. .swiper-pagination{
  86. bottom: 40px;
  87. display: none;
  88. .swiper-pagination-bullet{
  89. background: #ffffff;
  90. opacity:1;
  91. position: relative;
  92. width: 6px;
  93. height: 6px;
  94. margin:0 6px;
  95. &::before{
  96. content: '';
  97. position: absolute;
  98. left: -3px;
  99. top: -3px;
  100. width: 10px;
  101. height: 10px;
  102. border-radius: 50%;
  103. border: 1px solid #ffffff;
  104. opacity: 0;
  105. transition: all .3s ease-in-out;
  106. }
  107. }
  108. .swiper-pagination-bullet-active{
  109. &::before{
  110. opacity: 1;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. .tabs_box{
  117. width: 1300px;
  118. margin: 0 auto;
  119. display: flex;
  120. align-items: center;
  121. font-size: 16px;
  122. color: #231f20;
  123. margin-bottom: 60px;
  124. .tabs_li{
  125. border: 1px solid #231f20;
  126. padding: 10px 30px;
  127. margin-right: 20px;
  128. cursor: pointer;
  129. transition: all .2s;
  130. span{
  131. display: inline-block;
  132. margin: 0 10px;
  133. font-weight: bold;
  134. }
  135. }
  136. .tabs_lis{
  137. background: #B81C25;
  138. border: 1px solid #B81C25;
  139. color: #fff;
  140. font-family: 'MyFont1';
  141. }
  142. }
  143. .article_list{
  144. width: 1300px;
  145. margin: 0 auto;
  146. display: flex;
  147. flex-wrap: wrap;
  148. .article_li{
  149. width: 406px;
  150. margin-bottom: 62px;
  151. padding-bottom: 62px;
  152. padding-right: 41px;
  153. border-bottom: 1px solid #DDE2E6;
  154. .liImg{
  155. width: 100%;
  156. height: 305px;
  157. margin-bottom: 20px;
  158. overflow: hidden;
  159. img{
  160. width: 100%;
  161. height: 305px;
  162. object-fit: cover;
  163. transition: all .3s ease;
  164. }
  165. }
  166. &:nth-of-type(3n){
  167. padding-right: 0;
  168. }
  169. &:nth-of-type(7){
  170. border: 0;
  171. margin: 0;
  172. }
  173. &:nth-of-type(8){
  174. border: 0;
  175. margin: 0;
  176. }
  177. &:nth-of-type(9){
  178. border: 0;
  179. margin: 0;
  180. }
  181. // img{
  182. // width: 100%;
  183. // height: 305px;
  184. // object-fit: cover;
  185. // margin-bottom: 20px;
  186. // }
  187. .txt1{
  188. font-size: 20px;
  189. color: #231f20;
  190. display: -webkit-box; /* 使用 Flexbox 布局 */
  191. -webkit-box-orient: vertical; /* 垂直方向排列 */
  192. -webkit-line-clamp: 2; /* 限制显示的行数,这里是3行 */
  193. overflow: hidden; /* 隐藏超出部分 */
  194. text-overflow: ellipsis;
  195. line-height: 30px;
  196. margin-bottom: 20px;
  197. transition: all .3s ease;
  198. }
  199. .txt2{
  200. font-size: 14px;
  201. color: #666666;
  202. transition: all .3s ease;
  203. }
  204. &:hover{
  205. .liImg{
  206. img{
  207. transform: scale(1.1);
  208. }
  209. }
  210. .txt1,.txt2{
  211. color: #B81C25;
  212. }
  213. }
  214. }
  215. }
  216. .listBtn{
  217. width: 100%;display: flex;justify-content: center;padding: 30px 0 90px;
  218. a{
  219. width: 200px;
  220. height: 45px;
  221. font-size: 14px;
  222. line-height: 45px;
  223. border-radius: 50px;
  224. span{
  225. font-size: 26px;
  226. }
  227. }
  228. }
  229. .news_paging{
  230. display: flex;
  231. align-items: center;
  232. justify-content: center;
  233. padding: 100px 0 120p x;
  234. .previousPage{
  235. width: 40px;
  236. height: 40px;
  237. color: #B81C25;
  238. display: flex;
  239. align-items: center;
  240. justify-content: center;
  241. border: 1px solid #B81C25;
  242. margin-right: 20px;
  243. cursor: pointer;
  244. transition: all 0.2s;
  245. span{
  246. font-size: 26px;
  247. transform: rotate(-90deg);
  248. }
  249. &:hover{
  250. background: #B81C25;
  251. border: 1px solid #B81C25;
  252. color: #fff;
  253. }
  254. }
  255. .nextPage{
  256. width: 40px;
  257. height: 40px;
  258. color: #B81C25;
  259. display: flex;
  260. align-items: center;
  261. justify-content: center;
  262. border: 1px solid #B81C25;
  263. margin-left: 20px;
  264. cursor: pointer;
  265. transition: all 0.2s;
  266. span{
  267. font-size: 26px;
  268. transform: rotate(90deg);
  269. }
  270. &:hover{
  271. background: #B81C25;
  272. border: 1px solid #B81C25;
  273. color: #fff;
  274. }
  275. }
  276. .pageNum{
  277. min-width: 40px;
  278. height: 40px;
  279. line-height: 40px;
  280. font-family: Source Han Sans CN;
  281. font-size: 18px;
  282. color: #000;
  283. transition: all 0.2s;
  284. padding: 0 5px;
  285. box-sizing: border-box;
  286. cursor: pointer;
  287. text-align: center;
  288. border: 1px solid #DDE2E6;
  289. border-radius: 2px;
  290. &:hover{
  291. background: #B81C25;
  292. border: 1px solid #B81C25;
  293. color: #fff;
  294. }
  295. }
  296. .pageNums{
  297. pointer-events: none;
  298. }
  299. .pageNum+.pageNum{
  300. margin-left: 10px;
  301. }
  302. .pageNumActive{
  303. color: #000000;
  304. }
  305. .ellipsis{
  306. font-family: Source Han Sans CN;
  307. font-weight: bold;
  308. font-size: 22px;
  309. padding: 10px 15px;
  310. color: #333333;
  311. // cursor: pointer;
  312. transition: all 0.2s;
  313. // &:hover{
  314. // color:#48A038
  315. // }
  316. }
  317. }
  318. .study_box{
  319. width: 100%;
  320. background-color: #F6F6F6;
  321. padding-top: 122px;
  322. padding-bottom: 140px;
  323. .study_head{
  324. width: 1498px;
  325. margin: 0 auto;
  326. display: flex;
  327. align-items: center;
  328. justify-content: space-between;
  329. margin-bottom: 81px;
  330. .txt{
  331. font-weight: bold;
  332. font-family: 'MyFont1';
  333. font-size: 48px;
  334. color: #231F20;
  335. margin-left: 100px;
  336. }
  337. a{
  338. width: 200px;
  339. height: 45px;
  340. font-size: 14px;
  341. line-height: 45px;
  342. margin-right: 100px;
  343. z-index: 1;
  344. span{
  345. font-size: 26px;
  346. }
  347. }
  348. }
  349. .bannerSwiper2{
  350. width: 1498px;
  351. margin: 0 auto;
  352. img{
  353. display: block;
  354. }
  355. }
  356. }
  357. }
  358. a{
  359. display: inline-block;
  360. }
  361. .btn_study{
  362. display: none;
  363. }
  364. @media screen and (min-width: 801px) and (max-width: 1400px) {
  365. .main{
  366. .banner{
  367. height: auto;
  368. .bannerSwiper{
  369. width: 100%;
  370. }
  371. }
  372. .article_list{
  373. width: calc(100% - 40px);
  374. }
  375. .tabs_box{
  376. width: calc(100% - 40px);
  377. }
  378. .study_box{
  379. .study_head{
  380. width: calc(100% - 40px);
  381. }
  382. }
  383. }
  384. }
  385. @media screen and (min-width: 1400px) and (max-width: 1600px){
  386. .main{
  387. .banner{
  388. height: auto;
  389. .bannerSwiper{
  390. width: 100%;
  391. }
  392. }
  393. .article_list{
  394. width: calc(100% - 40px);
  395. }
  396. .tabs_box{
  397. width: calc(100% - 40px);
  398. }
  399. .study_box{
  400. .study_head{
  401. width: calc(100% - 40px);
  402. }
  403. }
  404. }
  405. }
  406. //移动端样式
  407. @media screen and (max-width:800px) {
  408. .main {
  409. width: 100%;
  410. padding-top: 15vw;
  411. .listBtn{
  412. padding: 0 0 110px;
  413. a{
  414. border-radius: 50px;
  415. }
  416. }
  417. .content{
  418. width: 92.125vw;
  419. margin: 0 auto;
  420. .news_title{
  421. display: block;
  422. margin-bottom: 10.75vw;
  423. padding-top: 60px;
  424. font-size: 32px;
  425. text-align: center;
  426. }
  427. }
  428. .content2{
  429. padding-top: 17.5vw;
  430. .news_title{
  431. // font-size: 6.25vw;
  432. font-size: 30px;
  433. padding-top: 0;
  434. }
  435. }
  436. .banner{
  437. width: 100%;
  438. height: auto;
  439. .bannerSwiper{
  440. width: 100%;
  441. height: 100%;
  442. img{
  443. width: 100%;
  444. height: 46.75vw;
  445. object-fit: cover;
  446. }
  447. .btn-prev,.btn-next{
  448. position: absolute;
  449. top: 50%;
  450. margin-top: -22px;
  451. width: 44px;
  452. height: 44px;
  453. border: 1px solid #000000;
  454. z-index: 2;
  455. text-align: center;
  456. color: #000000;
  457. background: transparent;
  458. transition: all .3s ease-in-out;
  459. cursor: pointer;
  460. span{
  461. font-size: 36px;
  462. display: inline-block;
  463. transform: rotate(90deg);
  464. line-height: 44px;
  465. }
  466. &:hover{
  467. background: #48a038;
  468. border-color: #48a038;
  469. color: #fff;
  470. }
  471. }
  472. .btn-prev{
  473. left: 100px;
  474. transform: rotate(-180deg);
  475. }
  476. .btn-next{
  477. right: 100px;
  478. }
  479. .swiper-button-disabled{
  480. cursor: no-drop;
  481. background: transparent;
  482. color: #979292;
  483. border-color: #979292;
  484. &:hover{
  485. background: transparent;
  486. border-color: #979292;
  487. color: #979292;
  488. }
  489. }
  490. .swiper-pagination{
  491. bottom: 40px;
  492. display: none;
  493. .swiper-pagination-bullet{
  494. background: #ffffff;
  495. opacity:1;
  496. position: relative;
  497. width: 6px;
  498. height: 6px;
  499. margin:0 6px;
  500. &::before{
  501. content: '';
  502. position: absolute;
  503. left: -3px;
  504. top: -3px;
  505. width: 10px;
  506. height: 10px;
  507. border-radius: 50%;
  508. border: 1px solid #ffffff;
  509. opacity: 0;
  510. transition: all .3s ease-in-out;
  511. }
  512. }
  513. .swiper-pagination-bullet-active{
  514. &::before{
  515. opacity: 1;
  516. }
  517. }
  518. }
  519. }
  520. }
  521. .tabs_box{
  522. width: 92.125vw;
  523. flex-wrap: wrap;
  524. margin-bottom: 10.625vw;
  525. font-size: 3.75vw;
  526. .tabs_li{
  527. padding: 1.875vw 3.75vw;
  528. margin-right: 3vw;
  529. margin-bottom: 4vw;
  530. span{
  531. display: inline-block;
  532. margin: 0 3px 0 8px;
  533. font-weight: bold;
  534. }
  535. &:last-child{
  536. margin-right: 0;
  537. }
  538. }
  539. .tabs_lis{
  540. background: #B81C25;
  541. border: 1px solid #B81C25;
  542. color: #fff;
  543. }
  544. }
  545. .article_list{
  546. width: 92.125vw;
  547. margin: 0 auto;
  548. .article_li{
  549. width: 100%;
  550. margin-bottom: 10.5vw;
  551. padding-bottom: 10.5vw;
  552. padding-right: 0;
  553. border-bottom: 1px solid #DDE2E6;
  554. &:nth-of-type(7){
  555. border-bottom: 1px solid #DDE2E6;
  556. margin-bottom: 10.5vw;
  557. }
  558. &:nth-of-type(8){
  559. border-bottom: 1px solid #DDE2E6;
  560. margin-bottom: 10.5vw;
  561. }
  562. &:nth-of-type(9){
  563. border-bottom: 1px solid #DDE2E6;
  564. }
  565. &:last-child{
  566. border: 0;
  567. margin-bottom: 0;
  568. }
  569. img{
  570. height: 69.125vw;
  571. margin-bottom: 5.125vw;
  572. }
  573. .txt1{
  574. font-size: 3.75vw;
  575. }
  576. }
  577. }
  578. .news_paging{
  579. padding-top: 16vw;
  580. .previousPage{
  581. width: 40px;
  582. height: 40px;
  583. margin-right: 20px;
  584. box-sizing: border-box;
  585. }
  586. .nextPage{
  587. width: 40px;
  588. height: 40px;
  589. margin-left: 3.25vw;
  590. transition: all 0.2s;
  591. box-sizing: border-box;
  592. }
  593. .pageNum{
  594. font-size: 3.5vw;
  595. }
  596. .ellipsis{
  597. font-size: 3.5vw;
  598. padding: 1.875vw 2.5vw;
  599. // &:hover{
  600. // color:#48A038
  601. // }
  602. }
  603. }
  604. .study_box{
  605. padding-top: 13.75vw;
  606. padding-bottom: 100px;
  607. position: relative;
  608. .study_head{
  609. width: 92.125vw;
  610. margin-bottom: 10.5vw;
  611. flex-wrap: wrap;
  612. justify-content: center;
  613. .txt{
  614. width: 100%;
  615. font-size: 6.25vw;
  616. margin-left: 0;
  617. text-align: center;
  618. }
  619. a{
  620. // position: absolute;
  621. // bottom:15vw;
  622. // left: calc(50% - 100px);
  623. // margin-left: -25%;
  624. margin-right: 0px;
  625. margin-top: 20px;
  626. border-radius: 50px;
  627. }
  628. }
  629. .bannerSwiper2{
  630. width: 92.125vw;
  631. margin: 0 auto;
  632. }
  633. }
  634. }
  635. .btn_study{
  636. display: flex;
  637. margin:40px auto 0;
  638. span{
  639. transform: rotate(90deg);
  640. }
  641. }
  642. .btn_study1{
  643. display: none;
  644. }
  645. }