html {
    -webkit-text-size-adjust: 100%;
}

body.ce-mobile {
    margin: 0;
    min-width: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    color: #0f172a;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.ce-mobile * {
    box-sizing: border-box;
}

body.ce-mobile a {
    text-decoration: none;
}

body.ce-mobile img {
    max-width: 100%;
    display: block;
}

body.ce-mobile .header,
body.ce-mobile .nav,
body.ce-mobile .place,
body.ce-mobile .footer,
body.ce-mobile .kf_toolbar,
body.ce-mobile .step,
body.ce-mobile .home-login {
    display: none !important;
}

body.ce-mobile .row,
body.ce-mobile .row.fullpage {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.ce-mobile .pages {
    padding: 10px 0 0;
    text-align: center;
}

body.ce-mobile .pages a,
body.ce-mobile .pages strong,
body.ce-mobile .pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0 4px 8px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
    color: #475569;
    font-size: 12px;
}

body.ce-mobile .pages strong {
    color: #fff;
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.m-page {
    padding: 12px 14px calc(88px + env(safe-area-inset-bottom));
}

.m-login-page,
.m-editor-page {
    padding-bottom: 24px;
}

.m-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.m-back {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
}

.m-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.4px;
}

.m-subtitle {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.m-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: rgba(239, 246, 255, 0.95);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.m-card {
    position: relative;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        0 16px 32px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.04);
}

.m-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent 28%);
}

.m-card > * {
    position: relative;
    z-index: 1;
}

.m-empty {
    padding: 24px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.m-empty-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.m-empty-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.m-btn.primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.m-btn.ghost {
    background: #f8fafc;
    color: #64748b;
}

.m-btn.success {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.m-btn.warn {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.m-btn.danger {
    background: #fff1f2;
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.24);
}

.m-btn.full {
    width: 100%;
}

.m-chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    scrollbar-width: none;
}

.m-chip-scroll::-webkit-scrollbar {
    display: none;
}

.m-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.m-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

.m-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
}

.m-section-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.m-banner-box {
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.m-banner-box .swiper-slide img {
    width: 100%;
    height: clamp(170px, 42vw, 240px);
    object-fit: cover;
}

.m-banner-box .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.m-banner-box .swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    border-radius: 999px;
}

.m-quick-grid,
.m-links-grid,
.m-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m-quick-item,
.m-links-item,
.m-help-item {
    display: block;
    padding: 14px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.m-links-item img {
    width: 100%;
    border-radius: 12px;
}

.m-quick-item strong,
.m-links-item strong,
.m-help-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 800;
}

.m-quick-item span,
.m-links-item span,
.m-help-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.m-course-list {
    display: grid;
    gap: 14px;
}

.m-course-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
}

.m-course-thumb {
    width: 118px;
    min-width: 118px;
    height: 86px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.m-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-course-body {
    flex: 1;
    min-width: 0;
}

.m-course-title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    color: #0f172a;
}

.m-course-desc {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-course-meta,
.m-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.m-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.m-tag.price {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.m-tag.free {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.24);
}

.m-tag.info {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.m-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.m-detail-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.m-detail-cover img {
    width: 100%;
    height: clamp(190px, 46vw, 260px);
    object-fit: cover;
}

.m-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.m-tab {
    flex: 1;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.m-tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.m-tab-panel {
    display: none;
}

.m-tab-panel.active {
    display: block;
}

.m-content {
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word;
}

.m-content img,
.m-content table {
    max-width: 100% !important;
}

.m-outline-list,
.m-video-list,
.m-record-list {
    display: grid;
    gap: 10px;
}

.m-outline-item,
.m-video-item,
.m-record-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
}

.m-outline-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.m-outline-name,
.m-video-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.m-done-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
}

.m-video-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.24);
}

.m-video-item.active .m-video-name {
    color: #fff;
}

.m-video-item.active .m-done-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.m-progress-box {
    display: grid;
    gap: 10px;
}

.m-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.m-progress-row strong {
    color: #0f172a;
}

.m-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.m-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.m-player-box {
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    aspect-ratio: 16 / 9;
    min-height: 210px;
}

.m-player-box #player,
.m-player-box video {
    width: 100% !important;
    height: 100% !important;
}

.m-fixed-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.m-fixed-bar .m-btn {
    flex: 1;
}

.m-user-hero {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.m-user-main {
    flex: 1;
    min-width: 0;
}

.m-user-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.m-user-phone {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.m-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.m-status-badge.ok {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.m-status-badge.warn {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.m-grid-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.m-cell {
    display: block;
    padding: 14px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.m-cell strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 800;
}

.m-cell span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.m-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.m-info-item {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.m-info-item.full {
    grid-column: 1 / -1;
}

.m-info-item label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
}

.m-info-item div {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.7;
    word-break: break-word;
}

.m-order-list,
.m-invoice-list,
.m-cert-list {
    display: grid;
    gap: 14px;
}

.m-order-card,
.m-invoice-card,
.m-cert-card {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.m-order-head,
.m-cert-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.m-order-title,
.m-cert-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.m-cert-preview {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
    overflow: hidden;
}

.m-cert-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.m-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.m-order-status.ok {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.m-order-status.warn {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.m-order-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 12px;
}

.m-order-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.m-order-items {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.m-order-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.m-order-thumb {
    width: 92px;
    min-width: 92px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
}

.m-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-order-body {
    flex: 1;
    min-width: 0;
}

.m-order-body strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.5;
}

.m-order-body span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.m-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m-check-list {
    display: grid;
    gap: 10px;
}

.m-check-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.m-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.m-check-body {
    flex: 1;
    min-width: 0;
}

.m-check-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.m-check-desc {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.m-form-grid {
    display: grid;
    gap: 12px;
}

.m-field label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.m-field input,
.m-field select,
.m-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.96);
    background: #fff;
    font-size: 14px;
    color: #0f172a;
}

.m-field textarea {
    min-height: 92px;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
}

.m-field input[readonly] {
    background: #f8fafc;
}

.m-form-tip {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.m-article-list {
    display: grid;
    gap: 12px;
}

.m-article-item {
    display: block;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.m-article-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
}

.m-article-meta {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.m-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(226, 232, 240, 0.94);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    z-index: 30;
}

.m-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    border-radius: 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.m-tab-item i {
    font-size: 18px;
}

.m-tab-item.active {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
}

.m-tab-item:active {
    transform: scale(0.98);
}

@media (max-width: 420px) {
    .m-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .m-course-card,
    .m-order-item {
        flex-direction: column;
    }

    .m-course-thumb,
    .m-order-thumb {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .m-info-grid,
    .m-grid-links,
    .m-quick-grid,
    .m-links-grid,
    .m-help-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端首页：仅作用于手机端首页，不影响 PC 页面 */
.m-home-page {
    padding-top: 10px;
}

.m-home-banner {
    padding: 0 2px 6px;
}

.m-home-page .m-banner-viewport {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.m-home-page .m-banner-slide a {
    display: block;
}

.m-home-page .m-banner-image {
    width: 100%;
    height: clamp(160px, 42vw, 220px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.m-home-page .swiper-pagination {
    bottom: 10px !important;
}

.m-home-page .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(15, 23, 42, 0.2);
    opacity: 1;
    transition: all 0.2s ease;
}

.m-home-page .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.35);
}

.m-home-page .m-header {
    padding: 0 4px 6px;
}

.m-home-page .m-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
}

.m-home-page .m-chip-scroll {
    padding-top: 6px;
    padding-bottom: 8px;
}

.m-home-page .m-chip-scroll.sub {
    padding-top: 0;
}

.m-home-page .m-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}

.m-home-page .m-major {
    margin-top: 6px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.m-home-page .m-profession-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.m-home-page .m-profession-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m-home-page .m-profession-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.15s ease;
}

.m-home-page .m-profession-chip.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25);
}

.m-home-page .m-search input {
    flex: 1 1 160px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    color: #111827;
}

.m-home-page .m-search input:focus {
    outline: none;
    border-color: rgba(64, 158, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.m-home-page .m-search .m-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
}

.m-home-page .m-course-list {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.m-home-page .m-course-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.m-home-page .m-course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), transparent 28%);
}

.m-home-page .m-course-card > * {
    position: relative;
    z-index: 1;
}

.m-home-page .m-course-card .thumb {
    width: 120px;
    min-width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f5f7fa;
}

.m-home-page .m-course-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-home-page .m-course-card .body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m-home-page .m-course-card .title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.45;
    text-decoration: none;
}

.m-home-page .m-course-card .desc {
    font-size: 12px;
    color: #909399;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-home-page .m-course-card .m-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.m-home-page .m-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.m-home-page .m-price.free {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.m-home-page .m-price.paid {
    color: #d97706;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.m-home-page .m-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.m-home-page .m-card-actions .m-btn {
    min-width: 96px;
}

.m-home-page .m-page-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.m-home-page .m-page-actions .m-btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.m-home-page .m-page-actions.is-empty {
    margin-top: 10px;
}

.m-home-page .m-page-indicator {
    font-size: 12px;
    color: #909399;
}

.m-home-page .m-page-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 4px;
    color: #667085;
    font-size: 13px;
}

.m-home-page .m-page-size select {
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    color: #111827;
}

.m-home-page .m-page-size .total {
    color: #98a2b3;
}

.m-card-actions.compact {
    flex-wrap: nowrap;
}

.m-card-actions.compact .m-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
}

.m-order-page .m-order-card {
    padding: 0;
    overflow: hidden;
}

.m-order-summary {
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.m-order-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.m-order-metric {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.m-order-metric span {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.m-order-metric strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.m-order-metric.highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.14));
    border-color: rgba(59, 130, 246, 0.18);
}

.m-order-page .m-order-items {
    margin: 0;
    padding: 14px 16px;
}

.m-order-page .m-order-item {
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.m-order-page .m-order-body {
    display: flex;
    flex-direction: column;
}

.m-order-page .m-order-body strong {
    font-size: 14px;
}

.m-order-page .m-order-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.m-order-page .m-order-actions .m-btn {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
}

.m-course-detail-page .m-detail-hero {
    padding: 0;
    overflow: hidden;
}

.m-detail-hero-body {
    padding: 16px;
}

.m-detail-status-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.m-detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.m-detail-stat-card {
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.m-detail-stat-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.m-detail-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.m-outline-main {
    flex: 1;
    min-width: 0;
}

.m-outline-desc,
.m-video-desc {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.m-detail-fixed-bar .m-btn {
    min-height: 44px;
    font-size: 14px;
}

.m-course-learn-page .m-player-panel {
    overflow: hidden;
    padding: 0;
}

.m-player-caption {
    padding: 14px 16px 16px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.m-player-caption-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.m-player-caption-desc {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.m-learn-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.m-learn-stat-card {
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.m-learn-stat-card.accent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.14));
    border-color: rgba(59, 130, 246, 0.18);
}

.m-learn-stat-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.m-learn-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.m-learn-stat-card em {
    font-style: normal;
}

.learn-progress-bar {
    margin-top: 14px;
}

.m-video-main {
    flex: 1;
    min-width: 0;
}

.m-course-learn-page .m-video-item {
    align-items: flex-start;
}

.m-course-learn-page .m-video-item.active .m-video-desc {
    color: rgba(255, 255, 255, 0.88);
}

.m-user-hero-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
}

.m-user-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.m-user-stat-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.m-user-stat-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.m-user-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.m-grid-links.refined .m-cell {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.m-grid-links.refined .m-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    opacity: 0.9;
}

@media (max-width: 420px) {
    .m-order-metrics,
    .m-detail-stat-grid,
    .m-learn-stat-grid,
    .m-user-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m-order-page .m-order-actions {
        grid-template-columns: 1fr;
    }

    .m-card-actions.compact {
        flex-wrap: wrap;
    }

    .m-card-actions.compact .m-btn {
        flex: 1 1 calc(50% - 4px);
    }
}
