:root{--brand:#1c69ff;--text:#1f2937;--muted:#6b7280;--line:#e5e7eb;--bg:#f6f8fb}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
.site-header{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 48px;gap:36px;position:sticky;top:0;z-index:10}
.brand{font-size:24px;font-weight:700;white-space:nowrap}
nav{display:flex;gap:28px;flex:1;justify-content:center;color:#4b5563}
nav a:hover,.header-actions a:hover{color:var(--brand)}
.header-actions{display:flex;align-items:center;gap:14px;font-size:14px}
.primary-link,.form button,.course-actions a{background:var(--brand);color:#fff!important;border-radius:6px;padding:10px 18px}
main{max-width:1180px;margin:0 auto;padding:48px 24px}
.auth-shell{min-height:calc(100vh - 172px);display:grid;place-items:center}
.auth-panel{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:8px;padding:36px;box-shadow:0 12px 34px rgba(31,41,55,.08)}
.eyebrow{margin:0 0 8px;color:var(--brand);font-size:13px;text-transform:none;letter-spacing:0}
h1{margin:0 0 28px;font-size:32px;line-height:1.2}
.auth-panel h1{text-align:center}
.form{display:grid;gap:18px}
.form label{display:grid;gap:8px;color:#374151;font-size:14px}
.form input{height:46px;border:1px solid var(--line);border-radius:6px;padding:0 14px;font-size:15px}
.form button{height:48px;border:0;font-size:16px;cursor:pointer;margin-top:4px}
.muted{color:var(--muted);font-size:14px}.muted a{color:var(--brand)}
.dashboard{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:start}
.side,.content{background:#fff;border:1px solid var(--line);border-radius:8px}
.side{padding:24px;display:grid;gap:14px}
.avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#e8efff;color:var(--brand);font-weight:700;font-size:26px}
.side span{color:var(--muted);font-size:13px}.side a{padding:12px 14px;border-radius:6px;color:#4b5563}
.side a:hover,.side-active{background:#eef4ff;color:var(--brand)!important}
.content{padding:32px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}
.stats div,.info-grid div,.course-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:18px}
.stats strong{display:block;font-size:30px;color:var(--brand);margin-bottom:6px}.stats span,.info-grid span,.course-card p{color:var(--muted)}
.section-title{font-size:18px;font-weight:700;margin:10px 0 14px}
.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.info-grid strong{display:block;margin-top:6px}
.single{max-width:820px;margin:0 auto}.course-list{display:grid;gap:14px}.course-card{display:flex;align-items:center;justify-content:space-between;gap:24px}
.course-card h2{margin:0 0 8px;font-size:18px}.course-actions{display:flex;align-items:center;gap:18px;white-space:nowrap}.course-actions span{color:#f90000;font-weight:700}.course-actions strong{color:#6b7280;font-size:14px}.history-card{align-items:flex-start}.history-card>div:first-child{flex:1}.progress-row{height:8px;background:#eef2f7;border-radius:999px;overflow:hidden;margin:14px 0 10px}.progress-row span{display:block;height:100%;background:var(--brand);border-radius:999px}.watch-page{max-width:980px;margin:0 auto}.watch-layout{display:grid;grid-template-columns:1fr 260px;gap:24px}.player-shell{min-height:430px;background:#101827;border-radius:8px;position:relative;overflow:hidden;display:grid;place-items:center;color:#fff}.play-button{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:32px;padding-left:4px}.player-meta{position:absolute;left:22px;right:22px;bottom:26px;display:flex;justify-content:space-between;color:#e5e7eb}.player-progress{position:absolute;left:22px;right:22px;bottom:14px;background:rgba(255,255,255,.2);margin:0}.watch-info{display:grid;gap:14px;align-content:start}.watch-info div{border:1px solid var(--line);border-radius:8px;padding:16px}.watch-info span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}.watch-info strong{display:block}
@media (max-width:800px){.site-header{height:auto;padding:18px 20px;align-items:flex-start;flex-direction:column;gap:14px}nav{justify-content:flex-start;flex-wrap:wrap;gap:14px}.dashboard,.watch-layout{grid-template-columns:1fr}.stats,.info-grid{grid-template-columns:1fr}.course-card{align-items:flex-start;flex-direction:column}.header-actions{flex-wrap:wrap}}

.learning-center-page{border-top:4px solid #1477ff;background:#f4f4f4;color:#333}
.learning-center-page .site-header{display:flex;padding-left:max(24px,calc((100vw - 1180px) / 2 + 24px));padding-right:max(24px,calc((100vw - 1180px) / 2 + 24px))}
.learning-center-page .offline-footer{display:none!important}
.learning-center-page main.learning-center{max-width:1180px;margin:0 auto;padding:16px 24px 72px;display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px}
.learning-menu{min-height:460px;background:#fff;border:1px solid #eceff5;border-radius:2px;padding:24px 0;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.learning-menu button{position:relative;width:calc(100% - 52px);height:38px;margin:0 0 4px 24px;border:0;background:transparent;color:#7a8290;text-align:left;padding:0 18px;font-size:14px;line-height:38px;cursor:pointer;border-radius:0}
.learning-menu button:hover{color:#1477ff;background:#f4f8ff}
.learning-menu button.active{background:#1477ff;color:#fff;font-weight:600}
.learning-menu button.active::after{content:"";position:absolute;right:-12px;top:0;border-top:19px solid transparent;border-bottom:19px solid transparent;border-left:12px solid #1477ff}
.learning-workspace{min-height:254px;background:#fff;border:1px solid #eceff5;border-radius:2px;padding:24px 28px 26px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.learning-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid #edf0f5;padding-bottom:18px}
.learning-workspace-head h1{margin:0;font-size:24px;line-height:32px;font-weight:500;color:#555}
.learning-filters{display:flex;align-items:center;gap:12px}
.learning-filters[hidden]{display:none!important}
.segmented-control{display:inline-flex;align-items:center;border:1px solid #d8e4ff;border-radius:4px;overflow:hidden;background:#fff;height:32px}
.segmented-control button{min-width:52px;height:30px;border:0;border-right:1px solid #e4eaf6;background:#fff;color:#4b5563;font-size:13px;cursor:pointer;padding:0 14px}
.segmented-control button:last-child{border-right:0}
.segmented-control button.active{background:#fff;color:#1477ff;box-shadow:inset 0 0 0 1px #1477ff}
.segmented-control.course-type button.active{background:#1477ff;color:#fff;box-shadow:none}
.learning-view{min-height:160px}
.learning-loading,.learning-empty{padding:42px 0;text-align:center;color:#9aa3b2;font-size:14px}
.learning-empty strong{display:block;margin-bottom:8px;color:#4b5563;font-size:17px;font-weight:500}
.learning-empty a,.learning-login-card a{display:inline-flex;margin-top:14px;height:34px;align-items:center;padding:0 18px;border-radius:4px;background:#1477ff;color:#fff!important}
.learning-record-list{display:grid;gap:0}
.learning-record{display:grid;grid-template-columns:132px minmax(0,1fr) 130px;gap:18px;align-items:center;min-height:116px;border-bottom:1px solid #edf0f5;padding:24px 0}
.learning-record-cover{position:relative;width:124px;height:70px;border-radius:3px;overflow:hidden;background:#dbe7ff}
.learning-record-cover img{width:100%;height:100%;object-fit:cover;display:block}
.learning-record-cover span{position:absolute;right:4px;bottom:4px;background:rgba(15,23,42,.72);color:#fff;font-size:12px;line-height:18px;border-radius:2px;padding:0 5px}
.learning-record-main h2{margin:0 0 9px;font-size:15px;font-weight:600;color:#606775;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.learning-record-meta{margin:0 0 8px;color:#8a93a3;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.learning-record-progress{display:grid;grid-template-columns:auto minmax(90px,1fr) auto;align-items:center;gap:8px;max-width:250px;color:#8a93a3;font-size:12px}
.learning-record-progress .track{height:5px;background:#edf1f7;border-radius:999px;overflow:hidden}
.learning-record-progress .bar{height:100%;background:#1477ff;border-radius:999px}
.learning-record-progress strong{font-weight:600;color:#1477ff}
.learning-record-action{text-align:right}
.learning-record-action a{display:inline-flex;height:34px;align-items:center;justify-content:center;padding:0 18px;border-radius:4px;background:#1477ff;color:#fff!important;box-shadow:0 4px 10px rgba(20,119,255,.18);font-size:14px}
.learning-pager{display:flex;align-items:center;justify-content:center;gap:24px;padding-top:22px;color:#c1c7d0}
.learning-pager button{width:30px;height:30px;border:0;background:transparent;color:#c1c7d0;font-size:24px;line-height:28px;cursor:pointer}
.learning-pager button:disabled{opacity:.4;cursor:not-allowed}
.learning-pager .page-number{width:30px;height:30px;border:1px solid #1477ff;border-radius:5px;display:grid;place-items:center;color:#1477ff;font-size:14px}
.learning-simple-list{display:grid;gap:14px;padding-top:22px}
.learning-simple-card{border:1px solid #edf0f5;border-radius:4px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.learning-simple-card h2{margin:0 0 8px;font-size:16px;color:#4b5563}
.learning-simple-card p{margin:0;color:#8a93a3;font-size:13px}
.learning-simple-card a{height:32px;display:inline-flex;align-items:center;padding:0 16px;border-radius:4px;background:#1477ff;color:#fff!important;white-space:nowrap}
.learning-linked-card{align-items:center}
.linked-card-main{min-width:0;display:flex;align-items:center;gap:14px}
.linked-card-main img{width:92px;height:54px;border-radius:4px;object-fit:cover;background:#eef2f7}
.linked-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.linked-actions a,.linked-actions button{height:32px;padding:0 13px;border-radius:4px;border:1px solid #dbe5f3;background:#fff;color:#4b5563!important;text-decoration:none;font-size:13px;line-height:30px;cursor:pointer}
.linked-actions a{border-color:#1477ff;background:#1477ff;color:#fff!important}
.linked-actions strong{color:#1477ff;font-size:13px}
.learning-note-list{display:grid;gap:14px;padding-top:18px}
.learning-note-card{border:1px solid #edf0f5;border-radius:6px;padding:16px 18px;background:#fff}
.note-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px}
.note-head h2{margin:0;font-size:17px;color:#334155}
.note-head span{color:#9aa3b2;font-size:12px;white-space:nowrap}
.learning-note-card p{margin:0 0 14px;color:#5f6876;font-size:14px;line-height:1.8}
.wish-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.3fr) auto;gap:10px;padding:18px 0;border-bottom:1px solid #edf0f5}
.wish-form input{height:36px;border:1px solid #d8dee9;border-radius:4px;padding:0 11px;font-size:14px;outline:none}
.wish-form input:focus{border-color:#1477ff;box-shadow:0 0 0 3px rgba(20,119,255,.1)}
.wish-form button{height:36px;border:0;border-radius:4px;background:#1477ff;color:#fff;padding:0 18px;cursor:pointer}
.learning-empty.compact{padding:28px 0}
.checkin-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:stretch;padding-top:20px}
.checkin-panel div{border:1px solid #edf0f5;border-radius:6px;padding:18px;background:#fbfcff}
.checkin-panel span{display:block;color:#8a93a3;font-size:13px;margin-bottom:8px}
.checkin-panel strong{font-size:22px;color:#334155}
.checkin-panel button{height:100%;min-height:72px}
.offline-learning-btn[disabled]{opacity:.62;cursor:not-allowed}
.certificate-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:18px}
.certificate-card{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #edf0f5;border-radius:6px;padding:20px;background:linear-gradient(135deg,#fbfcff,#fff)}
.certificate-card.earned{border-color:#b9d4ff;background:linear-gradient(135deg,#f3f8ff,#fff)}
.certificate-card span{display:inline-flex;margin-bottom:10px;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:12px}
.certificate-card.earned span{background:#1477ff;color:#fff}
.certificate-card h2{margin:0 0 8px;font-size:17px;color:#334155}
.certificate-card p{margin:0;color:#8a93a3;font-size:13px}
.certificate-card strong{color:#1477ff;white-space:nowrap}
.rank-summary{margin:18px 0 0;color:#8a93a3;font-size:13px}
.rank-list{display:grid;gap:10px;padding-top:18px}
.rank-row{display:grid;grid-template-columns:42px minmax(0,1fr) 56px;gap:12px;align-items:center;border:1px solid #edf0f5;border-radius:6px;padding:13px 16px;background:#fff}
.rank-row.is-me{border-color:#b9d4ff;background:#f6f9ff}
.rank-row>strong{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eef2f7;color:#64748b}
.rank-row.is-me>strong{background:#1477ff;color:#fff}
.rank-row h2{margin:0 0 5px;font-size:16px;color:#334155}
.rank-row p{margin:0;color:#8a93a3;font-size:13px}
.rank-row span{color:#1477ff;text-align:right;font-size:13px}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:22px}
.profile-grid div{border:1px solid #edf0f5;border-radius:4px;padding:16px 18px}
.profile-grid span{display:block;color:#8a93a3;font-size:13px;margin-bottom:8px}
.profile-grid strong{font-weight:500;color:#4b5563}
.profile-form{padding-top:20px}
.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-form label{display:grid;gap:8px;color:#667085;font-size:13px}
.profile-form label.wide{grid-column:1 / -1}
.profile-form input,.profile-form textarea{width:100%;border:1px solid #d8dee9;border-radius:4px;background:#fff;color:#334155;font-size:14px;box-sizing:border-box;outline:none}
.profile-form input{height:38px;padding:0 11px}
.profile-form textarea{min-height:88px;padding:10px 11px;resize:vertical;line-height:1.7}
.profile-form input:focus,.profile-form textarea:focus{border-color:#1477ff;box-shadow:0 0 0 3px rgba(20,119,255,.1)}
.profile-message{min-height:20px;margin:14px 0 0;color:#8a93a3;font-size:13px}
.profile-message[data-type="success"]{color:#1477ff}
.profile-message[data-type="error"]{color:#dc2626}
.profile-actions{display:flex;justify-content:flex-end;margin-top:12px}
.profile-actions button{height:36px;border:0;border-radius:4px;background:#1477ff;color:#fff;padding:0 22px;cursor:pointer}
.profile-actions button:disabled{opacity:.62;cursor:wait}
.learning-login-card{padding:48px 0;text-align:center;color:#7a8290}
.learning-login-card strong{display:block;margin-bottom:8px;font-size:18px;color:#4b5563}
@media (max-width:900px){.learning-center-page main.learning-center{grid-template-columns:1fr;padding:14px}.learning-menu{min-height:0;padding:12px;display:flex;gap:8px;overflow-x:auto}.learning-menu button{flex:0 0 auto;margin:0;width:auto;padding:0 14px;border-radius:4px}.learning-menu button.active::after{display:none}.learning-workspace{padding:18px}.learning-workspace-head{display:grid}.learning-filters{flex-wrap:wrap}.learning-record{grid-template-columns:96px minmax(0,1fr);gap:12px}.learning-record-cover{width:96px;height:56px}.learning-record-action{grid-column:2;text-align:left}.profile-grid,.profile-form-grid,.certificate-list,.checkin-panel{grid-template-columns:1fr}.wish-form{grid-template-columns:1fr}.learning-simple-card{align-items:flex-start;flex-direction:column}.linked-actions{justify-content:flex-start;flex-wrap:wrap}.checkin-panel button{min-height:42px}.rank-row{grid-template-columns:34px minmax(0,1fr) 42px}}
