/* ========= 讲师详情页 /teacher/{slug}.html ========= */
/* 依赖 css.css 提供的 --container / --gutter 变量 */

.tc-main {
    padding: clamp(24px, 3vw, 44px) var(--gutter) clamp(40px, 5vw, 76px);
}

.tc-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.tc-crumb {
    margin-bottom: clamp(16px, 2vw, 28px);
}

/* ---- 头部：头像 + 名称 + 简介 ---- */
.tc-hero {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
    padding: clamp(20px, 2.4vw, 36px);
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(22, 35, 58, .06);
}

.tc-photo {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f5f8;
}

.tc-photo img {
    display: block;
    width: 100%;
    height: auto;
    /* 与列表/首页讲师卡同一竖版比例（400×480），避免人物被压扁裁切 */
    aspect-ratio: 5 / 8;
    object-fit: cover;
}

.tc-tag {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(237, 84, 33, .1);
    color: #ed5421;
    font-size: 14px;
}

.tc-name {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 30px);
    line-height: 1.25;
    color: #16233a;
}

.tc-name span {
    margin-left: 6px;
    font-size: .5em;
    font-weight: 400;
    color: #6b7488;
}

.tc-intro p {
    margin: 0 0 10px;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.95;
    color: #556274;
}

.tc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(16px, 2vw, 26px);
}

.tc-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 10px;
    background: #ed5421;
    color: #fff;
    font-size: 15px;
    transition: background-color .25s, color .25s, border-color .25s;
}

.tc-btn:hover {
    background: #d2431a;
}

.tc-btn-ghost {
    background: #fff;
    border: 1px solid #ed5421;
    color: #ed5421;
}

.tc-btn-ghost:hover {
    background: rgba(237, 84, 33, .08);
}

/* ---- 区块 ---- */
.tc-section {
    margin-top: clamp(28px, 3.4vw, 52px);
}

.tc-section-title {
    position: relative;
    margin: 0 0 clamp(14px, 1.6vw, 22px);
    padding-left: 14px;
    font-size: clamp(19px, 1.7vw, 26px);
    color: #16233a;
}

.tc-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: .28em;
    bottom: .28em;
    width: 4px;
    border-radius: 2px;
    background: #ed5421;
}

.tc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px clamp(16px, 2vw, 32px);
    padding: clamp(18px, 2vw, 28px);
    list-style: none;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
}

.tc-list li {
    position: relative;
    padding-left: 24px;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.9;
    color: #454b57;
}

.tc-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ed5421;
}

/* 编号式：主要经历与成果 */
.tc-list-num {
    counter-reset: tcnum;
}

.tc-list-num li {
    padding-left: 30px;
}

.tc-list-num li::before {
    content: counter(tcnum);
    counter-increment: tcnum;
    left: 0;
    top: .58em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(237, 84, 33, .12);
    color: #ed5421;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

/* ---- 团队其他讲师 ---- */
.tc-others {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: clamp(12px, 1.4vw, 20px);
    list-style: none;
}

.tc-others a {
    display: block;
    padding: 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    transition: border-color .25s, box-shadow .25s;
}

.tc-others a:hover {
    border-color: #ed5421;
    box-shadow: 0 8px 20px rgba(22, 35, 58, .08);
}

.tc-others img {
    display: block;
    width: 100%;
    height: auto;
    /* 竖版比例（300×400），比主头像 5/6 更瘦长；
       原来写死 130px 高度，栅格列宽一变比例就跟着变 */
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    object-position: center top;
}

.tc-other-name {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: #16233a;
}

.tc-other-title {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #6b7488;
}

/* ---- 底部转化 ---- */
.tc-cta {
    margin-top: clamp(30px, 3.6vw, 56px);
    padding: clamp(22px, 2.6vw, 40px);
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(120deg, #16233a, #25375c);
    color: #fff;
}

.tc-cta-title {
    font-size: clamp(20px, 1.9vw, 30px);
}

.tc-cta-desc {
    margin: 10px auto 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .82);
}

.tc-cta-hotline {
    margin: 8px 0 18px;
    font-size: 15px;
    color: #ffcf7a;
}

/* ---- 师资列表页 /teacher.html ---- */
.tc-page-head {
    margin-bottom: clamp(20px, 2.6vw, 36px);
}

.tc-page-title {
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 600;
    color: #16233a;
    line-height: 1.7;
}

.tc-page-desc {
    max-width: 780px;
    font-size: 16px;
    line-height: 1.6;
    color: #3c4a5f;
    margin-top: 10px;
}

/* 每行 5 个，断点与首页师资轮播的 slidesPerView 一致：5 / 4 / 3 / 2 / 1 */
.tc-faculty-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
}
@media (max-width: 1439px) {
    .tc-faculty-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1199px) {
    .tc-faculty-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (max-width: 767px) {
    .tc-faculty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 479px) {
    .tc-faculty-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.tc-faculty-grid .faculty-card {
    border: 1px solid #e8ecf3;
}

/* 头像被 <a> 包了一层：a 必须撑满容器，
   否则里面 img 的 height:100% 参照的是 auto 高度，会退回原图比例并溢出被裁 */
.tc-faculty-grid .faculty-avatar a {
    display: block;
    width: 100%;
    height: 100%;
}

.tc-faculty-grid .faculty-name a {
    color: inherit;
    transition: color .25s;
}

.tc-faculty-grid .faculty-name a:hover {
    color: var(--main);
}

.faculty-sum {
    margin-bottom: clamp(14px, 1.5vw, 18px);
    font-size: 13px;
    line-height: 1.8;
    color: #6b7488;
}

.tc-empty {
    padding: clamp(30px, 4vw, 60px);
    text-align: center;
    font-size: 15px;
    color: #6b7488;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .tc-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .tc-photo {
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .tc-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
