index.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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. .section-title {
  10. position: relative;
  11. text-align: center;
  12. height: 66px;
  13. img {
  14. display: block;
  15. height: 50px;
  16. margin: 0 auto;
  17. }
  18. h3 {
  19. position: absolute;
  20. left: 50%;
  21. bottom: 0;
  22. -webkit-transform: translateX(-50%);
  23. transform: translateX(-50%);
  24. font-size: 34px;
  25. font-weight: normal;
  26. }
  27. }
  28. // 轮播图
  29. .banner {
  30. width: 100%;
  31. height: 700px;
  32. img {
  33. display: block;
  34. height: 100%;
  35. }
  36. }
  37. .main {
  38. .container {
  39. margin-top: 120px;
  40. .section-title {
  41. margin-bottom: 80px;
  42. }
  43. &.our-brand {
  44. .content {
  45. .item {
  46. position: relative;
  47. width: 286px;
  48. height: 286px;
  49. float: left;
  50. background-color: #ddd;
  51. &:first-child {
  52. width: 592px;
  53. height: 592px;
  54. }
  55. img {
  56. display: block;
  57. width: 100%;
  58. height: 100%;
  59. }
  60. &:hover {
  61. .active {
  62. opacity: 1;
  63. }
  64. }
  65. .active {
  66. opacity: 0;
  67. position: absolute;
  68. left: 0;
  69. top: 0;
  70. z-index: 2;
  71. width: 100%;
  72. height: 100%;
  73. display: -webkit-box;
  74. display: -ms-flexbox;
  75. display: flex;
  76. -webkit-box-pack: center;
  77. -ms-flex-pack: center;
  78. justify-content: center;
  79. -webkit-box-align: center;
  80. -ms-flex-align: center;
  81. align-items: center;
  82. -webkit-box-orient: vertical;
  83. -webkit-box-direction: normal;
  84. -ms-flex-direction: column;
  85. flex-direction: column;
  86. background-color: rgba(0, 0, 0, 0.5);
  87. -webkit-transition: opacity 0.4s;
  88. transition: opacity 0.4s;
  89. .title {
  90. font-size: 34px;
  91. color: #fff;
  92. }
  93. .line {
  94. width: 40px;
  95. height: 1px;
  96. margin: 32px 0 60px;
  97. background-color: #fff;
  98. }
  99. .link {
  100. width: 160px;
  101. height: 48px;
  102. border: 1px solid #ffffff;
  103. text-align: center;
  104. line-height: 48px;
  105. color: #fff;
  106. cursor: pointer;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. &.brand-activity {
  113. .content {
  114. display: -webkit-box;
  115. display: -ms-flexbox;
  116. display: flex;
  117. -webkit-box-pack: center;
  118. -ms-flex-pack: center;
  119. justify-content: center;
  120. .item {
  121. position: relative;
  122. width: 280px;
  123. height: 600px;
  124. overflow: hidden;
  125. -ms-flex-negative: 0;
  126. flex-shrink: 0;
  127. -webkit-transition: all 0.4s;
  128. transition: all 0.4s;
  129. a {
  130. display: block;
  131. width: 100%;
  132. height: 100%;
  133. }
  134. img {
  135. position: absolute;
  136. top: 0;
  137. left: 50%;
  138. -webkit-transform: translateX(-50%);
  139. transform: translateX(-50%);
  140. display: block;
  141. width: 640px;
  142. height: 600px;
  143. }
  144. &.hover {
  145. width: 640px;
  146. }
  147. &:nth-child(1) {
  148. .cover {
  149. &::after {
  150. content: '01';
  151. }
  152. }
  153. }
  154. &:nth-child(2) {
  155. .cover {
  156. &::after {
  157. content: '02';
  158. }
  159. }
  160. }
  161. &:nth-child(3) {
  162. .cover {
  163. &::after {
  164. content: '03';
  165. }
  166. }
  167. }
  168. .active {
  169. position: absolute;
  170. width: 100%;
  171. height: 280px;
  172. bottom: 0;
  173. left: 0;
  174. -webkit-box-sizing: border-box;
  175. box-sizing: border-box;
  176. padding-left: 24px;
  177. background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.88)), to(rgba(0, 0, 0, 0)));
  178. background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  179. .title {
  180. margin-top: 206px;
  181. width: 232px;
  182. font-size: 24px;
  183. color: #fff;
  184. @include ellipsis(1);
  185. }
  186. .line {
  187. width: 20px;
  188. height: 2px;
  189. margin-top: 16px;
  190. background-color: #fff;
  191. }
  192. .description {
  193. display: none;
  194. }
  195. &::after {
  196. position: absolute;
  197. content: '01';
  198. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0.2)));
  199. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  200. -webkit-background-clip: text;
  201. color: transparent;
  202. font-size: 30px;
  203. left: 24px;
  204. bottom: 66px;
  205. }
  206. }
  207. .hover-active {
  208. position: absolute;
  209. width: 486px;
  210. height: 160px;
  211. padding-top: 32px;
  212. padding-left: 32px;
  213. -webkit-box-sizing: border-box;
  214. box-sizing: border-box;
  215. border-top-left-radius: 32px;
  216. right: 0;
  217. bottom: 0;
  218. background: linear-gradient(166deg, #0688d2 25%, rgba(32, 155, 212, 0.8));
  219. -webkit-transition: opacity 0.4s;
  220. transition: opacity 0.4s;
  221. .title {
  222. font-size: 24px;
  223. color: #fff;
  224. width: 300px;
  225. @include ellipsis(1);
  226. }
  227. .line {
  228. width: 20px;
  229. height: 2px;
  230. margin: 16px 0 22px;
  231. background-color: #fff;
  232. }
  233. .description {
  234. text-align: justify;
  235. width: 300px;
  236. font-size: 16px;
  237. color: #fff;
  238. line-height: 1.5;
  239. @include ellipsis(2);
  240. }
  241. &::after {
  242. position: absolute;
  243. content: '01';
  244. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0.2)));
  245. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  246. -webkit-background-clip: text;
  247. color: transparent;
  248. font-size: 90px;
  249. line-height: 90px;
  250. right: 32px;
  251. bottom: 24px;
  252. }
  253. }
  254. }
  255. }
  256. }
  257. &.company-values {
  258. .content {
  259. .item {
  260. position: relative;
  261. float: left;
  262. height: 340px;
  263. width: 390px;
  264. margin-right: 15px;
  265. margin-bottom: 15px;
  266. -webkit-box-sizing: border-box;
  267. box-sizing: border-box;
  268. overflow: hidden;
  269. img {
  270. width: 100%;
  271. height: 100%;
  272. opacity: 1;
  273. -webkit-transition: all 0.4s;
  274. transition: all 0.4s;
  275. }
  276. &.no-mb {
  277. margin-bottom: 0;
  278. }
  279. &.no-mr {
  280. margin-right: 0;
  281. }
  282. &:nth-child(1),
  283. &:nth-child(7) {
  284. width: 795px;
  285. }
  286. &:hover {
  287. img {
  288. -webkit-transform: scale(1.2);
  289. transform: scale(1.2);
  290. }
  291. }
  292. &:nth-child(2),
  293. &:nth-child(3),
  294. &:nth-child(7) {
  295. .cover {
  296. background: transparent;
  297. }
  298. &:hover {
  299. border: 1px solid #0688d2;
  300. img {
  301. opacity: 0;
  302. }
  303. .subtitle,
  304. .title {
  305. color: #0688d2;
  306. }
  307. .line {
  308. &::before,
  309. &::after {
  310. background-color: #0688d2;
  311. }
  312. }
  313. }
  314. }
  315. .cover {
  316. position: absolute;
  317. left: 0;
  318. top: 0;
  319. width: 100%;
  320. height: 100%;
  321. display: -webkit-box;
  322. display: -ms-flexbox;
  323. display: flex;
  324. -webkit-box-pack: center;
  325. -ms-flex-pack: center;
  326. justify-content: center;
  327. -webkit-box-orient: vertical;
  328. -webkit-box-direction: normal;
  329. -ms-flex-direction: column;
  330. flex-direction: column;
  331. -webkit-box-align: center;
  332. -ms-flex-align: center;
  333. align-items: center;
  334. background: rgba(0, 0, 0, 0.5);
  335. .line {
  336. width: 180px;
  337. position: absolute;
  338. left: 50%;
  339. top: 50%;
  340. -webkit-transform: translate(-50%, -50%) rotateZ(-45deg);
  341. transform: translate(-50%, -50%) rotateZ(-45deg);
  342. &::after,
  343. &::before {
  344. position: absolute;
  345. left: 0;
  346. top: 0;
  347. content: '';
  348. display: block;
  349. width: 20px;
  350. height: 1px;
  351. background-color: #fff;
  352. }
  353. &::before {
  354. right: 0;
  355. left: unset;
  356. }
  357. }
  358. .title {
  359. color: #fff;
  360. font-size: 24px;
  361. }
  362. .subtitle {
  363. font-size: 18px;
  364. color: #fff;
  365. margin-top: 12px;
  366. &.en {
  367. text-transform: uppercase;
  368. }
  369. }
  370. }
  371. }
  372. }
  373. }
  374. &.head_quarter {
  375. }
  376. &.friendly_link {
  377. .content {
  378. width: 100%;
  379. overflow: hidden;
  380. .row {
  381. display: -webkit-box;
  382. display: -ms-flexbox;
  383. display: flex;
  384. &:last-child {
  385. -webkit-box-orient: horizontal;
  386. -webkit-box-direction: reverse;
  387. -ms-flex-direction: row-reverse;
  388. flex-direction: row-reverse;
  389. -webkit-animation: 20s rowup-right linear infinite normal;
  390. animation: 20s rowup-right linear infinite normal;
  391. margin-top: 10px;
  392. }
  393. &:first-child {
  394. -webkit-animation: 20s rowup-left linear infinite normal;
  395. animation: 20s rowup-left linear infinite normal;
  396. }
  397. }
  398. .item {
  399. -ms-flex-negative: 0;
  400. flex-shrink: 0;
  401. position: relative;
  402. width: 232px;
  403. height: 100px;
  404. -webkit-box-sizing: border-box;
  405. box-sizing: border-box;
  406. border: 1px solid #d8d8d8;
  407. overflow: hidden;
  408. margin-right: 10px;
  409. &:last-child {
  410. margin-right: 0;
  411. }
  412. img {
  413. display: block;
  414. width: 100%;
  415. position: absolute;
  416. left: 0;
  417. top: 50%;
  418. -webkit-transform: translateY(-50%);
  419. transform: translateY(-50%);
  420. }
  421. }
  422. }
  423. }
  424. }
  425. }