index.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  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. .banner {
  450. width: 100%;
  451. min-width: 7.5rem;
  452. height: 2.74rem;
  453. img {
  454. display: block;
  455. height: 100%;
  456. }
  457. }
  458. .main {
  459. .container {
  460. margin-top: 1.2rem;
  461. margin-left: 0.32rem;
  462. width: 6.86rem;
  463. .section-title {
  464. margin-bottom: 0.39rem;
  465. }
  466. &.our-brand {
  467. .content {
  468. .item {
  469. position: relative;
  470. width: 1.64rem;
  471. height: 1.64rem;
  472. float: left;
  473. background-color: #ddd;
  474. margin-left: 0.1rem;
  475. margin-bottom: 0.1rem;
  476. &:first-child {
  477. width: 3.38rem;
  478. height: 3.38rem;
  479. margin-left: 0;
  480. }
  481. img {
  482. display: block;
  483. width: 100%;
  484. height: 100%;
  485. }
  486. .active {
  487. position: absolute;
  488. left: 0;
  489. top: 0;
  490. z-index: 2;
  491. width: 100%;
  492. height: 100%;
  493. .title {
  494. position: absolute;
  495. bottom: 0;
  496. left: 0;
  497. font-size: 0.22rem;
  498. color: #fff;
  499. width: 100%;
  500. line-height: 0.4rem;
  501. text-align: center;
  502. background: rgba(0, 0, 0, 0.39);
  503. }
  504. .link {
  505. opacity: 0;
  506. display: block;
  507. width: 100%;
  508. height: 100%;
  509. position: absolute;
  510. z-index: 1;
  511. left: 0;
  512. top: 0;
  513. }
  514. }
  515. }
  516. }
  517. }
  518. &.brand-activity {
  519. margin-left: 0;
  520. margin-right: 0;
  521. width: auto;
  522. .content {
  523. overflow-x: auto;
  524. padding-bottom: 0.16rem;
  525. &::-webkit-scrollbar {
  526. width: 2px;
  527. height: 2px;
  528. background-color: #f5f5f5;
  529. }
  530. &::-webkit-scrollbar-thumb {
  531. border-radius: 2px;
  532. background-color: #cccecf;
  533. }
  534. .item {
  535. position: relative;
  536. width: 5.24rem;
  537. height: 4.91rem;
  538. overflow: hidden;
  539. display: inline-block;
  540. margin-left: 0.32rem;
  541. &:last-child {
  542. margin-right: 0.32rem;
  543. }
  544. a {
  545. display: block;
  546. width: 100%;
  547. height: 100%;
  548. }
  549. img {
  550. display: block;
  551. width: 100%;
  552. height: 100%;
  553. }
  554. &:nth-child(1) {
  555. .cover {
  556. &::after {
  557. content: '01';
  558. }
  559. }
  560. }
  561. &:nth-child(2) {
  562. .cover {
  563. &::after {
  564. content: '02';
  565. }
  566. }
  567. }
  568. &:nth-child(3) {
  569. .cover {
  570. &::after {
  571. content: '03';
  572. }
  573. }
  574. }
  575. .cover {
  576. position: absolute;
  577. width: 4.31rem;
  578. height: 1.29rem;
  579. padding-top: 0.24rem;
  580. padding-left: 0.32rem;
  581. -webkit-box-sizing: border-box;
  582. box-sizing: border-box;
  583. border-top-left-radius: 0.32rem;
  584. right: 0;
  585. bottom: 0;
  586. background: linear-gradient(166deg, #0688d2 25%, rgba(32, 155, 212, 0.8));
  587. -webkit-transition: opacity 0.4s;
  588. transition: opacity 0.4s;
  589. .title {
  590. font-size: 0.3rem;
  591. color: #fff;
  592. width: 3.31rem;
  593. @include ellipsis(1);
  594. }
  595. .line {
  596. width: 0.16rem;
  597. height: 0.02rem;
  598. margin: 0.07rem 0;
  599. background-color: #fff;
  600. }
  601. .description {
  602. text-align: justify;
  603. width: 3.31rem;
  604. font-size: 0.24rem;
  605. color: #fff;
  606. line-height: 1.5;
  607. @include ellipsis(1);
  608. }
  609. &::after {
  610. position: absolute;
  611. content: '01';
  612. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0.2)));
  613. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  614. -webkit-background-clip: text;
  615. color: transparent;
  616. font-size: 0.72rem;
  617. right: 0.24rem;
  618. bottom: 0.24rem;
  619. }
  620. }
  621. }
  622. }
  623. }
  624. &.company-values {
  625. .content {
  626. .item {
  627. position: relative;
  628. float: left;
  629. height: 1.94rem;
  630. width: 2.22rem;
  631. margin-right: 0.09rem;
  632. margin-bottom: 0.09rem;
  633. -webkit-box-sizing: border-box;
  634. box-sizing: border-box;
  635. overflow: hidden;
  636. img {
  637. width: 100%;
  638. height: 100%;
  639. opacity: 1;
  640. -webkit-transition: all 0.4s;
  641. transition: all 0.4s;
  642. }
  643. &.no-mb {
  644. margin-bottom: 0;
  645. }
  646. &.no-mr {
  647. margin-right: 0;
  648. }
  649. &:nth-child(1),
  650. &:nth-child(7) {
  651. width: 4.54rem;
  652. }
  653. &:nth-child(2),
  654. &:nth-child(3),
  655. &:nth-child(7) {
  656. .cover {
  657. background: transparent;
  658. }
  659. }
  660. .cover {
  661. position: absolute;
  662. left: 0;
  663. top: 0;
  664. width: 100%;
  665. height: 100%;
  666. display: -webkit-box;
  667. display: -ms-flexbox;
  668. display: flex;
  669. -webkit-box-pack: center;
  670. -ms-flex-pack: center;
  671. justify-content: center;
  672. -webkit-box-orient: vertical;
  673. -webkit-box-direction: normal;
  674. -ms-flex-direction: column;
  675. flex-direction: column;
  676. -webkit-box-align: center;
  677. -ms-flex-align: center;
  678. align-items: center;
  679. background: rgba(0, 0, 0, 0.5);
  680. .line {
  681. width: 1.9rem;
  682. position: absolute;
  683. left: 50%;
  684. top: 50%;
  685. -webkit-transform: translate(-50%, -50%) rotateZ(-45deg);
  686. transform: translate(-50%, -50%) rotateZ(-45deg);
  687. &::after,
  688. &::before {
  689. position: absolute;
  690. left: 0;
  691. top: 0;
  692. content: '';
  693. display: block;
  694. width: 0.2rem;
  695. height: 0.01rem;
  696. background-color: #fff;
  697. }
  698. &::before {
  699. right: 0;
  700. left: unset;
  701. }
  702. }
  703. .title {
  704. color: #fff;
  705. font-size: 0.24rem;
  706. }
  707. .subtitle {
  708. font-size: 0.2rem;
  709. color: #fff;
  710. margin-top: 0.1rem;
  711. &.en {
  712. text-transform: uppercase;
  713. }
  714. }
  715. }
  716. }
  717. }
  718. }
  719. &.head_quarter {
  720. .content {
  721. img {
  722. width: 100%;
  723. }
  724. }
  725. }
  726. &.friendly_link {
  727. .content {
  728. width: 100%;
  729. overflow: hidden;
  730. .row {
  731. display: -webkit-box;
  732. display: -ms-flexbox;
  733. display: flex;
  734. &:last-child {
  735. -webkit-box-orient: horizontal;
  736. -webkit-box-direction: reverse;
  737. -ms-flex-direction: row-reverse;
  738. flex-direction: row-reverse;
  739. -webkit-animation: 20s rowup-right linear infinite normal;
  740. animation: 20s rowup-right linear infinite normal;
  741. margin-top: 10px;
  742. }
  743. &:first-child {
  744. -webkit-animation: 20s rowup-left linear infinite normal;
  745. animation: 20s rowup-left linear infinite normal;
  746. }
  747. }
  748. .item {
  749. -ms-flex-negative: 0;
  750. flex-shrink: 0;
  751. position: relative;
  752. width: 2.2rem;
  753. height: 0.96rem;
  754. -webkit-box-sizing: border-box;
  755. box-sizing: border-box;
  756. border: 1px solid #d8d8d8;
  757. overflow: hidden;
  758. margin-right: 10px;
  759. &:last-child {
  760. margin-right: 0;
  761. }
  762. img {
  763. display: block;
  764. width: 100%;
  765. position: absolute;
  766. left: 0;
  767. top: 50%;
  768. -webkit-transform: translateY(-50%);
  769. transform: translateY(-50%);
  770. }
  771. }
  772. }
  773. }
  774. }
  775. }
  776. }