/* 教师详情：版心与首页一致；栏目表头红色；正文卡片透明 */

body.teacher-detail-page {
    background-color: #ebebeb;
    background-image: url("../../images/site/backgrounds/background.jpeg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.teacher-detail-page #teacher-detail .faculty-page-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* 正文区：透明，透出页面背景 */
.faculty-article {
    background: transparent;
    border: 0;
    border-top: 0;
    padding: 28px 0 36px;
    box-shadow: none;
}

@media (max-width: 640px) {
    .faculty-article {
        padding: 20px 0 28px;
    }
}

.faculty-article__title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #163268;
    text-align: center;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(28, 25, 23, 0.12);
    line-height: 1.35;
}

.faculty-meta {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.faculty-meta li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    font-size: 0.9375rem;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(28, 25, 23, 0.14);
}

.faculty-meta li:last-child {
    border-bottom: none;
}

.faculty-meta .faculty-meta__label {
    flex: 0 0 5.5rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 480px) {
    .faculty-meta .faculty-meta__label {
        flex: 0 0 100%;
    }
}

.faculty-meta a {
    color: #163268;
    word-break: break-all;
}

.faculty-meta a:hover {
    text-decoration: underline;
}

.faculty-meta .faculty-copy {
    margin-left: 4px;
    padding: 2px 6px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    vertical-align: middle;
}

.faculty-meta .faculty-copy:hover {
    color: #163268;
}

.faculty-article__media {
    float: left;
    margin: 0 24px 16px 0;
    width: 160px;
    max-width: 38%;
}

.faculty-article__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(28, 25, 23, 0.12);
    padding: 0;
    background: transparent;
}

.faculty-article::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 640px) {
    .faculty-article__media {
        float: none;
        margin: 0 auto 20px;
        max-width: 200px;
        width: 180px;
    }
}

.faculty-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #94070a;
    margin: 28px 0 14px;
    padding: 8px 0 8px 12px;
    border-left: 4px solid #94070a;
    background: linear-gradient(90deg, rgba(148, 7, 10, 0.08) 0%, transparent 100%);
}

.faculty-section-title:first-of-type {
    margin-top: 8px;
}

.faculty-body {
    font-size: 0.9375rem;
    line-height: 1.95;
    color: #333;
    text-align: justify;
}

.faculty-body p {
    margin: 0 0 1rem;
}

.faculty-body p:last-child {
    margin-bottom: 0;
}

.faculty-body img {
    max-width: 100%;
    height: auto;
}

.faculty-subsection-title {
    font-size: 1rem;
    font-weight: 700;
    color: #163268;
    margin: 22px 0 12px;
    padding: 6px 0 6px 12px;
    border-left: 4px solid #94070a;
    background: linear-gradient(90deg, rgba(148, 7, 10, 0.06) 0%, transparent 100%);
}

.faculty-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(28, 25, 23, 0.12);
    text-align: center;
}

.faculty-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(22, 50, 104, 0.4);
    background: rgba(22, 50, 104, 0.1);
    color: #163268;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faculty-back-link:hover {
    background: #163268;
    border-color: #163268;
    color: #fff;
}

.faculty-back-link:focus-visible {
    outline: 2px solid #163268;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body.teacher-detail-page {
        background-attachment: scroll;
    }
}
