/* @import url("https://use.typekit.net/gos5yuf.css"); */
@import url("https://cdn.zddim.com/asset/font/my-font.css");

/* #全局清除内外边距开始 */
* {
  padding: 0;
  margin: 0;
  line-height: 1.5em;
}
/* #全局清除内外边距结束 */

/* #全局字体设置开始 */
html {
  font-size: 10px;
  font-family: indivisible, sans-serif;
  scroll-behavior: smooth;
}

/* #清除图片默认边距，否则图片会出现多余的边距 */
video,
img {
  vertical-align: middle;
}
a video,
img {
  border: 0 none;
}

/* 框架 */

.container {
  width: 92%;
  /* max-width: 1920px; */
}
.container-full {
  width: 100%;
}
/* --------------------------------------------- */

/* #顶部导航 */
header {
  display: flex;
  justify-content: center;
  background-image: linear-gradient(180deg, #e5e5e8 0%, #ffffff 100%);
}

.nav {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* .nav-l {
  font-size: 3.8rem;
  font-weight: 300;
  display: flex;
} */

.nav-l img {
  height: 3rem;
}

.nav-r {
  display: flex;
  font-size: 2.4rem;
  font-weight: 300;
}

.nav-r-active {
  font-weight: 600;
}

.nav-r p {
  margin-left: 5rem;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  transform: perspective(1px) translateZ(0);
  cursor: pointer;
  text-decoration: none;
  color: #000000;
}

.nav-r p::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  background: #000000;
  height: 2px;
  transition-property: right;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}

.nav-r p:active:before,
.nav-r p:focus:before,
.nav-r p:hover:before {
  right: 0;
}

.nav-r a:active,
.nav-r a:visited,
.nav-r a:link {
  color: #000000;
  text-decoration-line: none;
}

/* --------------------------------------------- */

/* #首页主要内容开始 */

.home-all {
  display: flex;
  align-items: center;
  margin-top: 8rem;
  margin-bottom: 8rem;
}

/* ##首页左侧内容开始 */
.home-text {
  width: 90%;
}

.home-text h1 {
  font-size: 4rem;
  font-weight: 600;
  line-height: 150%;
  /* margin-bottom: 20px; */
  /* background-color: antiquewhite; */
}

.home-text p {
  font-size: 3.2rem;
  font-weight: 300;
}

/* ###首页查看更多功能 */
.home-btn {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  transform: perspective(1px) translateZ(0);
  cursor: pointer;
  text-decoration: none;
  color: #000000;
  /* background-color: #2d2d2d; */
}

.home-btn:before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  background: #000000;
  height: 2px;
  transition-property: right;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}
.home-btn:hover:before,
.home-btn:focus:before,
.home-btn:active:before {
  right: 0;
}

.home-btn:active {
  /* transform: scale(0.96); */
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

/* ####查看更多icon */
.home-btn-icon {
  margin-left: 1rem;
  width: 2rem;
  height: 4rem;
}

.home-btn:hover .home-btn-icon,
.home-btn:focus .home-btn-icon,
.home-btn:active .home-btn-icon {
  animation-name: home-btn-icon;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
}
@keyframes home-btn-icon {
  0%,
  50%,
  100% {
    transform: translateY(0);
  }
  25%,
  75% {
    transform: translateY(5px);
  }
}
/* --------------------------------------------- */
/* 首页作品模块 */

.work {
  z-index: 100;
  display: flex;
  justify-content: center;
  background-color: rgb(255, 255, 255);
}

.work-block {
  display: flex;
  justify-content: space-between;
  margin: 6% 0;
}

.work h2 {
  font-size: 3.2rem;
  margin-top: 1.2rem;
  font-weight: 600;
}

.work p {
  font-size: 2.2em;
  font-weight: 300;
  color: #2d2d2d;
}

.work-img {
  background-color: rgb(172, 171, 182);
  overflow: hidden;
}

.work img,
.work video {
  width: 100.2%;
  height: 100.2%;
  animation-timing-function: ease-out;
  transition-duration: 0.4s;
  object-fit: cover;
}

.work img:hover,
.work video:hover {
  transform: scale(1.05);
  cursor: zoom-in;
}

.work img:active,
.work video:active {
  transform: scale(1);
}

.work-item-56 {
  width: 54%;
}

.work-item-40 {
  width: 42%;
}

.work-item-48 {
  width: 48%;
}

.work-item-30 {
  width: 30.67%;
}
/* --------------------------------------------- */

/* 底部 */

footer {
  /* margin: 6%; */
  display: flex;
  justify-content: center;
}

.footer_hr {
  width: 100%;
  height: 2px;
  background-color: rgb(0, 0, 0);
  margin-top: 6rem;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12rem;
  margin-top: 10rem;
}

.footer-info a:active,
.footer-info a:visited,
.footer-info a:link {
  color: #000000;
}

.footer-info a:hover {
  opacity: 0.5;
  transition-duration: 0.4s;
}

.footer-info-r {
  text-align: right;
}

.footer-info h2 {
  font-size: 3.2rem;
  font-weight: 600;
}

.footer-info p {
  font-size: 2.2rem;
  font-weight: 300;
}
/* --------------------------------------------- */

/* 弹出页外观 */
.iframe-lightbox,
.iframe-lightbox .backdrop {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.iframe-lightbox {
  display: none;
  position: fixed;
  opacity: 0;
  /* -webkit-transition: opacity 0.2s ease; */
  transition: opacity 0.2s ease-in-out;
  z-index: 999999;
}

/* 背景颜色 */
.iframe-lightbox .backdrop {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: default;
  transition-duration: 1.6s;
  transition-timing-function: ease;
}

/* .iframe-lightbox .backdrop::before {
  position: fixed;
  content: "";
  width: 100vw;
  height: calc(100vh - 44px);
  top: 44px;
  cursor: default;
  animation: iframe-open 0.4s ease-out;
  border-radius: 6px 6px 0 0;
} */

/* 位置 */
.iframe-lightbox .content-holder {
  width: 100vw;
  animation: iframe-open 0.8s ease;
}

.iframe-lightbox .content {
  height: 100vh;
  position: relative;
  top: 44px;
}

@keyframes iframe-open {
  0% {
    margin-top: 100vh;
    scale: 0.95;
  }

  30% {
    margin-top: -12px;
  }

  100% {
    margin-top: 0;
    scale: 1;
  }
}

.iframe-lightbox .content > .body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  border-radius: 10px 10px 0 0;
}

.iframe-lightbox .content > .body .half-circle-spinner,
.iframe-lightbox .content > .body .half-circle-spinner * {
  box-sizing: border-box;
}

/* loading */

.iframe-lightbox .content > .body .half-circle-spinner {
  width: 50px;
  height: 50px;
  margin: 0;
  position: fixed;
  top: 52%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

.iframe-lightbox .content > .body .half-circle-spinner .circle {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  border: 4px solid rgba(0, 0, 0, 0.03);
}

.iframe-lightbox .content > .body .half-circle-spinner .circle.circle-1 {
  border-top-color: rgba(0, 0, 0, 0.2);
  animation: half-circle-spinner-animation 1s infinite;
  animation-timing-function: ease;
}

@keyframes half-circle-spinner-animation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.iframe-lightbox .content > .body.is-loaded .half-circle-spinner {
  display: none;
}

/* 框架显示 */

.iframe-lightbox iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px 6px 0 0;
}

.iframe-lightbox.is-showing {
  display: block;
}

.iframe-lightbox.is-opened {
  opacity: 1;
}

/* 关闭按钮 */

.iframe-lightbox .btn-close {
  position: fixed;
  top: 7px;
  right: 7px;
  background-color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.iframe-lightbox .btn-close:hover {
  transform: rotate(90deg);
}

.iframe-lightbox .btn-close:before,
.iframe-lightbox .btn-close:after {
  content: "";
  width: 2px;
  height: 14px;
  position: absolute;
  background-color: rgb(0, 0, 0);
}

.iframe-lightbox .btn-close:before {
  transform: rotate(45deg);
}

.iframe-lightbox .btn-close:after {
  transform: rotate(-45deg);
}

body.iframe-lightbox--open {
  overflow: hidden;
}

/* --------------------------------------------- */

/* 详情页面内的 css */

.details-body {
  width: 100vw;
}

.details-info {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 4%;
  margin-bottom: 5%;
}

.details-text {
  width: 92%;
  padding-right: 20vw;
  box-sizing: border-box;
}

.details-list2 {
  display: flex;
  /* margin-top: 20px; */
  /* background-color: aliceblue; */
}

.details-list2 div {
  margin-right: 15rem;
}

.details-body h1 {
  font-size: 4rem;
  font-weight: 600;
  /* background-color: antiquewhite; */
}

.details-body h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 3rem;
  /* background-color: aqua; */
}

.details-body p {
  font-size: 2.2rem;
  font-weight: 300;
  /* margin-top: 1rem; */
  /* background-color: antiquewhite; */
}

.details-img img,
.details-img video,
.details-img iframe {
  margin-bottom: 12px;
}

.details-img-2pic {
  display: flex;
  justify-content: space-between;
}

.details-img-2pic img,
.details-img-2pic video {
  width: calc(50vw - 6px);
  max-width: calc(50vw - 6px);
}

.details-img iframe {
  width: 100vw;
  height: 1000px;
  border: none;
  font-size: 0;
  vertical-align: middle;
}

.details-body img {
  width: 100%;
}

.details-body video {
  width: 100%;
}

.details-footer {
  text-align: center;
  margin: 10% 0;
}

.details-footer p {
  font-size: 2.2rem;
  font-weight: 600;
}

/* --------------------------------------------- */
/* 其他尺寸适配 */

@media (max-width: 960px) {
  html {
    font-size: 7px;
  }

  .nav {
    height: 120px;
  }

  .home-text {
    width: 100%;
  }

  .work-item-56,
  .work-item-40,
  .work-item-48 {
    width: 48%;
  }

  .work-item-30 {
    width: 30.67%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 6px;
  }

  .nav {
    height: 60px;
    margin-top: 6%;
  }

  .nav-l img {
    height: 3.6rem;
    margin-bottom: 8px;
  }

  .nav-r {
    font-size: 2.6rem;
  }

  .nav-r p {
    margin-left: 4rem;
  }

  .home-all {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }

  .home-text {
    width: 100%;
  }

  .home-text h1 {
    font-size: 3.4rem;
  }

  .home-btn {
    display: none;
  }

  .work-block {
    display: block;
    margin: 8% 0;
  }

  .work h2 {
    font-size: 3rem;
  }

  .work p {
    font-size: 2.4rem;
  }

  .work-item-56,
  .work-item-40,
  .work-item-48,
  .work-item-30 {
    width: 100%;
    margin: 8% 0;
  }

  .details-info {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 6%;
    margin-bottom: 12%;
  }

  .details-text {
    padding-right: 0;
  }

  .details-list2 {
    display: block;
  }

  .details-list2 div {
    width: 100%;
  }

  .details-body h1 {
    font-size: 3.4rem;
  }

  .details-body h2 {
    font-size: 2.4rem;
    font-size: 2.4rem;
  }

  .details-body p {
    font-size: 2.4rem;
  }

  .details-img img,
  .details-img video,
  .details-img iframe {
    margin-bottom: 8px;
  }

  .details-img-2pic img,
  .details-img-2pic video {
    width: calc(50vw - 4px);
    max-width: calc(50vw - 4px);
  }
  .details-img iframe {
    height: 460px;
  }

  .details-footer {
    margin: 10% 0 30% 0;
  }
}

/* @media (max-aspect-ratio: 5/3) {
  
} */

/* @media (max-width: 768px), (max-aspect-ratio: 13/10) {
  
} */

/* --------------------------------------------- */
