index.scss 22 KB

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