/* 课件云盘：沿用临时云盘的卡片样式，只补自己的部分 */
.cd-switch { display: inline-flex; gap: 6px; margin-top: 14px; padding: 4px; background: #fff; border: 1px solid var(--line, #e3e8f0); border-radius: 999px; }
.cd-switch a { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; color: #5b6478; text-decoration: none; }
.cd-switch a.active { background: #245fcf; color: #fff; font-weight: 600; }

.cd-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.cd-files { display: grid; gap: 10px; }
.cd-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e7ecf4; border-radius: 14px; background: #fff; }
.cd-item .cd-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #245fcf; background: #eff4ff; }
.cd-item .cd-icon.video { color: #0f8a5f; background: #eafaf2; }
.cd-item .cd-body { min-width: 0; flex: 1; }
.cd-item .cd-name { font-weight: 600; font-size: 14.5px; color: #1a1f2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-item .cd-meta { margin-top: 3px; font-size: 12px; color: #7b8496; display: flex; gap: 10px; flex-wrap: wrap; }
.cd-item .cd-ops { display: flex; gap: 6px; flex: 0 0 auto; }
.cd-item .cd-ops button { border: 1px solid #dbe3f0; background: #fff; color: #245fcf; border-radius: 9px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.cd-item .cd-ops button.danger { color: #b4443c; border-color: #f0d6d4; }
.cd-item .cd-ops button:hover { background: #f5f8ff; }

.cd-progress { margin-top: 12px; }
.cd-progress-bar { height: 8px; border-radius: 999px; background: #e8edf6; overflow: hidden; }
.cd-progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #245fcf, #4d8bff); transition: width .2s; }
.cd-progress span { display: block; margin-top: 6px; font-size: 12px; color: #7b8496; }
.cd-note { margin-top: 10px; font-size: 12px; color: #9099ab; }

.cd-modal { position: fixed; inset: 0; background: rgba(15, 20, 32, .72); display: grid; place-items: center; z-index: 90; padding: 24px; }
.cd-modal[hidden] { display: none; }
.cd-modal-card { width: min(960px, 100%); background: #0f1420; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.cd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #cfd6e4; font-size: 14px; }
.cd-modal-head button { background: transparent; border: 0; color: #cfd6e4; font-size: 22px; line-height: 1; cursor: pointer; }
.cd-modal video { display: block; width: 100%; max-height: 72vh; background: #000; }

@media (max-width: 900px) {
  .cd-grid { grid-template-columns: 1fr; }
}
