:root {
    --tp-purple: #5d20c8;
    --tp-purple-bright: #8127e8;
    --tp-gold: #d5ae4f;
    --tp-text: #1c1c1e;
    --tp-muted: #6b6b73;
    --tp-line: rgba(28, 28, 30, 0.1);
    --tp-card: #fff;
    --tp-bg: #f7f7f9;
    --tp-width: 1160px;
}

.teacher-profile-page {
    margin: 0;
    color: var(--tp-text);
    background: var(--tp-bg);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.teacher-profile-page *,
.teacher-profile-page *::before,
.teacher-profile-page *::after { box-sizing: border-box; }

.profile-breadcrumb,
.profile-hero,
.profile-content {
    width: min(calc(100% - 40px), var(--tp-width));
    margin-right: auto;
    margin-left: auto;
}

.profile-breadcrumb {
    padding: 26px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--tp-muted);
    font-size: 12px;
}

.profile-breadcrumb a { color: inherit; text-decoration: none; }
.profile-breadcrumb a:hover { color: var(--tp-purple); }

.profile-hero {
    padding: 52px 58px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 54px;
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: 28px;
    box-shadow: 0 18px 55px rgba(34, 22, 58, 0.08);
}

.profile-portrait-wrap {
    padding: 12px;
    background: linear-gradient(145deg, rgba(129, 39, 232, 0.12), rgba(213, 174, 79, 0.16));
    border-radius: 50%;
}

.profile-portrait {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.profile-kicker,
.profile-section-label {
    margin: 0 0 10px;
    color: var(--tp-purple);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.profile-hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.profile-english-name { margin: 7px 0 0; color: var(--tp-muted); font-size: 18px; }
.profile-type { margin: 16px 0 0; color: #72571b; font-weight: 650; }
.profile-intro { max-width: 700px; margin: 20px 0 0; color: #45454b; font-size: 16px; }

.profile-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags span { padding: 7px 12px; color: #4c3478; background: #f4eefc; border-radius: 999px; font-size: 12px; }

.profile-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.profile-actions a,
.profile-closing a {
    min-height: 46px;
    padding: 10px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.profile-primary-button { color: #fff !important; background: linear-gradient(90deg, var(--tp-purple-bright), var(--tp-purple)); }
.profile-secondary-button { color: var(--tp-text) !important; background: #f5f5f7; border: 1px solid var(--tp-line); }

.profile-content {
    padding: 42px 0 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}

.profile-main-column { display: grid; gap: 22px; }
.profile-section,
.profile-resume-card {
    padding: 32px;
    background: var(--tp-card);
    border: 1px solid var(--tp-line);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(34, 22, 58, 0.045);
}

.profile-section h2,
.profile-resume-card h2 { margin: 0 0 16px; font-size: 27px; line-height: 1.25; }
.profile-section > p:not(.profile-section-label) { margin: 0; color: #45454b; }
.profile-english-copy { margin-top: 15px !important; padding-left: 15px; color: var(--tp-muted) !important; border-left: 3px solid rgba(129, 39, 232, 0.2); }

.profile-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tp-line); border-left: 1px solid var(--tp-line); }
.profile-data-grid > div { padding: 16px; border-right: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); }
.profile-data-grid h3 { margin: 0 0 8px; color: var(--tp-muted); font-size: 11px; }
.profile-data-grid p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.profile-direct-note { background: linear-gradient(145deg, #fff, #faf6ff); }

.profile-resume-column { position: sticky; top: 90px; }
.profile-resume-card a { display: block; overflow: hidden; color: inherit; background: #f3eef9; border-radius: 14px; text-decoration: none; }
.profile-resume-card img { width: 100%; display: block; }
.profile-resume-card a span { padding: 13px; display: block; color: #fff; background: var(--tp-purple); text-align: center; font-size: 13px; font-weight: 700; }

.profile-closing {
    padding: 76px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--tp-purple-bright), var(--tp-purple));
    text-align: center;
}
.profile-closing p { margin: 0 0 9px; color: #eedb9e; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.profile-closing h2 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 44px); }
.profile-closing a { color: #2e2106; background: linear-gradient(90deg, #f2d98e, var(--tp-gold)); }

.profile-footer { padding: 26px 20px; color: var(--tp-muted); background: #fff; text-align: center; font-size: 12px; }
.profile-footer p { margin: 2px 0; }

@media (max-width: 900px) {
    .profile-hero { grid-template-columns: 210px minmax(0, 1fr); padding: 38px; gap: 34px; }
    .profile-content { grid-template-columns: 1fr; }
    .profile-resume-column { position: static; }
    .profile-resume-card a { max-width: 480px; }
}

@media (max-width: 640px) {
    .profile-hero { padding: 28px 22px; grid-template-columns: 1fr; text-align: center; }
    .profile-portrait-wrap { width: 190px; margin: 0 auto; }
    .profile-tags,
    .profile-actions { justify-content: center; }
    .profile-content { padding-top: 24px; }
    .profile-section,
    .profile-resume-card { padding: 24px 20px; }
    .profile-data-grid { grid-template-columns: 1fr; }
}
