:root{--brand: #ff6a00;--brand-weak: #fff3ea;--brand-deep: #e85f00;--text: #16181c;--text-2: #4b5563;--muted: #8b93a1;--line: #eceef1;--bg: #f5f6f8;--card: #ffffff;--ok: #12a150;--radius: 14px;--shadow: 0 4px 16px rgba(17, 24, 39, .06);--nav-h: 46px;--tab-h: 56px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 -apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button,input,select,textarea{font-family:inherit;font-size:14px}.app{max-width:560px;margin:0 auto;min-height:100%;background:var(--bg);position:relative;padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom,0px))}.page{padding:0 0 20px}.page.with-nav{padding-top:var(--nav-h)}.navbar{position:fixed;top:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;height:var(--nav-h);display:flex;align-items:center;gap:8px;padding:0 12px;background:#fffffff5;-webkit-backdrop-filter:saturate(180%) blur(10px);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line);z-index:50}.navbar .title{flex:1;font-size:16px;font-weight:600;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navbar .nav-btn{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:0;background:none;color:var(--text);border-radius:10px;cursor:pointer;flex:0 0 auto}.navbar .nav-btn:active{background:#f2f3f5}.tabbar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;height:calc(var(--tab-h) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);display:flex;background:#fff;border-top:1px solid var(--line);z-index:60}.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--muted)}.tabbar a.on{color:var(--brand);font-weight:600}.tabbar svg{width:22px;height:22px}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.section{padding:16px 14px 0}.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}.section-head h3{margin:0;font-size:16px;font-weight:700}.section-head .more{font-size:12px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 18px;border:0;border-radius:999px;background:#f1f2f4;color:var(--text);font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap;flex:0 0 auto}.btn.block{width:100%}.btn.primary{background:linear-gradient(135deg,#ff8a3d,var(--brand));color:#fff}.btn.primary:active{background:var(--brand-deep)}.btn.ghost{background:#fff;border:1px solid var(--line)}.btn.sm{height:32px;padding:0 12px;font-size:13px;border-radius:999px}.btn[disabled]{opacity:.55;pointer-events:none}.price{color:#ff3b30;font-weight:700}.price .cur{font-size:12px;margin-right:1px}.price .num{font-size:19px}.origin{color:var(--muted);text-decoration:line-through;font-size:12px;margin-left:6px}.tag{display:inline-block;padding:2px 7px;border-radius:6px;background:#f2f3f5;color:var(--text-2);font-size:11px}.tag.brand{background:var(--brand-weak);color:var(--brand)}.tag.ok{background:#e7f8ee;color:var(--ok)}.muted{color:var(--muted)}.center{text-align:center}.row{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:10px}.col{display:flex;flex-direction:column}.flex1{flex:1;min-width:0}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:13px}.empty svg{width:64px;height:64px;opacity:.35;margin:0 auto 10px}.course-list{display:flex;flex-direction:column;gap:12px;padding:0 14px}.course-row{display:flex;gap:12px;background:#fff;border-radius:var(--radius);padding:10px;box-shadow:var(--shadow)}.course-row .cover{width:118px;height:74px;border-radius:10px;object-fit:cover;background:linear-gradient(135deg,#ffe3cf,#ffd0b0);flex:0 0 auto}.course-row .info{flex:1;min-width:0;display:flex;flex-direction:column}.course-row .name{font-size:14px;font-weight:600;line-height:1.4}.course-row .meta{font-size:11px;color:var(--muted);margin-top:4px}.course-row .bottom{margin-top:auto;display:flex;align-items:baseline;justify-content:space-between}.course-grid{display:grid;grid-template-columns:1fr;gap:12px;padding:0 14px}@media (min-width: 480px){.course-grid{grid-template-columns:1fr 1fr}}.course-tile{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.course-tile .cover{width:100%;aspect-ratio:16 / 9;object-fit:cover;background:linear-gradient(135deg,#ffe3cf,#ffd0b0)}.course-tile .body{padding:10px 12px 12px}.course-tile .name{font-size:14px;font-weight:600;line-height:1.4;height:40px}.course-tile .meta{font-size:11px;color:var(--muted);margin-top:6px}.hero{padding:18px 16px 26px;background:linear-gradient(160deg,#ff8a3d,#ff6a00 55%,#f25c00);color:#fff;border-radius:0 0 26px 26px;position:relative}.hero .brand{display:flex;align-items:center;gap:8px}.hero .brand img{width:30px;height:30px;border-radius:8px;object-fit:cover;background:#ffffff40}.hero h1{font-size:19px;margin:12px 0 4px;font-weight:700}.hero .slogan{font-size:12px;opacity:.9}.search{display:flex;align-items:center;gap:8px;margin-top:16px;padding:10px 14px;background:#fffffff5;border-radius:999px;color:var(--muted);font-size:13px}.search input{border:0;outline:none;background:none;flex:1;color:var(--text)}.cats{display:flex;gap:10px;overflow-x:auto;padding:12px 14px 2px;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}.cat{flex:0 0 auto;padding:7px 14px;background:#fff;border-radius:999px;font-size:13px;color:var(--text-2);box-shadow:var(--shadow);white-space:nowrap}.cat.on{background:var(--brand);color:#fff;font-weight:600}.coupon-strip{display:flex;gap:10px;overflow-x:auto;padding:0 14px;scrollbar-width:none}.coupon-strip::-webkit-scrollbar{display:none}.coupon{flex:0 0 auto;min-width:148px;padding:10px 12px;border-radius:10px;background:linear-gradient(135deg,#fff2e8,#ffe1cc);border:1px dashed #ffc39a}.coupon .v{color:#ff3b30;font-weight:700;font-size:18px}.coupon .n{font-size:11px;color:#8a5a35;margin-top:2px}.detail-cover{width:100%;aspect-ratio:16 / 9;object-fit:cover;background:#ffd9bd}.detail-head{padding:14px;background:#fff}.detail-head h2{margin:0 0 6px;font-size:18px;line-height:1.45}.detail-meta{display:flex;gap:14px;font-size:12px;color:var(--muted);margin-top:8px;flex-wrap:wrap}.price-bar{display:flex;align-items:baseline;justify-content:space-between;margin-top:12px}.tabs{display:flex;gap:6px;padding:10px 14px 0;background:#fff;position:sticky;top:var(--nav-h);z-index:20;border-bottom:1px solid var(--line)}.tabs button{flex:1;border:0;background:none;padding:8px 0 10px;font-size:14px;color:var(--muted);position:relative;cursor:pointer}.tabs button.on{color:var(--text);font-weight:700}.tabs button.on:after{content:"";position:absolute;left:50%;transform:translate(-50%);bottom:0;width:22px;height:3px;border-radius:3px;background:var(--brand)}.rich{font-size:14px;line-height:1.85;color:var(--text-2);word-break:break-word}.rich p{margin:0 0 10px}.rich ul,.rich ol{padding-left:20px;margin:0 0 10px}.chapter{border-bottom:1px solid var(--line)}.chapter:last-child{border-bottom:0}.chapter-head{padding:12px 14px;font-size:13px;font-weight:600;background:#fafbfc;display:flex;justify-content:space-between}.lesson{display:flex;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid #f6f7f8;font-size:13px}.lesson .idx{color:var(--muted);font-size:12px;width:18px}.lesson .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.lesson .t .tt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson .t .ch{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson>.tag,.lesson .lock,.lesson .dur{flex:0 0 auto;white-space:nowrap}.lesson .lock{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:3px}.lesson:active{background:#fafbfc}.teacher{display:flex;gap:12px;align-items:center;padding:14px}.teacher .av{width:46px;height:46px;border-radius:50%;background:var(--brand-weak);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex:0 0 auto;overflow:hidden}.teacher .av img{width:100%;height:100%;object-fit:cover}.buybar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#fffffffa;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;z-index:55}.buybar .left{flex:1 1 auto;min-width:58px;overflow:hidden}.buybar .btn{flex:0 1 auto;min-width:0;padding:0 13px}.buybar .price{white-space:nowrap}.form{padding:16px 14px}.field{margin-bottom:14px}.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.input{width:100%;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;outline:none;font-size:15px}.input:focus{border-color:var(--brand)}.input.with-btn{padding-right:108px}.input-wrap{position:relative}.input-wrap .code-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:34px;padding:0 12px;border:0;border-radius:8px;background:var(--brand-weak);color:var(--brand);font-size:12px;font-weight:600;cursor:pointer}.input-wrap .code-btn[disabled]{color:var(--muted);background:#f2f3f5}.auth-head{padding:40px 20px 12px;text-align:center}.auth-head h1{font-size:22px;margin:0 0 6px}.auth-head p{margin:0;color:var(--muted);font-size:13px}.auth-alt{text-align:center;font-size:13px;color:var(--muted);margin-top:18px}.auth-alt a{color:var(--brand);font-weight:600}.hint{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}.me-head{padding:22px 16px 26px;background:linear-gradient(160deg,#2b3038,#414855);color:#fff;border-radius:0 0 24px 24px;display:flex;align-items:center;gap:14px}.me-head .av{width:58px;height:58px;border-radius:50%;background:#ffffff29;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;overflow:hidden;flex:0 0 auto}.me-head .av img{width:100%;height:100%;object-fit:cover}.me-head .n{font-size:17px;font-weight:700}.me-head .p{font-size:12px;opacity:.75;margin-top:4px}.grid4{display:grid;grid-template-columns:repeat(4,1fr)}.grid4 a,.grid4 button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0;border:0;background:none;font-size:11px;color:var(--text-2);cursor:pointer}.grid4 .ico{width:38px;height:38px;border-radius:12px;background:var(--brand-weak);color:var(--brand);display:flex;align-items:center;justify-content:center}.grid4 svg{width:20px;height:20px}.list{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.list-row{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #f5f6f7;font-size:14px}.list-row:last-child{border-bottom:0}.list-row .v{margin-left:auto;color:var(--muted);font-size:13px}.stat3{display:flex;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.stat3 div{flex:1;text-align:center;padding:14px 0}.stat3 .v{font-size:18px;font-weight:700}.stat3 .k{font-size:11px;color:var(--muted)}.player-wrap{background:#000;position:relative}.player-wrap video{width:100%;max-height:56vh;display:block;background:#000}.watermark{position:absolute;color:#ffffff3d;font-size:12px;pointer-events:none;-webkit-user-select:none;user-select:none;transition:all 8s linear;white-space:nowrap;z-index:3}.player-tip{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#000000b8;color:#fff;padding:20px;text-align:center;z-index:5}.player-tip p{margin:0;font-size:13px;opacity:.85}.play-list .lesson{padding:12px 14px}.play-list .lesson.on{background:var(--brand-weak)}.play-list .lesson.on .t{color:var(--brand);font-weight:600}.pay-card{padding:16px 14px}.pay-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #f5f6f7;font-size:14px}.pay-row:last-child{border-bottom:0}.pay-row .check{width:20px;height:20px;border-radius:50%;border:1.5px solid #d5d9de;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.pay-row.on .check{border-color:var(--brand);background:var(--brand)}.pay-row.on .check:after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}.pay-row.disabled{opacity:.45}.qr-box{padding:24px 16px;text-align:center}.qr-box img{width:200px;height:200px;margin:0 auto;border-radius:12px}.qr-box .amt{font-size:22px;font-weight:700;margin:4px 0 14px}.status-badge{font-size:12px;padding:2px 8px;border-radius:6px}.status-badge.pending{background:#fff4e5;color:#c26a00}.status-badge.paid{background:#e7f8ee;color:var(--ok)}.status-badge.closed,.status-badge.refunded{background:#f2f3f5;color:var(--muted)}.mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:90;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:560px;background:#fff;border-radius:18px 18px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));max-height:76vh;overflow-y:auto;animation:up .22s ease}@keyframes up{0%{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}.sheet h3{margin:0 0 14px;font-size:16px}.sheet .close{position:absolute}.toast{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);background:#000000c7;color:#fff;padding:10px 18px;border-radius:10px;font-size:13px;z-index:200;max-width:76vw;text-align:center}.spinner{width:22px;height:22px;border:2px solid #eee;border-top-color:var(--brand);border-radius:50%;animation:spin .7s linear infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.loading{padding:40px 0}.skeleton{background:linear-gradient(90deg,#f2f3f5 25%,#e9ebee 37%,#f2f3f5 63%);background-size:400% 100%;animation:sk 1.2s ease infinite;border-radius:8px}@keyframes sk{0%{background-position:100% 50%}to{background-position:0 50%}}.progress-bar{height:4px;background:#eef0f2;border-radius:2px;overflow:hidden}.progress-bar i{display:block;height:100%;background:var(--brand);border-radius:2px}.avatar{width:34px;height:34px;border-radius:50%;background:var(--brand-weak);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;overflow:hidden;flex:0 0 auto}.avatar img{width:100%;height:100%;object-fit:cover}.divider{height:8px;background:transparent}.foot-note{text-align:center;font-size:11px;color:#b3b9c2;padding:18px 20px 6px;line-height:1.7}
