@charset "UTF-8";

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

:root {
  --wx-black: #000;
  --wx-grey: #bebebe;
  --wx-bg: #fff;
  --wx-gap: 18px;
  --wx-col: 454.66px;
  --wx-max: 1440px;
  --wx-pad: 20px;
  --font-sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Helvetica, Arial, sans-serif;
}


p {
  margin: 0;
  padding: 0;
}

a,
a:hover,
a:visited {
  color: var(--wx-black);
  text-decoration: none;
}

body {
  color: var(--wx-black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--wx-bg);
  font-size: 16px;
  line-height: 22px;
  min-height: 100vh;
  padding-bottom: 44px;
}

img {
  vertical-align: middle;
  max-width: 100%;
  display: block;
}

.is-hidden {
  display: none !important;
}

/* ==================== Wangxu works header ==================== */
.header,
.main,
.footer {
  width: 100%;
  max-width: var(--wx-max);
  padding-left: var(--wx-pad);
  padding-right: var(--wx-pad);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.header {
  position: relative;
  z-index: 100;
  background: var(--wx-bg);
  color: var(--wx-grey);
  height: 132px;
  padding-top: 44px;
  font-size: 16px;
  line-height: 1;
  outline: none;
  box-shadow: none;
  border-bottom: 1px solid var(--wx-bg);
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--wx-bg);
}

.header-inner {
  width: 100%;
  padding: 0;
  margin: 0;
}

.header-top {
  width: 100%;
  height: 44px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.logo {
  display: inline-block;
  color: var(--wx-black);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.logo:hover,
.logo.active {
  color: var(--wx-black);
}

.nav-main {
  display: block;
  gap: 0;
}

.nav-main a {
  float: left;
  display: inline-block;
  margin-left: 20px;
  color: var(--wx-grey);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--wx-black);
}

.header-filters {
  clear: both;
  display: flex;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: nowrap;
  width: 100%;
  font-size: 16px;
  line-height: 1;
}

.filter-group {
  display: block;
  height: 44px;
  line-height: 44px;
}

.filter-group a {
  float: left;
  display: inline-block;
  margin-left: 20px;
  color: var(--wx-grey);
  cursor: pointer;
  font-size: 16px;
  line-height: 44px;
  font-weight: 400;
  transition: none;
}

.filter-group a:hover,
.filter-group a.active:not(.is-hidden) {
  color: var(--wx-black);
}


/* ==================== Wangxu works grid ==================== */
.main {
  padding-top: 0;
  min-height: 0;
}

.page-title {
  display: none;
}

.works-grid {
  max-width: var(--wx-max);
  width: 100%;
  padding: 0 0 80px;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, var(--wx-col));
  gap: var(--wx-gap);
}

.work-card {
  display: block;
  width: var(--wx-col);
  cursor: pointer;
  opacity: 1;
  transition: none;
}

.work-card:hover {
  opacity: 1;
}

.work-card-image {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background: #f3f3f3;
}

.work-card-image img,
.work-card-image .placeholder-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 99%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  background: #f0f0f0;
  font-size: 12px;
}

.work-card-info {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: #fff;
  z-index: 10;
  display: none;
  padding: 0;
}

.work-card:hover .work-card-info {
  display: block;
}

.work-card-info p {
  font-size: 12px;
  line-height: 1.1;
  color: var(--wx-black);
}

.work-card-info p.date {
  margin-top: 20px;
}


.flash-move {
  opacity: 0;
  filter: alpha(opacity=0);
  transform: translateY(100px);
  transition: all 0.8s;
}

.flash-move.move-on {
  opacity: 1;
  filter: alpha(opacity=100);
  transform: translateY(0);
  transition: all 1s;
}

/* ==================== Detail / inner pages, aligned to target metrics ==================== */
.work-detail,
.about-page,
.contact-page,
.intro-w,
.about-w {
  width: 100%;
  max-width: var(--wx-max);
  margin: 0 auto;
  padding: 0 0 80px;
}

.work-detail-content {
  display: block;
  margin-bottom: 0;
}

.work-detail-media {
  width: calc(var(--wx-col) * 2 + var(--wx-gap));
  float: left;
  display: block;
  position: static;
  min-width: 0;
}

.work-detail-video {
  width: 100%;
  margin-bottom: var(--wx-gap);
  background: #000;
}

.work-detail-video video {
  width: 100%;
  display: block;
}

.work-detail-images {
  width: 100%;
  display: block;
  position: static;
  min-width: 0;
}

.work-detail-images .detail-img {
  width: 100%;
  margin-bottom: var(--wx-gap);
  background: #f0f0f0;
}

.work-detail-images .detail-img img {
  width: 100%;
  display: block;
}

.work-detail-images .detail-video {
  width: 100%;
  margin-bottom: var(--wx-gap);
  background: #000;
  line-height: 0;
}

.work-detail-images .detail-video video {
  width: 100%;
  height: auto;
  display: block;
}

.work-detail-info {
  float: left;
  width: var(--wx-col);
  margin-left: var(--wx-gap);
  position: static;
  font-size: 12px;
  line-height: 20px;
}

.work-detail-title-cn {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--wx-black);
  margin: 0;
}

.work-detail-title-en,
.work-detail-desc,
.work-detail-year {
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  color: var(--wx-black);
  margin: 0;
}

.work-detail-title-en,
.work-detail-year {
  color: var(--wx-grey);
}

.work-detail-desc p {
  margin-bottom: 0;
}

.work-detail-nav {
  clear: both;
  margin-left: calc(var(--wx-col) * 2 + var(--wx-gap) * 2);
  width: var(--wx-col);
  padding-top: 20px;
  border-top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 13px;
}

.work-detail-nav a {
  color: var(--wx-grey);
  font-size: 13px;
  letter-spacing: 0;
}

.work-detail-nav a:hover {
  color: var(--wx-black);
}

.intro-w .img-c {
  width: calc(var(--wx-col) * 1.5 + var(--wx-gap) / 2);
  float: left;
}

.intro-w .img-c p {
  width: 100%;
  margin-bottom: var(--wx-gap);
  text-align: center;
}

.intro-w .img-c p img {
  max-width: 100%;
}

.intro-w .txt-c {
  float: left;
  width: var(--wx-col);
  margin-left: var(--wx-gap);
}

.intro-w .txt-c p,
.about-text p,
.about-content p,
.contact-info p,
.contact-email {
  font-size: 12px;
  line-height: 20px;
  color: var(--wx-black);
  margin-bottom: 0;
}

.about-w .about-text {
  width: var(--wx-col) !important;
  max-width: var(--wx-col) !important;
}

.about-w .about-text p {
  font-size: 12px !important;
  line-height: 20px !important;
}

.about-content,
.contact-info {
  max-width: calc(var(--wx-col) * 1.5 + var(--wx-gap) / 2);
  margin-left: calc(var(--wx-col) / 2 + var(--wx-gap) / 2);
}


/* ==================== Wangxu fixed footer ==================== */
.footer {
  position: fixed;
  background-color: var(--wx-bg);
  bottom: 0;
  height: 44px;
  border-top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--wx-grey);
  font-size: 15px;
  line-height: 1;
  z-index: 90;
}

.footer a,
.footer span {
  color: var(--wx-grey);
  font-size: 15px;
}


/* ==================== Mobile menu ==================== */
.mobile-menu-btn {
  display: none;
  position: absolute;
  top: 0;
  right: 20px;
  cursor: pointer;
  height: 48px;
  padding: 18px 0 0;
  transition: all 0.4s ease;
  user-select: none;
  width: 16px;
  z-index: 12;
  background: none;
  border: 0;
}

.mobile-menu-btn span {
  background-color: var(--wx-grey);
  position: relative;
  transition: all 0.4s ease;
  width: 16px;
  height: 1px;
  display: block;
  margin: 0;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 5px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 10px;
}

/* Match target responsive breakpoints */
@media screen and (max-width: 1440px) {
  .header,
  .main,
  .footer {
    width: 100%;
    max-width: 968px;
  }

  :root {
    --wx-col: 455px;
  }

  .works-grid {
    grid-template-columns: repeat(2, var(--wx-col));
  }

  .intro-w .img-c,
  .intro-w .txt-c {
    width: var(--wx-col);
  }
}

@media screen and (max-width: 980px) {
  .header,
  .main,
  .footer {
    width: 100%;
    max-width: none;
  }

  .header {
    padding-top: 0;
    height: 48px;
  }

  .header-top {
    height: 48px;
    align-items: center;
  }

  .logo {
    width: 102px;
  }

  .nav-main {
    display: none;
  }

  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--wx-bg);
    padding: 20px;
    gap: 16px;
    z-index: 99;
  }

  .nav-main.open a {
    float: none;
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .header-filters {
    display: none;
  }

  .works-grid {
    padding: 0 0 80px;
    grid-template-columns: repeat(2, calc(50% - var(--wx-gap) / 2));
  }

  .work-card {
    width: 100%;
  }

  body {
    padding-bottom: 32px;
  }

  .footer {
    height: 32px;
    font-size: 11px;
    padding: 0 20px;
  }

  .footer a,
  .footer span {
    font-size: 11px;
  }


  .work-detail,
  .about-page,
  .contact-page,
  .intro-w,
  .about-w {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  .work-detail-media,
  .work-detail-images,
  .work-detail-info,
  .work-detail-nav,
  .intro-w .img-c,
  .intro-w .txt-c,
  .about-text,
  .about-content,
  .contact-info {
    float: none;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .work-detail-title-cn {
    font-size: 16px;
    line-height: 24px;
  }

  .work-detail-info p,
  .work-detail-title-en,
  .work-detail-desc,
  .work-detail-year,
  .intro-w .txt-c p,
  .about-text p,
  .about-content p,
  .contact-info p {
    font-size: 11px;
    line-height: 18px;
  }

}

@media screen and (max-width: 600px) {
  .main {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }

  .work-card {
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
  }
}
