@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; 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'); } &-type3 { background-image: url('@/assets/images/index/IntrodRight.jpg'); } } .main-clickable { cursor: pointer; -webkit-user-select: none; user-select: none; transition: all 0.2s ease; &:hover { transform: scale(1.05); } &:active { transform: scale(0.95); } } //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; } } .content { max-width: $selection-max-width; margin: 0 auto; .title { display: flex; flex-direction: row; align-items: center; justify-content: center; margin-bottom: 40px; &.left-right { justify-content: space-between; } .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; 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; } } } //Card box .main-card-box { position: relative; min-height: 330px; color: #fff; margin-right: 24px; overflow: hidden; //transform: translateX(-50%); .content { position: absolute; inset: 24px; z-index: 10; display: flex; flex-direction: column; h4 { font-family: SourceHanSerifCNBold; font-size: 1.5rem; margin: 0; margin-bottom: 32px; } .descs { display: flex; flex-direction: row; flex-wrap: wrap; .box { flex: 1 1 50%; margin-bottom: 32px; cursor: pointer; color: #fff; text-decoration: none; h5 { font-size: 1rem; font-weight: normal; margin: 0; } p { font-family: Impact; font-weight: normal; font-size: 2.8rem; margin: 0; } } } } $background-types: ( type1: (url('@/assets/images/index/BoxPrinting2.png'), url('@/assets/images/index/Box3.jpg')), type2: (url('@/assets/images/index/BoxPrinting1.png'), url('@/assets/images/index/Box1.png')), type3: (url('@/assets/images/index/BoxPrinting4.png'), url('@/assets/images/index/Box2.jpg')) ); @each $typeName, $type in $background-types { &.#{$typeName} { &::after { content: ''; position: absolute; inset: 0; background-image: list.nth($type, 2); z-index: 0; } &::before { content: ''; position: absolute; bottom: -10px; right: -10px; width: 180px; height: 180px; background-size: 180px; background-image: list.nth($type, 1); z-index: 1; } } } &.type3 .descs div { flex-basis: 33%; margin-bottom: 22px; } } @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 40px; &.small-h { padding-top: 20px; padding-bottom: 20px; } } .main-stats { h4 { margin: 20px 0 10px 0; font-size: 1rem; } .descs { h5 { font-size: 3rem; } p { font-size: 0.9rem; } } } } @media (max-width: 425px) { .main-section { padding: 80px 20px; &.small-h { padding-top: 20px; padding-bottom: 20px; } .content .title.left-right { 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; } } } }