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.

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