@charset "UTF-8";

/* 团队案例页 (Figma 605:1246) 专属样式。
   顶部 3D 团队卡轮播复用首页 .team-coverflow 组件（home.css + team-carousel.js）。
   此处补：英雄区背景、团队列表。还原基准 Figma 1920 画板。 */

.teams-page {
  position: relative;
  z-index: 1;
  padding-top: 1px;
}

/* —— 英雄区 —— */
.teams-hero {
  position: relative;
  z-index: 3;                /* 抬到轮播粒子背景(z-index:0)之上,避免标题被遮挡 */
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding-top: clamp(132px, 18vw, 200px);
  padding-inline: var(--page-gutter);
}

.teams-eyebrow {
  margin: 0;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.teams-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.875rem, 5.6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.0375em;
}

.teams-sub {
  margin: 0;
  max-width: 517px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.4;
}

/* —— 轮播区背景 —— */
.teams-carousel {
  position: relative;
  margin-top: -40px;
}

.teams-carousel__bg {
  position: absolute;
  left: 50%;
  top: -60px;
  width: 1717px;
  max-width: none;
  height: 960px;
  transform: translateX(-50%);
  object-fit: cover;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.teams-carousel .team-coverflow {
  position: relative;
  z-index: 2;
}

/* —— 团队列表 —— */
.teams-list {
  position: relative;
  z-index: 2;
  width: min(1246px, calc(100% - 2 * var(--page-gutter)));
  margin: clamp(64px, 9vw, 120px) auto clamp(80px, 11vw, 140px);
}

.teams-list__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 原结构为 <hr>·行·<hr>·行…·<hr>（首尾各一条线，行间一条线），且每个 flex 子项
   之间都有 gap=clamp(24px,3.5vw,40px)。即每行上下各留一个 gap、分隔线居中。
   列表化后用：每项上下各 padding 一个 gap，把分隔线作为项的 border-top，
   末项再补 border-bottom，以 1:1 还原原有间距与分隔线位置。 */
.team-row-item {
  padding: clamp(24px, 3.5vw, 40px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.team-row-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.team-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 50px;
  color: #fff;
  transition: opacity 0.35s ease;
}

/* play 三角：默认隐藏，焦点态淡入并占位 */
.team-row__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 20px;
  flex: none;
  margin-right: -34px;
  opacity: 0;
  transform: translateX(-8px);
  transition: width 0.35s ease, margin 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.team-row__play img {
  width: 20px;
  height: 20px;
  max-width: none;
}

.team-row__name {
  margin: 0;
  font-size: clamp(1.375rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.9375px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.35s ease, transform 0.35s ease;
}

.team-row__cred {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  line-height: 1.3;
  transition: color 0.35s ease;
}

.team-row__btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: background 0.2s ease, transform 0.35s ease, opacity 0.35s ease;
}

.team-row__btn img {
  width: 16px;
  height: 16px;
}

/* 列表项可整行点击 */
a.team-row {
  text-decoration: none;
}

/* 激活行预览缩略图：默认隐藏，焦点态淡入 */
.team-row__thumb {
  position: absolute;
  right: 96px;
  top: 50%;
  width: 386px;
  height: 218px;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-50%) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 6;
}

/* ===== 焦点态：默认首行(is-active)，或鼠标悬停的行 ===== */
.team-row.is-active .team-row__play,
.team-row:hover .team-row__play {
  width: 20px;
  margin-right: 0;
  opacity: 1;
  transform: translateX(0);
}

.team-row.is-active .team-row__name,
.team-row:hover .team-row__name {
  color: #fff;
}

.team-row.is-active .team-row__cred,
.team-row:hover .team-row__cred {
  color: rgba(255, 255, 255, 0.7);
}

.team-row.is-active .team-row__btn,
.team-row:hover .team-row__btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.team-row.is-active .team-row__btn:hover,
.team-row:hover .team-row__btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.team-row.is-active .team-row__thumb,
.team-row:hover .team-row__thumb {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* 鼠标进入列表时：默认行让位给被悬停的行 */
.teams-list__inner:hover .team-row {
  opacity: 0.55;
}

.teams-list__inner:hover .team-row:hover {
  opacity: 1;
}

/* 悬停其他行时，关闭默认首行的焦点态 */
.teams-list__inner:hover .team-row.is-active:not(:hover) .team-row__play {
  width: 0;
  margin-right: -34px;
  opacity: 0;
  transform: translateX(-8px);
}

.teams-list__inner:hover .team-row.is-active:not(:hover) .team-row__name {
  color: rgba(255, 255, 255, 0.55);
}

.teams-list__inner:hover .team-row.is-active:not(:hover) .team-row__cred {
  color: rgba(255, 255, 255, 0.4);
}

.teams-list__inner:hover .team-row.is-active:not(:hover) .team-row__btn {
  opacity: 0;
  transform: translateY(8px) scale(0.9);
}

.teams-list__inner:hover .team-row.is-active:not(:hover) .team-row__thumb {
  opacity: 0;
  transform: translateY(-50%) scale(0.96);
}

/* 平板及以下:隐藏预览图;触屏无 hover,故箭头常显、文字常亮、焦点三角隐藏 */
@media (max-width: 1100px) {
  .team-row__thumb {
    display: none;
  }
  .team-row__play {
    display: none;
  }
  .team-row__btn {
    opacity: 1;
    transform: none;
  }
  .team-row__name {
    color: #fff;
  }
  .team-row__cred {
    color: rgba(255, 255, 255, 0.65);
  }
}

/* 手机端:左侧「名称 / 简介」两行成块,箭头固定在右侧并垂直居中。
   两栏网格(文字 | 箭头),非一栏式;箭头与文字间留 16px,边距由 --page-gutter 控制。 */
@media (max-width: 768px) {
  .team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name btn"
      "cred btn";
    column-gap: 16px;
    row-gap: 6px;
    align-items: center;
    min-height: 0;
    padding: 6px 0;
  }
  .team-row__name {
    grid-area: name;
  }
  .team-row__cred {
    grid-area: cred;
  }
  .team-row__btn {
    grid-area: btn;
    align-self: center;
    margin: 0;
    width: 44px;
    height: 44px;
  }
}
