index.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html, body {
  6. width: 100%;
  7. height: 100%;
  8. }
  9. body {
  10. /* background-image: linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)), url(../img/bg.jpg); */
  11. /* background-image: url(../img/bg.jpg); */
  12. background-color: #f6f6f6;
  13. background-repeat: no-repeat;
  14. background-attachment: fixed;
  15. background-size: cover;
  16. }
  17. #box {
  18. /* background-color: red; */
  19. width: 1200px;
  20. height: 100px;
  21. margin: 0 auto;
  22. padding-top: 5%;
  23. }
  24. .meBox {
  25. float: none;
  26. width: 20rem;
  27. height: 25rem;
  28. background-color: #ffffff;
  29. margin: 100px auto 100px;
  30. border-radius: 2%;
  31. transition: all 0.3s;
  32. text-align: center;
  33. }
  34. .meBox:hover {
  35. width: 21rem;
  36. height: 26rem;
  37. box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  38. }
  39. .headPhoto {
  40. width: 8rem;
  41. height: 8rem;
  42. background: url(https://cdn.wqg.life/common/logo.jpg) no-repeat;
  43. background-size: cover;
  44. border-radius: 50%;
  45. position: relative;
  46. top: -15%;
  47. left: 50%;
  48. margin-left: -4rem;
  49. transition: all 0.3s;
  50. }
  51. .meBox:hover .headPhoto {
  52. width: 9rem;
  53. height: 9rem;
  54. margin: -0.5rem 0 0 -4.5rem;
  55. transform: rotate(360deg);
  56. }
  57. .headPhoto:hover {
  58. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  59. }
  60. .meBox-title {
  61. width: auto;
  62. margin: 0 auto;
  63. }
  64. @keyframes typing {
  65. from {
  66. width: 0;
  67. }
  68. }
  69. @keyframes blink-caret {
  70. 50% {
  71. border-color: transparent;
  72. }
  73. }
  74. .meBox-title p {
  75. font-size: 1.2rem;
  76. border-right: .1em solid;
  77. width: 8ch;
  78. white-space: nowrap;
  79. overflow: hidden;
  80. animation: typing 2s steps(20, end), blink-caret .3s step-end infinite alternate;
  81. margin: auto;
  82. transition: all 0.3s;
  83. }
  84. .meBox:hover .meBox-title p {
  85. font-size: 1.3rem;
  86. }
  87. .meBox-title .fg {
  88. width: 80%;
  89. height: 2px;
  90. background-image: linear-gradient(to left, #3498db, #2980b9);
  91. margin: 5% 0 0 10%;
  92. }
  93. .meBox-text {
  94. width: 100%;
  95. height: 40%;
  96. overflow: hidden;
  97. text-align: center;
  98. color: rgb(70, 70, 70);
  99. animation-name: meBox-text;
  100. animation-duration: 2s;
  101. animation-fill-mode: forwards;
  102. /* margin: 5% 0 0 10%; */
  103. transition: all 0.3s;
  104. }
  105. .meBox-text p {
  106. margin-top: 5px;
  107. }
  108. .meBox:hover .meBox-text {
  109. font-size: 1.05rem;
  110. }
  111. @keyframes meBox-text {
  112. 0% {
  113. transform: translateY(50px);
  114. color: white;
  115. }
  116. 100% {
  117. transform: translateY(0);
  118. color: rgb(70, 70, 70);
  119. }
  120. }
  121. .meBox-Button {
  122. width: 100%;
  123. }
  124. .meBox-Button a {
  125. display: inline-block;
  126. width: 158px;
  127. height: 50px;
  128. line-height: 50px;
  129. text-decoration: none;
  130. color: gray;
  131. transition: all 0.3s;
  132. }
  133. .meBox-Button a:hover {
  134. color: rgb(0, 132, 255);
  135. font-size: 1.2rem;
  136. }
  137. .meBox:hover .meBox-Button a {
  138. width: 165px;
  139. margin-top: 10px;
  140. }
  141. #cmdBox {
  142. width: 710px;
  143. height: 550px;
  144. float: right;
  145. /* background-color: green; */
  146. }
  147. .cmd {
  148. width: 600px;
  149. height: 400px;
  150. border-radius: 10px 10px 5px 5px;
  151. overflow: hidden;
  152. background-color: rgba(255, 255, 255, 0.9);
  153. transition: all 0.3s;
  154. font-size: 14px;
  155. color: rgb(88, 89, 92);
  156. position: relative;
  157. top: 0;
  158. left: 0;
  159. }
  160. .cmd:hover {
  161. width: 610px;
  162. height: 410px;
  163. box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  164. margin: -5px 0 0 -5px;
  165. z-index: 1;
  166. }
  167. .cmd .title {
  168. width: 100%;
  169. height: 25px;
  170. background-image: linear-gradient(to top, rgb(184, 184, 184), white);
  171. font-size: 14px;
  172. line-height: 25px;
  173. }
  174. .cmd .title span {
  175. display: inline-block;
  176. width: 70%;
  177. text-align: center;
  178. /* background-color: red; */
  179. }
  180. .cmd .click {
  181. margin-left: 10px;
  182. float: left;
  183. }
  184. .cmd .click div {
  185. width: 10px;
  186. height: 10px;
  187. border-radius: 50%;
  188. margin: 8px 0 0 10px;
  189. float: left;
  190. }
  191. .cmd .click .red {
  192. background-color: #ff1b22;
  193. box-shadow: 0 0 1px #ff1b22;
  194. }
  195. .cmd .click .red:hover {
  196. background-color: #ff6268;
  197. box-shadow: 0 0 3px #ff1b22;
  198. }
  199. .cmd .click .yellow {
  200. background-color: #ffaf00;
  201. box-shadow: 0 0 1px #ffaf00;
  202. }
  203. .cmd .click .yellow:hover {
  204. background-color: #ffd373;
  205. box-shadow: 0 0 3px #ffaf00;
  206. }
  207. .cmd .click .green {
  208. background-color: #00931a;
  209. box-shadow: 0 0 1px #00931a;
  210. }
  211. .cmd .click .green:hover {
  212. background-color: rgb(0, 196, 36);
  213. box-shadow: 0 0 3px #00931a;
  214. }
  215. .cmdText {
  216. padding-top: 10px;
  217. padding-left: 15px;
  218. }
  219. .cmd2 {
  220. position: relative;
  221. top: -280px;
  222. left: 100px;
  223. }
  224. .cmd2 .cmdText .ul {
  225. margin-left: 15px;
  226. }
  227. .cmd2 .cmdText .ul a {
  228. text-decoration: none;
  229. color: rgb(88, 89, 92);
  230. }
  231. .cmd2 .cmdText .ul a:hover {
  232. color: rgb(0, 132, 255);
  233. }
  234. #footer {
  235. width: 100%;
  236. color: black;
  237. float: left;
  238. text-align: center;
  239. position: fixed;
  240. bottom: 0;
  241. margin-bottom: 30px;
  242. /* background-color: blue; */
  243. }
  244. #footer a {
  245. text-decoration: none;
  246. color: black;
  247. }
  248. #footer a:hover {
  249. color: rgb(0, 81, 255);
  250. }
  251. /* 自适应 */
  252. @media screen and (max-width: 1250px) {
  253. #box {
  254. width: 100%;
  255. }
  256. .meBox {
  257. margin-left: 3%;
  258. }
  259. .meBox:hover {
  260. width: 21rem;
  261. height: 26rem;
  262. margin: 95px 0 0 2.5%;
  263. }
  264. #cmdBox {
  265. margin-right: 3%;
  266. }
  267. }
  268. @media screen and (max-width: 1120px) {
  269. .meBox {
  270. float: none;
  271. margin: 100px auto 100px;
  272. }
  273. .meBox:hover {
  274. width: 20rem;
  275. height: 25rem;
  276. margin: 105px auto 100px;
  277. }
  278. .meBox:hover .meBox-Button a {
  279. width: 158px;
  280. height: 50px;
  281. margin-top: 13px;
  282. }
  283. .meBox:hover .meBox-title p {
  284. font-size: 1.2rem;
  285. }
  286. .meBox:hover .headPhoto {
  287. width: 8rem;
  288. height: 8rem;
  289. margin: -0.5rem 0 0 -4rem;
  290. transform: rotate(360deg);
  291. }
  292. #cmdBox {
  293. float: none;
  294. margin: 0 auto 100px;
  295. }
  296. }
  297. @media screen and (max-width: 768px) {
  298. .meBox {
  299. width: 300px;
  300. }
  301. .meBox:hover {
  302. width: 300px;
  303. height: 25rem;
  304. margin: 100px auto 100px;
  305. }
  306. .meBox-Button a:hover {
  307. color: rgb(0, 132, 255);
  308. }
  309. .meBox:hover .meBox-Button a {
  310. width: 150px;
  311. margin-top: 13px;
  312. }
  313. .meBox:hover .meBox-title p {
  314. font-size: 1.2rem;
  315. }
  316. .meBox:hover .headPhoto {
  317. width: 8rem;
  318. height: 8rem;
  319. margin: -0.5rem 0 0 -4rem;
  320. transform: rotate(360deg);
  321. }
  322. .meBox:hover .meBox-text {
  323. font-size: 1rem;
  324. }
  325. .meBox-Button a {
  326. width: 150px;
  327. }
  328. #cmdBox {
  329. width: 100%;
  330. height: 850px;
  331. }
  332. .cmd {
  333. width: 90%;
  334. margin: 0 auto;
  335. }
  336. .cmd2 {
  337. position: relative;
  338. top: 20px;
  339. left: 0;
  340. }
  341. .cmd:hover {
  342. width: 90%;
  343. box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  344. margin: 0 auto;
  345. z-index: 1;
  346. }
  347. }