base.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. body {
  2. min-height: 100vh;
  3. font-size: 16px;
  4. color: #272727;
  5. font-family: 'Microsoft YaHei', SimSun, Arial, Helvetica, sans-serif;
  6. }
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6,
  13. p {
  14. margin: 0;
  15. font-size: 16px;
  16. }
  17. ul,
  18. ol {
  19. margin: 0;
  20. padding: 0;
  21. }
  22. li {
  23. padding: 0;
  24. list-style-type: none;
  25. }
  26. a {
  27. text-decoration: none;
  28. color: #272727;
  29. }
  30. ::-webkit-scrollbar {
  31. width: 8px;
  32. height: 8px;
  33. background-color: #f5f5f5;
  34. }
  35. ::-webkit-scrollbar-thumb {
  36. border-radius: 4px;
  37. background-color: #cccecf;
  38. }
  39. .container {
  40. width: 1200px;
  41. margin: 0 auto;
  42. }
  43. .flex {
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. }
  48. .fl {
  49. float: left !important;
  50. }
  51. .fr {
  52. float: right !important;
  53. }
  54. .clearfix::after {
  55. content: '';
  56. display: block;
  57. clear: both;
  58. }
  59. .mt18 {
  60. margin-top: 18px;
  61. }
  62. .mr18 {
  63. margin-right: 18px;
  64. }
  65. .mb18 {
  66. margin-bottom: 18px;
  67. }
  68. .ml18 {
  69. margin-left: 18px;
  70. }
  71. .banner {
  72. position: relative;
  73. width: 100%;
  74. min-width: 1200px;
  75. height: 530px;
  76. overflow: hidden;
  77. img {
  78. position: absolute;
  79. left: 50%;
  80. top: 50%;
  81. transform: translate(-50%, -50%);
  82. }
  83. }
  84. // 导航菜单
  85. .header {
  86. position: sticky;
  87. width: 100%;
  88. left: 0;
  89. top: 0;
  90. z-index: 99;
  91. background-color: #fff;
  92. .logo {
  93. h1 {
  94. font-size: 0;
  95. }
  96. img {
  97. display: block;
  98. height: 42px;
  99. }
  100. }
  101. .nav {
  102. & > li {
  103. float: left;
  104. position: relative;
  105. margin-right: 56px;
  106. &:last-child {
  107. margin-right: 0;
  108. }
  109. &:hover {
  110. & > a {
  111. color: #0688d2;
  112. }
  113. &::after {
  114. display: block;
  115. }
  116. .menu {
  117. display: block;
  118. }
  119. }
  120. & > a {
  121. display: block;
  122. line-height: 68px;
  123. }
  124. &::after {
  125. content: '';
  126. position: absolute;
  127. display: none;
  128. width: 32px;
  129. height: 3px;
  130. background: #0688d2;
  131. left: 50%;
  132. bottom: 0;
  133. transform: translateX(-50%);
  134. }
  135. &.active {
  136. & > a {
  137. color: #0688d2;
  138. }
  139. &::after {
  140. display: block;
  141. }
  142. }
  143. }
  144. .menu {
  145. display: none;
  146. position: absolute;
  147. background: #fff;
  148. border: 1px solid #f8f8f8;
  149. min-width: 128px;
  150. left: 50%;
  151. top: 68px;
  152. transform: translateX(-50%);
  153. & > li {
  154. &:hover {
  155. background: #0688d2;
  156. & > a {
  157. color: #fff;
  158. }
  159. .submenu {
  160. display: block;
  161. }
  162. }
  163. & > a {
  164. display: block;
  165. font-size: 14px;
  166. text-align: center;
  167. line-height: 50px;
  168. }
  169. &.dropdown > a {
  170. background: url(/img/icon-arrow-right.png) no-repeat;
  171. background-position: 88% center;
  172. background-size: 16px;
  173. }
  174. }
  175. .submenu {
  176. display: none;
  177. position: absolute;
  178. top: 0;
  179. right: 0;
  180. background: #fff;
  181. width: 306px;
  182. min-height: 200px;
  183. border: 1px solid #f8f8f8;
  184. border-left-color: #e8e8e8;
  185. transform: translateX(100%) translateX(-1px);
  186. box-sizing: border-box;
  187. padding: 16px 24px;
  188. & > li {
  189. float: left;
  190. margin: 16px 16px 0 0;
  191. &:nth-child(2n) {
  192. margin-right: 0;
  193. }
  194. &:nth-child(-n + 2) {
  195. margin-top: 0;
  196. }
  197. & > a {
  198. display: block;
  199. font-size: 14px;
  200. width: 120px;
  201. text-align: center;
  202. line-height: 32px;
  203. background: #f7f7f7;
  204. &:hover {
  205. background: #eff9ff;
  206. color: #0688d2;
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. }
  214. // 底部区域
  215. .footer {
  216. margin-top: 120px;
  217. padding-top: 38px;
  218. padding-bottom: 24px;
  219. background: #1b1b1b;
  220. .container {
  221. .section {
  222. margin-right: 180px;
  223. .item {
  224. position: relative;
  225. color: rgba(255, 255, 255, 0.5);
  226. margin-top: 20px;
  227. padding-left: 30px;
  228. font-size: 12px;
  229. &::before {
  230. content: '';
  231. display: block;
  232. width: 20px;
  233. height: 20px;
  234. background-color: #fff;
  235. position: absolute;
  236. left: 0;
  237. top: 50%;
  238. transform: translateY(-50%);
  239. }
  240. &.mobile {
  241. span {
  242. &:last-child {
  243. margin-left: 16px;
  244. }
  245. }
  246. }
  247. }
  248. }
  249. .nav {
  250. margin-left: 110px;
  251. li {
  252. margin-top: 25px;
  253. text-align: center;
  254. &:first-child {
  255. margin-top: 12px;
  256. }
  257. a {
  258. font-size: 14px;
  259. color: rgba(255, 255, 255, 0.5);
  260. &:hover {
  261. color: #0688d2;
  262. }
  263. }
  264. }
  265. }
  266. .qrcode {
  267. padding: 7px;
  268. background: rgba(255, 255, 255, 0.06);
  269. img {
  270. display: block;
  271. width: 94px;
  272. height: 94px;
  273. background-color: #fff;
  274. }
  275. .tip {
  276. font-size: 12px;
  277. color: #ffffff;
  278. margin-top: 5px;
  279. text-align: center;
  280. }
  281. }
  282. }
  283. .line {
  284. width: 100%;
  285. height: 1px;
  286. background-color: rgba(255, 255, 255, 0.3);
  287. margin: 32px 0 24px;
  288. }
  289. .link {
  290. display: flex;
  291. justify-content: center;
  292. align-items: center;
  293. i {
  294. display: block;
  295. height: 10px;
  296. width: 1px;
  297. background-color: rgba(255, 255, 255, 0.4);
  298. margin: 0 16px;
  299. }
  300. a {
  301. color: rgba(255, 255, 255, 0.4);
  302. font-size: 12px;
  303. &:hover {
  304. color: #0688d2;
  305. }
  306. }
  307. }
  308. .copyright {
  309. margin-top: 20px;
  310. text-align: center;
  311. color: rgba(255, 255, 255, 0.4);
  312. font-size: 12px;
  313. a {
  314. color: rgba(255, 255, 255, 0.8);
  315. text-decoration: underline;
  316. }
  317. * {
  318. margin: 0 24px;
  319. }
  320. }
  321. }