@use "./fonts.scss"; @use "./fix.scss"; @use "./components.scss"; @use "./news.scss"; @use "./colors.scss" as *; @use "sass:list"; @use "sass:math"; body, html { font-size: 16px; font-weight: normal; margin: 0; padding: 0; color: $text-color; } main { position: relative; } //Header $large-banner-height: 600px; $small-banner-height: 445px; .main-header-box { position: relative; width: 100%; min-height: $large-banner-height; background-color: $primary-color; &.small { min-height: $small-banner-height; } img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } } .main-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } .main-header-title { font-family: SourceHanSerifCNBold; color: $text-color-light; h1 { font-size: 3rem; margin: 0; margin-bottom: 16px; } h2 { font-size: 2.5rem; margin: 0; margin-bottom: 16px; } p { font-size: 1.5rem; margin: 0; margin-bottom: 24px; } } .main-header-tab { position: absolute; bottom: 0; left: 0; right: 0; .list { margin: 0 auto; max-width: $selection-max-width; background-color: $box-dark-trans-color3; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); display: flex; flex-direction: row; align-items: center; justify-content: flex-start; > div { min-width: 300px; height: 56px; color: $text-color-light; text-align: center; line-height: 56px; cursor: pointer; &.active { background-color: $primary-color; height: 60px; } } } } //Utitles .main-background { background-size: 100% auto; background-repeat: repeat; background-position: center top; &-type0 { background-image: url('@/assets/images/BgLong.jpg'); } &-type1 { background-image: url('@/assets/images/Bg1.png'); } &-type2 { background-image: url('@/assets/images/Bg2.png'); } } .main-clickable { cursor: pointer; -webkit-user-select: none; user-select: none; &:active { transform: scale(0.996); } } //Boxs .main-box { overflow: hidden; background-color: $box-color; border-radius: 5px; } //Section .main-section { position: relative; padding: 120px 100px; &.absolute { position: absolute; top: 0; left: 0; right: 0; z-index: 10; } &.fit-small-header { height: $small-banner-height; } &.light { color: $text-color-light; } &.small-h { padding-top: 40px; padding-bottom: 40px; } h2 { display: flex; flex-direction: row; align-items: center; margin: 0; font-size: 2rem; font-family: SourceHanSerifCNBold; &::after, &::before { content: ''; display: inline-block; width: 20px; height: 20px; background-size: 20px; background-image: url('@/assets/images/TitleMiniHeader.png'); } &::after { margin-left: 10px; } &::before { margin-right: 10px; } } &.large { > .content { max-width: $selection-max-width-large; } } > .content { max-width: $selection-max-width; margin: 0 auto; > .title { display: flex; flex-direction: row; align-items: center; justify-content: center; margin-bottom: 40px; &.small { margin-bottom: 20px; } &.left-right { justify-content: space-between; } .button-placeholder { flex-shrink: 0; width: 100px; } .small-more { display: flex; flex-direction: row; align-items: center; font-size: 0.9rem; color: $text-second-color; cursor: pointer; -webkit-user-select: none; user-select: none; img { width: 80px; margin-left: 20px; } } } > .tab-button { background-color: $primary-color; color: $text-color-light; padding: 10px 15px; margin-right: 8px; cursor: pointer; -webkit-user-select: none; user-select: none; outline: none; flex-shrink: 0; } } } .main-stats { display: flex; flex-direction: column; font-family: SourceHanSerifCNBold; h4 { margin: 50px 0 10px 0; font-size: 1rem; color: $text-second-color; } .descs { display: flex; flex-direction: row; align-items: center; justify-content: space-around; div { text-align: center; cursor: pointer; } h5 { margin: 0; font-size: 4.5rem; font-weight: bold; } p { margin: 0; font-size: 0.9rem; } } } .form-container { max-width: 600px; margin: 0 auto; } .form-box { background-color: $box-color; border-radius: 20px; padding: 90px; box-shadow: 0 0 10px $box-shadow-color; } //Card box .task-list { display: flex; flex-direction: column; .item { margin-top: 20px; display: flex; flex-direction: row; align-items: center; padding: 20px; background-color: $box-color; border-radius: 10px; cursor: pointer; &:hover { background-color: $box-hover-color; } .info { flex: 1; font-size: 20px; margin: 0 20px; .desc { font-size: 15px; color: $text-content-color; } } .iconfont { width: 50px; height: 50px; border-radius: 50%; border: 1px solid $primary-color; text-align: center; color: $primary-color; font-size: 30px; line-height: 50px; display: inline-block; } } } @media (max-width: 1280px) { .main-section { padding: 100px 80px; &.small-h { padding-top: 40px; padding-bottom: 40px; } } } @media (max-width: 1024px) { .main-section { padding: 80px 60px; &.small-h { padding-top: 30px; padding-bottom: 30px; } } .main-header-tab { .list { > div { min-width: initial; flex: 1; } } } } @media (max-width: 768px) { .main-section { padding: 80px 20px; &.small-h { padding-top: 20px; padding-bottom: 20px; } .content .title.left-right { flex-direction: column; } } .main-stats { h4 { margin: 20px 0 10px 0; font-size: 1rem; } .descs { h5 { font-size: 3rem; } p { font-size: 0.9rem; } } } .form-box { padding: 40px; } .task-list .item { padding: 15px; } } @media (max-width: 425px) { .main-section { padding: 80px 10px; &.small-h { padding-top: 20px; padding-bottom: 20px; } .content .title { h2 { font-size: 1.5rem; } &.left-right { gap: 20px; flex-direction: column; } } } .main-card-box { width: auto; transform: translateX(20px); } } @media (max-width: 500px) { .main-header-box { &.small { min-height: $large-banner-height; } } .main-section.fit-small-header { height: $large-banner-height; } .main-stats { h4 { margin: 10px 0 5px 0; font-size: 0.7rem; } .descs { h5 { font-size: 2rem; } p { font-size: 0.8rem; } } } .form-box { padding: 0; background-color: transparent; box-shadow: none; } .task-list .item { padding: 10px; } }