/* 教师详情新版样式 */

.teacher-profile-page {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e6edf5;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 40, 77, 0.08);
    padding: 34px;
}

.profile-overview {
    margin-bottom: 32px;
}

.profile-card {
    align-items: stretch;
    gap: 32px;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e8eef5;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    margin-bottom: 18px;
    background: rgba(4, 76, 144, 0.08);
    border-radius: 999px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teacher-profile-page .teacher-header {
    margin-bottom: 0;
}

.teacher-profile-page .teacher-photo {
    width: 220px;
    height: 280px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 40, 77, 0.14);
}

.teacher-profile-page .teacher-basic-info {
    justify-content: flex-start;
}

.teacher-profile-page .teacher-name {
    margin-bottom: 16px;
    color: #17375e;
}

.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.teacher-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f1f6fb;
    border: 1px solid #dbe8f5;
    border-radius: 999px;
    color: #244d75;
    font-size: 14px;
    font-weight: 500;
}

.teacher-meta {
    display: grid;
    gap: 14px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fbff;
    border: 1px solid #e3edf7;
    border-radius: 12px;
}

.meta-label {
    width: 88px;
    color: #5b6b7c;
    font-weight: 600;
}

.meta-value {
    flex: 1;
    color: #223548;
    line-height: 1.9;
}

.intro-card {
    padding: 28px 30px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #fdfefe 100%);
    border: 1px solid #e5edf6;
    border-radius: 16px;
}

.intro-title {
    margin: 0 0 14px;
    color: #17375e;
    font-size: 24px;
    font-weight: 700;
}

.intro-content p {
    margin: 0 0 12px;
    color: #46576a;
    line-height: 2;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0 4px;
}

.section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #d8e4f0;
    border-radius: 999px;
    color: #35597e;
    text-decoration: none;
    transition: all 0.25s ease;
}

.section-nav a:hover {
    color: #fff;
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.teacher-profile-page .detail-section {
    margin-bottom: 24px;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(12, 38, 69, 0.04);
    scroll-margin-top: 100px;
}

.teacher-profile-page .detail-section:last-child {
    margin-bottom: 0;
}

.teacher-profile-page .section-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 40px 0 16px;
    border-left: 5px solid var(--color-secondary);
    color: #17375e;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}

.teacher-profile-page .section-title::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6c8197;
    border-bottom: 2px solid #6c8197;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.teacher-profile-page .section-title:hover,
.teacher-profile-page .section-title:focus {
    color: var(--color-secondary);
    outline: none;
}

.teacher-profile-page .section-title:hover::after,
.teacher-profile-page .section-title:focus::after {
    border-color: var(--color-secondary);
}

.teacher-profile-page .detail-section.is-collapsed .section-title {
    margin-bottom: 0;
}

.teacher-profile-page .detail-section.is-collapsed .section-title::after {
    transform: translateY(-35%) rotate(-135deg);
}

.teacher-profile-page .section-content {
    color: #4d5f72;
    line-height: 2;
}

.section-list li,
.paper-list li {
    color: #2c3e50;
    line-height: 1.95;
}

.section-list li + li,
.paper-list li + li {
    margin-top: 2px;
}

.teacher-profile-page .timeline-list li::before {
    top: 17px;
    width: 9px;
    height: 9px;
}

.teacher-profile-page .list-disc li::before {
    left: 5px;
    top: 8px;
    font-size: 18px;
}

.teacher-profile-page .list-numbered li::before {
    top: 9px;
}

.is-placeholder {
    color: #6d7d8e;
    font-style: italic;
}

@media screen and (max-width: 991px) {
    .teacher-profile-page {
        padding: 26px;
    }

    .profile-card {
        gap: 24px;
    }

    .teacher-profile-page .teacher-photo {
        width: 190px;
        height: 240px;
    }

    .teacher-profile-page .detail-section {
        padding: 24px;
    }
}

@media screen and (max-width: 767px) {
    .teacher-profile-page {
        padding: 20px;
        border-radius: 14px;
    }

    .profile-card {
        padding-bottom: 24px;
    }

    .teacher-profile-page .teacher-header {
        text-align: left;
    }

    .teacher-profile-page .teacher-photo {
        width: 180px;
        height: 230px;
    }

    .teacher-tags {
        gap: 8px;
    }

    .teacher-tag,
    .section-nav a {
        font-size: 13px;
    }

    .meta-item {
        flex-direction: column;
        gap: 6px;
    }

    .meta-label {
        width: auto;
    }

    .intro-card,
    .teacher-profile-page .detail-section {
        padding: 20px;
    }

    .intro-title {
        font-size: 22px;
    }

    .teacher-profile-page .section-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .teacher-profile-page {
        padding: 16px;
    }

    .teacher-profile-page .teacher-photo {
        width: 160px;
        height: 208px;
    }

    .section-nav {
        gap: 10px;
    }

    .section-nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 16px;
    }
}
