.mse-home-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.mse-public-home {
    --mse-home-content-width: min(1800px, calc(100% - clamp(32px, 4vw, 128px)));
    min-width: 0;
    background: #ffffff;
    color: #17233c;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.mse-public-home .scroll-to-top {
    display: none !important;
}

.mse-public-home #siteHeader {
    display: block;
    background: rgba(255, 255, 255, .94);
}

.mse-public-home #siteHeader .wrap {
    max-width: 1290px;
}

.mse-public-home .mse-home-page,
.mse-public-home .mse-home-page main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mse-home-loading {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #f5f9ff;
}

.mse-home-loading img {
    width: 32px;
    height: 32px;
}

.mse-home-hero {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #dbeaff;
}

.mse-home-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.mse-home-hero-copy {
    position: absolute;
    z-index: 2;
    top: 21%;
    left: 7.6%;
    width: 30%;
}

.mse-home-hero-title {
    margin: 0;
    color: #0b3e91;
    font-size: clamp(38px, 4vw, 66px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    text-shadow: 0 3px 8px rgba(255, 255, 255, .55);
}

.mse-home-hero-accent {
    display: block;
    width: 52px;
    height: 4px;
    margin: clamp(20px, 2.6vw, 38px) 0 16px;
    background: #1478f2;
    border-radius: 999px;
}

.mse-home-hero-subtitle {
    margin: 0;
    color: #243a5b;
    font-size: clamp(14px, 1.35vw, 21px);
    line-height: 1.6;
}

.mse-home-hero-panel {
    position: absolute;
    z-index: 3;
    top: 26%;
    right: 5.5%;
    width: clamp(238px, 19.2vw, 296px);
    padding: clamp(19px, 2vw, 30px);
    color: #31425f;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(48, 92, 155, .16);
    backdrop-filter: blur(8px);
}

.mse-home-hero-panel h2 {
    margin: 0 0 18px;
    color: #075bc9;
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.35;
}

.mse-home-hero-panel ul {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.mse-home-hero-panel li {
    position: relative;
    padding-left: 22px;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.45;
}

.mse-home-hero-panel li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 2px;
    width: 8px;
    height: 8px;
    background: #1478f2;
    border-radius: 50%;
}

.mse-home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mse-home-auth-button {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    color: #1473ea;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #1473ea;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mse-home-auth-button:hover,
.mse-home-auth-button:focus-visible {
    color: #075fc9;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(20, 115, 234, .18);
}

.mse-home-auth-button.is-primary {
    color: #ffffff;
    background: #1473ea;
}

.mse-home-auth-button.is-primary:hover,
.mse-home-auth-button.is-primary:focus-visible {
    color: #ffffff;
    background: #075fc9;
}

.mse-home-courses {
    padding: 0;
    background: #ffffff;
}

.mse-home-content {
    width: var(--mse-home-content-width);
    margin: 0 auto;
    padding: 28px 0 26px;
}

.mse-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mse-home-section-head h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: #17233c;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.mse-home-section-head h2 > span {
    width: 6px;
    height: 23px;
    border-radius: 999px;
    background: #1677f2;
}

.mse-home-more {
    color: #6d7789;
    font-size: 14px;
    line-height: 30px;
}

.mse-home-more:hover,
.mse-home-more:focus {
    color: #146fe8;
    text-decoration: none;
}

.mse-home-more .fa {
    margin-left: 6px;
}

.mse-public-home .course-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.mse-public-home .course-item {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: #17233c;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(41, 70, 115, .11);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mse-public-home .course-item:hover,
.mse-public-home .course-item:focus-visible {
    color: #17233c;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(41, 70, 115, .17);
}

.mse-public-home .course-item .cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #dcecff 0%, #eef6ff 52%, #d9e9ff 100%);
    box-shadow: none;
}

.mse-public-home .course-item .cover::before {
    display: none;
}

.mse-public-home .course-item .cover img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.mse-home-course-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #5a91e6;
    font-size: 42px;
}

.mse-home-course-body {
    padding: 11px 13px 13px;
}

.mse-public-home .course-item h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #17233c;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mse-home-course-foot {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.mse-home-course-price {
    flex: 0 0 auto;
    color: #43b75d;
    font-size: 13px;
    font-weight: 600;
}

.mse-home-course-price.is-paid {
    color: #ff4d4f;
}

.mse-home-empty {
    grid-column: 1 / -1;
    margin: 16px 0;
    color: #7c8798;
    text-align: center;
}

.mse-home-textbooks {
    background: #f5f9ff;
}

.mse-home-textbook-shelf {
    width: 100%;
}

.mse-home-textbook-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.mse-home-textbook-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px;
    color: #17233c;
    background: #ffffff;
    border: 1px solid #e4edf9;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(41, 70, 115, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mse-home-textbook-card:hover,
.mse-home-textbook-card:focus-visible {
    color: #1473ea;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(41, 70, 115, .16);
}

.mse-home-textbook-cover {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 5;
    margin-bottom: 11px;
    place-items: center;
    overflow: hidden;
    color: #6d9de8;
    background: linear-gradient(135deg, #dcecff, #f3f8ff);
    border-radius: 7px;
    font-size: 36px;
}

.mse-home-textbook-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mse-home-textbook-card strong {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 15px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mse-home-textbook-card > span:last-child {
    margin-top: 8px;
    color: #1473ea;
    font-size: 13px;
}

.mse-home-benefits {
    display: grid;
    width: var(--mse-home-content-width);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto 32px;
    padding: 26px 30px;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(46, 72, 112, .09);
}

.mse-home-benefit {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 22px;
}

.mse-home-benefit + .mse-home-benefit::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background: #e8edf4;
}

.mse-home-benefit-icon {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    place-items: center;
    color: #1577ee;
    background: #f2f7ff;
    border-radius: 50%;
    font-size: 31px;
}

.mse-home-benefit h2 {
    margin: 0 0 6px;
    color: #17233c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.mse-home-benefit p {
    margin: 0;
    color: #7b8494;
    font-size: 13px;
    line-height: 1.65;
}

.mse-home-lower {
    width: var(--mse-home-content-width);
    margin: 0 auto 34px;
}

.mse-home-detail-section {
    padding: 30px 0;
    border-top: 1px solid #edf1f6;
}

.mse-home-news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mse-home-news-item {
    display: block;
    min-width: 0;
    padding: 20px;
    color: #263650;
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(41, 70, 115, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mse-home-news-item:hover,
.mse-home-news-item:focus-visible {
    color: #263650;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(41, 70, 115, .12);
}

.mse-home-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
    color: #7d889b;
    font-size: 12px;
}

.mse-home-news-item h3 {
    display: -webkit-box;
    margin: 0 0 9px;
    overflow: hidden;
    color: #17233c;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mse-home-news-item p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #737f91;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mse-home-news-empty {
    grid-column: 1 / -1;
    margin: 8px 0;
    color: #7c8798;
    text-align: center;
}

.mse-home-about-card {
    min-height: 92px;
    padding: 22px 24px;
    overflow: hidden;
    color: #58667b;
    background: linear-gradient(135deg, #f7faff, #ffffff);
    border: 1px solid #e8eef7;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.mse-home-about-card > :first-child {
    margin-top: 0 !important;
}

.mse-home-about-card > :last-child {
    margin-bottom: 0 !important;
}

.mse-home-about-card img {
    max-width: 100%;
    height: auto;
}

.mse-home-platform-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid #edf1f6;
}

.mse-home-platform-nav a {
    display: flex;
    min-width: 0;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    color: #334764;
    background: #f7faff;
    border: 1px solid #e6eef9;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.mse-home-platform-nav a:hover,
.mse-home-platform-nav a:focus-visible {
    color: #106ee7;
    background: #eef6ff;
    text-decoration: none;
}

.mse-home-platform-nav .fa {
    color: #1677f2;
    font-size: 20px;
}

.mse-public-home .footer {
    padding: 19px 24px 23px;
    color: #7c8597;
    background: #ffffff;
    border-top: 1px solid #eff2f6;
    font-size: 13px;
}

.mse-public-home .footer .wrap {
    max-width: 1290px;
    justify-content: center !important;
    gap: 24px !important;
    padding: 0;
}

.mse-public-home .footer img {
    width: 18px;
    height: 18px;
}

.mse-public-home .footer p {
    color: #7c8597 !important;
}

@media (max-width: 1180px) {
    .mse-public-home .course-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mse-home-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }

    .mse-home-benefit:nth-child(3)::before {
        display: none;
    }

    .mse-home-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mse-home-platform-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mse-home-textbook-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .mse-home-hero {
        min-height: 560px;
    }

    .mse-home-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(239, 247, 255, .18), rgba(239, 247, 255, .48));
    }

    .mse-home-hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% center;
    }

    .mse-home-hero-copy {
        top: 30px;
        left: 24px;
        width: calc(100% - 48px);
    }

    .mse-home-hero-title {
        font-size: clamp(36px, 11vw, 54px);
    }

    .mse-home-hero-subtitle {
        font-size: 14px;
    }

    .mse-home-hero-panel {
        top: auto;
        right: 16px;
        bottom: 20px;
        left: 16px;
        width: auto;
        padding: 20px;
        background: rgba(255, 255, 255, .9);
    }

    .mse-home-hero-panel h2 {
        font-size: 20px;
    }

    .mse-home-hero-panel li {
        font-size: 14px;
    }

    .mse-home-content,
    .mse-home-benefits,
    .mse-home-lower {
        width: calc(100% - 32px);
    }

    .mse-home-content {
        padding-top: 22px;
    }

    .mse-public-home .course-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .mse-home-benefits {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .mse-home-benefit {
        justify-content: flex-start;
        padding: 0 10px;
    }

    .mse-home-benefit + .mse-home-benefit::before {
        top: -12px;
        right: 10px;
        bottom: auto;
        left: 10px;
        width: auto;
        height: 1px;
    }

    .mse-home-benefit:nth-child(3)::before {
        display: block;
    }

    .mse-home-news-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mse-home-hero-title {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .mse-public-home .course-gallery {
        grid-template-columns: 1fr;
    }

    .mse-home-section-head h2 {
        font-size: 20px;
    }

    .mse-home-benefit p br {
        display: none;
    }

    .mse-home-platform-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mse-home-textbook-list {
        grid-template-columns: 1fr;
    }

    .mse-public-home .footer .wrap {
        flex-direction: column;
        text-align: center;
    }
}
