index.css 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. body{
  2. background-color: #F8F8F8;
  3. }
  4. #main{
  5. padding-bottom: .32rem;
  6. }
  7. /* 板心 */
  8. .sectionContainer{
  9. display: flex;
  10. justify-content: center;
  11. }
  12. .elementorContainer{
  13. max-width: 13.2rem;
  14. flex: 1;
  15. -moz-box-sizing: border-box;
  16. -webkit-box-sizing: border-box;
  17. box-sizing: border-box;
  18. }
  19. /* 轮播图 */
  20. .swiperContainer {
  21. width: 100%;
  22. height: 5.6rem;
  23. position: relative;
  24. overflow: hidden;
  25. }
  26. .swiperContainer .swiper-slide img{
  27. width: 100%;
  28. height: 100%;
  29. }
  30. .tabContainer{
  31. height: 1.5rem;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. }
  36. .tabContainer .tabItem{
  37. position: relative;
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. height: .48rem;
  42. padding: 0 .52rem;
  43. cursor: pointer;
  44. }
  45. .tabItem .tabName{
  46. font-size: .26rem;
  47. color: #000000;
  48. font-weight: 400;
  49. text-overflow: ellipsis;
  50. overflow: hidden;
  51. white-space: nowrap;
  52. }
  53. .tabItem.active .tabName{
  54. font-weight: bold;
  55. }
  56. .tabItem .tabUnderline{
  57. background-color: rgba(209, 75, 241, 1);
  58. width: .82rem;
  59. height: .06rem;
  60. position: absolute;
  61. bottom: -.02rem;
  62. display: none;
  63. }
  64. .tabItem.active .tabUnderline{
  65. display: block;
  66. }
  67. .tabItem .tabLink{
  68. width: .02rem;
  69. position: absolute;
  70. right: 0;
  71. top: 0;
  72. height: 100%;
  73. }
  74. .tabContainer .tabItem:last-child .tabLink{
  75. display: none;
  76. }
  77. /* <-- start 新的商品模块 */
  78. .newGoodsContainer{
  79. display: -ms-grid;
  80. display: grid;
  81. grid-template-columns: repeat(4, 1fr);
  82. grid-gap: .4rem .34rem;
  83. height: auto;
  84. }
  85. .newGoodsItem{
  86. height: 4.5rem;
  87. display: flex;
  88. flex-direction: column;
  89. background-color: #fff;
  90. -moz-box-sizing: border-box;
  91. -webkit-box-sizing: border-box;
  92. box-sizing: border-box;
  93. position: relative;
  94. overflow: hidden;
  95. border-radius: .04rem;
  96. font-size: 0;
  97. cursor: pointer;
  98. }
  99. .newGoodsTag{
  100. position: absolute;
  101. z-index: 1;
  102. top: 0;
  103. left: 0;
  104. color: #FFF;
  105. background-color: rgba(74, 134, 98, 1);
  106. border-radius: 0 0 .12rem 0;
  107. padding: 0 .06rem;
  108. max-width: 1rem;
  109. font-size: .12rem;
  110. }
  111. .goodsImgBox{
  112. padding: .12rem .06rem;
  113. height: 2.78rem;
  114. }
  115. .goodsImgBox img{
  116. width: 100%;
  117. height: 100%;
  118. }
  119. .goodsCoverImg{
  120. width: 100%;
  121. height: 100%;
  122. }
  123. .goodsInfo{
  124. flex: 1;
  125. padding: .02rem .12rem .12rem .12rem;
  126. display: flex;
  127. flex-direction: column;
  128. }
  129. .goodsTitleBox{
  130. height: .65rem;
  131. }
  132. .goodsTitle{
  133. display: -webkit-box;
  134. -webkit-line-clamp: 2;
  135. -webkit-box-orient: vertical;
  136. overflow: hidden;
  137. font-size: .2rem;
  138. word-break: break-all;
  139. color: #000;
  140. }
  141. .goodsTitle .preTag{
  142. border-radius: .04rem;
  143. color: #FFF;
  144. background-color: cornflowerblue;
  145. font-size: .12rem;
  146. padding: .02rem .04rem;
  147. vertical-align: middle;
  148. }
  149. .goodsPriceInfo{
  150. display: flex;
  151. align-items: center;
  152. justify-content: space-between;
  153. height: 1;
  154. }
  155. .goodsPriceInfo .goodsPrice{
  156. color: rgba(220, 90, 77, 1);
  157. font-weight: bold;
  158. font-size: .22rem;
  159. flex: 1;
  160. }
  161. .goodsCollect{
  162. display: flex;
  163. align-items: center;
  164. }
  165. .goodsCollect .collectNumber{
  166. color: #999999;
  167. font-size: .14rem;
  168. max-width: .8rem;
  169. padding-left: .04rem;
  170. }
  171. .goodsCollect img{
  172. width: .16rem;
  173. height: .16rem;
  174. }
  175. .goodsReviews{
  176. display: flex;
  177. align-items: center;
  178. padding-top: .1rem;
  179. }
  180. .reviewsNumber{
  181. display: flex;
  182. flex: 1;
  183. color: #999999;
  184. font-size: .14rem;
  185. }
  186. .reviewsNumber .number{
  187. padding-right: .04rem;
  188. max-width: 1rem;
  189. }
  190. .reviewsNumber .text{
  191. flex: 1;
  192. }
  193. /* end 新的商品模块 --> */
  194. /* <-- start 新闻中心模块 */
  195. .newConterContainer .tabContainer{
  196. padding-top: .5rem;
  197. }
  198. .newConterItem{
  199. border: .01rem dashed #000000;
  200. display: flex;
  201. align-items: center;
  202. padding: .2rem .2rem .2rem .14rem;
  203. margin-bottom: .26rem;
  204. }
  205. .newsDateBox{
  206. margin-left: .6rem;
  207. width: 1.4rem;
  208. }
  209. .newsDateBox p{
  210. font-size: .34rem;
  211. font-weight: bold;
  212. color: #000;
  213. line-height: 1;
  214. }
  215. .newsDateBox p.year{
  216. font-size: .18rem;
  217. color: #999999;
  218. padding-top: .04rem;
  219. }
  220. .newConterImg{
  221. font-size: 0;
  222. }
  223. .newConterImg img{
  224. width: 1.52rem;
  225. height: 1rem;
  226. }
  227. .newConterInfo{
  228. flex: 1;
  229. display: flex;
  230. align-items: center;
  231. padding-left: .32rem;
  232. }
  233. .newConterInfo .newConterTitle{
  234. font-size: .18rem;
  235. color: #000;
  236. display: -webkit-box;
  237. -webkit-line-clamp: 2;
  238. -webkit-box-orient: vertical;
  239. overflow: hidden;
  240. word-break: break-all;
  241. flex: 1;
  242. padding-right: .24rem;
  243. line-height: 1.4;
  244. }
  245. .newsInfoRl{
  246. display: flex;
  247. align-items: center;
  248. }
  249. .newsInfoRl .rlDate{
  250. font-size: .2rem;
  251. color: #999999;
  252. display: none;
  253. }
  254. .newsInfoRl .newsMore{
  255. border: .02rem solid #999999;
  256. border-radius: .22rem;
  257. height: .46rem;
  258. min-width: 1.5rem;
  259. max-width: 2rem;
  260. box-sizing: border-box;
  261. padding: 0 .32rem;
  262. display: flex;
  263. align-items: center;
  264. justify-content: space-between;
  265. color: #999999;
  266. font-size: .18rem;
  267. }
  268. .newsInfoRl .newsMore p{
  269. flex: 1;
  270. }
  271. /* end 新闻中心模块 --> */
  272. /* <-- start 超级交易模块 */
  273. .superDealContainer{
  274. margin-bottom: .8rem;
  275. }
  276. .superDealTitle{
  277. font-size: .26rem;
  278. font-weight: bold;
  279. color: #000000;
  280. text-align: center;
  281. padding-bottom: .16rem;
  282. padding-top: .5rem;
  283. }
  284. .superDealContainer .newGoodsContainer{
  285. grid-gap: .24rem .2rem;
  286. margin-bottom: .36rem;
  287. }
  288. /* end 超级交易模块 --> */
  289. /* <-- start 盟友模块 */
  290. .partnersTitle{
  291. font-weight: bold;
  292. font-size: .36rem;
  293. color: #000;
  294. margin-bottom: .12rem;
  295. }
  296. .partnersList{
  297. display: -ms-grid;
  298. display: grid;
  299. grid-template-columns: repeat(8, 1fr);
  300. grid-gap: .24rem .12rem;
  301. }
  302. .partnersItem{
  303. height: .5rem;
  304. font-size: 0;
  305. display: flex;
  306. align-items: center;
  307. justify-content: center;
  308. }
  309. .partnersItem .partnersLogo{
  310. object-fit: contain;
  311. width: 1rem;
  312. height: 100%;
  313. }
  314. /* end 盟友模块 --> */
  315. @media (max-width: 1320px) {
  316. #main{
  317. -moz-box-sizing: border-box;
  318. -webkit-box-sizing: border-box;
  319. box-sizing: border-box;
  320. }
  321. .sectionContainer{
  322. padding: 0 .12rem 0 .12rem;
  323. }
  324. .newGoodsContainer{
  325. grid-template-columns: repeat(3, 1fr);
  326. grid-gap: .3rem .24rem;
  327. }
  328. .partnersList{
  329. grid-template-columns: repeat(6, 1fr);
  330. }
  331. }
  332. @media (max-width: 899px) {
  333. .swiperContainer{
  334. height: 4.6rem;
  335. }
  336. .superDealContainer{
  337. margin-bottom: .5rem;
  338. }
  339. .newGoodsContainer{
  340. grid-template-columns: repeat(2, 1fr);
  341. grid-gap: .2rem .14rem !important;
  342. }
  343. .newGoodsItem{
  344. height: 5.2rem;
  345. }
  346. .newGoodsTag{
  347. padding: 0 .1rem;
  348. max-width: 1.5rem;
  349. font-size: .2rem;
  350. border-radius: 0 0 .18rem 0;
  351. }
  352. .goodsImgBox{
  353. height: 3rem;
  354. }
  355. .newGoodsTag{
  356. font-size: .24rem;
  357. }
  358. .goodsTitleBox{
  359. height: .92rem;
  360. }
  361. .goodsTitle{
  362. font-size: .28rem;
  363. line-height: 1.3;
  364. }
  365. .goodsTitle .preTag{
  366. font-size: .2rem;
  367. padding: .02rem .06rem;
  368. }
  369. .goodsPriceInfo .goodsPrice{
  370. font-size: .32rem;
  371. }
  372. .goodsCollect .collectNumber{
  373. font-size: .22rem;
  374. padding-left: .08rem;
  375. }
  376. .goodsCollect img{
  377. width: .24rem;
  378. height: .24rem;
  379. }
  380. .superDealTitle{
  381. font-size: .3rem;
  382. padding-bottom: .32rem;
  383. }
  384. .superDealContainer .newGoodsContainer{
  385. margin-bottom: .42rem;
  386. }
  387. .reviewsNumber{
  388. font-size: .22rem;
  389. }
  390. .partnersList{
  391. grid-template-columns: repeat(4, 1fr);
  392. }
  393. .newConterItem{
  394. padding: .24rem .2rem .24rem .14rem;
  395. }
  396. .newConterItem .newsDateBox{
  397. display: none;
  398. }
  399. .newsInfoRl .rlDate{
  400. display: block;
  401. }
  402. .newConterItem .newConterImg img{
  403. width: 1.88rem;
  404. height: 1.4rem;
  405. }
  406. .newConterItem .newConterInfo{
  407. flex-direction: column;
  408. justify-content: space-between;
  409. min-height: 1.4rem;
  410. }
  411. .newConterInfo .newConterTitle{
  412. flex: none;
  413. font-size: .28rem;
  414. line-height: 1.3;
  415. }
  416. .newConterItem .newsInfoRl{
  417. justify-content: space-between;
  418. width: 100%;
  419. }
  420. .newsInfoRl .newsMore{
  421. min-width: 1.2rem;
  422. max-width: 1.6rem;
  423. padding: 0 .2rem;
  424. font-size: .2rem;
  425. }
  426. }
  427. @media (max-width: 750px) {
  428. .swiperContainer{
  429. height: 3.6rem;
  430. }
  431. .tabContainer .tabItem{
  432. flex: 1;
  433. padding: 0 !important;
  434. height: .66rem;
  435. max-width: 33%;
  436. border-radius: .12rem;
  437. }
  438. .tabItem .tabName{
  439. font-size: .28rem;
  440. }
  441. .tabItem .tabUnderline{
  442. width: .7rem;
  443. }
  444. .newGoodsContainer{
  445. grid-gap: .12rem .12rem !important;
  446. }
  447. .partnersTitle{
  448. margin-bottom: .12rem;
  449. }
  450. .partnersList{
  451. grid-template-columns: repeat(3, 1fr);
  452. }
  453. .partnersItem{
  454. height: .7rem;
  455. }
  456. }