/* ============================================================
   创米轻创 · 移动端 H5 样式
   ============================================================ */
:root {
    --gold: #d7b262;
    --gold-deep: #c39a45;
    --navy: #0f1b3a;
    --navy-light: #1d2c55;
    --text: #1d1d1d;
    --text-2: #585858;
    --muted: #999;
    --price: #fd5a45;
    --bg: #f1f1f5;
    --line: #efeff3;
    --green: #08b86f;
    --radius: 10px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #e7e7ec;
    color: var(--text);
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14.4px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    border: 0;
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.app-shell {
    position: relative;
    max-width: 640px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 66px;
    background: var(--bg);
    overflow-x: hidden;
}

@media (min-width: 641px) {
    .app-shell {
        box-shadow: 0 0 40px rgba(15, 27, 58, .08);
    }
}

/* ---------------- 通用 ---------------- */
.toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 200;
    transform: translateX(-50%);
    max-width: 92%;
    padding: 9px 18px;
    border-radius: 6px;
    background: rgba(23, 23, 23, .88);
    color: #fff;
    font-size: 13.5px;
    text-align: center;
    animation: toastIn .25s ease;
}

.toast-success { background: rgba(7, 148, 94, .92); }
.toast-warn { background: rgba(196, 77, 46, .92); }

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.empty {
    padding: 70px 20px;
    text-align: center;
    color: #b0b0b8;
    background: #fff;
    font-size: 14px;
}

.empty strong {
    display: block;
    margin-bottom: 8px;
    color: #7d7d86;
    font-size: 16px;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.btn-green { background: var(--green); }
.btn-block { display: flex; width: 100%; }

/* ---------------- 顶部搜索 ---------------- */
.index-search {
    padding: 9px 12px 8px;
    background: #fff;
}

.search-form {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 4px 0 13px;
    border-radius: 999px;
    background: #f2f2f6;
}

.search-form .search-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #b3b3bb;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 14.4px;
}

.search-form input::placeholder { color: #b9b9c1; }

.search-form .search-submit {
    flex: 0 0 auto;
    height: 29px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 13.5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    cursor: pointer;
}

/* ---------------- 轮播 ---------------- */
.banner {
    position: relative;
    background: #fff;
}

.banner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.banner-track::-webkit-scrollbar { display: none; }

.banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.banner-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 710 / 330;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 9px;
    left: 50%;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}

.banner-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transition: width .2s;
}

.banner-dots i.on {
    width: 14px;
    border-radius: 4px;
    background: #fff;
}

/* ---------------- 分类宫格 ---------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 12px 7px 4px;
    background: #fff;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 2px 10px;
}

.cat-item img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.cat-item span {
    max-width: 100%;
    margin-top: 6px;
    color: #3d4145;
    font-size: 12.5px;
    line-height: 1.25;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------------- 首页广告 ---------------- */
.home-ad {
    display: block;
    background: #fff;
}

.home-ad img {
    display: block;
    width: 100%;
}

/* ---------------- 区块标题 ---------------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 12px 5px;
    background: #fff;
    color: #3e3e3e;
    font-size: 18px;
    font-weight: 700;
}

.section-title img,
.section-title .title-ico {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.section-title small {
    margin-left: auto;
    color: #b0b0b8;
    font-size: 12px;
    font-weight: 400;
}

/* ---------------- 课程列表（横向大图） ---------------- */
.course-list {
    background: #fff;
    padding: 0 12px;
}

.course-row {
    display: flex;
    gap: 12px;
    padding: 13px 0 11px;
    border-bottom: 1px solid #f3f3f6;
}

.course-row:last-child { border-bottom: 0; }

.course-row__cover {
    position: relative;
    flex: 0 0 44%;
    width: 44%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: #eef0f4;
}

.course-row__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-row__cover .corner {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 6px;
    border-radius: 7px 0 7px 0;
    background: rgba(15, 27, 58, .72);
    color: var(--gold);
    font-size: 10px;
}

.course-row__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.course-row__title {
    display: -webkit-box;
    overflow: hidden;
    color: #1d1d1d;
    font-size: 14.7px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-row__info {
    margin-top: 8px;
    color: #494949;
    font-size: 12.8px;
}

.course-row__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    color: #b3b3b3;
    font-size: 12px;
}

.course-row__price {
    color: var(--price);
    font-size: 13px;
    font-weight: 700;
}

.course-row__price.gold { color: var(--gold-deep); }

/* ---------------- 底部导航 ---------------- */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 40;
    display: flex;
    width: 100%;
    max-width: 640px;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    border-top: 1px solid #ececf0;
    background: #fff;
}

.tab-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 0 1px;
    color: #333;
    font-size: 12px;
}

.tab-icon {
    width: 25px;
    height: 25px;
    margin-bottom: 1px;
    object-fit: contain;
    filter: grayscale(1) opacity(.55);
}

.tab-item.active {
    color: #111;
    font-weight: 600;
}

.tab-item.active .tab-icon {
    filter: none;
}

/* ---------------- 客服悬浮 ---------------- */
.service-float {
    position: fixed;
    right: max(12px, calc((100vw - 640px) / 2 + 12px));
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 35;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.service-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------------- 弹窗 ---------------- */
.dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
}

.dialog-mask.show { display: flex; }

.service-card {
    position: relative;
    width: 282px;
    padding: 24px 20px 20px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.service-card h4 {
    margin: 0 0 4px;
    color: #222;
    font-size: 18px;
}

.service-card p {
    margin: 0 0 12px;
    color: #888;
    font-size: 12.5px;
}

.service-qr {
    width: 176px;
    height: 176px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
}

.service-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-tip {
    margin-top: 10px;
    color: #aaa;
    font-size: 12px;
}

.dialog-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #c8c8c8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    padding: 18px 12px 22px;
    color: #b1b1b9;
    font-size: 11.5px;
    text-align: center;
}

.site-footer p { margin: 3px 0; }

/* ---------------- 搜索/列表页 ---------------- */
.filter-bar {
    position: relative;
    display: flex;
    border-top: 1px solid #f4f4f7;
    background: #fff;
}

.filter-item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 46px;
    color: #333;
    font-size: 14.5px;
    cursor: pointer;
}

.filter-item + .filter-item {
    border-left: 1px solid #f4f4f7;
}

.filter-item .caret {
    width: 0;
    height: 0;
    border-top: 5px solid #777;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform .2s;
}

.filter-item.open .caret { transform: rotate(180deg); }

.filter-panel {
    position: absolute;
    top: 46px;
    left: 0;
    z-index: 25;
    display: none;
    width: 50%;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.filter-panel.right { left: 50%; width: 50%; }

.filter-panel.show { display: block; }

.filter-panel a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f6f6f8;
    color: #444;
    font-size: 14px;
}

.filter-panel a.on {
    color: var(--gold-deep);
    font-weight: 600;
}

.list-load-more {
    padding: 18px 12px 26px;
    background: #fff;
    text-align: center;
}

.list-load-more button {
    min-width: 140px;
    height: 38px;
    border: 1px solid #e3e3e9;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 13.5px;
    cursor: pointer;
}

.list-load-more button:disabled {
    color: #bbb;
    cursor: default;
}

/* ---------------- 分类页 ---------------- */
.cat-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 0;
    padding: 16px 10px 40px;
    background: #fff;
}

.cat-page__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px;
}

.cat-page__item img {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    object-fit: cover;
}

.cat-page__item span {
    margin-top: 9px;
    color: #3d4145;
    font-size: 13.5px;
}

/* ---------------- 课程详情 ---------------- */
.detail-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid #f2f2f5;
    background: #fff;
    color: var(--text-2);
    font-size: 16px;
}

.detail-header__title {
    position: absolute;
    left: 50%;
    max-width: 68%;
    transform: translateX(-50%);
    overflow: hidden;
    color: #1d1d1d;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: auto;
    color: #585858;
}

.icon-btn.home { margin-right: 0; margin-left: auto; }

.detail-hero {
    position: relative;
    background: #101727;
}

.detail-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 756 / 480;
    object-fit: cover;
}

.invite-entry {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    color: #3d3d3d;
    font-size: 12.5px;
    cursor: pointer;
}

.invite-entry svg { width: 15px; height: 15px; }

.detail-tabs {
    position: sticky;
    top: 46px;
    z-index: 25;
    display: flex;
    height: 43px;
    border-bottom: 1px solid #f2f2f5;
    background: #fff;
}

.detail-tabs span {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: #1d1d1d;
    font-size: 16px;
    font-weight: 700;
}

.detail-tabs span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #1d1d1d;
}

.detail-hero-search {
    position: absolute;
    right: 14px;
    bottom: -22px;
    z-index: 26;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #eee;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    color: #777;
}

.detail-title-area {
    padding: 14px 15px 12px;
    background: #fff;
}

.detail-title {
    margin: 0;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}

.detail-meta__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-type {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    background: #eef0f4;
    color: #7b8496;
}

.detail-type--video { background: #fbf3dd; color: #a9812c; }
.detail-type--article { background: #fdf1e2; color: #b36b07; }
.detail-type--pan { background: #eef0f4; color: #7b8496; }

/* 视频课程：沉浸式播放区 */
.video-hero {
    margin: 12px 12px 0;
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: linear-gradient(155deg, #101c3c 0%, #1a2c55 100%);
    box-shadow: 0 10px 24px rgba(15, 27, 58, .22);
}

.video-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.video-hero__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
}

.video-hero__count {
    padding: 1px 7px;
    border: 1px solid rgba(215, 178, 98, .35);
    border-radius: 10px;
    background: rgba(215, 178, 98, .1);
    color: #e6c887;
    font-size: 11px;
    font-weight: 400;
}

.video-episode + .video-episode {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.video-episode__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.video-episode__no {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(215, 178, 98, .14);
    color: #e6c887;
    font-size: 11px;
    font-weight: 600;
}

.video-episode__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-wrap {
    padding: 0;
}

.course-video {
    display: block;
    width: 100%;
    border-radius: 10px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-speed {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.video-speed__label {
    margin-right: 2px;
    color: #8c98b6;
    font-size: 12px;
}

.video-speed__btn {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
    color: #c9d2e6;
    font-size: 12px;
    line-height: 1.2;
}

.video-speed__btn.is-active {
    border-color: #d7b262;
    background: #d7b262;
    color: #16203a;
    font-weight: 600;
}

.video-empty {
    padding: 28px 12px;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: #98a4c0;
    text-align: center;
    font-size: 13px;
}

.video-hero .lock-box {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .05);
    color: #c9d2e6;
}

.video-hero .lock-box p {
    color: #c9d2e6;
}

.video-hero .lock-box svg {
    color: #d7b262;
}

.detail-price {
    color: var(--price);
    font-size: 14.4px;
    font-weight: 700;
}

.detail-price.gold { color: var(--gold-deep); }

.collect-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.collect-btn svg { width: 15px; height: 15px; }

.collect-btn.on { color: var(--gold-deep); }

.detail-section {
    margin-top: 8px;
    background: #fff;
}

.detail-section .section-title {
    padding: 12px 15px 4px;
    font-size: 15px;
    font-weight: 700;
}

.detail-section .section-title img { width: 20px; }

.rich-content {
    padding: 4px 15px 20px;
    color: #3d3d3d;
    font-size: 15px;
    line-height: 1.85;
}

.rich-content h2 {
    margin: 20px 0 8px;
    color: #161616;
    font-size: 16px;
    font-weight: 700;
}

.rich-content h3 {
    margin: 16px 0 6px;
    color: #1d1d1d;
    font-size: 15px;
    font-weight: 700;
}

.rich-content p { margin: 0 0 8px; }

.rich-content p:empty { display: none; }

.rich-content img { display: block; margin: 10px auto; border-radius: 6px; }

.rich-content a { color: #2e6fd8; }

.rich-collapse {
    position: relative;
    max-height: 620px;
    overflow: hidden;
}

.rich-collapse::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.rich-more {
    position: relative;
    z-index: 2;
    display: block;
    margin: -12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6a6a6a;
    font-size: 13.5px;
    cursor: pointer;
}

.resource-box {
    margin: 10px 15px 18px;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #17264c, #0d1730);
    color: #fff;
}

.resource-box h4 {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 15px;
}

.resource-box p {
    margin: 4px 0;
    color: #cfd6e5;
    font-size: 13px;
    word-break: break-all;
}

.resource-box .res-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin-top: 8px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--gold);
    color: #232323;
    font-size: 13.5px;
}

.lock-box {
    margin: 10px 15px 18px;
    padding: 16px;
    border: 1px dashed #e2d2a8;
    border-radius: 10px;
    background: #fffdf6;
    text-align: center;
}

.lock-box p {
    margin: 0 0 10px;
    color: #8d7a4d;
    font-size: 13px;
}

.lock-box .btn { height: 38px; padding: 0 26px; font-size: 13.5px; }

.recommend-grid {
    display: flex;
    gap: 9px;
    padding: 4px 15px 20px;
    background: #fff;
}

.recommend-item {
    flex: 1;
    min-width: 0;
}

.recommend-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    object-fit: cover;
    background: #eef0f4;
}

.recommend-item span {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: #333;
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 41;
    display: flex;
    width: 100%;
    max-width: 640px;
    height: 56px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    border-top: 1px solid #ececef;
    background: #fff;
}

.detail-bottom__icon {
    display: flex;
    flex: 0 0 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 11px;
}

.detail-bottom__icon svg { width: 20px; height: 20px; margin-bottom: 1px; }

.detail-bottom__btn {
    flex: 1;
    margin-left: 8px;
    border: 0;
    border-radius: 6px;
    background: var(--gold);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* ---------------- 登录注册 ---------------- */
.auth-page {
    min-height: 100vh;
    padding: 48px 16px 40px;
    background: #f1f1f5;
}

.auth-logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 34px;
    overflow: hidden;
    border-radius: 50%;
    background: #111;
}

.auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-form {
    overflow: hidden;
    border-radius: 3px;
    background: #fff;
}

.auth-field {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 14px;
    border-bottom: 1px solid #f0f0f3;
}

.auth-field svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #9a9a9a;
}

.auth-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 15px;
}

.auth-field input::placeholder { color: #a9a9b0; }

.auth-field .field-extra {
    color: var(--green);
    font-size: 13px;
}

.auth-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 4px;
    background: #07c160;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.auth-submit:active { background: #06ac56; }

.auth-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    margin-top: 14px;
    border: 1px solid #e1e4ea;
    border-radius: 4px;
    background: #fff;
    color: #07a74f;
    font-size: 15px;
}

.auth-wechat svg {
    width: 20px;
    height: 20px;
    color: #07c160;
}

.auth-wechat:active { background: #f6f7f9; }

.auth-wechat-tip {
    margin-top: 10px;
    color: #b0b0b8;
    font-size: 12px;
    text-align: center;
}

.auth-links {
    margin-top: 18px;
    color: #07a74f;
    font-size: 14px;
    text-align: center;
}

.auth-links a { color: #07a74f; }

.auth-links span { margin: 0 7px; color: #c6c6cc; }

.auth-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #fff2f0;
    color: #d43c2b;
    font-size: 13px;
}

.auth-note {
    margin-top: 26px;
    color: #b0b0b8;
    font-size: 12px;
    text-align: center;
}

/* ---------------- VIP ---------------- */
.vip-hero {
    position: relative;
    padding: 26px 20px 30px;
    background: linear-gradient(150deg, #0b1430, #233458 60%, #182341);
    color: #fff;
    overflow: hidden;
}

.vip-hero::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 178, 98, .28), transparent 65%);
}

.vip-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border: 1px solid rgba(215, 178, 98, .55);
    border-radius: 999px;
    color: var(--gold);
    font-size: 12px;
}

.vip-hero h1 {
    margin: 14px 0 8px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vip-hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.vip-hero p {
    margin: 0;
    color: #b9c3d8;
    font-size: 13px;
    line-height: 1.7;
}

.vip-hero__status {
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #e9edf6;
    font-size: 13px;
}

.vip-hero__status strong { color: var(--gold); }

.vip-block {
    margin-top: 10px;
    padding: 16px 14px 20px;
    background: #fff;
}

.vip-block h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: #2b2b2b;
    font-size: 16px;
}

.vip-block h3::before {
    content: "";
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: var(--gold);
}

.vip-plans {
    display: flex;
    gap: 9px;
}

.plan-card {
    position: relative;
    flex: 1;
    padding: 18px 4px 14px;
    border: 1.5px solid #ececf2;
    border-radius: 9px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}

.plan-card.on {
    border-color: var(--gold);
    background: #fffcf3;
    box-shadow: 0 4px 14px rgba(215, 178, 98, .18);
}

.plan-card .plan-name {
    color: #333;
    font-size: 14.5px;
    font-weight: 600;
}

.plan-card .plan-price {
    margin-top: 8px;
    color: var(--price);
    font-size: 22px;
    font-weight: 700;
}

.plan-card .plan-price small {
    margin-right: 1px;
    font-size: 12px;
    font-weight: 400;
}

.plan-card .plan-origin {
    margin-top: 3px;
    color: #b6b6bf;
    font-size: 11.5px;
    text-decoration: line-through;
}

.plan-card .plan-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 2px 7px;
    border-radius: 0 9px 0 9px;
    background: var(--gold);
    color: #fff;
    font-size: 10.5px;
}

.vip-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vip-benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f8fb;
}

.vip-benefit .tick {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--gold-deep);
}

.vip-benefit b {
    display: block;
    margin-bottom: 2px;
    color: #2c2c2c;
    font-size: 13.5px;
}

.vip-benefit span {
    color: #8f8f98;
    font-size: 12px;
    line-height: 1.5;
}

.vip-buybar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 41;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 640px;
    height: 62px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    border-top: 1px solid #ececf0;
    background: #fff;
}

.vip-buybar__price {
    flex: 0 0 auto;
    color: var(--price);
    font-size: 22px;
    font-weight: 700;
}

.vip-buybar__price small { font-size: 12px; font-weight: 400; }

.vip-buybar .btn {
    flex: 1;
    height: 46px;
    background: linear-gradient(120deg, #d7b262, #c49a45);
}

.page-vip .vip-buybar { bottom: 59px; }
.page-vip .app-shell { padding-bottom: 138px; }

/* ---------------- 我的 ---------------- */
.self-hero {
    position: relative;
    padding: 30px 20px 26px;
    background: linear-gradient(140deg, #0e1836, #24355c 65%, #182341);
    color: #fff;
}

.self-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.self-avatar {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: #fff;
}

.self-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.self-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #1a2547;
    color: var(--gold);
    font-size: 25px;
    font-weight: 700;
}

.self-info h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 600;
}

.self-info p {
    margin: 0;
    color: #aeb8cd;
    font-size: 12.5px;
}

.self-vip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    height: 23px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, #d7b262, #c49a45);
    color: #3b2c10;
    font-size: 11.5px;
    font-weight: 600;
}

.self-vip.off {
    background: rgba(255, 255, 255, .12);
    color: #d7dcea;
    font-weight: 400;
}

.self-stats {
    display: flex;
    margin-top: 22px;
    padding: 14px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.self-stats a {
    flex: 1;
    text-align: center;
}

.self-stats b {
    display: block;
    color: var(--gold);
    font-size: 18px;
}

.self-stats span {
    color: #aeb8cd;
    font-size: 12px;
}

.self-menu {
    margin-top: 10px;
    background: #fff;
}

.self-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    border-bottom: 1px solid #f4f4f7;
    color: #333;
    font-size: 14.5px;
}

.self-menu__item:last-child { border-bottom: 0; }

.self-menu__item svg {
    width: 19px;
    height: 19px;
    color: var(--gold-deep);
}

.self-menu__item .arrow {
    margin-left: auto;
    color: #c2c2ca;
    font-size: 17px;
}

.self-menu__item.danger { color: #d2503c; }

.self-menu__item.danger svg { color: #d2503c; }

/* ---------------- 订单 ---------------- */
.page-head {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 14px;
    border-bottom: 1px solid #f1f1f4;
    background: #fff;
    font-size: 16px;
}

.page-head a {
    display: flex;
    align-items: center;
    width: 32px;
    color: #585858;
}

.page-head h1 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.page-head .head-space { width: 32px; }

.order-card {
    margin-top: 8px;
    padding: 14px 15px;
    background: #fff;
}

.order-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f8;
}

.order-card__no {
    color: #a9a9b1;
    font-size: 11.5px;
}

.order-status {
    color: #999;
    font-size: 12.5px;
}

.order-status.paid { color: var(--green); }
.order-status.pending { color: #e0803d; }

.order-card__body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.order-card__body .thumb {
    flex: 0 0 74px;
    width: 74px;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    object-fit: cover;
    background: #eef0f4;
}

.order-card__title {
    flex: 1;
    color: #2c2c2c;
    font-size: 14px;
    line-height: 1.5;
}

.order-card__bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f8;
    font-size: 12.5px;
    color: #999;
}

.order-card__bottom .amount {
    color: var(--price);
    font-size: 16px;
    font-weight: 700;
}

.order-card__bottom .btn {
    height: 32px;
    padding: 0 16px;
    font-size: 12.5px;
}

.order-detail {
    margin-top: 8px;
    background: #fff;
}

.order-detail__hero {
    padding: 26px 20px;
    background: linear-gradient(140deg, #0e1836, #24355c);
    color: #fff;
    text-align: center;
}

.order-detail__hero .state {
    color: var(--gold);
    font-size: 20px;
    font-weight: 600;
}

.order-detail__hero .amount {
    margin-top: 8px;
    font-size: 32px;
    font-weight: 700;
}

.order-detail__rows {
    padding: 4px 16px 16px;
}

.order-detail__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f8;
    font-size: 13.5px;
}

.order-detail__row span { color: #999; }
.order-detail__row b { color: #333; font-weight: 400; }

.pay-tip {
    margin: 14px 16px 0;
    color: #999;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------------- 邀请卡 ---------------- */
.invite-card {
    width: 290px;
    padding: 24px 20px 18px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.invite-card h4 {
    margin: 0 0 4px;
    font-size: 18px;
}

.invite-card p {
    margin: 0 0 12px;
    color: #999;
    font-size: 12.5px;
}

#invite-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid #f2f2f5;
    border-radius: 8px;
}

.invite-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f5f5f9;
    color: #777;
    font-size: 11.5px;
}

.invite-link input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 11.5px;
}

.invite-link button {
    border: 0;
    background: transparent;
    color: var(--gold-deep);
    font-size: 12px;
    cursor: pointer;
}

/* 支付方式选择 */
.pay-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.pay-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    border: 1px solid #e3e6ec;
    border-radius: 10px;
    background: #fff;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
}

.pay-method input {
    accent-color: #07c160;
    margin: 0;
}

.pay-method:has(input:checked) {
    border-color: #07c160;
    background: #f2fbf6;
    color: #067a3d;
}

@media (max-width: 360px) {
    .course-row__title { font-size: 13.5px; }
    .cat-item img { width: 38px; height: 38px; }
    .vip-hero h1 { font-size: 20px; }
}
