productDetails.css 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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. #richTextConatiner,
  253. #richTextConatiner h1,
  254. #richTextConatiner h2,
  255. #richTextConatiner h3,
  256. #richTextConatiner h4,
  257. #richTextConatiner h5,
  258. #richTextConatiner h6,
  259. #richTextConatiner p,
  260. #richTextConatiner ul,
  261. #richTextConatiner ol {
  262. font-style: .24rem;
  263. color: #434343;
  264. line-height: 1.5;
  265. margin-bottom: .32rem;
  266. word-break: break-all;
  267. }
  268. .fixedAddSection{
  269. display: none;
  270. position: fixed;
  271. left: 0;
  272. right: 0;
  273. bottom: 0;
  274. z-index: 9999;
  275. height: 1.1rem;
  276. background: #FFF;
  277. -webkit-box-shadow: 0 -.02rem .05rem rgba(0,0,0,.01);
  278. box-shadow: 0 -.02rem .05rem rgba(0,0,0,.01);
  279. }
  280. .fixedAddContainer{
  281. height: 100%;
  282. display: flex;
  283. justify-content: center;
  284. }
  285. .fixedAddBox{
  286. display: flex;
  287. justify-content: space-between;
  288. align-items: center;
  289. height: 100%;
  290. }
  291. .fPrInfo{
  292. display: flex;
  293. align-items: center;
  294. flex: 1;
  295. }
  296. .fPrInfo img{
  297. width: .67rem;
  298. height: .67rem;
  299. }
  300. .fPrInfo .fTitle{
  301. color: #666666;
  302. font-size: .18rem;
  303. padding-left: .12rem;
  304. font-weight: 400;
  305. }
  306. .fPrNumberContainer{
  307. display: flex;
  308. align-items: center;
  309. box-sizing: border-box;
  310. cursor: pointer;
  311. }
  312. .fPrPrice{
  313. color: #333333;
  314. font-size: .24rem;
  315. font-weight: bold;
  316. padding-right: .24rem;
  317. }
  318. .fPrNumberBox{
  319. display: flex;
  320. align-items: center;
  321. border: .02rem solid rgba(0, 0, 0, .1);
  322. height: .4rem;
  323. }
  324. .fPrNumberReduce,.fPrNumberAdd{
  325. height: 100%;
  326. width: .4rem;
  327. border-right: .02rem solid rgba(0, 0, 0, .1);
  328. display: flex;
  329. align-items: center;
  330. justify-content: center;
  331. font-size: .18rem;
  332. }
  333. .fPrNumberAdd{
  334. border-right: none;
  335. border-left: .02rem solid rgba(0, 0, 0, .1);
  336. }
  337. #fPrNumberInput{
  338. height: 100%;
  339. flex: 1;
  340. font-size: .18rem;
  341. border: none;
  342. width: .4rem;
  343. text-align: center;
  344. }
  345. .fPrAddToCart{
  346. background-color: rgba(191, 77, 240, 1);
  347. height: .4rem;
  348. display: flex;
  349. align-items: center;
  350. justify-content: center;
  351. width: 2.1rem;
  352. color: #fff;
  353. font-weight: bold;
  354. font-size: .18rem;
  355. cursor: pointer;
  356. margin-left: .24rem;
  357. border-radius: .08rem;
  358. }
  359. .fPrAddToCart .tag{
  360. font-weight: 400;
  361. margin-right: .08rem;
  362. }
  363. @media (max-width: 1320px) {
  364. .sectionContainer{
  365. padding: 0 .12rem;
  366. }
  367. .fixedAddBox{
  368. padding: 0 .12rem;
  369. }
  370. .productContainer{
  371. }
  372. .productImgContainer{
  373. width: 5.4rem;
  374. }
  375. .prViewImgBox{
  376. height: 5rem;
  377. }
  378. .prImgList .prImgItem{
  379. width: 1.16rem;
  380. height: 1.16rem;
  381. }
  382. .productInfoContainer{
  383. min-height: 6.46rem;
  384. }
  385. }
  386. @media (max-width: 1199px) {
  387. .elementorContainer{
  388. width: 100%;
  389. max-width: none;
  390. }
  391. .productInfoContainer{
  392. padding-left: .24rem;
  393. }
  394. .productNumberBox{
  395. height: .5rem;
  396. }
  397. .numberReduce, .numberAdd{
  398. width: .5rem;
  399. }
  400. .addToCart{
  401. width: auto;
  402. flex: 1;
  403. height: .5rem;
  404. }
  405. .productImgContainer{
  406. width: 4.8rem;
  407. }
  408. .prImgList .prImgItem{
  409. width: 1.01rem;
  410. height: 1.01rem;
  411. }
  412. .productInfoContainer{
  413. min-height: 6.3rem;
  414. }
  415. }
  416. @media (max-width: 1080px) {
  417. .sectionContainer{
  418. padding: 0 .24rem;
  419. }
  420. .productContainer{
  421. display: block;
  422. }
  423. .productImgContainer{
  424. width: 7rem;
  425. margin: 0 auto;
  426. }
  427. .prViewImgBox{
  428. height: 7rem;
  429. }
  430. .prImgList .prImgItem{
  431. width: 1.56rem;
  432. height: 1.56rem;
  433. }
  434. .productInfoContainer{
  435. margin-top: .4rem;
  436. margin-left: 0;
  437. height: auto;
  438. min-height: auto;
  439. }
  440. .productTitle{
  441. padding-top: .24rem;
  442. }
  443. #numberInput{
  444. width: 1.2rem;
  445. }
  446. .productNContainer{
  447. padding: .20rem 0;
  448. margin-top: .12rem;
  449. }
  450. .productNumberBox{
  451. height: .64rem;
  452. }
  453. .numberReduce,.numberAdd{
  454. width: .64rem;
  455. }
  456. .addToCart{
  457. height: .64rem;
  458. font-size: .22rem;
  459. }
  460. .articleTabTitle{
  461. font-size: .26rem;
  462. padding-top: .16rem;
  463. }
  464. .articleTitle{
  465. font-size: .32rem;
  466. }
  467. #richTextConatiner,
  468. #richTextConatiner h1,
  469. #richTextConatiner h2,
  470. #richTextConatiner h3,
  471. #richTextConatiner h4,
  472. #richTextConatiner h5,
  473. #richTextConatiner h6,
  474. #richTextConatiner p,
  475. #richTextConatiner ul,
  476. #richTextConatiner ol {
  477. font-size: .24rem;
  478. }
  479. .fixedAddSection{
  480. height: 1.2rem;
  481. }
  482. .fPrInfo{
  483. display: none;
  484. }
  485. .fPrNumberContainer{
  486. flex: 1;
  487. }
  488. .fPrPrice{
  489. flex: 1;
  490. font-size: .28rem;
  491. }
  492. .fPrNumberBox{
  493. height: .5rem;
  494. }
  495. .fPrNumberReduce,.fPrNumberAdd{
  496. width: .5rem;
  497. font-size: .22rem;
  498. }
  499. #fPrNumberInput{
  500. font-size: .22rem;
  501. width: 1rem;
  502. }
  503. .fPrAddToCart{
  504. height: .6rem;
  505. font-size: .2rem;
  506. }
  507. }
  508. @media (max-width: 750px) {
  509. .prViewImgBox{
  510. width: 100%;
  511. }
  512. }