/* 紧凑资源库：只作用于课件中心，不改变课件放映或模型样式。 */
.compact-hub{padding:24px 0 56px}
.compact-hub .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hub-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.hub-heading h1{margin:0;font-size:28px;letter-spacing:0;line-height:1.4}
.hub-heading h1 span{margin-left:12px;color:#607589;font-size:14px;font-weight:500;white-space:nowrap}
.hub-heading p{margin:5px 0 0;color:#607589;font-size:14px;line-height:1.6}
.hub-help{position:relative;flex-shrink:0;font-size:14px}
.hub-help summary,.hub-access summary{cursor:pointer;padding:10px 0;color:#315f76}
.hub-help>div{position:absolute;right:0;top:44px;z-index:5;width:min(360px,85vw);padding:20px;border:1px solid #d8e4eb;border-radius:8px;background:#fff;box-shadow:0 8px 30px #173f5920}
.hub-help>div p{line-height:1.9}
.hub-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#fff;border:1px solid #d8e4eb;border-radius:8px}
.hub-filters select{max-width:250px;height:44px;padding:0 30px 0 12px;border:1px solid #d3e0e7;border-radius:5px;color:#31536a;background:#fff;font-size:14px}
.compact-hub .lesson-filter-group button{height:44px;border-radius:5px;font-size:14px}
.compact-hub .lesson-search{margin-left:auto;width:min(300px,100%);height:44px;border-radius:5px}
.compact-hub .lesson-search input{font-size:14px}
.hub-results{display:flex;justify-content:space-between;align-items:center;padding:15px 0;color:#607589;font-size:13px}
.hub-results p{margin:0}.hub-results b{color:#173f59}
.compact-hub .lesson-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
.compact-hub .lesson-card{border-radius:8px;box-shadow:none;transition:border-color .15s}
.compact-hub .lesson-card:hover{transform:none;border-color:#80adca;box-shadow:none}
.compact-hub .lesson-cover{aspect-ratio:16/9;background:#edf3f7}
.compact-hub .lesson-cover img{object-fit:contain;transition:none}
.compact-hub .lesson-card:hover img{transform:none}
.compact-hub .lesson-card.is-protected .lesson-cover img{padding:30px}
.compact-hub .lesson-cover-grade{top:10px;left:10px;padding:5px 8px;font-size:12px;border-radius:4px}
.hub-lock{position:absolute;right:10px;bottom:10px;padding:5px 8px;border-radius:4px;background:#fff3df;color:#805415;font-size:12px}
.compact-hub .lesson-card-body{padding:14px}
.compact-hub .lesson-card-body>.hub-chapter{min-height:0;margin:0;color:#607589;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-hub .lesson-card-body h2{margin:6px 0;font-size:18px;line-height:25px;min-height:50px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-hub .lesson-card-body>.hub-meta{min-height:0;margin:0;font-size:13px;line-height:20px;color:#607589}
.hub-meta span{padding:0 3px;color:#a0afba}
.compact-hub .lesson-card-actions{margin-top:12px;gap:8px}
.compact-hub .lesson-card-actions a{height:44px;border-radius:5px;font-size:14px;font-weight:600;white-space:nowrap}
.compact-hub .lesson-present-button{justify-content:center;padding:0 10px;background:#167faf}
.hub-preview-button{display:inline-flex;align-items:center;padding:0 14px;border:1px solid #cbdbe4;color:#315f76}
.compact-hub .lesson-edit-button{padding:0 10px}
.hub-access{margin-top:8px;font-size:13px}
.compact-hub .lesson-access-form{margin:0;padding:12px 0 0;background:#fff}
.compact-hub .lesson-access-form label span,.compact-hub .lesson-access-form button{font-size:13px}
.compact-hub .lesson-access-form small{display:none}
.compact-hub .lesson-empty button{margin-top:20px;min-height:44px;padding:0 18px;border:1px solid #cbdbe4;border-radius:5px;background:#fff;color:#315f76;cursor:pointer}
.compact-hub :is(a,button,summary,select,input):focus-visible,.hub-preview :is(a,button):focus-visible{outline:3px solid #2789bd;outline-offset:3px}
.hub-preview{width:min(1120px,calc(100vw - 40px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #d8e4eb;border-radius:12px;color:#173f59;background:#fff;overflow:auto}
.hub-preview::backdrop{background:#10283acc}
.hub-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hub-preview small{font-size:12px;color:#607589}.hub-preview h2{margin:4px 0;font-size:20px}
.hub-preview button{flex-shrink:0;min-height:44px;padding:0 14px;border:1px solid #cbdbe4;border-radius:5px;background:#fff;color:#315f76;cursor:pointer}
.hub-preview>p{font-size:14px;line-height:1.7;margin:10px 0;color:#607589}
.hub-preview-stage{position:relative;width:min(100%,calc((100dvh - 260px)*16/9));aspect-ratio:16/9;margin:auto;overflow:hidden;border-radius:6px;background:#0f172a}
.hub-preview iframe{display:block;width:1600px;height:900px;border:0;transform-origin:top left;background:#0f172a}
.hub-preview-stage.is-unlock{width:100%;height:350px;max-height:50dvh;aspect-ratio:auto}
.hub-preview-stage.is-unlock iframe{width:100%;height:100%;transform:none}
.hub-preview .hub-preview-paging{display:flex;align-items:center;gap:10px}.hub-preview-paging[hidden]{display:none!important}
.hub-preview .hub-preview-paging span{min-width:50px;text-align:center}
.hub-preview footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px 0 0;border:0;font-size:13px;color:#607589}
.hub-preview footer a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:5px;background:#167faf;color:#fff;font-size:14px;white-space:nowrap}
@media(min-width:1700px){.compact-hub .lesson-card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.compact-hub .lesson-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-hub .lesson-search{flex:1;min-width:200px}}
@media(max-width:820px){.compact-hub .lesson-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.compact-hub{padding-top:18px}.hub-heading{align-items:flex-start;gap:8px;margin-bottom:16px}.hub-heading h1{font-size:25px}.hub-heading h1 span{display:block;margin:2px 0 0;font-size:13px}.hub-heading p{max-width:245px}.hub-filters{gap:8px}.hub-filters .lesson-filter-group{width:100%}.hub-filters>label:not(.lesson-search){flex:1;min-width:0}.hub-filters select{width:100%;max-width:none;font-size:14px}.compact-hub .lesson-search{width:100%;flex-basis:100%;margin:0}.compact-hub .lesson-card-grid{grid-template-columns:1fr;gap:16px}.compact-hub .lesson-card-body h2{min-height:0}.compact-hub .lesson-card-body{padding:16px}.hub-preview{width:calc(100vw - 20px);padding:12px}.hub-preview h2{font-size:18px}.hub-preview-stage{width:100%}.hub-preview footer{align-items:flex-start}.hub-preview footer span{max-width:150px;line-height:1.6}}
