productDetails.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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: #ef3452;
  76. color: #fff;
  77. text-align: center;
  78. line-height: 30px;
  79. cursor: pointer;
  80. display: none;
  81. border-radius: 30%;
  82. }
  83. .prevArrow {
  84. left: 10px;
  85. }
  86. .nextArrow {
  87. right: 10px;
  88. }
  89. .productInfoContainer{
  90. flex: 1;
  91. border: .02rem solid rgba(0, 0, 0, .1);
  92. min-height: 8.36rem;
  93. margin-left: .34rem;
  94. padding: 0 .28rem;
  95. display: flex;
  96. flex-direction: column;
  97. justify-content: space-between;
  98. box-sizing: border-box;
  99. }
  100. .productTitle{
  101. color: #434343;
  102. line-height: 1.6;
  103. padding-top: .6rem;
  104. font-size: .24rem;
  105. word-break: break-all;
  106. }
  107. .productPrice p{
  108. color: #333333;
  109. font-weight: bold;
  110. font-size: .32rem;
  111. padding-top: .32rem;
  112. }
  113. .productPrice p span{
  114. padding-right: .02rem;
  115. }
  116. /* 新增开始 */
  117. .tasteContainer{
  118. border-top: .01rem solid rgba(0, 0, 0, .1);
  119. padding-top: .32rem;
  120. }
  121. .tasteItem{
  122. display: flex;
  123. align-items: center;
  124. gap: .16rem;
  125. margin-bottom: .10rem;
  126. }
  127. .tasteInput{
  128. height: 100%;
  129. flex: 1;
  130. font-size: .16rem;
  131. border: none;
  132. width: .3rem;
  133. text-align: center;
  134. }
  135. .tasteNumberBox{
  136. display: flex;
  137. align-items: center;
  138. height: .3rem;
  139. box-sizing: border-box;
  140. border: .01rem solid rgba(0, 0, 0, .1);
  141. cursor: pointer;
  142. }
  143. .tasteReduce,.tasteAdd{
  144. height: 100%;
  145. width: .28rem;
  146. border-right: .01rem solid rgba(0, 0, 0, .1);
  147. display: flex;
  148. align-items: center;
  149. justify-content: center;
  150. font-size: .18rem;
  151. }
  152. .tasteAdd{
  153. border-right: none;
  154. border-left: .01rem solid rgba(0, 0, 0, .1);
  155. }
  156. .tasteImg{
  157. width: .3rem;
  158. height: .3rem;
  159. border-radius: .02rem;
  160. object-fit: cover;
  161. }
  162. .tasteTitle{
  163. font-size: .14rem;
  164. flex: 1;
  165. overflow: hidden;
  166. text-overflow: ellipsis;
  167. white-space: nowrap;
  168. max-width: 3rem;
  169. }
  170. /* 新增结束 */
  171. .productNContainer{
  172. display: flex;
  173. align-items: center;
  174. padding: .28rem 0;
  175. border-top: .02rem solid rgba(0, 0, 0, .02);
  176. border-bottom: .02rem solid rgba(0, 0, 0, .02);
  177. margin-bottom: .24rem;
  178. }
  179. .productNumberBox{
  180. display: flex;
  181. align-items: center;
  182. height: .62rem;
  183. box-sizing: border-box;
  184. border: .02rem solid rgba(0, 0, 0, .1);
  185. cursor: pointer;
  186. }
  187. .numberReduce,.numberAdd{
  188. height: 100%;
  189. width: .6rem;
  190. border-right: .02rem solid rgba(0, 0, 0, .1);
  191. display: flex;
  192. align-items: center;
  193. justify-content: center;
  194. font-size: .2rem;
  195. }
  196. .numberAdd{
  197. border-right: none;
  198. border-left: .02rem solid rgba(0, 0, 0, .1);
  199. }
  200. #numberInput{
  201. height: 100%;
  202. flex: 1;
  203. font-size: .2rem;
  204. border: none;
  205. width: .8rem;
  206. text-align: center;
  207. }
  208. .addToCart{
  209. background-color: rgba(191, 77, 240, 1);
  210. height: .62rem;
  211. display: flex;
  212. align-items: center;
  213. justify-content: center;
  214. width: 3rem;
  215. color: #fff;
  216. font-weight: bold;
  217. font-size: .2rem;
  218. cursor: pointer;
  219. margin-left: .24rem;
  220. border-radius: .08rem;
  221. }
  222. .addToCart .tag{
  223. font-weight: 400;
  224. margin-right: .08rem;
  225. }
  226. .safeContainer{
  227. width: 100%;
  228. min-height: .9rem;
  229. border: .02rem solid rgba(0, 0, 0, .05);
  230. border-radius: .06rem;
  231. position: relative;
  232. margin-bottom: .32rem;
  233. }
  234. .safeContainer .safeTag{
  235. position: absolute;
  236. height: .2rem;
  237. padding: 0 .12rem;
  238. background: #F8F8F8;
  239. font-size: .16rem;
  240. color: #666666;
  241. left: 50%;
  242. transform: translateX(-50%);
  243. top: -.1rem;
  244. z-index: 1;
  245. }
  246. .safeList{
  247. display: flex;
  248. flex-wrap: wrap;
  249. gap: .12rem;
  250. align-items: center;
  251. justify-content: center;
  252. padding-top: .28rem;
  253. padding-bottom: .12rem;
  254. }
  255. .safeList .safeItem{
  256. width: .6rem;
  257. height: .42rem;
  258. }
  259. .safeList .safeItem img{
  260. width: 100%;
  261. height: 100%;
  262. }
  263. .articleContainer{
  264. }
  265. .articleTabBox{
  266. display: flex;
  267. border-top: .02rem solid rgba(0, 0, 0, .1);
  268. }
  269. .articleTabItem{
  270. position: relative;
  271. min-width: .6rem;
  272. margin-right: .24rem;
  273. cursor: pointer;
  274. }
  275. .articleTabItem .tabTag{
  276. width: 80%;
  277. left: 0;
  278. top: -.04rem;
  279. height: .08rem;
  280. background-color: rgba(191, 77, 240, 1);
  281. z-index: 1;
  282. display: none;
  283. position: absolute;
  284. }
  285. .articleTabTitle{
  286. font-size: .2rem;
  287. font-weight: 400;
  288. padding-top: .12rem;
  289. color: #666666;
  290. display: flex;
  291. align-items: center;
  292. }
  293. .active .articleTabTitle{
  294. font-weight: bold;
  295. color: #333333;
  296. }
  297. .active .tabTag{
  298. display: block;
  299. }
  300. .articleInfo{
  301. padding: .36rem 0;
  302. }
  303. .articleTitle{
  304. color: #333333;
  305. font-size: .28rem;
  306. line-height: 1.4;
  307. }
  308. #richTextContainer,
  309. #richTextContainer p,
  310. #richTextContainer span,
  311. #richTextContainer h1,
  312. #richTextContainer h2,
  313. #richTextContainer h3,
  314. #richTextContainer h4,
  315. #richTextContainer h5,
  316. #richTextContainer h6,
  317. #richTextContainer p,
  318. #richTextContainer ul,
  319. #richTextContainer ol {
  320. font-size: .2rem;
  321. color: #434343;
  322. line-height: 1.5;
  323. /*
  324. margin-bottom: .32rem;
  325. */
  326. word-break: break-all;
  327. }
  328. #richTextContainer img{
  329. max-width: 100%;
  330. vertical-align: middle;
  331. }
  332. .fixedAddSection{
  333. display: none;
  334. position: fixed;
  335. left: 0;
  336. right: 0;
  337. bottom: 0;
  338. z-index: 9999;
  339. height: 1.1rem;
  340. background: #FFF;
  341. -webkit-box-shadow: 0 -.02rem .05rem rgba(0,0,0,.01);
  342. box-shadow: 0 -.02rem .05rem rgba(0,0,0,.01);
  343. }
  344. .fixedAddContainer{
  345. height: 100%;
  346. display: flex;
  347. justify-content: center;
  348. }
  349. .fixedAddBox{
  350. display: flex;
  351. justify-content: space-between;
  352. align-items: center;
  353. height: 100%;
  354. }
  355. .fPrInfo{
  356. display: flex;
  357. align-items: center;
  358. flex: 1;
  359. }
  360. .fPrInfo img{
  361. width: .67rem;
  362. height: .67rem;
  363. }
  364. .fPrInfo .fTitle{
  365. color: #666666;
  366. font-size: .18rem;
  367. padding-left: .12rem;
  368. font-weight: 400;
  369. }
  370. .fPrNumberContainer{
  371. display: flex;
  372. align-items: center;
  373. box-sizing: border-box;
  374. cursor: pointer;
  375. }
  376. .fPrPrice{
  377. color: #333333;
  378. font-size: .24rem;
  379. font-weight: bold;
  380. padding-right: .24rem;
  381. }
  382. .fPrNumberBox{
  383. display: flex;
  384. align-items: center;
  385. border: .02rem solid rgba(0, 0, 0, .1);
  386. height: .4rem;
  387. }
  388. .fPrNumberReduce,.fPrNumberAdd{
  389. height: 100%;
  390. width: .4rem;
  391. border-right: .02rem solid rgba(0, 0, 0, .1);
  392. display: flex;
  393. align-items: center;
  394. justify-content: center;
  395. font-size: .18rem;
  396. }
  397. .fPrNumberAdd{
  398. border-right: none;
  399. border-left: .02rem solid rgba(0, 0, 0, .1);
  400. }
  401. #fPrNumberInput{
  402. height: 100%;
  403. flex: 1;
  404. font-size: .18rem;
  405. border: none;
  406. width: .4rem;
  407. text-align: center;
  408. }
  409. .fPrAddToCart{
  410. background-color: rgba(191, 77, 240, 1);
  411. height: .4rem;
  412. display: flex;
  413. align-items: center;
  414. justify-content: center;
  415. width: 2.1rem;
  416. color: #fff;
  417. font-weight: bold;
  418. font-size: .18rem;
  419. cursor: pointer;
  420. margin-left: .24rem;
  421. border-radius: .08rem;
  422. }
  423. .fPrAddToCart .tag{
  424. font-weight: 400;
  425. margin-right: .08rem;
  426. }
  427. #reviewsInfo{
  428. padding: .36rem 0;
  429. display: none;
  430. }
  431. .reviewItem{
  432. display: flex;
  433. align-items: flex-start;
  434. margin-bottom: .24rem;
  435. border-bottom: .02rem solid rgba(0, 0, 0, .02);
  436. padding-bottom: .12rem;
  437. }
  438. .userInfo{
  439. display: flex;
  440. align-items: center;
  441. padding-right: .24rem;
  442. }
  443. .userImg{
  444. background-color: #F8F8F8;
  445. width: .4rem;
  446. height: .4rem;
  447. border-radius: 50%;
  448. overflow: hidden;
  449. font-size: 0;
  450. }
  451. .userImg img{
  452. width: 100%;
  453. height: 100%;
  454. }
  455. .userName{
  456. font-size: .17rem;
  457. color: #434343;
  458. padding-left: .12rem;
  459. max-width: 1rem;
  460. overflow: hidden;
  461. text-overflow: ellipsis;
  462. white-space: nowrap;
  463. }
  464. .reInfo{
  465. flex: 1;
  466. }
  467. .starBox{
  468. display: flex;
  469. align-items: center;
  470. gap: .08rem;
  471. margin-bottom: .12rem;
  472. font-size: 0;
  473. }
  474. .starBox img{
  475. width: .2rem;
  476. }
  477. .reviewValues{
  478. font-size: .16rem;
  479. line-height: 1.5;
  480. word-break: break-all;
  481. font-weight: 400;
  482. }
  483. #loadingIndicator{
  484. text-align: center;
  485. font-size: .16rem;
  486. color: #999999;
  487. padding-bottom: .24rem;
  488. }
  489. #reviewsButtonContainer{
  490. display: block;
  491. }
  492. #reviewsButtonBox{
  493. display: flex;
  494. align-items: center;
  495. gap: .24rem;
  496. justify-content: flex-end;
  497. }
  498. #prevPage,#nextPage{
  499. color: #fff;
  500. height: .4rem;
  501. padding: 0 .16rem;
  502. border-radius: .04rem;
  503. background-color: rgba(79, 73, 222, 1);
  504. display: flex;
  505. align-items: center;
  506. cursor: pointer;
  507. }
  508. @media (max-width: 1320px) {
  509. .sectionContainer{
  510. padding: 0 .12rem;
  511. }
  512. .fixedAddBox{
  513. padding: 0 .12rem;
  514. }
  515. .productContainer{
  516. }
  517. .productImgContainer{
  518. width: 5.4rem;
  519. }
  520. .prViewImgBox{
  521. height: 5rem;
  522. }
  523. .prImgList .prImgItem{
  524. width: 1.16rem;
  525. height: 1.16rem;
  526. }
  527. .productInfoContainer{
  528. min-height: 6.46rem;
  529. }
  530. }
  531. @media (max-width: 1199px) {
  532. .elementorContainer{
  533. width: 100%;
  534. max-width: none;
  535. }
  536. .productInfoContainer{
  537. padding-left: .24rem;
  538. }
  539. .productNumberBox{
  540. height: .5rem;
  541. }
  542. .numberReduce, .numberAdd{
  543. width: .5rem;
  544. }
  545. .addToCart{
  546. width: auto;
  547. flex: 1;
  548. height: .5rem;
  549. }
  550. .productImgContainer{
  551. width: 4.8rem;
  552. }
  553. .prImgList .prImgItem{
  554. width: 1.01rem;
  555. height: 1.01rem;
  556. }
  557. .productInfoContainer{
  558. min-height: 6.3rem;
  559. }
  560. }
  561. @media (max-width: 1080px) {
  562. .sectionContainer{
  563. padding: 0 .24rem;
  564. }
  565. .productContainer{
  566. display: block;
  567. }
  568. .productImgContainer{
  569. width: 7rem;
  570. margin: 0 auto;
  571. }
  572. .prViewImgBox{
  573. height: 7rem;
  574. }
  575. .prImgList .prImgItem{
  576. width: 1.56rem;
  577. height: 1.56rem;
  578. }
  579. .productInfoContainer{
  580. margin-top: .4rem;
  581. margin-left: 0;
  582. height: auto;
  583. min-height: auto;
  584. }
  585. .productTitle{
  586. padding-top: .24rem;
  587. }
  588. #numberInput{
  589. width: 1.2rem;
  590. }
  591. .productNContainer{
  592. padding: .20rem 0;
  593. margin-top: .12rem;
  594. }
  595. .productNumberBox{
  596. height: .64rem;
  597. }
  598. .numberReduce,.numberAdd{
  599. width: .64rem;
  600. }
  601. .addToCart{
  602. height: .64rem;
  603. font-size: .22rem;
  604. }
  605. .articleTabTitle{
  606. font-size: .26rem;
  607. padding-top: .16rem;
  608. }
  609. .articleTitle{
  610. font-size: .32rem;
  611. }
  612. #richTextContainer,
  613. #richTextContainer h1,
  614. #richTextContainer h2,
  615. #richTextContainer h3,
  616. #richTextContainer h4,
  617. #richTextContainer h5,
  618. #richTextContainer h6,
  619. #richTextContainer p,
  620. #richTextContainer ul,
  621. #richTextContainer ol {
  622. font-size: .2rem;
  623. color: #434343;
  624. line-height: 1.5;
  625. margin-bottom: .32rem;
  626. word-break: break-all !important;
  627. }
  628. #richTextContainer{
  629. overflow-x: scroll;
  630. }
  631. .fixedAddSection{
  632. height: 1.2rem;
  633. }
  634. .fPrInfo{
  635. display: none;
  636. }
  637. .fPrNumberContainer{
  638. flex: 1;
  639. }
  640. .fPrPrice{
  641. flex: 1;
  642. font-size: .28rem;
  643. }
  644. .fPrNumberBox{
  645. height: .5rem;
  646. }
  647. .fPrNumberReduce,.fPrNumberAdd{
  648. width: .5rem;
  649. font-size: .22rem;
  650. }
  651. #fPrNumberInput{
  652. font-size: .22rem;
  653. width: 1rem;
  654. }
  655. .fPrAddToCart{
  656. height: .6rem;
  657. font-size: .2rem;
  658. }
  659. /* 新增开始 */
  660. .tasteNumberBox{
  661. height: .4rem;
  662. }
  663. .tasteInput{
  664. width: .5rem;
  665. font-size: .2rem;
  666. }
  667. .tasteReduce,.tasteAdd{
  668. width: .5rem;
  669. font-size: .2rem;
  670. }
  671. .tasteImg{
  672. width: .5rem;
  673. height: .5rem;
  674. }
  675. .tasteTitle{
  676. max-width: 4rem;
  677. font-size: .18rem;
  678. }
  679. /* 新增结束 */
  680. }
  681. @media (max-width: 750px) {
  682. .prViewImgBox{
  683. width: 100%;
  684. }
  685. .reviewItem{
  686. display: block;
  687. }
  688. .userInfo{
  689. margin-bottom: .16rem;
  690. }
  691. .userImg{
  692. width: .6rem;
  693. height: .6rem;
  694. }
  695. .userName{
  696. font-size: .22rem;
  697. }
  698. .starBox img{
  699. width: .28rem;
  700. }
  701. .reviewValues{
  702. font-size: .2rem;
  703. }
  704. .reviewItem{
  705. padding-bottom: .24rem;
  706. margin-bottom: .24rem;
  707. }
  708. /* 新增开始 */
  709. .tasteNumberBox{
  710. height: .5rem;
  711. }
  712. .tasteInput{
  713. width: .6rem;
  714. font-size: .22rem;
  715. }
  716. .tasteReduce,.tasteAdd{
  717. width: .6rem;
  718. font-size: .22rem;
  719. }
  720. .tasteImg{
  721. width: .6rem;
  722. height: .6rem;
  723. }
  724. .tasteTitle{
  725. font-size: .2rem;
  726. }
  727. /* 新增结束 */
  728. #prevPage,#nextPage{
  729. font-size: .22rem;
  730. height: .52rem;
  731. }
  732. }