main.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. @use "./fonts.scss";
  2. @use "./fix.scss";
  3. @use "./components.scss";
  4. @use "./news.scss";
  5. @use "./colors.scss" as *;
  6. @use "sass:list";
  7. @use "sass:math";
  8. body,
  9. html {
  10. font-size: 16px;
  11. font-weight: normal;
  12. margin: 0;
  13. padding: 0;
  14. color: $text-color;
  15. }
  16. main {
  17. position: relative;
  18. }
  19. //Header
  20. $large-banner-height: 600px;
  21. $small-banner-height: 445px;
  22. .main-header-box {
  23. position: relative;
  24. width: 100%;
  25. min-height: $large-banner-height;
  26. background-color: $primary-color;
  27. &.small {
  28. min-height: $small-banner-height;
  29. }
  30. img {
  31. position: absolute;
  32. top: 0;
  33. left: 0;
  34. width: 100%;
  35. height: 100%;
  36. object-fit: cover;
  37. z-index: 0;
  38. }
  39. }
  40. .main-center-text {
  41. position: absolute;
  42. top: 50%;
  43. left: 50%;
  44. transform: translate(-50%, -50%);
  45. text-align: center;
  46. }
  47. .main-header-title {
  48. font-family: SourceHanSerifCNBold;
  49. color: $text-color-light;
  50. h1 {
  51. font-size: 3rem;
  52. margin: 0;
  53. margin-bottom: 16px;
  54. }
  55. h2 {
  56. font-size: 2.5rem;
  57. margin: 0;
  58. margin-bottom: 16px;
  59. }
  60. p {
  61. font-size: 1.5rem;
  62. margin: 0;
  63. margin-bottom: 24px;
  64. }
  65. }
  66. .main-header-tab {
  67. position: absolute;
  68. bottom: 0;
  69. left: 0;
  70. right: 0;
  71. .list {
  72. margin: 0 auto;
  73. max-width: $selection-max-width;
  74. background-color: $box-dark-trans-color3;
  75. backdrop-filter: blur(5px);
  76. display: flex;
  77. flex-direction: row;
  78. align-items: center;
  79. justify-content: flex-start;
  80. > div {
  81. min-width: 300px;
  82. height: 56px;
  83. color: $text-color-light;
  84. text-align: center;
  85. line-height: 56px;
  86. cursor: pointer;
  87. &.active {
  88. background-color: $primary-color;
  89. height: 60px;
  90. }
  91. }
  92. }
  93. }
  94. //Utitles
  95. .main-background {
  96. background-size: 100% auto;
  97. background-repeat: repeat;
  98. background-position: center top;
  99. &-type0 {
  100. background-image: url('@/assets/images/BgLong.jpg');
  101. }
  102. &-type1 {
  103. background-image: url('@/assets/images/Bg1.png');
  104. }
  105. &-type2 {
  106. background-image: url('@/assets/images/Bg2.png');
  107. }
  108. &-type3 {
  109. background-image: url('@/assets/images/index/IntrodRight.jpg');
  110. }
  111. }
  112. .main-clickable {
  113. cursor: pointer;
  114. -webkit-user-select: none;
  115. user-select: none;
  116. transition: all 0.2s ease;
  117. &:hover {
  118. transform: scale(1.05);
  119. }
  120. &:active {
  121. transform: scale(0.95);
  122. }
  123. }
  124. //Boxs
  125. .main-box {
  126. overflow: hidden;
  127. background-color: $box-color;
  128. border-radius: 5px;
  129. }
  130. //Section
  131. .main-section {
  132. position: relative;
  133. padding: 120px 100px;
  134. &.absolute {
  135. position: absolute;
  136. top: 0;
  137. left: 0;
  138. right: 0;
  139. z-index: 10;
  140. }
  141. &.fit-small-header {
  142. height: $small-banner-height;
  143. }
  144. &.light {
  145. color: $text-color-light;
  146. }
  147. &.small-h {
  148. padding-top: 40px;
  149. padding-bottom: 40px;
  150. }
  151. h2 {
  152. display: flex;
  153. flex-direction: row;
  154. align-items: center;
  155. margin: 0;
  156. font-size: 2rem;
  157. font-family: SourceHanSerifCNBold;
  158. &::after, &::before {
  159. content: '';
  160. display: inline-block;
  161. width: 20px;
  162. height: 20px;
  163. background-size: 20px;
  164. background-image: url('@/assets/images/TitleMiniHeader.png');
  165. }
  166. &::after {
  167. margin-left: 10px;
  168. }
  169. &::before {
  170. margin-right: 10px;
  171. }
  172. }
  173. .content {
  174. max-width: $selection-max-width;
  175. margin: 0 auto;
  176. .title {
  177. display: flex;
  178. flex-direction: row;
  179. align-items: center;
  180. justify-content: center;
  181. margin-bottom: 40px;
  182. &.left-right {
  183. justify-content: space-between;
  184. }
  185. .small-more {
  186. display: flex;
  187. flex-direction: row;
  188. align-items: center;
  189. font-size: 0.9rem;
  190. color: $text-second-color;
  191. cursor: pointer;
  192. -webkit-user-select: none;
  193. user-select: none;
  194. img {
  195. width: 80px;
  196. margin-left: 20px;
  197. }
  198. }
  199. }
  200. .tab-button {
  201. background-color: $primary-color;
  202. color: $text-color-light;
  203. padding: 10px 15px;
  204. margin-right: 8px;
  205. cursor: pointer;
  206. user-select: none;
  207. outline: none;
  208. flex-shrink: 0;
  209. }
  210. }
  211. }
  212. .main-stats {
  213. display: flex;
  214. flex-direction: column;
  215. font-family: SourceHanSerifCNBold;
  216. h4 {
  217. margin: 50px 0 10px 0;
  218. font-size: 1rem;
  219. color: $text-second-color;
  220. }
  221. .descs {
  222. display: flex;
  223. flex-direction: row;
  224. align-items: center;
  225. justify-content: space-around;
  226. div {
  227. text-align: center;
  228. cursor: pointer;
  229. }
  230. h5 {
  231. margin: 0;
  232. font-size: 4.5rem;
  233. font-weight: bold;
  234. }
  235. p {
  236. margin: 0;
  237. font-size: 0.9rem;
  238. }
  239. }
  240. }
  241. //Card box
  242. .main-card-box {
  243. position: relative;
  244. min-height: 330px;
  245. color: #fff;
  246. margin-right: 24px;
  247. overflow: hidden;
  248. //transform: translateX(-50%);
  249. .content {
  250. position: absolute;
  251. inset: 24px;
  252. z-index: 10;
  253. display: flex;
  254. flex-direction: column;
  255. h4 {
  256. font-family: SourceHanSerifCNBold;
  257. font-size: 1.5rem;
  258. margin: 0;
  259. margin-bottom: 32px;
  260. }
  261. .descs {
  262. display: flex;
  263. flex-direction: row;
  264. flex-wrap: wrap;
  265. .box {
  266. flex: 1 1 50%;
  267. margin-bottom: 32px;
  268. cursor: pointer;
  269. color: #fff;
  270. text-decoration: none;
  271. h5 {
  272. font-size: 1rem;
  273. font-weight: normal;
  274. margin: 0;
  275. }
  276. p {
  277. font-family: Impact;
  278. font-weight: normal;
  279. font-size: 2.8rem;
  280. margin: 0;
  281. }
  282. }
  283. }
  284. }
  285. $background-types: (
  286. type1: (url('@/assets/images/index/BoxPrinting2.png'), url('@/assets/images/index/Box3.jpg')),
  287. type2: (url('@/assets/images/index/BoxPrinting1.png'), url('@/assets/images/index/Box1.png')),
  288. type3: (url('@/assets/images/index/BoxPrinting4.png'), url('@/assets/images/index/Box2.jpg'))
  289. );
  290. @each $typeName, $type in $background-types {
  291. &.#{$typeName} {
  292. &::after {
  293. content: '';
  294. position: absolute;
  295. inset: 0;
  296. background-image: list.nth($type, 2);
  297. z-index: 0;
  298. }
  299. &::before {
  300. content: '';
  301. position: absolute;
  302. bottom: -10px;
  303. right: -10px;
  304. width: 180px;
  305. height: 180px;
  306. background-size: 180px;
  307. background-image: list.nth($type, 1);
  308. z-index: 1;
  309. }
  310. }
  311. }
  312. &.type3 .descs div {
  313. flex-basis: 33%;
  314. margin-bottom: 22px;
  315. }
  316. }
  317. @media (max-width: 1280px) {
  318. .main-section {
  319. padding: 100px 80px;
  320. &.small-h {
  321. padding-top: 40px;
  322. padding-bottom: 40px;
  323. }
  324. }
  325. }
  326. @media (max-width: 1024px) {
  327. .main-section {
  328. padding: 80px 60px;
  329. &.small-h {
  330. padding-top: 30px;
  331. padding-bottom: 30px;
  332. }
  333. }
  334. .main-header-tab {
  335. .list {
  336. > div {
  337. min-width: initial;
  338. flex: 1;
  339. }
  340. }
  341. }
  342. }
  343. @media (max-width: 768px) {
  344. .main-section {
  345. padding: 80px 40px;
  346. &.small-h {
  347. padding-top: 20px;
  348. padding-bottom: 20px;
  349. }
  350. }
  351. .main-stats {
  352. h4 {
  353. margin: 20px 0 10px 0;
  354. font-size: 1rem;
  355. }
  356. .descs {
  357. h5 {
  358. font-size: 3rem;
  359. }
  360. p {
  361. font-size: 0.9rem;
  362. }
  363. }
  364. }
  365. }
  366. @media (max-width: 425px) {
  367. .main-section {
  368. padding: 80px 20px;
  369. &.small-h {
  370. padding-top: 20px;
  371. padding-bottom: 20px;
  372. }
  373. .content .title.left-right {
  374. flex-direction: column;
  375. }
  376. }
  377. .main-card-box {
  378. width: auto;
  379. transform: translateX(20px);
  380. }
  381. }
  382. @media (max-width: 500px) {
  383. .main-header-box {
  384. &.small {
  385. min-height: $large-banner-height;
  386. }
  387. }
  388. .main-section.fit-small-header {
  389. height: $large-banner-height;
  390. }
  391. .main-stats {
  392. h4 {
  393. margin: 10px 0 5px 0;
  394. font-size: 0.7rem;
  395. }
  396. .descs {
  397. h5 {
  398. font-size: 2rem;
  399. }
  400. p {
  401. font-size: 0.8rem;
  402. }
  403. }
  404. }
  405. }