style.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. @charset "utf-8";
  2. body {
  3. background: #2CAB78;
  4. }
  5. body {
  6. -webkit-text-size-adjust: 100% ;
  7. }
  8. a,
  9. img {
  10. -webkit-tap-highlight-color: transparent;
  11. -webkit-touch-callout: none;
  12. -webkit-user-select: none;
  13. }
  14. #wrap {
  15. background: #2CAB78;
  16. }
  17. img {
  18. border: none;
  19. outline: none;
  20. }
  21. .banner {
  22. position: relative;
  23. width: 100%;
  24. margin-bottom: -.1rem;
  25. }
  26. .banner img {
  27. display: block;
  28. width: 100%;
  29. }
  30. /*主体*/
  31. .main {
  32. position: relative;
  33. overflow: hidden;
  34. width: 100%;
  35. height: 10.9rem;
  36. background: url('/assets/img/frontend/activity/card/main-bg.png') no-repeat center top;
  37. background-size: 100%;
  38. }
  39. .main .info {
  40. position: absolute;
  41. bottom: 0.8rem;
  42. left: 50%;
  43. margin-left: -4.0694444rem;
  44. width: 8.13888889rem;
  45. height: .73611111rem;
  46. line-height: .73611111rem;
  47. color: #4EBA86;
  48. text-align: center;
  49. }
  50. .main .txt_consume {
  51. display: inline-block;
  52. font-size: .8333333334rem;
  53. -o-transform: scale(.5);
  54. -ms-transform: scale(.5);
  55. -moz-transform: scale(.5);
  56. -webkit-transform: scale(.5);
  57. transform: scale(.5);
  58. transform-origin: center;
  59. }
  60. a.a-main {
  61. display: block;
  62. color: #FFF;
  63. margin: 0px auto;
  64. width: 8.7rem;
  65. padding: 0.3rem 0rem;
  66. text-align: center;
  67. font-size: 0.5rem;
  68. border-radius: 0.2rem;
  69. letter-spacing: 0.1rem
  70. }
  71. a.a1 {
  72. background-color: #efc84d;
  73. margin: 0.2rem auto 0.4rem auto;
  74. }
  75. a.a2 {
  76. background-color: #ee7323
  77. }
  78. /*游戏区域*/
  79. .box {
  80. display: flex;
  81. justify-content: space-between;
  82. flex-wrap: wrap;
  83. margin: 0.8rem;
  84. margin-top: 0.4rem;
  85. }
  86. .box li {
  87. /* position: absolute; */
  88. width: 2.6rem;
  89. height: 3.35rem;
  90. background: url('/assets/img/frontend/activity/card/kong.png') no-repeat center top;
  91. background-size: 100%;
  92. -o-transition: .3s;
  93. -ms-transition: .3s;
  94. -moz-transition: .3s;
  95. -webkit-transition: .3s;
  96. transition: .3s;
  97. margin-bottom: 0.8rem;
  98. }
  99. /*图案*/
  100. .box li img {
  101. width: 2.6rem;
  102. height: 3.35rem;
  103. background: #f1f1f1;
  104. }
  105. .box li p {
  106. height: .7rem;
  107. line-height: .7rem;
  108. font-size: .32rem;
  109. color: #2A2F29;
  110. text-align: center;
  111. overflow: hidden;
  112. white-space: nowrap;
  113. text-overflow: ellipsis;
  114. }
  115. /* .animate1 {
  116. left: 1.1111111rem;
  117. top: 0rem;
  118. }
  119. .animate2 {
  120. left: 3.8888889rem;
  121. top: 0rem;
  122. }
  123. .animate3 {
  124. left: 6.6666667rem;
  125. top: 0rem;
  126. }
  127. .animate4 {
  128. left: 1.1111111rem;
  129. top: 4.1666667rem;
  130. }
  131. .animate5 {
  132. left: 3.8888889rem;
  133. top: 4.1666667rem;
  134. }
  135. .animate6 {
  136. left: 6.6666667rem;
  137. top: 4.1666667rem;
  138. } */
  139. /*卡牌摆动动画*/
  140. .box li.active {
  141. /* background-image: url("/assets/img/frontend/activity/card/result-bi.png"); */
  142. -o-animation: shaking 0.5s ease-in-out;
  143. -ms-animation: shaking 0.5s ease-in-out;
  144. -moz-animation: shaking 0.5s ease-in-out;
  145. -webkit-animation: shaking 0.5s ease-in-out;
  146. animation: shaking 0.5s ease-in-out;
  147. }
  148. @keyframes shaking {
  149. 0%,
  150. 100% {
  151. -o-transform: rotateY(0deg);
  152. -ms-transform: rotateY(0deg);
  153. -moz-transform: rotateY(0deg);
  154. -webkit-transform: rotateY(0deg);
  155. transform: rotateY(0deg);
  156. }
  157. 33% {
  158. -o-transform: rotateY(-20deg);
  159. -ms-transform: rotateY(-20deg);
  160. -moz-transform: rotateY(-20deg);
  161. -webkit-transform: rotateY(-20deg);
  162. transform: rotateY(-20deg);
  163. }
  164. 66% {
  165. -o-transform: rotateY(20deg);
  166. -ms-transform: rotateY(20deg);
  167. -moz-transform: rotateY(20deg);
  168. -webkit-transform: rotateY(20deg);
  169. transform: rotateY(20deg);
  170. }
  171. }
  172. /*卡牌翻开动画*/
  173. .box li.open-card {
  174. left: 3.64rem !important;
  175. top: 0 !important;
  176. z-index: 10;
  177. -o-transform: scale(1.5);
  178. -ms-transform: scale(1.5);
  179. -moz-transform: scale(1.5);
  180. -webkit-transform: scale(1.5);
  181. transform: scale(1.5);
  182. -o-animation: openCard .5s .5s linear forwards;
  183. -ms-animation: openCard .5s .5s linear forwards;
  184. -moz-animation: openCard .5s .5s linear forwards;
  185. -webkit-animation: openCard .5s .5s linear forwards;
  186. animation: openCard .5s .5s linear forwards;
  187. }
  188. @keyframes openCard {
  189. 10%,
  190. 30%,
  191. 50% {
  192. -o-transform: scale(1.5) translateX(-10px);
  193. -ms-transform: scale(1.5) translateX(-10px);
  194. -moz-transform: scale(1.5) translateX(-10px);
  195. -webkit-transform: scale(1.5) translateX-(10px);
  196. transform: scale(1.5) translateX(-10px);
  197. }
  198. 20%,
  199. 40%,
  200. 60% {
  201. -o-transform: scale(1.5) translateX(10px);
  202. -ms-transform: scale(1.5) translateX(10px);
  203. -moz-transform: scale(1.5) translateX(10px);
  204. -webkit-transform: scale(1.5) translateX(10px);
  205. transform: scale(1.5) translateX(10px);
  206. }
  207. 100% {
  208. -o-transform: scale(1.5) translateX(90deg);
  209. -ms-transform: scale(1.5) translateX(90deg);
  210. -moz-transform: scale(1.5) translateX(90deg);
  211. -webkit-transform: scale(1.5) translateX(90deg);
  212. transform: scale(1.5) rotateY(90deg);
  213. }
  214. }
  215. /*最佳成绩榜*/
  216. .tab img {
  217. width: 100%;
  218. height: 100%;
  219. }
  220. .tab .content-box {
  221. margin-top: -0.8rem;
  222. margin-left: 0.5rem;
  223. margin-right: 0.5rem;
  224. border-radius: 0.2rem;
  225. background-color: #E6FFE2;
  226. overflow: hidden;
  227. }
  228. .tab .list-grade {
  229. height: 8.2rem;
  230. }
  231. .tab_nav {
  232. margin-top: 0.9rem;
  233. display: flex;
  234. justify-content: space-evenly;
  235. }
  236. .tab_nav li {
  237. font-size: .40rem;
  238. color: #006934;
  239. }
  240. .tab_nav span {
  241. cursor: pointer;
  242. }
  243. .tab_nav li.cur span {
  244. display: inline-block;
  245. padding: 0 0 .1rem 0;
  246. border-bottom: #6BCF5F solid .05rem
  247. }
  248. .list-grade .name-list {
  249. margin: 0.1rem 0.3rem 0.4rem 0.3rem;
  250. height: 6rem;
  251. overflow-y: auto;
  252. }
  253. .list-grade .empty {
  254. margin: 0.1rem 0.3rem 0.4rem 0.3rem;
  255. height: 6rem;
  256. display: flex;
  257. align-items: center;
  258. justify-content: center;
  259. font-size: 0.4rem;
  260. }
  261. .list-grade .name-list li {
  262. height: 1rem;
  263. line-height: 1rem;
  264. font-size: 0.32rem;
  265. display: flex;
  266. padding-left: 0.2rem;
  267. padding-right: 0.2rem;
  268. }
  269. .list-grade .name-list li .pl1 {
  270. margin-left:.23rem;
  271. }
  272. .list-grade .name-list .prize {
  273. justify-content: space-between;
  274. }
  275. .list-grade .name-list li:nth-child(even) {
  276. background-color: #D3F5D2;
  277. }
  278. .list-grade .name-list li:nth-child(odd) {
  279. background-color: #F8FFF7;
  280. }
  281. .name-list .left {
  282. width: 4.4rem;
  283. }
  284. .name-list .right {
  285. flex: 1;
  286. }
  287. .prize .left,
  288. .prize .right {
  289. flex: initial;
  290. }
  291. .prize .right{
  292. position: absolute;
  293. top: 50%;
  294. right: 2%;
  295. display: block;
  296. width: 2.222222rem;
  297. text-align: center;
  298. transform: translate(0%, -50%);
  299. }
  300. .prize .right .jiang-btn {
  301. padding: 0.15rem 0.3rem;
  302. border-radius: 0.5rem;
  303. color: #fff;
  304. background: #2CAB78;
  305. }
  306. .prize .right .txt {
  307. padding: 0.15rem 0.3rem;
  308. border-radius: 0.5rem;
  309. color: #2CAB78;
  310. }
  311. /* 规则 */
  312. .tab-reg {
  313. margin-top: 0.3rem;
  314. }
  315. .tab-reg .text-box {
  316. margin: 0.3rem;
  317. background-color: #D3F5D2;
  318. font-size: 0.35rem;
  319. color: #2B262A;
  320. padding: 0.5rem;
  321. text-align: justify;
  322. line-height: 0.65rem;
  323. }
  324. /*需要结合js*/
  325. .box li.hide-card {
  326. z-index: 10;
  327. -o-animation: hideCard 1s linear forwards;
  328. -ms-animation: hideCard 1s linear forwards;
  329. -moz-animation: hideCard 1s linear forwards;
  330. -webkit-animation: hideCard 1s linear forwards;
  331. animation: hideCard 1s linear forwards;
  332. }
  333. @keyframes hideCard {
  334. 50% {
  335. -o-transform: scale(1) translateX(90deg);
  336. -ms-transform: scale(1) translateX(90deg);
  337. -moz-transform: scale(1) translateX(90deg);
  338. -webkit-transform: scale(1) translateX(90deg);
  339. transform: scale(1) rotateY(90deg);
  340. }
  341. 100% {
  342. -o-transform: scale(1) translateX(0deg);
  343. -ms-transform: scale(1) translateX(0deg);
  344. -moz-transform: scale(1) translateX(0deg);
  345. -webkit-transform: scale(1) translateX(0deg);
  346. transform: scale(1) translateX(0deg);
  347. }
  348. }
  349. .footer {
  350. height: 1.3rem;
  351. line-height: 1.3rem;
  352. font-size: 0.32rem;
  353. text-align: center;
  354. color: #67D0A5;
  355. }
  356. /*翻牌遮罩*/
  357. #mask-card {
  358. display: none;
  359. position: fixed;
  360. z-index: 1;
  361. width: 100%;
  362. height: 100%;
  363. background-color: rgba(0, 0, 0, 0.25);
  364. }
  365. /*规则弹窗背景色*/
  366. .activity,
  367. .activity2 {
  368. background-color: #ed392b;
  369. padding: 0.3rem 0rem;
  370. }
  371. .activity2 {
  372. padding: 0.6rem 0rem;
  373. }
  374. .activity-amin {
  375. width: 85%;
  376. margin: 0rem auto;
  377. }
  378. .activity-amin h2 {
  379. margin: 0rem auto 0.4rem auto;
  380. width: 4.4rem;
  381. height: 0.8rem;
  382. background-color: #ffe771;
  383. text-align: center;
  384. line-height: 0.8rem;
  385. font-size: 0.4rem;
  386. color: #bc5700;
  387. border-radius: 0.34666667rem;
  388. letter-spacing: 0.2rem
  389. }
  390. .activity-amin p {
  391. width: 100%;
  392. line-height: 0.6rem;
  393. font-size: 0.2rem;
  394. color: #fff;
  395. letter-spacing: 0.1rem;
  396. margin-bottom: 0.6rem;
  397. }
  398. .wt1 {
  399. width: 94%;
  400. display: block;
  401. border: none;
  402. background-color: #FFF;
  403. padding: 5% 3%;
  404. border-radius: 0.34666667rem;
  405. font-size: 0.4rem;
  406. margin-bottom: 6%
  407. }
  408. .wt2 {
  409. width: 50%;
  410. float: left
  411. }
  412. .wt3 {
  413. width: 40%;
  414. float: right;
  415. background-color: #efc84d;
  416. color: #FFF
  417. }
  418. .wt4 {
  419. width: 100%;
  420. background-color: #efc84d;
  421. color: #FFF;
  422. font-size: 0.6rem;
  423. }
  424. .prompt1 {
  425. clear: both;
  426. width: 100%;
  427. text-align: center;
  428. font-size: 0.4rem;
  429. margin-bottom: 6%;
  430. color: #ffe66f;
  431. display: none
  432. }
  433. .tb0 {
  434. width: 100%;
  435. margin-bottom: 6%;
  436. }
  437. .tb0 tr th {
  438. width: 20%;
  439. line-height: 0.8rem;
  440. text-align: center;
  441. color: #efc84d
  442. }
  443. .tb0 tr th:nth-child(1) {
  444. width: 42%;
  445. }
  446. .tb0 tr th:nth-child(2) {
  447. width: 38%;
  448. }
  449. .tb0 tr td {
  450. width: 20%;
  451. line-height: 0.6rem;
  452. text-align: center;
  453. color: #FFF
  454. }
  455. .recordList {position:relative;}
  456. .recordList .link_btn {
  457. width: 1.74rem;
  458. height: .56rem;
  459. line-height: .56rem;
  460. text-align: center;
  461. border-radius: .28rem;
  462. border: .015rem solid forestgreen;
  463. position: absolute;
  464. top: 50%;
  465. right: 5%;
  466. display: block;
  467. color: forestgreen;
  468. font-size: 0.32rem !important;
  469. transform: translate(0%, -50%);
  470. }
  471. .recordList span.link_btn {
  472. opacity: .5;
  473. }
  474. .rule_box h2 {
  475. padding: .7rem 0 .6rem 0;
  476. text-align: center;
  477. color: #fff;
  478. opacity: .7;
  479. font-size: .5rem;
  480. }
  481. .rule_box p {
  482. padding: .2rem .5rem;
  483. color: #444;
  484. opacity: .7;
  485. font-size: .3333333rem;
  486. line-height: 1.5;
  487. }
  488. .rule_box .goback {
  489. display: block;
  490. z-index: 2;
  491. margin: .7rem auto;
  492. width: 4.44444rem;
  493. height: 1rem;
  494. line-height: 1rem;
  495. background: -moz-linear-gradient(top, rgba(255, 249, 92, 1) 0%, rgba(255, 237, 41, 1) 100%);
  496. /* FF3.6-15 */
  497. background: -webkit-linear-gradient(top, rgba(255, 249, 92, 1) 0%, rgba(255, 237, 41, 1) 100%);
  498. /* Chrome10-25,Safari5.1-6 */
  499. background: linear-gradient(to bottom, rgba(255, 249, 92, 1) 0%, rgba(255, 237, 41, 1) 100%);
  500. /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  501. box-shadow: 0rem .111rem .014rem 0rem rgba(244, 211, 33, 0.2);
  502. border-radius: 36px;
  503. font-size: .5rem;
  504. color: #E04E21;
  505. text-align: center;
  506. font-weight: bold;
  507. }
  508. .rule_box .rule_main {
  509. padding-bottom: .35rem;
  510. }
  511. @keyframes fadeIn {
  512. 0% {
  513. opacity: 0
  514. }
  515. 100% {
  516. opacity: 1
  517. }
  518. }
  519. @-webkit-keyframes fadeIn {
  520. 0% {
  521. opacity: 0
  522. }
  523. 100% {
  524. opacity: 1
  525. }
  526. }
  527. @-moz-keyframes fadeIn {
  528. 0% {
  529. opacity: 0
  530. }
  531. 100% {
  532. opacity: 1
  533. }
  534. }
  535. @-o-keyframes fadeIn {
  536. 0% {
  537. opacity: 0
  538. }
  539. 100% {
  540. opacity: 1
  541. }
  542. }
  543. @-ms-keyframes fadeIn {
  544. 0% {
  545. opacity: 0
  546. }
  547. 100% {
  548. opacity: 1
  549. }
  550. }
  551. @keyframes fadeOut {
  552. 0% {
  553. opacity: 1
  554. }
  555. 100% {
  556. opacity: 0
  557. }
  558. }
  559. @-webkit-keyframes fadeOut {
  560. 0% {
  561. opacity: 1
  562. }
  563. 100% {
  564. opacity: 0
  565. }
  566. }
  567. @-moz-keyframes fadeOut {
  568. 0% {
  569. opacity: 1
  570. }
  571. 100% {
  572. opacity: 0
  573. }
  574. }
  575. @-o-keyframes fadeOut {
  576. 0% {
  577. opacity: 1
  578. }
  579. 100% {
  580. opacity: 0
  581. }
  582. }
  583. @-ms-keyframes fadeOut {
  584. 0% {
  585. opacity: 1
  586. }
  587. 100% {
  588. opacity: 0
  589. }
  590. }
  591. #toast {
  592. background: rgba(0, 0, 0, 0.7);
  593. color: #fff;
  594. font-size: 14px;
  595. line-height: 1.7;
  596. padding: 10px;
  597. border-radius: 3px;
  598. position: fixed;
  599. left: 50%;
  600. top: 50%;
  601. text-align: center;
  602. transform: translate(-50%, -50%);
  603. -webkit-transform: translate(-50%, -50%);
  604. -moz-transform: translate(-50%, -50%);
  605. -o-transform: translate(-50%, -50%);
  606. -ms-transform: translate(-50%, -50%);
  607. z-index: 9999;
  608. }
  609. .hide {
  610. display: none;
  611. }
  612. .fadeOut {
  613. animation: fadeOut .5s;
  614. }
  615. .fadeIn {
  616. animation: fadeIn .5s;
  617. }
  618. /*tip_box 弹层*/
  619. .tip_box {
  620. display: none;
  621. position: fixed;
  622. left: 0;
  623. top: 0;
  624. width: 100%;
  625. height: 100%;
  626. z-index: 3000;
  627. background-color: rgba(0, 0, 0, .7);
  628. }
  629. .text_but_error {
  630. position: absolute;
  631. left: .5rem;
  632. right: .5rem;
  633. top: 50%;
  634. margin-top: -1rem;
  635. padding: .1rem;
  636. text-align: center;
  637. border: .1rem #f6e04e solid;
  638. background: #fef5f7;
  639. background-size: auto 100%;
  640. -moz-border-radius: .1rem;
  641. -webkit-border-radius: .1rem;
  642. border-radius: .1rem;
  643. }
  644. .text_but_error strong {
  645. padding: .4rem .1rem;
  646. display: block;
  647. background-color: #fef5f7;
  648. font-size: .5rem;
  649. color: #fff;
  650. line-height: 1.5;
  651. border-radius: .04rem;
  652. }
  653. .text_but_error span {
  654. display: block;
  655. text-align: center;
  656. color: #333;
  657. font-size: .4444rem;
  658. line-height: 1.5;
  659. }
  660. .tip_box_dialog {
  661. display: none;
  662. position: fixed;
  663. left: 0;
  664. right: 0;
  665. top: 0;
  666. bottom: 0;
  667. width: 100%;
  668. height: 100%;
  669. z-index: 3000;
  670. background-color: rgba(0, 0, 0, .7);
  671. }
  672. .tip_box_dialog .text_but_error {
  673. top: 43%;
  674. }
  675. .tip_box_dialog .text_but_error strong {
  676. padding-top: 1rem;
  677. }
  678. .text_but_error .tip_btn {
  679. display: inline-block;
  680. z-index: 2;
  681. margin: .7rem .3rem;
  682. width: 3.24444rem;
  683. height: 1rem;
  684. line-height: 1rem;
  685. background: -moz-linear-gradient(top, rgba(255, 249, 92, 1) 0%, rgba(255, 237, 41, 1) 100%);
  686. /* FF3.6-15 */
  687. background: -webkit-linear-gradient(top, rgba(255, 249, 92, 1) 0%, rgba(255, 237, 41, 1) 100%);
  688. /* Chrome10-25,Safari5.1-6 */
  689. background: linear-gradient(to bottom, rgba(255, 249, 92, 1) 0%, rgba(255, 237, 41, 1) 100%);
  690. /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  691. box-shadow: 0rem .111rem .014rem 0rem rgba(244, 211, 33, 0.2);
  692. border-radius: 36px;
  693. font-size: .5rem;
  694. color: #E04E21;
  695. text-align: center;
  696. font-weight: bold;
  697. }