main.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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. .loader {
  25. width: 4rem;
  26. height: 4rem;
  27. font-size: 10px;
  28. position: relative;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. margin: 2rem auto 0;
  33. }
  34. .loader .face {
  35. position: absolute;
  36. border-radius: 50%;
  37. border-style: solid;
  38. animation: animate 3s linear infinite;
  39. }
  40. .loader .face:nth-child(1) {
  41. width: 100%;
  42. height: 100%;
  43. color: #bbc5ff;
  44. /* border-color: currentColor transparent transparent currentColor; */
  45. /* border-width: 0.2em 0.2em 0em 0em; */
  46. --deg: -45deg;
  47. animation-direction: normal;
  48. }
  49. .loader .face:nth-child(2) {
  50. width: 70%;
  51. height: 70%;
  52. color: #bbc5ff;
  53. /* border-color: currentColor currentColor transparent transparent; */
  54. /* border-width: 0.2em 0em 0em 0.2em; */
  55. --deg: -135deg;
  56. animation-direction: reverse;
  57. }
  58. .loader .face .circle {
  59. position: absolute;
  60. width: 50%;
  61. height: 0.1em;
  62. top: 50%;
  63. left: 50%;
  64. background-color: transparent;
  65. transform: rotate(var(--deg));
  66. transform-origin: left;
  67. }
  68. .loader .face .circle::before {
  69. position: absolute;
  70. top: -0.5em;
  71. right: -0.5em;
  72. content: '';
  73. width: 1em;
  74. height: 1em;
  75. background-color: currentColor;
  76. border-radius: 50%;
  77. box-shadow: 0 0 2em,
  78. 0 0 4em,
  79. 0 0 6em,
  80. 0 0 8em,
  81. 0 0 10em,
  82. 0 0 0 0.5em rgba(255, 255, 0, 0.1);
  83. }
  84. @keyframes animate {
  85. to {
  86. transform: rotate(1turn);
  87. }
  88. }
  89. body{
  90. background: url(../img/bg2.jpg) center top;
  91. }
  92. .cov{ position: absolute; }
  93. .g-inner{margin: 0 auto;width: 7.5rem;}
  94. .cov1{left: 50%;top: 3.3rem;width: 2.4rem;margin-left: -1.2rem;/* border: solid #71a3fd 2px; */border-radius: 50%;}
  95. .cov2{left: 50%;top: 10.5rem;margin-left: -1.5rem;width: 3rem;font-size: .3rem;text-align: center;}
  96. .cov1 .userface{width: 2.2rem;height: 2.2rem;margin: 0 auto;}
  97. .cov3{left: 50%;top: 7rem;width: 2rem;height: 1rem;line-height: 1rem;margin-left: -1rem;text-align: center;font-size: .5rem;color: #FFF;font-weight: bold;border-radius: .2rem;}
  98. .cov4{right: 50%;top: 8.5rem;width: 2rem;margin-right: -1rem;}
  99. .userface{border-radius: 50%;overflow: hidden;background-color: #000;display: block;}
  100. .cov4 .userface{width: 2.0rem;height: 2.0rem;float: right;opacity: 0;}
  101. .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;}
  102. .num{opacity: 0;color: #FFF;FONT-SIZE: 0.6REM;position: absolute;top: 0;text-shadow: 0px 0px 6px #7f8dde;}
  103. .doing .num{opacity: 1;line-height: .8rem;text-align: center;text-shadow: 2px 2px 0px #820b3e;}
  104. .doing .cov1 .num{
  105. /* color: #FFF; */
  106. /* FONT-SIZE: 0.5REM; */
  107. left: 2.3rem;
  108. }
  109. .doing .cov4 .num{
  110. left: .8rem;
  111. }
  112. .doing .cov4,.end .cov4{right: 50%;top: 10rem;width: 2rem;margin-left: -1rem;}
  113. .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;}
  114. .doing .cov1 .userface{width: 1.0rem;height: 1.0rem;left: .8rem;background: url(../img/user0-face.png);background-size: 100%;}
  115. .doing .cov2 , .doing .loading{opacity: 0;position: absolute;left: 50%;margin-left: -2.3rem;}
  116. .doing .cov3{top: 0rem;z-index: 9;}
  117. .doing .userface{position: absolute;top: -.5rem;}
  118. .cov .name{
  119. color: #fff;
  120. font-style: normal;
  121. position: absolute;
  122. left: .8rem;
  123. font-size: .35rem;
  124. top: 1rem;
  125. left: .2rem;
  126. width: 2rem;
  127. text-align: center;
  128. text-shadow: 2px 2px 0px #820b3e;
  129. }
  130. .cov4 .name{left: 1.7rem;top: -1.2rem;}
  131. .gstart .name{top: 3.4rem;width: 2rem;left: 50%;margin-left: -1rem;text-align: center;}
  132. .gstart .cov4 .name{ left: 46%; }
  133. .doing.gstart .name{ top:inherit; }
  134. .doing.gstart .cov4 .name{ left:inherit; }
  135. .doing .qs-item{display:block;width: 5.50rem;}
  136. .doing .cov4 .userface{opacity:1;width: 1rem;height: 1rem;left: 2.3rem;background: url(../img/user0-face.png);background-size: 100%;}
  137. .doing .userface img{
  138. padding: 0.1rem;
  139. width: .8rem;
  140. border-radius: 50%;
  141. }
  142. .qs-item{padding: 3.8rem 1rem 0;display: none;position: absolute;left: 0;top: 0;z-index: 99;}
  143. .qs-item .tit{color: #FFF;font-size: .4rem;text-align: center;display: block;margin-bottom: .2rem;}
  144. .qs-item .list{
  145. margin: 0 auto;
  146. width: 4.4rem;
  147. }
  148. .qs-item li{
  149. width: 4.46rem;
  150. height: .95rem;
  151. border-radius: 1.15rem;
  152. color: #8400b1;
  153. background-color: #FFF;
  154. text-align: center;
  155. line-height: 1.15rem;
  156. margin-bottom: .5rem;
  157. overflow: hidden;
  158. }
  159. .qs-item li:nth-child(2n){
  160. -webkit-animation-name: bounceInLeft;
  161. animation-name: bounceInLeft;
  162. -webkit-animation-duration: .5s;
  163. animation-duration: .5s;
  164. -webkit-animation-fill-mode: both;
  165. animation-fill-mode: both;
  166. }
  167. .qs-item li:nth-child(2n-1){
  168. -webkit-animation-name: bounceInRight;
  169. animation-name: bounceInRight;
  170. -webkit-animation-duration: .5s;
  171. animation-duration: .5s;
  172. -webkit-animation-fill-mode: both;
  173. animation-fill-mode: both;
  174. }
  175. .qs-item li .answer {
  176. width: 100%;
  177. height: 100%;
  178. margin: 0;
  179. background: url(../img/check.png) no-repeat center;
  180. border: 0;
  181. background-size: 100%;
  182. color: #222e71;
  183. font-size: .44rem;
  184. float: left;
  185. }
  186. .qs-item li.on,.qs-item li .cur_answer{
  187. background: url(../img/check-true.png) no-repeat center;
  188. background-size:100%;
  189. color: #FFF;
  190. }
  191. .qs-item .cur_answer.cur_error{
  192. background: url(../img/check-error.png) no-repeat center;
  193. background-size:100%;
  194. color: #FFF;
  195. }
  196. .qs-item .cur_answer.cur_true{
  197. background-color:#009688;
  198. color: #FFF;
  199. }
  200. .qs-item .page{text-align: center; color: #fff; font-size: .3rem;}
  201. .end .qs-item{display: none;}
  202. .result{width: 6.12rem;height: 9rem;margin: 4.8rem 0.7rem 0;background-color: #FFF;display: none;position: relative;}
  203. .end .result{display: block;background: url(../img/item.png) no-repeat center top;background-size: 100%;}
  204. .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;}
  205. .top-icon.success{background-image: url(../img/success.png); }
  206. .top-icon.faild{background-image: url(../img/fail.png);}
  207. .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;}
  208. .result .btn{
  209. display: block;
  210. width: 2.46rem;
  211. height: 1rem;
  212. margin: 0 auto .3rem;
  213. text-align: center;
  214. clear: both;
  215. color: #FFF;
  216. line-height: 1.15rem;
  217. font-size: .45rem;
  218. text-indent: -44em;
  219. overflow: hidden;
  220. }
  221. .result .btn1{
  222. background: url(../img/again.png);
  223. background-size: 100%;
  224. }
  225. .result .btn2{
  226. background: url(../img/back-home.png);
  227. background-size: 100%;
  228. }
  229. .amt{
  230. transition: all .3s;
  231. -webkit-transition: all .3s;
  232. }
  233. .loading{
  234. position: absolute;
  235. left: 50%;
  236. top: .4rem;
  237. width: 4rem;
  238. margin-left: -2rem;
  239. }
  240. #start_game.layui-btn {
  241. display:inline-block;
  242. width: 2.66rem;
  243. height: 3.12rem;
  244. line-height:38px;
  245. padding:0 18px;
  246. color:#fff;
  247. white-space:nowrap;
  248. text-align:center;
  249. font-size:14px;
  250. border:none;
  251. border-radius:2px;
  252. cursor:pointer;
  253. background: url(../img/start.png) no-repeat center;
  254. background-size: 100%;
  255. text-indent: -33em;
  256. overflow: hidden;
  257. position: absolute;
  258. left: 2.46rem;
  259. top: 7.4rem;
  260. z-index: 9;
  261. -webkit-animation-name: swing;
  262. animation-name: swing;
  263. -webkit-animation-duration: 2s;
  264. animation-duration: 2s;
  265. -webkit-animation-fill-mode: both;
  266. animation-fill-mode: both;
  267. -webkit-animation-iteration-count: infinite;
  268. animation-iteration-count: infinite;
  269. }
  270. .layui-btn:hover {
  271. opacity:.8;
  272. filter:alpha(opacity=80);
  273. color:#fff
  274. }
  275. .layui-btn:active {
  276. opacity:1;
  277. filter:alpha(opacity=100)
  278. }
  279. .layui-btn+.layui-btn {
  280. margin-left:10px
  281. }
  282. .welcome{background: url(../img/bg1.png) no-repeat center bottom;height: 13.4rem;background-size: 7.5rem;}
  283. .welcome .covtit1{
  284. background: url(../img/tit1.png) no-repeat;
  285. background-size: 100%;
  286. width: 2.12rem;
  287. height: 2.34rem;
  288. left: .4rem;
  289. top: .4rem;
  290. -webkit-animation-name: wobble;
  291. animation-name:wobble;
  292. -webkit-animation-duration: 3s;
  293. animation-duration: 3s;
  294. -webkit-animation-fill-mode:both;
  295. animation-fill-mode:both;
  296. -webkit-animation-iteration-count: infinite;
  297. animation-iteration-count:infinite;
  298. }
  299. .welcome .covtit2{
  300. background: url(../img/tit2.png) no-repeat bottom;
  301. background-size: 100%;
  302. width: 6.63rem;
  303. height: 5.46rem;
  304. left: .4rem;
  305. top: 2rem;
  306. -webkit-animation-name: pulse;
  307. animation-name: pulse;
  308. -webkit-animation-duration: 2s;
  309. animation-duration: 2s;
  310. -webkit-animation-fill-mode: both;
  311. animation-fill-mode: both;
  312. -webkit-animation-iteration-count: infinite;
  313. animation-iteration-count: infinite;
  314. }
  315. .gstart{display:none}
  316. .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;}
  317. .popwind .art{
  318. padding: 1.1rem .82rem .4rem;
  319. height: 4rem;
  320. color: #c0caff;
  321. font-size: .32rem;
  322. }
  323. .popwind .close{
  324. width: 2.46rem;
  325. height: 1rem;
  326. display: block;
  327. margin: 0 auto;
  328. background: url(../img/enter.png);
  329. background-size: 100%;
  330. }
  331. .welcome .rulebtn{
  332. display: block;
  333. width: 1.24rem;
  334. height: .72rem;
  335. background: url(../img/rule.png);
  336. background-size: 100%;
  337. position: absolute;
  338. left: 6rem;
  339. top: .5rem;
  340. }
  341. .popbg{display: none;position: fixed;left: 0;top: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.5);z-index: 90;}
  342. .covxlz{ width: 2.86rem;left: 50%; margin-left: -1.43rem; bottom: .5rem; height: 1rem; border-radius: .5rem; background-color: #a7a8c5;line-height: 1rem;text-align: center;color: #222e71 }
  343. .con {
  344. position:relative;
  345. display:inline-block;
  346. height: 1.6rem;
  347. width: 1.6rem;
  348. background: url(../img/djs-bg.png);
  349. background-size: 100%;
  350. /* padding: .1rem; */
  351. }
  352. .doing .covxlz{display:none}
  353. .end .covxlz{display:block}
  354. .percent-circle {
  355. position:absolute;
  356. height:100%;
  357. background: #f49136;
  358. overflow: hidden;
  359. }
  360. .percent-circle-right {
  361. right:0;
  362. width: .8rem;
  363. border-radius: 0 .8rem .8rem 0/0 .8rem .8rem 0;
  364. }
  365. .percent-circle-right .right-content{
  366. position: absolute;
  367. content: '';
  368. width: 100%;
  369. height: 100%;
  370. transform-origin:left center;
  371. transform: rotate(0deg);
  372. border-radius: 0 .8rem .8rem 0/0 .8rem .8rem 0;
  373. background: #ffffff;
  374. }
  375. .percent-circle-left {
  376. width:.8rem;
  377. border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
  378. }
  379. .percent-circle-left .left-content {
  380. position: absolute;
  381. content: '';
  382. width: 100%;
  383. height: 100%;
  384. transform-origin:right center;
  385. transform: rotate(0deg);
  386. border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
  387. background: #ffffff;
  388. }
  389. .text-circle {
  390. position: absolute;
  391. display:flex;
  392. align-items: center;
  393. justify-content: center;
  394. height:80%;
  395. width:80%;
  396. left:10%;
  397. top:10%;
  398. border-radius:100%;
  399. background: #2b236e;
  400. color:#fff;
  401. }