common.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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. /* <-- start 头部模块 */
  51. .headerContainer{
  52. width: 100%;
  53. background-color: #FFF;
  54. position: sticky;
  55. top: 0;
  56. left: 0;
  57. right: 0;
  58. z-index: 99;
  59. -webkit-box-shadow: 0 .02rem .05rem rgba(0,0,0,.03);
  60. box-shadow: 0 .02rem .05rem rgba(0,0,0,.03);
  61. }
  62. .warnContainer{
  63. background-color: #434344;
  64. width: 100%;
  65. height: .5rem;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. }
  70. .warnContainer .warnText{
  71. max-width: 13.2rem;
  72. word-break: break-all;
  73. line-height: 1.4;
  74. font-weight: bold;
  75. font-size: .16rem;
  76. color: rgba(255, 255, 255, .7);
  77. }
  78. /* PC端头部 */
  79. #computerEndHeader{
  80. width: 13.2rem;
  81. height: .7rem;
  82. margin: 0 auto;
  83. display: flex;
  84. justify-content: space-between;
  85. align-items: center;
  86. cursor: pointer;
  87. }
  88. #computerEndHeader .computerLogo{
  89. color: rgba(79, 73, 222, 1);
  90. font-weight: bold;
  91. font-size: .28rem;
  92. padding-right: .5rem;
  93. }
  94. #computerEndHeader .computerLogo img{
  95. height: .22rem;
  96. width: auto;
  97. }
  98. .headNavContainer{
  99. flex: 1;
  100. display: flex;
  101. align-items: center;
  102. height: 100%;
  103. overflow: hidden;
  104. }
  105. .headNavItem{
  106. height: .7rem;
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. position: relative;
  111. margin-right: .36rem;
  112. }
  113. .headNavItem .headNavTitle{
  114. padding: 0 .28rem;
  115. font-weight: bold;
  116. color: #333333;
  117. font-size: .22rem;
  118. position: relative;
  119. z-index: 2;
  120. letter-spacing: .02rem;
  121. min-width: 1.5rem;
  122. }
  123. .headNavItem.active .headNavTitle{
  124. color: #FFFFFF;
  125. font-size: .24rem;
  126. }
  127. .headNavItem.active .back{
  128. position: absolute;
  129. width: 100%;
  130. height: 116%;
  131. top: -8%;
  132. left: 0;
  133. border-radius: .04rem;
  134. background-color: rgba(79, 73, 222, 1);
  135. z-index: 1;
  136. }
  137. .headIconContainer{
  138. display: flex;
  139. align-items: center;
  140. height: 100%;
  141. }
  142. .headIconContainer .headIconItem{
  143. padding: 0 .2rem;
  144. height: .7rem;
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. }
  149. .headIconContainer .headIconItem img{
  150. height: .24rem;
  151. }
  152. .headIconContainer .headIconItem .cart img{
  153. height: .28rem;
  154. }
  155. /* 移动端头部 */
  156. #mobileEndHeader{
  157. display: none;
  158. position: relative;
  159. }
  160. .mobileEndHeaderConten{
  161. padding: 0 .24rem;
  162. height:.9rem;
  163. display: flex;
  164. flex: 1;
  165. align-items: center;
  166. justify-content: space-between;
  167. }
  168. .mobileEndHeaderConten .mobileLogo{
  169. color: rgba(79, 73, 222, 1);
  170. font-weight: bold;
  171. font-size: .28rem;
  172. padding-right: .5rem;
  173. }
  174. .mobileEndHeaderConten .mobileLogo img{
  175. height: .3rem;
  176. width: auto;
  177. }
  178. .mobileUserIconList{
  179. display: flex;
  180. flex: 1;
  181. align-items: center;
  182. justify-content: flex-end;
  183. padding-right: .24rem;
  184. }
  185. .mobileUserIcon img{
  186. height: .3rem;
  187. }
  188. #mobileMenuBot {
  189. height: .4rem;
  190. display: flex;
  191. align-items: center;
  192. }
  193. #mobileMenuLink {
  194. display: block;
  195. position: relative;
  196. width: .42rem;
  197. height: .06rem;
  198. background-color: #666666;
  199. border-radius: .08rem;
  200. }
  201. #mobileMenuLink:before,
  202. #mobileMenuLink:after {
  203. content: '';
  204. display: block;
  205. width: 100%;
  206. height: 100%;
  207. border-radius: .08rem;
  208. margin-top: .13rem;
  209. position: absolute;
  210. background: #666666;
  211. -webkit-transition-property: margin, -webkit-transform;
  212. transition-property: margin, -webkit-transform;
  213. transition-property: margin, transform;
  214. transition-property: margin, transform, -webkit-transform;
  215. -webkit-transition-duration: 200ms;
  216. transition-duration: 200ms;
  217. }
  218. #mobileMenuLink:before {
  219. margin-top: -.13rem;
  220. }
  221. #mobileMenuLink:after {
  222. margin-top: .13rem;
  223. }
  224. .open #mobileMenuLink {
  225. background: none
  226. }
  227. .open #mobileMenuLink:before {
  228. margin-top: 0;
  229. transform: rotate(45deg);
  230. -moz-transform: rotate(45deg);
  231. -webkit-transform: rotate(45deg);
  232. -o-transform: rotate(45deg);
  233. }
  234. .open #mobileMenuLink:after {
  235. margin-top: 0;
  236. transform: rotate(-45deg);
  237. -moz-transform: rotate(-45deg);
  238. -webkit-transform: rotate(-45deg);
  239. -o-transform: rotate(-45deg);
  240. }
  241. .open #mobileMenuLink:before,
  242. .open #mobileMenuLink:after {
  243. background: #666666;
  244. }
  245. .mobileMenuFixed{
  246. position: absolute;
  247. background: white;
  248. border-radius: .12rem;
  249. min-width: 3rem;
  250. max-width: 5rem;
  251. padding: .12rem .24rem;
  252. top: 1rem;
  253. right: .08rem;
  254. z-index: 999;
  255. display: none;
  256. }
  257. .mobileMenuItem{
  258. border-bottom: .01rem solid #dfdfdf;
  259. }
  260. .mobileMenuFixed .mobileMenuItem:last-child{
  261. border: none;
  262. }
  263. .mobileMenuItem .menuItemTitle{
  264. height: .8rem;
  265. display: flex;
  266. align-items: center;
  267. font-size: .22rem;
  268. overflow: hidden;
  269. text-overflow: ellipsis;
  270. white-space: nowrap;
  271. color: #434343;
  272. }
  273. .mobileMenuItem.active .menuItemTitle{
  274. color: rgba(79, 73, 222, 1);
  275. }
  276. /* end 头部模块 --> */
  277. /* start 年龄提示模块 --> */
  278. .maskContainer{
  279. position: fixed;
  280. width: 100vw;
  281. height: 100vh;
  282. z-index: 999;
  283. top: 0;
  284. right: 0;
  285. bottom: 0;
  286. left: 0;
  287. background-color: rgba(0, 0, 0, .5);
  288. display: none;
  289. }
  290. .ageReminderBox{
  291. width: 7rem;
  292. background-color: #FFF;
  293. height: 3.8rem;
  294. left: 50%;
  295. transform: translateX(-50%);
  296. top: 30%;
  297. position: absolute;
  298. }
  299. .ageReminderBack{
  300. position: absolute;
  301. z-index: 1;
  302. height: 100%;
  303. width: 100%;
  304. top: 0;
  305. left: 0;
  306. }
  307. .ageReminderInfo{
  308. position: relative;
  309. z-index: 2;
  310. margin-left: .32rem;
  311. padding-top: 1rem;
  312. color: #fff;
  313. }
  314. .ageReminderInfo h3{
  315. line-height: 1.4;
  316. font-size: .36rem;
  317. max-width: 60%;
  318. font-weight: bold;
  319. }
  320. .ageReminderInfo .ageReminderButBox{
  321. display: flex;
  322. align-items: center;
  323. padding-top: .32rem;
  324. }
  325. .ageReminderInfo .ageReminderButBox .ageRBut{
  326. color: rgba(237, 109, 244, 1);
  327. background-color: #fff;
  328. display: flex;
  329. align-items: center;
  330. justify-content: center;
  331. height: .56rem;
  332. border-radius: .08rem;
  333. font-size: .22rem;
  334. font-weight: bold;
  335. min-width: 1.6rem;
  336. padding: 0 .12rem;
  337. margin-right: .32rem;
  338. cursor: pointer;
  339. }
  340. /* end 年龄提示模块 --> */
  341. /* <-- start 底部模块 */
  342. .footerContainer{
  343. width: 100%;
  344. height: 1.50rem;
  345. background-color: rgba(32, 32, 32, 1);
  346. }
  347. .footerConter{
  348. color: #FFF;
  349. padding-top: .3rem;
  350. display: flex;
  351. }
  352. .leftText{
  353. max-width: 2rem;
  354. margin-right: .8rem;
  355. }
  356. .leftText .ltK{
  357. font-weight: bold;
  358. font-size: .18rem;
  359. word-break: break-all;
  360. padding-bottom: .06rem;
  361. }
  362. .leftText .ltV{
  363. font-size: .14rem;
  364. color: rgba(255, 255, 255, .6);
  365. word-break: break-all;
  366. }
  367. .footerInuptBox{
  368. background: #FFF;
  369. flex: 1;
  370. height: .5rem;
  371. display: flex;
  372. justify-content: space-between;
  373. align-items: center;
  374. padding: 0 .16rem 0 .12rem;
  375. max-width: 5rem;
  376. margin-right: 1.5rem;
  377. }
  378. .footerInuptBox .mailIcon{
  379. width: .38rem;
  380. height: .38rem;
  381. }
  382. .footerInupt{
  383. flex: 1;
  384. height: 100%;
  385. outline: none;
  386. font-size: .18rem;
  387. margin: 0 .12rem;
  388. }
  389. .footerInuptBox .arrowIcon{
  390. height: .19rem;
  391. width: auto;
  392. }
  393. .footerIconContainer{
  394. max-width: 4rem;
  395. }
  396. .footerIconList{
  397. overflow-x: scroll;
  398. white-space: nowrap;
  399. }
  400. .footerIconList::-webkit-scrollbar {
  401. display: none;
  402. }
  403. .footerIconItem{
  404. margin-right: .1rem;
  405. display: inline-flex;
  406. }
  407. .footerIconItem img{
  408. width: .48rem;
  409. height: .48rem;
  410. border-radius: 50%;
  411. }
  412. .footerVlsaImg{
  413. display: flex;
  414. flex-wrap: wrap;
  415. padding-top: .1rem;
  416. }
  417. .footerVlsaItem{
  418. font-size: 0;
  419. }
  420. .footerVlsaImg img{
  421. width: .4rem;
  422. height: .26rem;
  423. }
  424. #toastContainer {
  425. position: fixed;
  426. top: 40%;
  427. left: 50%;
  428. transform: translateX(-50%);
  429. background-color: #333;
  430. color: #fff;
  431. padding: .08rem .12rem;
  432. border-radius: .04rem;
  433. word-break: break-all;
  434. z-index: 9999;
  435. display: none;
  436. font-size: .18rem;
  437. max-width: 70%;
  438. text-align: center;
  439. line-height: 1.4;
  440. }
  441. /* end 底部模块 --> */
  442. @media (max-width: 1320px) {
  443. #computerEndHeader{
  444. width: auto;
  445. }
  446. .computerLogo{
  447. margin-left: .12rem;
  448. }
  449. .headIconContainer{
  450. margin-right: .12rem;
  451. }
  452. .headNavItem .headNavTitle{
  453. font-size: .22rem;
  454. }
  455. .headNavItem.active .headNavTitle{
  456. font-size: .26rem;
  457. }
  458. }
  459. @media (max-width: 1199px) {
  460. .warnContainer{
  461. height: auto;
  462. }
  463. .warnContainer .warnText{
  464. font-size: .22rem;
  465. padding: .06rem .24rem;
  466. }
  467. .warnContainer .warnText{
  468. font-size: .15rem;
  469. }
  470. #computerEndHeader{
  471. display: none;
  472. }
  473. #mobileEndHeader{
  474. display: flex;
  475. }
  476. .footerContainer{
  477. height: auto;
  478. }
  479. .footerConter{
  480. display: block;
  481. padding: .24rem .12rem;
  482. }
  483. .leftText{
  484. max-width: none;
  485. margin-right: 0;
  486. margin-bottom: .32rem;
  487. }
  488. .leftText .ltK{
  489. font-size: .2rem;
  490. }
  491. .leftText .ltV{
  492. font-size: .18rem;
  493. }
  494. .footerInuptBox{
  495. max-width: 6rem;
  496. margin-right: 0;
  497. height: .6rem;
  498. margin-bottom: .32rem;
  499. }
  500. .footerIconContainer{
  501. max-width: none;
  502. }
  503. .footerIconList{
  504. white-space: normal;
  505. overflow-x: hidden;
  506. display: flex;
  507. flex-wrap: wrap;
  508. margin-bottom: .12rem;
  509. }
  510. .footerIconItem{
  511. display: block;
  512. margin-right: .24rem;
  513. }
  514. }
  515. @media (max-width: 899px) {
  516. .ageReminderBox{
  517. width: 6rem;
  518. height: 3rem;
  519. }
  520. .ageReminderInfo{
  521. padding-top: .6rem;
  522. }
  523. .ageReminderInfo h3{
  524. font-size: .3rem;
  525. }
  526. .ageReminderInfo .ageReminderButBox .ageRBut{
  527. font-size: .2rem;
  528. min-width: 1rem;
  529. }
  530. .leftText .ltK{
  531. font-size: .22rem;
  532. }
  533. .leftText .ltV{
  534. font-size: .2rem;
  535. }
  536. .footerIconItem img{
  537. width: .5rem;
  538. height: .5rem;
  539. }
  540. .footerVlsaImg img{
  541. height: .4rem;
  542. }
  543. #toastContainer{
  544. font-size: .24rem;
  545. padding: .1rem .16rem;
  546. }
  547. .footerConter{
  548. padding: .24rem;
  549. }
  550. }