base.scss 7.9 KB

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