/* 团队部分 */
section#team {
    padding: 120px 0 100px 0;
    background-color: #f9fafc;
}

/* 团队页面标题调整 */
section#team .section-title {
    margin-bottom: 30px;
}

.team-intro {
    text-align: justify;
    text-justify: inter-ideograph;
    text-align-last: left;
    max-width: 1000px; /* 放宽内容宽度 */
    margin: 0 auto 60px;
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.85;
}

@media (min-width: 1400px) {
    .team-intro { max-width: 1100px; }
}

/* 首席合伙人布局 */
.lead-partner {
    display: flex;
    flex-wrap: wrap; /* 允许专业领域换行到下一行 */
    gap: 20px;
    margin: 0 auto 80px; /* 居中并保留底部间距 */
    background: rgb(249, 250, 252);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    align-items: stretch; /* 两侧对齐高度 */
    padding: 30px 24px 20px; /* 略缩窄左右内边距 */
    width: 100%;
    max-width: 980px; /* 略微收窄整体宽度 */
}

.partner-photo {
    flex: 0 0 200px; /* 缩小宽度 */
    height: 250px; /* 缩小高度 */
    position: relative;
    overflow: hidden;
    margin: 0; /* 由容器统一内边距控制 */
    border-radius: 0; /* 去掉圆角 */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-info {
    flex: 1 1 calc(100% - 260px); /* 占据除照片外的剩余宽度 */
    min-width: 300px;
    padding: 0 10px 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-name {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.partner-position {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* 内联显示在姓名后的小号职位样式 */
.partner-position-inline {
    font-size: 0.55em; /* 相对 partner-name 缩小 */
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 0.5em;
    white-space: nowrap;
}

.partner-bio {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gray-color);
    font-size: 1rem;
    text-align: justify;
    text-justify: inter-ideograph;
    text-align-last: left;
    line-height: 1.8;
}

.partner-contact {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.partner-contact i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 24px;
}

.partner-expertise h3 {
    color: var(--accent-color);
    margin: 10px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px; /* 行列间距 */
    font-size: 0.85rem;
}

/* 每行最多四个：宽度约 25% 减去间距影响；用 flex-basis 控制 */
.expertise-item {
    flex: 0 0 calc(25% - 18px);
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
}

@media (max-width: 992px) {
    .expertise-item { flex: 0 0 calc(33.333% - 18px); }
}

@media (max-width: 768px) {
    .expertise-list { gap: 6px 12px; }
    .expertise-item { flex: 0 0 50%; }
}



.expertise-item i {
    color: var(--primary-color);
    margin-right: 8px;
    margin-top: 2px;
}

/* 全宽专业领域模块 */
.full-width-expertise {
    flex: 1 1 100%;
    margin-top: 8px; /* 更靠近上方简介 */
    padding-top: 4px;
}

/* 团队成员类别标题 */
.team-category-title {
    text-align: center;
    color: var(--primary-color);
    margin: 70px 0 40px;
    font-size: 1.8rem;
    position: relative;
}

.team-category-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--primary-color);
}

/* 团队成员卡片布局 - 一行五个 */
.team-container-five {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
}

/* 律师团队左对齐 */
.team-container-five.lawyer-team {
    justify-content: flex-start;
}

.team-card {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    width: 210px;
    height: 420px;
    flex-shrink: 0;
    /* 禁用悬停动画效果 */
    transition: none !important;
    transform: none !important;
}

/* 明确禁用团队卡片的悬停效果 */
.team-card:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.team-img {
    height: 250px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
    padding-top: 50px;
}

.team-img img {
    width: 170%;
    height: 170%;
    object-fit: cover;
    object-position: center top;
    /* 禁用悬停动画效果 */
    transition: none !important;
    transform: none !important;
}

/* 明确禁用团队卡片图片的悬停效果 */
.team-card:hover .team-img img {
    transform: none !important;
    transition: none !important;
}

.team-info {
    padding: 12px;
}

.team-name-position {
    margin-bottom: 5px;
}

.team-name {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0 0 3px 0;
}

.team-position {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 1rem;
}



.team-location {
    display: inline-block;
    background-color: rgba(235, 92, 32, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
}

.team-contact {
    display: flex;
    align-items: center;
    margin: 10px 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.team-contact i {
    width: 24px;
    color: var(--primary-color);
    margin-right: 10px;
}

.team-specialty {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.9rem;
    color: var(--gray-color);
    text-align: justify;
    text-justify: inter-ideograph;
    text-align-last: left;
    line-height: 1.5;
}

/* 确保团队简介与合伙人简介中的段落换行仍保持两端对齐 */
.team-intro p,
.partner-bio p,
.team-specialty p {
    text-align: justify;
    text-justify: inter-ideograph;
    text-align-last: left;
}

.team-specialty h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.team-specialty ul {
    list-style: none;
    padding-left: 0;
}

.team-specialty li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
}

.team-specialty li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.team-manner {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -40px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-height: 500px;
}

.team-manner img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .team-container-five {
        justify-content: center;
        max-width: 1000px;
    }

    /* 平板端强制居中律师团队 */
    .team-container-five.lawyer-team {
        justify-content: center;
    }
    
    .team-card {
        width: 190px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .lead-partner {
        flex-direction: column;
        height: auto;
        align-items: stretch;
    }
    
    .partner-photo {
        flex: 0 0 auto;
        height: 250px;
        width: 250px;
        margin: 20px auto;
        align-self: center;
    }
    
    .partner-info {
        padding: 20px 30px 30px;
    }
    
    .team-container-five {
        justify-content: center;
        max-width: 720px;
    }

    /* 移动端强制居中律师团队 */
    .team-container-five.lawyer-team {
        justify-content: center;
    }
    
    .team-card {
        width: 180px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .team-container-five {
        justify-content: center;
        max-width: 480px;
    }
    
    .team-card {
        width: 160px;
        height: 360px;
    }
    
    .partner-name {
        font-size: 1.8rem;
    }
    
    .partner-position {
        font-size: 1.2rem;
    }
    
    .team-name-position {
        flex-direction: column;
        align-items: center;
    }
    
    .team-name {
        text-align: center;
    }
    
    .team-position {
        text-align: center;
        margin-top: 5px;
    }
}

@media (max-width: 576px) {
    .team-container-five {
        justify-content: center;
    }
    
    .team-card {
        width: 280px;
        max-width: 90%;
        height: 450px;
    }
    
    .team-category-title {
        font-size: 1.5rem;
    }
    
    .partner-photo {
        height: 300px;
    }
}

/* 全面禁用专家团队及以下所有团队卡片的悬停效果 */
.team-container-five .team-card,
.team-container-five .team-card *,
.team-container-five .team-card:hover,
.team-container-five .team-card:hover * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* 确保没有任何缩放或移动效果 */
.team-container-five .team-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: white !important;
}

.team-container-five .team-card:hover img {
    transform: none !important;
    scale: none !important;
}
