html {
    scroll-padding-top: 68px;
}

.mobile-course-map {
    display: none;
}

/*
 * Keep vertical page panning available when a phone gesture starts on one of
 * the explorer's large interactive cards or tab controls. This mirrors the
 * desktop input-layer fix: controls keep their taps, while vertical movement
 * belongs to the document scroller.
 */
body,
main,
.topbar,
.hero,
.plain-summary,
.main-course,
.support-course,
.choose,
.stage-shell,
.stage-switcher,
.stage-switcher button,
.support-switcher,
.support-switcher button,
.support-panel,
.support-course-list,
.support-course-list button {
    touch-action: pan-y pinch-zoom;
}

html,
body {
    overscroll-behavior-y: auto;
    overflow-anchor: none;
}

.soft-grid,
.hero::after {
    pointer-events: none;
}

.logic-support {
    cursor: default;
}

.logic-support em {
    display: none !important;
}

/*
 * These panels change height when a stage, support direction or lesson is
 * selected. Excluding them from native scroll anchoring prevents both desktop
 * and mobile browsers from jumping the document during the React update.
 */
.stage-shell,
.stage-switcher,
.stage-detail,
.support-switcher,
.support-panel,
.support-course-list {
    overflow-anchor: none;
}

html.uiue-explorer-initial-anchor {
    scroll-behavior: auto !important;
}

.explorer-back,
.explorer-close {
    position: fixed;
    top: 16px;
    z-index: 1000;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.explorer-back {
    left: 20px;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #d8d3ca;
    border-radius: 19px;
    color: #191816;
    background: rgba(247, 245, 239, 0.94);
    box-shadow: 0 5px 18px rgba(25, 24, 22, 0.1);
    font-size: 12px;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.explorer-back span {
    font-size: 17px;
    line-height: 1;
}

.explorer-back b {
    font-weight: 700;
}

.explorer-close {
    right: 20px;
    width: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #d94b39;
    box-shadow: 0 5px 18px rgba(217, 75, 57, 0.25);
    font: 300 24px/1 Arial, sans-serif;
    cursor: pointer;
}

.explorer-back:hover,
.explorer-back:focus-visible,
.explorer-close:hover,
.explorer-close:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(25, 24, 22, 0.16);
    outline: 2px solid rgba(217, 75, 57, 0.22);
    outline-offset: 2px;
}

.topbar {
    background: rgba(255, 255, 255, 0.30) !important;
}

.topbar .brand {
    visibility: hidden;
}

.topbar nav {
    margin-right: 48px;
}

.support-profile-trigger {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 11px 18px;
    border: 1px solid rgba(217, 104, 81, 0.42);
    border-radius: 999px;
    color: #9a4d3d;
    background: #fffaf6;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.support-profile-trigger:hover,
.support-profile-trigger:focus-visible {
    color: #fffdfa;
    background: #d96851;
    outline: 2px solid rgba(217, 104, 81, 0.22);
    outline-offset: 3px;
}

html.uiue-profile-dialog-open {
    overflow: hidden;
}

.uiue-course-profile-dialog[hidden] {
    display: none;
}

.uiue-course-profile-dialog,
.uiue-course-profile-dialog * {
    box-sizing: border-box;
}

.uiue-course-profile-dialog {
    position: fixed;
    z-index: 100002;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    transition: opacity 260ms ease;
}

.uiue-course-profile-dialog.is-open,
.uiue-course-profile-dialog.is-closing {
    pointer-events: auto;
}

.uiue-course-profile-dialog.is-open {
    opacity: 1;
}

.uiue-course-profile-dialog > section {
    position: relative;
    z-index: 1;
    width: min(calc(100vw - 48px), 820px);
    max-height: 84vh;
    overflow: hidden;
    border: 1px solid rgba(37, 48, 44, 0.12);
    border-radius: 26px;
    color: #25302c;
    background: #fffdfa;
    box-shadow: 0 24px 70px rgba(18, 25, 22, 0.28);
    transform: translateY(16px) scale(0.985);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.uiue-course-profile-dialog.is-open > section {
    transform: translateY(0) scale(1);
}

.uiue-course-profile-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(21, 29, 26, 0.58);
    backdrop-filter: blur(8px);
}

.uiue-course-profile-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(37, 48, 44, 0.09);
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(18px);
}

.uiue-course-profile-header > div {
    min-width: 0;
}

.uiue-course-profile-header > div > span {
    color: #d96851;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.uiue-course-profile-header h3 {
    margin: 7px 0 0;
    color: #25302c;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.uiue-course-profile-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #25302c;
    background: #f4f3ef;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.uiue-course-profile-close:hover,
.uiue-course-profile-close:focus-visible {
    color: #fffdfa;
    background: #d96851;
    outline: 2px solid rgba(217, 104, 81, 0.22);
    outline-offset: 3px;
}

.uiue-course-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.uiue-course-profile-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #59655f;
    background: #f7eee8;
    font-size: 12px;
    line-height: 1.4;
}

.uiue-course-profile-body {
    max-height: calc(84vh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 30px;
}

.uiue-course-profile-summary {
    margin: 22px 0 0;
    color: #59655f;
    font-size: 16px;
    line-height: 1.8;
}

.uiue-course-profile-works {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #e7e1da;
    border-radius: 18px;
    background: #f8f4ef;
}

.uiue-course-profile-works[hidden] {
    display: none;
}

.uiue-course-profile-works-label {
    color: #d96851;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.uiue-course-profile-work-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.uiue-course-profile-work-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #4f5b55;
    background: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.4;
}

.uiue-course-profile-cases {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(150px, 1fr));
    gap: 10px;
    min-height: 360px;
}

.uiue-course-profile-cases figure,
.uiue-course-profile-module-media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #f4f3ef;
}

.uiue-course-profile-cases figure {
    border-radius: 16px;
}

.uiue-course-profile-cases figure:first-child {
    grid-row: 1 / 3;
}

.uiue-course-profile-cases img,
.uiue-course-profile-module-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.uiue-course-profile-cases figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    pointer-events: none;
}

.uiue-course-profile-case-info {
    display: block;
    max-width: 100%;
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(255, 255, 255, .20);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(20, 24, 28, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.uiue-course-profile-case-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .72);
}

.uiue-course-profile-modules {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.uiue-course-profile-module {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: 18px;
    background: #f7eee8;
}

.uiue-course-profile-module:nth-child(even) .uiue-course-profile-module-media {
    order: 2;
}

.uiue-course-profile-module-media {
    min-height: 190px;
}

.uiue-course-profile-module-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px;
}

.uiue-course-profile-module-label {
    color: #d96851;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.uiue-course-profile-module-copy h3,
.uiue-course-profile-teacher h4 {
    margin: 0;
    color: #25302c;
}

.uiue-course-profile-module-copy h3 {
    font-size: 19px;
    line-height: 1.4;
}

.uiue-course-profile-module-copy p,
.uiue-course-profile-teacher p {
    margin: 0;
    color: #59655f;
    line-height: 1.7;
}

.uiue-course-profile-teacher {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 20px;
    border-left: 3px solid #d96851;
    border-radius: 16px;
    background: #f4f3ef;
}

.uiue-course-profile-teacher-avatar {
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(145deg, #db7965, #b94e3c);
    border-radius: 24px;
}

.uiue-course-profile-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uiue-course-profile-teacher-copy {
    min-width: 0;
}

.uiue-course-profile-teacher-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #d96851;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.uiue-course-profile-teacher h4 {
    font-size: 20px;
    line-height: 1.4;
}

.uiue-course-profile-teacher p {
    margin-top: 8px;
}

.uiue-course-profile-teacher-role {
    display: block;
    margin-top: 3px;
    color: #7b8580;
    font-size: 13px;
    font-weight: 600;
}

.uiue-course-profile-teacher-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.uiue-course-profile-teacher-specialties span {
    padding: 5px 10px;
    color: #6f574f;
    font-size: 12px;
    line-height: 1.2;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(217, 104, 81, .16);
    border-radius: 999px;
}

[data-image-error="true"] {
    min-height: 120px;
    background: linear-gradient(135deg, #f7eee8, #f4f3ef);
}

[data-image-error="true"] img {
    opacity: 0;
}

[data-image-error="true"]::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #59655f;
    font-size: 13px;
    content: "图片暂不可用";
}

@media (max-width: 640px) {
    html {
        scroll-behavior: auto;
    }

    body {
        -webkit-overflow-scrolling: touch;
        margin: 0;
        color: #26312d;
        background: #f5f3ed;
    }

    body > main {
        display: none !important;
    }

    .mobile-course-map {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 76px 18px 42px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    .mobile-course-map *,
    .mobile-course-map *::before,
    .mobile-course-map *::after {
        box-sizing: border-box;
    }

    .mobile-map-intro {
        padding: 28px 24px 24px;
        border: 1px solid rgba(38, 49, 45, 0.13);
        border-radius: 22px;
        background: #fffdfa;
        box-shadow: 0 14px 40px rgba(46, 48, 42, 0.07);
    }

    .mobile-map-intro > p,
    .mobile-learning-line > header > span {
        margin: 0 0 12px;
        color: #d96851;
        font-size: 12px;
        font-weight: 750;
        letter-spacing: 0.12em;
    }

    .mobile-map-intro h1 {
        margin: 0;
        color: #25302c;
        font-size: 38px;
        font-weight: 720;
        line-height: 1.12;
        letter-spacing: -0.055em;
    }

    .mobile-map-intro h1 span {
        color: #d96851;
    }

    .mobile-map-rule {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-top: 23px;
        color: #25302c;
        font-size: 15px;
    }

    .mobile-map-rule b {
        padding: 9px 11px;
        border-radius: 999px;
        background: #edf2ed;
        font-weight: 700;
    }

    .mobile-map-rule i {
        color: #d96851;
        font-style: normal;
    }

    .mobile-map-intro > small {
        display: block;
        margin-top: 18px;
        color: #788079;
        font-size: 13px;
        line-height: 1.7;
    }

    .mobile-learning-line {
        margin-top: 18px;
        padding: 26px 20px 22px;
        border: 1px solid rgba(38, 49, 45, 0.13);
        border-radius: 22px;
        background: #fffdfa;
    }

    .mobile-learning-line > header h2 {
        margin: 0;
        color: #25302c;
        font-size: 30px;
        font-weight: 730;
        letter-spacing: -0.04em;
    }

    .mobile-learning-line > header p {
        margin: 9px 0 0;
        color: #737b75;
        font-size: 14px;
        line-height: 1.65;
    }

    .mobile-main-steps {
        position: relative;
        margin: 24px 0 0;
        padding: 0;
        list-style: none;
    }

    .mobile-main-steps::before {
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 19px;
        width: 2px;
        background: #e5aa99;
        content: "";
    }

    .mobile-main-steps li {
        position: relative;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 14px;
        padding: 0 0 24px;
    }

    .mobile-main-steps li:last-child {
        padding-bottom: 0;
    }

    .mobile-main-steps li > span {
        position: relative;
        z-index: 1;
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        background: #d96851;
        font-size: 12px;
        font-weight: 750;
        box-shadow: 0 0 0 5px #fffdfa;
    }

    .mobile-main-steps small {
        color: #d96851;
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-main-steps h3 {
        margin: 4px 0 0;
        color: #25302c;
        font-size: 20px;
        font-weight: 720;
        line-height: 1.35;
    }

    .mobile-main-steps p,
    .mobile-support-groups p {
        margin: 6px 0 0;
        color: #747d76;
        font-size: 14px;
        line-height: 1.65;
    }

    .mobile-main-steps em {
        display: block;
        margin-top: 5px;
        color: #9a776d;
        font-size: 12px;
        font-style: normal;
        line-height: 1.55;
    }

    .mobile-line-result {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 23px;
        padding: 16px 17px;
        border-radius: 14px;
        background: #edf2ed;
    }

    .mobile-line-result span {
        color: #69766f;
        font-size: 12px;
    }

    .mobile-line-result b {
        font-size: 15px;
        line-height: 1.5;
    }

    .mobile-line-bridge {
        display: flex;
        height: 72px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #8a8f89;
        font-size: 12px;
    }

    .mobile-line-bridge i {
        margin-top: 4px;
        color: #d96851;
        font-size: 22px;
        font-style: normal;
        line-height: 1;
    }

    .mobile-support-line {
        margin-top: 0;
    }

    .mobile-support-groups {
        display: grid;
        gap: 10px;
        margin-top: 22px;
    }

    .mobile-support-groups article {
        padding: 17px 16px;
        border: 1px solid rgba(38, 49, 45, 0.1);
        border-radius: 15px;
        background: #f8f7f2;
    }

    .mobile-support-groups article > header {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 13px;
        align-items: start;
        padding: 2px 2px 16px;
        border-bottom: 2px solid rgba(217, 104, 81, 0.2);
    }

    .mobile-support-groups article > header > span {
        display: flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        color: #d96851;
        background: #f5e6df;
        font-family: Georgia, serif;
        font-size: 18px;
        font-style: italic;
    }

    .mobile-support-groups article > header h3 {
        margin: 0;
        color: #202b27;
        font-size: 23px;
        font-weight: 800;
        letter-spacing: 0.01em;
        line-height: 1.25;
    }

    .mobile-support-groups article > header p {
        margin-top: 6px;
        color: #747d76;
        font-size: 13px;
        line-height: 1.55;
    }

    .mobile-support-courses {
        margin: 0 0 0 51px;
        padding: 0;
        list-style: none;
    }

    .mobile-support-courses li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 88px;
        gap: 12px;
        align-items: start;
        padding: 14px 0;
        border-top: 1px solid rgba(38, 49, 45, 0.1);
    }

    .mobile-support-courses li:first-child {
        border-top: 0;
    }

    .mobile-support-course-copy {
        min-width: 0;
    }

    .mobile-support-courses h4 {
        margin: 0;
        color: #25302c;
        font-size: 17px;
        font-weight: 720;
        line-height: 1.45;
    }

    .mobile-support-courses p {
        margin-top: 4px;
        font-size: 13px;
    }

    .mobile-support-courses small {
        display: block;
        margin-top: 7px;
        color: #9a6558;
        font-size: 12px;
        line-height: 1.6;
    }

    .mobile-teacher-trigger {
        display: flex;
        min-height: 72px;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        border: 1px solid rgba(217, 104, 81, 0.38);
        border-radius: 12px;
        color: #9a4d3d;
        background: #fffaf6;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.45;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-teacher-trigger:active {
        background: #f8e9e1;
        transform: translateY(1px);
    }

    .uiue-course-profile-dialog {
        align-items: flex-end;
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .uiue-course-profile-dialog > section {
        width: 100%;
        max-height: 88dvh;
        border-radius: 24px 24px 18px 18px;
        transform: translateY(28px);
    }

    .uiue-course-profile-header {
        gap: 14px;
        padding: 18px 18px 14px;
    }

    .uiue-course-profile-header h3 {
        font-size: 24px;
    }

    .uiue-course-profile-tags {
        gap: 6px;
        margin-top: 10px;
    }

    .uiue-course-profile-tags span {
        min-height: 25px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .uiue-course-profile-body {
        max-height: calc(88dvh - 104px);
        padding: 18px 18px 24px;
    }

    .uiue-course-profile-cases {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
        grid-template-rows: repeat(2, 112px);
        min-height: 234px;
    }

    .uiue-course-profile-cases figcaption {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .uiue-course-profile-case-title {
        display: none;
    }

    .uiue-course-profile-summary {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.75;
    }

    .uiue-course-profile-works {
        gap: 8px;
        margin-top: 14px;
        padding: 14px;
        border-radius: 16px;
    }

    .uiue-course-profile-work-list {
        gap: 6px;
    }

    .uiue-course-profile-work-list span {
        min-height: 25px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .uiue-course-profile-module {
        grid-template-columns: 1fr;
    }

    .uiue-course-profile-module:nth-child(even) .uiue-course-profile-module-media {
        order: 0;
    }

    .uiue-course-profile-module-media {
        min-height: 160px;
    }

    .uiue-course-profile-module-copy {
        padding: 18px;
    }

    .mobile-support-line aside {
        margin-top: 18px;
        padding: 17px 18px;
        border-left: 3px solid #d96851;
        border-radius: 0 12px 12px 0;
        background: #f9eee8;
    }

    .mobile-support-line aside b {
        color: #25302c;
        font-size: 15px;
    }

    .mobile-support-line aside p {
        margin: 6px 0 0;
        color: #68716b;
        font-size: 14px;
        line-height: 1.7;
    }

    .mobile-map-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 32px 0 8px;
        color: #7f857f;
        font-size: 12px;
    }

    .mobile-map-footer b {
        color: #25302c;
        letter-spacing: 0.12em;
    }

    .explorer-back {
        top: 10px;
        left: 12px;
        height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }

    .explorer-close {
        top: 10px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 21px;
    }

    .topbar nav {
        display: none;
    }

    .topbar {
        height: 54px;
    }

    .hero {
        display: block;
        min-height: auto;
        padding: 72px 16px 42px;
    }

    .plain-summary {
        display: none;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-copy > p:first-child {
        margin-bottom: 12px;
        font-size: 0;
    }

    .hero-copy > p:first-child::after {
        content: "课程怎么学";
        color: #de765e;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.12em;
    }

    .hero-copy h1 {
        margin: 0;
        font-size: 0;
        line-height: 1.18;
        letter-spacing: -0.05em;
    }

    .hero-copy h1 br,
    .hero-copy h1 span {
        display: none;
    }

    .hero-copy h1::before,
    .hero-copy h1::after {
        display: block;
        font-size: 38px;
        font-weight: 650;
    }

    .hero-copy h1::before {
        content: "先学主课";
    }

    .hero-copy h1::after {
        content: "再选辅课";
        color: #de765e;
    }

    .hero-intro {
        max-width: none;
        margin: 18px 0 24px;
        font-size: 0;
        line-height: 1.75;
    }

    .hero-intro::after {
        content: "照着下面两步走就可以，不需要自己研究课程顺序。";
        color: #5f6d66;
        font-size: 16px;
    }

    .hero-copy > a {
        display: none;
    }

    .logic-board {
        display: grid;
        width: 100%;
        gap: 12px;
        margin-top: 24px;
        border: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .logic-main,
    .logic-support {
        pointer-events: none;
        border: 1px solid rgba(38, 49, 45, 0.15);
        border-radius: 12px;
        background: rgba(255, 254, 251, 0.96);
        padding: 20px 18px;
        box-shadow: 0 10px 28px rgba(38, 49, 45, 0.06);
        transform: none !important;
    }

    .logic-main > span,
    .logic-support > span {
        margin-bottom: 10px;
        font-size: 0;
        letter-spacing: 0;
    }

    .logic-main > span::after,
    .logic-support > span::after {
        display: inline-grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        color: #fff;
        background: #de765e;
        font-size: 16px;
        font-weight: 700;
    }

    .logic-main > span::after {
        content: "1";
    }

    .logic-support > span::after {
        content: "2";
    }

    .logic-main strong {
        font-size: 0;
        letter-spacing: 0;
    }

    .logic-main strong::after {
        content: "按顺序学完 12 周主课";
        font-size: 21px;
        font-weight: 650;
        line-height: 1.35;
    }

    .logic-main strong i {
        display: none;
    }

    .logic-main small,
    .logic-support small {
        margin-top: 12px;
        font-size: 0;
        line-height: 1.75;
    }

    .logic-main small::after {
        content: "从第 1 周开始，一直学到第 12 周。跟着老师安排学习，不用自己挑顺序。";
        color: #5f6d66;
        font-size: 15px;
    }

    .logic-connector {
        height: auto;
        padding: 2px 6px;
    }

    .logic-connector span {
        font-size: 0;
        letter-spacing: 0;
    }

    .logic-connector span::after {
        content: "主课学完以后";
        color: #7a8580;
        font-size: 13px;
    }

    .logic-support::before {
        content: "主课学完，再选 1 门辅课";
        display: block;
        margin-bottom: 14px;
        font-size: 21px;
        font-weight: 650;
        line-height: 1.35;
    }

    .logic-support > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .logic-support > div b {
        justify-content: start;
        min-height: 58px;
        padding: 10px 13px;
        font-size: 0;
        text-align: left;
    }

    .logic-support > div b::before,
    .logic-support > div b::after {
        display: block;
        width: 100%;
    }

    .logic-support > div b::before {
        color: #68746e;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.45;
    }

    .logic-support > div b::after {
        margin-top: 3px;
        color: #26312d;
        font-size: 16px;
        font-weight: 650;
        line-height: 1.4;
    }

    .logic-support > div b:nth-child(1)::before { content: "想把某项技能练得更好"; }
    .logic-support > div b:nth-child(1)::after { content: "选“专项提升”"; }
    .logic-support > div b:nth-child(2)::before { content: "想练真实拍摄和项目交付"; }
    .logic-support > div b:nth-child(2)::after { content: "选“项目实战”"; }
    .logic-support > div b:nth-child(3)::before { content: "想做账号、接项目或创业"; }
    .logic-support > div b:nth-child(3)::after { content: "选“创业运营”"; }

    .logic-support small::after {
        content: "学习主课的同时，可按方向任选辅课；单门报名满 20 人，即进入落地规划与排期。";
        display: block;
        border-left: 3px solid #de765e;
        color: #59665f;
        background: rgba(244, 228, 220, 0.62);
        padding: 12px 13px;
        font-size: 14px;
    }

    /*
     * Mobile course details behave like an accordion: the selected course's
     * existing detail panel is placed immediately after its title. Using the
     * existing React nodes avoids duplicate click handlers and preserves the
     * desktop two-column layout.
     */
    .support-panel {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border: 0;
        background: transparent;
    }

    .support-course-list {
        display: contents;
    }

    .support-course-list button {
        position: relative;
        z-index: 1;
        border: 1px solid rgba(38, 49, 45, 0.14);
        background: #fffefb;
    }

    .support-course-list button + button {
        margin-top: -1px;
    }

    .support-course-list button:nth-child(1) { order: 10; }
    .support-course-list button:nth-child(2) { order: 30; }
    .support-course-list button:nth-child(3) { order: 50; }
    .support-course-list button:nth-child(4) { order: 70; }
    .support-course-list button:nth-child(5) { order: 90; }

    .support-course-list button.active {
        z-index: 2;
        border-color: rgba(222, 118, 94, 0.58);
        background: #eff4ef;
        box-shadow: inset 3px 0 #de765e;
    }

    .support-focus {
        order: 100;
        min-height: 0;
        border: 1px solid rgba(222, 118, 94, 0.58);
        border-top: 0;
        background: #fffaf5;
        padding: 24px 22px 26px;
        animation: none;
    }

    .support-panel:has(.support-course-list button:nth-child(1).active) .support-focus { order: 20; }
    .support-panel:has(.support-course-list button:nth-child(2).active) .support-focus { order: 40; }
    .support-panel:has(.support-course-list button:nth-child(3).active) .support-focus { order: 60; }
    .support-panel:has(.support-course-list button:nth-child(4).active) .support-focus { order: 80; }
    .support-panel:has(.support-course-list button:nth-child(5).active) .support-focus { order: 100; }

    .support-focus > p {
        margin-bottom: 10px;
    }

    .support-focus h3 {
        font-size: 34px;
    }

    .support-focus > span {
        margin-top: 12px;
        font-size: 14px;
    }

    .support-focus > div {
        margin-top: 24px;
        padding-top: 18px;
    }

    .main-course,
    .support-course,
    .choose {
        padding-top: 64px;
    }

    .main-course .section-head > div > p,
    .support-course .section-head > div > p,
    .choose .section-head > div > p {
        margin-bottom: 12px;
        font-size: 0;
    }

    .main-course .section-head > div > p::after,
    .support-course .section-head > div > p::after,
    .choose .section-head > div > p::after {
        color: #de765e;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .main-course .section-head > div > p::after {
        content: "第一步｜先学主课";
    }

    .support-course .section-head > div > p::after {
        content: "第二步｜再选辅课";
    }

    .choose .section-head > div > p::after {
        content: "不会选？看这里";
    }

    .section-head h2 {
        font-size: 36px;
        line-height: 1.15;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uiue-course-profile-dialog,
    .uiue-course-profile-dialog > section {
        transition-duration: 1ms !important;
        transform: none !important;
    }
}
