/* =====================================================================
   视频占位体系（.vid-ph）— 全站统一：黄底墨黑三角播放钮（自 index.html L168-200 完整版引入）
   ===================================================================== */
.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);
}


/* =====================================================================
   ② 班型主信息头部卡 .klass-hero（左右分栏 · 白卡 · 非列表页卡片组）
   班型详情页-设计令牌.md §3（全照抄 · 零新增令牌）
   ===================================================================== */
.klass-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-top: var(--space-6);
}

@media(min-width:1024px) {
    .klass-hero {
        margin-top: var(--space-7);
    }
}
.tg-head {
    display: flex
;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin: 0 auto var(--space-5);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
    max-width: 1080px;
}

/* 左 2/3 文字列 */
.klass-hero__main {
    flex: 1 1 66%;
    padding: var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

@media(min-width:1024px) {
    .klass-hero__main {
        padding: var(--space-7) var(--space-7);
        gap: var(--space-5);
    }
}

/* 右 1/3 元信息列（窄卡 · 浅灰卡感 · 保持白卡 + 左 hairline） */
.klass-hero__aside {
    flex: 1 1 34%;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-soft);
    min-width: 0;
}

@media(min-width:1024px) {
    .klass-hero {
        flex-direction: row;
    }

    .klass-hero__aside {
        border-top: none;
        border-left: 1px solid var(--color-border);
        background: var(--color-bg-soft);
        padding: var(--space-7) var(--space-6);
    }
}

/* 三徽章行（浅蓝底深蓝字 pill · 非黄底） */
.kh-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.kh-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-brand-blue-deep);
    background: var(--color-brand-blue-light);
}

.kh-badge b {
    font-family: var(--font-number);
    font-weight: 800;
    font-size: .875rem;
}

.kh-badge--note::after {
    content: "";
    font-size: .625rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-left: 2px;
    letter-spacing: .04em;
}

/* 定位句 */
.klass-hero h3.kh-slogan {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--color-text-heading);
}

/* 简介长文 */
.kh-desc p {
    font-size: .9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.kh-desc p+p {
    margin-top: var(--space-3);
}

/* 右列元信息行（label+value · .course__meta 语感） */
.kh-meta {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-sm);
    background: var(--color-white);
    overflow: hidden;
}

.kh-meta__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
}

.kh-meta__row:last-child {
    border-bottom: none;
}

.kh-meta__k {
    font-size: .8125rem;
    color: var(--color-text-secondary);
}

.kh-meta__v {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: right;
}

/* 右列 CTA */
.kh-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.kh-actions .btn {
    width: 100%;
    justify-content: center;
}

.kh-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-number);
    font-size: .875rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.kh-phone svg {
    width: 15px;
    height: 15px;
    stroke: var(--color-brand-blue);
    stroke-width: 2.2;
    fill: none;
}

/* 右列上课实景占位（可选 · 复用 .vid-ph） */
.kh-media {
    position: relative;
    aspect-ratio: 327/184;
    border-radius: var(--radius-card-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.kh-media .vid-ph {
    position: absolute;
    inset: 0;
}

/* <768：堆叠 · CTA 全宽贴底 */
@media(max-width:767px) {
    .kh-actions {
        order: 2;
        margin-top: var(--space-2);
    }
}

/* =====================================================================
   ③ 班型特色 4 编号卡 .feat-grid/.feat-card（4→2→1 · 白卡 hover 上浮）
   班型详情页-设计令牌.md §4
   ===================================================================== */
.feat-sec {
    padding-block: var(--space-7) var(--space-4);
}

.feat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media(min-width:768px) {
    .feat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(min-width:1024px) {
    .feat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-5);
    }
}

.feat-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-brand-yellow);
}

.feat-card__num {
    font-family: var(--font-number);
    font-weight: 900;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-brand-blue-deep);
    letter-spacing: -.01em;
    padding-bottom: var(--space-3);
    position: relative;
    margin-bottom: var(--space-2);
}

@media(min-width:1024px) {
    .feat-card__num {
        font-size: 2.625rem;
    }
}

/* 编号下 2px 黄细线（点缀 · 不计黄块） */
.feat-card__num::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-brand-yellow);
}

.feat-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: var(--color-text-heading);
}

.feat-card p {
    font-size: .875rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* =====================================================================
   ④ 课程安排 · 班型细则 .klass-body（3 分节 · 图文左右交错）
   班型详情页-设计令牌.md §5
   ===================================================================== */
.klass-body {
    padding-block: var(--space-7) var(--space-4);
}

.kb-sec {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-4);
}

@media(min-width:1024px) {
    .kb-sec {
        gap: var(--space-7);
        align-items: center;
    }
}

.kb-sec__media {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.kb-sec__media .vid-ph {
    position: absolute;
    inset: 0;
}

.kb-sec__body {
    min-width: 0;
}

.kb-sec__body h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--color-text-heading);
    margin-bottom: var(--space-3);
}

.kb-sec__body h3 .kb-sec__no {
    font-family: var(--font-number);
    font-weight: 900;
    color: var(--color-brand-yellow-text);
    margin-right: 8px;
    font-size: 1rem;
    letter-spacing: .02em;
}

.kb-sec__body p {
    font-size: .9375rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.kb-sec__body p+p {
    margin-top: var(--space-3);
}

.kb-sec__body ul {
    margin-top: var(--space-4);
    display: grid;
    gap: 6px;
}

.kb-sec__body ul li {
    position: relative;
    padding-left: 16px;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.kb-sec__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand-yellow);
}

.kb-sec__note {
    margin-top: var(--space-4);
    font-size: .75rem;
    line-height: 1.6;
    color: var(--color-text-tertiary);
    letter-spacing: .02em;
}

/* ≥1024 图文左右 2 栏：默认图左文右(1:2)，.kb-sec--rev 文左图右 */
@media(min-width:1024px) {
    .kb-sec {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .kb-sec--rev .kb-sec__media {
        order: 2;
    }

    .kb-sec--rev .kb-sec__body {
        order: 1;
    }
}

/* =====================================================================
   ⑤ 其他班型推荐 .rec-grid/.rec-card（3→2→1 · 整卡链接）
   班型详情页-设计令牌.md §6
   ===================================================================== */
.rec-sec {
    padding-block: var(--space-7) var(--space-8);
}

@media(min-width:1024px) {
    .rec-sec {
        padding-block: var(--space-7) var(--space-9);
    }
}

.rec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media(min-width:640px) {
    .rec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }
}

@media(min-width:1024px) {
    .rec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rec-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-brand-yellow);
}

.rec-card:focus-visible {
    outline: 3px solid rgba(30, 64, 175, .35);
    outline-offset: 2px;
}

.rec-card__tag {
    display: inline-flex;
    align-self: flex-start;
    white-space: nowrap;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand-blue-deep);
    background: var(--color-brand-blue-light);
}

.rec-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.35;
    color: var(--color-text-heading);
    padding-right: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-card p {
    font-size: .875rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding-right: 28px;
}

/* 右下箭头（复用 .rrow__arrow 语感） */
.rec-card__go {
    position: absolute;
    right: var(--space-5);
    bottom: var(--space-5);
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    transition: color .18s ease, transform .18s ease;
}

.rec-card__go svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rec-card:hover .rec-card__go {
    color: var(--color-ink);
    transform: translateX(3px);
}

/* =====================================================================
   ⑥ CTA 收口 .tpage-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-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-text-heading);
    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;
}