common.css 10 KB

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