productDetails.css 14 KB

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