main.css 14 KB

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