/**
 * tuandui.css - 管理团队页面样式
 */

/* Team Section */
.team-section {
    padding-bottom: 60px;
    background-color: #fff;
}

.team-header-container {
    padding-top: 50px;
    padding-bottom: 50px; /* Increased bottom padding to create space before first leader */
    position: relative;
    display: flex; /* Flexbox for alignment */
    justify-content: flex-start; /* Align to the left (start) */
    align-items: center; /* Vertically align items */
}

.team-section-title {
    font-size: 32px;
    color: #333;
    position: relative;
    z-index: 2;
    margin-bottom: 0; /* Remove margin-bottom */
}

.team-section-title .highlight-text {
    font-weight: bold;
    position: relative; /* For the pseudo-element */
    display: inline-block; /* Required for the pseudo-element to work correctly */
}

/* Replicating the underline style from qiye.css */
.team-section-title .highlight-text::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #e63935;
    position: absolute;
    bottom: -10px; /* Match qiye.css distance */
    left: 0;
}

.caeg-watermark {
    position: absolute;
    top: 50%; /* Center vertically */
    left: -20px;
    transform: translateY(-50%); /* Adjust for exact center */
    font-size: 130px; 
    color: rgba(0, 0, 0, 0.03);
    font-weight: 300; 
    font-family: 'CustomArial', 'CustomArialUnicode';
    letter-spacing: 5px;
    z-index: 1;
    pointer-events: none;
    line-height: 1; /* Reset line-height to avoid spacing issues */
    margin-top: -10px; /* Slight manual adjustment to visual center */
}

/* Leader List Container */
.team-list-container {
    width: 100%;
}

/* Individual Leader Block */
.leader-block {
    margin-top: 100px; /* Space for the avatar top half */
    position: relative;
}

/* The Grey Bar */
.leader-grey-bar {
    background-color: #f2f2f2; /* Darker Grey Background for visibility */
    width: 100%;
    padding: 35px 0; /* Reduced padding (was 60px) */
}

/* Container for positioning */
.leader-relative-container {
    position: relative;
    /* w-1300-center properties are inherited via class composition in HTML */
    height: 100%;
    /* Use Flexbox to center content */
    display: flex;
    justify-content: center; /* Center content horizontally */
}

/* Avatar Positioning */
.leader-avatar {
    position: absolute;
    /* Calculation:
       Padding top is 35px.
       To align center of 180px avatar (at 90px) with top of grey bar (at -35px relative to content):
       top + 90 = -35  => top = -125px
    */
    top: -125px;
    left: 200px; /* Adjusted left position to move towards center */
    width: 180px;
    height: auto;
    z-index: 10;
    /* Ensure no CSS styles interfere with the baked-in image style */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.leader-avatar img {
    width: 100%;
    height: auto;
    display: block;
    /* No border radius or border as requested */
}

/* Text Content */
.leader-info {
    padding-left: 450px; /* Increased padding to push text right of the centered avatar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px; /* Ensure some height */
    width: 100%; /* Take full width to allow flexbox centering to work properly */
}

.member-name-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    height: 28px;
    width: auto;
    margin-right: 15px;
}

.name-divider {
    width: 1px;
    height: 24px;
    background-color: #ccc;
    margin-right: 15px;
}

.member-name {
    font-size: 34px; /* Increased from 30px */
    color: #333;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'CustomArial', 'SourceHanSansCN', 'CustomArialUnicode';
}

.member-title {
    font-size: 20px; /* Increased from 18px */
    color: #333;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'CustomArial', 'SourceHanSansCN', 'CustomArialUnicode';
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    /* Banner 适配 */
    .banner {
        display: flex !important;
        height: 230px;
        margin-top: 90px; /* 紧接在 header 下方 */
        background-size: cover;
        position: relative;
    }

    /* Team Header */
    .team-header-container {
        padding-top: 30px;
        padding-bottom: 30px;
        justify-content: flex-start; /* Align Left */
    }

    .team-section-title {
        font-size: 20px;
        text-align: left; /* Align Left */
        padding-left: 10px; /* Add some padding if needed */
    }

    .team-section-title .highlight-text::after {
        bottom: -2px;
    }

    .caeg-watermark {
        font-size: 60px;
        left: -10px;
        transform: translateY(-50%);
        margin-top: 0;
    }

    /* 面包屑适配 */
    .breadcrumb {
        padding: 16px 15px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        font-size: 0;
        color: #333;
        width: calc(100% + 30px);
        margin-left: -15px;
        background-color: #fff;
        position: relative;
        z-index: 5;
    }

    .breadcrumb a:first-child {
        display: inline-block;
        width: 32px;
        height: 32px;
        background: url('../img/icon-27.png') no-repeat center center;
        background-size: contain;
        font-size: 0;
        margin-right: 15px;
        position: relative;
    }

    .breadcrumb a:first-child::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 3px;
        height: 26px;
        width: 2px;
        background-color: #ddd;
    }

    .breadcrumb span,
    .breadcrumb a {
        font-size: 18px;
        color: #333;
        font-family: 'CustomArial', 'SourceHanSansCN', 'CustomArialUnicode';
    }

    .breadcrumb span {
        margin-left: 0;
        font-weight: normal;
    }

    .breadcrumb span:first-of-type {
        margin-left: 15px;
    }

    .breadcrumb span:not(:last-child)::after {
        content: '>';
        margin-left: 8px;
        margin-right: 8px;
        color: #666;
        font-weight: normal;
        display: inline-block;
        vertical-align: middle;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    /* Leader Block */
    .leader-block {
        margin-top: 50px; /* Reduced top margin */
    }

    .leader-grey-bar {
        padding: 25px 0;
    }

    .leader-relative-container {
        display: block; /* Revert to block or default for absolute positioning context */
        height: auto;
        min-height: 100px;
    }

    .leader-avatar {
        position: absolute;
        width: 140px;
        height: 140px;
        top: -85px; /* Adjust to overlap grey bar correctly */
        left: 40px; /* Align left with offset */
        transform: none; /* Remove center transform */
        margin: 0;
    }

    .leader-info {
        padding-left: 190px; /* Space for avatar (140px) + gap (10px) + offset (40px) */
        text-align: left; /* Revert to left align */
        align-items: flex-start; /* Revert flex alignment */
        width: 100%;
    }

    .member-name-row {
        justify-content: flex-start; /* Left align */
        margin-bottom: 10px;
    }

    .member-name {
        font-size: 28px; /* Adjusted size */
    }

    .member-title {
        font-size: 18px;
        text-align: left; /* Left align */
        padding: 0;
    }

    .info-icon {
        height: 28px;
        margin-right: 10px;
    }

    .name-divider {
        height: 26px;
        margin-right: 10px;
    }
}

/* English Adaptation */
.lang-en .member-title {
    font-size: 18px; /* Slightly smaller for English text */
    line-height: 1.5;
}

.lang-en .member-name {
    /* Ensure font is consistent */
}
