productDetails.css 14 KB

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