/* 移动学员端 */
:root{
  --navy:#0f2b5b;--navy2:#1b467f;--blue:#1f4e9c;--sky:#2e86de;--gold:#f2a63c;--orange:#e8833a;
  --green:#1e8e5a;--red:#c0392b;--ink:#1d2939;--text:#344054;--muted:#7a889b;
  --line:#e8eef7;--bg:#f4f7fb;--card:#fff;
  --shadow:0 6px 18px rgba(15,43,91,.07);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",Arial,sans-serif;background:#dfe8f4;color:var(--ink);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p{margin:0}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea{font-family:inherit}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.app{max-width:480px;min-height:100vh;margin:0 auto;background:var(--bg);position:relative;padding-bottom:76px;overflow-x:hidden;box-shadow:0 0 40px rgba(15,43,91,.1)}
.page{padding:16px 16px 8px;animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.hero{background:linear-gradient(150deg,#0b2249 0%,#0f2b5b 45%,#1d4d8c 100%);color:#fff;padding:16px 18px 54px;border-radius:0 0 24px 24px;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;border:30px solid rgba(255,255,255,.05);right:-90px;top:-100px}
.hero::after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;border:22px solid rgba(242,166,60,.08);left:-70px;bottom:-70px}
.hero-top{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.hero-top .avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#f7bf68,#e8833a);color:#0f2b5b;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex:none;border:2px solid rgba(255,255,255,.22)}
.hero-top .who strong{display:block;font-size:16px;font-weight:700;letter-spacing:.3px}
.hero-top .who span{display:block;font-size:10.5px;color:#a9c0dd;margin-top:2px}
.hero-icons{margin-left:auto;display:flex;gap:6px}
.hero-icons .hi{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;position:relative}
.hero-icons .hi .dot{position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;background:var(--gold);border:1px solid #0f2b5b}
.hero-title{margin-top:20px;position:relative;z-index:1}
.hero-title h1{font-size:22px;line-height:1.4;letter-spacing:.5px;font-weight:700}
.hero-title h1 em{font-style:normal;color:var(--gold)}
.hero-title p{font-size:11px;color:#a9c0dd;margin-top:5px;letter-spacing:.5px}
.hero-stats{display:flex;gap:8px;margin-top:18px;position:relative;z-index:1}
.hero-stat{flex:1;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:11px;padding:9px 6px;text-align:center;backdrop-filter:blur(4px)}
.hero-stat b{display:block;font-size:18px;font-weight:700;line-height:1.2}
.hero-stat span{font-size:9.5px;color:#a9c0dd}
.sheet{margin-top:-38px;padding:0 14px 4px;position:relative;z-index:2}
.card{background:var(--card);border-radius:14px;box-shadow:var(--shadow);border:1px solid rgba(232,238,247,.9)}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:16px 2px 9px}
.section-head h3{font-size:14.5px;font-weight:700;display:flex;align-items:center;gap:7px}
.section-head h3::before{content:"";width:3px;height:13px;border-radius:2px;background:linear-gradient(180deg,var(--gold),var(--orange))}
.section-head a{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:2px}
.section-head a .ic{width:13px;height:13px}
.quick{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 8px;gap:4px}
.quick-item{text-align:center;padding:3px 0;border-radius:10px}
.quick-item .qi{width:42px;height:42px;border-radius:13px;margin:0 auto 5px;display:flex;align-items:center;justify-content:center;font-size:19px}
.quick-item span{font-size:10.5px;color:#4b5a6e}
.qi.blue{background:#eaf1fb;color:#1f4e9c}.qi.gold{background:#fdf3e6;color:#c77716}.qi.green{background:#eaf6f0;color:#1e8e5a}.qi.purple{background:#f1edfb;color:#5e48a8}
.today-card{padding:13px 14px;display:flex;gap:11px;align-items:center;margin-bottom:8px}
.date-block{width:44px;height:48px;border-radius:10px;background:#eef4fc;text-align:center;flex:none;padding-top:5px}
.date-block b{display:block;font-size:17px;color:var(--blue);line-height:1.1}
.date-block span{font-size:9px;color:#8fa3bd}
.today-main{flex:1;min-width:0}
.today-main h4{font-size:12.5px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.today-main p{font-size:10.5px;color:var(--muted);margin-top:3px;display:flex;gap:8px;align-items:center}
.today-main p .ic{width:12px;height:12px}
.tag{display:inline-block;font-size:9.5px;padding:1px 7px;border-radius:20px;background:#eef4fc;color:#1f4e9c;line-height:1.7}
.tag.green{background:#eaf6f0;color:#1e8e5a}.tag.gold{background:#fdf3e6;color:#b06a10}.tag.red{background:#fdeeee;color:#b44236}.tag.gray{background:#f1f4f8;color:#7a889b}
.course-item{display:flex;gap:11px;padding:11px 13px;margin-bottom:9px}
.course-thumb{width:64px;height:64px;border-radius:10px;flex:none;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#fff}
.course-thumb .ic{width:26px;height:26px;opacity:.9}
.course-thumb .hours{position:absolute;bottom:4px;right:5px;font-size:8.5px;background:rgba(0,0,0,.28);padding:0 4px;border-radius:4px}
.course-info{flex:1;min-width:0}
.course-info h4{font-size:12.5px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:36px}
.course-info .meta{font-size:10px;color:var(--muted);margin-top:3px;display:flex;gap:7px}
.bar{height:4px;background:#edf2f9;border-radius:4px;overflow:hidden;margin-top:6px}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--sky),var(--blue));border-radius:4px}
.course-progress{display:flex;align-items:center;gap:6px;margin-top:5px}
.course-progress .bar{flex:1;margin:0}
.course-progress span{font-size:9.5px;color:var(--muted);width:28px;text-align:right}
.cover-0{background:linear-gradient(135deg,#0f2b5b,#2e6fb8)}.cover-1{background:linear-gradient(135deg,#8a4b12,#e8a03a)}.cover-2{background:linear-gradient(135deg,#1f5f4a,#3fa77f)}.cover-3{background:linear-gradient(135deg,#4a2f86,#7a63c4)}.cover-4{background:linear-gradient(135deg,#8b2c2c,#cf5d4e)}.cover-5{background:linear-gradient(135deg,#0d5b6b,#2b96a8)}
.notice-item{display:flex;gap:9px;padding:11px 13px;border-bottom:1px solid #f3f6fb;align-items:flex-start}
.notice-item:last-child{border:none}
.notice-item .nd{width:7px;height:7px;border-radius:50%;background:var(--gold);margin-top:7px;flex:none}
.notice-item h4{font-size:12px;font-weight:500;color:var(--text);line-height:1.5}
.notice-item p{font-size:9.5px;color:var(--muted);margin-top:3px}
/* 底部导航 */
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:flex;padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:60}
.tab{flex:1;text-align:center;color:#93a0b2;padding:4px 0;position:relative}
.tab .ic{width:22px;height:22px;margin:0 auto;display:block}
.tab span{font-size:9.5px;display:block;margin-top:2px;letter-spacing:.4px}
.tab.on{color:var(--navy);font-weight:600}
.tab.on::before{content:"";position:absolute;top:-6px;left:50%;transform:translateX(-50%);width:18px;height:3px;border-radius:0 0 3px 3px;background:var(--gold)}
/* 通用页头 */
.sub-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px;background:#fff;position:sticky;top:0;z-index:30}
.sub-head .back{width:32px;height:32px;border-radius:50%;background:#f2f6fb;display:flex;align-items:center;justify-content:center;flex:none}
.sub-head .back .ic{width:17px;height:17px}
.sub-head h2{font-size:16px;font-weight:700;flex:1}
.sub-head .right{font-size:11px;color:var(--muted)}
.page-title{padding:18px 16px 6px}
.page-title h1{font-size:21px;font-weight:700;letter-spacing:.4px}
.page-title p{font-size:10.5px;color:var(--muted);margin-top:3px}
.seg{display:flex;gap:5px;background:#eaf0f8;border-radius:10px;padding:3px;margin:10px 16px 4px}
.seg button{flex:1;padding:6px 0;border-radius:8px;font-size:11.5px;color:#5b6b80}
.seg button.on{background:#fff;color:var(--navy);font-weight:600;box-shadow:0 2px 6px rgba(15,43,91,.08)}
.filter-chips{display:flex;gap:7px;overflow-x:auto;padding:8px 16px 4px;scrollbar-width:none}
.filter-chips::-webkit-scrollbar{display:none}
.filter-chips .fc{flex:none;font-size:11px;padding:5px 12px;border-radius:20px;background:#fff;border:1px solid var(--line);color:#5b6b80}
.filter-chips .fc.on{background:var(--navy);border-color:var(--navy);color:#fff}
/* 考试 */
.exam-card{padding:14px;margin-bottom:10px}
.exam-card h4{font-size:13.5px;font-weight:600;line-height:1.45}
.exam-meta{display:flex;gap:10px;margin-top:7px;font-size:10px;color:var(--muted);flex-wrap:wrap}
.exam-meta span{display:flex;align-items:center;gap:3px}
.exam-meta .ic{width:12px;height:12px}
.exam-foot{display:flex;align-items:center;gap:8px;margin-top:11px;padding-top:10px;border-top:1px dashed var(--line)}
.exam-foot .score{margin-left:auto;font-size:17px;font-weight:700;color:var(--blue)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:34px;padding:0 16px;border-radius:18px;background:linear-gradient(120deg,#1f4e9c,#2e6fb8);color:#fff;font-size:12px;font-weight:500;box-shadow:0 5px 12px rgba(31,78,156,.22)}
.btn.ghost{background:#eef4fc;color:var(--blue);box-shadow:none}
.btn.gold{background:linear-gradient(120deg,#f2a63c,#e8833a);box-shadow:0 5px 12px rgba(232,131,58,.24)}
.btn.gray{background:#f0f3f8;color:#7a889b;box-shadow:none}
.btn:disabled{opacity:.55}
/* 我的 */
.mine-hero{background:linear-gradient(150deg,#0b2249,#0f2b5b 55%,#1d4d8c);padding:22px 18px 52px;color:#fff;border-radius:0 0 24px 24px;position:relative;overflow:hidden}
.mine-hero::after{content:"";position:absolute;right:-60px;top:-70px;width:200px;height:200px;border-radius:50%;border:26px solid rgba(255,255,255,.05)}
.mine-user{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.mine-user .avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#f7bf68,#e8833a);color:#0f2b5b;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;border:2px solid rgba(255,255,255,.26)}
.mine-user h2{font-size:17px;font-weight:700}
.mine-user p{font-size:10.5px;color:#a9c0dd;margin-top:2px}
.mine-stats{display:flex;margin-top:18px;position:relative;z-index:1}
.mine-stats div{flex:1;text-align:center;border-right:1px solid rgba(255,255,255,.1)}
.mine-stats div:last-child{border:none}
.mine-stats b{display:block;font-size:18px;font-weight:700}
.mine-stats span{font-size:9.5px;color:#a9c0dd}
.menu-card{margin-bottom:10px;overflow:hidden}
.menu-row{display:flex;align-items:center;gap:11px;padding:13px 14px;border-bottom:1px solid #f3f6fb;font-size:12.5px}
.menu-row:last-child{border:none}
.menu-row .mi{width:30px;height:30px;border-radius:9px;background:#eef4fc;color:var(--blue);display:flex;align-items:center;justify-content:center}
.menu-row .mi .ic{width:16px;height:16px}
.menu-row .grow{flex:1}
.menu-row .val{font-size:11px;color:var(--muted)}
.menu-row .ic.arrow{width:14px;height:14px;color:#b6c2d2}
/* 课程详情 */
.detail-cover{height:140px;border-radius:0 0 20px 20px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:18px;color:#fff;overflow:hidden}
.detail-cover::after{content:"";position:absolute;right:-30px;top:-40px;width:140px;height:140px;border-radius:50%;border:22px solid rgba(255,255,255,.08)}
.detail-cover h2{font-size:18px;line-height:1.4;position:relative;z-index:1}
.detail-cover p{font-size:10.5px;color:rgba(255,255,255,.75);margin-top:5px;position:relative;z-index:1}
.chapter{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #f3f6fb}
.chapter:last-child{border:none}
.chapter .no{width:26px;height:26px;border-radius:50%;background:#f1f5fb;color:#7a889b;display:flex;align-items:center;justify-content:center;font-size:10.5px;flex:none}
.chapter.done .no{background:#eaf6f0;color:var(--green)}
.chapter .info{flex:1;min-width:0}
.chapter h4{font-size:12px;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chapter p{font-size:9.5px;color:var(--muted);margin-top:2px}
.chapter .pt{font-size:9.5px;color:var(--muted)}
/* 播放器 */
.player-mask{position:fixed;inset:0;background:rgba(8,20,40,.72);z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade .2s}
.player{width:100%;max-width:440px;background:#fff;border-radius:16px;overflow:hidden}
.player-screen{height:190px;background:linear-gradient(140deg,#0b2249,#1d4d8c);position:relative;display:flex;align-items:center;justify-content:center;color:#fff}
.player-screen .big-play{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px)}
.player-screen .big-play .ic{width:26px;height:26px;margin-left:3px}
.player-screen .ptag{position:absolute;left:12px;top:12px;font-size:9.5px;background:rgba(255,255,255,.14);padding:3px 8px;border-radius:12px}
.player-screen .ptime{position:absolute;right:12px;bottom:10px;font-size:10px;color:rgba(255,255,255,.7)}
.player-body{padding:14px 16px 16px}
.player-body h4{font-size:13.5px;font-weight:600}
.player-body p{font-size:10.5px;color:var(--muted);margin-top:4px;line-height:1.7}
.player-actions{display:flex;gap:8px;margin-top:14px}
.player-actions .btn{flex:1}
/* 答题 */
.exam-screen{position:fixed;inset:0;max-width:480px;margin:0 auto;background:var(--bg);z-index:110;display:flex;flex-direction:column}
.exam-top{background:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.exam-top .title{flex:1;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timer{font-size:11px;color:var(--orange);font-weight:600;background:#fdf3e6;padding:4px 9px;border-radius:12px;font-variant-numeric:tabular-nums}
.timer.warn{color:var(--red);background:#fdeeee}
.exam-body{flex:1;overflow-y:auto;padding:16px}
.q-card{background:#fff;border-radius:14px;padding:16px;box-shadow:var(--shadow)}
.q-type{font-size:9.5px;color:var(--blue);background:#eef4fc;padding:2px 8px;border-radius:12px;display:inline-block}
.q-stem{font-size:14px;font-weight:500;line-height:1.7;margin-top:10px;color:var(--ink)}
.opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-top:9px;font-size:12.5px;line-height:1.6;color:var(--text);transition:.15s;background:#fbfcfe}
.opt .letter{width:22px;height:22px;border-radius:50%;background:#f0f4fa;color:#7a889b;display:flex;align-items:center;justify-content:center;font-size:10.5px;flex:none;margin-top:1px}
.opt.on{border-color:#7ba5dc;background:#f2f8ff;color:var(--blue)}
.opt.on .letter{background:var(--blue);color:#fff}
.exam-textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:12.5px;min-height:90px;resize:none;outline:none;background:#fbfcfe;margin-top:10px;line-height:1.7}
.exam-textarea:focus{border-color:#7ba5dc;background:#fff}
.exam-footer{display:flex;gap:9px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.exam-footer .btn{flex:1;height:38px}
.qnav{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;padding:4px 0 8px}
.qnav button{height:34px;border-radius:8px;background:#f1f5fb;color:#7a889b;font-size:11px}
.qnav button.done{background:#eaf6f0;color:var(--green)}
.qnav button.cur{background:var(--navy);color:#fff}
/* 结果 */
.result-card{background:#fff;border-radius:18px;padding:26px 20px;text-align:center;box-shadow:var(--shadow);margin-top:10px}
.result-score{font-size:46px;font-weight:800;color:var(--navy);line-height:1.1;letter-spacing:-2px}
.result-score small{font-size:13px;color:var(--muted);font-weight:400;letter-spacing:0}
.result-card h3{font-size:15px;margin-top:8px}
.result-card p{font-size:10.5px;color:var(--muted);margin-top:4px}
.result-stats{display:flex;margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.result-stats div{flex:1;border-right:1px solid var(--line)}
.result-stats div:last-child{border:none}
.result-stats b{display:block;font-size:15px}
.result-stats span{font-size:9.5px;color:var(--muted)}
/* 登录 */
.login{min-height:100vh;background:linear-gradient(160deg,#081c3d 0%,#0f2b5b 45%,#1d4d8c 100%);padding:40px 24px 30px;color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column}
.login::before{content:"";position:absolute;width:360px;height:360px;border-radius:50%;border:44px solid rgba(255,255,255,.04);right:-180px;top:-120px}
.login::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;border:32px solid rgba(242,166,60,.07);left:-130px;bottom:-80px}
.login-brand{display:flex;align-items:center;gap:11px;position:relative;z-index:1}
.login-logo{width:46px;height:46px;border-radius:13px;background:linear-gradient(150deg,#f7bf68,#e8833a);color:#0f2b5b;font-size:24px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(232,131,58,.3)}
.login-brand strong{display:block;font-size:19px;letter-spacing:2px;line-height:1.2}
.login-brand span{display:block;font-size:8.5px;letter-spacing:2.6px;color:#9db6d6;margin-top:3px}
.login-hero{margin:56px 0 28px;position:relative;z-index:1}
.login-hero .eyebrow{font-size:9.5px;letter-spacing:2px;color:#f5c47c;border:1px solid rgba(242,166,60,.35);border-radius:20px;padding:4px 10px;display:inline-block}
.login-hero h1{font-size:29px;line-height:1.45;margin-top:16px;font-weight:700;letter-spacing:.5px}
.login-hero h1 em{font-style:normal;color:var(--gold)}
.login-hero p{font-size:11px;color:#a9c0dd;margin-top:10px;line-height:1.8}
.login-card{background:#fff;border-radius:18px;padding:22px 18px 18px;position:relative;z-index:1;color:var(--ink);margin-top:auto}
.login-card h2{font-size:17px;font-weight:700}
.login-card .sub{font-size:10.5px;color:var(--muted);margin:3px 0 18px}
.field{margin-bottom:12px}
.field label{display:block;font-size:10.5px;color:#5b6b80;margin-bottom:5px}
.field .input{display:flex;align-items:center;gap:8px;height:42px;border:1px solid var(--line);border-radius:10px;padding:0 11px;background:#f9fbfe}
.field .input .ic{width:16px;height:16px;color:#9aabc0}
.field input{border:none;outline:none;background:transparent;flex:1;font-size:13px;color:var(--ink);height:100%}
.login-btn{width:100%;height:44px;border-radius:11px;background:linear-gradient(120deg,#1f4e9c,#2e6fb8);color:#fff;font-size:13.5px;letter-spacing:3px;font-weight:600;margin-top:8px;box-shadow:0 10px 20px rgba(31,78,156,.26)}
.login-tip{font-size:9.5px;color:var(--muted);text-align:center;margin-top:12px;line-height:1.8}
.wx-btn{width:100%;height:40px;border-radius:11px;border:1px solid #dcefe4;background:#f6fcf9;color:#1e8e5a;font-size:12px;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px}
.wx-btn .ic{width:17px;height:17px}
.login-err{font-size:10.5px;color:#ffb4a8;min-height:15px;margin-top:4px}
/* 空状态与提示 */
.empty{text-align:center;color:#9aa8ba;font-size:11.5px;padding:36px 10px}
.empty .ic{width:38px;height:38px;color:#c3cfdd;margin-bottom:8px}
.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:rgba(20,35,58,.9);color:#fff;font-size:11.5px;padding:9px 16px;border-radius:20px;z-index:200;max-width:80%;text-align:center;animation:fade .2s}
.center-load{display:flex;align-items:center;justify-content:center;height:100vh;color:#8fa3bd;font-size:12px;flex-direction:column;gap:10px}
.spinner{width:30px;height:30px;border-radius:50%;border:3px solid #dbe6f4;border-top-color:#1f4e9c;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.safe-bottom{height:8px}
