/* 颜色样式 */
:root {
  --fs-tkcs-team-bg: #ffffff;
  --fs-tkcs-team-title-color: #9eccda;
  --fs-tkcs-team-text-color: #565759;
  --fs-tkcs-team-li-bg-1: #f5f6f8;
  --fs-tkcs-team-li-bg-2: #e0ebef;
  --fs-tkcs-team-li-top-bg-1: #9eccda;
  --fs-tkcs-team-li-top-bg-2: #dcc083;
  --fs-tkcs-team-li-top-color-1: #ffffff;
  --fs-tkcs-team-li-top-color-2: #ffffff;
  --fs-tkcs-team-more-bg: #565759;
  --fs-tkcs-team-more-color: #ffffff;
}

/* 主题样式 */
.fs-tkcs-team {
  position: relative;
  width: 100%;
  padding: 90px 0;
  background: var(--fs-tkcs-team-bg);
  overflow: hidden;
}

.fs-tkcs-team-main {
  position: relative;
  display: flex;
  justify-items: center;
  align-items: center;
  flex-direction: column;
  width: min(96%, 1440px);
  margin: 0 auto;
  z-index: 10;
}

.fs-tkcs-team-title {
  color: var(--fs-tkcs-team-title-color);
  text-align: center;
  font-family: Urbanist;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 40px */
  text-transform: uppercase;
}

.fs-tkcs-team-list {
  display: flex;
  /* justify-content: space-between; */
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 64px;
  padding-bottom: 32px;
  /* overflow: hidden; */
}

.fs-tkcs-team-list li {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  flex: 0 0 25%;
  overflow: hidden;
  cursor: pointer;
}

.fs-tkcs-team-list li:hover .fs-tkcs-team-img img {
  transform: scale(1.05);
}

.fs-tkcs-team-list li:nth-child(n + 5) {
  display: none;
}

.fs-tkcs-team-list.fstk-show-all li:nth-child(n + 5) {
  display: flex;
}

.fs-tkcs-team-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  z-index: 1;
}

.fs-tkcs-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s;
  z-index: 1;
}

.fs-tkcs-team-img-total {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #fff;
  font-family: 'Roboto Condensed';
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 8px;
  padding-right: 38px;

  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  transition: all 0.4s;
  z-index: 2;
}

.fs-tkcs-team-img-total::before {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 19px;
  content: '';
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.fs-tkcs-team-info {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  gap: 32px;
  z-index: 2;
  width: 100%;
  min-height: 200px;
  background: var(--fs-tkcs-team-li-bg-1);
}

.fs-tkcs-team-list li:nth-child(2n) .fs-tkcs-team-info {
  background: var(--fs-tkcs-team-li-bg-2);
}

.fs-tkcs-team-name {
  color: var(--fs-tkcs-team-text-color);
  font-family: Urbanist;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  word-break: break-word;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.fs-tkcs-team-price {
  color: var(--fs-tkcs-team-text-color);
  font-family: Rubik;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.4;
  /* height: 84px; */

  word-break: break-word;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.fs-tkcs-team-top {
  position: absolute;
  top: 0;
  left: 40px;
  padding: 4px 16px;
  transform: translateY(-50%);

  color: var(--fs-tkcs-team-li-top-color-1);
  font-family: Urbanist;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  /* 24px */
  text-transform: uppercase;

  z-index: 1;
  background: var(--fs-tkcs-team-li-top-bg-1);
}

/* 样式 B 应用于第 3、4、7、8、11、12... 个 li */
.fs-tkcs-team-list li:nth-child(4n + 3) .fs-tkcs-team-top,
.fs-tkcs-team-list li:nth-child(4n + 4) .fs-tkcs-team-top {
  /* 你的样式 B */
  background: var(--fs-tkcs-team-li-top-bg-2);
  color: var(--fs-tkcs-team-li-top-color-2);
}

.fs-tkcs-team-more {
  display: flex;
  width: 110px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;

  color: var(--fs-tkcs-team-more-bg);
  text-align: center;
  font-family: Rubik;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: capitalize;
  cursor: pointer;
}

.fs-tkcs-team-more svg {
  stroke: var(--fs-tkcs-team-more-bg);
}

.fs-tkcs-team-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

.fs-tkcs-team-modal-main {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-height: 90vh;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  animation-duration: 200ms;
}

.fs-tkcs-team-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
}

.fs-tkcs-team-modal-img-wrap {
  width: 100%;
  /* aspect-ratio: 1 / 1; */
  flex-shrink: 0;
  background: #f5f6f8;
}

.fs-tkcs-team-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 40vh;
  object-fit: cover;
}

.fs-tkcs-team-modal-body {
  flex: 1;
  padding: 32px 28px 40px;
  min-height: 200px;
  overflow-y: auto;
}

.fs-tkcs-team-modal-name {
  margin: 0 0 16px;
  color: var(--fs-tkcs-team-title-color);
  font-family: Urbanist, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.fs-tkcs-team-modal-desc {
  margin: 0;
  color: var(--fs-tkcs-team-text-color);
  font-family: Rubik, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

/* Media Query */
@media (max-width: 1000px) {
  /* 主题样式 */
  .fs-tkcs-team {
    padding: 5.63rem 0;
  }

  .fs-tkcs-team-main {
    width: 100%;
  }

  .fs-tkcs-team-title {
    font-size: 3.5rem;
  }

  .fs-tkcs-team-list {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .fs-tkcs-team-list li {
    flex: 0 0 50%;
  }

  .fs-tkcs-team-list li:hover .fs-tkcs-team-img img {
    transform: scale(1);
  }

  .fs-tkcs-team-img-total {
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 1.75rem;
    padding-left: 0.5rem;
    padding-right: 2.375rem;
    border-radius: 0.5rem;
  }

  .fs-tkcs-team-img-total::before {
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.125rem;
  }

  .fs-tkcs-team-info {
    padding: 2.5rem;
    /* padding-bottom: 7.8rem; */
    gap: 1.5rem;
  }

  .fs-tkcs-team-name {
    font-size: 2.5rem;
  }

  .fs-tkcs-team-price {
    font-size: 2rem;
    /* height: 8.4rem; */
  }

  .fs-tkcs-team-top {
    position: absolute;
    top: 0;
    left: 2.5rem;
    padding: 0.25rem 1rem;
    font-size: 1.75rem;
  }

  .fs-tkcs-team-more {
    gap: 0.3rem;
    font-size: 2rem;
  }

  .fs-tkcs-team-more svg {
    height: 0.625rem;
    width: 1.25rem;
  }

  .fs-tkcs-team-modal {
    padding: 1.5rem;
  }

  .fs-tkcs-team-modal-main {
    width: 100%;
    max-height: 88vh;
  }

  .fs-tkcs-team-modal-close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .fs-tkcs-team-modal-body {
    padding: 2.5rem 2rem 3rem;
  }

  .fs-tkcs-team-modal-name {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .fs-tkcs-team-modal-desc {
    font-size: 2rem;
  }
}
