@charset "UTF-8";
:root{--bg:#f3f6fb;--paper:#fff;--ink:#142846;--muted:#516581;--brand:#155bd7;--brand-dark:#10336e;--blue-soft:#e7f0ff;--gold:#7ba5e1;--line:#dce6f2;--radius:18px;--shadow:0 8px 32px #16274005;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #5695f7;outline-offset:3px}button{border:0}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.skip-link{position:fixed;left:20px;top:-60px;background:#fff;padding:12px;z-index:100}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:36px 23px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;padding:0 10px}.brand-mark{width:38px;height:42px;background:var(--brand-dark);color:#c2d5ef;border-radius:12px;display:grid;place-items:center;font-size:24px;font-weight:700;font-family:Georgia,serif}.brand strong{display:block;font-size:20px;letter-spacing:3px;line-height:1.3}.brand small{font-size:9px;letter-spacing:2px;color:#7d8ea5}.nav-caption{font-size:10px;color:#8e9cb0;letter-spacing:1.8px;margin:47px 15px 16px}.side-links{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:10px;color:#697b96;font-size:14px}.nav-link.active{background:#dfe9f6;color:var(--brand);font-weight:600}.nav-link:hover{background:#e8eff8}.nav-link .badge{margin-left:auto;padding:0 7px;border-radius:5px;background:#cad9ef;color:var(--brand);font-size:11px}.sidebar-bottom{margin-top:auto}.side-tip{border:1px solid #cfddf1;background:linear-gradient(150deg,#e5edf8,#f3f6fb);padding:16px 14px;border-radius:12px;font-size:12px;margin:28px 0 16px}.side-tip strong{display:block;font-size:13px;margin:8px 0 4px}.side-tip p{margin:0;color:#687b97}.side-tip a{display:flex;align-items:center;justify-content:space-between;color:var(--brand);margin-top:12px;font-weight:600}.side-version{font-size:10px;letter-spacing:1px;color:#93a1b5;padding-left:13px}.workspace{margin-left:232px;min-height:100vh}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 46px;border-bottom:1px solid var(--line);background:#fff}.breadcrumb{font-size:12px;color:#8796ac;display:flex;align-items:center;gap:12px}.breadcrumb b{color:#526278;font-weight:500}.top-actions{display:flex;align-items:center;gap:21px}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:transparent;color:#586980}.icon-btn:hover{background:#e4ecf7}.top-divider{height:22px;width:1px;background:#d0def2}.avatar{width:37px;height:37px;border-radius:50%;background:#d0def2;color:var(--brand);display:grid;place-items:center;font-weight:600;flex-shrink:0}.user-menu{display:flex;align-items:center;gap:10px;background:transparent;color:#455469;font-size:12px}.demo-pill{font-size:10px;color:#93652a;background:#dee7f5;padding:4px 9px;border-radius:6px;white-space:nowrap}main{max-width:1510px;margin:auto;padding:36px 46px 44px;min-height:calc(100vh - 150px)}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:2.2px;color:#8092ac;text-transform:uppercase}.page-heading h1{font-size:27px;font-weight:600;margin:5px 0 5px;letter-spacing:-.7px}.page-heading p{font-size:12px;color:var(--muted);margin:0}.today{font-size:11px;color:#7285a1;text-align:right;padding-bottom:3px}.hero{min-height:254px;background:#10459e;border-radius:18px;position:relative;overflow:hidden;color:#eff4fa;display:flex;align-items:center;padding:34px 38px;margin-bottom:24px}.hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#b8cbe615 .8px,transparent .8px);background-size:18px 18px;mask-image:linear-gradient(90deg,transparent,#000)}.hero-copy{position:relative;z-index:2;max-width:60%}.hero .eyebrow{color:#9cb1cf;font-size:9px;letter-spacing:2.5px}.hero h2{font-size:31px;line-height:1.5;font-weight:500;margin:13px 0 12px;letter-spacing:1px}.hero h2 em{font-style:normal;color:#baceeb}.hero p{font-size:12px;color:#a1b1c7;max-width:390px;margin:0 0 22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;padding:11px 17px;font-size:12px;font-weight:500;background:var(--brand);color:#fff;min-height:41px}.btn:hover{filter:brightness(1.06)}.btn.light{background:#e8f3ff;color:#13468c}.btn.outline{border:1px solid #cadaf0;background:#fff;color:#3f516a}.btn.ghost{background:transparent;color:var(--brand);padding:8px 0;min-height:auto}.btn.danger{background:#f9ece8;color:#a14e40}.btn.small{padding:7px 11px;min-height:32px;font-size:11px}.btn.full{width:100%}.hero-art{position:absolute;right:6%;top:32px;width:290px;height:220px;transform:rotate(-13deg)}.orbit{border:1px solid #9baec82a;position:absolute;border-radius:50%;inset:8px -15px;transform:rotate(45deg)}.orbit.o2{inset:20px 15px;transform:rotate(-25deg)}.glass-tile{position:absolute;border:1px solid #90a3be48;background:linear-gradient(145deg,#576e8e40,#364c6b2b);backdrop-filter:blur(6px);width:112px;height:112px;border-radius:22px;display:grid;place-items:center;box-shadow:0 18px 40px #07112025}.glass-tile.main-tile{left:85px;top:29px;width:135px;height:135px;background:linear-gradient(130deg,#b4ccefdf,#9fb7d8b8);color:#283a53;font-size:49px;font-family:Georgia,serif;letter-spacing:-3px;box-shadow:0 15px 50px #0002}.glass-tile.t1{left:13px;top:8px;width:65px;height:65px;color:#b9cae2;transform:rotate(5deg)}.glass-tile.t2{right:-14px;bottom:20px;width:75px;height:75px;color:#b9cae2}.art-star{position:absolute;right:9px;top:-5px;color:#97aed0;font-size:36px}.art-dot{position:absolute;left:35px;bottom:3px;width:7px;height:7px;background:#a1b9dc;border-radius:50%}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:32px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:18px 20px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}.stat-icon{height:42px;width:42px;background:#e4ecf7;border-radius:12px;display:grid;place-items:center;color:#4d668a}.stat:nth-child(2) .stat-icon{background:#e6edf8;color:#5882bf}.stat:nth-child(3) .stat-icon{background:#edf2fa;color:#7590b7}.stat:nth-child(4) .stat-icon{background:#f3edf7;color:#a08bac}.stat-num{font-size:25px;font-weight:500;line-height:1.2}.stat-num small{font-size:11px;color:#8293ac;margin-left:5px;font-weight:400}.stat-label{font-size:11px;color:#7889a2;margin-top:5px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 17px}.section-head h2{font-size:17px;font-weight:600;margin:0}.section-head a{font-size:11px;color:#6a7d99;display:flex;gap:6px;align-items:center}.section-head .icon{width:15px;height:15px}.content-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:23px}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.course-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;min-width:0}.course-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #21334e10}.course-cover{height:156px;background:#e3eeff;position:relative;overflow:hidden;padding:22px 24px;color:#1a4eaa}.course-cover.amber{background:#e4e8fa;color:#34467e}.cover-label{font-size:8px;letter-spacing:2px;opacity:.6}.cover-title{position:relative;z-index:2;font-size:19px;font-weight:600;line-height:1.5;margin-top:11px;max-width:75%}.cover-sub{font-size:8px;letter-spacing:1px;opacity:.5;position:absolute;bottom:19px}.cover-sculpture{position:absolute;right:9px;bottom:-28px;width:122px;height:139px;border:20px solid #9fb2ce70;border-radius:45px 45px 20px 20px;transform:rotate(-24deg)}.amber .cover-sculpture{border-color:#82a2cf50;border-radius:50%;width:132px;height:132px;right:-6px;bottom:-26px}.cover-sculpture:after{content:"";position:absolute;width:75px;height:85px;border:12px solid #e0e9f6b0;left:-45px;top:20px;border-radius:22px}.course-body{padding:19px 20px 17px}.tag{font-size:9px;display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;background:#e5edf8;color:#597397;white-space:nowrap}.tag.amber{background:#e2ebf7;color:#4674b5}.tag.red{background:#faeeeb;color:#ae6c5b}.tag.gray{background:#e6edf8;color:#7788a0}.course-body h3{font-size:15px;line-height:1.7;margin:9px 0 10px;font-weight:600}.course-meta{display:flex;align-items:center;gap:12px;color:#8495ad;font-size:10px}.course-meta .icon{width:12px;height:12px;margin-right:3px}.course-progress{margin-top:18px}.progress-caption{font-size:10px;display:flex;justify-content:space-between;color:#7286a3;margin-bottom:7px}.progress-caption strong{color:#47638b;font-weight:500}.progress-track{height:4px;background:#e2eaf6;border-radius:4px;overflow:hidden}.progress-track i{display:block;height:100%;background:#5c7aa4;border-radius:4px}.course-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:13px;font-size:10px;color:#8394ad}.course-bottom a{color:#314766;font-size:11px;font-weight:500}.rail-card{background:white;border:1px solid var(--line);border-radius:14px;padding:21px;margin-bottom:17px}.rail-card h3{font-size:13px;font-weight:600;margin:0 0 16px}.resume-mini{font-size:12px;line-height:1.8}.resume-mini small{display:block;color:#7f90a9;font-size:10px;margin:5px 0 15px}.empty-mini{font-size:11px;color:#7a8ca7;line-height:1.9}.guide-item{display:flex;gap:10px;margin-bottom:17px;font-size:11px;align-items:flex-start}.guide-item:last-child{margin-bottom:0}.guide-num{height:22px;width:22px;border-radius:7px;background:#e5edf8;color:#6f86a7;font-size:10px;display:grid;place-items:center;flex-shrink:0}.guide-item b{font-size:11px;font-weight:500}.guide-item p{font-size:10px;color:#8496af;line-height:1.8;margin:2px 0 0}.help-rail{padding:21px;background:#d5e1f3;border:1px solid #ccdbf0;border-radius:14px;color:#4a668f;font-size:11px}.help-rail h3{font-size:13px;font-weight:500;margin:8px 0}.help-rail p{opacity:.8;font-size:10px;margin-bottom:13px}.help-rail .btn{background:#eff3fa;color:#465f83;font-size:10px;border:1px solid #c4d1e3}.notice-strip{border:1px solid #d4e1f3;background:#f3f7fc;display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:10px;font-size:11px;color:#7186a3;margin-top:23px}.notice-strip .icon{width:17px;height:17px;color:#59759c}.notice-strip strong{color:#4b6386;font-weight:500}.notice-strip span{flex:1}footer{display:flex;justify-content:space-between;gap:20px;max-width:1510px;margin:auto;padding:0 46px 25px;font-size:9px;color:#61738b;letter-spacing:.4px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin:0 0 25px}.tab{background:transparent;padding:12px 0;border-bottom:2px solid transparent;color:#788aa3;font-size:12px}.tab.active{color:var(--brand);border-color:var(--brand)}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:var(--shadow)}.empty-state{text-align:center;padding:50px 20px;color:#7688a2}.empty-state .icon{height:37px;width:37px;color:#8197b6}.empty-state h3{color:#41546f;font-size:16px;font-weight:500}.empty-state p{font-size:12px;max-width:400px;margin:10px auto 20px}.detail-banner{display:grid;grid-template-columns:1fr 320px;gap:40px;border-radius:18px;padding:34px;background:#d8e4f4;border:1px solid #cddcf1;margin-bottom:25px}.detail-banner h1{font-size:30px;font-weight:550;line-height:1.55;margin:12px 0}.detail-banner p{font-size:12px;color:#5e7494}.detail-side{display:flex;flex-direction:column;justify-content:center;border-left:1px solid #c4d0e2;padding-left:30px}.detail-side .tag{align-self:flex-start;margin-bottom:16px}.detail-side small{font-size:11px;color:#627b9e;margin:12px 0 0}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px}.chapter-title{font-size:12px;font-weight:500;color:#627b9e;background:#f1f5fb;padding:10px 14px;border-radius:8px;margin:18px 0 8px}.lesson-row{display:flex;gap:14px;align-items:center;padding:16px 10px;border-bottom:1px solid #e5edf8}.lesson-row:last-child{border:0}.lesson-number{width:32px;height:32px;display:grid;place-items:center;background:#ebf1f9;border-radius:9px;font-size:11px;color:#798ead}.lesson-name{flex:1;min-width:0;font-size:13px}.lesson-name small{display:block;color:#8295af;font-size:10px;margin-top:3px}.lesson-row .btn{font-size:10px}.prose{white-space:pre-wrap;color:#5a6f8c;line-height:2.1;font-size:12px}.prose h3{white-space:normal;color:#374962;font-size:14px}.material-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid #e2eaf6;padding:15px 0}.file-icon{height:39px;width:35px;border-radius:7px;background:#e3ebf7;color:#5977a2;display:grid;place-items:center;font-size:9px;font-weight:600}.material-info{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}.material-info small{display:block;font-size:10px;color:#7d90ac;margin-top:3px}.material-row .icon-btn{flex-shrink:0}.activation-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;max-width:930px;margin:30px auto}.activation-visual{background:#172841;border-radius:20px;color:#cbdaf0;min-height:390px;padding:40px;position:relative;overflow:hidden}.activation-visual .icon{height:44px;width:44px;stroke-width:1}.activation-visual h2{font-size:29px;font-weight:500;line-height:1.6;margin:27px 0 18px}.activation-visual p{font-size:12px;color:#a1b1c8;line-height:2}.activation-visual:after{content:"";width:250px;height:250px;border:40px solid #647ea220;position:absolute;border-radius:65px;right:-95px;bottom:-85px;transform:rotate(30deg)}.activation-form{align-self:center}.activation-form h2{font-size:22px;font-weight:500;margin:0 0 8px}.activation-form>p{font-size:12px;color:#7689a5;margin-bottom:24px}.field{display:block;margin-bottom:18px;font-size:11px;color:#5b708e}.field>span{display:block;margin-bottom:7px}.field input,.field textarea,.field select,.input{width:100%;border:1px solid #cddbf0;border-radius:8px;padding:11px 12px;background:#fff;color:#293950;min-height:42px}.field textarea{resize:vertical;min-height:95px}.field input::placeholder,.field textarea::placeholder{color:#9fadc1}.field input.code-input{text-transform:uppercase;letter-spacing:2px;font-family:ui-monospace,monospace;font-size:16px;padding:15px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.inline-input{display:flex;gap:8px}.inline-input input{min-width:0}.inline-input button{white-space:nowrap}.form-note{font-size:11px;color:#7a8da8;line-height:1.9;margin:15px 0}.form-note a{text-decoration:underline}.login-card{max-width:440px;margin:30px auto}.login-card h2{font-size:23px;font-weight:500}.login-card>p{font-size:12px;color:#7689a4}.login-card .tabs{margin-top:22px}.status-banner{border:1px solid #c5d6ee;background:#edf2fa;border-radius:9px;padding:12px 15px;color:#5275a6;font-size:11px;margin-bottom:20px}.status-banner.success{border-color:#c3d1e6;background:#e8eff8;color:#476692}.account-grid{display:grid;grid-template-columns:340px 1fr;gap:24px}.identity{display:flex;gap:17px;align-items:center;margin-bottom:28px}.identity .avatar{height:60px;width:60px;font-size:22px}.identity h2{font-size:18px;margin:0}.identity small{font-size:10px;color:#8495ad}.settings-line{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid #e2ebf7;font-size:12px}.settings-line small{display:block;color:#8295b0;font-size:10px}.settings-line:last-child{border:0}.permission-card{border:1px solid var(--line);border-radius:10px;padding:17px;margin-top:13px}.permission-card strong{font-size:13px}.permission-card p{font-size:11px;color:#7287a4;margin:8px 0}.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.help-grid h3{font-size:14px;margin:0 0 10px}.help-grid p{font-size:12px;color:#7286a3;line-height:2}.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:23px}.player-title{font-size:20px;font-weight:500;margin:10px 0 20px}.video-shell{background:#08182e;border-radius:14px;overflow:hidden;position:relative;aspect-ratio:16/9;width:100%;display:grid;place-items:center}.video-shell video{width:100%;height:100%;background:#081423;display:block}.watermark{position:absolute;pointer-events:none;color:#fff9;text-shadow:0 1px 3px #0008;font-size:clamp(9px,1vw,13px);z-index:5;white-space:nowrap;left:8%;top:10%;transition:left 1.8s ease,top 1.8s ease;user-select:none}.video-error{color:#c6d4e7;padding:30px;text-align:center;font-size:12px}.player-toolbar{display:flex;align-items:center;gap:10px;margin:14px 0 20px;font-size:11px;color:#7286a3;flex-wrap:wrap}.player-toolbar select{border:1px solid #c9d9ef;padding:7px 10px;border-radius:7px;background:white;color:#496080}.player-toolbar .spacer{flex:1}.playlist{max-height:530px;overflow:auto}.playlist .lesson-row{padding:13px 0;gap:8px}.playlist .lesson-name{font-size:11px}.playlist .lesson-number{width:25px;height:25px;font-size:9px}.playlist .lesson-row.current{background:#e5edf8;border-radius:7px;padding-left:8px;padding-right:8px}.playlist .btn{padding:5px;min-height:24px}.player-save{font-size:10px;color:#7087a8}.admin-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.admin-heading h1{font-size:25px;margin:0;font-weight:500}.admin-heading p{font-size:12px;color:#7588a4;margin:6px 0}.admin-course{display:flex;gap:20px;align-items:center;margin-bottom:17px}.admin-course .mini-cover{width:100px;height:88px;background:#d2dff2;display:grid;place-items:center;border-radius:10px;color:#5a78a2;font-size:27px;font-family:Georgia,serif;flex-shrink:0}.admin-course .mini-cover.amber{background:#d1dff2;color:#5b80b5}.admin-course .info{flex:1;min-width:0}.admin-course h3{font-size:15px;margin:0 0 6px}.admin-course p{font-size:11px;color:#7c90ac;margin:0}.button-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}.data-table th{text-align:left;font-size:10px;color:#7f91ac;background:#eff3fa;padding:12px 13px;font-weight:500}.data-table td{padding:16px 13px;border-bottom:1px solid #e1eaf6;color:#5a708f}.data-table td strong{font-size:12px;color:#354965;font-weight:500}.data-table td small{display:block;font-size:9px;color:#8597b2;margin-top:3px}.data-table .actions{display:flex;gap:10px}.text-btn{background:transparent;color:var(--brand);font-size:11px;padding:0}.text-btn.red{color:#b37561}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.search-input{max-width:310px;position:relative;flex:1;min-width:180px}.search-input .icon{position:absolute;top:12px;left:12px;width:17px;height:17px;color:#8a9cb5}.search-input input{padding-left:37px}.stat-mini{font-size:11px;color:#8092ad}.audit-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #e2ebf7}.audit-dot{width:7px;height:7px;background:#a4b7d1;border-radius:50%;margin-top:7px;flex-shrink:0}.audit-row strong{font-size:12px;font-weight:500}.audit-row p{font-size:10px;color:#7b8fab;margin:3px 0 0;overflow-wrap:anywhere}.audit-row time{font-size:9px;color:#8c9db6;margin-left:auto;white-space:nowrap}.service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:25px}.service{border:1px solid var(--line);border-radius:10px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.service-dot{height:7px;width:7px;border-radius:50%;background:#d5b27c;display:inline-block;margin-right:7px}.service-dot.on{background:#6988b5}.admin-editor{display:grid;grid-template-columns:1fr 1fr;gap:24px}.check{display:flex;align-items:center;gap:8px;font-size:12px;color:#576f91;margin:12px 0}.check input{accent-color:var(--brand);width:16px;height:16px}.lesson-admin{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--line)}.lesson-admin>div:first-child{flex:1;min-width:160px;font-size:12px}.lesson-admin small{font-size:10px;color:#8092ad;display:block}.upload-label{position:relative;overflow:hidden;cursor:pointer}.upload-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload-progress{width:100%;font-size:11px;color:#6a82a5}.code-box{background:#ebf1f9;border:1px solid #d4e1f3;border-radius:9px;padding:15px;max-height:170px;overflow:auto;font-family:ui-monospace,monospace;font-size:12px;white-space:pre-wrap}.qr-image{width:210px;height:210px;display:block;margin:15px auto}.qr-instructions{text-align:center;font-size:12px;color:#7085a4}.toast{position:fixed;bottom:35px;left:calc(50% + 116px);transform:translate(-50%,20px);background:#192940;color:#e8eff8;box-shadow:0 10px 40px #0002;border-radius:10px;padding:13px 20px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #cbdaf0;border-radius:18px;padding:0;max-width:560px;width:calc(100% - 36px);box-shadow:0 30px 100px #16223330;color:var(--ink);max-height:90vh}dialog::backdrop{background:#13203260;backdrop-filter:blur(3px)}.modal-inner{padding:29px;position:relative}.modal-inner h2{font-size:20px;font-weight:500;margin:0 35px 10px 0}.modal-inner>p{font-size:12px;color:#7287a5;line-height:1.9}.modal-close{position:absolute;right:19px;top:20px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.modal-inner .field{margin-top:18px}.skeleton{padding:90px;text-align:center;color:#758bab;font-size:12px}.spinner{height:23px;width:23px;border:2px solid #d0def2;border-top-color:#4d6a94;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 15px}@keyframes spin{to{transform:rotate(360deg)}}.mobile-nav{display:none}.search-results{display:grid;gap:9px}.search-result{padding:15px;border:1px solid var(--line);border-radius:10px;display:block;font-size:13px}.search-result small{display:block;color:#7f92ad;font-size:10px}.demo-controls{border-top:1px dashed #d0def1;padding-top:18px;margin-top:22px}.demo-controls small{display:block;color:#6885af;font-size:10px;margin-bottom:10px}.tag+ .tag{margin-left:5px}.mt{margin-top:24px}.no-margin{margin:0}.error-state{border:1px solid #d1dff2;background:#f0f5fb;padding:25px;border-radius:14px;color:#5f80af;font-size:13px}.muted{color:#7b8fab}.subtle{font-size:11px;color:#7f92ad}.success-icon{height:65px;width:65px;border-radius:50%;background:#e1eaf6;color:#4c6fa0;display:grid;place-items:center;margin:15px auto}.success-icon .icon{height:30px;width:30px}.center{text-align:center}.hide{display:none!important}.policy-text{white-space:pre-wrap;font-size:12px;line-height:2;color:#607594;max-height:55vh;overflow:auto}.safety-label{font-size:10px;color:#7288a7}.code-count{font-size:10px;color:#6482ac}
@media(min-width:1550px){.hero{min-height:285px}.hero-art{right:9%}.course-cover{height:180px}}
@media(max-width:1200px){.sidebar{width:205px;padding-left:17px;padding-right:17px}.workspace{margin-left:205px}.topbar{padding:0 30px}main{padding:30px}.content-columns{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.course-grid{gap:13px}.course-cover{padding:18px;height:145px}.cover-title{font-size:17px}.course-body{padding:17px}.rail-card{padding:18px}.stat{padding:15px 13px;gap:10px}.stat-icon{width:34px;height:34px}.stat-num{font-size:23px}.hero-art{right:3%;transform:scale(.85) rotate(-13deg)}.detail-banner{grid-template-columns:1fr 260px;gap:25px}.toast{left:calc(50% + 102px)}footer{padding-left:30px;padding-right:30px}.player-layout{grid-template-columns:minmax(0,1fr) 245px}}
@media(max-width:1020px){.content-columns{grid-template-columns:1fr}.right-rail{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:8px}.right-rail .rail-card{margin:0}.right-rail .help-rail{display:none}.hero h2{font-size:28px}.hero-art{right:0;transform:scale(.75) rotate(-13deg)}.stats-grid{gap:10px}.stat{padding:15px 10px;gap:8px}.stat-icon{display:none}.detail-banner{grid-template-columns:1fr}.detail-side{padding:15px 0 0;border-left:0;border-top:1px solid #c4d0e2}.detail-layout{grid-template-columns:1fr}.activation-layout{gap:25px}.activation-visual{padding:30px}.account-grid{grid-template-columns:1fr}.player-layout{grid-template-columns:1fr}.playlist{max-height:none}.admin-editor{grid-template-columns:1fr}.button-group{gap:6px}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:70px;padding:0 20px}.topbar .breadcrumb{font-size:11px}.top-actions{gap:10px}.user-menu>span:not(.avatar){display:none}.top-divider{display:none}main{padding:25px 20px 35px;min-height:calc(100vh - 150px)}.page-heading{margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}.today{display:none}.hero{padding:27px;min-height:245px}.hero h2{font-size:27px}.hero-copy{max-width:78%}.hero p{max-width:240px;font-size:11px}.hero-art{right:-95px;top:20px;opacity:.55;transform:scale(.8) rotate(-13deg)}.hero-copy .eyebrow{font-size:8px;letter-spacing:1.5px}.stats-grid{grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:27px}.stat{padding:14px 9px;display:block;border-radius:10px}.stat-num{font-size:23px}.stat-num small{display:none}.stat-label{font-size:9px;white-space:nowrap}.course-grid{gap:15px}.course-cover{height:147px;padding:17px}.cover-title{font-size:16px}.cover-label{font-size:7px;letter-spacing:1px}.cover-sub{font-size:7px;bottom:13px}.cover-sculpture{right:-32px;width:98px}.course-body{padding:15px}.course-body h3{font-size:13px}.course-meta{font-size:9px;gap:7px;flex-wrap:wrap}.course-bottom{font-size:9px;align-items:flex-start;gap:8px}.course-bottom a{font-size:10px;white-space:nowrap}.notice-strip{font-size:10px;padding:12px;align-items:flex-start}.notice-strip strong{display:block;margin-bottom:3px}.right-rail{grid-template-columns:1fr 1fr}.rail-card{padding:17px}.rail-card h3{font-size:12px}.guide-item{gap:7px}.guide-item b{font-size:10px}.guide-item p{font-size:9px}.guide-num{width:19px;height:19px;font-size:9px}.resume-mini{font-size:11px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#ffffffed;border-top:1px solid #d3e0f2;backdrop-filter:blur(12px);padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:30;justify-content:space-around}.mobile-nav a{display:flex;flex-direction:column;gap:3px;align-items:center;color:#8a9bb4;font-size:9px;min-width:52px}.mobile-nav a.active{color:var(--brand)}.mobile-nav .icon{width:21px;height:21px}footer{padding:0 20px 100px;font-size:8px;flex-direction:column;gap:4px}.toast{left:50%;bottom:100px}.activation-layout{grid-template-columns:1fr;margin-top:0;gap:24px}.activation-visual{min-height:190px;padding:24px}.activation-visual .icon{height:27px;width:27px}.activation-visual h2{font-size:24px;margin:12px 0 7px}.activation-visual p{margin:0;font-size:11px}.activation-form{background:white;padding:25px;border:1px solid var(--line);border-radius:14px}.detail-banner{padding:25px;gap:14px}.detail-banner h1{font-size:25px}.detail-layout{gap:17px}.panel{padding:21px}.lesson-row{gap:10px;padding-left:0;padding-right:0}.lesson-name{font-size:12px}.lesson-number{width:27px;height:27px}.lesson-row .btn{padding:7px 9px}.form-row{grid-template-columns:1fr;gap:0}.help-grid{grid-template-columns:1fr}.admin-course{gap:13px;flex-wrap:wrap}.admin-course .mini-cover{width:65px;height:65px;font-size:22px}.admin-course h3{font-size:13px}.admin-course .button-group{width:100%;justify-content:flex-end}.service-list{grid-template-columns:1fr}.admin-heading h1{font-size:23px}.admin-heading{align-items:flex-start;gap:10px}.admin-heading .btn{font-size:10px;white-space:nowrap;padding:10px 12px}.modal-inner{padding:24px}.modal-inner h2{font-size:18px}.login-card{margin-top:0}.player-title{font-size:17px}.video-shell{border-radius:10px}.player-toolbar{gap:8px}.player-save{width:100%}.safety-label{font-size:9px}.tabs{gap:23px}.tab{font-size:11px}.data-table td{padding:14px 10px}.data-table th{padding:11px 10px}.demo-pill{font-size:9px;padding:3px 7px}.audit-row time{font-size:8px}.user-menu .avatar{width:31px;height:31px;font-size:12px}.top-actions .icon-btn{width:29px}.workspace:has(.admin-heading) .mobile-nav{display:flex}}
@media(max-width:420px){.course-grid{grid-template-columns:1fr}.course-cover{height:172px;padding:23px}.cover-title{font-size:22px;max-width:68%}.course-body{padding:20px}.course-body h3{font-size:15px}.cover-sculpture{right:20px;width:130px;height:160px}.course-meta{font-size:10px}.course-bottom{font-size:10px}.course-bottom a{font-size:11px}.right-rail{grid-template-columns:1fr}.right-rail .rail-card:first-child{display:none}.hero h2{font-size:25px}.hero{padding:25px}.hero-copy{max-width:90%}.hero-art{right:-130px;opacity:.35}.page-heading p{font-size:10px}.breadcrumb>span:first-child{display:none}.breadcrumb>span:nth-child(2){display:none}.stat-label{font-size:9px}.stat-num{font-size:21px}.stats-grid{gap:6px}.notice-strip{line-height:1.9}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Brand and study workspace */
:root {
  --brand: #155bd7;
  --brand-dark: #10336e;
  --blue-soft: #e9f2ff;
  --ink: #172945;
  --muted: #556783;
  --bg: #f3f6fb;
  --line: #dce5f1;
  --shadow: 0 6px 24px rgba(23, 50, 99, .045);
}
.brand { padding: 0 7px; gap: 10px; }
.brand-logo { width: 44px; height: 44px; display: block; border-radius: 12px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 19px; letter-spacing: 1.2px; font-weight: 600; color: var(--ink); }
.brand-text small { font-size: 9px; letter-spacing: .2px; color: #7d8ea5; margin-top: 4px; white-space: nowrap; }
.login-brand { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.login-brand img { width: 48px; height: 48px; border-radius: 13px; display: block; }
.login-brand strong { display: block; font-size: 19px; letter-spacing: 1px; font-weight: 600; }
.login-brand small { display: block; font-size: 10px; color: #7d8ea5; margin-top: 3px; letter-spacing: .3px; }
.top-brand { display: none; }
.hero { background: linear-gradient(114deg,#123a89 0%,#155ed0 60%,#338bea 100%); }
.hero .eyebrow,.hero p { color: #e2eeff; }
.hero h2 em { color: #c9e4ff; }
.btn.light { background: #fff; color: #124b9d; }
.course-cover { background: linear-gradient(125deg,#1649ad,#2479e4); color: #fff; }
.course-cover.amber { background: linear-gradient(125deg,#233776,#485eb3); color: #fff; }
.course-cover .cover-label,.course-cover .cover-sub { opacity: .85; }
.course-cover .cover-sculpture { border-color: #ffffff44; }
.course-cover .cover-sculpture:after { border-color: #ffffff22; }
.course-cover.poster-cover { aspect-ratio: 1800 / 1013; height: auto; padding: 0; }
.poster-cover img, .has-poster img { display: block; width: 100%; height: auto; }
.admin-course .mini-cover.has-poster { width: clamp(75px, 12vw, 145px); height: auto; overflow: hidden; }
.detail-side .poster-cover { width: 100%; border-radius: 8px; overflow: hidden; }
.editor-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
body.study-mode .sidebar, body.study-mode #mobile-nav, body.study-mode .breadcrumb-site { display: none; }
body.study-mode .workspace { margin-left: 0; }
body.study-mode .topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  height: 64px;
  padding: 0 max(22px, calc((100vw - 1432px) / 2));
  background: #fff;
}
body.study-mode .top-brand { display: block; }
.top-brand img { display: block; width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
body.study-mode main { max-width: 1480px; padding: 22px 24px 48px; }
body.study-mode footer { max-width: 1480px; padding-inline: 24px; }
.lesson-study {
  display: grid;
  grid-template-columns: minmax(232px, 294px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(20px, 3vw, 44px);
}
.study-mobile-head { display: none; }
.lesson-toc {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 105px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.toc-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 16px 13px; font-weight: 700; font-size: 15px; }
.toc-heading span { display: inline-flex; align-items: center; gap: 8px; }
.toc-heading .icon { color: var(--brand); width: 17px; height: 17px; }
.toc-heading small,.toc-chapter summary small { color: var(--muted); font-size: 11px; font-weight: 500; }
.toc-progress { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 0 16px 14px; color: var(--muted); font-size: 12px; }
.toc-progress strong { color: var(--brand); }
.toc-progress .progress-track { grid-column: 1 / -1; }
.toc-scroll { padding: 4px 9px 12px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.toc-chapter summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 12px 6px 9px; color: #344b6b; font-size: 12px; font-weight: 650; }
.toc-chapter summary::-webkit-details-marker { display: none; }
.toc-chapter summary .icon { width: 13px; height: 13px; color: #617592; }
.toc-chapter[open] summary .icon { transform: rotate(90deg); }
.toc-chapter summary span { flex: 1; }
.toc-entries { display: grid; gap: 3px; }
.toc-lesson { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 7px; align-items: start; padding: 8px 8px; border: 1px solid transparent; border-radius: 8px; color: #374b66; line-height: 1.55; }
.toc-lesson:hover { background: #f1f6ff; }
.toc-lesson.current { background: #e9f1ff; color: #104fb4; border-color: #d3e4ff; }
.toc-number { color: #526b91; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; padding-top: 2px; }
.toc-lesson.current .toc-number { color: var(--brand); }
.toc-number .icon { height: 15px; width: 15px; }
.toc-lesson strong { display: block; font-size: 12px; font-weight: 560; overflow-wrap: anywhere; }
.toc-lesson small { display: block; color: #526b91; font-size: 10px; margin-top: 3px; }
.lesson-content { min-width: 0; width: 100%; max-width: 1100px; margin: 0 auto; }
.lesson-heading { padding: 2px 0 14px; }
.lesson-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #536886; }
.lesson-breadcrumb a { color: #2054a1; }
.lesson-breadcrumb a:hover { text-decoration: underline; }
.lesson-breadcrumb .icon { width: 12px; height: 12px; }
.lesson-title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.lesson-title-line .player-title { margin: 0; font-size: clamp(18px, 2vw, 27px); font-weight: 700; line-height: 1.42; }
.lesson-video { margin-bottom: 16px; }
.lesson-video.player-active:not(:has(.video-floating,.video-landscape,.video-expanded)) {
  position: sticky;
  top: 64px;
  z-index: 12;
  padding-bottom: 3px;
  background: var(--bg);
}
.player-active .video-stage { aspect-ratio: 16 / 9; max-height: 56dvh; }
.player-active .video-shell { height: 100%; }
.lesson-video .video-shell { border-radius: 12px; background: #071527; isolation: isolate; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lesson-video .video-shell:has(.lesson-poster:not([hidden])) { border-radius: 12px 12px 0 0; }
.lesson-video video { position: absolute; inset: 0; object-fit: contain; touch-action: pan-y pinch-zoom; user-select: none; -webkit-touch-callout: none; }
.lesson-video .watermark {
  inset: 0;
  overflow: hidden;
  opacity: .27;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.watermark span { position: absolute; top: 68%; left: 100%; animation: video-watermark 22s linear infinite; }
@keyframes video-watermark { to { left: 0; transform: translateX(-100%); } }
.video-floating .watermark span { animation-duration: 16s; }
.lesson-poster { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg,#0f367b,#2462c0); }
.lesson-poster-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.poster-caption { display: grid; gap: 4px; padding: 11px clamp(12px, 2.1vw, 24px) 13px; color: #fff; background: #0a2245; border-radius: 0 0 12px 12px; border-top: 1px solid #305d9b; }
.poster-caption span { color: #b7ccef; font-size: 11px; }
.poster-caption strong { font-size: clamp(14px, 1.8vw, 22px); line-height: 1.4; overflow-wrap: anywhere; }
.video-center-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  z-index: 6;
  display: grid;
  place-items: center;
  width: clamp(48px, 7vw, 70px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ffffff70;
  background: #071527a6;
  color: #fff;
  box-shadow: 0 5px 20px #06122655;
  transition: opacity .2s ease;
}
.video-center-button:hover { background: #071527e6; }
.video-center-button .icon { width: 48%; height: 48%; fill: currentColor; stroke: none; }
.video-center-button[hidden] { display: none; }
.controls-idle:not(.video-paused) #video-toggle,
.video-floating:not(.video-paused,.floating-tools-visible) #video-toggle { opacity: 0; pointer-events: none; }
.controls-idle.video-paused #video-toggle,
.video-floating.floating-tools-visible #video-toggle { opacity: 1; pointer-events: auto; }
.video-floating #video-toggle { width: 40px; }
.poster-play:disabled { opacity: .88; cursor: default; }
.lesson-video .player-save { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.lesson-poster[hidden],.poster-caption[hidden],.video-controls[hidden],.video-gesture[hidden] { display: none; }
.video-gesture { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 6px 12px; border-radius: 20px; background: #071527eb; color: #fff; font-size: 12px; white-space: nowrap; }
.video-controls { position: absolute; inset: auto 0 0; z-index: 7; padding: 12px clamp(8px,1.6vw,18px) 5px; background: linear-gradient(transparent,#040c1bde 44%,#040c1bf5); color: #fff; transition: opacity .2s ease; }
.controls-idle .video-controls { opacity: 0; pointer-events: none; }
.video-controls.pointer-focus :focus { outline: none; }
.video-controls input[type=range] { margin: 0; accent-color: #79afff; cursor: pointer; }
#video-seek { display: block; width: 100%; height: 16px; }
.video-control-row { display: flex; align-items: center; gap: clamp(3px,1vw,10px); }
.video-control-row .spacer { flex: 1; }
.video-control-row button { min-height: 40px; color: inherit; background: transparent; border: 0; padding: 0 5px; border-radius: 5px; font-size: 12px; }
.video-control-row button { display: grid; place-items: center; min-width: 34px; }
.video-control-row button:hover { background: #ffffff26; }
@media (any-pointer: coarse) {
  #video-seek { height: 28px; touch-action: none; }
  .video-control-row button { min-height: 44px; }
}
.video-picker { position: relative; flex: none; }
.video-options {
  position: absolute;
  z-index: 1;
  bottom: 100%;
  right: 0;
  display: grid;
  grid-template-columns: minmax(82px, max-content);
  gap: 3px;
  padding: 6px;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  background: #071527f5;
}
.video-options[hidden] { display: none; }
.video-options button { padding-inline: 8px; white-space: nowrap; }
.video-options button[aria-pressed=true] { background: #254775; }
.video-landscape .video-options { display: grid; }
.video-landscape .video-options[hidden] { display: none; }
.video-control-row .icon { width: 18px; height: 18px; }
.video-control-row #video-floating { display: none; }
.video-volume { position: relative; }
.video-volume-popover {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 8px;
  border-radius: 8px;
  background: #071527f5;
}
@media (hover: hover) and (pointer: fine) {
  .video-volume:hover .video-volume-popover,.video-volume:has(:focus-visible) .video-volume-popover { display: grid; }
}
#video-volume { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 80px; }
.video-clock { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lesson-video .video-shell:fullscreen,.lesson-video .video-shell.video-expanded { position: fixed; inset: 0; z-index: 1000; height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
.lesson-video .video-shell.video-landscape {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1000;
  width: 100dvh;
  height: 100dvw;
  transform: translate(-50%,-50%) rotate(90deg);
  border-radius: 0;
}
@media (orientation: landscape) {
  .lesson-video .video-shell.video-landscape { inset: 0; width: 100dvw; height: 100dvh; transform: none; }
}
body:has(.video-expanded,.video-landscape) { overflow: hidden; }
.lesson-video .video-landscape video { touch-action: none; }
.video-stage:has(.video-floating) { height: 0; aspect-ratio: auto; }
.lesson-video .video-shell.video-floating {
  --floating-width: clamp(min(144px, 100dvw - 16px), var(--floating-size, min(58vw, 280px)), min(100dvw - 16px, (100dvh - 16px) * 16 / 9));
  position: fixed;
  left: clamp(8px, var(--floating-left, calc(100dvw - var(--floating-width) - 12px)), calc(100dvw - var(--floating-width) - 8px));
  top: clamp(8px, var(--floating-top, calc(100dvh - var(--floating-width) * 9 / 16 - max(12px,env(safe-area-inset-bottom)))), calc(100dvh - var(--floating-width) * 9 / 16 - 8px));
  z-index: 40;
  width: var(--floating-width);
  height: auto;
  box-shadow: 0 4px 24px #07152765;
}
.lesson-video .video-floating video,.video-resize { touch-action: none; }
.video-floating .video-controls,
.video-landscape .video-control-row #video-floating,
.video-expanded .video-control-row #video-floating,
.video-shell:fullscreen .video-control-row #video-floating { display: none; }
.video-floating-tools { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.video-floating.floating-tools-visible .video-floating-tools { opacity: 1; }
.video-floating.floating-tools-visible .video-floating-tools button { pointer-events: auto; }
.video-restore,.video-resize {
  position: absolute;
  right: 5px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid #ffffff66;
  background: #071527e6;
  color: #fff;
}
.video-restore { top: 5px; }
.video-resize { bottom: 5px; cursor: nwse-resize; }
.video-floating-tools .icon { width: 18px; height: 18px; }
.video-floating-placeholder {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
}
@media (max-width: 820px), (any-pointer: coarse) {
  .video-control-row #video-floating { display: grid; }
}
@media (max-width: 480px) {
  .video-control-row { gap: 3px; }
  .video-control-row .video-volume { display: none; }
  .video-clock { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.lesson-paper { margin-bottom: 14px; padding: clamp(16px, 2.4vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.lesson-paper h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; }
.lesson-paper h2 .icon { color: var(--brand); width: 18px; height: 18px; }
.reading-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.reading-heading h2 { margin: 0; }
.inline-content-image { margin: 14px 0 20px; }
.inline-content-image img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.inline-content-image figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.course-intro-content { font-size: 14px; overflow-wrap: anywhere; }
.course-intro-content h3 { margin: 18px 0 6px; }
.course-intro-content h3:first-child { margin-top: 0; }
.course-intro-content p { margin: 0 0 10px; }
dialog:has(.rich-editor) { max-width: 730px; }
.rich-editor { min-width: 0; margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.rich-editor legend { padding: 0 5px; color: var(--ink); font-size: 14px; font-weight: 650; }
.editor-text-block textarea { display: block; width: 100%; min-height: 92px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; resize: vertical; line-height: 1.6; }
.editor-text-block .upload-label { margin: 7px 0 10px; }
.editor-text-block:last-child .upload-label { margin-bottom: 0; }
.editor-text-block .upload-label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.editor-image-block { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; padding: 10px; border-radius: 8px; background: var(--bg); }
.editor-image-block img { max-width: 100%; width: 150px; height: 100px; object-fit: contain; border-radius: 6px; }
.editor-image-block>div { flex: 1 1 150px; min-width: 0; }
.editor-image-block .input { width: 100%; margin-bottom: 7px; }
.lesson-reading-source { font-size: 15px; line-height: 1.9; color: #2c3e58; overflow-wrap: anywhere; }
.lesson-reading-source + .lesson-reading-source { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.lesson-reading-source p { margin: 0 0 12px; }
.lesson-reading-source p:last-child { margin-bottom: 0; }
.lesson-reading-source h3 { margin: 24px 0 10px; font-size: 17px; color: #154aa0; }
.lesson-reading-source h4 { font-size: 15px; margin: 16px 0 8px; }
.lesson-media figure,.lesson-audio { margin: 12px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.lesson-media figure img { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 4px; }
.lesson-media figcaption,.lesson-audio strong { color: #2c3e58; font-size: 14px; overflow-wrap: anywhere; }
.lesson-audio audio { display: block; margin-top: 8px; width: 100%; }
.lesson-reading-source p a,.lesson-reading-source h4 a { color: #155bd7; text-decoration: underline; }
.lecture-link-card { display: flex; gap: 12px; align-items: center; border: 1px solid #dce8fb; border-radius: 9px; padding: 10px 13px; background: #f6f9ff; margin: 8px 0 14px; color: #183b77; line-height: 1.5; }
.lecture-link-card:hover { background: #eaf2ff; }
.lecture-link-card strong,.lecture-link-card small { display: block; }
.lecture-link-card small { color: #355d96; margin-top: 3px; }
.lecture-link-icon { flex: none; padding: 6px; color: #155bd7; }
.lesson-neighbors { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.lesson-neighbors a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; min-width: 0; }
.lesson-neighbors a:hover { border-color: #a7c4f7; }
.lesson-neighbors a:last-child { text-align: right; }
.lesson-neighbors small,.lesson-neighbors strong { display: block; overflow-wrap: anywhere; }
.lesson-neighbors small { color: var(--brand); font-size: 11px; }
.lesson-neighbors strong { font-size: 12px; margin-top: 4px; }
@media(max-width: 820px) {
  body.study-mode .topbar { height: 54px; padding: 0 14px; }
  .lesson-video.player-active:not(:has(.video-floating,.video-landscape,.video-expanded)) { top: 54px; }
  body.study-mode .top-actions { gap: 7px; }
  body.study-mode .top-actions .icon-btn,body.study-mode .top-divider { display: none; }
  body.study-mode .top-brand img { width: 26px; height: 26px; border-radius: 7px; }
  body.study-mode main { padding: 12px 12px 26px; }
  .lesson-study { grid-template-columns: minmax(0,1fr); row-gap: 10px; }
  .study-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--brand); }
  .study-mobile-head .btn { min-height: 35px; padding: 6px 11px; }
  .study-mobile-head .icon { width: 16px; height: 16px; }
  .lesson-toc { display: none; position: static; max-height: min(46dvh,440px); }
  .directory-open .lesson-toc { display: flex; }
  .lesson-heading { padding: 0 0 9px; }
  .lesson-title-line .player-title { font-size: 18px; }
  .lesson-breadcrumb { font-size: 10px; }
  .video-control-row button { min-width: 38px; }
  .video-clock { font-size: 11px; }
  .lesson-reading-source { font-size: 14px; }
}
@media(max-width:760px) {
  .top-brand { display: block; }
  .breadcrumb-site { display: none; }
  .top-brand img { width: 26px; height: 26px; border-radius: 7px; }
}
@media(max-width:370px) {
  .video-control-row button { min-width: 31px; }
  .video-clock { font-size: 10px; }
}

/* 登录卡：账号密码 / 短信验证码 / 扫码 三种方式 */
.login-panel{position:relative;overflow:hidden}
.login-panel h2{font-size:24px;font-weight:600;margin:2px 0 6px}
.login-tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:20px 0 22px}
.login-tab{background:none;border:none;padding:0 2px 12px;font-size:15px;font-weight:500;color:#7689a4;cursor:pointer;border-bottom:2px solid transparent}
.login-tab.active{color:var(--brand);font-weight:600;border-bottom-color:var(--brand)}
.qr-toggle{position:absolute;top:0;right:0;width:46px;height:46px;display:flex;align-items:center;justify-content:center;background:#f1f5fb;border-radius:0 12px 0 18px;color:#576f91;cursor:pointer;border:none}
.qr-toggle:hover{color:var(--brand)}
.qr-toggle .icon{width:22px;height:22px}
.btn-login{min-height:48px;font-size:16px;font-weight:600;letter-spacing:6px;border-radius:10px;margin-top:6px}
#qr-panel{text-align:center;padding:6px 0}
#qr-panel .qr-image{margin:10px auto}

/* 1.8.1 目录进度跟随播放位置与已看完标识 */
.toc-lesson .toc-bar{display:block;height:3px;background:#e2eaf6;border-radius:3px;overflow:hidden;margin-top:5px}
.toc-lesson .toc-bar i{display:block;height:100%;background:#8fb0e0;border-radius:3px;transition:width .4s ease}
.toc-lesson.done{color:#2f7a45}
.toc-lesson.done .toc-bar i{background:#34a853}
.toc-lesson.done .toc-number{color:#2f9e44}
.toc-lesson.done:hover{background:#ecf7ef}
.toc-lesson.current.done{background:#e9f1ff;border-color:#d3e4ff}
.lesson-row .lesson-bar{display:block;height:4px;background:#e2eaf6;border-radius:4px;overflow:hidden;margin-top:6px;max-width:420px}
.lesson-row .lesson-bar i{display:block;height:100%;background:#8fb0e0;border-radius:4px;transition:width .4s ease}
.lesson-row.done .lesson-bar i{background:#34a853}
.lesson-row.done .lesson-number{color:#2f9e44}
.lesson-row .done-flag{color:#2f9e44;font-weight:600;font-style:normal}
/* 全屏控件隐藏时同时隐藏鼠标指针 */
.video-shell.controls-idle{cursor:none}

/* 1.8.3 播放器：消除上下/左右黑边 + 清晰度、倍速面板与按钮等宽对齐 */
/* 播放时把画面容器锁成 16:9 且宽度按可视高度反算，视频不再被拉伸留黑边 */
.lesson-video .video-stage { width: min(100%, calc(56dvh * 16 / 9)); margin-inline: auto; }
.lesson-video .video-stage:has(.video-shell.video-expanded),
.lesson-video .video-stage:has(.video-shell.video-landscape),
.lesson-video .video-stage:has(.video-shell.video-floating) { width: auto; margin-inline: 0; }
/* 清晰度 / 倍速：按钮与下拉面板同宽、上下对齐 */
.video-picker { width: clamp(52px, 5.4vw, 72px); }
.video-picker > button { width: 100%; }
.video-options {
  left: 0;
  right: auto;
  bottom: calc(100% + 6px);
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 2px;
  padding: 5px;
}
.video-options button { width: 100%; padding-inline: 0; }

/* Policy / legal text */
.policy-meta { font-size: 11px; color: #8b9bb1; margin: -4px 0 14px; letter-spacing: .2px; }
.policy-text { white-space: normal; max-height: 58vh; overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.policy-text h4 { font-size: 13px; font-weight: 600; color: #23374f; margin: 20px 0 8px; letter-spacing: .3px; }
.policy-text h4:first-child { margin-top: 4px; }
.policy-text p { font-size: 12px; line-height: 1.95; color: #5c7089; margin: 0 0 8px; }
.policy-text .policy-li { position: relative; padding-left: 15px; }
.policy-text .policy-li:before { content: ""; position: absolute; left: 3px; top: .82em; width: 4px; height: 4px; border-radius: 50%; background: #a9bcd4; }
.policy-text .policy-sub { padding-left: 30px; color: #6b7f99; }
.policy-text .policy-sub:before { left: 18px; background: #c3d2e4; width: 5px; height: 1px; border-radius: 0; top: .95em; }
.policy-empty { color: #7b8fab; }
@media (max-width: 760px) {
  .policy-text { max-height: 62vh; }
  .policy-text h4 { font-size: 12.5px; margin-top: 16px; }
  .policy-text p { font-size: 11.5px; line-height: 1.9; }
}
dialog.policy-modal { max-width: 660px; }
.policy-scroll-hint { font-size: 11px; color: #9aa9bd; text-align: center; margin: 6px 0 0; letter-spacing: .2px; }
.policy-text { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); }
.policy-text.at-end { -webkit-mask-image: none; mask-image: none; }
.policy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.policy-meta span + span { position: relative; padding-left: 13px; }
.policy-meta span + span:before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 11px; margin-top: -5.5px; background: #cfdae8; }
@media (max-width: 760px) {
  .policy-meta { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 10px; }
  .policy-meta span + span { padding-left: 0; }
  .policy-meta span + span:before { display: none; }
}
#settings-form textarea[name="privacy"],
#settings-form textarea[name="terms"] { min-height: 260px; font-size: 11.5px; line-height: 1.8; }

/* Contact / support */
.login-support { text-align: center; font-size: 12px; color: #7d90a8; margin: 14px auto 0; max-width: 420px; line-height: 1.7; }
.login-support strong { color: #33506f; font-weight: 600; }
a.tel-link { color: #2f6fb3; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .3px; border-bottom: 1px solid rgba(47,111,179,.28); }
a.tel-link:hover { border-bottom-color: rgba(47,111,179,.7); }
.contact-card { padding: 4px 2px 0; }
.contact-card .prose { margin: 0 0 6px; }
.contact-card .prose:first-child { font-size: 14px; color: #23374f; font-weight: 600; }
.contact-tip { font-size: 11.5px; color: #8497ae; line-height: 1.85; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #e2eaf3; }
@media (max-width: 760px) {
  .login-support { font-size: 11.5px; margin-top: 12px; }
  .login-support strong { display: inline; }
}
.login-card .login-support { border-top: 1px solid #eef3f9; margin: 16px 0 0; padding-top: 12px; max-width: none; }

/* Avatar */
.avatar { overflow: hidden; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.lg { width: 60px; height: 60px; font-size: 22px; }
.identity .avatar { border: 1px solid #e2ebf7; }
.avatar-edit { position: relative; background: transparent; padding: 0; border-radius: 50%; line-height: 0; }
.avatar-edit > span.avatar { transition: filter .18s ease; }
.avatar-edit:hover > span.avatar { filter: brightness(.94); }
.avatar-edit > span:last-child { position: absolute; right: -2px; bottom: -2px; background: #fff; border: 1px solid #cfddf1; color: #46618a; font-size: 9px; line-height: 1; padding: 4px 5px; border-radius: 8px; letter-spacing: 0; }
.settings-line .button-group { flex-shrink: 0; }
@media (max-width: 760px) {
  .identity .avatar, .avatar.lg { width: 54px; height: 54px; font-size: 20px; }
  .avatar-edit > span:last-child { font-size: 8.5px; padding: 3px 4px; }
}
.settings-line > .btn, .settings-line .button-group, .settings-line .button-group .btn { white-space: nowrap; flex-shrink: 0; }
.settings-line > div:first-child { min-width: 0; }

/* ---------------------------------------------------------------- 发现课程（课程库） */
.discover-note{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:12px;border:1px solid #d4e1f3;background:#f3f7fc;margin:0 0 20px;color:#5a6f8c;font-size:12px}
.discover-note .icon{width:22px;height:22px;color:var(--brand);flex-shrink:0;margin-top:2px}
.discover-note strong{display:block;color:#22374f;font-size:13px;margin-bottom:3px}
.discover-note p{margin:0;line-height:1.85}
.discover-card > a{display:block;position:relative}
.discover-card .discover-sub{margin:0 0 12px;color:#6a7d99;font-size:11px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}
.discover-flag{position:absolute;right:12px;top:12px;background:#0f2c57d9;color:#fff;font-size:10px;padding:4px 9px;border-radius:20px;letter-spacing:.5px;z-index:2}
.discover-flag.trial{background:#ffffffeb;color:#12457f}
.discover-banner .detail-side{display:flex;flex-direction:column;gap:14px}
.discover-buy{display:grid;gap:9px;justify-items:stretch;text-align:center}
.discover-buy .btn{width:100%}
.discover-buy small{font-size:10px;color:#6b7f9c;line-height:1.7}
.discover-buy .tag{align-self:center;margin-bottom:2px}
.discover-price{font-size:22px;font-weight:600;color:#123a6d;text-align:left}
.discover-price.muted{font-size:12px;font-weight:400;color:#6b7f9c}
.trial-lock{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#8b9cb4;white-space:nowrap}
.trial-lock .icon{width:14px;height:14px}
.lesson-row.trial{background:#f4f8ff;border-radius:8px;padding-left:10px;padding-right:10px;border-bottom-color:#dae7fa}
.lesson-row.locked .lesson-name{color:#41546f}
.toc-lesson.locked{color:#7d8ea8;background:#f7f9fd;cursor:default}
.toc-lesson.locked .toc-number{color:#93a5bd}
.toc-lesson.locked:hover{background:#f7f9fd}
.trial-cta{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px;align-items:center;background:linear-gradient(125deg,#12325f,#1c5cb0);color:#fff;border-radius:16px;padding:24px 26px;margin:22px 0}
.trial-cta h2{font-size:18px;margin:6px 0 8px;font-weight:550;line-height:1.6}
.trial-cta p{margin:0;font-size:12px;color:#c9dbf3;line-height:1.9}
.trial-cta .eyebrow{color:#9dc0ee}
.trial-cta-side{display:grid;gap:9px}
.trial-cta-side strong{font-size:20px}
.trial-cta-side .btn{width:100%}
.trial-cta-side .btn.outline{background:#ffffff1a;border-color:#ffffff59;color:#fff}
.trial-cta-side small{font-size:10px;color:#c9dbf3}
.trial-cta-side small a{color:#fff;text-decoration:underline}
.admin-library-box{border:1px dashed #cfdcee;border-radius:10px;padding:14px 16px;margin:4px 0 14px;background:#fafcff}
.admin-library-box strong{display:block;font-size:12px;margin-bottom:4px}
.admin-library-box .form-note{margin:0 0 10px}
.button-group.center{justify-content:center;margin-top:18px;flex-wrap:wrap}
@media(max-width:900px){.trial-cta{grid-template-columns:1fr;padding:20px;gap:16px}.discover-price{text-align:center}.discover-buy .tag{align-self:center}.discover-banner h1{font-size:22px;line-height:1.5}.discover-banner .detail-side{gap:12px}}
.buy-missing{display:block;color:#8b6a3a;background:#fdf6e8;border:1px solid #f0e2c4;border-radius:8px;padding:8px 10px;text-align:left}

/* ---------------------------------------------------------------- 课程卡片栅格：电脑 3 列，手机 2 列 */
.course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .course-grid{gap:12px}
  .course-body{padding:13px}
  .course-body h3{font-size:13px;line-height:1.6;margin:7px 0 8px}
  .course-meta{font-size:9px;gap:6px}
  .course-bottom{font-size:9px;gap:6px;flex-wrap:wrap}
  .course-bottom a{font-size:10px}
  .course-cover{height:auto;aspect-ratio:16/10;padding:14px}
  .cover-title{font-size:15px}
  .course-progress{margin-top:12px}
  .discover-card .discover-sub{font-size:10px;min-height:2.6em;margin-bottom:9px}
  .discover-flag{right:8px;top:8px;font-size:9px;padding:3px 7px}
}

/* ---------------------------------------------------------------- 发现课程分板块 / 线下实战课 */
.discover-section{margin-bottom:26px}
.discover-section:last-child{margin-bottom:0}
.discover-section .section-head{margin-bottom:12px}
.discover-section .section-head h2{font-size:16px}
.section-hint{font-size:11px;color:#7d8fa8}
.offline-banner{background:linear-gradient(120deg,#e6f5ec,#dcebfa)}
.offline-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.offline-points span{font-size:11px;color:#25506f;background:#ffffffb8;border:1px solid #ffffffd9;border-radius:20px;padding:5px 11px}
.offline-price{font-size:13px;color:#123a6d;line-height:1.9}
.discover-flag.offline{background:#0f7a4fd9}
.discover-card.offline-card .discover-sub{-webkit-line-clamp:2}

/* 空状态在栅格里占满整行，手机上才能居中 */
.empty-state{grid-column:1/-1;width:100%}

/* ---------------------------------------------------------------- 手机：课程卡片改横版（左封面右文字） */
@media(max-width:760px){
  .course-grid{grid-template-columns:1fr;gap:11px}
  .course-card{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center}
  .course-card>a:first-child{display:block;height:auto;padding:9px 0 9px 9px}
  .course-cover,.course-cover.poster-cover{height:auto;min-height:0;aspect-ratio:16/9;padding:0;border-radius:9px;overflow:hidden}
  .course-cover img{width:100%;height:100%;object-fit:cover;display:block}
  .course-body{padding:10px 12px;display:flex;flex-direction:column;min-width:0}
  .course-body>.tag{display:none}
  .course-body h3{font-size:13.5px;margin:0 0 5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .course-body h3 a{color:inherit}
  .course-meta{font-size:9px;gap:8px;flex-wrap:wrap}
  .course-progress{margin-top:7px}
  .progress-caption{font-size:9px}
  .course-bottom{margin-top:auto;padding-top:6px;font-size:9px;gap:6px;flex-wrap:wrap}
  .course-bottom a{font-size:10px;white-space:nowrap}
  .discover-card .discover-sub{display:none}
  .discover-flag{display:none}
  .cover-title{font-size:15px}
  .discover-section .section-head h2{font-size:15px}
  .discover-section .section-head{gap:8px;flex-wrap:wrap;align-items:baseline}
  .section-hint{font-size:10px}
}

/* 手机端页脚整体居中 */
@media(max-width:760px){
  #footer{flex-direction:column;align-items:center;text-align:center;gap:6px}
  #footer>span{width:100%;text-align:center}
}

/* ---------------------------------------------------------------- 后台短信配置 */
.sms-extra{margin:2px 0 12px;border:1px dashed #d5e1f0;border-radius:10px;padding:8px 12px;background:#fafcff}
.sms-extra summary{cursor:pointer;font-size:11px;color:#5a6f8c}
.sms-extra[open] summary{margin-bottom:10px}
.sms-extra .field{margin-bottom:8px}
.sms-limits{margin-top:16px;border-top:1px solid #e6eef7;padding-top:14px}
.sms-limits h3{font-size:12px;margin:0 0 6px;color:#3c5573;font-weight:600}
.sms-limits .settings-line{padding:7px 0}
.sms-limits .settings-line small{display:block}
#sms-test-form .btn{margin-top:4px}

/* ---------------------------------------------------------------- 我的账户（后台）/ 修改密码 */
.settings-value{font-size:12px;color:#3c5573;text-align:right;flex:0 0 auto;white-space:nowrap}
.settings-value b{display:inline-block;max-width:168px;font-weight:600;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.settings-value .btn{white-space:nowrap}
#password-form .field{margin-bottom:12px}
@media(max-width:760px){.settings-value{max-width:100%;text-align:left;margin-top:4px}}

/* ---------------------------------------------------------------- 兑换码按批次折叠 */
.batch-group{padding:0;overflow:hidden}
.batch-group details{display:block}
.batch-group summary{display:flex;align-items:center;gap:13px;padding:15px 18px;cursor:pointer;list-style:none;user-select:none;border-bottom:1px solid #e6eef7}
.batch-group summary::-webkit-details-marker{display:none}
.batch-group[open] summary{border-bottom-color:transparent}
.batch-caret{width:18px;height:18px;color:#7d8fa8;flex-shrink:0;transition:transform .18s ease}
.batch-group details[open]>.summary .batch-caret,.batch-group details[open]>summary .batch-caret{transform:rotate(90deg)}
.batch-title{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.batch-title strong{font-size:13.5px;color:#1d3a5f}
.batch-title small{font-size:10px;color:#7d8fa8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.batch-meta{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.batch-expire{font-size:10px;color:#5a6f8c}
.batch-expire.expired{color:#b0432f}
.batch-group .table-wrap{border-top:1px solid #e6eef7}
.codes-toolbar{margin-bottom:14px;flex-wrap:wrap;gap:10px}
@media(max-width:760px){
  .batch-group summary{flex-wrap:wrap;gap:8px;padding:13px 14px}
  .batch-title{flex:1 1 100%}
  .batch-meta{width:100%;justify-content:flex-start}
}
.codes-toolbar .inline-group{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* ---------------------------------------------------------------- 兑换码：完整券码与批次操作 */
.code-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;letter-spacing:.4px;color:#1d3a5f;background:#f2f6fc;border:1px solid #e2ebf7;border-radius:6px;padding:3px 7px;display:inline-block;white-space:nowrap;user-select:all}
.code-text.muted{color:#93a5bd;background:#f7f9fd}
.copy-btn{margin-left:8px;font-size:10px;color:var(--brand)}
.plain-missing{display:block;color:#a08a67;font-size:9px;margin-top:3px}
.batch-actions{display:flex;gap:8px;padding:11px 18px;border-bottom:1px solid #e6eef7;flex-wrap:wrap;background:#fafcff}
.batch-actions .btn{white-space:nowrap}
.btn.danger-text{color:#b0432f;border-color:#e8c9c1}
.codes-table td:first-child{white-space:nowrap}
.codes-table .button-group{gap:6px}
@media(max-width:760px){.code-text{font-size:10.5px}.batch-actions{padding:10px 14px}}

/* ---------------------------------------------------------------- 登录设备 */
.devices-panel{margin-top:20px}
.device-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e6eef7}
.device-row:last-child{border-bottom:0}
.device-icon{width:38px;height:38px;border-radius:10px;background:#f2f6fc;border:1px solid #e2ebf7;display:grid;place-items:center;color:var(--brand);flex-shrink:0}
.device-icon .icon{width:18px;height:18px}
.device-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.device-info strong{font-size:12.5px;color:#1d3a5f;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.device-info small{font-size:10px;color:#7d8fa8;line-height:1.6}
.device-row .tag{align-self:flex-start}
@media(max-width:760px){.device-row{flex-wrap:wrap;gap:10px}.device-row>.btn,.device-row>.tag{width:100%;text-align:center;justify-content:center}.device-icon{width:32px;height:32px}}
.devices-tools{display:flex;justify-content:flex-end;margin:-4px 0 8px}
@media(max-width:760px){.devices-tools .btn{width:100%}}

/* 字标（wordmark）替代方块图标 */
.brand-stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand-wordmark { display: block; height: 38px; width: auto; }
.brand-stack small { font-size: 9px; letter-spacing: .5px; color: #7d8ea5; white-space: nowrap; }
.top-brand img.top-wordmark { width: auto; height: 24px; border-radius: 0; }
body.study-mode .top-brand img.top-wordmark { width: auto; height: 22px; border-radius: 0; }
.login-brand { gap: 14px; }
.login-brand img.login-wordmark { width: auto; height: 40px; border-radius: 0; }
.login-brand span { display: flex; flex-direction: column; }
.login-brand span small { margin-top: 0; }
@media (max-width: 820px) {
  .brand-wordmark { height: 32px; }
  .login-brand img.login-wordmark { height: 34px; }
}

/* 面包屑：普通模式不显示品牌与分隔符，只留页面名 */
.breadcrumb-sep { display: none; }
body.study-mode .breadcrumb-sep { display: inline; }

/* 首页去掉 hero 后，统计卡顶上留出呼吸空间 */
.stats-grid { margin-top: 4px; }

/* ---------- 顶栏头像下拉：账户设置 ---------- */
.user-pop{position:relative;display:flex}
.user-pop .user-menu{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:999px;transition:background .18s}
.user-pop .user-menu:hover{background:#edf2fa}
.user-pop .user-menu svg.icon{width:14px;height:14px;opacity:.45;transform:rotate(90deg);transition:transform .2s}
.user-pop.open .user-menu svg.icon{transform:rotate(-90deg)}
.user-pop-panel{
  position:absolute;right:0;top:calc(100% + 12px);width:288px;background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 24px 48px -24px rgba(20,40,70,.45);padding:8px;z-index:60;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s,transform .18s,visibility .18s;
}
.user-pop:hover .user-pop-panel,.user-pop.open .user-pop-panel{opacity:1;visibility:visible;transform:none}
.up-head{display:flex;align-items:center;gap:12px;padding:10px 10px 12px}
.up-id{display:flex;flex-direction:column;gap:5px;min-width:0}
.up-id strong{font-size:14.5px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-radius:10px}
.up-row:hover{background:#f5f8fd}
.up-k{font-size:13px;color:var(--muted)}
.up-act{display:flex;align-items:center;gap:12px}
.up-act .text-btn{font-size:12.5px;color:var(--brand);font-weight:500;background:none;border:0;padding:0;cursor:pointer}
.up-act .text-btn:hover{text-decoration:underline}
.up-act .tag{font-size:11px}
.up-foot{margin-top:6px;padding:12px 10px 6px;border-top:1px solid var(--line)}
/* PC 端设置已收进头像菜单，账户页不再重复展示 */
@media (min-width:1024px){.account-settings{display:none}}

/* PC：设置进头像菜单后，权限与设备并排 */
@media (min-width:1024px){
  .account-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:18px;align-items:start}
  .account-grid .devices-panel{grid-column:2;grid-row:1;margin:0}
  .account-grid > section:nth-of-type(2){grid-column:1;grid-row:1}
}
@media (max-width:1023px){
  .account-grid .devices-panel{margin-top:18px}
}

/* 设置行内联值（不带说明小字） */
.row-value{font-size:12.5px;color:var(--muted);margin-left:8px;font-weight:400}
/* 手机端顶栏挤压修正 */
@media (max-width:640px){
  .demo-pill{display:none}
  .breadcrumb{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .breadcrumb b{white-space:nowrap}
}

/* 手机端去掉顶部导航栏：导航交给底部标签栏，播放页用页内返回 */
@media (max-width:760px){
  .topbar{display:none}
  body.study-mode .topbar{display:none}
  body.study-mode .lesson-video.player-active:not(:has(.video-floating,.video-landscape,.video-expanded)){top:0}
  main{padding-top:22px;min-height:calc(100vh - 70px)}
  .study-mobile-head{margin-top:0}
}

/* ---------- 我的账户（小鹅通式个人中心） ---------- */
.profile-page{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:4px 0 16px}
.p-head{display:flex;align-items:center;gap:14px;padding:6px 4px 2px}
.p-avatar{padding:0;border:0;background:none;border-radius:50%;line-height:0}
.p-avatar .avatar{width:64px;height:64px;font-size:24px;border-radius:50%}
.p-name{min-width:0}
.p-name-btn{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:4px 0;border:0;background:none;
  font-size:20px;font-weight:600;color:var(--ink);cursor:pointer}
.p-name-btn:hover{color:var(--brand)}
.p-name-btn svg{width:14px;height:14px;color:#9db0c9;flex:none;transition:color .18s}
.p-name-btn:hover svg{color:var(--brand)}
.p-cta{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:12px;background:#fff;border:1.5px solid var(--brand);color:var(--brand);font-size:15px;font-weight:600}
.p-cta:hover{background:#f5f9ff}
.p-cta svg{width:17px;height:17px}
.p-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.p-tile{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:1px;height:78px;padding:0 16px;border-radius:12px;font-size:14px;font-weight:600}
.p-tile strong{font-size:20px;line-height:1.25}
.p-tile>svg.icon{position:absolute;right:10px;bottom:8px;width:36px;height:36px;opacity:.22}
.p-tile.blue{background:#e8f0ff;color:#1a54c8}
.p-tile.purple{background:#efe9ff;color:#6b46d8}
.p-card{background:#fff;border-radius:14px;padding:15px 16px;box-shadow:0 2px 10px rgba(20,40,70,.04)}
.p-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.p-card-head h3{font-size:15px;font-weight:600;margin:0;color:var(--ink)}
.p-card-head a{display:inline-flex;align-items:center;gap:2px;font-size:12px;color:#8a9ab2}
.p-card-head a svg{width:12px;height:12px}
.p-item{display:flex;align-items:center;gap:10px;padding:11px 2px;border-top:1px solid #eef3fa}
.p-item:first-of-type{border-top:0}
.p-item-main{flex:1;min-width:0}
.p-item-main strong{display:block;font-size:14px;font-weight:550;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-item-main small{font-size:11.5px;color:#8a9ab2}
.p-progress{font-size:12px;color:#8a9ab2}
.p-list{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(20,40,70,.04)}
.p-row{display:flex;align-items:center;gap:12px;width:100%;padding:15px 16px;border:0;background:#fff;font-size:14px;color:var(--ink);text-align:left}
.p-row+.p-row{border-top:1px solid #eef3fa}
.p-row:hover{background:#f8fbff}
.p-row>svg.icon:first-child{width:18px;height:18px;color:#7d8ea6}
.p-label{flex:1}
.p-value{font-size:12.5px;color:#8a9ab2;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p-row svg.p-arrow{width:14px;height:14px;color:#b9c6d8}
.p-logout{height:48px;border-radius:12px;background:#fff;border:1px solid #f0dcd8;color:#c0392b;font-size:14px;font-weight:500}
.p-logout:hover{background:#fff6f4}
.p-empty{padding:8px 0 4px;color:#8a9ab2;font-size:13px}
#devices-card .devices-panel{border:0;box-shadow:none;padding:0;background:transparent}
#devices-card .devices-panel .section-head{margin:0 0 10px}
#devices-card .devices-panel .form-note{display:none}
@media (max-width:760px){
  .profile-page{max-width:none;padding-top:0}
  .p-card, .p-list{border-radius:12px}
  .p-tile{height:72px}
}

/* 设备卡片与个人中心风格对齐 */
#devices-card .devices-panel{padding:0;border:0;box-shadow:none;background:transparent}
#devices-card .section-head{margin:0 0 6px}
#devices-card .section-head h2{font-size:15px;font-weight:600}
#devices-card .section-head .tag{font-size:11px}
#devices-card .device-row{padding:12px 0;border-top:1px solid #eef3fa;gap:12px}
#devices-card .device-row:first-of-type{border-top:0}
#devices-card .device-icon{width:36px;height:36px;border-radius:10px;background:#f0f5fd;color:#2a5fbf}
#devices-card .device-icon svg{width:18px;height:18px}
#devices-card .device-info strong{font-size:14px;font-weight:550;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#devices-card .device-info strong .tag{font-size:10.5px;padding:2px 6px}
#devices-card .device-info small{font-size:11.5px;color:#8a9ab2;line-height:1.7;display:block}
#devices-card .devices-tools{margin-top:10px}
#devices-card .devices-tools .btn{width:100%}

/* 兑换激活：个人中心里的按钮式快捷项 */
/* 头像下拉里的「我的账户」入口 */
button.up-row.up-link{width:100%;background:transparent;border:0;text-align:left;cursor:pointer;justify-content:flex-start;gap:10px;font:inherit}
button.up-row.up-link>svg.icon:first-child{width:16px;height:16px;color:#7d8ea6}
button.up-row.up-link .p-arrow{margin-left:auto;width:14px;height:14px;color:#b9c6d8}
/* 手机端页脚不再展示隐私/服务/联系入口（对应功能已在「我的」里） */
@media (max-width:760px){
  footer .footer-links{display:none}
}

/* 手机端个人中心不展示「学习资料」（课程页内可直接下载） */
@media (max-width:760px){
  .profile-page .p-row-materials{display:none}
}

/* 短信登录按钮文案较长：不换行，手机端收紧字距 */
.btn-login{white-space:nowrap}
@media (max-width:760px){.btn-login{font-size:15px;letter-spacing:2px}}

/* 首页去掉右栏后，课程卡占满内容宽度 */
.home-courses .course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1200px){.home-courses .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.home-courses .course-grid{grid-template-columns:1fr}}

/* ---------- 消息（学员端铃铛） ---------- */
.top-actions .icon-btn{position:relative}
.icon-btn.has-dot .dot{position:absolute;right:7px;top:7px;width:8px;height:8px;border-radius:50%;
  background:#e5484d;box-shadow:0 0 0 2px #fff}
.msg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.msg-head h2{margin:0;font-size:19px}
.msg-list{display:flex;flex-direction:column;gap:2px;max-height:52vh;overflow:auto;margin:0 -6px}
.msg-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px 10px;border-radius:10px;background:transparent}
.msg-row:hover{background:#f1f6fd}
.msg-dot{width:7px;height:7px;border-radius:50%;background:transparent;flex:none}
.msg-row.unread .msg-dot{background:#155bd7}
.msg-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.msg-main b{font-size:13.5px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-row.unread .msg-main b{color:#10336e}
.msg-main small{font-size:11px;color:#8092ac}
.msg-row svg.icon{width:15px;height:15px;color:#a9b9cd;flex:none}
.announce-body{font-size:13px;line-height:2;color:#3d5372;max-height:46vh;overflow:auto;margin:6px 0 0}
.announce-img{width:100%;border-radius:12px;margin:12px 0 0;border:1px solid var(--line)}
.modal-actions .btn[disabled]{cursor:default}
/* 公告详情：叠在消息列表内，X 只收起详情 */
.msg-detail{animation:msgDetailIn .18s ease}
.msg-detail h2{margin:0 35px 10px 0}
@keyframes msgDetailIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* ---------- 登录后公告弹窗 ---------- */
.announce-pop{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;
  background:rgba(12,22,38,.28);backdrop-filter:blur(2px);opacity:0;transition:opacity .26s ease;cursor:pointer}
.announce-pop.show{opacity:1}
.announce-card{width:min(560px,100%);max-height:82vh;overflow:auto;background:#fff;border-radius:20px;
  padding:26px 26px 24px;box-shadow:0 30px 80px -30px #0d1e3833;transform:translateY(10px) scale(.985);
  transition:transform .26s ease;cursor:pointer;pointer-events:none}
.announce-pop.show .announce-card{transform:none}
.announce-kicker{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#5b7191;letter-spacing:.06em;margin-bottom:12px}
.announce-kicker svg{width:15px;height:15px;color:#155bd7}
.announce-kicker small{margin-left:auto;color:#9dafc6;letter-spacing:0;font-size:10.5px}
.announce-card h2{font-size:21px;margin:0 0 8px;color:var(--ink);letter-spacing:-.01em}
.announce-list{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.announce-item{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-top:1px solid #edf2f9}
.announce-item:first-child{border-top:0}
.announce-item b{font-size:14px;font-weight:600;color:var(--ink)}
.announce-item small{font-size:11px;color:#8a9cb5}
.announce-more{font-size:11.5px;color:#8296b0;padding-top:10px}

/* ---------- 后台：公告编辑 ---------- */
.ann-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 12px}
.ann-thumb{position:relative;width:104px;height:70px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#eef4fc}
.ann-thumb img{width:100%;height:100%;object-fit:cover}
.ann-thumb-x{position:absolute;right:3px;top:3px;width:20px;height:20px;border-radius:6px;background:#0b1c33b3;color:#fff;
  display:grid;place-items:center}
.ann-thumb-x svg{width:12px;height:12px}
.ann-admin-list{display:flex;flex-direction:column}
.ann-admin-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #e8eff9}
.ann-admin-row:first-child{border-top:0}
.ann-admin-main{flex:1;min-width:0}
.ann-admin-main b{display:block;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ann-admin-main small{font-size:11px;color:#8296b0}
.ann-admin-row .button-group{flex:none}

@media (max-width:760px){
  .announce-card{padding:22px 18px;border-radius:16px}
  .announce-card h2{font-size:18px}
  .ann-thumb{width:84px;height:58px}
  .ann-admin-row{flex-wrap:wrap}
}
.msg-head{padding-right:34px}

/* ---------- 个人资料：昵称 / 头像 / 简介 / 性别 ---------- */
.up-val{font-size:12px;color:#8296b0;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar.sm{width:28px;height:28px;font-size:12px}
.p-avatar-mini{display:flex;align-items:center;margin-left:auto}
.p-avatar-mini .avatar{margin-right:4px}
.profile-page .p-list .p-row .p-value{max-width:56%}

/* 手机端「我的」页右上角消息铃铛 */
.p-bell{position:relative;margin-left:auto;width:38px;height:38px;border-radius:50%;background:#fff;
  border:1px solid #e3ecf7;display:grid;place-items:center;color:#41567a;box-shadow:0 2px 8px #16274008;flex:none}
.p-bell:hover{background:#f5f9ff}
.p-bell .icon{width:19px;height:19px}
.p-bell.has-dot .dot{position:absolute;top:6px;right:7px;width:8px;height:8px;border-radius:50%;
  background:#e5484d;box-shadow:0 0 0 2px #fff}
@media (min-width:761px){.p-bell{width:42px;height:42px}}

/* 学习快捷项改为 3 项：均分铺开 */
.profile-page .p-head + section{margin-top:14px}
