main.scss 7.4 KB

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