main.scss 7.5 KB

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