/* 页面标题样式 */
.page-header {
    background: linear-gradient(180deg, rgba(0, 30, 80, 0.42), rgba(30, 0, 90, 0.48)), url('/assets/Other/team-intro-bg.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
}

/* 强制白色标题：覆盖全局 body :not(.navbar) 黑字规则 */
.page-header .container h1,
.page-header .container p {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

/* 公司简介样式 */
.company-intro {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 64px;
    box-sizing: border-box;
}

.intro-content {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 400px;
    padding: 10px 0 20px;
}

/* 团队介绍：三个切换按键 */
.about-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.about-tab {
    position: relative;
    border: none;
    padding: 0 20px;
    border-radius: 16px;
    cursor: pointer;
    background: #57659e;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(40, 50, 100, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.about-tabs .about-tab .about-tab-name {
    z-index: 2;
    color: #000000 !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
}

.about-tab:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(40, 50, 100, 0.30);
    background: #49579a;
}

.about-tab.active {
    background: #46528e;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
    box-shadow: 0 10px 28px rgba(40, 50, 100, 0.35);
}

/* 三个切换面板：仅显示当前激活项 */
.about-panel {
    display: none !important;
}

.about-panel.active {
    display: flex !important;
    min-height: auto;
    padding: 70px 0;
}

@media (max-width: 768px) {
    .about-tabs {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .about-tab {
        min-height: 88px;
    }

    .about-tab-name {
        font-size: 18px;
        letter-spacing: 3px;
    }
}

/* 背景图片容器 */
.intro-image-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.intro-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文字内容 - 在前面，有白色背景 */
.intro-text {
    position: relative;
    z-index: 2;
    width: 55%;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.intro-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* 团队介绍标题行：标题 + 导航栏同款 EXPR logo */
.intro-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.intro-heading h2 {
    margin-bottom: 0;
    white-space: nowrap;
}

.intro-logo {
    height: 40px;
    width: auto;
    display: block;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 企业文化样式 */
.company-culture {
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
}

/* 使命内容布局 */
.culture-content {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 400px;
    padding: 40px 0;
}

/* 背景图片容器 */
.culture-image-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.culture-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文字内容 - 在前面，有白色背景 */
.culture-text {
    position: relative;
    z-index: 2;
    width: 55%;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.culture-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.culture-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.culture-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 发展历程样式 */
.company-history {
    background-color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 发展历程布局 */
.history-layout {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 左侧时间轴 */
.timeline {
    width: 200px;
    flex-shrink: 0;
    padding-right: 40px;
    border-right: 2px solid #e8e8e8;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    left: -1px;
}

.timeline-line {
    width: 2px;
    background: linear-gradient(180deg, #e8e8e8, transparent);
    position: absolute;
    left: 7px;
    margin-top: 20px;
    height: 85px;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-content {
    padding-top: 2px;
}

.timeline-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* 时间轴激活状态 */
.timeline-item.active .timeline-dot {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
    transform: scale(1.2);
}

.timeline-item.active .timeline-year {
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-item:hover:not(.active) .timeline-dot {
    background-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.timeline-item:hover:not(.active) .timeline-year {
    color: var(--primary-color);
}

/* 右侧内容区域 */
.history-panel {
    flex: 1;
    min-height: 350px;
    position: relative;
}

.history-card {
    display: none;
    background: linear-gradient(145deg, var(--white), #fafafa);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    animation: fadeInUp 0.5s ease;
}

.history-card.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.history-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.history-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-top: 15px;
}

/* 响应式设计 - 平板端 */
@media (max-width: 900px) {
    .history-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .timeline {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e8e8e8;
        padding-right: 0;
        padding-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
        min-width: 90px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-content {
        padding-top: 8px;
    }
    
    .timeline-year {
        font-size: 15px;
    }
    
    .history-panel {
        min-height: 300px;
    }
    
    .history-card {
        padding: 35px 30px;
        position: relative;
    }
    
    .history-card h3 {
        font-size: 26px;
    }
    
    .history-card p {
        font-size: 15px;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .company-history {
        padding: 60px 0;
    }
    
    .history-layout {
        flex-direction: column;
        gap: 30px;
        padding: 15px;
    }
    
    .timeline {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 2px solid #e8e8e8;
        padding-right: 0 !important;
        padding-bottom: 20px;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 0 !important;
        position: relative !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline::-webkit-scrollbar {
        display: none;
    }
    
    .timeline-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        margin-bottom: 0 !important;
        min-width: 60px;
        flex-shrink: 0;
        gap: 8px !important;
    }
    
    .timeline-line {
        display: none !important;
    }
    
    .timeline-dot {
        width: 14px;
        height: 14px;
        position: static !important;
        left: auto !important;
    }
    
    .timeline-content {
        padding-top: 0;
    }
    
    .timeline-year {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .history-panel {
        min-height: 250px;
        width: 100%;
    }
    
    .history-card {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .card-badge {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 18px;
    }
    
    .history-card h3 {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .history-card p {
        font-size: 14px;
        line-height: 1.7;
        margin-top: 10px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .timeline {
        gap: 12px;
    }
    
    .timeline-item {
        min-width: 60px;
    }
    
    .timeline-year {
        font-size: 12px;
    }
    
    .history-card {
        padding: 20px 15px;
    }
    
    .history-card h3 {
        font-size: 20px;
    }
    
    .history-card p {
        font-size: 13px;
    }
}

/* 核心团队样式 */
.core-team {
    background-color: var(--gray-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 现代悬浮卡：圆角更大、双层阴影、悬停上浮 + 图片轻微缩放 + 社交按钮滑入 */
.team-card {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.team-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 204, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 102, 204, 0.08);
}

.team-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f7;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image img {
    transform: scale(1.06);
}

.team-info {
    position: relative;
    padding: 20px 18px;
    text-align: left;
}

/* 顶部装饰条：悬停时从左到右展开 */
.team-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-info::before {
    transform: scaleX(1);
}

.team-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.team-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.02em;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .history-timeline {
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        padding: 20px 0;
    }
    
    .history-timeline::before {
        display: none;
    }
    
    .timeline-item {
        min-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-content {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .intro-text h2 {
        font-size: 24px;
    }

    .intro-heading {
        gap: 14px;
    }

    .intro-logo {
        height: 28px;
    }
    
    /* 团队介绍响应式 */
    .intro-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .intro-image-wrapper {
        position: relative;
        width: 100%;
        height: 250px;
        left: 0;
        transform: none;
    }
    
    .intro-text {
        width: 100%;
        padding: 30px;
        margin-top: -40px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* 使命板块响应式 */
    .culture-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .culture-image-wrapper {
        position: relative;
        width: 100%;
        height: 250px;
        left: 0;
        transform: none;
    }
    
    .culture-text {
        width: 100%;
        padding: 30px;
        margin-top: -40px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .culture-text h2 {
        font-size: 24px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-tabs {
        gap: 8px;
        padding: 15px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .history-card {
        padding: 30px 20px;
    }
    
    .card-year {
        width: 80px;
        height: 80px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .history-card h3 {
        font-size: 22px;
    }
    
    .team-info {
        padding: 20px;
    }
    
    .team-info h3 {
        font-size: 18px;
    }
    
    .team-info p {
        font-size: 13px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .puzzle-game-area {
        min-height: 360px;
    }

    .puzzle-target-container {
        width: 220px;
        height: 220px;
    }

    .puzzle-piece-scattered {
        width: 104px;
        height: 104px;
    }

    .puzzle-complete {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* 移动端：核心成员单列展示，并降低图片高度以适应竖屏 */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-image {
        height: 220px;
    }

    .team-info {
        padding: 22px 20px;
    }

    .team-info h3 {
        font-size: 17px;
    }
}

/* ========== 核心成员详情弹窗 ========== */
.member-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.member-modal.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.member-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 28, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.member-modal__dialog {
    position: relative;
    width: min(720px, 92vw);
    margin: 7vh auto 0;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 24px;
    padding: 38px 40px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    /* 仅原地淡入，不做位移/缩放，保证头像飞行起点与终点坐标始终精确重合 */
    opacity: 0;
    transition: opacity 0.28s ease;
}

.member-modal.is-open .member-modal__dialog {
    opacity: 1;
}

.member-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.member-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.member-modal__header {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.member-modal__avatar {
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    border-radius: 18px;
    overflow: hidden;
    background: #f5f5f7;
}

.member-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    /* 屏蔽全站图片懒加载自动添加的 fadeInUp 动画，避免头像在飞行落位前自行显现 */
    animation: none;
}

.member-modal__avatar img.is-in {
    opacity: 1;
}

.member-modal__heading {
    min-width: 0;
    padding-right: 40px;
}

.member-modal__heading h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.member-modal__heading p {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.member-modal__body {
    padding-top: 22px;
}

.member-modal__body p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.9;
    color: #444a55;
}

/* 头像飞行过程中的临时图片（几何属性由 Web Animations API 逐帧驱动） */
.member-fly-img {
    position: fixed;
    z-index: 3100;
    margin: 0;
    display: block;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    will-change: left, top, width, height;
}

@media (max-width: 576px) {
    .member-modal__dialog {
        margin-top: 24px;
        padding: 26px 22px 28px;
        border-radius: 20px;
    }

    .member-modal__header {
        gap: 16px;
        padding-bottom: 18px;
    }

    .member-modal__avatar {
        width: 88px;
        height: 88px;
        border-radius: 14px;
    }

    .member-modal__heading {
        padding-right: 34px;
    }

    .member-modal__heading h3 {
        font-size: 20px;
    }

    .member-modal__heading p {
        font-size: 13.5px;
    }

    .member-modal__body {
        padding-top: 16px;
    }

    .member-modal__body p {
        font-size: 14px;
        line-height: 1.8;
    }
}
