/* 课程详情页 — 移动端（≤991.98px），仅 detail.html 引入 */

.hke-nxd {
    padding: 10px 0 28px;
    font-size: 14px;
    line-height: 1.75;
}

.hke-nxd .hke-container {
    padding-left: 12px;
    padding-right: 12px;
}

.hke-nxd__layout {
    --hke-nxd-pad-x: 14px;
}

.hke-nxd .hke-zt-breadcrumb {
    padding: 6px 0 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.hke-nxd .hke-zt-breadcrumb__label span {
    display: none;
}

.hke-nxd .hke-zt-breadcrumb__item + .hke-zt-breadcrumb__item::before {
    margin: 0 6px;
}

.hke-nxd-main {
    flex-direction: column;
    gap: 12px;
}

.hke-nxd-main__col {
    gap: 10px;
}

.hke-nxd-side--rail {
    width: 100%;
    flex: 1 1 auto;
    padding: 0;
    gap: 10px;
}

.hke-nxd-card--hero {
    padding-inline: var(--hke-nxd-pad-x);
    border: none;
    border-radius: 0;
    background: transparent;
}

.hke-nxd-hero--course {
    --hke-nxd-hero-media-h: auto;
    --hke-nxd-hero-media-max-w: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 0 0 4px;
}

.hke-nxd-hero--course > .hke-nxd-hero__corner {
    display: none;
}

.hke-nxd-hero__media {
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.hke-nxd-hero__media img {
    min-height: 0;
    height: 100%;
}

.hke-nxd-hero__body {
    min-height: 0;
    width: 100%;
    justify-content: flex-start;
}

.hke-nxd-hero__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
}

.hke-nxd-hero__chips {
    gap: 6px;
    margin-bottom: 10px;
}

.hke-nxd-tag {
    font-size: 12px;
    line-height: 20px;
}

.hke-nxd-hero__sheet {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
}

.hke-nxd-hero__body {
    width: 100%;
}

.hke-nxd-hero__cta.hke-nxd-hero__cta--align-meta {
    margin-top: auto;
    padding-top: 10px;
}

.hke-nxd-hero__meta {
    margin-bottom: 0;
    width: 100%;
    font-size: var(--hke-font-search, 14px);
    line-height: 1.65;
}

.hke-nxd-hero__meta--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 10px;
    width: 100%;
}

.hke-nxd-hero__meta-cell--kind,
.hke-nxd-hero__meta-cell--industry,
.hke-nxd-hero__meta-cell--duration,
.hke-nxd-hero__meta-cell--price,
.hke-nxd-hero__meta-cell--tail,
.hke-nxd-hero__meta-cell--hit {
    grid-column: auto;
    grid-row: auto;
}

.hke-nxd-hero__meta-cell,
.hke-nxd-hero__meta-cell--kind,
.hke-nxd-hero__meta-cell--industry,
.hke-nxd-hero__meta-cell--duration,
.hke-nxd-hero__meta-cell--price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.hke-nxd-hero__meta-cell--tail,
.hke-nxd-hero__meta-cell--hit {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.hke-nxd-hero__meta-cell--tail {
    grid-column: 1;
}

.hke-nxd-hero__meta-cell--hit {
    grid-column: 2;
    align-self: center;
}

.hke-nxd-hero__meta-cell--tail .hke-nxd-hero__meta-sub {
    width: auto;
    max-width: 100%;
}

.hke-nxd-hero__meta-sub {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: auto;
    max-width: 100%;
}

.hke-nxd-hero__meta-cell--hit {
    justify-content: flex-start;
}

.hke-nxd-hero__meta dt,
.hke-nxd-hero__meta dd {
    font-size: inherit;
}

.hke-nxd-hero__meta dt {
    flex: 0 0 auto;
    color: #888;
}

.hke-nxd-hero__meta dd {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    text-align: left;
    color: #555;
}

.hke-nxd-hero__cta--align-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.hke-nxd-hero__cta--align-meta .hke-nxd-hero__cta-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.hke-nxd-hero__cta--align-meta .hke-nxd-hero__cta-btns .hke-nxd-cta {
    flex: 1 1 0;
    min-width: 0;
}

.hke-nxd-hero__cta--align-meta .hke-nxd-hero__tel {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
}

.hke-nxd-cta {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 15px;
    border-radius: 6px;
}

.hke-nxd-hero__tel {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 6px;
    background: #f7f9fc;
    box-sizing: border-box;
}

.hke-nxd-hero__tel i {
    font-size: 16px;
}

.hke-nxd-body.hke-nxd-card {
    padding-inline: var(--hke-nxd-pad-x);
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hke-nxd-body {
    max-height: none;
    min-height: 0;
    overflow: visible;
}

.hke-nxd-tabs {
    overflow: visible;
}

.hke-nxd-tabs__nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 calc(-1 * var(--hke-nxd-pad-x));
    padding: 0 var(--hke-nxd-pad-x);
    box-shadow: 0 1px 0 #eee;
}

.hke-nxd-tabs__nav button {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.hke-nxd-tabs__scroll {
    overflow: visible;
    padding: 14px 0 18px;
}

.hke-nxd-label {
    font-size: 15px;
    margin-bottom: 8px;
}

/* 开课时间：移动端卡片列表 */
.hke-nxd-schedule {
    margin-bottom: 14px;
    overflow: visible;
}

.hke-nxd-schedule__table {
    width: 100%;
    border: none;
    background: transparent;
}

.hke-nxd-schedule__table thead {
    display: none;
}

.hke-nxd-schedule__table tbody tr {
    display: block;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hke-nxd-schedule__table tbody tr:nth-child(even) {
    background: #fff;
}

.hke-nxd-schedule__table tbody tr:last-child {
    margin-bottom: 0;
}

.hke-nxd-schedule__table tbody td {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 8px;
    width: 100%;
    padding: 7px 0;
    border: none;
    border-bottom: 1px dashed #eee;
    text-align: left;
    box-sizing: border-box;
}

.hke-nxd-schedule__table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hke-nxd-schedule__table tbody td:first-child {
    width: auto;
    text-align: left;
    color: inherit;
}

.hke-nxd-schedule__table tbody td::before {
    content: attr(data-label) "：";
    flex: 0 0 auto;
    font-weight: 600;
    color: #666;
    text-align: left;
}

.hke-nxd-schedule__table .hke-nxd-schedule__status--open,
.hke-nxd-schedule__table .hke-nxd-schedule__status--ended {
    text-align: left;
}

.hke-nxd-schedule__table .hke-nxd-schedule__price {
    font-size: 15px;
}

.hke-nxd-html {
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.hke-nxd-similar__link {
    padding: 12px 0;
    margin-inline: 0;
}

.hke-nxd-side__box {
    border-radius: 8px;
}

.hke-nxd-side__list a {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.5;
    padding: 8px 12px;
}

.hke-nxd-teacher-card__actions {
    flex-direction: column;
}

.hke-nxd-teacher-card__btn {
    width: 100%;
    justify-content: center;
    height: 40px;
}

@media (max-width: 575.98px) {
    .hke-nxd-tabs__nav button {
        font-size: 12px;
        padding: 0 2px;
    }

    .hke-nxd .hke-zt-breadcrumb__item--current {
        max-width: 42vw;
    }
}