index.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. @charset "UTF-8";
  2. /* scss中可以用mixin来扩展 */
  3. .banner {
  4. width: 100%;
  5. height: 700px;
  6. }
  7. .banner img {
  8. display: block;
  9. height: 100%;
  10. }
  11. .main .container {
  12. margin-top: 120px;
  13. }
  14. .main .container .section-title {
  15. margin-bottom: 80px;
  16. }
  17. .main .container.our-brand .content .item {
  18. position: relative;
  19. width: 286px;
  20. height: 286px;
  21. float: left;
  22. background-color: #ddd;
  23. }
  24. .main .container.our-brand .content .item:first-child {
  25. width: 592px;
  26. height: 592px;
  27. }
  28. .main .container.our-brand .content .item img {
  29. display: block;
  30. width: 100%;
  31. height: 100%;
  32. }
  33. .main .container.our-brand .content .item:hover .active {
  34. opacity: 1;
  35. }
  36. .main .container.our-brand .content .item .active {
  37. opacity: 0;
  38. position: absolute;
  39. left: 0;
  40. top: 0;
  41. z-index: 2;
  42. width: 100%;
  43. height: 100%;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. flex-direction: column;
  48. background-color: rgba(0, 0, 0, 0.5);
  49. transition: opacity 0.4s;
  50. }
  51. .main .container.our-brand .content .item .active .title {
  52. font-size: 34px;
  53. color: #fff;
  54. }
  55. .main .container.our-brand .content .item .active .line {
  56. width: 40px;
  57. height: 1px;
  58. margin: 32px 0 60px;
  59. background-color: #fff;
  60. }
  61. .main .container.our-brand .content .item .active .link {
  62. width: 160px;
  63. height: 48px;
  64. border: 1px solid #ffffff;
  65. text-align: center;
  66. line-height: 48px;
  67. color: #fff;
  68. cursor: pointer;
  69. }
  70. .main .container.brand-activity .content {
  71. display: flex;
  72. justify-content: center;
  73. }
  74. .main .container.brand-activity .content .item {
  75. position: relative;
  76. width: 280px;
  77. height: 600px;
  78. overflow: hidden;
  79. flex-shrink: 0;
  80. transition: all 0.4s;
  81. }
  82. .main .container.brand-activity .content .item a {
  83. display: block;
  84. width: 100%;
  85. height: 100%;
  86. }
  87. .main .container.brand-activity .content .item img {
  88. position: absolute;
  89. top: 0;
  90. left: 50%;
  91. transform: translateX(-50%);
  92. display: block;
  93. width: 640px;
  94. height: 600px;
  95. }
  96. .main .container.brand-activity .content .item.hover {
  97. width: 640px;
  98. }
  99. .main .container.brand-activity .content .item:nth-child(1) .cover::after {
  100. content: "01";
  101. }
  102. .main .container.brand-activity .content .item:nth-child(2) .cover::after {
  103. content: "02";
  104. }
  105. .main .container.brand-activity .content .item:nth-child(3) .cover::after {
  106. content: "03";
  107. }
  108. .main .container.brand-activity .content .item .active {
  109. position: absolute;
  110. width: 100%;
  111. height: 280px;
  112. bottom: 0;
  113. left: 0;
  114. box-sizing: border-box;
  115. padding-left: 24px;
  116. background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  117. }
  118. .main .container.brand-activity .content .item .active .title {
  119. margin-top: 206px;
  120. width: 232px;
  121. font-size: 24px;
  122. color: #fff;
  123. overflow: hidden;
  124. text-overflow: ellipsis;
  125. display: -webkit-box;
  126. -webkit-line-clamp: 1;
  127. -webkit-box-orient: vertical;
  128. }
  129. .main .container.brand-activity .content .item .active .line {
  130. width: 20px;
  131. height: 2px;
  132. margin-top: 16px;
  133. background-color: #fff;
  134. }
  135. .main .container.brand-activity .content .item .active .description {
  136. display: none;
  137. }
  138. .main .container.brand-activity .content .item .active::after {
  139. position: absolute;
  140. content: "01";
  141. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  142. -webkit-background-clip: text;
  143. color: transparent;
  144. font-size: 30px;
  145. left: 24px;
  146. bottom: 66px;
  147. }
  148. .main .container.brand-activity .content .item .hover-active {
  149. position: absolute;
  150. width: 486px;
  151. height: 160px;
  152. padding-top: 32px;
  153. padding-left: 32px;
  154. box-sizing: border-box;
  155. border-top-left-radius: 32px;
  156. right: 0;
  157. bottom: 0;
  158. background: linear-gradient(166deg, #0688d2 25%, rgba(32, 155, 212, 0.8));
  159. transition: opacity 0.4s;
  160. }
  161. .main .container.brand-activity .content .item .hover-active .title {
  162. font-size: 24px;
  163. color: #fff;
  164. width: 300px;
  165. overflow: hidden;
  166. text-overflow: ellipsis;
  167. display: -webkit-box;
  168. -webkit-line-clamp: 1;
  169. -webkit-box-orient: vertical;
  170. }
  171. .main .container.brand-activity .content .item .hover-active .line {
  172. width: 20px;
  173. height: 2px;
  174. margin: 16px 0 22px;
  175. background-color: #fff;
  176. }
  177. .main .container.brand-activity .content .item .hover-active .description {
  178. text-align: justify;
  179. width: 300px;
  180. font-size: 16px;
  181. color: #fff;
  182. line-height: 1.5;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. display: -webkit-box;
  186. -webkit-line-clamp: 2;
  187. -webkit-box-orient: vertical;
  188. }
  189. .main .container.brand-activity .content .item .hover-active::after {
  190. position: absolute;
  191. content: "01";
  192. background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  193. -webkit-background-clip: text;
  194. color: transparent;
  195. font-size: 90px;
  196. line-height: 90px;
  197. right: 32px;
  198. bottom: 24px;
  199. }
  200. .main .container.company-values .content .item {
  201. position: relative;
  202. float: left;
  203. height: 340px;
  204. width: 390px;
  205. margin-right: 15px;
  206. margin-bottom: 15px;
  207. box-sizing: border-box;
  208. overflow: hidden;
  209. }
  210. .main .container.company-values .content .item img {
  211. width: 100%;
  212. height: 100%;
  213. opacity: 1;
  214. transition: all 0.4s;
  215. }
  216. .main .container.company-values .content .item.no-mb {
  217. margin-bottom: 0;
  218. }
  219. .main .container.company-values .content .item.no-mr {
  220. margin-right: 0;
  221. }
  222. .main .container.company-values .content .item:nth-child(1), .main .container.company-values .content .item:nth-child(7) {
  223. width: 795px;
  224. }
  225. .main .container.company-values .content .item:hover img {
  226. transform: scale(1.2);
  227. }
  228. .main .container.company-values .content .item:nth-child(2) .cover, .main .container.company-values .content .item:nth-child(3) .cover, .main .container.company-values .content .item:nth-child(7) .cover {
  229. background: transparent;
  230. }
  231. .main .container.company-values .content .item:nth-child(2):hover, .main .container.company-values .content .item:nth-child(3):hover, .main .container.company-values .content .item:nth-child(7):hover {
  232. border: 1px solid #0688d2;
  233. }
  234. .main .container.company-values .content .item:nth-child(2):hover img, .main .container.company-values .content .item:nth-child(3):hover img, .main .container.company-values .content .item:nth-child(7):hover img {
  235. opacity: 0;
  236. }
  237. .main .container.company-values .content .item:nth-child(2):hover .subtitle,
  238. .main .container.company-values .content .item:nth-child(2):hover .title, .main .container.company-values .content .item:nth-child(3):hover .subtitle,
  239. .main .container.company-values .content .item:nth-child(3):hover .title, .main .container.company-values .content .item:nth-child(7):hover .subtitle,
  240. .main .container.company-values .content .item:nth-child(7):hover .title {
  241. color: #0688d2;
  242. }
  243. .main .container.company-values .content .item:nth-child(2):hover .line::before, .main .container.company-values .content .item:nth-child(2):hover .line::after, .main .container.company-values .content .item:nth-child(3):hover .line::before, .main .container.company-values .content .item:nth-child(3):hover .line::after, .main .container.company-values .content .item:nth-child(7):hover .line::before, .main .container.company-values .content .item:nth-child(7):hover .line::after {
  244. background-color: #0688d2;
  245. }
  246. .main .container.company-values .content .item .cover {
  247. position: absolute;
  248. left: 0;
  249. top: 0;
  250. width: 100%;
  251. height: 100%;
  252. display: flex;
  253. justify-content: center;
  254. flex-direction: column;
  255. align-items: center;
  256. background: rgba(0, 0, 0, 0.5);
  257. }
  258. .main .container.company-values .content .item .cover .line {
  259. width: 180px;
  260. position: absolute;
  261. left: 50%;
  262. top: 50%;
  263. transform: translate(-50%, -50%) rotateZ(-45deg);
  264. }
  265. .main .container.company-values .content .item .cover .line::after, .main .container.company-values .content .item .cover .line::before {
  266. position: absolute;
  267. left: 0;
  268. top: 0;
  269. content: "";
  270. display: block;
  271. width: 20px;
  272. height: 1px;
  273. background-color: #fff;
  274. }
  275. .main .container.company-values .content .item .cover .line::before {
  276. right: 0;
  277. left: unset;
  278. }
  279. .main .container.company-values .content .item .cover .title {
  280. color: #fff;
  281. font-size: 24px;
  282. }
  283. .main .container.company-values .content .item .cover .subtitle {
  284. font-size: 18px;
  285. color: #fff;
  286. margin-top: 12px;
  287. }
  288. .main .container.company-values .content .item .cover .subtitle.en {
  289. text-transform: uppercase;
  290. }
  291. .main .container.friendly_link .content .item {
  292. float: left;
  293. position: relative;
  294. width: 230px;
  295. height: 100px;
  296. box-sizing: border-box;
  297. border: 1px solid #d8d8d8;
  298. overflow: hidden;
  299. margin-right: 12px;
  300. margin-top: 20px;
  301. }
  302. .main .container.friendly_link .content .item:nth-child(5n) {
  303. margin-right: 0;
  304. }
  305. .main .container.friendly_link .content .item:nth-child(-n+5) {
  306. margin-top: 0;
  307. }
  308. .main .container.friendly_link .content .item img {
  309. display: block;
  310. width: 100%;
  311. position: absolute;
  312. left: 0;
  313. top: 50%;
  314. transform: translateY(-50%);
  315. }