123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 |
- @use "./fonts.scss";
- @use "./fix.scss";
- @use "./components.scss";
- @use "./colors.scss" as *;
- 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-color2;
- 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;
- &.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.png');
- }
- &-type1 {
- background-image: url('@/assets/images/Bg1.png');
- }
- &-type2 {
- background-image: url('@/assets/images/Bg2.png');
- }
- &-type3 {
- background-image: url('@/assets/images/index/IntrodRight.png');
- }
- }
- //Boxs
- .main-news-box {
- position: relative;
- padding: 24px;
- background-color: #fff;
- background-size: cover;
- background-position: center;
- width: 400px;
- height: 270px;
- margin-right: 24px;
- &::before {
- content: '';
- display: block;
- position: absolute;
- right: 0;
- left: 0;
- bottom: 0;
- height: 120px;
- background: linear-gradient(
- 180deg,
- rgba(#000, 0) 0%,
- rgba(#000, 0.5) 100%
- )
- }
- .desc {
- position: absolute;
- right: 0;
- left: 0;
- bottom: 0;
- display: flex;
- flex-direction: column;
- padding: 24px;
- color: #fff;
- h5 {
- font-family: SourceHanSerifCNBold;
- font-size: 1.1rem;
- margin-bottom: 5px;
- }
- p {
- font-size: 0.8rem;
- margin: 0;
- }
- }
- }
- //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;
- }
- 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;
- }
- }
- }
- }
- }
- //
- @media (max-width: 1280px) {
- .main-section {
- padding: 100px 80px;
- }
- }
- @media (max-width: 1024px) {
- .main-section {
- padding: 80px 60px;
- }
- .main-header-tab {
- .list {
- > div {
- min-width: initial;
- flex: 1;
- }
- }
- }
- }
- @media (max-width: 768px) {
- .main-section {
- padding: 80px 40px;
- }
- }
- @media (max-width: 425px) {
- .main-section {
- padding: 80px 20px;
- }
- }
- @media (max-width: 500px) {
- .main-header-box {
- &.small {
- min-height: $large-banner-height;
- }
- }
- .main-section.fit-small-header {
- height: $large-banner-height;
- }
- }
|