*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%}body{font-family:Microsoft YaHei,PingFang SC,-apple-system,sans-serif;background:#f4f7fb;color:#1f2933;font-size:15px;line-height:1.6}a{color:#2d6cdf;text-decoration:none}a:hover{text-decoration:underline}.topbar{background:#0f1b2d;color:#e8eef7;padding:0 24px;height:56px;display:flex;align-items:center;gap:24px;position:sticky;top:0;z-index:20}.topbar .brand{font-size:17px;font-weight:700;letter-spacing:1px;color:#fff}.topbar .brand span{color:#5b9bff}.topbar nav{display:flex;gap:18px;flex:1}.topbar nav a{color:#b9c8de;font-size:14px;padding:6px 2px;border-bottom:2px solid transparent}.topbar nav a.router-link-active{color:#fff;border-bottom-color:#2d6cdf}.topbar .userbox{display:flex;align-items:center;gap:12px;font-size:13px;color:#b9c8de}.topbar .userbox button{background:none;border:1px solid #3d5170;color:#cfdcf0;border-radius:6px;padding:5px 14px;cursor:pointer;font-size:13px}.topbar .userbox button:hover{border-color:#2d6cdf;color:#fff}.main{max-width:1080px;margin:0 auto;padding:28px 20px 60px}.page-title{font-size:20px;font-weight:700;margin-bottom:18px}.card{background:#fff;border:1px solid #e3e9f2;border-radius:10px;padding:18px 20px;box-shadow:0 1px 3px #0f1b2d0a}.card+.card{margin-top:14px}.form-panel{max-width:400px;margin:30px auto}.form-panel-wide{max-width:540px}.form-panel .card{padding:28px 30px}.form-title{font-size:19px;font-weight:700;margin-bottom:6px}.form-sub{color:#7a8aa0;font-size:13px;margin-bottom:20px}.field{margin-bottom:16px}.field label{display:block;font-size:13px;color:#4b5a70;margin-bottom:6px}.field input,.field textarea,.field select{width:100%;padding:10px 12px;border:1px solid #d3dce8;border-radius:8px;font-size:14px;font-family:inherit;background:#fbfcfe;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:#2d6cdf;background:#fff;box-shadow:0 0 0 3px #2d6cdf1f}.field .hint{font-size:12px;color:#8a98ad;margin-top:4px}.btn{display:inline-block;background:#2d6cdf;color:#fff;border:none;border-radius:8px;padding:10px 22px;font-size:14px;cursor:pointer;transition:background .15s}.btn:hover{background:#1f56b8}.btn:disabled{background:#a9c3ee;cursor:not-allowed}.btn-block{width:100%}.btn-ghost{background:#fff;color:#2d6cdf;border:1px solid #2d6cdf}.btn-ghost:hover{background:#f0f5ff}.btn-danger{background:#d64545}.btn-danger:hover{background:#b83a3a}.btn-sm{padding:5px 12px;font-size:13px;border-radius:6px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13.5px}th,td{padding:10px 12px;text-align:left;border-bottom:1px solid #eef2f8;vertical-align:middle}th{background:#f8fafd;color:#4b5a70;font-weight:600;white-space:nowrap}tr:hover td{background:#fafcff}td .ops{display:flex;gap:6px;flex-wrap:wrap}.badge{display:inline-block;padding:2px 10px;border-radius:20px;font-size:12px;font-weight:600}.badge.pending{background:#fff4e5;color:#c47f17}.badge.approved{background:#e9f9ef;color:#1f8a4c}.badge.rejected{background:#fdecea;color:#c0392b}.badge.disabled{background:#eef0f4;color:#6b7686}.badge.admin{background:#e8f1ff;color:#1f56b8}.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.course-card{background:#fff;border:1px solid #e3e9f2;border-radius:10px;padding:20px;cursor:pointer;transition:box-shadow .15s,transform .15s}.course-card:hover{box-shadow:0 4px 14px #0f1b2d1a;transform:translateY(-2px)}.course-card h3{font-size:16px;margin-bottom:8px;color:#16324f}.course-card p{font-size:13px;color:#66788f;margin-bottom:12px;min-height:40px}.course-card .meta{font-size:12px;color:#8a98ad;display:flex;justify-content:space-between}.video-box{background:#0a0f1a;border-radius:10px;overflow:hidden;margin-bottom:18px;user-select:none;-webkit-user-select:none}.video-box video{width:100%;display:block;max-height:520px}.video-box .notice{color:#7f90a8;font-size:12px;padding:8px 14px;text-align:center}.alert{padding:12px 16px;border-radius:8px;font-size:14px;margin-bottom:14px}.alert.ok{background:#e9f9ef;color:#1f8a4c;border:1px solid #b7e6c8}.alert.err{background:#fdecea;color:#c0392b;border:1px solid #f5c6c0}.alert.info{background:#e8f1ff;color:#1f56b8;border:1px solid #b9d3ff}.empty{text-align:center;color:#8a98ad;padding:60px 0}.empty .big{font-size:42px;margin-bottom:10px}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f1b2d73;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:#fff;border-radius:12px;width:92%;max-width:560px;max-height:82vh;display:flex;flex-direction:column}.modal-head{padding:16px 20px;border-bottom:1px solid #eef2f8;font-size:16px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.modal-body{padding:18px 20px;overflow-y:auto}.modal-foot{padding:14px 20px;border-top:1px solid #eef2f8;display:flex;justify-content:flex-end;gap:10px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;align-items:center}.toolbar input,.toolbar select{padding:8px 12px;border:1px solid #d3dce8;border-radius:8px;font-size:13.5px;background:#fff}.pending-banner{background:#fff4e5;border:1px solid #f0d9a8;color:#c47f17;padding:10px 16px;border-radius:8px;font-size:13px;margin-bottom:14px}.course-cover{height:96px;border-radius:8px;margin-bottom:12px;position:relative;overflow:hidden;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center}.course-cover .cover-letter{color:#fff;font-size:34px;font-weight:800;text-shadow:0 2px 8px rgba(0,0,0,.25)}.course-cover .cover-total{position:absolute;right:8px;bottom:8px;background:#0f1b2d8c;color:#fff;font-size:11px;padding:2px 8px;border-radius:10px}.progress-row{display:flex;align-items:center;gap:8px;margin-top:10px}.progress-bar{flex:1;height:6px;background:#e6ecf5;border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:#2d6cdf;border-radius:3px;transition:width .3s}.progress-num{font-size:12px;color:#2d6cdf;font-weight:700;min-width:34px;text-align:right}.detail-hero{border-radius:12px;overflow:hidden;background-size:cover;background-position:center;box-shadow:0 2px 10px #0f1b2d14}.detail-hero.hasCover .detail-hero-mask{background:linear-gradient(180deg,#0f1b2d8c,#0f1b2dc7)}.detail-hero .detail-hero-mask{background:linear-gradient(135deg,#2d6cdf,#1f56b8);padding:26px 28px;color:#fff}.detail-hero .page-title.light{color:#fff;margin-bottom:6px}.detail-hero .hero-desc{font-size:13px;color:#ffffffd9;white-space:pre-line}.detail-hero .hero-meta{display:flex;align-items:center;gap:14px;margin:14px 0 12px;font-size:13px;flex-wrap:wrap}.detail-hero .hero-percent{color:#ffffffe6}.detail-hero .hero-bar{background:#ffffff40}.detail-hero .hero-bar .progress-fill{background:#ffd25e}.chapter-block{margin-bottom:10px}.chapter-title{font-size:15px;font-weight:700;color:#16324f;padding:8px 0 6px;border-bottom:1px solid #eef2f8}.section-block{margin:6px 0 4px 14px}.section-title{font-size:13.5px;font-weight:600;color:#4b5a70;padding:6px 0 4px}.item-row{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;cursor:pointer;font-size:13.5px;color:#33445c;transition:background .12s}.item-row:hover{background:#f0f5ff}.item-row.done{color:#8a98ad}.item-row.active{background:#e8f1ff}.item-icon{width:26px;height:26px;border-radius:6px;background:#e8f1ff;color:#1f56b8;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.item-title{flex:1}.item-dur{font-size:12px;color:#8a98ad}.item-type{font-size:12px;color:#66788f}.item-status{font-size:12px;color:#1f8a4c;font-weight:600}.item-go{color:#b9c8de}.tag{display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;background:#eef0f4;color:#6b7686}.tag.required{background:#fdecea;color:#d64545}.learn-shell{min-height:100vh;display:flex;flex-direction:column;background:#f4f7fb}.learn-topbar{background:#0f1b2d;color:#fff;padding:0 18px;height:54px;display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:20}.learn-topbar .back-link{color:#b9c8de;font-size:13px;white-space:nowrap}.learn-topbar .back-link:hover{color:#fff;text-decoration:none}.learn-course-title{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}.learn-progress{flex:1;display:flex;align-items:center;gap:8px;min-width:140px}.learn-progress .progress-bar{background:#fff3}.learn-progress .progress-num{color:#fff;min-width:30px}.learn-progress .progress-tip{color:#b9c8de;font-size:12px;white-space:nowrap}.btn.primary.small{padding:6px 14px;font-size:13px}.learn-body{flex:1;display:flex;min-height:calc(100vh - 54px)}.learn-side{width:300px;min-width:260px;background:#fff;border-right:1px solid #e3e9f2;padding:16px 12px;overflow-y:auto;max-height:calc(100vh - 54px);position:sticky;top:54px}.side-title{font-size:14px;font-weight:700;color:#16324f;margin-bottom:10px}.side-ch{margin-bottom:8px}.side-ch-title{font-size:13px;font-weight:700;color:#2c3e55;padding:5px 6px}.side-sec{margin-left:10px}.side-sec-title{font-size:12.5px;font-weight:600;color:#5a6b82;padding:4px 6px}.side-item{display:flex;align-items:center;gap:6px;padding:7px 8px;border-radius:7px;cursor:pointer;font-size:12.5px;color:#33445c;margin:2px 0}.side-item:hover{background:#f0f5ff}.side-item .t{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-item .dot{width:8px;height:8px;border-radius:50%;background:#d3dce8;flex:none}.side-item .st{width:14px;text-align:center;color:#b9c8de;font-size:12px}.side-item.in_progress .dot{background:#2d6cdf}.side-item.done .dot{background:#1f8a4c}.side-item.done{color:#8a98ad}.side-item.cur{background:#e8f1ff;color:#1f56b8;font-weight:600}.side-item.cur .dot{background:#1f56b8}.learn-main{flex:1;padding:20px 24px 40px;max-width:980px}.learn-item-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}.learn-item-head h2{font-size:18px;color:#16324f;flex:1}.learn-video{background:#0a0f1a;border-radius:10px;overflow:hidden;user-select:none;-webkit-user-select:none}.learn-video video{width:100%;display:block;max-height:560px}.learn-video .notice{color:#7f90a8;font-size:12px;padding:8px 14px;text-align:center}.learn-doc{background:#fff;border:1px solid #e3e9f2;border-radius:10px;overflow:hidden}.doc-frame{width:100%;height:70vh;border:none;display:block}.learn-rich{background:#fff;border:1px solid #e3e9f2;border-radius:10px;padding:24px 28px;min-height:40vh}.learn-rich h1,.learn-rich h2,.learn-rich h3{margin:10px 0 6px;color:#16324f}.learn-rich p{margin:6px 0}.learn-rich img{max-width:100%;border-radius:6px}.learn-rich pre{background:#f4f7fb;padding:10px 12px;border-radius:6px;overflow-x:auto}.learn-nav{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:10px}.btn.ghost{background:#fff;color:#2d6cdf;border:1px solid #2d6cdf}.btn.ghost:disabled{background:#f4f7fb;color:#a9c3ee;border-color:#d3dce8;cursor:not-allowed}.nav-tip{font-size:12px;color:#8a98ad}.mini-cover{width:46px;height:32px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#2d6cdf,#1f56b8);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:15px;flex:none}.mini-cover img{width:100%;height:100%;object-fit:cover}.editor-shell{min-height:100vh;display:flex;flex-direction:column;background:#f4f7fb}.editor-topbar{background:#0f1b2d;color:#fff;padding:0 18px;height:54px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:20}.editor-topbar .back-link{color:#b9c8de;font-size:13px;white-space:nowrap}.editor-topbar .back-link:hover{color:#fff;text-decoration:none}.editor-course-title{font-size:15px;font-weight:700;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn.primary.small,.btn.ghost.small{padding:6px 14px;font-size:13px}.btn.ghost.small{background:none;color:#cfdcf0;border:1px solid #3d5170}.btn.ghost.small:hover{border-color:#2d6cdf;color:#fff}.editor-body{flex:1;display:flex;min-height:calc(100vh - 54px)}.editor-side{width:330px;min-width:290px;background:#fff;border-right:1px solid #e3e9f2;padding:14px 12px;overflow-y:auto;max-height:calc(100vh - 54px);position:sticky;top:54px}.side-toolbar,.main-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.side-title{font-size:14px;font-weight:700;color:#16324f}.ed-ch{margin-bottom:6px}.ed-ch-head,.ed-sec{display:flex;align-items:center;gap:4px;padding:7px 8px;border-radius:7px;cursor:pointer;font-size:13px;color:#2c3e55}.ed-ch-head:hover,.ed-sec:hover{background:#f0f5ff}.ed-ch-head.sel,.ed-sec.sel{background:#e8f1ff;color:#1f56b8;font-weight:600}.ed-sec{margin-left:12px;font-size:12.5px;color:#4b5a70}.ed-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ed-ops{display:inline-flex;gap:2px;flex:none}.mini{border:none;background:none;color:#8a98ad;font-size:12px;cursor:pointer;width:22px;height:22px;border-radius:5px;line-height:1}.mini:hover{background:#e8f1ff;color:#1f56b8}.mini.danger:hover{background:#fdecea;color:#d64545}.editor-main{flex:1;padding:16px 20px 40px;max-width:920px}.item-list{display:flex;flex-direction:column;gap:8px}.ed-item{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e3e9f2;border-radius:9px;padding:10px 14px;font-size:13.5px}.ed-item .item-title{flex:1;color:#33445c}
