@font-face {
  font-family: "Louize Display Trial";
  src: url("../font/Louize Display trial.ttf") format("truetype");
}
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #eee9e1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 48px;
  padding-right: 66px;
}

nav div,
nav img {
  margin-left: 30px;
  font-family: Roboto;
  font-size: 34px;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0em;
  color: black;
  cursor: pointer;
}

nav img {
  height: 34px;
  width: auto;
}

nav div:first-child,
nav img:first-child {
  margin-left: 0;
}

.hero {
  padding-left: 188px;
  margin-top: 80px;
}

.hero-title {
  display: flex;
  align-items: center;
  font-family: "Louize Display Trial";
  font-size: 171px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;
}

/* 当窗口宽度小于1728px时切换为grid布局 */
@media screen and (max-width: 1728px) {
  .hero-title {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    font-family: "Louize Display Trial";
    font-size: 171px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
  }
}

.hero-title img {
  height: 171px;
  margin: 0 20px;
}
.hero-subtitle {
  font-family: "HelveticaExt-Normal", Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;
  margin-top: 0px;
}
/* 作品区域样式 */
.work {
  margin-left: 180px;
  margin-right: 203px;
  margin-top: 96px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px;
}

.work-item img {
  width: 193px;
  height: 193px;
  border-radius: 14px;
  object-fit: cover;
}

.work-item-title {
  font-family: "HelveticaExt-Normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;
  color: #000000;
  margin-top: 7px;
}

.work-item-desc {
  font-family: "HelveticaExt-Normal", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;
  color: #000000;
  margin-top: 7px;
}
/* 当窗口宽度小于1900px时切换为自适应grid布局 */
@media screen and (max-width: 1900px) {
  .work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(193px, 1fr));
    grid-auto-rows: auto;
    gap: 30px;
    width: 100%;
    justify-content: center;
  }

  .work-item {
    justify-self: center;
  }
}

.loading-num {
  font-family: Roboto Flex;
  font-size: 100px;
  font-weight: 500;
  line-height: normal;
  color: #f03d4e;
  position: absolute;
  bottom: 20px;
  right: 20px;
}
.loading-color {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
}
