main.css 14 KB

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