base.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  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-color: transparent;
  578. -webkit-transition: background-color 0.2s;
  579. transition: background-color 0.2s;
  580. &::-webkit-scrollbar {
  581. width: 2px;
  582. height: 2px;
  583. background-color: #f5f5f5;
  584. }
  585. &::-webkit-scrollbar-thumb {
  586. border-radius: 2px;
  587. background-color: #cccecf;
  588. }
  589. .nav {
  590. background: #fff;
  591. padding: 0.48rem;
  592. padding-top: 1.04rem;
  593. -webkit-box-sizing: border-box;
  594. box-sizing: border-box;
  595. min-height: 100vh;
  596. li {
  597. a {
  598. display: block;
  599. }
  600. }
  601. & > li {
  602. border-top: 0.01rem solid #d8d8d8;
  603. border-bottom: 0.01rem solid #d8d8d8;
  604. & > a {
  605. font-size: 0.3rem;
  606. line-height: 1rem;
  607. }
  608. }
  609. .dropdown {
  610. .dropdown-toggle {
  611. background-image: url(/img/icon-menu-arrow-down.png);
  612. background-position: right center;
  613. background-size: 0.48rem;
  614. background-repeat: no-repeat;
  615. }
  616. &.open {
  617. .dropdown-toggle {
  618. background-image: url(/img/icon-menu-arrow-up.png);
  619. }
  620. }
  621. .dropdown-menu {
  622. display: none;
  623. padding-bottom: 0.24rem;
  624. & > li {
  625. & > a {
  626. line-height: 0.66rem;
  627. color: #666666;
  628. }
  629. }
  630. }
  631. .dropdown-submenu {
  632. padding: 0.24rem 0;
  633. li {
  634. float: left;
  635. margin-right: 0.4rem;
  636. margin-top: 0.24rem;
  637. &:nth-child(2n) {
  638. margin-right: 0;
  639. }
  640. &:nth-child(-n + 2) {
  641. margin-top: 0;
  642. }
  643. a {
  644. line-height: 0.56rem;
  645. width: 2.08rem;
  646. height: 0.56rem;
  647. background: #f7f7f7;
  648. text-align: center;
  649. color: #666666;
  650. }
  651. }
  652. }
  653. }
  654. }
  655. }
  656. }
  657. // 底部区域
  658. .footer {
  659. position: relative;
  660. padding: 0.4rem;
  661. background: #1b1b1b;
  662. -webkit-box-sizing: border-box;
  663. box-sizing: border-box;
  664. margin-top: 1rem;
  665. .container {
  666. .title {
  667. font-size: 0.3rem;
  668. color: rgba(255, 255, 255, 0.8);
  669. }
  670. .section {
  671. width: 100%;
  672. padding: 0.55rem 0;
  673. border-top: 0.01rem solid rgba(255, 255, 255, 0.3);
  674. border-bottom: 0.01rem solid rgba(255, 255, 255, 0.3);
  675. margin-bottom: 0.45rem;
  676. margin-top: 0.65rem;
  677. .item {
  678. position: relative;
  679. color: rgba(255, 255, 255, 0.5);
  680. margin-top: 0.25rem;
  681. padding-left: 0.6rem;
  682. font-size: 0.24rem;
  683. line-height: 0.4rem;
  684. &:nth-child(2) {
  685. margin-top: 0;
  686. }
  687. &::before {
  688. content: '';
  689. display: block;
  690. width: 0.4rem;
  691. height: 0.4rem;
  692. position: absolute;
  693. left: 0;
  694. top: 50%;
  695. -webkit-transform: translateY(-50%);
  696. transform: translateY(-50%);
  697. background-repeat: no-repeat;
  698. background-position: center;
  699. background-size: 0.4rem;
  700. }
  701. &.mobile {
  702. &::before {
  703. background-image: url(/img/icon-mobile.png);
  704. }
  705. span {
  706. &:last-child {
  707. margin-left: 0.4rem;
  708. }
  709. }
  710. }
  711. &.email {
  712. &::before {
  713. background-image: url(/img/icon-email.png);
  714. }
  715. }
  716. &.address {
  717. &::before {
  718. background-image: url(/img/icon-address.png);
  719. }
  720. }
  721. }
  722. }
  723. .nav {
  724. .item {
  725. float: left;
  726. margin-right: 0.8rem;
  727. margin-top: 0.32rem;
  728. &:nth-child(4n) {
  729. margin-right: 0;
  730. }
  731. a {
  732. display: block;
  733. color: rgba(255, 255, 255, 0.5);
  734. font-size: 0.24rem;
  735. }
  736. }
  737. }
  738. .qrcode {
  739. img {
  740. display: block;
  741. width: 1.36rem;
  742. height: 1.36rem;
  743. background-color: #fff;
  744. }
  745. .tip {
  746. font-size: 0.2rem;
  747. color: #ffffff;
  748. margin-top: 0.16rem;
  749. text-align: center;
  750. }
  751. }
  752. }
  753. .copyright {
  754. width: 100%;
  755. -webkit-box-sizing: border-box;
  756. box-sizing: border-box;
  757. position: absolute;
  758. left: 0;
  759. bottom: 0;
  760. text-align: left;
  761. color: rgba(255, 255, 255, 0.4);
  762. font-size: 0.2rem;
  763. padding: 0.4rem;
  764. a {
  765. width: 4.2rem;
  766. color: rgba(255, 255, 255, 0.4);
  767. }
  768. * {
  769. display: block;
  770. margin-bottom: 0.16rem;
  771. }
  772. }
  773. }
  774. }