/* ============================================================
   team.css —— 团队页专属样式
   ------------------------------------------------------------
   1. 第一屏首图（Figma 528_94：1920×826 全幅大图，
      头部透明导航覆盖其上，图片不设 lazy、优先加载）
   ============================================================ */

/* ---------- 1. 第一屏首图 ---------- */
.first {
    height: 8.26rem;
    overflow: hidden;
    background: #f6f7f8;
    /* 图片加载前的占位底色 */
}

.first__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ---------- 2. 第二屏 Our Story（Figma 581_401） ---------- */
.second {
    padding: 0 0.9rem;
}

/* 容器（Rectangle 9943）：内边距 62 70 0 */
.second__container {
    padding: 0.62rem 0.7rem 0;
    background: white;
    border-radius: 30px 30px 0 0;
    position: relative;
    top: -0.7rem;
}

/* 标题：48px / 600 / #333 */
.second__title {
    margin: 0;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}

/* 三栏正文：栏间距约 38px，标题与正文间距 20px */
.second__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 0.38rem;
    margin-top: 0.2rem;
}

/* 正文：20px / 400 / #666，行高约 40px */
.second__text {
    margin: 0;
    font-size: 0.2rem;
    line-height: 2;
    color: #666666;
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .second {
    padding: 0 0.4rem;
}

html[data-mode="h5"] .second__container {
    padding: 0.4rem 0.3rem 0;
}

html[data-mode="h5"] .second__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .second__cols {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

html[data-mode="h5"] .second__text {
    font-size: max(0.26rem, 16px);
}

/* ============================================================
   3. 第三屏 History & Milestones 时间轴（Figma 569_60：1920×877）
   浅蓝底 #F0F8FF；左标题+图片（712×436 圆角20）；
   右侧时间轴列表（虚线轨道 + 节点圆点，激活/悬浮 = 蓝标题 + 蓝点）
   ------------------------------------------------------------
   交互：列表滚动到底之前接管滚轮/触摸，页面无法翻到下一屏
   （接管逻辑见 js/team.js）
   ============================================================ */
.third {
    position: relative;
    height: 8.77rem;
    background: #F0F8FF;
}

/* 钉屏舞台：整个第三屏画布 sticky 钉在视口内，
   页面滚动多余距离时由 JS 把位移同步给时间轴列表（pin & scrub），
   列表走完之前页面物理上到不了下一屏 */
.third__stage {
    position: sticky;
    top: 0;
    height: 8.77rem;
}

/* ---------- 标题块：left 160 / top 87 / width 712 ---------- */
.third__head {
    position: absolute;
    left: 1.6rem;
    top: 0.87rem;
    width: 7.12rem;
}

.third__title {
    margin: 0;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}

.third__sub {
    margin: 0.08rem 0 0;
    font-size: 0.2rem;
    line-height: 1.5;
    color: #666666;
}

/* ---------- 左图：left 160 / top 289 / 712×436 / 圆角20
   七张里程碑图 grid 堆叠在同一格，点击时间轴切换 is-active 交叉淡入 ---------- */
.third__photos {
    position: absolute;
    left: 1.6rem;
    top: 2.89rem;
    width: 7.12rem;
    height: 4.36rem;
    display: grid;
}

.third__photo {
    grid-area: 1 / 1;
    margin: 0;
    border-radius: 0.2rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s var(--ease-out),
        visibility 0.5s ease;
}

.third__photo.is-active {
    opacity: 1;
    visibility: visible;
}

.third__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 时间轴：left 1025 / top 55，溢出裁切，
   列表滚动由页面滚动同步驱动（见 js/team.js pin & scrub） ---------- */
.third__timeline {
    position: absolute;
    left: 10.25rem;
    top: 0.55rem;
    bottom: 0.4rem;
    width: 6.23rem;
    overflow: hidden;
}

.third__list {
    position: relative;
    margin: 0;
    padding: 0.18rem 0 0.6rem;
    list-style: none;
    will-change: transform;
}

/* 虚线轨道：1px 线 + 10px 间隙，与设计稿 SVG 虚线一致 */
.third__list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.19rem;
    bottom: 0.55rem;
    width: 0.14rem;
    background-image: repeating-linear-gradient(to bottom,
            #999999 0,
            #999999 1px,
            transparent 1px,
            transparent 11px);
}

/* ---------- 节点行：轨道占 14px，文字距轨道 80px ---------- */
.third__item {
    position: relative;
    margin: 0 0 0.42rem;
    padding-left: 0.8rem;
    cursor: pointer;
}

.third__item:last-child {
    margin-bottom: 0;
}

/* 节点圆点：默认灰环节点，激活/悬浮切换为蓝色节点（设计稿 SVG） */
.third__dot {
    position: absolute;
    left: 0;
    top: 0.09rem;
    width: 0.14rem;
    height: 0.14rem;
    background-color: #F0F8FF;
    background-image: url("../assets/images/team/timeline-dot.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.third__item.is-active .third__dot,
.third__item:hover .third__dot,
.third__item:focus-within .third__dot {
    background-image: url("../assets/images/team/timeline-dot-active.svg");
}

/* 年份：24px / 600 / #333；激活/悬浮变品牌蓝 */
.third__year {
    margin: 0;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    transition: color 0.3s ease;
}

.third__item.is-active .third__year,
.third__item:hover .third__year,
.third__item:focus-within .third__year {
    color: #03528D;
}

/* 描述：18px / 400 / #666 */
.third__text {
    margin: 0.13rem 0 0;
    font-size: 0.18rem;
    line-height: 1.5;
    color: #666666;
}

/* ---------- H5 适配：纵向流式排布，字号不小于 0.32rem ---------- */
html[data-mode="h5"] .third {
    height: auto;
    padding: 0.6rem 0.4rem;
}

html[data-mode="h5"] .third__stage {
    height: auto;
}

html[data-mode="h5"] .third__head {
    position: static;
    width: auto;
}

html[data-mode="h5"] .third__title {
    font-size: max(0.44rem, 20px);
}

html[data-mode="h5"] .third__sub {
    margin-top: 0.16rem;
    font-size: max(0.32rem, 16px);
}

html[data-mode="h5"] .third__photos {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 712 / 436;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .third__photo {
    position: absolute;
    inset: 0;
    height: 100%;
}

html[data-mode="h5"] .third__timeline {
    position: static;
    width: auto;
    max-height: 9rem;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .third__item {
    padding-left: 0.6rem;
}

html[data-mode="h5"] .third__dot {
    top: 0.13rem;
}

html[data-mode="h5"] .third__year {
    font-size: max(0.36rem, 18px);
}

html[data-mode="h5"] .third__text {
    margin-top: 0.12rem;
    font-size: max(0.32rem, 16px);
}

/* ============================================================
   4. 第四屏 创始人介绍（Figma 528_238：1600×860 内容区）
   ============================================================ */
.fourth {
    position: relative;
    padding: 1rem 1.6rem;
}

/* ---------- 标题：48px / 600 / #333，水平居中 ---------- */
.fourth__title {
    margin: 0;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: #333333;
}

/* ---------- 主体：左照片 + 右文字 ---------- */
.fourth__body {
    display: flex;
    align-items: flex-start;
}

/* 照片：528×723，圆角 20px，与容器底边齐平 */
.fourth__photo {
    flex: none;
    width: 5.28rem;
    height: 7.23rem;
    margin: 0.65rem 0 0;
    border-radius: 0.2rem;
    overflow: hidden;
}

.fourth__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右栏：距照片 84px，整体相对照片顶部下移 45px */
.fourth__main {
    flex: 1;
    min-width: 0;
    margin-left: 0.84rem;
    padding-top: 1.1rem;
}

/* 姓名 36px / 600；职位 24px / 500 品牌蓝 */
.fourth__name {
    margin: 0;
    font-size: 0.36rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}

.fourth__role {
    margin: 0;
    font-size: 0.24rem;
    font-weight: 500;
    color: #03528D;
}

/* 简介正文：20px / 400 / #666，宽 988px */
.fourth__text {
    margin: 0.47rem 0 0;
    max-width: 9.88rem;
    font-size: 0.2rem;
    line-height: 2;
    color: #666666;
}

/* ---------- 邮箱卡片：415×150，压在照片左下角 ---------- */
.fourth__card {
    position: absolute;
    left: 2.17rem; /* 160 + 57 */
    bottom: 1.26rem; /* 100 + 26 */
    width: 4.15rem;
    height: 1.5rem;
    padding: 0.23rem 0.47rem;
    background: #ffffff;
    border-radius: 0.2rem;
    box-sizing: border-box;
}

.fourth__card-tip {
    margin: 0;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
    color: #333333;
}

/* 邮箱行：蓝色圆底 40×40 + 白色信封 + 邮箱地址 */
.fourth__card-mail {
    display: flex;
    align-items: center;
    gap: 0.13rem;
    margin-top: 0.24rem;
    text-decoration: none;
}

.fourth__card-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #03528D;
}

.fourth__card-icon svg {
    width: 0.24rem;
    height: 0.24rem;
    transition: transform 0.3s var(--ease-out);
}

.fourth__card-mail:hover .fourth__card-icon svg {
    transform: scale(1.1);
}

.fourth__card-address {
    font-size: 0.2rem;
    font-weight: 500;
    color: #333333;
    transition: color 0.3s ease;
}

.fourth__card-mail:hover .fourth__card-address {
    color: #03528D;
}

/* ---------- 签名：52×2 短线 + Mr Dafoe 手写体，右下角 ---------- */
.fourth__sign {
    position: absolute;
    right: 1.6rem;
    bottom: 1rem;
    margin: 0;
    padding-left: 0.66rem;
    font-family: "Mr Dafoe", "Brush Script MT", cursive;
    font-size: 0.36rem;
    line-height: 1.4;
    color: #333333;
}

.fourth__sign::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.52rem;
    height: 2px;
    background: #333333;
    transform: translateY(-50%);
}

/* ---------- H5 适配：纵向流式排布，卡片/签名改为常规流 ---------- */
html[data-mode="h5"] .fourth {
    padding: 0.6rem 0.4rem;
}

html[data-mode="h5"] .fourth__title {
    font-size:0.44rem;
}

html[data-mode="h5"] .fourth__body {
    display: block;
}

html[data-mode="h5"] .fourth__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 528 / 723;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .fourth__main {
    margin-left: 0;
    padding-top: 0.4rem;
}

html[data-mode="h5"] .fourth__name {
    font-size: max(0.32rem, 16px);
}

html[data-mode="h5"] .fourth__role {
    font-size: max(0.24rem, 16px);
}

html[data-mode="h5"] .fourth__text {
    margin-top: 0.3rem;
    font-size: max(0.26rem, 16px);
}

html[data-mode="h5"] .fourth__card {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .fourth__card-tip {
    font-size: max(0.16rem, 16px);
}

html[data-mode="h5"] .fourth__card-address {
    font-size: max(0.2rem, 16px);
}

html[data-mode="h5"] .fourth__sign {
    position: static;
    margin-top: 0.4rem;
    justify-content: flex-end;
    text-align: right;
}

html[data-mode="h5"] .fourth__sign::before {
    display: none;
}

/* ============================================================
   4. 第五屏 团队成员轮播（Figma 581_399）
   卡片 1257×617 圆角 20px，间距 243px，右侧露边裁切
   ============================================================ */
.fifth {
    position: relative;
    padding: 0 0 1rem 1.6rem;
}

.fifth__viewport {
    overflow: hidden;
}

.fifth__track {
    display: flex;
    gap: 2.43rem;
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
}

/* ---------- 成员卡片 ---------- */
.fifth__card {
    position: relative;
    flex: none;
    width: 12.57rem;
    height: 6.17rem;
    border-radius: 0.2rem;
    overflow: hidden;
}

.fifth__card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 黑色 20% 压暗层（叠于背景图上、文字下） */
.fifth__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* 文字区：左 544px 起，宽 650px */
.fifth__card-body {
    position: absolute;
    z-index: 1;
    left: 5.44rem;
    top: 0.77rem;
    width: 6.5rem;
}

.fifth__card-name {
    margin: 0;
    font-size: 0.3rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}

.fifth__card-role {
    margin: 0;
    font-size: 0.24rem;
    font-weight: 500;
    line-height: 1.5;
    color: #03528D;
}

.fifth__card-text {
    margin: 0.3rem 0 0;
    font-size: 0.2rem;
    line-height: 2;
    color: #666666;
}

/* ---------- 前后按钮：竖向排列，居中于两张卡片正中间 ----------
   默认：设计稿灰描边圆（SVG 自带）；悬浮：蓝底白箭头 */
.fifth__nav {
    position: absolute;
    z-index: 2;
    left: 15.385rem; /* 两卡正中：1.6 内边距 + 12.57 卡宽 + 2.43/2 */
    top: 3.085rem; /* 卡片垂直中点 */
    /* 负 margin 居中（不用 transform，避免与 data-reveal 的 transform 冲突） */
    margin-left: -0.3rem;
    margin-top: -0.645rem;
    display: flex;
    flex-direction: column;
    gap: 0.09rem;
}

.fifth__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.fifth__btn svg {
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    transition: transform 0.3s var(--ease-out);
}

/* 下一张：与设计稿同源 SVG，镜像为右箭头 */
.fifth__btn--next svg {
    transform: rotate(180deg);
}

/* 悬浮：还原 Figma 1.svg 状态 —— 圆变蓝底（r=22.5），箭头变白 */
.fifth__btn:hover ellipse,
.fifth__btn:focus-visible ellipse {
    fill: #03528D;
    stroke: transparent;
}

.fifth__btn:hover path,
.fifth__btn:focus-visible path {
    stroke: #ffffff;
}

.fifth__btn:focus-visible {
    outline: 2px solid #03528D;
    outline-offset: 2px;
}

/* ---------- H5 适配：单卡全宽，按钮移至下方居中 ---------- */
html[data-mode="h5"] .fifth {
    padding: 0 0.4rem 0.6rem;
}

html[data-mode="h5"] .fifth__track {
    gap: 0.3rem;
}

html[data-mode="h5"] .fifth__card {
    width: 100%;
    height: auto;
    min-height: 6.4rem;
}

/* H5 端：图片与文字上下排列 */
/*html[data-mode="h5"] .fifth__card-bg {*/
/*    position: relative;*/
/*    inset: auto;*/
/*    width: 100%;*/
/*    height: 4.2rem;*/
/*    object-fit: cover;*/
/*    display: block;*/
/*}*/
html[data-mode="h5"] .fifth__card-bg {
    position: relative;
    inset: auto;
    display: block;
    width: 200%;
    max-width: none;
    height: 6.2rem;
    object-fit: cover;
    object-position: left center;
}

/* 压暗层只作用于图片区域 */
html[data-mode="h5"] .fifth__card::after {
    bottom: auto;
    height: 4.2rem;
}

html[data-mode="h5"] .fifth__card-body {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    padding: 0.4rem;
    background: #ffffff;
}

html[data-mode="h5"] .fifth__card-name {
    font-size: max(0.32rem, 16px);
}

html[data-mode="h5"] .fifth__card-role {
    font-size: max(0.26rem, 16px);
}

html[data-mode="h5"] .fifth__card-text {
    margin-top: 0.24rem;
    font-size: max(0.24rem, 16px);
}

/*html[data-mode="h5"] .fifth__nav {*/
/*    position: static;*/
/*    margin: 0.4rem 0 0;*/
/*    align-items: center;*/
/*        flex-direction: row;*/
/*    justify-content: center;*/
/*}*/
html[data-mode="h5"] .fifth__nav{
    position: absolute;
    left: 0;
    top: 14%;
    width: 100%;
    display: flex;
    margin: 0;
    flex-direction: row;
    justify-content: space-between;
}

html[data-mode="h5"] .fifth__nav .fifth__btn,html[data-mode="h5"] .fifth__nav .fifth__btn svg{
    width: 1rem;
    height: 1rem;
}

/* ============================================================
   5. 第六屏 员工合影（Figma 581_400：1920×919）
   上：1920×600 全幅合影；下：319 高横条（纹理底 + 左黑块 + 右文字）
   ============================================================ */
.sixth {
    padding: 0 0 1rem;
}

/* ---------- 合影：1920×600 全幅 ---------- */
.sixth__photo {
    margin: 0;
    height: 6rem;
    overflow: hidden;
}

.sixth__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ---------- 底部横条：319 高，纹理背景 ---------- */
.sixth__bar {
    position: relative;
    height: 3.19rem;
    background: url("../assets/images/team/band-bg.png") center / cover no-repeat;
    overflow: hidden;
}

/* 左侧黑块：558×319 */
.sixth__intro {
    position: absolute;
    left: 0;
    top: 0;
    width: 5.58rem;
    height: 3.19rem;
    padding: 0.47rem 0.41rem 0 1.6rem;
    background: #333333;
    box-sizing: border-box;
}

/* 标题：48px / 600 / 白 */
.sixth__title {
    margin: 0;
    max-width: 3.57rem;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.22;
    color: #ffffff;
}

/* 副标：20px / 400 / Inter / 白 */
.sixth__sub {
    margin: 0.47rem 0 0;
    font-family: "Inter", "Poppins", sans-serif;
    font-size: 0.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
}

/* 右侧介绍文字：987 宽，距横条顶 85px */
.sixth__text {
    position: absolute;
    left: 6.73rem;
    top: 0.85rem;
    width: 9.87rem;
    margin: 0;
    font-size: 0.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: #333333;
}

/* ---------- H5 适配：黑块与文字改为常规流纵排 ---------- */
html[data-mode="h5"] .sixth {
    padding: 0 0 0.6rem;
}

html[data-mode="h5"] .sixth__photo {
    height: auto;
    aspect-ratio: 1920 / 600;
}

html[data-mode="h5"] .sixth__bar {
    height: auto;
}

html[data-mode="h5"] .sixth__intro {
    position: static;
    width: 100%;
    height: auto;
    padding: 0.4rem;
}

html[data-mode="h5"] .sixth__title {
    max-width: none;
    font-size: 0.44rem;
}

html[data-mode="h5"] .sixth__sub {
    margin-top: 0.24rem;
    font-size: 0.38rem;
}

html[data-mode="h5"] .sixth__text {
    position: static;
    width: auto;
    padding: 0.4rem;
    font-size: max(0.26rem, 16px);
}



html[data-mode="h5"] .first{
    height: auto;
}

html[data-mode="h5"] .first__img{
    height: auto;
    object-fit: contain;
    object-position: inherit;
}
html[data-mode="h5"] .second__container{
    top: 0;
}
