:root {
  --gradient-blue: #9EE8FF;
  --gradient-green: #D7FF39;
  --primary-light: #FFFFFF;
  --secondary-light: #F0F0F0;
  --primary-dark: #000000;
  --secondary-dark: #888888;

  --primary-color: #ffffff;
  --primary-aux-color: rgb(207, 217, 222);
  --primary-gold-color: rgb(135, 117, 77);
  --primary-silver-color: rgb(141, 145, 148);
  --secondary-color: #000000;
  --primary-var-color: #f0f0f0;
  --on-primary-color: #d7ff39;
  --on-secondary-color: #9ee8ff;
}

.bold {
  font-weight: 700;
}

b, .semibold {
  font-weight: 600;
}

.medium {
  font-weight: 500;
}

.dim {
  color: var(--secondary-dark);
}

html[lang="en"] h1 {
  font-weight: 600;
  font-size: 32px;
  margin: 0 2rem;
}

h2 {
  font-size: 20px;
  margin: 0 2rem;
}

p,
.text {
  font-size: 14px;
  margin-bottom: 0;
}

.large.text {
  font-size: 18px;
}

html[lang="zh"] h1 {
  font-weight: 700;
  font-size: 32px;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

.light-bg-color {
  background-color: var(--primary-light);
}

.dark-bg-color {
  background-color: var(--primary-dark);
}

.primary-bg-color {
  background-color: var(--primary-color);
}

.secondary-bg-color {
  background-color: var(--secondary-color);
}


h4 {
  letter-spacing: .1rem;
}

@font-face {
  font-family: sora;
  src: url(/libs/external/Sora-VariableFont_wght.ttf) format("truetype");
}

/* @font-face {
  font-family: noto-sans-sc;
  src: url(/libs/external/NotoSansSC-VariableFont_wght.ttf) format("truetype");
} */

body {
  margin: 0;
  min-height: 100vh;

  /* font-family: sora, 'Noto Sans SC', noto-sans-sc */
  font-family: sora, 'Noto Sans SC'
}

.none {
  display: none;
}

.no-overflow {
  overflow: hidden;
}

.container {
  max-width: min(1500px, 80%);
}

.center-hbox {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-vbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sidebyside {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header {
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: left;
}

.docs-section {
  border-top: 1px solid #eee;
  padding: 4rem 0;
  margin-bottom: 0;
}


.image {
  text-align: center;
}

b.highlight {
  background-color: #eeffee;
}

#toast {
  visibility: hidden;
  background-color: var(--primary-dark);
  color: var(--primary-light);
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  margin: 20px;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
}

/* Show the toast when the "show" class is added */
#toast.show {
  visibility: visible;
  /* Show the toast */
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

/* Animations to fade the toast in and out */
@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.spacer {
  height: 10px;
  background: #fff;
}

.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  align-items: center;
  z-index: 42;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  width: 90%;
  height: 8rem;
}

.navbar-container img {
  max-height: 8rem;
}

.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 2px;
  align-items: center;
}

.navbar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li.navbar-may-dropdown {
  display: inline-block;
  position: relative;
}

li.navbar-may-dropdown:hover .navbar-dropdown {
  display: block;
}

.navbar-dropdown > li {
  margin: 0;
  padding: 0;
}

.navbar-dropdown > li > a {
  line-height: normal;
  padding: 0;
}

a.navbar-link-base {
  color: var(--secondary-color);
  text-decoration: none;
}

a.navbar-link {
  padding: 4px 0px;
  letter-spacing: .2rem;
  line-height: 6.5rem;
  margin-right: 3.6rem;
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.5s ease;
}

a.active-navbar-link {
  border-bottom: 2px solid var(--secondary-color);
}

a.navbar-link:hover {
  transition: all 0.5s ease;
  border-bottom: 2px solid var(--secondary-color);
}

.navbar-links:hover a.navbar-link:not(:hover) {
  border-bottom: none;
  opacity: 0.5;
}

a.icon-link {
  color: inherit;
  text-decoration: none;
  align-items: center;
}


h3.text {
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

h3.text-center {
  text-align: center;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.simple-spacer {
  padding-bottom: 3rem;
}

.simple-follow-spacer {
  margin-top: 2rem;
  padding-top: 1rem;
}

/* [data-i18n]::before {
  content: attr(data-i18n);
  display: none;
} */

:not([lang-loaded]) [data-i18n] {
  visibility: hidden;
}

[lang-loaded] [data-i18n] {
  visibility: visible;
}

a.common-link:hover {
  font-weight: bold;
  text-decoration: underline;
}

a.common-link::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  margin-left: 4px;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

a.common-link[href^="/"]::after {
  background-image: url(/assets/misc-pics/ilink.png);
}

a.common-link[href^="http"]::after {
  background-image: url(/assets/misc-pics/olink.png);
}

.main-default-margin {
  margin-top: 16rem;
}

.main-content {
  min-height: 70vh;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

/* main page */
.page {
  height: 100vh;
}

.fit-page {
  min-height: 20vh;
  max-height: 150vh;
  max-width: 100%;
  height: fit-content;
}

.two.page {
  min-height: 120vh;
  max-height: 250vh;
  height: auto;
}


/* main section */
.primary.page {
  background-image: url('/assets/gensi-w-trans.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.main-logo {
  width: 8rem;
  aspect-ratio: auto;
}

.main-gallery {
  margin: 8rem 0;
  width: 85%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
}

.main-page-content {
  width: 80%;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 1px;
}

div.main-page-content {
  width: 90%;
  margin-top: 2rem;
  font-size: 24px;
  margin-bottom: 8rem;
}

.main-inner {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  width: 100%;
}

.main-overview {
  background-color: var(--secondary-light);
  /* padding-top: 20vh; */
  /* animation: fadein 2s ease; */
}

.main-overview-img {
  width: 100%;
  height: auto;
  aspect-ratio: initial;
}

/* main block */
.main-block {
  width: min(90%, 2400px);
  margin: 4rem 0;
}

.main-block-more {
  border: 2px solid var(--primary-dark);
  padding: 1rem 0;
  margin: 0;
  margin-top: 2rem;
}

.main-block-more:hover {
  background-color: var(--primary-dark);
  color: var(--primary-light);
}

.main-research-bg {
  /* gradient green -> blue */
  background: linear-gradient(to right, var(--gradient-green), var(--gradient-blue));
}


/* main.block.news */
.main-block-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 4rem;
}

.main-block-news-item {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  width: 100%;
}

.main-block-news-img-container {
  /* background-color: var(--gradient-blue); */
}

.main-block-news-img {
  width: 100%;
  aspect-ratio: 7/4;
}

.main-block-news-img:hover {
  opacity: 0.8;
  cursor: pointer;
}


.main-block-news-title {
  margin: 2rem 0;
  letter-spacing: 1px;
  font-size: 19px;
}

.main-block-news-date {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--secondary-dark)
}

/* main.block.research */
.main-block-research-item {
  width: 100%;
  /* height: 24rem; */
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin: 3rem 0;
  background-color: var(--primary-light);
}

.main-block-research-img {
  max-width: 100%;
  max-height: 20rem;
  /* height: min(100%, 20rem, fit-content); */
  object-fit: scale-down;
  overflow: hidden;
}

.main-block-research-title {
  margin: 1rem 0;
}

.main-block-research-content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 2rem 4rem;
  padding-right: 12rem;
}

.main-block-research-text {
  height: 11rem;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4rem;
}

/* main.block.follow */
.main-block-follow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-top: 4rem;
}

.main-block-follow-item {
  background-color: var(--secondary-light);
  padding: 4rem;
}

.main-block-follow-img {
  border-radius: 1rem;
  width: 100%;
  height: 36rem;
  margin-top: 4rem;
  aspect-ratio: initial;
  object-fit: scale-down;
}

.main-block-follow-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  margin-right: 8px;
}

.main-block-follow-button {
  background-color: var(--primary-dark);
  color: var(--primary-light);
  padding: 0 1rem;
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 20px;
}

.main-block-follow-header {
  margin-bottom: 2rem;
}

.main-block-follow-post {
  font-size: 16px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}


/* news.item */
.news-w-item {
  width: 100%;
  /* height: 19rem; */
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--primary-dark);
}

.news-w-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  overflow: hidden;
}

.news-w-text {
  margin: 1rem 0;
  /* height: 5rem; */
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
