main.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. @charset "utf-8";
  2. body,dl,dd,ul,ol,h1,h2,h3,h4,h5,h6,pre,form,input,textarea,p,hr,thead,tbody,tfoot,th,td{margin:0;padding:0;}
  3. ul,ol{list-style:none;}
  4. a{text-decoration:none;}
  5. html{-ms-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;}
  6. body{line-height:1.5;}
  7. body,button,input,select,textarea{font-family:'helvetica neue',tahoma,'hiragino sans gb',stheiti,'wenquanyi micro hei',\5FAE\8F6F\96C5\9ED1,\5B8B\4F53,sans-serif;}
  8. b,strong{font-weight:bold;}
  9. i,em{font-style:normal;}
  10. table{border-collapse:collapse;border-spacing:0;}
  11. table th,table td{border:1px solid #ddd;padding:5px;}
  12. table th{font-weight:inherit;border-bottom-width:2px;border-bottom-color:#ccc;}
  13. img{border:0 none;width:auto\9;max-width:100%;vertical-align:top;}
  14. button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;vertical-align:baseline;}
  15. button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}
  16. button[disabled],input[disabled]{cursor:default;}
  17. input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}
  18. input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}
  19. input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}
  20. @media screen and (-webkit-min-device-pixel-ratio:0){input{line-height:normal!important;}}
  21. select[size],select[multiple],select[size][multiple]{border:1px solid #AAA;padding:0;}
  22. article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}
  23. audio,canvas,video,progress{display:inline-block;}
  24. a,input,button{outline: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-focus-ring-color: rgba(0, 0, 0, 0);}
  25. button,input{outline: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-user-modify: read-write-plaintext-only;}
  26. .loader {
  27. width: 4rem;
  28. height: 4rem;
  29. font-size: 10px;
  30. position: relative;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. margin: 2rem auto 0;
  35. }
  36. .g-doc{
  37. width: 7.5rem;
  38. margin: 0 auto;
  39. position: relative;
  40. }
  41. .loader .face {
  42. position: absolute;
  43. border-radius: 50%;
  44. border-style: solid;
  45. animation: animate 3s linear infinite;
  46. }
  47. .loader .face:nth-child(1) {
  48. width: 100%;
  49. height: 100%;
  50. color: #bbc5ff;
  51. /* border-color: currentColor transparent transparent currentColor; */
  52. /* border-width: 0.2em 0.2em 0em 0em; */
  53. --deg: -45deg;
  54. animation-direction: normal;
  55. }
  56. .loader .face:nth-child(2) {
  57. width: 70%;
  58. height: 70%;
  59. color: #bbc5ff;
  60. /* border-color: currentColor currentColor transparent transparent; */
  61. /* border-width: 0.2em 0em 0em 0.2em; */
  62. --deg: -135deg;
  63. animation-direction: reverse;
  64. }
  65. .loader .face .circle {
  66. position: absolute;
  67. width: 50%;
  68. height: 0.1em;
  69. top: 50%;
  70. left: 50%;
  71. background-color: transparent;
  72. transform: rotate(var(--deg));
  73. transform-origin: left;
  74. }
  75. .loader .face .circle::before {
  76. position: absolute;
  77. top: -0.5em;
  78. right: -0.5em;
  79. content: '';
  80. width: 1em;
  81. height: 1em;
  82. background-color: currentColor;
  83. border-radius: 50%;
  84. box-shadow: 0 0 2em,
  85. 0 0 4em,
  86. 0 0 6em,
  87. 0 0 8em,
  88. 0 0 10em,
  89. 0 0 0 0.5em rgba(255, 255, 0, 0.1);
  90. }
  91. @keyframes animate {
  92. to {
  93. transform: rotate(1turn);
  94. }
  95. }
  96. body{
  97. background: url(../img/bg2.jpg) center top;
  98. }
  99. .cov{ position: absolute; }
  100. .g-inner{margin: 0 auto;width: 7.5rem;overflow: hidden;}
  101. .cov1{left: 50%;top: 3.3rem;width: 2.4rem;margin-left: -1.2rem;/* border: solid #71a3fd 2px; */border-radius: 50%;}
  102. .cov2{left: 50%;top: 10.5rem;margin-left: -1.5rem;width: 3rem;font-size: .3rem;text-align: center;}
  103. .cov1 .userface{width: 2.2rem;height: 2.2rem;margin: 0 auto;}
  104. .gstart .cov3{}
  105. .cov3{left: 50%;top: 9rem;width: 2rem;height: 1rem;line-height: 1rem;margin-left: -1rem;text-align: center;font-size: .5rem;color: #FFF;font-weight: bold;border-radius: .2rem;}
  106. .cov4{right: 50%;top: 8.5rem;width: 2rem;margin-right: -1rem;opacity: 0;}
  107. .ready .cov4{opacity:1; top:3rem;}
  108. .userface{border-radius: 50%;overflow: hidden;background-color: #000;display: block;}
  109. .cov4 .userface{width: 2.0rem;height: 2.0rem;float: right;/* opacity: 0; */}
  110. .doing .cov1{left: -.5rem;margin: 0;top: 1rem;background: #32deec;border-radius: 1rem;width: 4.3rem;border: 0;background: url(../img/user0.png);background-size: 4.3rem;height: 1rem;}
  111. .num{opacity: 0;color: #FFF;FONT-SIZE: 0.6REM;position: absolute;top: 0;text-shadow: 0px 0px 6px #7f8dde;}
  112. .doing .num{opacity: 1;line-height: .8rem;text-align: center;text-shadow: 2px 2px 0px #820b3e;}
  113. .doing .cov1 .num{
  114. /* color: #FFF; */
  115. /* FONT-SIZE: 0.5REM; */
  116. left: 2.3rem;
  117. }
  118. .doing .cov4 .num{
  119. left: .8rem;
  120. }
  121. .doing .cov4,.end .cov4{right: 50%;top: 10rem;width: 2rem;margin-left: -1rem;}
  122. .doing .cov4{right: -.4rem;top: 2rem;width: 4rem;border-radius: 1rem;margin-right: 0rem;height: 1rem;background: url(../img/user1.png);background-size: 4.3rem;}
  123. .doing .cov1 .userface{width: 1.0rem;height: 1.0rem;left: .8rem;background: url(../img/user0-face.png);background-size: 100%;}
  124. .doing .cov2 , .doing .loading{opacity: 0;position: absolute;left: 50%;margin-left: -2.3rem;}
  125. .doing .cov3{top: 0rem;z-index: 9;}
  126. .doing .userface{position: absolute;top: -.5rem;}
  127. .cov .name{
  128. color: #fff;
  129. font-style: normal;
  130. position: absolute;
  131. left: .8rem;
  132. font-size: .35rem;
  133. top: 1rem;
  134. left: .2rem;
  135. width: 2rem;
  136. text-align: center;
  137. text-shadow: 2px 2px 0px #820b3e;
  138. }
  139. .cov4 .name{left: 1.7rem;top: -1.2rem;}
  140. .gstart .name{top: 3.4rem;width: 2rem;height: .5rem;left: 50%;margin-left: -1rem;text-align: center;overflow: hidden;}
  141. .gstart .cov4 .name{ left: 46%; }
  142. .doing.gstart .name{top: inherit;}
  143. .doing.gstart .cov4 .name{left: 2.0rem;top: -1rem;}
  144. .doing .qs-item{display:block;width: 5.50rem;}
  145. .doing .cov4 .userface{opacity:1;width: 1rem;height: 1rem;left: 2.3rem;background: url(../img/user0-face.png);background-size: 100%;}
  146. .doing .userface img{
  147. padding: 0.1rem;
  148. width: .8rem;
  149. border-radius: 50%;
  150. }
  151. .qs-item{padding: 3.8rem 1rem 0;display: none;position: absolute;left: 0;top: 0;z-index: 99;}
  152. .qs-item .tit{color: #FFF;font-size: .4rem;text-align: center;display: block;margin-bottom: .2rem;min-height: 1rem;}
  153. .qs-item .list{
  154. margin: 0 auto;
  155. width: 4.4rem;
  156. }
  157. .qs-item li{
  158. width: 4.46rem;
  159. height: .95rem;
  160. border-radius: 1.15rem;
  161. color: #8400b1;
  162. background-color: #FFF;
  163. text-align: center;
  164. line-height: 1.15rem;
  165. margin-bottom: .5rem;
  166. overflow: hidden;
  167. }
  168. .qs-item li:nth-child(2n){
  169. -webkit-animation-name: bounceInLeft;
  170. animation-name: bounceInLeft;
  171. -webkit-animation-duration: .5s;
  172. animation-duration: .5s;
  173. -webkit-animation-fill-mode: both;
  174. animation-fill-mode: both;
  175. }
  176. .qs-item li:nth-child(2n-1){
  177. -webkit-animation-name: bounceInRight;
  178. animation-name: bounceInRight;
  179. -webkit-animation-duration: .5s;
  180. animation-duration: .5s;
  181. -webkit-animation-fill-mode: both;
  182. animation-fill-mode: both;
  183. }
  184. .qs-item li.answer {
  185. overflow: hidden;
  186. width: 4.46rem;
  187. height: 1.2rem;
  188. line-height: 1.2rem;
  189. margin: 0;
  190. /* background: url(../img/check.png) no-repeat center; */
  191. background-color: #FFF;
  192. border: 0;
  193. background-size: 100%;
  194. color: #222e71;
  195. font-size: .44rem;
  196. float: left;
  197. margin-bottom: .3rem;
  198. box-shadow: 0 0.1rem 0rem #7e8cdd;
  199. position: relative;
  200. }
  201. .result .btn.on,.rulebtn.on{
  202. box-shadow: 0 0 1rem #FFEB3B;
  203. border-radius: .15rem;
  204. }
  205. .qs-item li.on{
  206. background-color:#8BC34A;
  207. color: #FFF;
  208. box-shadow: 0 0.1rem 0rem #4CAF50;
  209. }
  210. .qs-item li.cur_answer{
  211. background-color:#009688;
  212. color: #FFF;
  213. box-shadow: 0 0.1rem 0rem #00706f;
  214. /* background: url(../img/check-true.png) no-repeat center; */background-size:100%;color: #FFF;box-shadow: 0 0.1rem 0rem #7e8cdd;}
  215. .qs-item .cur_answer.cur_error{/* background: url(../img/check-error.png) no-repeat center; */background-size:100%;color: #FFF;background: #ff5970;box-shadow: 0 0.1rem 0rem #931325;}
  216. .qs-item li.cur_true{
  217. background-color:#8BC34A;
  218. color: #FFF;
  219. box-shadow: 0 0.1rem 0rem #4CAF50;
  220. }
  221. .qs-item li.player_true em::after{
  222. content:"";
  223. position:absolute;
  224. right: 0.3rem;
  225. top: .3rem;
  226. width: .35rem;
  227. height: .35rem;
  228. border: solid .1rem #c3c3c3;
  229. border-radius: 50%;
  230. }
  231. .qs-item li.player_error em::before{content:"";position:absolute;right: .5rem;top: .5rem;width: .5rem;height: .1rem;background: #c3c3c3;border-radius: .1rem;-webkit-transform: rotate(-45deg);transform: rotate(-45deg);}
  232. .qs-item li.player_error em::after{
  233. content:"";
  234. content: "";
  235. position: absolute;
  236. right: .7rem;
  237. top: .3rem;
  238. width: .1rem;
  239. height: .5rem;
  240. background: #c3c3c3;
  241. border-radius: .1rem;
  242. -webkit-transform: rotate(-45deg);
  243. transform: rotate(-45deg);
  244. }
  245. .qs-item .cur_answer.cur_error::before{content:"";position:absolute;left: .5rem;top: .5rem;width: .5rem;height: .1rem;background: #FFF;border-radius: .1rem;-webkit-transform: rotate(-45deg);transform: rotate(-45deg);}
  246. .qs-item .cur_answer.cur_error::after{
  247. content:"";
  248. content: "";
  249. position: absolute;
  250. left: .7rem;
  251. top: .3rem;
  252. width: .1rem;
  253. height: .5rem;
  254. background: #FFF;
  255. border-radius: .1rem;
  256. -webkit-transform: rotate(-45deg);
  257. transform: rotate(-45deg);
  258. }
  259. .qs-item li.cur_answer.cur_true::before{content:"";position:absolute;left: 0.3rem;top: .3rem;width: .35rem;height: .35rem;border: solid .1rem #FFF;border-radius: 50%;}
  260. .qs-item .page{text-align: center;color: #fff;font-size: .3rem;clear: both;}
  261. .end .qs-item{display: none;}
  262. .result{width: 6.12rem;height: 9rem;margin: 4.8rem 0.7rem 0;background-color: #FFF;display: none;position: relative;}
  263. .end .result{display: block;background: url(../img/item.png) no-repeat center top;background-size: 100%;}
  264. .top-icon{width: 2.33rem;height: 3rem;background-size: 100%;display: block;position: absolute;top: -0.86rem;left: 50%;margin-left: -1.165rem;text-align: center;}
  265. .top-icon.success{background: url(../img/success.png) no-repeat;background-size: 100%;}
  266. .top-icon.faild{background: url(../img/fail.png) no-repeat;background-size: 100%;}
  267. .result .live{color: #FFF;text-align: center;display: block;margin-top: 1.2rem;float: left;width: 100%;margin-bottom: 1rem;/* display: none; */text-indent: -33em;overflow: hidden;}
  268. .result .btn{
  269. display: block;
  270. width: 2.46rem;
  271. height: 1rem;
  272. margin: 0 auto .3rem;
  273. text-align: center;
  274. clear: both;
  275. color: #FFF;
  276. line-height: 1.15rem;
  277. font-size: .45rem;
  278. text-indent: -44em;
  279. overflow: hidden;
  280. }
  281. .result .btn1{
  282. background: url(../img/again.png);
  283. background-size: 100%;
  284. }
  285. .result .btn2{
  286. background: url(../img/back-home.png);
  287. background-size: 100%;
  288. }
  289. .amt{
  290. transition: all .3s;
  291. -webkit-transition: all .3s;
  292. }
  293. .loading{
  294. position: absolute;
  295. left: 50%;
  296. top: .4rem;
  297. width: 4rem;
  298. margin-left: -2rem;
  299. }
  300. #start_game.layui-btn {
  301. display:inline-block;
  302. width: 2.66rem;
  303. height: 3.12rem;
  304. line-height:38px;
  305. padding:0 18px;
  306. color:#fff;
  307. white-space:nowrap;
  308. text-align:center;
  309. font-size:14px;
  310. border:none;
  311. border-radius:2px;
  312. cursor:pointer;
  313. background: url(../img/start.png) no-repeat center;
  314. background-size: 100%;
  315. text-indent: -33em;
  316. overflow: hidden;
  317. position: absolute;
  318. left: 2.46rem;
  319. top: 7.4rem;
  320. z-index: 9;
  321. -webkit-animation-name: swing;
  322. animation-name: swing;
  323. -webkit-animation-duration: 2s;
  324. animation-duration: 2s;
  325. -webkit-animation-fill-mode: both;
  326. animation-fill-mode: both;
  327. -webkit-animation-iteration-count: infinite;
  328. animation-iteration-count: infinite;
  329. }
  330. .layui-btn+.layui-btn {
  331. margin-left:10px
  332. }
  333. .welcome{background: url(../img/bg1.png) no-repeat center bottom;height: 13.4rem;background-size: 7.5rem;}
  334. .welcome .covtit1{
  335. background: url(../img/tit1.png) no-repeat;
  336. background-size: 100%;
  337. width: 2.12rem;
  338. height: 2.34rem;
  339. left: .4rem;
  340. top: .4rem;
  341. -webkit-animation-name: wobble;
  342. animation-name:wobble;
  343. -webkit-animation-duration: 3s;
  344. animation-duration: 3s;
  345. -webkit-animation-fill-mode:both;
  346. animation-fill-mode:both;
  347. -webkit-animation-iteration-count: infinite;
  348. animation-iteration-count:infinite;
  349. }
  350. .welcome .covtit2{
  351. background: url(../img/tit2.png) no-repeat bottom;
  352. background-size: 100%;
  353. width: 6.63rem;
  354. height: 5.46rem;
  355. left: .4rem;
  356. top: 2rem;
  357. -webkit-animation-name: pulse;
  358. animation-name: pulse;
  359. -webkit-animation-duration: 2s;
  360. animation-duration: 2s;
  361. -webkit-animation-fill-mode: both;
  362. animation-fill-mode: both;
  363. -webkit-animation-iteration-count: infinite;
  364. animation-iteration-count: infinite;
  365. }
  366. .gstart{display:none}
  367. .popwind{width:6.05rem;height:6.98rem;position: absolute;left: 0.8rem;top: 2.5rem;background: url(../img/rulebg.png);background-size: 100%;display: none;z-index: 99;}
  368. .popwind .art{
  369. padding: 1.1rem .82rem .4rem;
  370. height: 4rem;
  371. color: #c0caff;
  372. font-size: .32rem;
  373. }
  374. .popwind .close{
  375. width: 2.46rem;
  376. height: 1rem;
  377. display: block;
  378. margin: 0 auto;
  379. background: url(../img/enter.png);
  380. background-size: 100%;
  381. }
  382. .welcome .rulebtn{
  383. display: block;
  384. width: 1.24rem;
  385. height: .72rem;
  386. background: url(../img/rule.png);
  387. background-size: 100%;
  388. position: absolute;
  389. left: 6rem;
  390. top: .5rem;
  391. }
  392. .popbg{display: none;position: fixed;left: 0;top: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.5);z-index: 90;}
  393. .covxlz{width: 2.86rem;left: 50%;margin-left: -1.43rem;top: 11.5rem;height: 1rem;border-radius: .5rem;background-color: #a7a8c5;line-height: 1rem;text-align: center;color: #222e71;}
  394. .con {
  395. position:relative;
  396. display:inline-block;
  397. height: 1.6rem;
  398. width: 1.6rem;
  399. background: url(../img/djs-bg.png);
  400. background-size: 100%;
  401. /* padding: .1rem; */
  402. }
  403. .doing .covxlz{display:none}
  404. .end .covxlz{display:block}
  405. .percent-circle {
  406. position:absolute;
  407. height:100%;
  408. background: #FFF;
  409. overflow: hidden;
  410. }
  411. .percent-circle-right {
  412. right:0;
  413. width: .8rem;
  414. border-radius: 0 .8rem .8rem 0/0 .8rem .8rem 0;
  415. }
  416. .percent-circle-right .right-content{
  417. position: absolute;
  418. content: '';
  419. width: 100%;
  420. height: 100%;
  421. transform-origin:left center;
  422. transform: rotate(0deg);
  423. border-radius: 0 .8rem .8rem 0/0 .8rem .8rem 0;
  424. background: #f49136;
  425. }
  426. .percent-circle-left {
  427. width:.8rem;
  428. border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
  429. }
  430. .percent-circle-left .left-content {
  431. position: absolute;
  432. content: '';
  433. width: 100%;
  434. height: 100%;
  435. transform-origin:right center;
  436. transform: rotate(0deg);
  437. border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
  438. background: #f49136;
  439. }
  440. .text-circle {
  441. position: absolute;
  442. display:flex;
  443. align-items: center;
  444. justify-content: center;
  445. height:80%;
  446. width:80%;
  447. left:10%;
  448. top:10%;
  449. border-radius:100%;
  450. background: #2b236e;
  451. color:#fff;
  452. text-shadow: 2px 2px 0px #820b3e;
  453. }
  454. .daoshu{
  455. -webkit-animation-name: daoshu;
  456. animation-name: daoshu;
  457. }
  458. @keyframes daoshu
  459. {
  460. from {
  461. transform: scale(1);
  462. -webkit-transform:scale(1); /* Safari 和 Chrome */
  463. color:#fff;
  464. }
  465. to {
  466. transform: scale(2);
  467. -webkit-transform:scale(2); /* Safari 和 Chrome */
  468. color:#820b3e;
  469. }
  470. }
  471. @-webkit-keyframes daoshu
  472. {
  473. from {
  474. transform: scale(1);
  475. -webkit-transform:scale(1); /* Safari 和 Chrome */
  476. color:#fff;
  477. }
  478. to {
  479. transform: scale(2);
  480. -webkit-transform:scale(2); /* Safari 和 Chrome */
  481. color:#820b3e;
  482. }
  483. }
  484. .poptis{
  485. display: inline-block;
  486. height: 28px;
  487. line-height: 28px;
  488. border-radius: 9px;
  489. background-color: #287AFF;
  490. text-align: center;
  491. color: #FFF;
  492. margin: 0 auto;
  493. display: block;
  494. position: fixed;
  495. left: 50%;
  496. top: 42%;
  497. padding: 7px 27px;
  498. font-size: 16px;
  499. z-index: 9999;
  500. }