base.scss 6.7 KB

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