/* ── 师资轮播 ── */
.teacher { padding: 0 0 60px; background: #fff; }

.teacher-showcase {
    display: flex;
    align-items: stretch;
    gap: 64px;
    position: relative;
}

/* 左列：文字信息 + 缩略图轮播 */
.teacher-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 40px;
}

.teacher-detail {
    flex: 1;
    padding: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
}

/* 姓名 + 职称同行 */
.teacher-detail-header {
    margin-top: 40px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.teacher-detail-name {
    font-size: 40px;
    font-weight: 800;
    color: #111;
    line-height: 1;
    letter-spacing: -0.5px;
}

.teacher-detail-role {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: #c87d10;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, rgba(245,166,35,0.12) 0%, rgba(245,166,35,0.04) 100%);
    border: 1px solid rgba(245,166,35,0.55);
    padding: 5px 14px;
    border-radius: 2px;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.teacher-detail-sub {
    font-size: 14px;
    color: #999;
    line-height: 1.9;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}

.teacher-detail-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, #f5a623 0%, rgba(245,166,35,0.4) 60%, transparent 100%);
    margin-bottom: 24px;
    border-radius: 2px;
}

.teacher-detail-desc {
    font-size: 15px;
    color: #555;
    line-height: 2;
    transition: opacity .35s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

/* 右列：大图，固定高度保持一致 */
.teacher-portrait {
    width: 400px;
    height: 560px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.teacher-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: opacity .4s ease;
    display: block;
}

/* 底部缩略图轮播 */
.teacher-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.teacher-carousel-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 4px 5px;
}

.teacher-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform .4s cubic-bezier(.25,.8,.25,1);
}

/* 进度条 */
.teacher-progress {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.06);
    border-radius: 1px;
    margin-bottom: 16px;
    overflow: hidden;
}
.teacher-progress-bar {
    height: 100%;
    width: 0;
    background: rgba(245,166,35,0.6);
    border-radius: 1px;
}
@keyframes teacherProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* 圆形头像缩略图 */
.teacher-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .25s, opacity .25s;
    background: #f0f0f0;
    opacity: 0.55;
}

.teacher-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.teacher-thumb:hover { opacity: 0.85; }

.teacher-thumb.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f5a623;
    opacity: 1;
}

.teacher-carousel-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, border-color .2s, box-shadow .2s;
    position: relative;
}
.teacher-carousel-arrow::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #aaa;
    border-right: 1.5px solid #aaa;
    transition: border-color .2s;
}
.teacher-carousel-prev::before { transform: rotate(-135deg) translate(-1px, 1px); }
.teacher-carousel-next::before { transform: rotate(45deg) translate(-1px, 1px); }

.teacher-carousel-arrow:hover {
    background: #f5a623;
    border-color: #f5a623;
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.teacher-carousel-arrow:hover::before { border-color: #fff; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .teacher-showcase { flex-direction: column; }
    .teacher-left { width: 100%; }
    .teacher-portrait { width: 100%; height: 400px; align-self: auto; }
    .teacher-detail { padding: 30px 0; }
}
@media (max-width: 768px) {
    .teacher { padding: 0 0 50px; }
    .teacher-detail-name { font-size: 28px; }
    .teacher-portrait { display: none; }
    .teacher-thumb { width: 60px; height: 60px; }
    /* 大图隐藏后，标题到内容间距收紧 */
    .teacher-detail-header { margin-top: 12px; }
    .teacher-detail { padding: 0 0 24px; }
}
@media (max-width: 600px) {
    .teacher { padding: 0 0 44px; }
    .teacher-detail-header { margin-top: 8px; }
    .teacher-detail { padding: 0 0 20px; }
    .teacher-detail-name { font-size: 24px; }
    .teacher-detail-sub { font-size: 13px; }
    .teacher-detail-desc { font-size: 14px; -webkit-line-clamp: 5; }
    .teacher-showcase { gap: 0; }
}
@media (max-width: 480px) {
    .teacher-thumb { width: 50px; height: 50px; }
}
@media (max-width: 390px) {
    .teacher { padding: 0 0 36px; }
    .teacher-detail-name { font-size: 20px; }
    .teacher-detail-header { gap: 8px; flex-wrap: wrap; }
    .teacher-thumb { width: 46px; height: 46px; }
    .teacher-detail { padding: 16px 0 12px; }
}
