/* 团队人员详情页：/team-{english-name} */
.team-detail-page {
    --td-navy: #122d50;
    --td-blue: #245fc2;
    --td-teal: #216e73;
    --td-ink: #263b51;
    --td-muted: #607086;
    --td-line: #dce5ed;
    --td-pale: #f3f7fb;
    color: var(--td-ink);
    background: #fff;
    font-family: 'Alibaba-PuHuiTi', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.team-detail-page .td-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--td-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.team-detail-page .td-section-title {
    margin: 0 0 24px;
    color: var(--td-navy);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
}

/* 首屏 */
.team-detail-page .td-hero {
    padding: 56px 0 64px;
    background: var(--td-pale);
    border-bottom: 1px solid var(--td-line);
}

.team-detail-page .td-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 56px;
}

.team-detail-page .td-name {
    margin: 0 0 10px;
    color: var(--td-navy);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.team-detail-page .td-role {
    margin: 0 0 14px;
    color: var(--td-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-detail-page .td-tagline {
    margin: 0 0 22px;
    color: var(--td-muted);
    font-size: 18px;
    line-height: 1.6;
}

.team-detail-page .td-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.team-detail-page .td-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--td-ink);
    font-size: 15px;
}

.team-detail-page .td-meta svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--td-blue);
}

.team-detail-page .td-meta a {
    color: var(--td-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.team-detail-page .td-meta a:hover {
    color: var(--td-blue);
}

.team-detail-page .td-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.team-detail-page .td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--td-blue);
    border-radius: 5px;
    background: var(--td-blue);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.team-detail-page .td-btn:hover {
    background: #164b9f;
    border-color: #164b9f;
    color: #fff;
}

.team-detail-page .td-btn-outline {
    background: transparent;
    border-color: #a5b5c7;
    color: var(--td-navy);
}

.team-detail-page .td-btn-outline:hover {
    background: #e8eef6;
    border-color: #a5b5c7;
    color: var(--td-navy);
}

.team-detail-page .td-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--td-navy);
}

.team-detail-page .td-btn-light:hover {
    background: #e7effb;
    border-color: #e7effb;
    color: var(--td-navy);
}

.team-detail-page .td-photo {
    justify-self: end;
    width: 100%;
    max-width: 340px;
}

.team-detail-page .td-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(18, 45, 80, .14);
}

/* 正文 */
.team-detail-page .td-profile {
    padding: 64px 0 56px;
}

.team-detail-page .td-profile-inner .td-rich {
    color: var(--td-ink);
    font-size: 16px;
    line-height: 1.85;
}

.team-detail-page .td-empty {
    margin: 0;
    padding: 20px 22px;
    border-left: 3px solid var(--td-blue);
    border-radius: 4px;
    background: var(--td-pale);
    color: var(--td-muted);
    font-size: 15px;
}

/* 后台富文本（Tailwind preflight 会把默认 margin 清零，这里补回来） */
.team-detail-page .td-rich > *:first-child {
    margin-top: 0;
}

.team-detail-page .td-rich h2 {
    margin: 34px 0 14px;
    color: var(--td-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.team-detail-page .td-rich h3 {
    margin: 28px 0 12px;
    color: var(--td-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.team-detail-page .td-rich h4 {
    margin: 22px 0 10px;
    color: var(--td-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.team-detail-page .td-rich p {
    margin: 0 0 16px;
}

.team-detail-page .td-rich ul,
.team-detail-page .td-rich ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.team-detail-page .td-rich li {
    margin-bottom: 8px;
}

.team-detail-page .td-rich a {
    color: var(--td-blue);
    text-decoration: underline;
}

.team-detail-page .td-rich strong {
    color: var(--td-navy);
    font-weight: 700;
}

.team-detail-page .td-rich blockquote {
    margin: 22px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--td-teal);
    background: var(--td-pale);
    color: #40566d;
}

.team-detail-page .td-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.team-detail-page .td-rich table {
    width: 100%;
    margin: 8px 0 22px;
    border-collapse: collapse;
}

.team-detail-page .td-rich th,
.team-detail-page .td-rich td {
    padding: 10px 12px;
    border: 1px solid var(--td-line);
    text-align: left;
    font-size: 15px;
}

.team-detail-page .td-rich th {
    background: var(--td-pale);
    color: var(--td-navy);
}

/* 底部 CTA */
.team-detail-page .td-cta {
    padding: 52px 0;
    background: var(--td-navy);
    color: #fff;
}

.team-detail-page .td-cta-grid {
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    align-items: center;
    gap: 48px;
}

.team-detail-page .td-cta .td-kicker {
    color: #a9d8dc;
}

.team-detail-page .td-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
}

.team-detail-page .td-cta p {
    margin: 0;
    color: #d0dbea;
    font-size: 15px;
}

.team-detail-page .td-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.team-detail-page .td-cta-email {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.team-detail-page .td-cta-email:hover {
    text-decoration: underline;
}

/* 其他团队成员 */
.team-detail-page .td-others {
    padding: 56px 0 64px;
    background: var(--td-pale);
}

.team-detail-page .td-others-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.team-detail-page .td-other-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--td-line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.team-detail-page .td-other-card:hover {
    border-color: var(--td-blue);
    box-shadow: 0 10px 24px rgba(18, 45, 80, .1);
    transform: translateY(-2px);
}

.team-detail-page .td-other-card img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.team-detail-page .td-other-name {
    color: var(--td-navy);
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .team-detail-page .td-hero-grid,
    .team-detail-page .td-cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-detail-page .td-photo {
        justify-self: start;
        max-width: 260px;
    }

    .team-detail-page .td-others-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .team-detail-page {
        font-size: 15px;
    }

    .team-detail-page .td-hero {
        padding: 36px 0 40px;
    }

    .team-detail-page .td-name {
        font-size: 28px;
    }

    .team-detail-page .td-tagline {
        font-size: 16px;
    }

    .team-detail-page .td-actions .td-btn {
        width: 100%;
    }

    .team-detail-page .td-profile {
        padding: 40px 0 36px;
    }

    .team-detail-page .td-section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .team-detail-page .td-cta {
        padding: 36px 0;
    }

    .team-detail-page .td-cta h2 {
        font-size: 22px;
    }

    .team-detail-page .td-cta-actions {
        align-items: stretch;
    }

    .team-detail-page .td-others-grid {
        grid-template-columns: 1fr;
    }
}
