Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.less 15KB

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