common.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. *{
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html {
  6. -webkit-text-size-adjust: 100%;
  7. -ms-text-size-adjust: 100%;
  8. /* 解决IOS默认滑动很卡的情况 */
  9. -webkit-overflow-scrolling : touch;
  10. }
  11. body{
  12. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  13. font-size: .16rem;
  14. }
  15. /* 禁止缩放表单 */
  16. input[type="submit"], input[type="reset"], input[type="button"], input {
  17. resize: none;
  18. border: none;
  19. }
  20. ol,li,ul,dl,dt,dd{
  21. list-style:none;
  22. }
  23. img{
  24. height: auto;
  25. object-fit: cover;
  26. }
  27. em, i {
  28. font-style: normal;
  29. }
  30. textarea {
  31. resize:none;
  32. }
  33. p {
  34. word-wrap:break-word;
  35. }
  36. a{
  37. text-decoration: none;
  38. color: inherit;
  39. outline: none;
  40. -moz-outline-style: none;
  41. }
  42. a:active, a:focus {
  43. outline: none;
  44. }
  45. .textEllipsis{
  46. text-overflow: ellipsis;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. }
  50. .sectionContainer{
  51. display: flex;
  52. justify-content: center;
  53. }
  54. .elementorContainer{
  55. max-width: 13.2rem;
  56. flex: 1;
  57. -moz-box-sizing: border-box;
  58. -webkit-box-sizing: border-box;
  59. box-sizing: border-box;
  60. }
  61. /* <-- start 头部模块 */
  62. .headerContainer{
  63. width: 100%;
  64. background-color: #FFF;
  65. position: sticky;
  66. top: 0;
  67. left: 0;
  68. right: 0;
  69. z-index: 99;
  70. -webkit-box-shadow: 0 .02rem .05rem rgba(0,0,0,.03);
  71. box-shadow: 0 .02rem .05rem rgba(0,0,0,.03);
  72. }
  73. .warnContainer{
  74. background-color: #434344;
  75. width: 100%;
  76. height: .5rem;
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. }
  81. .warnContainer .warnText{
  82. max-width: 13.2rem;
  83. word-break: break-all;
  84. line-height: 1.4;
  85. font-weight: bold;
  86. font-size: .16rem;
  87. color: rgba(255, 255, 255, .7);
  88. }
  89. /* PC端头部 */
  90. #computerEndHeader{
  91. width: 13.2rem;
  92. height: .7rem;
  93. margin: 0 auto;
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. cursor: pointer;
  98. }
  99. #computerEndHeader .computerLogo{
  100. color: rgba(79, 73, 222, 1);
  101. font-weight: bold;
  102. font-size: .28rem;
  103. padding-right: .5rem;
  104. }
  105. #computerEndHeader .computerLogo img{
  106. height: .36rem;
  107. width: auto;
  108. }
  109. .headNavContainer{
  110. flex: 1;
  111. display: flex;
  112. align-items: center;
  113. height: 100%;
  114. overflow: hidden;
  115. }
  116. .headNavItem{
  117. height: .7rem;
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. position: relative;
  122. margin-right: .36rem;
  123. }
  124. .headNavItem .headNavTitle{
  125. padding: 0 .28rem;
  126. font-weight: bold;
  127. color: #333333;
  128. font-size: .22rem;
  129. position: relative;
  130. z-index: 2;
  131. letter-spacing: .02rem;
  132. min-width: 1.5rem;
  133. }
  134. .headNavItem.active .headNavTitle{
  135. color: #FFFFFF;
  136. font-size: .24rem;
  137. }
  138. .headNavItem.active .back{
  139. position: absolute;
  140. width: 100%;
  141. height: 116%;
  142. top: -8%;
  143. left: 0;
  144. border-radius: .04rem;
  145. background-color: rgba(79, 73, 222, 1);
  146. z-index: 1;
  147. }
  148. .headIconContainer{
  149. display: flex;
  150. align-items: center;
  151. height: 100%;
  152. }
  153. .headIconContainer .headIconItem{
  154. padding: 0 .2rem;
  155. height: .7rem;
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. }
  160. .headIconContainer .headIconItem img{
  161. height: .24rem;
  162. }
  163. .headIconContainer .headIconItem .cart img{
  164. height: .28rem;
  165. }
  166. /* 移动端头部 */
  167. #mobileEndHeader{
  168. display: none;
  169. position: relative;
  170. }
  171. .mobileEndHeaderConten{
  172. padding: 0 .24rem;
  173. height:.9rem;
  174. display: flex;
  175. flex: 1;
  176. align-items: center;
  177. justify-content: space-between;
  178. }
  179. .mobileEndHeaderConten .mobileLogo{
  180. color: rgba(79, 73, 222, 1);
  181. font-weight: bold;
  182. font-size: .28rem;
  183. padding-right: .5rem;
  184. }
  185. .mobileEndHeaderConten .mobileLogo img{
  186. height: .4rem;
  187. width: auto;
  188. }
  189. .mobileUserIconList{
  190. display: flex;
  191. flex: 1;
  192. align-items: center;
  193. justify-content: flex-end;
  194. padding-right: .24rem;
  195. }
  196. .mobileUserIcon img{
  197. height: .3rem;
  198. }
  199. #mobileMenuBot {
  200. height: .4rem;
  201. display: flex;
  202. align-items: center;
  203. }
  204. #mobileMenuLink {
  205. display: block;
  206. position: relative;
  207. width: .42rem;
  208. height: .06rem;
  209. background-color: #666666;
  210. border-radius: .08rem;
  211. }
  212. #mobileMenuLink:before,
  213. #mobileMenuLink:after {
  214. content: '';
  215. display: block;
  216. width: 100%;
  217. height: 100%;
  218. border-radius: .08rem;
  219. margin-top: .13rem;
  220. position: absolute;
  221. background: #666666;
  222. -webkit-transition-property: margin, -webkit-transform;
  223. transition-property: margin, -webkit-transform;
  224. transition-property: margin, transform;
  225. transition-property: margin, transform, -webkit-transform;
  226. -webkit-transition-duration: 200ms;
  227. transition-duration: 200ms;
  228. }
  229. #mobileMenuLink:before {
  230. margin-top: -.13rem;
  231. }
  232. #mobileMenuLink:after {
  233. margin-top: .13rem;
  234. }
  235. .open #mobileMenuLink {
  236. background: none
  237. }
  238. .open #mobileMenuLink:before {
  239. margin-top: 0;
  240. transform: rotate(45deg);
  241. -moz-transform: rotate(45deg);
  242. -webkit-transform: rotate(45deg);
  243. -o-transform: rotate(45deg);
  244. }
  245. .open #mobileMenuLink:after {
  246. margin-top: 0;
  247. transform: rotate(-45deg);
  248. -moz-transform: rotate(-45deg);
  249. -webkit-transform: rotate(-45deg);
  250. -o-transform: rotate(-45deg);
  251. }
  252. .open #mobileMenuLink:before,
  253. .open #mobileMenuLink:after {
  254. background: #666666;
  255. }
  256. .mobileMenuFixed{
  257. position: absolute;
  258. background: white;
  259. border-radius: .12rem;
  260. min-width: 3rem;
  261. max-width: 5rem;
  262. padding: .12rem .24rem;
  263. top: 1rem;
  264. right: .08rem;
  265. z-index: 999;
  266. display: none;
  267. }
  268. .mobileMenuItem{
  269. border-bottom: .01rem solid #dfdfdf;
  270. }
  271. .mobileMenuFixed .mobileMenuItem:last-child{
  272. border: none;
  273. }
  274. .mobileMenuItem .menuItemTitle{
  275. height: .8rem;
  276. display: flex;
  277. align-items: center;
  278. font-size: .22rem;
  279. overflow: hidden;
  280. text-overflow: ellipsis;
  281. white-space: nowrap;
  282. color: #434343;
  283. }
  284. .mobileMenuItem.active .menuItemTitle{
  285. color: rgba(79, 73, 222, 1);
  286. }
  287. /* end 头部模块 --> */
  288. /* start 年龄提示模块 --> */
  289. .maskContainer{
  290. position: fixed;
  291. width: 100vw;
  292. height: 100vh;
  293. z-index: 999;
  294. top: 0;
  295. right: 0;
  296. bottom: 0;
  297. left: 0;
  298. background-color: rgba(0, 0, 0, .5);
  299. display: none;
  300. }
  301. .ageReminderBox{
  302. width: 7rem;
  303. background-color: #FFF;
  304. height: 3.8rem;
  305. left: 50%;
  306. transform: translateX(-50%);
  307. top: 30%;
  308. position: absolute;
  309. }
  310. .ageReminderBack{
  311. position: absolute;
  312. z-index: 1;
  313. height: 100%;
  314. width: 100%;
  315. top: 0;
  316. left: 0;
  317. }
  318. .ageReminderInfo{
  319. position: relative;
  320. z-index: 2;
  321. margin-left: .32rem;
  322. padding-top: 1rem;
  323. color: #fff;
  324. }
  325. .ageReminderInfo h3{
  326. line-height: 1.4;
  327. font-size: .36rem;
  328. max-width: 60%;
  329. font-weight: bold;
  330. }
  331. .ageReminderInfo .ageReminderButBox{
  332. display: flex;
  333. align-items: center;
  334. padding-top: .32rem;
  335. }
  336. .ageReminderInfo .ageReminderButBox .ageRBut{
  337. color: rgba(237, 109, 244, 1);
  338. background-color: #fff;
  339. display: flex;
  340. align-items: center;
  341. justify-content: center;
  342. height: .56rem;
  343. border-radius: .08rem;
  344. font-size: .22rem;
  345. font-weight: bold;
  346. min-width: 1.6rem;
  347. padding: 0 .12rem;
  348. margin-right: .32rem;
  349. cursor: pointer;
  350. }
  351. /* end 年龄提示模块 --> */
  352. /* <-- start 底部模块 */
  353. .footerContainer{
  354. width: 100%;
  355. background-color: rgba(32, 32, 32, 1);
  356. position: relative;
  357. z-index: 10;
  358. }
  359. .warningContainer{
  360. background-color: gray;
  361. }
  362. .warningBox{
  363. padding: .16rem 0;
  364. color: rgba(255, 255, 255, .8);
  365. font-size: .15rem;
  366. line-height: 1.4;
  367. }
  368. .footerConter{
  369. color: #FFF;
  370. padding-top: .3rem;
  371. padding-bottom: .24rem;
  372. display: flex;
  373. }
  374. .leftText{
  375. max-width: 2rem;
  376. margin-right: .8rem;
  377. }
  378. .leftText .ltK{
  379. font-weight: bold;
  380. font-size: .18rem;
  381. word-break: break-all;
  382. padding-bottom: .06rem;
  383. }
  384. .leftText .ltV{
  385. font-size: .14rem;
  386. color: rgba(255, 255, 255, .6);
  387. word-break: break-all;
  388. }
  389. .footerInuptBox{
  390. background: #FFF;
  391. flex: 1;
  392. height: .5rem;
  393. display: flex;
  394. justify-content: space-between;
  395. align-items: center;
  396. padding: 0 .16rem 0 .12rem;
  397. max-width: 5rem;
  398. margin-right: 1.5rem;
  399. }
  400. .footerInuptBox .mailIcon{
  401. width: .38rem;
  402. height: .38rem;
  403. }
  404. .footerInupt{
  405. flex: 1;
  406. height: 100%;
  407. outline: none;
  408. font-size: .18rem;
  409. margin: 0 .12rem;
  410. }
  411. .footerInuptBox .arrowIcon{
  412. height: .19rem;
  413. width: auto;
  414. }
  415. .footerIconContainer{
  416. max-width: 4rem;
  417. }
  418. .footerIconList{
  419. overflow-x: scroll;
  420. white-space: nowrap;
  421. }
  422. .footerIconList::-webkit-scrollbar {
  423. display: none;
  424. }
  425. .footerIconItem{
  426. margin-right: .1rem;
  427. display: inline-flex;
  428. }
  429. .footerIconItem img{
  430. width: .48rem;
  431. height: .48rem;
  432. border-radius: 50%;
  433. }
  434. .footerVlsaImg{
  435. display: flex;
  436. flex-wrap: wrap;
  437. padding-top: .1rem;
  438. }
  439. .footerVlsaItem{
  440. font-size: 0;
  441. }
  442. .footerVlsaImg img{
  443. width: .4rem;
  444. height: .26rem;
  445. }
  446. #toastContainer {
  447. position: fixed;
  448. top: 40%;
  449. left: 50%;
  450. transform: translateX(-50%);
  451. background-color: #333;
  452. color: #fff;
  453. padding: .08rem .12rem;
  454. border-radius: .04rem;
  455. word-break: break-all;
  456. z-index: 9999;
  457. display: none;
  458. font-size: .18rem;
  459. max-width: 70%;
  460. text-align: center;
  461. line-height: 1.4;
  462. }
  463. /* <-- start 个人中心菜单 */
  464. .navContainer{
  465. background-color: #E8EEF6;
  466. width: 3.4rem;
  467. padding-bottom: 1rem;
  468. -moz-box-sizing: border-box;
  469. -webkit-box-sizing: border-box;
  470. box-sizing: border-box;
  471. }
  472. .navItem{
  473. padding-left: .24rem;
  474. cursor: pointer;
  475. }
  476. .navItem .navItemFlex{
  477. display: flex;
  478. align-items: center;
  479. height: .6rem;
  480. padding-right: .22rem;
  481. }
  482. .navItem .navItemFlex.active .navTitle{
  483. color: #fff;
  484. background-color: rgba(79, 73, 222, 1);
  485. }
  486. .navItem .navItemFlex img{
  487. width: .4rem;
  488. }
  489. .navItem .navItemFlex .navTitle{
  490. font-weight: 400;
  491. color: #434343;
  492. font-size: .17rem;
  493. padding-left: .08rem;
  494. flex: 1;
  495. height: .5rem;
  496. border-radius: .04rem;
  497. display: flex;
  498. align-items: center;
  499. text-overflow: ellipsis;
  500. white-space: nowrap;
  501. overflow: hidden;
  502. }
  503. .sunNavBox{
  504. margin-left: .4rem;
  505. padding-right: .22rem;
  506. }
  507. .sunNavItem{
  508. height: .5rem;
  509. display: flex;
  510. align-items: center;
  511. padding-left: .08rem;
  512. color: #434343;
  513. border-radius: .04rem;
  514. margin: .05rem 0;
  515. }
  516. .sunNavItem .sunNavTitle{
  517. font-weight: 400;
  518. font-size: .17rem;
  519. text-overflow: ellipsis;
  520. white-space: nowrap;
  521. overflow: hidden;
  522. flex: 1;
  523. }
  524. .sunNavItem.active{
  525. color: #fff;
  526. background-color: rgba(79, 73, 222, 1);
  527. }
  528. /* end 个人中心菜单 --> */
  529. @media (max-width: 1499px) {
  530. .navContainer{
  531. width: 3rem;
  532. }
  533. .navItem{
  534. padding-left: .16rem;
  535. }
  536. .navItem .navItemFlex{
  537. padding-right: .16rem;
  538. }
  539. .navItem .navItemFlex img{
  540. width: .34rem;
  541. }
  542. .navItem .navItemFlex .navTitle{
  543. height: .46rem;
  544. font-size: .16rem;
  545. }
  546. .sunNavBox{
  547. margin-left: .34rem;
  548. padding-right: .16rem;
  549. }
  550. .sunNavItem{
  551. height: .46rem;
  552. }
  553. .sunNavItem .sunNavTitle{
  554. font-size: .16rem;
  555. }
  556. .navContainer{
  557. padding-bottom: .5rem;
  558. }
  559. }
  560. @media (max-width: 1320px) {
  561. #computerEndHeader{
  562. width: auto;
  563. }
  564. .computerLogo{
  565. margin-left: .12rem;
  566. }
  567. .headIconContainer{
  568. margin-right: .12rem;
  569. }
  570. .headNavItem .headNavTitle{
  571. font-size: .22rem;
  572. }
  573. .headNavItem.active .headNavTitle{
  574. font-size: .26rem;
  575. }
  576. }
  577. @media (max-width: 1199px) {
  578. .warnContainer{
  579. height: auto;
  580. }
  581. .warnContainer .warnText{
  582. font-size: .2rem;
  583. padding: .06rem .24rem;
  584. }
  585. #computerEndHeader{
  586. display: none;
  587. }
  588. #mobileEndHeader{
  589. display: flex;
  590. }
  591. .footerContainer{
  592. height: auto;
  593. }
  594. .footerConter{
  595. display: block;
  596. padding: .24rem .12rem;
  597. }
  598. .leftText{
  599. max-width: none;
  600. margin-right: 0;
  601. margin-bottom: .32rem;
  602. }
  603. .leftText .ltK{
  604. font-size: .2rem;
  605. }
  606. .leftText .ltV{
  607. font-size: .18rem;
  608. }
  609. .footerInuptBox{
  610. max-width: 6rem;
  611. margin-right: 0;
  612. height: .6rem;
  613. margin-bottom: .32rem;
  614. }
  615. .footerIconContainer{
  616. max-width: none;
  617. }
  618. .footerIconList{
  619. white-space: normal;
  620. overflow-x: hidden;
  621. display: flex;
  622. flex-wrap: wrap;
  623. margin-bottom: .12rem;
  624. }
  625. .footerIconItem{
  626. display: block;
  627. margin-right: .24rem;
  628. }
  629. }
  630. @media (max-width: 999px) {
  631. .navContainer{
  632. width: 2.4rem;
  633. }
  634. }
  635. @media (max-width: 899px) {
  636. .ageReminderBox{
  637. width: 6rem;
  638. height: 3rem;
  639. }
  640. .ageReminderInfo{
  641. padding-top: .6rem;
  642. }
  643. .ageReminderInfo h3{
  644. font-size: .3rem;
  645. }
  646. .ageReminderInfo .ageReminderButBox .ageRBut{
  647. font-size: .2rem;
  648. min-width: 1rem;
  649. }
  650. .leftText .ltK{
  651. font-size: .22rem;
  652. }
  653. .leftText .ltV{
  654. font-size: .2rem;
  655. }
  656. .footerIconItem img{
  657. width: .5rem;
  658. height: .5rem;
  659. }
  660. .footerVlsaImg img{
  661. height: .4rem;
  662. }
  663. #toastContainer{
  664. font-size: .24rem;
  665. padding: .1rem .16rem;
  666. }
  667. .footerConter{
  668. padding: .24rem;
  669. }
  670. }
  671. @media (max-width: 750px) {
  672. .navContainer{
  673. width: 2.2rem;
  674. }
  675. .navItem{
  676. padding-left: .12rem;
  677. }
  678. .navItem .navItemFlex{
  679. padding-right: .12rem;
  680. }
  681. .navItem .navItemFlex img{
  682. width: .34rem;
  683. }
  684. .navItem .navItemFlex .navTitle{
  685. height: .6rem;
  686. font-size: .2rem;
  687. }
  688. .sunNavBox{
  689. margin-left: .34rem;
  690. padding-right: .12rem;
  691. }
  692. .sunNavItem{
  693. height: .6rem;
  694. }
  695. .sunNavItem .sunNavTitle{
  696. font-size: .2rem;
  697. }
  698. .warningBox{
  699. font-size: .2rem;
  700. }
  701. }