main.scss 8.0 KB

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