@import url(common.css);

/* =====================================================================
   视频占位体系（.vid-ph）— 全站统一：黄底墨黑三角播放钮
   ===================================================================== */
.vid-ph {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-dark-ink);
}

.vid-ph__bg {
    position: absolute;
    inset: 0;
    background: var(--color-dark-blue);
    transition: transform .6s ease;
}

.vid-ph--ink .vid-ph__bg {
    background: var(--color-dark-ink);
}

.vid-ph--cool .vid-ph__bg {
    background: var(--color-brand-blue);
}

.vid-ph--deep .vid-ph__bg {
    background: var(--color-brand-blue-deep);
}

.vid-ph--warm .vid-ph__bg {
    background: var(--color-brand-yellow);
}

.vid-ph__grid {
    position: absolute;
    inset: 0;
    opacity: .10;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 44px 44px;
}

.vid-ph__shimmer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, .18), transparent 60%);
    transition: opacity .4s ease;
}

.vid-ph.is-playing .vid-ph__shimmer {
    opacity: 1;
    animation: kenburns 9s ease-in-out infinite alternate;
}

.vid-ph.is-playing .vid-ph__bg {
    animation: kenburns 12s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-2%, -2%);
    }
}

/* 播放钮：黄底墨黑三角（暖黄底改白底墨黑三角，避免同色边界消失） */
.vid-ph__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-brand-yellow);
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, background .2s ease;
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.vid-ph__play svg {
    width: 20px;
    height: 20px;
    fill: var(--color-on-yellow);
    margin-left: 3px;
}

.vid-ph.is-playing .vid-ph__play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
}

.vid-ph--warm .vid-ph__play {
    background: var(--color-white);
}

.vid-ph--warm .vid-ph__play svg {
    fill: var(--color-ink);
}

.vid-ph__pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 10, 10, .7);
    color: #fff;
    font-size: .6875rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 3;
    letter-spacing: .02em;
}

.vid-ph__tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    z-index: 3;
    opacity: .9;
    background: rgba(10, 10, 10, .6);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

/* 视频卡（4.2） */
.vcard {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    cursor: pointer;
}

.vcard:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--color-brand-yellow);
}

.vcard__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.vcard__media .vid-ph__bg {
    transition: transform .4s ease;
}

.vcard:hover .vid-ph__bg {
    transform: scale(1.04);
}

.vcard:hover .vid-ph__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.vcard__body {
    padding: 12px 16px;
}

.vcard__body h4 {
    margin-bottom: 4px;
}

.vcard__body .small {
    color: var(--color-text-secondary);
}

/* =====================================================================
   名师队伍二级页 · 追加组件样式（本页新增，仅引用 index.html :root 既有令牌，零新增色值/字体）
   类前缀：.tpage-* / .tg-* / .tcard* / .tsecnav* / .tmodal* —— 与首页 .teacher 小卡区分
   ===================================================================== */


/* ---------- ③ 锚点导航条 .tsecnav（仿厚一 centerNav · 黄底墨黑激活） ---------- */
.tsecnav__pill.icon01{
    background: url(../img/szdw_icon01.png) no-repeat 5px center;
}
.tsecnav__pill.icon02{
    background: url(../img/szdw_icon02.png) no-repeat 5px center;
}
.tsecnav__pill.icon03{
    background: url(../img/szdw_icon03.png) no-repeat 5px center;
}
.tsecnav__pill.icon01:hover, .tsecnav__pill.icon01.is-active{
    background: url(../img/szdw_icon01_h.png) no-repeat 5px center;
}
.tsecnav__pill.icon02:hover, .tsecnav__pill.icon02.is-active{
    background: url(../img/szdw_icon02_h.png) no-repeat 5px center;
}
.tsecnav__pill.icon03:hover, .tsecnav__pill.icon03.is-active{
    background: url(../img/szdw_icon03_h.png) no-repeat 5px center ;
}
/* ---------- ④ 分组教师区 .tg-sec / .tg-head / .tg-list ---------- */
.tg-sec {
    background: var(--color-white);
    padding-block: var(--space-7);
}

section.tg-sec[id] {
    scroll-margin-top: 150px;
}

/* 覆盖基底 section[id] 的 64px，避开吸顶条 */
.tg-wrap {
    scroll-margin-top: 150px;
}

#sec-all {
    scroll-margin-top: 150px;
}

@media(max-width:1023px) {
    section.tg-sec[id] {
        scroll-margin-top: 64px;
    }

    .tg-wrap {
        scroll-margin-top: 64px;
    }

    #sec-all {
        scroll-margin-top: 64px;
    }
}

.tg-wrap .tg-sec:first-child {
    padding-top: var(--space-4);
}

/* 首组与锚点条紧凑：--space-4 */
@media(min-width:1024px) {
    .tg-sec {
        padding-block: var(--space-8);
    }

    .tg-wrap .tg-sec:first-child {
        padding-top: var(--space-4);
    }
}

.tg-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
}

.tg-head__titles {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.tg-head__titles h2.h2 {
    margin: 0;
}

.tg-head__count {
    font-family: var(--font-number);
    color: var(--color-text-tertiary);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: .02em;
    padding-bottom: 4px;
}

.tg-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ---------- ⑤ 教师大卡 .tcard（移动默认上下 · ≥1024 左照片右信息） ---------- */
.tcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, opacity .25s ease, box-shadow .2s ease, border-color .2s ease;
}

.tcard.will {
    opacity: 0;
    transform: translateY(12px);
}

.tcard.is-in {
    opacity: 1;
    transform: none;
}

.tcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-brand-yellow);
}

.tcard__media {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-soft);
    cursor: pointer;
    flex: 0 0 auto;
    aspect-ratio: 300 / 164;
}
.tcard__media img{
    width: 100%;
}

.tcard__media .vid-ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media(min-width:1024px) {
    .tcard {
        flex-direction: row;
    }

    .tcard__media {
        flex: 0 0 clamp(260px, 25vw, 300px);
        aspect-ratio: 3/4;
        max-height: none;
        align-self: flex-start;
    }

    .tcard__body {
        flex: 1 1 auto;
    }
}

.tcard__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
    gap: var(--space-3);
    min-width: 0;
}

@media(max-width:767px) {
    .tcard__body {
        padding: var(--space-4);
    }
}

.tcard__head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tcard__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-heading);
}

@media(min-width:1024px) {
    .tcard__name {
        font-size: 1.625rem;
    }
}

.tcard__role {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--color-brand-blue-deep);
    background: var(--color-brand-blue-light);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    line-height: 1.5;
}

.tcard__bio {
    color: var(--color-text-primary);
    font-size: .9375rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcard__actions {
    margin-top: auto;
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding-top: var(--space-4);
}

.tcard__actions .btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media(max-width:767px) {
    .tcard__actions {
        width: 100%;
    }

    .tcard__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* 照片区：剪影 + 播放钮 + 占位 tag */
.tcard__sill {
    position: absolute;
    inset: 0;
    width: 60%;
    height: auto;
    margin: auto;
    z-index: 1;
    pointer-events: none;
    fill: none;
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vid-ph--warm .tcard__sill {
    stroke: rgba(10, 10, 10, .42);
}

.tcard__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-brand-yellow);
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.tcard__play svg {
    width: 17px;
    height: 17px;
    fill: var(--color-on-yellow);
    margin-left: 3px;
}

.tcard__media .vid-ph--warm+.tcard__play {
    background: var(--color-white);
}

.tcard__media .vid-ph--warm+.tcard__play svg {
    fill: var(--color-ink);
}

.tcard__media:hover .tcard__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media(hover:none) {
    .tcard__play {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tcard__media:focus-visible {
    outline: 3px solid rgba(30, 64, 175, .35);
    outline-offset: -3px;
}

.tcard:focus-within {
    outline: none;
}

/* ---------- ⑥ CTA 收口（中性浅灰卡 · 黄主按钮点缀保留；③ 覆盖为去黄基准） ---------- */
.tpage-cta {
    padding-block: var(--space-5) var(--space-8);
}

@media(min-width:1024px) {
    .tpage-cta {
        padding-block: var(--space-6) var(--space-9);
    }
}

.tpage-cta__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4) var(--space-5);
    background: var(--color-bg-yellow-soft);
    border-radius: var(--radius-card);
    padding: var(--space-5) var(--space-6);
}

@media(min-width:1024px) {
    .tpage-cta__card {
        padding: var(--space-6) var(--space-7);
    }
}

.tpage-cta__card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-ink);
    font-size: 1.375rem;
    line-height: 1.3;
}

.tpage-cta__card p {
    margin-top: var(--space-2);
    color: var(--color-text-primary);
    font-size: .9375rem;
}

.tpage-cta__card .btn {
    flex: 0 0 auto;
}

/* ---------- ⑦ 站内弹窗 .tmodal（白底圆角卡 · 长文禁黄底） ---------- */
.tmodal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(10, 10, 10, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tmodal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tmodal__panel {
    width: min(720px, 92vw);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-card);
    transform: translateY(8px) scale(.98);
    transition: transform .2s ease;
}

.tmodal.is-open .tmodal__panel {
    transform: none;
}

.tmodal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.tmodal__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.2;
}

.tmodal__meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.tmodal__note {
    font-size: .75rem;
    color: var(--color-text-secondary);
}

.tmodal__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-ink);
    display: grid;
    place-items: center;
    transition: background .18s ease;
}

.tmodal__close:hover {
    background: var(--color-border);
}

.tmodal__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.tmodal__body {
    padding: var(--space-6);
    overflow-y: auto;
    color: var(--color-text-primary);
    font-size: .9375rem;
    line-height: 1.85;
}

.tmodal__body p+p {
    margin-top: var(--space-3);
}

@media(max-width:767px) {
    .tmodal__top {
        padding: var(--space-4);
    }

    .tmodal__body {
        padding: var(--space-4);
    }

    .tmodal__name {
        font-size: 1.25rem;
    }
}



/* =====================================================================
   ② 视频墙 .tvwall（新增 · 左 1 大 + 右 2 小 · 仅引用既有令牌）
   ===================================================================== */
.tvwall {
    background: var(--color-white);
    padding-block: var(--space-5) var(--space-7);
}

@media(min-width:1024px) {
    .tvwall {
        padding-block: var(--space-6) var(--space-8);
    }
}

/* 区块头：风格同 .section-head/.tg-head 体系 */
.tvwall__head {
    max-width: 720px;
    margin-bottom: var(--space-6);
}

.tvwall__head .eyebrow {
    display: block;
    margin-bottom: var(--space-3);
}

.tvwall__head .h2 {
    margin-bottom: var(--space-2);
}

.tvwall__head .lead {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* 网格：移动/默认单列 */
.tvwall__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
}

/* 平板 768–1023：大卡 16:9 整行置顶，右侧两小卡 1fr 1fr 横排在下 */
@media(min-width:768px) and (max-width:1023px) {
    .tvwall__side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }
}

/* 桌面 ≥1024：左 2fr 大卡 + 右 1fr 两小卡（等高，每张 ≈ 大卡半幅） */
@media(min-width:1024px) {
    .tvwall__grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: var(--space-4);
        align-items: stretch;
    }

    .tvwall__side {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        min-width: 0;
    }

    .tvwall__side .tvwall__card {
        display: flex;
        flex-direction: column;
    }

    .tvwall__side .tvwall__media {
        aspect-ratio: auto;
        flex: 1 1 0;
        min-height: 0;
    }

    /* 去 16:9 约束 → 填满所在半幅，与左卡齐平 */
}

/* 卡片容器：白底卡（同 .vcard 心智） */
.tvwall__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}

.tvwall__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-brand-yellow);
}

.tvwall__card .vid-ph__bg {
    transition: transform .25s ease;
}
.tvwall__card .vid-ph__bg img{
    width: 100%;
}

.tvwall__card:hover .vid-ph__bg {
    transform: scale(1.04);
}

.tvwall__card:hover .vid-ph__play {
    transform: translate(-50%, -50%) scale(1.08);
}

/* 媒体区：默认 16:9 大卡；vid-ph 绝对铺满 */
.tvwall__media {
    position: relative;
    overflow: hidden;
    background: var(--color-dark-ink);
    aspect-ratio: 16/9;
    min-height: 0;
}

.tvwall__media .vid-ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tvwall__media:focus-visible {
    outline: 3px solid rgba(30, 64, 175, .35);
    outline-offset: -3px;
}

/* 卡下文字：标题 + 一行小字 */
.tvwall__cap {
    padding: var(--space-3) var(--space-4) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tvwall__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.0625rem;
    color: var(--color-text-heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tvwall__cap .small {
    color: var(--color-text-secondary);
}

.tvwall__card--main .tvwall__cap {
    padding: var(--space-4) var(--space-5) var(--space-5);
}

@media(min-width:1024px) {
    .tvwall__card--main .tvwall__title {
        font-size: 1.25rem;
    }
}

/* =====================================================================
   ③ 底部 CTA 去黄（联动：顶部 banner 承接唯一黄柔光大块）
   主选：中性浅灰卡；黄主 CTA 按钮（.btn--primary）保留——按钮为品牌点缀，不计入黄块
   ===================================================================== */
.tpage-cta__card {
    background: var(--color-bg-soft);
}

/* #F5F5F5 中性浅灰 */
/* 备选：白卡+描边 —— .tpage-cta__card{background:var(--color-white);border:1px solid var(--color-border);} */
.tpage-cta__card h3 {
    color: var(--color-text-heading);
}

/* 保持墨黑（确认行） */
.tpage-cta__card p {
    color: var(--color-text-primary);
}

/* .tpage-cta__card .btn--primary（立即咨询 · 预约到校）原样保留 */

/* =====================================================================
   ④ 教师照片方形化 ~200px（与首页 162/190 方形同族、略放大）
   ===================================================================== */
/* 桌面 ≥1024：横排 · 左方形 200px 照片 */
@media(min-width:1024px) {
    .tcard__media {
        flex: 0 0 435px;
        width: 435px;
        height: auto;
        aspect-ratio: 300/164;
        max-height: none;
        align-self: flex-start;
    }
}



/* 方形框内剪影随动：1:1 viewBox + 放大至 ~74% 宽（头肩更饱满） */
.tcard__media .tcard__sill {
    width: 74%;
    height: auto;
}