base.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. body {
  2. min-height: 100vh;
  3. color: #272727;
  4. font-family: 'Microsoft YaHei', SimSun, Arial, Helvetica, sans-serif;
  5. }
  6. input,
  7. textarea,
  8. select {
  9. outline-color: #0688d2;
  10. }
  11. h1,
  12. h2,
  13. h3,
  14. h4,
  15. h5,
  16. h6,
  17. p {
  18. margin: 0;
  19. font-size: 16px;
  20. }
  21. ul,
  22. ol {
  23. list-style-type: none;
  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. * {
  36. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  37. }
  38. ::-webkit-scrollbar {
  39. width: 8px;
  40. height: 8px;
  41. background-color: #f5f5f5;
  42. }
  43. ::-webkit-scrollbar-thumb {
  44. border-radius: 4px;
  45. background-color: #cccecf;
  46. }
  47. .flex {
  48. display: -webkit-box;
  49. display: -ms-flexbox;
  50. display: flex;
  51. -webkit-box-pack: justify;
  52. -ms-flex-pack: justify;
  53. justify-content: space-between;
  54. -webkit-box-align: center;
  55. -ms-flex-align: center;
  56. align-items: center;
  57. }
  58. .fl {
  59. float: left !important;
  60. }
  61. .fr {
  62. float: right !important;
  63. }
  64. .clearfix::after {
  65. content: '';
  66. display: block;
  67. clear: both;
  68. }
  69. @-webkit-keyframes rowup-left {
  70. 0% {
  71. -webkit-transform: translate3d(0, 0, 0);
  72. transform: translate3d(0, 0, 0);
  73. }
  74. 100% {
  75. -webkit-transform: translate3d(-600px, 0, 0);
  76. transform: translate3d(-600px, 0, 0);
  77. }
  78. }
  79. @keyframes rowup-left {
  80. 0% {
  81. -webkit-transform: translate3d(0, 0, 0);
  82. transform: translate3d(0, 0, 0);
  83. }
  84. 100% {
  85. -webkit-transform: translate3d(-600px, 0, 0);
  86. transform: translate3d(-600px, 0, 0);
  87. }
  88. }
  89. @-webkit-keyframes rowup-right {
  90. 0% {
  91. -webkit-transform: translate3d(0, 0, 0);
  92. transform: translate3d(0, 0, 0);
  93. }
  94. 100% {
  95. -webkit-transform: translate3d(600px, 0, 0);
  96. transform: translate3d(600px, 0, 0);
  97. }
  98. }
  99. @keyframes rowup-right {
  100. 0% {
  101. -webkit-transform: translate3d(0, 0, 0);
  102. transform: translate3d(0, 0, 0);
  103. }
  104. 100% {
  105. -webkit-transform: translate3d(600px, 0, 0);
  106. transform: translate3d(600px, 0, 0);
  107. }
  108. }
  109. @media screen and (min-width: 768px) {
  110. html {
  111. font-size: 16px !important;
  112. }
  113. .only-mobile {
  114. display: none !important;
  115. }
  116. .container {
  117. width: 1200px;
  118. margin: 0 auto;
  119. }
  120. .mt18 {
  121. margin-top: 18px;
  122. }
  123. .mr18 {
  124. margin-right: 18px;
  125. }
  126. .mb18 {
  127. margin-bottom: 18px;
  128. }
  129. .ml18 {
  130. margin-left: 18px;
  131. }
  132. .banner {
  133. position: relative;
  134. width: 100%;
  135. min-width: 1200px;
  136. height: 530px;
  137. overflow: hidden;
  138. img {
  139. position: absolute;
  140. left: 50%;
  141. top: 50%;
  142. -webkit-transform: translate(-50%, -50%);
  143. transform: translate(-50%, -50%);
  144. }
  145. }
  146. // 导航菜单
  147. .navbar {
  148. height: 68px;
  149. background-color: #fff;
  150. position: -webkit-sticky;
  151. position: sticky;
  152. left: 0;
  153. top: 0;
  154. z-index: 90;
  155. .container {
  156. height: 68px;
  157. display: -webkit-box;
  158. display: -ms-flexbox;
  159. display: flex;
  160. -webkit-box-pack: justify;
  161. -ms-flex-pack: justify;
  162. justify-content: space-between;
  163. -webkit-box-align: center;
  164. -ms-flex-align: center;
  165. align-items: center;
  166. }
  167. .navbar-header {
  168. .logo {
  169. display: -webkit-box;
  170. display: -ms-flexbox;
  171. display: flex;
  172. -webkit-box-pack: center;
  173. -ms-flex-pack: center;
  174. justify-content: center;
  175. -webkit-box-align: center;
  176. -ms-flex-align: center;
  177. align-items: center;
  178. h1 {
  179. font-size: 0;
  180. }
  181. img {
  182. display: block;
  183. width: 64px;
  184. height: 42px;
  185. }
  186. }
  187. }
  188. .navbar-collapse {
  189. .nav {
  190. position: relative;
  191. display: -webkit-box;
  192. display: -ms-flexbox;
  193. display: flex;
  194. -webkit-box-pack: center;
  195. -ms-flex-pack: center;
  196. justify-content: center;
  197. -webkit-box-align: center;
  198. -ms-flex-align: center;
  199. align-items: center;
  200. & > li {
  201. margin-left: 56px;
  202. position: relative;
  203. &::after {
  204. content: '';
  205. display: none;
  206. width: 28px;
  207. height: 3px;
  208. background: #0688d2;
  209. position: absolute;
  210. left: 50%;
  211. bottom: 0;
  212. -webkit-transform: translateX(-50%);
  213. transform: translateX(-50%);
  214. }
  215. &.active {
  216. & > a {
  217. color: #0688d2;
  218. }
  219. &::after {
  220. display: block;
  221. }
  222. }
  223. &:hover {
  224. & > a {
  225. color: #0688d2;
  226. }
  227. &::after {
  228. display: block;
  229. }
  230. }
  231. &:first-child {
  232. margin-left: 0;
  233. }
  234. & > a {
  235. display: block;
  236. line-height: 68px;
  237. }
  238. }
  239. .dropdown {
  240. position: relative;
  241. &:hover {
  242. .dropdown-menu {
  243. display: block;
  244. }
  245. }
  246. .dropdown-menu {
  247. display: none;
  248. top: 68px;
  249. position: absolute;
  250. background: #fff;
  251. left: 50%;
  252. -webkit-transform: translateX(-50%);
  253. transform: translateX(-50%);
  254. & > li {
  255. &:hover {
  256. background: #0688d2;
  257. & > a {
  258. color: #fff;
  259. }
  260. .dropdown-submenu {
  261. display: block;
  262. }
  263. }
  264. & > a {
  265. display: block;
  266. line-height: 50px;
  267. text-align: center;
  268. width: 128px;
  269. font-size: 14px;
  270. }
  271. }
  272. .submenu-toggle {
  273. background: url(/img/icon-arrow-right.png) no-repeat;
  274. background-position: 90% center;
  275. background-size: 18px;
  276. }
  277. .dropdown-submenu {
  278. display: none;
  279. position: absolute;
  280. top: 0;
  281. left: 128px;
  282. background: #fff;
  283. width: 304px;
  284. min-height: 200px;
  285. -webkit-box-sizing: border-box;
  286. box-sizing: border-box;
  287. padding: 16px 24px 16px 23px;
  288. border-left: 1px solid #e8e8e8;
  289. & > li {
  290. float: left;
  291. margin: 16px 16px 0 0;
  292. &:nth-child(2n) {
  293. margin-right: 0;
  294. }
  295. &:nth-child(1),
  296. &:nth-child(2) {
  297. margin-top: 0;
  298. }
  299. & > a {
  300. display: block;
  301. width: 120px;
  302. line-height: 32px;
  303. text-align: center;
  304. background: #eff9ff;
  305. color: #0688d2;
  306. font-size: 14px;
  307. }
  308. }
  309. }
  310. }
  311. }
  312. }
  313. }
  314. }
  315. // 底部区域
  316. .footer {
  317. margin-top: 120px;
  318. padding-top: 38px;
  319. padding-bottom: 24px;
  320. background: #1b1b1b;
  321. .container {
  322. .section {
  323. margin-right: 180px;
  324. .item {
  325. position: relative;
  326. color: rgba(255, 255, 255, 0.5);
  327. margin-top: 20px;
  328. padding-left: 30px;
  329. font-size: 12px;
  330. &::before {
  331. content: '';
  332. display: block;
  333. width: 20px;
  334. height: 20px;
  335. position: absolute;
  336. left: 0;
  337. top: 50%;
  338. -webkit-transform: translateY(-50%);
  339. transform: translateY(-50%);
  340. background-repeat: no-repeat;
  341. background-position: center;
  342. background-size: 20px;
  343. }
  344. &.mobile {
  345. &::before {
  346. background-image: url(/img/icon-mobile.png);
  347. }
  348. span {
  349. &:last-child {
  350. margin-left: 16px;
  351. }
  352. }
  353. }
  354. &.email {
  355. &::before {
  356. background-image: url(/img/icon-email.png);
  357. }
  358. }
  359. &.address {
  360. &::before {
  361. background-image: url(/img/icon-address.png);
  362. }
  363. }
  364. }
  365. }
  366. .nav {
  367. margin-left: 110px;
  368. li {
  369. margin-top: 25px;
  370. text-align: center;
  371. &:first-child {
  372. margin-top: 12px;
  373. }
  374. a {
  375. font-size: 14px;
  376. color: rgba(255, 255, 255, 0.5);
  377. &:hover {
  378. color: #0688d2;
  379. }
  380. }
  381. }
  382. }
  383. .qrcode {
  384. padding: 7px;
  385. background: rgba(255, 255, 255, 0.06);
  386. img {
  387. display: block;
  388. width: 94px;
  389. height: 94px;
  390. background-color: #fff;
  391. }
  392. .tip {
  393. font-size: 12px;
  394. color: #ffffff;
  395. margin-top: 5px;
  396. text-align: center;
  397. }
  398. }
  399. }
  400. .line {
  401. width: 100%;
  402. height: 1px;
  403. background-color: rgba(255, 255, 255, 0.3);
  404. margin: 32px 0 24px;
  405. }
  406. .link {
  407. display: -webkit-box;
  408. display: -ms-flexbox;
  409. display: flex;
  410. -webkit-box-pack: center;
  411. -ms-flex-pack: center;
  412. justify-content: center;
  413. -webkit-box-align: center;
  414. -ms-flex-align: center;
  415. align-items: center;
  416. i {
  417. display: block;
  418. height: 10px;
  419. width: 1px;
  420. background-color: rgba(255, 255, 255, 0.4);
  421. margin: 0 16px;
  422. }
  423. a {
  424. color: rgba(255, 255, 255, 0.4);
  425. font-size: 12px;
  426. &:hover {
  427. color: #0688d2;
  428. }
  429. }
  430. }
  431. .copyright {
  432. margin-top: 20px;
  433. text-align: center;
  434. color: rgba(255, 255, 255, 0.4);
  435. font-size: 12px;
  436. a {
  437. color: rgba(255, 255, 255, 0.8);
  438. text-decoration: underline;
  439. }
  440. * {
  441. margin: 0 24px;
  442. }
  443. }
  444. }
  445. }
  446. @media screen and (max-width: 768px) {
  447. html {
  448. font-size: 50px;
  449. }
  450. .only-pc {
  451. display: none !important;
  452. }
  453. .scroll-box {
  454. overflow-x: auto;
  455. white-space: nowrap;
  456. font-size: 0;
  457. }
  458. // .mt18 {
  459. // margin-top: 18px;
  460. // }
  461. // .mr18 {
  462. // margin-right: 18px;
  463. // }
  464. // .mb18 {
  465. // margin-bottom: 18px;
  466. // }
  467. // .ml18 {
  468. // margin-left: 18px;
  469. // }
  470. .banner {
  471. position: relative;
  472. width: 100%;
  473. height: 2.74rem;
  474. overflow: hidden;
  475. img {
  476. position: absolute;
  477. height: 2.74rem;
  478. left: 50%;
  479. top: 50%;
  480. -webkit-transform: translate(-50%, -50%);
  481. transform: translate(-50%, -50%);
  482. }
  483. }
  484. // 导航菜单
  485. .navbar {
  486. font-size: 0.26rem;
  487. height: 1.04rem;
  488. background: #fff;
  489. // overflow-x: hidden;
  490. position: -webkit-sticky;
  491. position: sticky;
  492. left: 0;
  493. top: 0;
  494. z-index: 90;
  495. .navbar-header {
  496. position: relative;
  497. z-index: 2;
  498. display: -webkit-box;
  499. display: -ms-flexbox;
  500. display: flex;
  501. -webkit-box-pack: justify;
  502. -ms-flex-pack: justify;
  503. justify-content: space-between;
  504. -webkit-box-align: center;
  505. -ms-flex-align: center;
  506. align-items: center;
  507. background: #fff;
  508. .logo {
  509. display: -webkit-box;
  510. display: -ms-flexbox;
  511. display: flex;
  512. -webkit-box-pack: center;
  513. -ms-flex-pack: center;
  514. justify-content: center;
  515. -webkit-box-align: center;
  516. -ms-flex-align: center;
  517. align-items: center;
  518. width: 2rem;
  519. height: 1.04rem;
  520. background: #0688d2;
  521. h1 {
  522. font-size: 0;
  523. }
  524. img {
  525. display: block;
  526. width: 1.14rem;
  527. }
  528. }
  529. .navbar-toggle {
  530. display: -webkit-box;
  531. display: -ms-flexbox;
  532. display: flex;
  533. -webkit-box-pack: center;
  534. -ms-flex-pack: center;
  535. justify-content: center;
  536. -webkit-box-align: center;
  537. -ms-flex-align: center;
  538. align-items: center;
  539. .name {
  540. font-size: 0.3rem;
  541. color: #0688d2;
  542. margin-right: 0.16rem;
  543. }
  544. .icon-bar {
  545. display: inline-block;
  546. width: 0.48rem;
  547. height: 0.48rem;
  548. background: url(/img/icon-menu.png) no-repeat center;
  549. background-size: 0.42rem;
  550. font-size: 0;
  551. margin-right: 0.32rem;
  552. margin-bottom: 0.03rem;
  553. }
  554. &[aria-expanded='true'] {
  555. .icon-bar {
  556. background-image: url(/img/icon-menu-close.png);
  557. background-size: 0.48rem;
  558. }
  559. .name {
  560. display: none;
  561. }
  562. }
  563. }
  564. }
  565. .navbar-collapse {
  566. display: none;
  567. position: absolute;
  568. width: 100%;
  569. height: 100vh;
  570. overflow-y: auto;
  571. -webkit-box-sizing: border-box;
  572. box-sizing: border-box;
  573. padding-left: 1.34rem;
  574. right: 0;
  575. top: 0;
  576. z-index: 1;
  577. background: transparent;
  578. &::-webkit-scrollbar {
  579. width: 2px;
  580. height: 2px;
  581. background-color: #f5f5f5;
  582. }
  583. &::-webkit-scrollbar-thumb {
  584. border-radius: 2px;
  585. background-color: #cccecf;
  586. }
  587. .nav {
  588. background: #fff;
  589. padding: 0.48rem;
  590. padding-top: 1.04rem;
  591. -webkit-box-sizing: border-box;
  592. box-sizing: border-box;
  593. min-height: 100vh;
  594. li {
  595. a {
  596. display: block;
  597. }
  598. }
  599. & > li {
  600. border-top: 0.01rem solid #d8d8d8;
  601. border-bottom: 0.01rem solid #d8d8d8;
  602. & > a {
  603. font-size: 0.3rem;
  604. line-height: 1rem;
  605. }
  606. }
  607. .dropdown {
  608. .dropdown-toggle {
  609. background-image: url(/img/icon-menu-arrow-down.png);
  610. background-position: right center;
  611. background-size: 0.48rem;
  612. background-repeat: no-repeat;
  613. }
  614. &.open {
  615. .dropdown-toggle {
  616. background-image: url(/img/icon-menu-arrow-up.png);
  617. }
  618. }
  619. .dropdown-menu {
  620. display: none;
  621. padding-bottom: 0.24rem;
  622. & > li {
  623. & > a {
  624. line-height: 0.66rem;
  625. color: #666666;
  626. }
  627. }
  628. }
  629. .dropdown-submenu {
  630. padding: 0.24rem 0;
  631. li {
  632. float: left;
  633. margin-right: 0.4rem;
  634. margin-top: 0.24rem;
  635. &:nth-child(2n) {
  636. margin-right: 0;
  637. }
  638. &:nth-child(-n + 2) {
  639. margin-top: 0;
  640. }
  641. a {
  642. line-height: 0.56rem;
  643. width: 2.08rem;
  644. height: 0.56rem;
  645. background: #f7f7f7;
  646. text-align: center;
  647. color: #666666;
  648. }
  649. }
  650. }
  651. }
  652. }
  653. }
  654. }
  655. // 底部区域
  656. .footer {
  657. position: relative;
  658. padding: 0.4rem;
  659. background: #1b1b1b;
  660. -webkit-box-sizing: border-box;
  661. box-sizing: border-box;
  662. margin-top: 1rem;
  663. .container {
  664. .title {
  665. font-size: 0.3rem;
  666. color: rgba(255, 255, 255, 0.8);
  667. }
  668. .section {
  669. width: 100%;
  670. padding: 0.55rem 0;
  671. border-top: 0.01rem solid rgba(255, 255, 255, 0.3);
  672. border-bottom: 0.01rem solid rgba(255, 255, 255, 0.3);
  673. margin-bottom: 0.45rem;
  674. margin-top: 0.65rem;
  675. .item {
  676. position: relative;
  677. color: rgba(255, 255, 255, 0.5);
  678. margin-top: 0.25rem;
  679. padding-left: 0.6rem;
  680. font-size: 0.24rem;
  681. line-height: 0.4rem;
  682. &:nth-child(2) {
  683. margin-top: 0;
  684. }
  685. &::before {
  686. content: '';
  687. display: block;
  688. width: 0.4rem;
  689. height: 0.4rem;
  690. position: absolute;
  691. left: 0;
  692. top: 50%;
  693. -webkit-transform: translateY(-50%);
  694. transform: translateY(-50%);
  695. background-repeat: no-repeat;
  696. background-position: center;
  697. background-size: 0.4rem;
  698. }
  699. &.mobile {
  700. &::before {
  701. background-image: url(/img/icon-mobile.png);
  702. }
  703. span {
  704. &:last-child {
  705. margin-left: 0.4rem;
  706. }
  707. }
  708. }
  709. &.email {
  710. &::before {
  711. background-image: url(/img/icon-email.png);
  712. }
  713. }
  714. &.address {
  715. &::before {
  716. background-image: url(/img/icon-address.png);
  717. }
  718. }
  719. }
  720. }
  721. .nav {
  722. .item {
  723. float: left;
  724. margin-right: 0.8rem;
  725. margin-top: 0.32rem;
  726. &:nth-child(4n) {
  727. margin-right: 0;
  728. }
  729. a {
  730. display: block;
  731. color: rgba(255, 255, 255, 0.5);
  732. font-size: 0.24rem;
  733. }
  734. }
  735. }
  736. .qrcode {
  737. img {
  738. display: block;
  739. width: 1.36rem;
  740. height: 1.36rem;
  741. background-color: #fff;
  742. }
  743. .tip {
  744. font-size: 0.2rem;
  745. color: #ffffff;
  746. margin-top: 0.16rem;
  747. text-align: center;
  748. }
  749. }
  750. }
  751. .copyright {
  752. width: 100%;
  753. -webkit-box-sizing: border-box;
  754. box-sizing: border-box;
  755. position: absolute;
  756. left: 0;
  757. bottom: 0;
  758. text-align: left;
  759. color: rgba(255, 255, 255, 0.4);
  760. font-size: 0.2rem;
  761. padding: 0.4rem;
  762. a {
  763. width: 4.2rem;
  764. color: rgba(255, 255, 255, 0.4);
  765. }
  766. * {
  767. display: block;
  768. margin-bottom: 0.16rem;
  769. }
  770. }
  771. }
  772. }