main.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. @use "./fonts.scss";
  2. @use "./fix.scss";
  3. @use "./components.scss";
  4. @use "./colors.scss" as *;
  5. body,
  6. html {
  7. font-size: 16px;
  8. font-weight: normal;
  9. margin: 0;
  10. padding: 0;
  11. color: $text-color;
  12. }
  13. main {
  14. position: relative;
  15. }
  16. //Header
  17. $large-banner-height: 600px;
  18. $small-banner-height: 445px;
  19. .main-header-box {
  20. position: relative;
  21. width: 100%;
  22. min-height: $large-banner-height;
  23. background-color: $primary-color;
  24. &.small {
  25. min-height: $small-banner-height;
  26. }
  27. img {
  28. position: absolute;
  29. top: 0;
  30. left: 0;
  31. width: 100%;
  32. height: 100%;
  33. object-fit: cover;
  34. z-index: 0;
  35. }
  36. }
  37. .main-center-text {
  38. position: absolute;
  39. top: 50%;
  40. left: 50%;
  41. transform: translate(-50%, -50%);
  42. text-align: center;
  43. }
  44. .main-header-title {
  45. font-family: SourceHanSerifCNBold;
  46. color: $text-color-light;
  47. h1 {
  48. font-size: 3rem;
  49. margin: 0;
  50. margin-bottom: 16px;
  51. }
  52. h2 {
  53. font-size: 2.5rem;
  54. margin: 0;
  55. margin-bottom: 16px;
  56. }
  57. p {
  58. font-size: 1.5rem;
  59. margin: 0;
  60. margin-bottom: 24px;
  61. }
  62. }
  63. .main-header-tab {
  64. position: absolute;
  65. bottom: 0;
  66. left: 0;
  67. right: 0;
  68. .list {
  69. margin: 0 auto;
  70. max-width: $selection-max-width;
  71. background-color: $box-dark-trans-color2;
  72. backdrop-filter: blur(5px);
  73. display: flex;
  74. flex-direction: row;
  75. align-items: center;
  76. justify-content: flex-start;
  77. > div {
  78. min-width: 300px;
  79. height: 56px;
  80. color: $text-color-light;
  81. text-align: center;
  82. line-height: 56px;
  83. &.active {
  84. background-color: $primary-color;
  85. height: 60px;
  86. }
  87. }
  88. }
  89. }
  90. //Utitles
  91. .main-background {
  92. background-size: 100% auto;
  93. background-repeat: repeat;
  94. background-position: center top;
  95. &-type0 {
  96. background-image: url('@/assets/images/BgLong.png');
  97. }
  98. &-type1 {
  99. background-image: url('@/assets/images/Bg1.png');
  100. }
  101. &-type2 {
  102. background-image: url('@/assets/images/Bg2.png');
  103. }
  104. &-type3 {
  105. background-image: url('@/assets/images/index/IntrodRight.png');
  106. }
  107. }
  108. //Boxs
  109. .main-news-box {
  110. position: relative;
  111. padding: 24px;
  112. background-color: #fff;
  113. background-size: cover;
  114. background-position: center;
  115. width: 400px;
  116. height: 270px;
  117. margin-right: 24px;
  118. &::before {
  119. content: '';
  120. display: block;
  121. position: absolute;
  122. right: 0;
  123. left: 0;
  124. bottom: 0;
  125. height: 120px;
  126. background: linear-gradient(
  127. 180deg,
  128. rgba(#000, 0) 0%,
  129. rgba(#000, 0.5) 100%
  130. )
  131. }
  132. .desc {
  133. position: absolute;
  134. right: 0;
  135. left: 0;
  136. bottom: 0;
  137. display: flex;
  138. flex-direction: column;
  139. padding: 24px;
  140. color: #fff;
  141. h5 {
  142. font-family: SourceHanSerifCNBold;
  143. font-size: 1.1rem;
  144. margin-bottom: 5px;
  145. }
  146. p {
  147. font-size: 0.8rem;
  148. margin: 0;
  149. }
  150. }
  151. }
  152. //Section
  153. .main-section {
  154. position: relative;
  155. padding: 120px 100px;
  156. &.absolute {
  157. position: absolute;
  158. top: 0;
  159. left: 0;
  160. right: 0;
  161. z-index: 10;
  162. }
  163. &.fit-small-header {
  164. height: $small-banner-height;
  165. }
  166. &.light {
  167. color: $text-color-light;
  168. }
  169. h2 {
  170. display: flex;
  171. flex-direction: row;
  172. align-items: center;
  173. margin: 0;
  174. font-size: 2rem;
  175. font-family: SourceHanSerifCNBold;
  176. &::after, &::before {
  177. content: '';
  178. display: inline-block;
  179. width: 20px;
  180. height: 20px;
  181. background-size: 20px;
  182. background-image: url('@/assets/images/TitleMiniHeader.png');
  183. }
  184. &::after {
  185. margin-left: 10px;
  186. }
  187. &::before {
  188. margin-right: 10px;
  189. }
  190. }
  191. .content {
  192. max-width: $selection-max-width;
  193. margin: 0 auto;
  194. .title {
  195. display: flex;
  196. flex-direction: row;
  197. align-items: center;
  198. justify-content: center;
  199. margin-bottom: 40px;
  200. &.left-right {
  201. justify-content: space-between;
  202. }
  203. .small-more {
  204. display: flex;
  205. flex-direction: row;
  206. align-items: center;
  207. font-size: 0.9rem;
  208. color: $text-second-color;
  209. cursor: pointer;
  210. -webkit-user-select: none;
  211. user-select: none;
  212. img {
  213. width: 80px;
  214. margin-left: 20px;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. //
  221. @media (max-width: 1280px) {
  222. .main-section {
  223. padding: 100px 80px;
  224. }
  225. }
  226. @media (max-width: 1024px) {
  227. .main-section {
  228. padding: 80px 60px;
  229. }
  230. .main-header-tab {
  231. .list {
  232. > div {
  233. min-width: initial;
  234. flex: 1;
  235. }
  236. }
  237. }
  238. }
  239. @media (max-width: 768px) {
  240. .main-section {
  241. padding: 80px 40px;
  242. }
  243. }
  244. @media (max-width: 425px) {
  245. .main-section {
  246. padding: 80px 20px;
  247. }
  248. }
  249. @media (max-width: 500px) {
  250. .main-header-box {
  251. &.small {
  252. min-height: $large-banner-height;
  253. }
  254. }
  255. .main-section.fit-small-header {
  256. height: $large-banner-height;
  257. }
  258. }