base.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. display: flex;
  103. align-items: center;
  104. height: 68px;
  105. li {
  106. position: relative;
  107. height: 100%;
  108. margin-left: 56px;
  109. &:hover {
  110. &::after {
  111. opacity: 1;
  112. }
  113. a {
  114. color: #0688d2;
  115. }
  116. }
  117. &:first-child {
  118. margin-left: 0;
  119. }
  120. &::after {
  121. content: '';
  122. opacity: 0;
  123. width: 100%;
  124. height: 3px;
  125. position: absolute;
  126. left: 0;
  127. bottom: 0;
  128. background-color: #0688d2;
  129. transition: all 0.2s;
  130. }
  131. &.active {
  132. &::after {
  133. opacity: 1;
  134. }
  135. a {
  136. color: #0688d2;
  137. }
  138. }
  139. a {
  140. display: block;
  141. line-height: 68px;
  142. transition: all 0.2s;
  143. }
  144. }
  145. }
  146. }
  147. // 底部区域
  148. .footer {
  149. margin-top: 120px;
  150. padding-top: 38px;
  151. padding-bottom: 24px;
  152. background: #1b1b1b;
  153. .container {
  154. .section {
  155. margin-right: 180px;
  156. .item {
  157. position: relative;
  158. color: rgba(255, 255, 255, 0.5);
  159. margin-top: 20px;
  160. padding-left: 30px;
  161. font-size: 12px;
  162. &::before {
  163. content: '';
  164. display: block;
  165. width: 20px;
  166. height: 20px;
  167. background-color: #fff;
  168. position: absolute;
  169. left: 0;
  170. top: 50%;
  171. transform: translateY(-50%);
  172. }
  173. &.mobile {
  174. span {
  175. &:last-child {
  176. margin-left: 16px;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. .nav {
  183. margin-left: 110px;
  184. li {
  185. margin-top: 25px;
  186. text-align: center;
  187. &:first-child {
  188. margin-top: 12px;
  189. }
  190. a {
  191. font-size: 14px;
  192. color: rgba(255, 255, 255, 0.5);
  193. &:hover {
  194. color: #0688d2;
  195. }
  196. }
  197. }
  198. }
  199. .qrcode {
  200. padding: 7px;
  201. background: rgba(255, 255, 255, 0.06);
  202. img {
  203. display: block;
  204. width: 94px;
  205. height: 94px;
  206. background-color: #fff;
  207. }
  208. .tip {
  209. font-size: 12px;
  210. color: #ffffff;
  211. margin-top: 5px;
  212. text-align: center;
  213. }
  214. }
  215. }
  216. .line {
  217. width: 100%;
  218. height: 1px;
  219. background-color: rgba(255, 255, 255, 0.3);
  220. margin: 32px 0 24px;
  221. }
  222. .link {
  223. display: flex;
  224. justify-content: center;
  225. align-items: center;
  226. i {
  227. display: block;
  228. height: 10px;
  229. width: 1px;
  230. background-color: rgba(255, 255, 255, 0.4);
  231. margin: 0 16px;
  232. }
  233. a {
  234. color: rgba(255, 255, 255, 0.4);
  235. font-size: 12px;
  236. &:hover {
  237. color: #0688d2;
  238. }
  239. }
  240. }
  241. .copyright {
  242. margin-top: 20px;
  243. text-align: center;
  244. color: rgba(255, 255, 255, 0.4);
  245. font-size: 12px;
  246. a {
  247. color: rgba(255, 255, 255, 0.8);
  248. text-decoration: underline;
  249. }
  250. * {
  251. margin: 0 24px;
  252. }
  253. }
  254. }