productDetails.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. body{
  2. background-color: #F8F8F8;
  3. }
  4. .sectionContainer{
  5. display: flex;
  6. justify-content: center;
  7. }
  8. .elementorContainer{
  9. max-width: 13.2rem;
  10. flex: 1;
  11. -moz-box-sizing: border-box;
  12. -webkit-box-sizing: border-box;
  13. box-sizing: border-box;
  14. }
  15. .footerContainer{
  16. padding-bottom: 1.2rem;
  17. }
  18. .productContainer{
  19. padding-top: .3rem;
  20. display: flex;
  21. justify-content: space-between;
  22. margin-bottom: .6rem;
  23. }
  24. .productImgContainer{
  25. width: 6.48rem;
  26. }
  27. .prViewImgBox{
  28. background-color: #fff;
  29. width: 100%;
  30. height: 6.48rem;
  31. overflow: hidden;
  32. font-size: 0;
  33. position: relative;
  34. }
  35. .prViewImgBox .prViewImg{
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .prImgContainer{
  40. width: 100%;
  41. overflow: hidden;
  42. position: relative;
  43. }
  44. .prImgList{
  45. padding-top: .3rem;
  46. cursor: pointer;
  47. width: 100%;
  48. white-space: nowrap;
  49. font-size: 0;
  50. transition: transform 0.3s ease;
  51. }
  52. .prImgList .prImgItem{
  53. display: inline-block;
  54. width: 1.42rem;
  55. height: 1.42rem;
  56. overflow: hidden;
  57. font-size: 0;
  58. background-color: #fff;
  59. margin-right: .25rem;
  60. }
  61. .prImgList .prImgItem:last-child{
  62. margin-right: 0;
  63. }
  64. .prImgList .prImgItem img{
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .prevArrow,
  69. .nextArrow {
  70. position: absolute;
  71. top: 50%;
  72. transform: translateY(-50%);
  73. width: 30px;
  74. height: 30px;
  75. background-color: #000;
  76. color: #fff;
  77. text-align: center;
  78. line-height: 30px;
  79. cursor: pointer;
  80. display: none;
  81. }
  82. .prevArrow {
  83. left: 10px;
  84. }
  85. .nextArrow {
  86. right: 10px;
  87. }
  88. .productInfoContainer{
  89. flex: 1;
  90. border: .02rem solid rgba(0, 0, 0, .1);
  91. min-height: 8.36rem;
  92. margin-left: .34rem;
  93. padding: 0 .28rem;
  94. display: flex;
  95. flex-direction: column;
  96. justify-content: space-between;
  97. box-sizing: border-box;
  98. }
  99. .productTitle{
  100. color: #434343;
  101. line-height: 1.6;
  102. padding-top: .6rem;
  103. font-size: .24rem;
  104. word-break: break-all;
  105. }
  106. .productPrice p{
  107. color: #333333;
  108. font-weight: bold;
  109. font-size: .32rem;
  110. padding-top: .32rem;
  111. }
  112. .productPrice p span{
  113. padding-right: .02rem;
  114. }
  115. .productNContainer{
  116. display: flex;
  117. align-items: center;
  118. padding: .28rem 0;
  119. border-top: .02rem solid rgba(0, 0, 0, .02);
  120. border-bottom: .02rem solid rgba(0, 0, 0, .02);
  121. margin-bottom: .24rem;
  122. }
  123. .productNumberBox{
  124. display: flex;
  125. align-items: center;
  126. height: .62rem;
  127. box-sizing: border-box;
  128. border: .02rem solid rgba(0, 0, 0, .1);
  129. cursor: pointer;
  130. }
  131. .numberReduce,.numberAdd{
  132. height: 100%;
  133. width: .6rem;
  134. border-right: .02rem solid rgba(0, 0, 0, .1);
  135. display: flex;
  136. align-items: center;
  137. justify-content: center;
  138. font-size: .2rem;
  139. }
  140. .numberAdd{
  141. border-right: none;
  142. border-left: .02rem solid rgba(0, 0, 0, .1);
  143. }
  144. #numberInput{
  145. height: 100%;
  146. flex: 1;
  147. font-size: .2rem;
  148. border: none;
  149. width: .8rem;
  150. text-align: center;
  151. }
  152. .addToCart{
  153. background-color: rgba(191, 77, 240, 1);
  154. height: .62rem;
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. width: 3rem;
  159. color: #fff;
  160. font-weight: bold;
  161. font-size: .2rem;
  162. cursor: pointer;
  163. margin-left: .24rem;
  164. border-radius: .08rem;
  165. }
  166. .addToCart .tag{
  167. font-weight: 400;
  168. margin-right: .08rem;
  169. }
  170. .safeContainer{
  171. width: 100%;
  172. min-height: .9rem;
  173. border: .02rem solid rgba(0, 0, 0, .05);
  174. border-radius: .06rem;
  175. position: relative;
  176. margin-bottom: .32rem;
  177. }
  178. .safeContainer .safeTag{
  179. position: absolute;
  180. height: .2rem;
  181. padding: 0 .12rem;
  182. background: #F8F8F8;
  183. font-size: .16rem;
  184. color: #666666;
  185. left: 50%;
  186. transform: translateX(-50%);
  187. top: -.1rem;
  188. z-index: 1;
  189. }
  190. .safeList{
  191. display: flex;
  192. flex-wrap: wrap;
  193. gap: .12rem;
  194. align-items: center;
  195. justify-content: center;
  196. padding-top: .28rem;
  197. padding-bottom: .12rem;
  198. }
  199. .safeList .safeItem{
  200. width: .6rem;
  201. height: .42rem;
  202. }
  203. .safeList .safeItem img{
  204. width: 100%;
  205. height: 100%;
  206. }
  207. .articleContainer{
  208. }
  209. .articleTabBox{
  210. display: flex;
  211. border-top: .02rem solid rgba(0, 0, 0, .1);
  212. }
  213. .articleTabItem{
  214. position: relative;
  215. min-width: .6rem;
  216. margin-right: .24rem;
  217. cursor: pointer;
  218. }
  219. .articleTabItem .tabTag{
  220. width: 80%;
  221. left: 0;
  222. top: -.04rem;
  223. height: .08rem;
  224. background-color: rgba(191, 77, 240, 1);
  225. z-index: 1;
  226. display: none;
  227. position: absolute;
  228. }
  229. .articleTabTitle{
  230. font-size: .2rem;
  231. font-weight: 400;
  232. padding-top: .12rem;
  233. color: #666666;
  234. display: flex;
  235. align-items: center;
  236. }
  237. .active .articleTabTitle{
  238. font-weight: bold;
  239. color: #333333;
  240. }
  241. .active .tabTag{
  242. display: block;
  243. }
  244. .articleInfo{
  245. padding: .36rem 0;
  246. }
  247. .articleTitle{
  248. color: #333333;
  249. font-size: .28rem;
  250. line-height: 1.4;
  251. }
  252. #richTextContainer,
  253. #richTextContainer span,
  254. #richTextContainer h1,
  255. #richTextContainer h2,
  256. #richTextContainer h3,
  257. #richTextContainer h4,
  258. #richTextContainer h5,
  259. #richTextContainer h6,
  260. #richTextContainer p,
  261. #richTextContainer ul,
  262. #richTextContainer ol {
  263. font-size: .2rem;
  264. color: #434343;
  265. line-height: 1.5;
  266. margin-bottom: .32rem;
  267. word-break: break-all;
  268. }
  269. .fixedAddSection{
  270. display: none;
  271. position: fixed;
  272. left: 0;
  273. right: 0;
  274. bottom: 0;
  275. z-index: 9999;
  276. height: 1.1rem;
  277. background: #FFF;
  278. -webkit-box-shadow: 0 -.02rem .05rem rgba(0,0,0,.01);
  279. box-shadow: 0 -.02rem .05rem rgba(0,0,0,.01);
  280. }
  281. .fixedAddContainer{
  282. height: 100%;
  283. display: flex;
  284. justify-content: center;
  285. }
  286. .fixedAddBox{
  287. display: flex;
  288. justify-content: space-between;
  289. align-items: center;
  290. height: 100%;
  291. }
  292. .fPrInfo{
  293. display: flex;
  294. align-items: center;
  295. flex: 1;
  296. }
  297. .fPrInfo img{
  298. width: .67rem;
  299. height: .67rem;
  300. }
  301. .fPrInfo .fTitle{
  302. color: #666666;
  303. font-size: .18rem;
  304. padding-left: .12rem;
  305. font-weight: 400;
  306. }
  307. .fPrNumberContainer{
  308. display: flex;
  309. align-items: center;
  310. box-sizing: border-box;
  311. cursor: pointer;
  312. }
  313. .fPrPrice{
  314. color: #333333;
  315. font-size: .24rem;
  316. font-weight: bold;
  317. padding-right: .24rem;
  318. }
  319. .fPrNumberBox{
  320. display: flex;
  321. align-items: center;
  322. border: .02rem solid rgba(0, 0, 0, .1);
  323. height: .4rem;
  324. }
  325. .fPrNumberReduce,.fPrNumberAdd{
  326. height: 100%;
  327. width: .4rem;
  328. border-right: .02rem solid rgba(0, 0, 0, .1);
  329. display: flex;
  330. align-items: center;
  331. justify-content: center;
  332. font-size: .18rem;
  333. }
  334. .fPrNumberAdd{
  335. border-right: none;
  336. border-left: .02rem solid rgba(0, 0, 0, .1);
  337. }
  338. #fPrNumberInput{
  339. height: 100%;
  340. flex: 1;
  341. font-size: .18rem;
  342. border: none;
  343. width: .4rem;
  344. text-align: center;
  345. }
  346. .fPrAddToCart{
  347. background-color: rgba(191, 77, 240, 1);
  348. height: .4rem;
  349. display: flex;
  350. align-items: center;
  351. justify-content: center;
  352. width: 2.1rem;
  353. color: #fff;
  354. font-weight: bold;
  355. font-size: .18rem;
  356. cursor: pointer;
  357. margin-left: .24rem;
  358. border-radius: .08rem;
  359. }
  360. .fPrAddToCart .tag{
  361. font-weight: 400;
  362. margin-right: .08rem;
  363. }
  364. #reviewsInfo{
  365. padding: .36rem 0;
  366. display: none;
  367. }
  368. .reviewItem{
  369. display: flex;
  370. align-items: flex-start;
  371. margin-bottom: .24rem;
  372. border-bottom: .02rem solid rgba(0, 0, 0, .02);
  373. padding-bottom: .12rem;
  374. }
  375. .userInfo{
  376. display: flex;
  377. align-items: center;
  378. padding-right: .24rem;
  379. }
  380. .userImg{
  381. background-color: #F8F8F8;
  382. width: .4rem;
  383. height: .4rem;
  384. border-radius: 50%;
  385. overflow: hidden;
  386. font-size: 0;
  387. }
  388. .userImg img{
  389. width: 100%;
  390. height: 100%;
  391. }
  392. .userName{
  393. font-size: .17rem;
  394. color: #434343;
  395. padding-left: .12rem;
  396. max-width: 1rem;
  397. overflow: hidden;
  398. text-overflow: ellipsis;
  399. white-space: nowrap;
  400. }
  401. .reInfo{
  402. flex: 1;
  403. }
  404. .starBox{
  405. display: flex;
  406. align-items: center;
  407. gap: .08rem;
  408. margin-bottom: .12rem;
  409. font-size: 0;
  410. }
  411. .starBox img{
  412. width: .2rem;
  413. }
  414. .reviewValues{
  415. font-size: .16rem;
  416. line-height: 1.5;
  417. word-break: break-all;
  418. font-weight: 400;
  419. }
  420. #loadingIndicator{
  421. text-align: center;
  422. font-size: .16rem;
  423. color: #999999;
  424. padding-bottom: .24rem;
  425. }
  426. #reviewsButtonContainer{
  427. display: block;
  428. }
  429. #reviewsButtonBox{
  430. display: flex;
  431. align-items: center;
  432. gap: .24rem;
  433. justify-content: flex-end;
  434. }
  435. #prevPage,#nextPage{
  436. color: #fff;
  437. height: .4rem;
  438. padding: 0 .16rem;
  439. border-radius: .04rem;
  440. background-color: rgba(79, 73, 222, 1);
  441. display: flex;
  442. align-items: center;
  443. cursor: pointer;
  444. }
  445. @media (max-width: 1320px) {
  446. .sectionContainer{
  447. padding: 0 .12rem;
  448. }
  449. .fixedAddBox{
  450. padding: 0 .12rem;
  451. }
  452. .productContainer{
  453. }
  454. .productImgContainer{
  455. width: 5.4rem;
  456. }
  457. .prViewImgBox{
  458. height: 5rem;
  459. }
  460. .prImgList .prImgItem{
  461. width: 1.16rem;
  462. height: 1.16rem;
  463. }
  464. .productInfoContainer{
  465. min-height: 6.46rem;
  466. }
  467. }
  468. @media (max-width: 1199px) {
  469. .elementorContainer{
  470. width: 100%;
  471. max-width: none;
  472. }
  473. .productInfoContainer{
  474. padding-left: .24rem;
  475. }
  476. .productNumberBox{
  477. height: .5rem;
  478. }
  479. .numberReduce, .numberAdd{
  480. width: .5rem;
  481. }
  482. .addToCart{
  483. width: auto;
  484. flex: 1;
  485. height: .5rem;
  486. }
  487. .productImgContainer{
  488. width: 4.8rem;
  489. }
  490. .prImgList .prImgItem{
  491. width: 1.01rem;
  492. height: 1.01rem;
  493. }
  494. .productInfoContainer{
  495. min-height: 6.3rem;
  496. }
  497. }
  498. @media (max-width: 1080px) {
  499. .sectionContainer{
  500. padding: 0 .24rem;
  501. }
  502. .productContainer{
  503. display: block;
  504. }
  505. .productImgContainer{
  506. width: 7rem;
  507. margin: 0 auto;
  508. }
  509. .prViewImgBox{
  510. height: 7rem;
  511. }
  512. .prImgList .prImgItem{
  513. width: 1.56rem;
  514. height: 1.56rem;
  515. }
  516. .productInfoContainer{
  517. margin-top: .4rem;
  518. margin-left: 0;
  519. height: auto;
  520. min-height: auto;
  521. }
  522. .productTitle{
  523. padding-top: .24rem;
  524. }
  525. #numberInput{
  526. width: 1.2rem;
  527. }
  528. .productNContainer{
  529. padding: .20rem 0;
  530. margin-top: .12rem;
  531. }
  532. .productNumberBox{
  533. height: .64rem;
  534. }
  535. .numberReduce,.numberAdd{
  536. width: .64rem;
  537. }
  538. .addToCart{
  539. height: .64rem;
  540. font-size: .22rem;
  541. }
  542. .articleTabTitle{
  543. font-size: .26rem;
  544. padding-top: .16rem;
  545. }
  546. .articleTitle{
  547. font-size: .32rem;
  548. }
  549. #richTextContainer,
  550. #richTextContainer h1,
  551. #richTextContainer h2,
  552. #richTextContainer h3,
  553. #richTextContainer h4,
  554. #richTextContainer h5,
  555. #richTextContainer h6,
  556. #richTextContainer p,
  557. #richTextContainer ul,
  558. #richTextContainer ol {
  559. font-size: .24rem;
  560. }
  561. .fixedAddSection{
  562. height: 1.2rem;
  563. }
  564. .fPrInfo{
  565. display: none;
  566. }
  567. .fPrNumberContainer{
  568. flex: 1;
  569. }
  570. .fPrPrice{
  571. flex: 1;
  572. font-size: .28rem;
  573. }
  574. .fPrNumberBox{
  575. height: .5rem;
  576. }
  577. .fPrNumberReduce,.fPrNumberAdd{
  578. width: .5rem;
  579. font-size: .22rem;
  580. }
  581. #fPrNumberInput{
  582. font-size: .22rem;
  583. width: 1rem;
  584. }
  585. .fPrAddToCart{
  586. height: .6rem;
  587. font-size: .2rem;
  588. }
  589. }
  590. @media (max-width: 750px) {
  591. .prViewImgBox{
  592. width: 100%;
  593. }
  594. .reviewItem{
  595. display: block;
  596. }
  597. .userInfo{
  598. margin-bottom: .16rem;
  599. }
  600. .userImg{
  601. width: .6rem;
  602. height: .6rem;
  603. }
  604. .userName{
  605. font-size: .22rem;
  606. }
  607. .starBox img{
  608. width: .28rem;
  609. }
  610. .reviewValues{
  611. font-size: .2rem;
  612. }
  613. .reviewItem{
  614. padding-bottom: .24rem;
  615. margin-bottom: .24rem;
  616. }
  617. #prevPage,#nextPage{
  618. font-size: .22rem;
  619. height: .52rem;
  620. }
  621. }