/**
 * 云蜗智能 - 关于我们 - 区域六：团队介绍 (Team Introduction)
 * 3D 层叠无限轮播样式（舒展灵动版：扩大间距、回弹缓动、三级层次、双层阴影与响应式换页按钮）
 */

.about-team {
  background-color: #ffffff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.about-team__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.about-team__subtitle {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-main, #1a1a1a);
  margin-bottom: 8px;
}

.about-team__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-main, #1a1a1a);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* 轮播外层区域 */
.about-team__carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  user-select: none;
  touch-action: pan-y;
  outline: none;
}

/* 换页导航按钮：默认在视口 >= 1200px 时隐藏 */
.about-team__nav {
  display: none;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 168, 133, 0.35);
  color: var(--brand-teal, #00a885);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 250ms ease,
              color 250ms ease,
              border-color 250ms ease,
              transform 250ms ease,
              box-shadow 250ms ease;
}

.about-team__nav--prev {
  left: 20px;
}

.about-team__nav--next {
  right: 20px;
}

.about-team__nav svg {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 200ms ease;
}

@media (hover: hover) {
  .about-team__nav:hover {
    background-color: var(--brand-teal, #00a885);
    color: #ffffff;
    border-color: var(--brand-teal, #00a885);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 168, 133, 0.3), 0 12px 28px rgba(0, 0, 0, 0.18);
  }
}

.about-team__nav:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.about-team__nav:focus-visible {
  outline: 2px solid var(--brand-teal, #00a885);
  outline-offset: 3px;
}

/* 卡片容器：默认动画时长定义在父级 */
.about-team__cards {
  --team-motion-duration: 600ms;

  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 单个团队卡片：继承父级 --team-motion-duration，使用回弹缓动曲线 */
.about-team__card {
  --x-offset: 0px;
  --scale: 1;
  --z-index: 1;
  --opacity: 1;

  position: absolute;
  left: 50%;
  top: 50%;
  width: 290px;
  transform: translate(-50%, -50%) translateX(var(--x-offset)) scale(var(--scale));
  z-index: var(--z-index);
  opacity: var(--opacity);
  transition: transform var(--team-motion-duration) cubic-bezier(0.22, 0.85, 0.32, 1.08),
              opacity var(--team-motion-duration) ease-out;
  cursor: pointer;
  will-change: transform, opacity;
}

/* 边缘卡片跨端跳变类：瞬间重置，防止横穿中心 */
.about-team__card.is-wrapping {
  transition: none !important;
}

/* 卡片内部包装层：专职鼠标悬停纵向上抬，与外层轮播位移彻底分离 */
.about-team__card-inner {
  width: 100%;
  transform: translateY(0px);
  transition: transform 250ms ease-out;
}

.about-team__card:hover .about-team__card-inner {
  transform: translateY(-10px);
}

/* 五个相对视觉档位：桌面端扩大横向间距 (±285px / ±520px)，增加亮度和双层阴影定义 */

/* 正中心 (Pos 0) */
.about-team__card[data-pos="0"] {
  --x-offset: 0px;
  --scale: 1;
  --z-index: 5;
  --opacity: 1;
  --image-brightness: 1;
  --image-saturation: 1;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.14), 0 22px 48px rgba(0, 0, 0, 0.22);
  --hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), 0 28px 56px rgba(0, 0, 0, 0.25);
}

/* 左右相邻 (Pos -1 & 1) */
.about-team__card[data-pos="-1"] {
  --x-offset: -285px;
  --scale: 0.86;
  --z-index: 3;
  --opacity: 1;
  --image-brightness: 0.96;
  --image-saturation: 0.95;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.11), 0 16px 34px rgba(0, 0, 0, 0.17);
  --hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.13), 0 22px 42px rgba(0, 0, 0, 0.20);
}

.about-team__card[data-pos="1"] {
  --x-offset: 285px;
  --scale: 0.86;
  --z-index: 3;
  --opacity: 1;
  --image-brightness: 0.96;
  --image-saturation: 0.95;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.11), 0 16px 34px rgba(0, 0, 0, 0.17);
  --hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.13), 0 22px 42px rgba(0, 0, 0, 0.20);
}

/* 左右最外侧 (Pos -2 & 2) */
.about-team__card[data-pos="-2"] {
  --x-offset: -520px;
  --scale: 0.72;
  --z-index: 1;
  --opacity: 1;
  --image-brightness: 0.91;
  --image-saturation: 0.90;
  --shadow: 0 3px 9px rgba(0, 0, 0, 0.09), 0 10px 24px rgba(0, 0, 0, 0.13);
  --hover-shadow: 0 5px 13px rgba(0, 0, 0, 0.11), 0 16px 30px rgba(0, 0, 0, 0.16);
}

.about-team__card[data-pos="2"] {
  --x-offset: 520px;
  --scale: 0.72;
  --z-index: 1;
  --opacity: 1;
  --image-brightness: 0.91;
  --image-saturation: 0.90;
  --shadow: 0 3px 9px rgba(0, 0, 0, 0.09), 0 10px 24px rgba(0, 0, 0, 0.13);
  --hover-shadow: 0 5px 13px rgba(0, 0, 0, 0.11), 0 16px 30px rgba(0, 0, 0, 0.16);
}

/* 图片框容器：微轮廓边框、双层阴影与亮饱和度 Filter 层次 */
.about-team__img-box {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
  filter: brightness(var(--image-brightness)) saturate(var(--image-saturation));
  transition: box-shadow 300ms ease-out, filter 300ms ease-out;
}

.about-team__card:hover .about-team__img-box {
  box-shadow: var(--hover-shadow);
}

.about-team__img-box img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  pointer-events: none;
}

/* 团队名称：独立于图片 filter，保持纯黑清晰 */
.about-team__name {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main, #1a1a1a);
  text-align: center;
  white-space: nowrap;
}

/* 响应式适配 */

/* 平板端 / 窄屏 / 缩放：与全站导航切汉堡的 1200px 断点对齐，
   原 1199px 会让 1200px 宽下导航已折叠、团队区仍是桌面布局 */
@media (max-width: 1199px) {
  .about-team__nav {
    display: flex;
  }

  .about-team__cards {
    height: 420px;
  }

  .about-team__card {
    width: 240px;
  }

  .about-team__card[data-pos="-1"] {
    --x-offset: -225px;
    --scale: 0.85;
  }

  .about-team__card[data-pos="1"] {
    --x-offset: 225px;
    --scale: 0.85;
  }

  .about-team__card[data-pos="-2"] {
    --x-offset: -410px;
    --scale: 0.70;
  }

  .about-team__card[data-pos="2"] {
    --x-offset: 410px;
    --scale: 0.70;
  }
}

/* 手机端 (< 768px) */
@media (max-width: 768px) {
  .about-team {
    padding: 50px 0 60px;
  }

  .about-team__header {
    margin-bottom: 30px;
  }

  .about-team__title {
    font-size: 28px;
  }

  .about-team__subtitle {
    font-size: 14px;
  }

  .about-team__nav {
    width: 44px;
    height: 44px;
    top: 40%;
    background: rgba(255, 255, 255, 0.94);
  }

  .about-team__nav--prev {
    left: 10px;
  }

  .about-team__nav--next {
    right: 10px;
  }

  .about-team__nav svg {
    width: 22px;
    height: 22px;
  }

  .about-team__cards {
    height: 380px;
  }

  .about-team__card {
    width: 200px;
  }

  .about-team__name {
    font-size: 14px;
    margin-top: 10px;
  }

  .about-team__card[data-pos="-1"] {
    --x-offset: -135px;
    --scale: 0.82;
    --opacity: 0.85;
  }

  .about-team__card[data-pos="1"] {
    --x-offset: 135px;
    --scale: 0.82;
    --opacity: 0.85;
  }

  .about-team__card[data-pos="-2"] {
    --x-offset: -235px;
    --scale: 0.65;
    --opacity: 0.35;
  }

  .about-team__card[data-pos="2"] {
    --x-offset: 235px;
    --scale: 0.65;
    --opacity: 0.35;
  }
}

@media (max-width: 480px) {
  .about-team__nav--prev {
    left: 6px;
  }

  .about-team__nav--next {
    right: 6px;
  }
}

/* 减弱动画设置 */
@media (prefers-reduced-motion: reduce) {
  .about-team__card,
  .about-team__nav {
    transition: none !important;
  }
}
