.course-page-wrap {
    max-width: 1420px;
    margin: auto;
    padding: 22px 22px 76px;
}

.course-contact-trigger {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.breadcrumb {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #707a89;
    font-size: 12px;
}

.breadcrumb a:hover { color: var(--blue); }
.breadcrumb b {
    max-width: 520px;
    overflow: hidden;
    color: #505a68;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-hero,
.content-section,
.purchase-card,
.final-note {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.course-hero {
    min-height: 390px;
    padding: 46px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 50px;
    align-items: center;
}

.hero-tags {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hero-tags span,
.sale-label {
    padding: 5px 8px;
    border-radius: 4px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 10px;
}

.section-kicker {
    margin: 0 0 9px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font-size: 43px;
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.hero-copy > p:not(.section-kicker) {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-points {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.hero-points span {
    padding-left: 17px;
    position: relative;
    color: #4f5968;
    font-size: 12px;
}

.hero-points span::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}

.hero-cover {
    margin: 0;
    overflow: hidden;
    border-radius: 11px;
    background: #173060;
    box-shadow: 0 14px 34px rgba(24, 49, 102, 0.18);
}

.hero-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.course-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}

.course-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.content-section {
    padding: 42px 45px;
    scroll-margin-top: 92px;
}

.content-section h2 {
    max-width: 760px;
    margin: 0 0 21px;
    font-size: 29px;
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.markdown-copy { color: #414956; font-size: 15px; line-height: 1.9; }
.markdown-copy p { margin: 0 0 19px; }
.markdown-copy p:last-child { margin-bottom: 0; }
.markdown-copy strong { color: #28303d; }
.markdown-copy blockquote {
    margin: 29px 0 0;
    padding: 20px 22px;
    border-left: 4px solid var(--blue);
    background: #f2f6ff;
    color: #31548e;
    font-size: 16px;
    line-height: 1.75;
}
.markdown-copy blockquote p { margin: 0; }
.markdown-copy img {
    max-width: 100%;
    height: auto;
    margin: 10px auto 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
}

.section-heading {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > span { flex: 0 0 auto; color: #788291; font-size: 11px; }
.section-intro > p:first-child { margin-bottom: 16px; }
.section-intro img { width: 100%; }

.layer-list { display: grid; gap: 12px; }
.layer-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    background: #fbfcfd;
}
.layer-card.primary { border-color: #c8d7f3; background: #f7faff; }
.layer-number {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 12px;
    font-weight: 800;
}
.layer-card h3 { margin: 0 0 8px; font-size: 20px; }
.layer-card .markdown-copy { font-size: 13px; line-height: 1.7; }
.layer-card ul { margin: 17px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; list-style: none; }
.layer-card li { padding-left: 15px; position: relative; color: #4f5967; font-size: 12px; line-height: 1.55; }
.layer-card li::before { content: ""; width: 5px; height: 5px; position: absolute; left: 0; top: 0.6em; border-radius: 50%; background: #8aa5df; }
.layer-card img { width: 100%; margin-top: 18px; }

.community-copy ul {
    margin: 25px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    list-style: none;
}
.community-copy li { padding: 21px; border: 1px solid var(--line); border-radius: 8px; color: #4f5967; font-size: 13px; }
.community-copy p:last-child { padding: 15px 17px; border-radius: 7px; color: #687282; background: #f5f6f8; font-size: 12px; line-height: 1.7; }

.benefit-copy ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.benefit-copy li { min-height: 64px; padding: 13px 16px 13px 42px; border: 1px solid var(--line); border-radius: 7px; position: relative; display: flex; align-items: center; color: #424b59; font-size: 13px; line-height: 1.55; }
.benefit-copy li::before { content: "✓"; position: absolute; left: 17px; color: var(--green); font-weight: 800; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audience-grid > div { padding: 23px; border-radius: 9px; }
.audience-grid h3 { margin: 0 0 15px; font-size: 17px; }
.audience-grid ul { margin: 0; padding-left: 20px; }
.audience-grid li { margin: 9px 0; color: #4c5664; font-size: 13px; line-height: 1.6; }
.fit { border: 1px solid #cfe6d8; background: #f6fbf8; }
.not-fit { border: 1px solid #ead9d4; background: #fdf9f7; }
.fit h3 { color: #26784f; }
.not-fit h3 { color: #9a5846; }

.teacher-section { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; align-items: start; }
.teacher-avatar { width: 170px; height: 212px; border-radius: 10px; display: block; object-fit: cover; object-position: center; }
.teacher-section h2 { margin-bottom: 14px; }
.instructor-copy { font-size: 14px; line-height: 1.8; }

.feedback-copy { margin-bottom: 22px; }
.feedback-image { width: min(100%, 780px); height: auto; margin: auto; border: 1px solid var(--line); border-radius: 9px; display: block; }

.join-section { background: linear-gradient(180deg, #fff, #f8faff); }
.purchase-content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.purchase-guidance { min-width: 0; }
.purchase-copy ol { margin: 25px 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: join-step; }
.purchase-copy li { padding: 15px 15px 15px 58px; border: 1px solid var(--line); border-radius: 7px; position: relative; background: #fff; font-size: 13px; line-height: 1.6; counter-increment: join-step; }
.purchase-copy li::before { content: counter(join-step); width: 30px; height: 30px; position: absolute; left: 14px; top: 50%; border-radius: 50%; display: grid; place-items: center; transform: translateY(-50%); color: #fff; background: var(--blue); font-size: 11px; font-weight: 700; }
.purchase-qr { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.purchase-qr img { width: 100%; height: auto; display: block; }
.purchase-qr figcaption { padding: 9px 4px 2px; color: #737d8b; font-size: 10px; line-height: 1.5; text-align: center; }
.post-purchase-cta {
    width: 100%;
    min-height: 62px;
    padding: 12px 16px;
    border: 1px solid #bfd1f5;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: #36517f;
    background: #edf4ff;
    text-align: left;
    cursor: pointer;
}
.post-purchase-cta span { font-size: 12px; }
.post-purchase-cta strong { color: var(--blue); font-size: 13px; }
.post-purchase-cta:hover { border-color: #91afe9; background: #e5efff; }
.purchase-help {
    width: 100%;
    margin-top: 8px;
    padding: 7px 4px 2px;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-size: 11px;
    cursor: pointer;
}
.purchase-help:hover { text-decoration: underline; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list article { border-bottom: 1px solid var(--line); }
.faq-list h3 { margin: 0; }
.faq-list button { width: 100%; min-height: 65px; padding: 0; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; background: transparent; cursor: pointer; font-size: 14px; font-weight: 700; }
.faq-list button i { color: var(--blue); font-style: normal; font-size: 18px; font-weight: 400; }
.faq-answer { padding: 0 30px 20px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.faq-answer p { margin: 0; }

.final-note { padding: 43px 45px; color: #fff; background: linear-gradient(135deg, #1b2e58, #2864dc); }
.final-note > p { margin: 0 0 12px; color: #cbd9f8; font-size: 13px; }
.final-note h2 { max-width: 720px; margin: 0; font-size: 27px; line-height: 1.45; }
.closing-copy { margin-top: 20px; color: #e9f0ff; font-size: 14px; line-height: 1.8; }
.closing-copy p { margin: 8px 0; }
.final-note a { display: inline-block; margin-top: 22px; color: #fff; font-size: 12px; font-weight: 700; }

.purchase-sidebar { position: sticky; top: 88px; }
.purchase-card { padding: 24px; }
.sale-label { display: inline-block; }
.purchase-card h2 { margin: 18px 0; font-size: 19px; line-height: 1.45; }
.price { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price small { display: block; color: #7b8492; font-size: 10px; }
.price strong { margin-top: 6px; display: inline-block; color: #e05245; font-size: 38px; line-height: 1; }
.price strong i { font-size: 17px; font-style: normal; }
.price > span { color: #7c8694; font-size: 11px; }
.purchase-card ul { margin: 20px 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.purchase-card li { padding-left: 20px; position: relative; color: #4e5866; font-size: 12px; }
.purchase-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.primary-cta, .secondary-cta { min-height: 43px; border-radius: 7px; display: flex; justify-content: center; align-items: center; font-size: 13px; font-weight: 700; }
.primary-cta { color: #fff; background: var(--blue); }
.primary-cta:hover { background: var(--blue-dark); }
.secondary-cta { margin-top: 9px; border: 1px solid var(--line); color: #4c5766; background: #f8f9fb; }
.secondary-cta { width: 100%; font-family: inherit; cursor: pointer; }
.secondary-cta:hover { border-color: #becbe1; color: var(--blue); background: #f3f6fc; }
.purchase-card > p { margin: 17px 0 0; color: #818a97; font-size: 10px; line-height: 1.65; }
.mobile-buy { display: none; }

body.contact-modal-open { overflow: hidden; }
.contact-modal[hidden] { display: none; }
.contact-modal {
    padding: 24px;
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: rgba(17, 28, 48, 0.58);
    backdrop-filter: blur(4px);
}
.contact-dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    position: relative;
    overflow: auto;
    background: #fff;
    box-shadow: 0 28px 80px rgba(11, 25, 51, 0.3);
}
.contact-dialog > h2 { margin: 0; color: #202938; font-size: 28px; }
.contact-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    color: #647082;
    background: #f2f4f7;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.contact-close:hover { color: #273141; background: #e8ebf0; }
.contact-tabs {
    margin-top: 22px;
    padding: 4px;
    border-radius: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f3f7;
}
.contact-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 7px;
    color: #667184;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.contact-tabs button[aria-selected="true"] { color: var(--blue); background: #fff; box-shadow: 0 2px 8px rgba(28, 45, 76, 0.1); }
.contact-modal-content {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
}
.contact-copy h3 { margin: 0 0 12px; color: #252e3c; font-size: 21px; line-height: 1.4; }
.contact-copy p { margin: 0; color: #5c6675; font-size: 14px; line-height: 1.8; }
.contact-copy p strong { color: #27354d; }
.wechat-id-row {
    margin-top: 24px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    background: #fafbfc;
}
.wechat-id-row span { color: #778190; font-size: 11px; }
.wechat-id-row strong { color: #253046; font-size: 16px; letter-spacing: 0.02em; }
.wechat-id-row button {
    padding: 7px 10px;
    border: 1px solid #c8d7f3;
    border-radius: 6px;
    color: var(--blue);
    background: #f1f6ff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.contact-copy .contact-copy-status { min-height: 20px; margin-top: 7px; color: #25734c; font-size: 11px; }
.contact-qr-wrap { width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; justify-self: end; box-sizing: border-box; background: #fff; }
.contact-qr { width: 100%; height: auto; border-radius: 5px; display: block; }
.contact-qr-wrap p { margin: 9px 4px 1px; color: #778190; font-size: 10px; line-height: 1.55; text-align: center; }

@media (max-width: 1100px) {
    .course-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 35px; }
    .hero-copy h1 { font-size: 38px; }
    .course-layout { grid-template-columns: minmax(0, 1fr) 290px; }
    .content-section { padding: 36px; }
    .layer-card ul { grid-template-columns: 1fr; }
    .community-copy ul { grid-template-columns: 1fr; }
    .purchase-content { grid-template-columns: minmax(0, 1fr) 300px; }
    .purchase-card { padding: 20px; }
}

@media (max-width: 820px) {
    .course-page-wrap { padding: 16px 12px 80px; }
    .course-hero { padding: 30px; grid-template-columns: 1fr; }
    .hero-cover { max-width: 600px; }
    .course-layout { grid-template-columns: 1fr; }
    .purchase-sidebar { position: static; grid-row: 1; }
    .purchase-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 25px; }
    .purchase-card .sale-label, .purchase-card h2, .purchase-card .price, .purchase-card > p { grid-column: 1 / -1; }
    .purchase-card ul { grid-row: 4 / span 2; margin: 10px 0; }
    .primary-cta { align-self: end; }
}

@media (max-width: 560px) {
    .course-page-wrap { padding-inline: 9px; padding-bottom: 95px; }
    .breadcrumb b { max-width: 190px; }
    .course-hero { padding: 22px 18px; }
    .hero-copy h1 { font-size: 32px; }
    .hero-copy > p:not(.section-kicker) { font-size: 14px; }
    .content-section { padding: 29px 20px; }
    .content-section h2 { font-size: 25px; }
    .markdown-copy { font-size: 14px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .layer-card { padding: 19px; grid-template-columns: 40px minmax(0, 1fr); gap: 13px; }
    .layer-number { width: 36px; height: 36px; }
    .benefit-copy ul, .audience-grid { grid-template-columns: 1fr; }
    .teacher-section { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
    .teacher-avatar { width: 110px; height: 138px; }
    .purchase-content { grid-template-columns: 1fr; }
    .purchase-qr { width: 100%; max-width: 360px; margin-inline: auto; }
    .post-purchase-cta { align-items: flex-start; flex-direction: column; gap: 4px; }
    .purchase-card { display: block; }
    .purchase-card ul { margin: 20px 0; }
    .final-note { padding: 34px 22px; }
    .final-note h2 { font-size: 23px; }
    .mobile-buy { height: 64px; padding: 8px 12px; position: fixed; right: 0; bottom: 0; left: 0; z-index: 45; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.97); box-shadow: 0 -5px 18px rgba(20, 28, 42, 0.08); }
    .mobile-buy span { display: flex; flex-direction: column; }
    .mobile-buy small { color: #7a8492; font-size: 9px; }
    .mobile-buy strong { color: #e05245; font-size: 20px; }
    .mobile-buy > a { min-width: 118px; min-height: 44px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 13px; font-weight: 700; }
    .contact-modal { padding: 10px; }
    .contact-dialog { max-height: calc(100vh - 20px); padding: 24px 18px; }
    .contact-dialog > h2 { font-size: 25px; }
    .contact-close { top: 13px; right: 13px; }
    .contact-modal-content { grid-template-columns: 1fr; gap: 18px; }
    .contact-qr-wrap { width: 100%; max-width: 220px; margin-inline: auto; grid-row: 1; justify-self: center; }
    .contact-copy { grid-row: 2; }
    .wechat-id-row { grid-template-columns: auto 1fr; }
    .wechat-id-row button { grid-column: 1 / -1; min-height: 38px; }
}

@media (max-width: 350px) {
    .hero-copy h1 { font-size: 29px; }
    .teacher-section { grid-template-columns: 1fr; }
    .purchase-card h2 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
