index.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. /* scss中可以用mixin来扩展 */
  2. @mixin ellipsis($line: 1) {
  3. overflow: hidden;
  4. text-overflow: ellipsis;
  5. display: -webkit-box;
  6. -webkit-line-clamp: $line;
  7. -webkit-box-orient: vertical;
  8. }
  9. @media screen and (min-width: 768px) {
  10. .section-title {
  11. position: relative;
  12. text-align: center;
  13. height: 66px;
  14. img {
  15. display: block;
  16. height: 50px;
  17. margin: 0 auto;
  18. }
  19. h3 {
  20. position: absolute;
  21. left: 50%;
  22. bottom: 0;
  23. -webkit-transform: translateX(-50%);
  24. transform: translateX(-50%);
  25. font-size: 34px;
  26. font-weight: normal;
  27. }
  28. }
  29. // 轮播图
  30. .banner {
  31. width: 100%;
  32. height: 700px;
  33. img {
  34. display: block;
  35. height: 100%;
  36. }
  37. }
  38. .main {
  39. .container {
  40. margin-top: 120px;
  41. .section-title {
  42. margin-bottom: 80px;
  43. }
  44. &.our-brand {
  45. .content {
  46. .item {
  47. position: relative;
  48. width: 286px;
  49. height: 286px;
  50. float: left;
  51. background-color: #ddd;
  52. &:first-child {
  53. width: 592px;
  54. height: 592px;
  55. }
  56. img {
  57. display: block;
  58. width: 100%;
  59. height: 100%;
  60. }
  61. &:hover {
  62. .active {
  63. opacity: 1;
  64. }
  65. }
  66. .active {
  67. opacity: 0;
  68. position: absolute;
  69. left: 0;
  70. top: 0;
  71. z-index: 2;
  72. width: 100%;
  73. height: 100%;
  74. display: -webkit-box;
  75. display: -ms-flexbox;
  76. display: flex;
  77. -webkit-box-pack: center;
  78. -ms-flex-pack: center;
  79. justify-content: center;
  80. -webkit-box-align: center;
  81. -ms-flex-align: center;
  82. align-items: center;
  83. -webkit-box-orient: vertical;
  84. -webkit-box-direction: normal;
  85. -ms-flex-direction: column;
  86. flex-direction: column;
  87. background-color: rgba(0, 0, 0, 0.5);
  88. -webkit-transition: opacity 0.4s;
  89. transition: opacity 0.4s;
  90. .title {
  91. font-size: 34px;
  92. color: #fff;
  93. }
  94. .line {
  95. width: 40px;
  96. height: 1px;
  97. margin: 32px 0 60px;
  98. background-color: #fff;
  99. }
  100. .link {
  101. width: 160px;
  102. height: 48px;
  103. border: 1px solid #ffffff;
  104. text-align: center;
  105. line-height: 48px;
  106. color: #fff;
  107. cursor: pointer;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. &.brand-activity {
  114. .content {
  115. display: -webkit-box;
  116. display: -ms-flexbox;
  117. display: flex;
  118. -webkit-box-pack: center;
  119. -ms-flex-pack: center;
  120. justify-content: center;
  121. .item {
  122. position: relative;
  123. width: 280px;
  124. height: 600px;
  125. overflow: hidden;
  126. -ms-flex-negative: 0;
  127. flex-shrink: 0;
  128. -webkit-transition: all 0.4s;
  129. transition: all 0.4s;
  130. a {
  131. display: block;
  132. width: 100%;
  133. height: 100%;
  134. }
  135. img {
  136. position: absolute;
  137. top: 0;
  138. left: 50%;
  139. -webkit-transform: translateX(-50%);
  140. transform: translateX(-50%);
  141. display: block;
  142. width: 640px;
  143. height: 600px;
  144. }
  145. &.hover {
  146. width: 640px;
  147. }
  148. &:nth-child(1) {
  149. .cover {
  150. &::after {
  151. content: '01';
  152. }
  153. }
  154. }
  155. &:nth-child(2) {
  156. .cover {
  157. &::after {
  158. content: '02';
  159. }
  160. }
  161. }
  162. &:nth-child(3) {
  163. .cover {
  164. &::after {
  165. content: '03';
  166. }
  167. }
  168. }
  169. .active {
  170. position: absolute;
  171. width: 100%;
  172. height: 280px;
  173. bottom: 0;
  174. left: 0;
  175. -webkit-box-sizing: border-box;
  176. box-sizing: border-box;
  177. padding-left: 24px;
  178. background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.88)), to(rgba(0, 0, 0, 0)));
  179. background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  180. .title {
  181. margin-top: 206px;
  182. width: 232px;
  183. font-size: 24px;
  184. color: #fff;
  185. @include ellipsis(1);
  186. }
  187. .line {
  188. width: 20px;
  189. height: 2px;
  190. margin-top: 16px;
  191. background-color: #fff;
  192. }
  193. .description {
  194. display: none;
  195. }
  196. &::after {
  197. position: absolute;
  198. content: '01';
  199. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0.2)));
  200. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  201. -webkit-background-clip: text;
  202. color: transparent;
  203. font-size: 30px;
  204. left: 24px;
  205. bottom: 66px;
  206. }
  207. }
  208. .hover-active {
  209. position: absolute;
  210. width: 486px;
  211. height: 160px;
  212. padding-top: 32px;
  213. padding-left: 32px;
  214. -webkit-box-sizing: border-box;
  215. box-sizing: border-box;
  216. border-top-left-radius: 32px;
  217. right: 0;
  218. bottom: 0;
  219. background: linear-gradient(166deg, #0688d2 25%, rgba(32, 155, 212, 0.8));
  220. -webkit-transition: opacity 0.4s;
  221. transition: opacity 0.4s;
  222. .title {
  223. font-size: 24px;
  224. color: #fff;
  225. width: 300px;
  226. @include ellipsis(1);
  227. }
  228. .line {
  229. width: 20px;
  230. height: 2px;
  231. margin: 16px 0 22px;
  232. background-color: #fff;
  233. }
  234. .description {
  235. text-align: justify;
  236. width: 300px;
  237. font-size: 16px;
  238. color: #fff;
  239. line-height: 1.5;
  240. @include ellipsis(2);
  241. }
  242. &::after {
  243. position: absolute;
  244. content: '01';
  245. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0.2)));
  246. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  247. -webkit-background-clip: text;
  248. color: transparent;
  249. font-size: 90px;
  250. line-height: 90px;
  251. right: 32px;
  252. bottom: 24px;
  253. }
  254. }
  255. }
  256. }
  257. }
  258. &.company-values {
  259. .content {
  260. .item {
  261. position: relative;
  262. float: left;
  263. height: 340px;
  264. width: 390px;
  265. margin-right: 15px;
  266. margin-bottom: 15px;
  267. -webkit-box-sizing: border-box;
  268. box-sizing: border-box;
  269. overflow: hidden;
  270. img {
  271. width: 100%;
  272. height: 100%;
  273. opacity: 1;
  274. -webkit-transition: all 0.4s;
  275. transition: all 0.4s;
  276. }
  277. &.no-mb {
  278. margin-bottom: 0;
  279. }
  280. &.no-mr {
  281. margin-right: 0;
  282. }
  283. &:nth-child(1),
  284. &:nth-child(7) {
  285. width: 795px;
  286. }
  287. &:hover {
  288. img {
  289. -webkit-transform: scale(1.2);
  290. transform: scale(1.2);
  291. }
  292. }
  293. &:nth-child(2),
  294. &:nth-child(3),
  295. &:nth-child(7) {
  296. .cover {
  297. background: transparent;
  298. }
  299. &:hover {
  300. border: 1px solid #0688d2;
  301. img {
  302. opacity: 0;
  303. }
  304. .subtitle,
  305. .title {
  306. color: #0688d2;
  307. }
  308. .line {
  309. &::before,
  310. &::after {
  311. background-color: #0688d2;
  312. }
  313. }
  314. }
  315. }
  316. .cover {
  317. position: absolute;
  318. left: 0;
  319. top: 0;
  320. width: 100%;
  321. height: 100%;
  322. display: -webkit-box;
  323. display: -ms-flexbox;
  324. display: flex;
  325. -webkit-box-pack: center;
  326. -ms-flex-pack: center;
  327. justify-content: center;
  328. -webkit-box-orient: vertical;
  329. -webkit-box-direction: normal;
  330. -ms-flex-direction: column;
  331. flex-direction: column;
  332. -webkit-box-align: center;
  333. -ms-flex-align: center;
  334. align-items: center;
  335. background: rgba(0, 0, 0, 0.5);
  336. .line {
  337. width: 180px;
  338. position: absolute;
  339. left: 50%;
  340. top: 50%;
  341. -webkit-transform: translate(-50%, -50%) rotateZ(-45deg);
  342. transform: translate(-50%, -50%) rotateZ(-45deg);
  343. &::after,
  344. &::before {
  345. position: absolute;
  346. left: 0;
  347. top: 0;
  348. content: '';
  349. display: block;
  350. width: 20px;
  351. height: 1px;
  352. background-color: #fff;
  353. }
  354. &::before {
  355. right: 0;
  356. left: unset;
  357. }
  358. }
  359. .title {
  360. color: #fff;
  361. font-size: 24px;
  362. }
  363. .subtitle {
  364. font-size: 18px;
  365. color: #fff;
  366. margin-top: 12px;
  367. &.en {
  368. text-transform: uppercase;
  369. }
  370. }
  371. }
  372. }
  373. }
  374. }
  375. &.head_quarter {
  376. }
  377. &.friendly_link {
  378. .content {
  379. width: 100%;
  380. overflow: hidden;
  381. .row {
  382. display: -webkit-box;
  383. display: -ms-flexbox;
  384. display: flex;
  385. &:last-child {
  386. -webkit-box-orient: horizontal;
  387. -webkit-box-direction: reverse;
  388. -ms-flex-direction: row-reverse;
  389. flex-direction: row-reverse;
  390. -webkit-animation: 20s rowup-right linear infinite normal;
  391. animation: 20s rowup-right linear infinite normal;
  392. margin-top: 10px;
  393. }
  394. &:first-child {
  395. -webkit-animation: 20s rowup-left linear infinite normal;
  396. animation: 20s rowup-left linear infinite normal;
  397. }
  398. }
  399. .item {
  400. -ms-flex-negative: 0;
  401. flex-shrink: 0;
  402. position: relative;
  403. width: 232px;
  404. height: 100px;
  405. -webkit-box-sizing: border-box;
  406. box-sizing: border-box;
  407. border: 1px solid #d8d8d8;
  408. overflow: hidden;
  409. margin-right: 10px;
  410. &:last-child {
  411. margin-right: 0;
  412. }
  413. img {
  414. display: block;
  415. width: 100%;
  416. position: absolute;
  417. left: 0;
  418. top: 50%;
  419. -webkit-transform: translateY(-50%);
  420. transform: translateY(-50%);
  421. }
  422. }
  423. }
  424. }
  425. }
  426. }
  427. }
  428. @media screen and (max-width: 768px) {
  429. .section-title {
  430. position: relative;
  431. text-align: center;
  432. height: 0.7rem;
  433. img {
  434. display: block;
  435. height: 0.5rem;
  436. margin: 0 auto;
  437. }
  438. h3 {
  439. position: absolute;
  440. left: 50%;
  441. bottom: 0;
  442. -webkit-transform: translateX(-50%);
  443. transform: translateX(-50%);
  444. font-size: 0.34rem;
  445. font-weight: normal;
  446. }
  447. }
  448. // 轮播图
  449. .swiper-container {
  450. width: 100%;
  451. min-width: 7.5rem;
  452. height: 2.74rem;
  453. .swiper-pagination{
  454. display: none;
  455. }
  456. img {
  457. display: block;
  458. height: 100%;
  459. }
  460. }
  461. .main {
  462. .container {
  463. margin-top: 1.2rem;
  464. margin-left: 0.32rem;
  465. width: 6.86rem;
  466. .section-title {
  467. margin-bottom: 0.39rem;
  468. }
  469. &.our-brand {
  470. .content {
  471. .item {
  472. position: relative;
  473. width: 1.64rem;
  474. height: 1.64rem;
  475. float: left;
  476. background-color: #ddd;
  477. margin-left: 0.1rem;
  478. margin-bottom: 0.1rem;
  479. &:first-child {
  480. width: 3.38rem;
  481. height: 3.38rem;
  482. margin-left: 0;
  483. }
  484. img {
  485. display: block;
  486. width: 100%;
  487. height: 100%;
  488. }
  489. .active {
  490. position: absolute;
  491. left: 0;
  492. top: 0;
  493. z-index: 2;
  494. width: 100%;
  495. height: 100%;
  496. .title {
  497. position: absolute;
  498. bottom: 0;
  499. left: 0;
  500. font-size: 0.22rem;
  501. color: #fff;
  502. width: 100%;
  503. line-height: 0.4rem;
  504. text-align: center;
  505. background: rgba(0, 0, 0, 0.39);
  506. }
  507. .link {
  508. opacity: 0;
  509. display: block;
  510. width: 100%;
  511. height: 100%;
  512. position: absolute;
  513. z-index: 1;
  514. left: 0;
  515. top: 0;
  516. }
  517. }
  518. }
  519. }
  520. }
  521. &.brand-activity {
  522. margin-left: 0;
  523. margin-right: 0;
  524. width: auto;
  525. .content {
  526. overflow-x: auto;
  527. padding-bottom: 0.16rem;
  528. &::-webkit-scrollbar {
  529. width: 2px;
  530. height: 2px;
  531. background-color: #f5f5f5;
  532. }
  533. &::-webkit-scrollbar-thumb {
  534. border-radius: 2px;
  535. background-color: #cccecf;
  536. }
  537. .item {
  538. position: relative;
  539. width: 5.24rem;
  540. height: 4.91rem;
  541. overflow: hidden;
  542. display: inline-block;
  543. margin-left: 0.32rem;
  544. &:last-child {
  545. margin-right: 0.32rem;
  546. }
  547. a {
  548. display: block;
  549. width: 100%;
  550. height: 100%;
  551. }
  552. img {
  553. display: block;
  554. width: 100%;
  555. height: 100%;
  556. }
  557. &:nth-child(1) {
  558. .cover {
  559. &::after {
  560. content: '01';
  561. }
  562. }
  563. }
  564. &:nth-child(2) {
  565. .cover {
  566. &::after {
  567. content: '02';
  568. }
  569. }
  570. }
  571. &:nth-child(3) {
  572. .cover {
  573. &::after {
  574. content: '03';
  575. }
  576. }
  577. }
  578. .cover {
  579. position: absolute;
  580. width: 4.31rem;
  581. height: 1.29rem;
  582. padding-top: 0.24rem;
  583. padding-left: 0.32rem;
  584. -webkit-box-sizing: border-box;
  585. box-sizing: border-box;
  586. border-top-left-radius: 0.32rem;
  587. right: 0;
  588. bottom: 0;
  589. background: linear-gradient(166deg, #0688d2 25%, rgba(32, 155, 212, 0.8));
  590. -webkit-transition: opacity 0.4s;
  591. transition: opacity 0.4s;
  592. .title {
  593. font-size: 0.3rem;
  594. color: #fff;
  595. width: 3.31rem;
  596. @include ellipsis(1);
  597. }
  598. .line {
  599. width: 0.16rem;
  600. height: 0.02rem;
  601. margin: 0.07rem 0;
  602. background-color: #fff;
  603. }
  604. .description {
  605. text-align: justify;
  606. width: 3.31rem;
  607. font-size: 0.24rem;
  608. color: #fff;
  609. line-height: 1.5;
  610. @include ellipsis(1);
  611. }
  612. &::after {
  613. position: absolute;
  614. content: '01';
  615. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0.2)));
  616. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  617. -webkit-background-clip: text;
  618. color: transparent;
  619. font-size: 0.72rem;
  620. right: 0.24rem;
  621. bottom: 0.24rem;
  622. }
  623. }
  624. }
  625. }
  626. }
  627. &.company-values {
  628. .content {
  629. .item {
  630. position: relative;
  631. float: left;
  632. height: 1.94rem;
  633. width: 2.22rem;
  634. margin-right: 0.09rem;
  635. margin-bottom: 0.09rem;
  636. -webkit-box-sizing: border-box;
  637. box-sizing: border-box;
  638. overflow: hidden;
  639. img {
  640. width: 100%;
  641. height: 100%;
  642. opacity: 1;
  643. -webkit-transition: all 0.4s;
  644. transition: all 0.4s;
  645. }
  646. &.no-mb {
  647. margin-bottom: 0;
  648. }
  649. &.no-mr {
  650. margin-right: 0;
  651. }
  652. &:nth-child(1),
  653. &:nth-child(7) {
  654. width: 4.54rem;
  655. }
  656. &:nth-child(2),
  657. &:nth-child(3),
  658. &:nth-child(7) {
  659. .cover {
  660. background: transparent;
  661. }
  662. }
  663. .cover {
  664. position: absolute;
  665. left: 0;
  666. top: 0;
  667. width: 100%;
  668. height: 100%;
  669. display: -webkit-box;
  670. display: -ms-flexbox;
  671. display: flex;
  672. -webkit-box-pack: center;
  673. -ms-flex-pack: center;
  674. justify-content: center;
  675. -webkit-box-orient: vertical;
  676. -webkit-box-direction: normal;
  677. -ms-flex-direction: column;
  678. flex-direction: column;
  679. -webkit-box-align: center;
  680. -ms-flex-align: center;
  681. align-items: center;
  682. background: rgba(0, 0, 0, 0.5);
  683. .line {
  684. width: 1.9rem;
  685. position: absolute;
  686. left: 50%;
  687. top: 50%;
  688. -webkit-transform: translate(-50%, -50%) rotateZ(-45deg);
  689. transform: translate(-50%, -50%) rotateZ(-45deg);
  690. &::after,
  691. &::before {
  692. position: absolute;
  693. left: 0;
  694. top: 0;
  695. content: '';
  696. display: block;
  697. width: 0.2rem;
  698. height: 0.01rem;
  699. background-color: #fff;
  700. }
  701. &::before {
  702. right: 0;
  703. left: unset;
  704. }
  705. }
  706. .title {
  707. color: #fff;
  708. font-size: 0.24rem;
  709. }
  710. .subtitle {
  711. font-size: 0.2rem;
  712. color: #fff;
  713. margin-top: 0.1rem;
  714. &.en {
  715. text-transform: uppercase;
  716. }
  717. }
  718. }
  719. }
  720. }
  721. }
  722. &.head_quarter {
  723. .content {
  724. img {
  725. width: 100%;
  726. }
  727. }
  728. }
  729. &.friendly_link {
  730. .content {
  731. width: 100%;
  732. overflow: hidden;
  733. .row {
  734. display: -webkit-box;
  735. display: -ms-flexbox;
  736. display: flex;
  737. &:last-child {
  738. -webkit-box-orient: horizontal;
  739. -webkit-box-direction: reverse;
  740. -ms-flex-direction: row-reverse;
  741. flex-direction: row-reverse;
  742. -webkit-animation: 20s rowup-right linear infinite normal;
  743. animation: 20s rowup-right linear infinite normal;
  744. margin-top: 10px;
  745. }
  746. &:first-child {
  747. -webkit-animation: 20s rowup-left linear infinite normal;
  748. animation: 20s rowup-left linear infinite normal;
  749. }
  750. }
  751. .item {
  752. -ms-flex-negative: 0;
  753. flex-shrink: 0;
  754. position: relative;
  755. width: 2.2rem;
  756. height: 0.96rem;
  757. -webkit-box-sizing: border-box;
  758. box-sizing: border-box;
  759. border: 1px solid #d8d8d8;
  760. overflow: hidden;
  761. margin-right: 10px;
  762. &:last-child {
  763. margin-right: 0;
  764. }
  765. img {
  766. display: block;
  767. width: 100%;
  768. position: absolute;
  769. left: 0;
  770. top: 50%;
  771. -webkit-transform: translateY(-50%);
  772. transform: translateY(-50%);
  773. }
  774. }
  775. }
  776. }
  777. }
  778. }
  779. }